.elementor-kit-16{--e-global-color-primary:#6EC1E4;--e-global-color-secondary:#54595F;--e-global-color-text:#7A7A7A;--e-global-color-accent:#61CE70;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;}.elementor-kit-16 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){margin-block-end:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}.site-header .site-branding{flex-direction:column;align-items:stretch;}.site-header{padding-inline-end:0px;padding-inline-start:0px;}.site-footer .site-branding{flex-direction:column;align-items:stretch;}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}/* Start custom CSS *//* =========================================
   1. RESET E ESTRUTURA GLOBAL
   ========================================= */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f6f8;
    color: #333;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1400px; /* Largo para caber a tabela */
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* =========================================
   2. TIPOGRAFIA E CABEÇALHO
   ========================================= */
.header-box {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

h1 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.8rem;
}

.version-tag {
    font-size: 0.5em;
    background: #e9ecef;
    color: #666;
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
}

.subtitle {
    color: #6c757d;
    font-size: 1rem;
    display: block;
}

/* =========================================
   3. SEÇÕES E CARDS DE IMPORTAÇÃO
   ========================================= */
.section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-left: 5px solid #6f42c1; /* Roxo identidade */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.section-title {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.import-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: stretch;
}

.import-card {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.import-card label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.import-card small {
    display: block;
    margin-top: 8px;
    color: #868e96;
    font-size: 0.8rem;
}

.input-group {
    display: flex;
    gap: 5px;
}

/* =========================================
   4. FORMULÁRIOS E INPUTS (Manual Layout)
   ========================================= */
.manual-header {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.manual-item-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end; /* Alinha botões com inputs */
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
}

input, select {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: #6f42c1;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
}

/* Utilitários de Tamanho de Campo */
.small-field { flex: 0 0 80px; }
.medium-field { flex: 0 0 120px; }
.flex-grow { flex: 1; min-width: 150px; }

/* =========================================
   5. BOTÕES
   ========================================= */
.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-roxo { background-color: #6f42c1; }
.btn-verde { background-color: #217346; } /* Excel Color */
.btn-azul { background-color: #007bff; }
.btn-laranja { background-color: #fd7e14; }
.btn-vermelho { background-color: #e03131; }

.reset-btn {
    align-self: flex-start;
    margin-left: auto; /* Empurra para direita */
}

/* =========================================
   6. ÁREA DE PREPARAÇÃO (STAGING)
   ========================================= */
.staging-area {
    margin-top: 20px;
    background-color: #fff;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 15px;
}

.staging-header {
    font-weight: bold;
    color: #495057;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

#items-container {
    max-height: 200px;
    overflow-y: auto;
}

.item-prep {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #f1f3f5;
    background: #f8f9fa;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.item-prep:last-child { border-bottom: none; }

.staging-footer {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

#resumo-lote {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

/* =========================================
   7. TABELA DE DADOS (Base Export24)
   ========================================= */
.table-container {
    overflow-x: auto;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    white-space: nowrap;
}

th {
    background-color: #343a40;
    color: white;
    padding: 12px 10px;
    text-align: left;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

td {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

tr:nth-child(even) { background-color: #f8f9fa; }
tr:hover { background-color: #e9ecef; }

/* Tags e Colunas Especiais */
.tag {
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.75rem;
    text-align: center;
    display: inline-block;
    min-width: 25px;
}

.tag-c { background-color: #e7f5ff; color: #007bff; border: 1px solid #a5d8ff; } /* Compra Azul */
.tag-v { background-color: #ffe3e3; color: #e03131; border: 1px solid #ffc9c9; } /* Venda Vermelha */

.col-id {
    font-family: 'Consolas', monospace;
    color: #868e96;
    font-size: 0.8rem;
}

/* Destaque para PM (Base Export23) */
.bg-destaque {
    background-color: #fff9db; /* Amarelo suave */
    font-weight: 700;
    color: #212529;
    border-left: 2px solid #fab005;
}

/* =========================================
   8. DASHBOARD (Cópia Fiel do Export23)
   ========================================= */
#dashboard-resumo {
    margin-top: 30px;
    padding: 25px;
    background: #e7f5ff;
    border-radius: 8px;
    border: 1px solid #a5d8ff;
    display: none; /* JS ativa */
}

#dashboard-resumo h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1c7ed6;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.dash-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.dash-item span {
    display: block;
    color: #868e96;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
}

.dash-item strong {
    display: block;
    font-size: 1.2rem;
    color: #212529;
}

/* O Card Totalizador Roxo */
.dash-item.total-card {
    background-color: #6f42c1;
    border-color: #5f3dc4;
    color: white;
}

.dash-item.total-card span,
.dash-item.total-card strong {
    color: white;
}

/* =========================================
   9. RODAPÉ E MENSAGENS
   ========================================= */
.footer-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

#msg-area {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    display: none;
    text-align: center;
}

.msg-erro { background: #ffe3e3; color: #c92a2a; border: 1px solid #ffa8a8; }
.msg-sucesso { background: #d3f9d8; color: #2b8a3e; border: 1px solid #b2f2bb; }

/* Impressão */
@media print {
    .section, .header-box, .footer-actions, #msg-area { display: none !important; }
    .container { box-shadow: none; border: none; padding: 0; max-width: 100%; }
    #dashboard-resumo { display: block !important; border: 1px solid #000; background: none; }
    .dash-item { border: 1px solid #000; }
    .dash-item.total-card { background: #ddd; color: black; }
    .dash-item.total-card strong, .dash-item.total-card span { color: black; }
}/* End custom CSS */