/* ==========================================================================
   PROJETO ERP - DESIGN SYSTEM & PADRONIZAÇÃO VISUAL (UI / UX)
   Identidade: Steel Blue Profissional (#4682b4), Slate Neutro e Tipografia Clara
   ========================================================================== */

:root {
    --color-primary: #4682b4;
    --color-primary-hover: #3b709c;
    --color-primary-light: #f4f8fb;
    --color-primary-border: #c5dceb;
    --color-slate-surface: #f8fafc;
    --color-slate-border: #e2e8f0;
}

body {
    background-color: #f8fafc !important;
    color: #1e293b !important;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
}

/* 2. Suavização e Harmonia dos Botões e Inputs */
button:focus, input:focus, select:focus, textarea:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(70, 130, 180, 0.25) !important;
}

/* 3. Cards e Superfícies Padronizadas */
.card-padrao, .card-erp {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease-in-out;
}

.card-padrao:hover, .card-erp:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

/* 4. UNIFICAÇÃO ABSOLUTA DE CORES DESTOANTES (ÍNDIGO, ROXO, VIOLETA -> AZUL PADRÃO #4682b4) */
.bg-indigo-50, .bg-indigo-50\/70, .bg-indigo-50\/50, .bg-indigo-50\/80 {
    background-color: #f4f8fb !important;
}
.bg-indigo-100 {
    background-color: #e7f0f6 !important;
}
.bg-indigo-200 {
    background-color: #c5dceb !important;
}
.bg-indigo-600, .bg-indigo-700 {
    background-color: #4682b4 !important;
}
.hover\:bg-indigo-700:hover, .hover\:bg-indigo-800:hover {
    background-color: #3b709c !important;
}
.text-indigo-600, .text-indigo-700 {
    color: #4682b4 !important;
}
.text-indigo-800, .text-indigo-900, .text-indigo-950 {
    color: #2a4b66 !important;
}
.border-indigo-100, .border-indigo-200, .border-indigo-300 {
    border-color: #c5dceb !important;
}

/* Roxo / Púrpura / Violeta -> Convertido para Slate / Azul */
.bg-purple-50, .bg-purple-50\/70, .bg-purple-50\/50 {
    background-color: #f8fafc !important;
}
.bg-purple-100 {
    background-color: #f1f5f9 !important;
}
.text-purple-700, .text-purple-800, .text-purple-900, .text-purple-950 {
    color: #334155 !important;
}
.text-purple-600 {
    color: #475569 !important;
}
.border-purple-200, .border-purple-300 {
    border-color: #cbd5e1 !important;
}

/* Rosa / Rose Estridente -> Convertido para Vermelho/Coral Institucional Suave */
.bg-rose-50 {
    background-color: #fef2f2 !important;
}
.bg-rose-100 {
    background-color: #fee2e2 !important;
}
.text-rose-600, .text-rose-700, .text-rose-800 {
    color: #b91c1c !important;
}
.border-rose-300 {
    border-color: #fca5a5 !important;
}

/* Amarelo Fluorescente -> Convertido para Âmbar Suave / Dourado Discreto */
.bg-yellow-50 {
    background-color: #fffbeb !important;
}
.bg-yellow-100 {
    background-color: #fef3c7 !important;
}
.text-yellow-700, .text-yellow-800 {
    color: #92400e !important;
}
.text-yellow-400, .text-yellow-500 {
    color: #d97706 !important;
}
.border-yellow-200 {
    border-color: #fde68a !important;
}

/* 5. Acordeões e Seções Expansíveis (Progressive Disclosure) */
.secao-recolhivel {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 0.75rem;
}

.secao-recolhivel-header {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: background-color 0.15s ease;
}

.secao-recolhivel-header:hover {
    background: #f1f5f9;
}

.secao-recolhivel-corpo {
    padding: 1rem;
    border-top: 1px solid #f1f5f9;
}

.secao-recolhivel-corpo.fechado {
    display: none;
}

/* 6. Barra de Rolagem Discreta */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 7. Cabeçalhos de Tabelas Consistentes */
table thead th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 0.625rem 0.75rem !important;
}

table tbody tr {
    transition: background-color 0.15s ease;
}

table tbody tr:hover {
    background-color: #f8fafc !important;
}
