* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f3f5f9;
    color: #263445;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.header {
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.header p {
    color: #718096;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.card h2 {
    margin-bottom: 12px;
}

.card p {
    color: #718096;
}

.upload-area {
    margin-top: 25px;
    padding: 45px;
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    text-align: center;
    background: #fafcff;
}

.upload-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.upload-area input {
    display: none;
}

.btn-upload {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #e8f0ff;
    color: #2563eb;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary {
    margin-top: 25px;
    padding: 13px 25px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary:hover {
    background: #1d4ed8;
}

#nomeArquivo {
    margin-top: 15px;
    font-weight: bold;
}

.indicadores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.indicador {
    background: #f7f9fc;
    padding: 25px;
    border-radius: 8px;
}

.indicador span {
    display: block;
    color: #718096;
    margin-bottom: 12px;
}

.indicador strong {
    font-size: 28px;
}

@media (max-width: 650px) {
    .indicadores {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   IDENTIFICAÇÃO DAS OPERAÇÕES
===================================================== */

.operacao-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e5e7eb;
}

.operacao-identificacao {
    display: flex;
    align-items: center;
    gap: 16px;
}

.operacao-numero {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 21px;
    font-weight: 800;
}

.operacao-tipo {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.operacao-header h2 {
    margin: 0 0 6px;
}

.operacao-header p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.operacao-badge {
    padding: 9px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* IMPORTAÇÃO */

.card-importacao {
    border-top: 4px solid #2563eb;
}

.card-importacao .operacao-numero {
    background: #dbeafe;
    color: #1d4ed8;
}

.card-importacao .operacao-tipo {
    color: #2563eb;
}

.badge-importacao {
    background: #dbeafe;
    color: #1d4ed8;
}

/* ATUALIZAÇÃO */

.card-atualizacao {
    border-top: 4px solid #0d9488;
}

.card-atualizacao .operacao-numero {
    background: #ccfbf1;
    color: #0f766e;
}

.card-atualizacao .operacao-tipo {
    color: #0d9488;
}

.badge-atualizacao {
    background: #ccfbf1;
    color: #0f766e;
}

/* CONTEÚDO */

.operacao-conteudo {
    padding-top: 22px;
}

.divisor-operacao {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 25px 0;
}

/* INFORMAÇÕES DA ATUALIZAÇÃO */

.info-atualizacao {
    padding: 16px;
    margin-bottom: 22px;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 10px;
}

.info-atualizacao strong {
    display: block;
    margin-bottom: 12px;
    color: #115e59;
}

.campos-atualizacao {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.campos-atualizacao span {
    padding: 7px 12px;
    background: #ccfbf1;
    color: #0f766e;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.info-atualizacao p {
    margin: 12px 0 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

/* RESULTADOS */

.resultado {
    margin-top: 20px;
}

/* RESPONSIVIDADE */

@media (max-width: 650px) {

    .operacao-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .operacao-badge {
        margin-left: 68px;
    }

    .operacao-identificacao {
        align-items: flex-start;
    }

    .operacao-numero {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 18px;
    }

}

/* =====================================================
   GESTÃO DE INVENTÁRIO - NOVO LAYOUT
===================================================== */

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    background: #f4f6fa;
}

/* CABEÇALHO */

.header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8efff;
    border-radius: 14px;
    font-size: 25px;
}

/* NAVEGAÇÃO */

.tabs-container {
    margin-top: 28px;
}

.tabs-navigation {
    display: flex;
    gap: 8px;
    padding: 7px;
    background: #e9edf4;
    border-radius: 14px;
    margin-bottom: 24px;
}

.tab-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
}

.tab-button:hover {
    background: rgba(255,255,255,0.55);
}

.tab-button.active {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 3px 12px rgba(15,23,42,0.07);
}

.tab-icon {
    font-size: 25px;
}

.tab-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tab-text strong {
    font-size: 14px;
    font-weight: 700;
}

.tab-text small {
    font-size: 11px;
    color: #94a3b8;
}

/* CONTEÚDO DAS ABAS */

.tab-content {
    animation: aparecerAba 0.3s ease;
}

@keyframes aparecerAba {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* TÍTULOS DAS SEÇÕES */

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 7px 0;
    color: #1e293b;
    font-size: 23px;
}

.section-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.section-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.label-blue {
    color: #2563eb;
}

.label-green {
    color: #0d9488;
}

.section-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 27px;
}

.icon-blue {
    background: #dbeafe;
}

.icon-green {
    background: #ccfbf1;
}

/* CARDS */

.card {
    background: #ffffff;
    border: 1px solid #e7ebf2;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(15,23,42,0.035);
    padding: 25px;
}

.upload-card {
    border-top: 3px solid #2563eb;
}

#conteudoAtualizacao .upload-card {
    border-top-color: #0d9488;
}

