/* ============================================================
   SISTEMA DE CONTROLE DE MEDIDAS SOCIOEDUCATIVAS v2.0
   ESTILOS COMPLETOS
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: #f0f4f8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== TELA DE LOGIN ===== */
#telaLogin {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f0f4f8;
    padding: 20px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    transition: opacity 0.3s ease;
}

#telaLogin.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

#telaCadastro {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f0f4f8;
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

#telaCadastro.visible {
    display: flex;
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.main-content {
    margin-left: 260px;
    flex: 1;
    display: none;
    flex-direction: column;
    min-height: 100vh;
}

.main-content.visible {
    display: flex;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    background: #1A2A4A;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand i {
    font-size: 28px;
    color: #f59e0b;
}

.sidebar-brand span {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    color: white;
}

.sidebar-brand small {
    display: block;
    font-weight: 400;
    font-size: 0.7rem;
    color: #94a3b8;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 12px 30px;
}

.menu-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    padding: 16px 12px 6px;
    font-weight: 600;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    margin: 2px 0;
    border-radius: 10px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.15s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.menu-item i {
    width: 22px;
    font-size: 1rem;
    text-align: center;
    color: #94a3b8;
    transition: 0.15s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.menu-item:hover i {
    color: #f59e0b;
}

.menu-item.active {
    background: rgba(37, 99, 235, 0.25);
    color: white;
    border-left: 3px solid #2563EB;
}

.menu-item.active i {
    color: #f59e0b;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    color: #64748b;
}

/* ===== HEADER ===== */
.header {
    background: white;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    flex-wrap: wrap;
    gap: 12px;
}

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

.header-left .page-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1A2A4A;
}

.header-left .page-title i {
    color: #2563EB;
    margin-right: 8px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-actions .user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px 16px 6px 12px;
    border-radius: 40px;
    font-size: 0.85rem;
    color: #1e293b;
}

.header-actions .user-badge i {
    color: #2563EB;
}

.btn-icon {
    background: transparent;
    border: none;
    color: #475569;
    font-size: 1.1rem;
    padding: 8px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.15s;
}

.btn-icon:hover {
    background: #f1f5f9;
    color: #1A2A4A;
}

.btn-outline {
    background: transparent;
    border: 1px solid #d1d9e6;
    padding: 6px 18px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.85rem;
    color: #1e293b;
    cursor: pointer;
    transition: 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #1A2A4A;
    cursor: pointer;
    padding: 4px 8px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* ===== PÁGINAS ===== */
.page {
    display: none;
    padding: 28px 32px;
    animation: fadeIn 0.2s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== LOGIN BOX ===== */
.login-box {
    background: white;
    padding: 40px;
    border-radius: 28px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
}

.login-erro {
    color: #dc3545;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
}

.logo-login-img {
    display: block;
    margin: 0 auto 16px auto;
    max-height: 100px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-online {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ===== BOTÕES ===== */
.btn-primary {
    background: #2563EB;
    border: none;
    color: white;
    padding: 6px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.btn-success {
    background: #10b981;
    border: none;
    color: white;
    padding: 6px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-success:hover { background: #059669; }

.btn-danger {
    background: #ef4444;
    border: none;
    color: white;
    padding: 6px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-danger:hover { background: #dc2626; }

.btn-warning {
    background: #f59e0b;
    border: none;
    color: white;
    padding: 6px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-warning:hover { background: #d97706; }

.btn-secondary {
    background: #6c757d;
    border: none;
    color: white;
    padding: 6px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover { background: #5a6268; }

.btn-importar {
    background: #10b981;
    border: none;
    color: white;
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-sm {
    padding: 4px 12px;
    border: none;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-sm-primary { background: #2563EB; color: white; }
.btn-sm-success { background: #10b981; color: white; }
.btn-sm-danger { background: #ef4444; color: white; }
.btn-sm-warning { background: #f59e0b; color: white; }
.btn-sm-info { background: #3b82f6; color: white; }
.btn-sm-outline { background: transparent; border: 1px solid #d1d9e6; color: #475569; }

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9edf2;
    transition: 0.15s;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card .card-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.card .card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1A2A4A;
}

.card .card-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.card .card-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* ===== GRÁFICOS ===== */
.graficos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

canvas {
    max-width: 100%;
    max-height: 250px;
}

/* ===== TABELAS ===== */
.table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    border: 1px solid #e9edf2;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

tr:hover {
    background: #fafcff;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-regular { background: #dbeafe; color: #1e40af; }
.badge-irregular { background: #fef3c7; color: #92400e; }
.badge-descumprimento { background: #fee2e2; color: #991b1b; }
.badge-suspenso { background: #fce7f3; color: #be185d; }
.badge-finalizada { background: #d1fae5; color: #065f46; }
.badge-liberado { background: #e5e7eb; color: #374151; }

.badge-digital {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #b6d4fe;
}

/* ===== FILTROS ===== */
.filtros-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid #e9edf2;
    margin-bottom: 20px;
    align-items: flex-start;
}

.filtros-bar .filtro-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.filtros-bar .filtro-group > label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filtro-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    align-items: center;
}

.filtro-checkbox-group label {
    font-weight: 400;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #475569;
}

.filtro-checkbox-group input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #2563EB;
    cursor: pointer;
}

.filtros-bar input,
.filtros-bar select {
    padding: 6px 12px;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    font-size: 0.85rem;
    background: #fafcff;
}

.filtros-bar input:focus,
.filtros-bar select:focus {
    outline: none;
    border-color: #2563EB;
}

/* ===== FORMULÁRIOS ===== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px 24px;
    margin-bottom: 24px;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.campo label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
}

.campo input,
.campo select,
.campo textarea {
    padding: 10px 12px;
    border: 1px solid #d1d9e6;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: 0.15s;
    background: #fafcff;
    width: 100%;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.acao-botoes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

/* ===== CAMPO DIGITAL DESTACADO ===== */
.campo-digital-container {
    background: #f0f9ff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px dashed #0ea5e9;
    margin: 12px 0 16px 0;
    grid-column: 1 / -1;
}

.campo-digital-container label {
    font-weight: 700;
    color: #0369a1;
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.campo-digital-container .input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.campo-digital-container input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.campo-digital-container input:focus {
    border-color: #0ea5e9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.campo-digital-container .helper-text {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== MÊS ANIVERSARIO ===== */
.campo-mes-container {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.campo-mes-container input {
    flex: 1;
}

.btn-atualizar-mes {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-atualizar-mes:hover {
    background: #7c3aed;
    transform: scale(1.02);
}

/* ===== STATUS DE IMPORTAÇÃO ===== */
#statusImportacao {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    display: none;
}

#statusImportacao.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

#statusImportacao.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

#statusImportacao.loading {
    display: block;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #f59e0b;
}

/* ===== OFICINAS ===== */
.oficina-card {
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-left: 5px solid #2563EB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.oficina-card.reverte {
    border-left-color: #10b981;
}

.lista-jovens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.jovem-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: 0.15s;
    font-size: 0.85rem;
}

.jovem-checkbox:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

/* ===== METAS LA ===== */
.meta-card {
    background: white;
    border-radius: 12px;
    padding: 14px 18px;
    border-left: 4px solid #f59e0b;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-card.vencido {
    border-left-color: #ef4444;
    background: #fef2f2;
}

/* ===== LEITOR DIGITAL ===== */
.leitor-digital {
    background: #f0f9ff;
    border: 2px dashed #0ea5e9;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.leitor-digital input {
    font-size: 1.5rem;
    padding: 15px;
    text-align: center;
    letter-spacing: 4px;
    width: 100%;
    max-width: 300px;
    border: 1px solid #d1d9e6;
    border-radius: 10px;
}

/* ===== AVALIAÇÕES ===== */
.avaliacao-item {
    background: #f5f3ff;
    border-left: 4px solid #8b5cf6;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 6px;
}

/* ===== MODAIS ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: white;
    border-radius: 28px;
    padding: 30px;
    max-width: 540px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-box h2 {
    margin-bottom: 20px;
    color: #1A2A4A;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ===== ACOMPANHAMENTO INDIVIDUAL ===== */
.ficha-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.ficha-campo {
    padding: 6px 0;
    border-bottom: 1px solid #e9edf2;
    font-size: 0.9rem;
}

.ficha-campo strong {
    color: #1e2a4a;
    display: block;
    font-size: 0.78rem;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== DOCUMENTOS E OBSERVAÇÕES ===== */
.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
}

.obs-item {
    padding: 10px 14px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #8b5cf6;
}

/* ===== PAINEL DUPLO ===== */
.painel-duplo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.card-aviso {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

.card-alerta {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}

/* ===== CAMPOS EDITÁVEIS NA LISTA ===== */
.lista-horas-input {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    background: #fafcff;
    transition: all 0.2s ease;
}

.lista-horas-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: white;
}

.campo-atualizado {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

.campo-erro {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.tooltip-horas {
    position: relative;
    cursor: help;
}

.tooltip-horas:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 1000;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
    }
    .header-left .page-title {
        font-size: 1rem;
    }
    .cards-grid {
        grid-template-columns: 1fr 1fr;
    }
    .graficos-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .painel-duplo {
        grid-template-columns: 1fr;
    }
    .filtros-bar .filtro-group {
        min-width: 100%;
    }
    .filtros-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .campo-digital-container .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    .campo-digital-container input {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .header {
        padding: 12px 16px;
    }
    .page {
        padding: 16px;
    }
    .filtros-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ===== UTILITÁRIOS ===== */
.flex {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== IMPRESSÃO ===== */
@media print {
    body {
        background: white !important;
        padding: 20px !important;
    }
    .no-print {
        display: none !important;
    }
    .sidebar {
        display: none !important;
    }
    .header {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
    }
    .page {
        padding: 20px !important;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
    }
    .table-wrapper {
        border: 1px solid #e2e8f0 !important;
    }
    th {
        background: #f1f5f9 !important;
    }
}