.resultado {
    margin-top: 22px;
}

/* ÁREA DE UPLOAD */

.upload-area {
    text-align: center;
    padding: 35px 20px;
    border: 2px dashed #d8e0eb;
    border-radius: 12px;
    background: #fafcff;
    transition: all 0.2s ease;
}

.upload-area:hover {
    border-color: #93b4f5;
    background: #f7faff;
}

#conteudoAtualizacao .upload-area:hover {
    border-color: #5eead4;
    background: #f0fdfa;
}

.upload-icon {
    font-size: 38px;
    margin-bottom: 12px;
}

.upload-area h3 {
    margin: 0 0 8px;
    color: #334155;
}

.upload-area p {
    margin: 0 0 20px;
    color: #94a3b8;
    font-size: 13px;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-upload:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-upload-green {
    background: #0d9488;
}

.btn-upload-green:hover {
    background: #0f766e;
}

.nome-arquivo {
    margin-top: 15px;
    color: #64748b;
    font-size: 12px;
    overflow-wrap: anywhere;
}

/* BOTÕES */

.acoes {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.btn-primary {
    border: none;
    border-radius: 8px;
    padding: 12px 22px;
    background: #2563eb;
    color: white;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.2);
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-green {
    background: #0d9488;
}

.btn-green:hover:not(:disabled) {
    background: #0f766e;
    box-shadow: 0 4px 12px rgba(13,148,136,0.2);
}

/* RESULTADO */

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.card-header h3 {
    margin: 0 0 6px;
    color: #334155;
}

.card-header p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
}

/* INDICADORES */

.indicadores {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 22px 0;
}

#conteudoAtualizacao .indicadores {
    grid-template-columns: repeat(3, 1fr);
}

.indicador {
    padding: 17px;
    border: 1px solid #e8edf4;
    border-radius: 10px;
    background: #fafbfc;
}

.indicador span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 9px;
}

.indicador strong {
    color: #1e293b;
    font-size: 25px;
}

/* STATUS */

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* INFORMAÇÕES DA ATUALIZAÇÃO */

.info-atualizacao {
    display: flex;
    gap: 14px;
    padding: 18px;
    margin-bottom: 20px;
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 12px;
}

.info-atualizacao-icon {
    font-size: 22px;
}

.info-atualizacao-conteudo {
    flex: 1;
}

.info-atualizacao strong {
    display: block;
    color: #115e59;
    font-size: 13px;
    margin-bottom: 12px;
}

.campos-atualizacao {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.campos-atualizacao span {
    padding: 7px 12px;
    background: #ccfbf1;
    color: #0f766e;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.info-atualizacao p {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

/* ÁREAS DE DETALHES */

.detalhes-analise {
    margin-top: 25px;
}

.divisor-operacao {
    border: 0;
    border-top: 1px solid #e8edf4;
    margin: 22px 0;
}

/* RESPONSIVIDADE */

@media (max-width: 768px) {

    .indicadores {
        grid-template-columns: repeat(2, 1fr);
    }

    #conteudoAtualizacao .indicadores {
        grid-template-columns: repeat(2, 1fr);
    }

    .card {
        padding: 18px;
    }

}

@media (max-width: 550px) {

    .tabs-navigation {
        flex-direction: column;
    }

    .tab-button {
        justify-content: flex-start;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 20px;
    }

    .section-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 22px;
    }

    .card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .indicadores,
    #conteudoAtualizacao .indicadores {
        grid-template-columns: repeat(2, 1fr);
    }

    .acoes {
        justify-content: stretch;
    }

    .acoes button {
        width: 100%;
    }

    .info-atualizacao {
        padding: 13px;
    }

}