/* ==== PALETA GLOBALWEB (mesma do site globalweb.com.br) ==== */
:root {
    --gw-primaria: #3266df;        /* botões e links do site */
    --gw-primaria-escura: #2552bd;
    --gw-primaria-suave: #eaf0fc;
    --gw-marinho: #0a1f44;         /* títulos */
    --gw-texto-2: #4f5e78;         /* texto secundário */
    --gw-muted: #8b95a7;
    --gw-verde: #4db96c;           /* faixa "Somos a Globalweb" / sucesso */
    --gw-verde-escuro: #2f8f4e;
    --gw-coral: #fe3e3e;           /* destaque / perigo */
    --gw-coral-escuro: #d92b2b;
    --gw-ambar: #ffab00;           /* atenção */
    --gw-borda: #e2e4e9;
    --gw-fundo: #f5f6f8;

    --bg-body: var(--gw-fundo); --bg-container: #ffffff; --text-main: var(--gw-marinho);
    --border-color: var(--gw-borda); --header-color: var(--gw-marinho);
    --th-bg: var(--gw-marinho); --info-bg: var(--gw-primaria-suave); --info-border: var(--gw-primaria);
    --font-family: 'Inter', sans-serif;
}
body.dark-mode {
    --gw-primaria: #5a86ea; --gw-primaria-escura: #3266df; --gw-primaria-suave: #16264a;
    --gw-texto-2: #a9b4c8; --gw-muted: #7d889c; --gw-borda: #26334f; --gw-fundo: #0b1426;
    --bg-body: var(--gw-fundo); --bg-container: #111c33; --text-main: #eef1f7;
    --border-color: var(--gw-borda); --header-color: #f0f3fa;
    --th-bg: #050c1c; --info-bg: #16264a; --info-border: #5a86ea;
}
body { font-family: var(--font-family); background-color: var(--bg-body); color: var(--text-main); margin: 0; padding: 15px; transition: 0.3s; font-size: 14px; }
.container { width: 100%; padding: 20px; box-sizing: border-box; background: var(--bg-container); min-height: 95vh; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.hub-nav { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; flex-wrap: wrap; }
.hub-btn { background: transparent; border: none; padding: 10px 18px; font-size: 14px; font-weight: 700; color: #64748b; cursor: pointer; border-radius: 8px; transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; font-family: var(--font-family); }
.hub-btn:hover { background: rgba(50, 102, 223, 0.08); color: var(--gw-primaria); }
.hub-btn.active { background: var(--gw-primaria); color: #ffffff; box-shadow: 0 4px 10px rgba(50, 102, 223, 0.25); }
.hub-tab-content { display: none; }
.hub-tab-content.active { display: block; }
.header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; }
.header h2 { margin: 0; font-size: 24px; color: var(--header-color); font-weight: 800; display: flex; align-items: center; gap: 10px; letter-spacing: -0.5px; }
.controls label { font-weight: 600; margin-right: 5px; font-size: 13px; color: #64748b; }
.controls input[type="date"], .controls input[type="text"], .controls select { padding: 6px 10px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-container); color: var(--text-main); font-family: var(--font-family); font-weight: 500; outline: none; transition: 0.2s;}
.controls input:focus, .controls select:focus { border-color: var(--gw-primaria); box-shadow: 0 0 0 3px rgba(50, 102, 223, 0.1); }
.controls-container { display: flex; flex-direction: column; gap: 10px; align-items: flex-end;}
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
/* Botões no formato do site (pílula). Variantes: primário, secundário, sucesso, perigo, alerta */
.btn-base { border: 1.5px solid transparent; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; color: #ffffff; background-color: var(--gw-primaria); transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s; display: flex; align-items: center; gap: 6px; font-family: var(--font-family); box-shadow: 0 1px 2px rgba(10,31,68,0.12); letter-spacing: 0.1px; }
.btn-base:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(10,31,68,0.16); }
.btn-base:active { transform: translateY(0); }
.btn-base:focus-visible { outline: 3px solid rgba(50, 102, 223, 0.35); outline-offset: 2px; }
.btn-primario, .btn-import, .btn-print { background-color: var(--gw-primaria); color: #ffffff; }
.btn-primario:hover, .btn-import:hover, .btn-print:hover { background-color: var(--gw-primaria-escura); }
.btn-sucesso, .btn-add, .btn-copy { background-color: var(--gw-verde); color: #ffffff; }
.btn-sucesso:hover, .btn-add:hover, .btn-copy:hover { background-color: var(--gw-verde-escuro); }
.btn-perigo { background-color: var(--gw-coral); color: #ffffff; }
.btn-perigo:hover { background-color: var(--gw-coral-escuro); }
.btn-alerta, .btn-ferias { background-color: var(--gw-ambar); color: var(--gw-marinho); }
.btn-secundario, .btn-dark, .btn-login { background-color: var(--bg-container); color: var(--header-color); border-color: var(--border-color); box-shadow: none; }
.btn-secundario:hover, .btn-dark:hover, .btn-login:hover { border-color: var(--gw-primaria); color: var(--gw-primaria); }
.btn-login.btn-perigo { background-color: var(--gw-coral); color: #ffffff; border-color: transparent; }
.painel-oculto { display: none; background-color: var(--bg-container); padding: 20px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 10px 25px rgba(0,0,0,0.1); margin-bottom: 20px; }
.btn-processar { background-color: #334155; color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; margin-top: 10px; transition: 0.2s; }
.btn-processar:hover { opacity: 0.9; }
.info-semana { background-color: var(--info-bg); padding: 10px 15px; border-radius: 8px; border-left: 4px solid var(--info-border); margin-bottom: 15px; font-size: 13px; display: flex; justify-content: space-between; font-weight: 500; color: #0369a1; }
table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); }
th { background-color: var(--th-bg); color: white; padding: 10px 4px; text-align: center; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border-color); border-right: 1px solid #475569; overflow: hidden; }
td { border-bottom: 1px solid var(--border-color); border-right: 1px solid var(--border-color); padding: 6px; text-align: center; vertical-align: middle; transition: 0.2s; font-size: 13px; word-wrap: break-word; }
td:last-child, th:last-child { border-right: none; }
body.is-admin td.dia-celula { cursor: pointer; user-select: none; -webkit-user-select: none; }
body.is-admin td.dia-celula:hover { box-shadow: inset 0 0 0 2px var(--gw-primaria); background-color: rgba(50, 102, 223, 0.05); }
body.is-admin td.nome-celula { cursor: pointer; user-select: none; -webkit-user-select: none; }
body.is-admin td.nome-celula:hover { opacity: 0.8; filter: brightness(0.95); }
tfoot td { background-color: #f1f5f9 !important; color: #334155 !important; font-size: 12px; line-height: 1.4; font-weight: 600; border-top: 2px solid var(--border-color); }
.dark-mode tfoot td { background-color: #0f172a !important; color: #cbd5e1 !important; }
.count-p { color: #10b981; font-weight: 800;} .count-ho { color: var(--gw-primaria); font-weight: 800;} .count-aus { color: #ef4444; font-weight: 800;} .count-f { color: #94a3b8; font-weight: 800; }
#contextMenu { display: none; position: fixed; background: var(--bg-container); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); z-index: 1000; overflow: hidden; min-width: 150px; }
#contextMenu div { padding: 10px 15px; cursor: pointer; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--border-color); color: var(--text-main); transition: 0.1s; }
#contextMenu div:last-child { border-bottom: none; }
#contextMenu div:hover { background-color: #f1f5f9; padding-left: 20px; }
.dark-mode .swal2-popup { background: #1e293b; color: #f8fafc; border-radius: 12px;} .dark-mode .swal2-input, .dark-mode .swal2-select, .dark-mode .swal2-textarea { background: #0f172a; color: #f8fafc; border-color: #334155; }
.badge-proj { display: inline-block; padding: 4px 10px; margin: 4px 3px 0 0; border-radius: 12px; font-size: 10px; font-weight: 800; color: #ffffff; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.badge-CAOA { background-color: var(--gw-primaria); } .badge-COPASA { background-color: #10b981; } .badge-MCTI { background-color: #8b5cf6; } .badge-MPMA { background-color: #ef4444; } .badge-MEC { background-color: #f59e0b; }
.vaga-aberta { background-color: #fee2e2 !important; color: #dc2626 !important; border: 2px dashed #f87171 !important; }
.status-nuvem { font-size: 11px; color: #059669; background: #d1fae5; padding: 4px 10px; border-radius: 12px; border: 1px solid #34d399; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
body:not(.is-admin) .admin-only { display: none !important; }

/* Kanban */
.kanban-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.kanban-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; min-height: 500px; }
@media (max-width: 1024px) { .kanban-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.kanban-column { background: #f8fafc; border: 1px solid var(--border-color); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 450px; transition: background-color 0.2s ease; }
.dark-mode .kanban-column { background: #0f172a; }
.kanban-column.drag-over { background: rgba(50, 102, 223, 0.1); border: 2px dashed var(--gw-primaria); }
.kanban-column-title { font-weight: 700; font-size: 14px; color: var(--header-color); display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 2px solid var(--border-color); }
.kanban-count { background: #cbd5e1; color: #0f172a; font-size: 11px; padding: 2px 8px; border-radius: 12px; font-weight: 800; }
.task-card { background: var(--bg-container); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px; box-shadow: 0 2px 5px rgba(0,0,0,0.04); cursor: pointer; transition: all 0.2s ease; }
.task-card:hover { box-shadow: 0 5px 12px rgba(0,0,0,0.1); transform: translateY(-2px); }
.task-card.dragging { opacity: 0.4; }
.task-title { font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--text-main); word-break: break-word; }
.task-desc { font-size: 11px; color: #64748b; margin-bottom: 8px; font-weight: 400; line-height: 1.4; word-break: break-word; background: rgba(0,0,0,0.02); padding: 5px 8px; border-radius: 6px; border: 1px solid var(--border-color); }
.dark-mode .task-desc { color: #94a3b8; background: rgba(255,255,255,0.03); }
.task-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #64748b; }
.task-user { background: #e2e8f0; color: #334155; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.dark-mode .task-user { background: #334155; color: #f8fafc; }

/* ==== RE-ENQUADRAMENTO GLOBAL DE MODAIS (SWEETALERT2 FRAME FIX) ==== */
.swal2-popup {
    max-width: 95vw !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
    padding: 1.25em 1.5em !important;
    margin: auto !important;
}
.swal2-html-container {
    margin: 0.8em 0 0 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    text-align: left !important;
    box-sizing: border-box !important;
}
.swal2-popup .swal2-input, .swal2-popup .swal2-select, .swal2-popup .swal2-textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 4px 0 12px 0 !important;
}
.swal2-popup .swal2-textarea {
    resize: vertical !important;
    min-height: 70px !important;
    font-family: var(--font-family) !important;
}
/* Inputs inline dentro das abas do sistema (sem margem forçada do SweetAlert2) */
.hub-tab-content .swal2-input,
.hub-tab-content .swal2-select,
.hub-tab-content .swal2-textarea {
    margin: 0 !important;
    box-sizing: border-box !important;
    font-family: var(--font-family) !important;
    background: var(--bg-body);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: none !important;
}
.hub-tab-content .swal2-input:focus,
.hub-tab-content .swal2-select:focus,
.hub-tab-content .swal2-textarea:focus {
    border-color: var(--gw-primaria);
    box-shadow: 0 0 0 2px rgba(50, 102, 223, 0.15) !important;
    outline: none;
}

/* Capacitação Cruzada */
.cs-summary-panel { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.cs-card { flex: 1; min-width: 160px; background: var(--bg-container); border: 1px solid var(--border-color); border-radius: 10px; padding: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.03); text-align: center; }
.cs-card h4 { margin: 0 0 5px 0; font-size: 13px; color: #64748b; }
.cs-card .cs-val { font-size: 24px; font-weight: 800; color: #10b981; }
.status-badge-cs { display: inline-block; padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; color: #fff; cursor: pointer; transition: transform 0.1s ease; }
.status-badge-cs:hover { transform: scale(1.05); }
.status-nao-iniciado { background-color: #94a3b8; } .status-em-treinamento { background-color: #f59e0b; }
.status-operacao-assistida { background-color: var(--gw-primaria); } .status-apto { background-color: #10b981; } .status-multiplicador { background-color: #8b5cf6; }

/* ==== ABA 4: Agenda, Ocorrências e Férias (Painel Único Dinâmico) ==== */
.agenda-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 1100px) { .agenda-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .agenda-kpi-grid { grid-template-columns: 1fr; } }

.agenda-quickbar-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; margin-bottom: 18px; }
@media (max-width: 1050px) { .agenda-quickbar-grid { grid-template-columns: 1fr; } }

.agenda-form-row-grid { display: grid; grid-template-columns: 1.1fr 1.1fr 1.4fr auto; gap: 8px; align-items: center; }
.agenda-ferias-row-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 8px; align-items: center; }
.agenda-hist-filter-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 8px; margin-bottom: 12px; background: rgba(0,0,0,0.02); padding: 10px; border-radius: 8px; border: 1px solid var(--border-color); }
@media (max-width: 768px) {
    .agenda-form-row-grid, .agenda-ferias-row-grid, .agenda-hist-filter-grid {
        grid-template-columns: 1fr !important;
    }
}

.agenda-quick-card {
    background: var(--bg-container);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.agenda-chip-btn {
    background: rgba(124, 58, 237, 0.08);
    color: #6d28d9;
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.agenda-chip-btn:hover { background: #7c3aed; color: #ffffff; border-color: #7c3aed; }
.dark-mode .agenda-chip-btn { background: rgba(139, 92, 246, 0.18); color: #c4b5fd; border-color: rgba(139, 92, 246, 0.35); }
.dark-mode .agenda-chip-btn:hover { background: #7c3aed; color: #ffffff; }

.ferias-preset-btn {
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.3);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ferias-preset-btn:hover { background: #16a34a; color: #ffffff; border-color: #16a34a; }
.dark-mode .ferias-preset-btn { background: rgba(34, 197, 94, 0.18); color: #86efac; border-color: rgba(34, 197, 94, 0.35); }

.agenda-diario-layout { display: grid; grid-template-columns: 350px 1fr; gap: 18px; align-items: start; }
@media (max-width: 980px) { .agenda-diario-layout { grid-template-columns: 1fr; } }
.painel-estatico { background-color: var(--bg-container); padding: 18px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.painel-estatico h3 { margin: 0 0 14px 0; color: var(--header-color); font-size: 15px; font-weight: 800; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.agenda-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.agenda-day-header { font-weight: 700; font-size: 11px; color: #64748b; padding: 5px 0; }
.agenda-day-cell { padding: 6px 3px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all 0.15s ease; min-height: 46px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.agenda-day-cell:hover { background: #e2e8f0; }
.dark-mode .agenda-day-cell:hover { background: #334155; }
.agenda-day-cell.selected { border-color: var(--gw-primaria); background: rgba(50, 102, 223, 0.15); color: var(--gw-primaria); font-weight: 800; }
.agenda-day-cell.today-cell { border: 1.5px solid #f59e0b; }

.agenda-dots-container { display: flex; justify-content: center; gap: 3px; margin-top: 2px; min-height: 5px; }
.dot-ind { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-agenda { background-color: #7c3aed; }
.dot-ferias { background-color: #16a34a; }
.dot-ausencia { background-color: #ef4444; }

/* ==== MODAL: Edição de Analista (editarProjetos) ==== */
/*
 * PROBLEMA ORIGINAL: .swal2-select aplica width:auto e margin:auto que
 * anulavam o width:100% dos inline styles, quebrando o alinhamento.
 * SOLUCAO: classes dedicadas com !important onde necessario para vencer
 * a especificidade do SweetAlert2, sem conflito com o resto do app.
 */
.modal-form {
    text-align: left;
    padding: 4px 2px;
    font-size: 13px;
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    gap: 0;
}
.modal-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}
.modal-label {
    font-weight: 700;
    font-size: 12px;
    color: #475569;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.dark-mode .modal-label { color: #94a3b8; }
/* Overrides diretos do swal2-select e swal2-input — resolve o conflito de width */
.modal-form .swal2-select,
.modal-form select {
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    font-family: var(--font-family) !important;
    border: 1.5px solid var(--border-color) !important;
    background: var(--bg-container) !important;
    color: var(--text-main) !important;
    box-sizing: border-box !important;
    height: auto !important;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.modal-form .swal2-select:focus,
.modal-form select:focus {
    border-color: var(--gw-primaria) !important;
    box-shadow: 0 0 0 3px rgba(50, 102, 223,0.12) !important;
    outline: none !important;
}
/* Projetos: checkboxes em grid de 3 colunas para alinhamento perfeito */
.modal-projetos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 12px;
    padding: 10px 12px;
    background: rgba(50, 102, 223,0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.modal-projetos-grid label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    color: var(--text-main);
}
.modal-projetos-grid input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--gw-primaria);
    cursor: pointer;
    flex-shrink: 0;
}
.modal-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 4px 0 14px 0;
}
.modal-section-title {
    font-weight: 700;
    font-size: 12px;
    color: var(--gw-primaria);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
/* Grid dos dias: 2 colunas, cada célula é um flex column — label + select sempre alinhados */
.modal-dias-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.modal-dia-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.modal-dia-item label {
    font-weight: 600;
    font-size: 11px;
    color: #64748b;
}
/* Select dos dias herda as regras de .modal-form select acima */

/* ================================================================
   MOBILE RESPONSIVO — Escala SD CCO Globalweb
   Estrategia: Scroll Horizontal + Sticky Columns (3 primeiras)
   Racional: A tabela e 2D (pessoas x dias), essencial para o
   supervisor comparar todos de relance. Cards empilhados
   destruiriam esse modelo mental. O scroll horizontal e o
   padrao da industria para planilhas/escalas no mobile.
================================================================= */

/* Wrapper que habilita o scroll horizontal na tabela */
.table-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* scroll suave no iOS */
    border-radius: 8px;
    border: 1px solid var(--border-color);
    /* Degradê sutil nas bordas indicando que ha conteudo fora da tela */
    background:
        linear-gradient(to right,  var(--bg-container) 10px, transparent 10px),
        linear-gradient(to left,   var(--bg-container) 10px, transparent 10px) right,
        radial-gradient(farthest-side at 0,   rgba(0,0,0,.08), transparent) 0 0,
        radial-gradient(farthest-side at 100%, rgba(0,0,0,.08), transparent) right;
    background-repeat: no-repeat;
    background-size: 30px 100%, 30px 100%, 12px 100%, 12px 100%;
    background-attachment: local, local, scroll, scroll;
}
/* A tabela dentro do wrapper perde a borda propria (wrapper assume) */
.table-scroll-wrapper > table {
    border: none;
    border-radius: 0;
    /* largura minima: impede compressao alem de 620px */
    min-width: 620px;
}

/* ==== MEDIA QUERY: Telas ate 768px (celulares) ==== */
@media (max-width: 768px) {

    /* --- Body e Container --- */
    body { padding: 8px; }
    .container { padding: 12px; border-radius: 8px; min-height: auto; }

    /* --- Hub de Navegacao: vira um carrossel horizontal ---
       Evita que os botoes quebrem linha e comprimam o conteudo */
    .hub-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 12px;
        margin-bottom: 15px;
        scrollbar-width: none;       /* Firefox: sem scrollbar visivel */
    }
    .hub-nav::-webkit-scrollbar { display: none; } /* Chrome / Safari */
    .hub-btn {
        flex-shrink: 0;              /* impede compressao dos botoes */
        padding: 10px 14px;
        font-size: 12px;
        min-height: 44px;            /* WCAG 2.1 touch target minimo */
        white-space: nowrap;
    }

    /* --- Header principal: empilha verticalmente --- */
    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-bottom: 12px;
    }
    .header h2 { font-size: 16px; flex-wrap: wrap; gap: 6px; line-height: 1.4; }
    .status-nuvem { font-size: 10px; padding: 3px 8px; }

    /* --- Controles de filtro: empilham em coluna ---
       Garante que label + input/select fiquem alinhados verticalmente */
    .controls {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    .controls > div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .controls input[type="date"],
    .controls input[type="text"],
    .controls select {
        width: 100% !important;
        box-sizing: border-box;
        padding: 11px 12px;
        font-size: 14px;
        min-height: 44px;            /* touch target */
    }
    .controls label { font-size: 12px; margin-right: 0; }

    /* --- Botoes de acao: cada grupo ocupa a linha inteira ---
       flex: 1 distribui o espaco igualmente entre irmaos */
    .controls-container { align-items: stretch; width: 100%; }
    .btn-group { gap: 6px; }
    .btn-base {
        min-height: 44px;
        padding: 10px 10px;
        font-size: 12px;
        flex: 1;
        justify-content: center;
    }

    /* --- Info da semana: empilha em vez de space-between --- */
    .info-semana {
        flex-direction: column;
        gap: 4px;
        font-size: 12px;
        padding: 8px 12px;
    }

    /* ==== TABELA PRINCIPAL: Scroll + Sticky Cols ====
       As 3 primeiras colunas (cor, PC, nome) ficam fixas
       enquanto os 7 dias de escala rolam horizontalmente.
       Isso mantem o contexto do analista visivel sempre. */

    /* Coluna 1: barra de cor */
    #escalaTable thead tr:first-child th:nth-child(1),
    #escalaTable tbody tr td:nth-child(1) {
        position: sticky;
        left: 0;
        z-index: 4;
    }
    /* Coluna 2: estacao / PC — posicionada logo apos a col de cor */
    #escalaTable thead tr:first-child th:nth-child(2),
    #escalaTable tbody tr td:nth-child(2) {
        position: sticky;
        left: 14px; /* largura da coluna de cor no mobile */
        z-index: 4;
    }
    /* Coluna 3: nome do analista — sombra indica conteudo rolando atras */
    #escalaTable thead tr:first-child th:nth-child(3),
    #escalaTable tbody tr td:nth-child(3) {
        position: sticky;
        left: 62px; /* 14px (cor) + 48px (PC) */
        z-index: 4;
        box-shadow: 3px 0 6px rgba(0,0,0,0.14);
    }

    /* Backgrounds opacos nas celulas sticky —
       sem isso o conteudo rolado aparece por tras */
    #escalaTable thead tr:first-child th:nth-child(1) { background-color: #1e293b !important; }
    #escalaTable thead tr:first-child th:nth-child(2) { background-color: #334155 !important; }
    #escalaTable thead tr:first-child th:nth-child(3) { background-color: var(--gw-primaria) !important; }
    #escalaTable tbody tr td:nth-child(1) { background-color: inherit; }
    #escalaTable tbody tr td:nth-child(2),
    #escalaTable tbody tr td:nth-child(3)  { background-color: var(--bg-container); }
    .dark-mode #escalaTable tbody tr td:nth-child(2),
    .dark-mode #escalaTable tbody tr td:nth-child(3) { background-color: #1e293b; }

    /* Larguras compactas no mobile para as colunas fixas */
    #escalaTable thead tr:first-child th:nth-child(1) { width: 14px !important; min-width: 14px; }
    #escalaTable thead tr:first-child th:nth-child(2) { width: 48px !important; min-width: 48px; }
    #escalaTable thead tr:first-child th:nth-child(3) { width: 120px !important; min-width: 120px; }

    /* Celulas menores no mobile: mais dados caem na tela */
    th { padding: 7px 3px; font-size: 10px; }
    td { padding: 5px 3px; font-size: 11px; }

    /* Touch target minimo nas celulas de dia (clique para editar) */
    td.dia-celula { min-width: 54px; min-height: 44px; }

    /* Badges de projeto: menores */
    .badge-proj { padding: 2px 5px; font-size: 9px; margin: 2px 1px 0 0; }

    /* Rodape totais: mais compacto */
    tfoot td { font-size: 10px; line-height: 1.3; padding: 4px 3px; }

    /* --- Painel de Ferias: inputs empilham --- */
    .painel-oculto { padding: 12px; }
    #painelFerias .controls {
        flex-direction: column !important;
        gap: 10px !important;
    }
    #painelFerias .controls > div { width: 100%; }
    #painelFerias select,
    #painelFerias input[type="date"] {
        width: 100%;
        min-height: 44px;
        box-sizing: border-box;
        display: block;
        margin-top: 4px;
    }
    #painelFerias .btn-base { flex: none; width: 100%; justify-content: center; }

    /* --- Kanban: colapsa para coluna unica ---
       Drag-and-drop e desconfortavel no mobile; colunas empilhadas
       sao a melhor alternativa sem reescrever a logica */
    .kanban-grid { grid-template-columns: 1fr; min-height: auto; }
    .kanban-column { min-height: 150px; }
    .kanban-header { flex-direction: column; gap: 10px; align-items: stretch; }
    .kanban-header .btn-base { justify-content: center; flex: none; }

    /* --- CapacitaÃ§Ã£o Cruzada: header empilha; tabela usa scroll do wrapper --- */
    #tab-cross-skilling > div:first-child {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    #tab-cross-skilling > div:first-child > div {
        flex-direction: column;
        width: 100%;
    }
    #tab-cross-skilling > div:first-child .btn-base { justify-content: center; }
    .cs-summary-panel { gap: 10px; }
    .cs-card { min-width: 100px; }

    /* --- Aba Agenda: header e controles empilham --- */
    #tab-agenda > div:first-child {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    #tab-agenda > div:first-child .btn-base { justify-content: center; }
    .painel-estatico { padding: 14px; }
    .painel-estatico h3 { font-size: 14px; }
    #dataDiario {
        width: 100%;
        min-height: 44px;
        box-sizing: border-box;
        display: block;
        margin-top: 4px;
    }
    /* Formulario de agenda parcial: select e input full-width */
    #agendaSelectColab, #agendaTextEvento {
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: 44px !important;
        padding: 10px 12px !important;
        margin: 0 !important;
    }
    /* Botao de registrar compromisso: full-width */
    #agendaFormArea .btn-base { flex: none !important; }
}

/* ==== MEDIA QUERY: Telas muito pequenas < 480px ==== */
@media (max-width: 480px) {
    body { padding: 5px; }
    .container { padding: 8px; }
    .header h2 { font-size: 14px; }
    /* Hub: emojis ficam menores, texto encurtado naturalmente pelo flex-shrink: 0 */
    .hub-btn { padding: 9px 10px; font-size: 11px; }
    .btn-base { font-size: 11px; padding: 10px 8px; }
}

/* ==== STYLES PARA KANBAN CONCLUIDO (VERDE) E FEEDBACK ==== */
.task-card.task-concluido {
    background-color: #d1fae5 !important;
    border: 1.5px solid #10b981 !important;
    color: #065f46 !important;
}
.dark-mode .task-card.task-concluido {
    background-color: #064e3b !important;
    border: 1.5px solid #34d399 !important;
    color: #a7f3d0 !important;
}
.task-card.task-concluido .task-title {
    color: #065f46 !important;
}
.dark-mode .task-card.task-concluido .task-title {
    color: #a7f3d0 !important;
}
.badge-feedback {
    background: #8b5cf6;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    margin-right: 5px;
}

.fb-summary-panel { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.fb-card { flex: 1; min-width: 160px; background: var(--bg-container); border: 1px solid var(--border-color); border-radius: 10px; padding: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.03); text-align: center; }
.fb-card h4 { margin: 0 0 5px 0; font-size: 13px; color: #64748b; }
.fb-card .fb-val { font-size: 24px; font-weight: 800; color: var(--gw-primaria); }
.status-badge-fb { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; color: #fff; cursor: pointer; }
.status-fb-pendente { background-color: #f59e0b; }
.status-fb-andamento { background-color: var(--gw-primaria); }
.status-fb-concluido { background-color: #10b981; }

/* ====== KPI DASHBOARD CARDS (Relatorio Quinzenal) ====== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.dark-mode .kpi-card { background: #1e293b; border-color: #334155; }
.kpi-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); }
.kpi-card.kpi-ok  { border-left: 4px solid #16a34a; }
.kpi-card.kpi-err { border-left: 4px solid #f59e0b; }
.kpi-card.kpi-info { border-left: 4px solid var(--gw-primaria); }
.kpi-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1.3;
}
.kpi-value {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.dark-mode .kpi-value { color: #f1f5f9; }
.kpi-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}
.kpi-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    width: fit-content;
    margin-top: 2px;
}
.kpi-badge.meta-ok  { background: #dcfce7; color: #15803d; }
.kpi-badge.meta-err { background: #fef3c7; color: #b45309; }
.kpi-badge.meta-na  { background: #f1f5f9; color: #64748b; }
.rq-form-section { background: var(--bg-container); border: 1px solid var(--border-color); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.rq-form-section h4 { margin: 0 0 12px 0; color: var(--header-color); font-size: 14px; }
.rq-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
.rq-form-grid label { font-size: 11px; font-weight: 700; color: #475569; display: block; margin-bottom: 3px; }
.rq-form-grid input { width: 100%; box-sizing: border-box; height: 36px; padding: 0 10px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 13px; background: var(--bg-body); color: var(--text-main); }
.rq-form-grid input:focus { outline: none; border-color: var(--gw-primaria); box-shadow: 0 0 0 2px rgba(50, 102, 223,0.15); }

/* ====== FOLHA A4 - ESTILO CORPORATIVO HARMONIOSO ====== */
.a4-preview-wrapper {
    background: #cbd5e1;
    padding: 24px 14px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    overflow-x: auto;
}
.dark-mode .a4-preview-wrapper {
    background: #0f172a;
}
.a4-sheet {
    background: #ffffff;
    color: #1e293b;
    width: 210mm;
    max-width: 100%;
    min-height: 297mm;
    box-sizing: border-box;
    padding: 16mm 18mm 14mm 18mm;
    border-radius: 4px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
    font-family: 'Segoe UI', Calibri, Arial, sans-serif;
    font-size: 11.5px;
    line-height: 1.5;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.a4-sheet table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    line-height: 1.4;
}
.a4-sheet th, .a4-sheet td {
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
}
.a4-sheet th {
    background: #1e293b;
    color: #ffffff;
    font-weight: 700;
    font-size: 11px;
}
.a4-header-banner {
    background: linear-gradient(135deg, #1e3a8a, var(--gw-primaria-escura));
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.a4-header-mini {
    border-bottom: 2px solid #1e3a8a;
    padding-bottom: 6px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #475569;
    font-weight: 700;
}
.a4-section-title {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 4px;
}
.a4-card-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 14px;
}
.a4-footer {
    border-top: 1px solid #cbd5e1;
    padding-top: 8px;
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #64748b;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm 12mm;
    }
    .a4-preview-wrapper {
        background: transparent !important;
        padding: 0 !important;
        gap: 0 !important;
    }
    .a4-sheet {
        width: 100% !important;
        min-height: auto !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        page-break-after: always !important;
        break-after: page !important;
    }
    .a4-sheet:last-child {
        page-break-after: auto !important;
        break-after: auto !important;
    }
}

/* ======================================================
   ABA PAUSAS & ALMOÇOS — CSS Completo
====================================================== */

/* Relógio em tempo real */
.pausas-relogio {
    font-size: 28px;
    font-weight: 800;
    color: var(--header-color);
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Wrapper da tabela de pausas com scroll horizontal */
.pausas-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}
.pausas-table-wrapper > table {
    border: none;
    border-radius: 0;
    min-width: 1100px;
    table-layout: auto;
}

/* Linha em pausa ativa — fundo amarelo */
.linha-em-pausa {
    background-color: #fef9c3 !important;
    transition: background-color 0.5s ease;
}
.linha-em-pausa td {
    background-color: #fef9c3 !important;
}
.dark-mode .linha-em-pausa,
.dark-mode .linha-em-pausa td {
    background-color: #422006 !important;
}

/* Linha em almoço ativo — fundo laranja claro */
.linha-em-almoco {
    background-color: #fff7ed !important;
    transition: background-color 0.5s ease;
}
.linha-em-almoco td {
    background-color: #fff7ed !important;
}
.dark-mode .linha-em-almoco,
.dark-mode .linha-em-almoco td {
    background-color: #431407 !important;
}

/* Conflito geral (2+ técnicos com mesmo almoço) */
.conflito-geral td {
    border-top: 2px solid #ef4444 !important;
    border-bottom: 2px solid #ef4444 !important;
}
.conflito-geral td:first-child { border-left: 3px solid #ef4444 !important; }
.conflito-geral td:last-child  { border-right: 3px solid #ef4444 !important; }

/* Conflito por cliente (crítico — mesmo cliente sem cobertura) */
.conflito-cliente td {
    border-top: 2px solid #f97316 !important;
    border-bottom: 2px solid #f97316 !important;
}
.conflito-cliente td:first-child { border-left: 3px solid #f97316 !important; }
.conflito-cliente td:last-child  { border-right: 3px solid #f97316 !important; }

/* Badges de status da coluna "Situação Atual" */
.pausa-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.pausa-badge.badge-ok       { background: #dcfce7; color: #15803d; }
.pausa-badge.badge-pausa1   { background: #fef9c3; color: #854d0e; }
.pausa-badge.badge-pausa2   { background: #fef3c7; color: #92400e; }
.pausa-badge.badge-almoco   { background: #fff7ed; color: #c2410c; }
.pausa-badge.badge-encerrou { background: #f1f5f9; color: #64748b; }

/* Inputs de hora embutidos nas células */
.pausas-time-input {
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 5px;
    border-radius: 5px;
    width: 72px;
    text-align: center;
    cursor: default;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}
body.is-admin .pausas-time-input {
    cursor: pointer;
}
body.is-admin .pausas-time-input:hover {
    border-color: var(--gw-primaria);
    background: rgba(50, 102, 223,0.06);
}
body.is-admin .pausas-time-input:focus {
    border-color: var(--gw-primaria);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(50, 102, 223,0.12);
}

/* Coluna de jornada */
.pausas-jornada-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}
.pausas-jornada-badge.j6h { background: #dbeafe; color: var(--gw-primaria-escura); }
.pausas-jornada-badge.j8h { background: #f3e8ff; color: #6d28d9; }

/* Painel de alertas de conflito */
.pausas-alerta-conflito {
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.pausas-alerta-conflito.alerta-cliente {
    background: #fff7ed;
    border-color: #f97316;
    color: #9a3412;
}
.pausas-alerta-conflito.alerta-geral {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}
.dark-mode .pausas-alerta-conflito.alerta-cliente { background: #431407; color: #fdba74; }
.dark-mode .pausas-alerta-conflito.alerta-geral   { background: #450a0a; color: #fca5a5; }

/* Select de jornada inline */
.pausas-jornada-select {
    border: 1px solid var(--border-color);
    background: var(--bg-container);
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
}
body:not(.is-admin) .pausas-jornada-select { pointer-events: none; }

.linha-ausente td { background-color: #f8fafc !important; color: #94a3b8; }
body.dark-mode .linha-ausente td { background-color: #0f172a !important; color: #64748b !important; }
.pausa-badge.badge-feriado { background: #ffedd5 !important; color: #c2410c !important; border: 1px solid #fed7aa !important; font-weight: 700; }
body.dark-mode .pausa-badge.badge-feriado { background: #431407 !important; color: #fed7aa !important; border-color: #7c2d12 !important; }
.dark-mode .modal-projetos-grid { background: rgba(50, 102, 223, 0.08); }


/* ========================================================
   TABELA DE 2 LINHAS: MONITOR DE COBERTURA & DIMENSIONAMENTO CCO
   Design executivo em linha reta, sem redundâncias
   ======================================================== */
.monitor-cockpit-wrapper {
    background: var(--bg-container);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}
.monitor-cockpit-wrapper.alerta-sla-ativo {
    border: 2px solid #ef4444 !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.2) !important;
}
.cockpit-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tabela-cockpit-2linhas {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    text-align: center;
    font-size: 12px;
    margin: 0;
}
/* LINHA 1: CABEÇALHO */
.tabela-cockpit-2linhas thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 11px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.tabela-cockpit-2linhas thead th:last-child {
    border-right: none;
}
body.dark-mode .tabela-cockpit-2linhas thead th {
    background: #0f172a;
    color: #94a3b8;
    border-color: #334155;
}
.tabela-cockpit-2linhas thead th.th-modulo {
    text-align: left;
    padding-left: 14px;
    min-width: 180px;
}
.tabela-cockpit-2linhas thead th.th-contrato {
    cursor: pointer;
    transition: background 0.15s ease;
    min-width: 130px;
}
.tabela-cockpit-2linhas thead th.th-contrato:hover {
    background: #f1f5f9;
}
body.dark-mode .tabela-cockpit-2linhas thead th.th-contrato:hover {
    background: #1e293b;
}
.th-horario-sub {
    font-size: 10px;
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
    opacity: 0.9;
}
.tabela-cockpit-2linhas thead th.th-total {
    min-width: 110px;
}
.tabela-cockpit-2linhas thead th.th-acao {
    min-width: 100px;
}

/* LINHA 2: CORPO (VALORES & STATUS) */
.tabela-cockpit-2linhas tbody td {
    padding: 8px 10px;
    background: var(--bg-container);
    color: var(--text-main);
    border-right: 1px solid var(--border-color);
    vertical-align: middle;
    font-size: 12px;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.tabela-cockpit-2linhas tbody td:last-child {
    border-right: none;
}
body.dark-mode .tabela-cockpit-2linhas tbody td {
    border-color: #334155;
}
.tabela-cockpit-2linhas tbody td.td-modulo-status {
    text-align: left;
    padding-left: 14px;
}
.tabela-cockpit-2linhas tbody td.td-contrato-celula {
    cursor: pointer;
    font-weight: 600;
}
.tabela-cockpit-2linhas tbody td.td-contrato-celula:hover {
    filter: brightness(0.96);
}

/* STATUS DAS CÉLULAS DOS CONTRATOS */
.td-status-ok {
    background: #f0fdf4 !important;
    color: #15803d !important;
}
body.dark-mode .td-status-ok {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #34d399 !important;
}

.td-status-alerta {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    font-weight: 800 !important;
    animation: pulseAlertaCel 1.8s infinite;
}
body.dark-mode .td-status-alerta {
    background: #450a0a !important;
    color: #fca5a5 !important;
}
@keyframes pulseAlertaCel {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.td-status-fechado {
    background: #f8fafc !important;
    color: #94a3b8 !important;
    font-size: 11px;
}
body.dark-mode .td-status-fechado {
    background: rgba(15, 23, 42, 0.5) !important;
    color: #64748b !important;
}

/* BOTÃO EXPANDIR / RECOLHER GRADE */
.btn-cockpit-grade {
    background: var(--gw-primaria);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s ease;
}
.btn-cockpit-grade:hover {
    background: var(--gw-primaria-escura);
}

/* GAVETA RECOLHÍVEL (CARDS E MATRIZ HORÁRIA) */
.cockpit-gaveta-corpo {
    border-top: 1px solid var(--border-color);
    background: var(--bg-body);
    padding: 12px 14px 16px 14px;
}
.col-indicador-neutro {
    background-color: #cbd5e1 !important;
    width: 10px !important;
    min-width: 10px !important;
    max-width: 10px !important;
    padding: 0 !important;
}
body.dark-mode .col-indicador-neutro {
    background-color: #334155 !important;
}

.monitor-cob-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
@media (max-width: 1280px) {
    .monitor-cob-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}
.card-contrato {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card-contrato:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    border-color: var(--gw-primaria);
}
.card-contrato.card-contrato-selecionado {
    border-color: var(--gw-primaria) !important;
    box-shadow: 0 0 0 3px rgba(50, 102, 223, 0.25) !important;
    background: rgba(50, 102, 223, 0.04) !important;
}
.card-contrato.alerta-descoberto {
    border: 2px solid #ef4444 !important;
    background: #fef2f2 !important;
    animation: pulseCard 2s infinite;
}
.dark-mode .card-contrato.alerta-descoberto {
    background: #450a0a !important;
    border-color: #ef4444 !important;
}
@keyframes pulseCard {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.card-contrato-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.card-proj-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
}
.card-horario-tag {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    background: rgba(0,0,0,0.04);
    padding: 2px 6px;
    border-radius: 4px;
}
.dark-mode .card-horario-tag { background: rgba(255,255,255,0.06); color: #94a3b8; }
.card-metric-container {
    margin: 8px 0;
    text-align: left;
}
.card-metric-num {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.card-metric-num.ativo { color: #16a34a; }
.card-metric-num.descoberto { color: #dc2626; }
.card-metric-num.fechado { color: #64748b; }
.card-metric-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}
.card-submetricas {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 10.5px;
    color: #64748b;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--border-color);
}
.card-submetricas span { display: inline-flex; align-items: center; gap: 3px; }
.grade-cob-wrapper {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    overflow-x: auto;
}
.grade-cob-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
    font-size: 11px;
    text-align: center;
}
.grade-cob-table th {
    background: #334155;
    color: #f8fafc;
    padding: 6px 4px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
}
.grade-cob-table td {
    padding: 6px 2px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    border: 1px solid rgba(0,0,0,0.05);
}
.cel-cob-fechado { background: #f1f5f9; color: #94a3b8; font-weight: 400; }
.dark-mode .cel-cob-fechado { background: #0f172a; color: #475569; }
.cel-cob-ok { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0 !important; }
.dark-mode .cel-cob-ok { background: #064e3b; color: #6ee7b7; border-color: #047857 !important; }
.cel-cob-alerta { background: #fef3c7; color: #b45309; border: 1px solid #fde68a !important; }
.dark-mode .cel-cob-alerta { background: #78350f; color: #fde68a; border-color: #b45309 !important; }
.cel-cob-perigo { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5 !important; }
.dark-mode .cel-cob-perigo { background: #7f1d1d; color: #fca5a5; border-color: #ef4444 !important; }
    
/* ========================================================
   MENU 3 RISCOS DISCRETO ESTILO NAVEGADOR CHROME
   ======================================================== */
.hub-topbar-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1200;
}
.chrome-menu-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.btn-chrome-3riscos {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-container);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 0;
}
.btn-chrome-3riscos:hover, .btn-chrome-3riscos.menu-open {
    background: rgba(50, 102, 223, 0.1);
    border-color: var(--gw-primaria);
    color: var(--gw-primaria);
    transform: scale(1.03);
}
body.dark-mode .btn-chrome-3riscos:hover, body.dark-mode .btn-chrome-3riscos.menu-open {
    background: rgba(50, 102, 223, 0.2);
    color: #60a5fa;
}
.chrome-active-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(50, 102, 223, 0.08);
    border: 1px solid rgba(50, 102, 223, 0.2);
    color: var(--header-color);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: all 0.18s ease;
}
.chrome-active-pill:hover {
    background: rgba(50, 102, 223, 0.14);
    border-color: rgba(50, 102, 223, 0.35);
}
body.dark-mode .chrome-active-pill {
    background: rgba(50, 102, 223, 0.15);
    border-color: rgba(50, 102, 223, 0.3);
    color: #f8fafc;
}

/* POPOVER MENU FLUTUANTE ESTILO CHROME */
.chrome-popover-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 285px;
    background: var(--bg-container);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    display: none;
    flex-direction: column;
    z-index: 9999;
    transform-origin: top left;
    animation: chromeMenuPop 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}
body.dark-mode .chrome-popover-menu {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}
.chrome-popover-menu.open {
    display: flex;
}
@keyframes chromeMenuPop {
    0% { opacity: 0; transform: scale(0.92) translateY(-6px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.chrome-menu-section-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    padding: 6px 16px 4px 16px;
    user-select: none;
}
.chrome-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 9px 16px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease;
}
.chrome-menu-item:hover {
    background: rgba(50, 102, 223, 0.09);
}
body.dark-mode .chrome-menu-item:hover {
    background: rgba(50, 102, 223, 0.18);
}
.chrome-menu-item .cm-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.chrome-menu-item .cm-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chrome-menu-item .cm-check {
    font-size: 13px;
    font-weight: 800;
    color: var(--gw-primaria);
    opacity: 0;
    transition: opacity 0.15s ease;
}
body.dark-mode .chrome-menu-item .cm-check {
    color: #60a5fa;
}
.chrome-menu-item.active {
    background: rgba(50, 102, 223, 0.07);
    color: var(--gw-primaria);
    font-weight: 700;
}
body.dark-mode .chrome-menu-item.active {
    background: rgba(50, 102, 223, 0.15);
    color: #60a5fa;
}
.chrome-menu-item.active .cm-check {
    opacity: 1;
}
.chrome-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

/* CHECKBOX CARDS DO MODAL DE RELATÓRIO EXCEL COMPLETO */
.excel-abas-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    text-align: left;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
}
.excel-aba-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--bg-body);
    user-select: none;
}
.excel-aba-option:hover {
    border-color: var(--gw-primaria);
    background: rgba(50, 102, 223, 0.05);
}
.excel-aba-option input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #10b981;
    cursor: pointer;
    flex-shrink: 0;
}
.excel-aba-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.excel-aba-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}
.excel-aba-desc {
    font-size: 11px;
    color: #64748b;
}


/* ==== ESCALA 5.0 ==== */
.versao-badge { display: none !important; }
.modal-opcoes-especiais { background: #f8fafc; padding: 10px; border-radius: 8px; border: 1px solid var(--border-color); }
.modal-opcoes-especiais label { display: block; margin-bottom: 5px; font-weight: 600; }
.modal-opcoes-especiais label:last-child { margin-bottom: 0; }
.dark-mode .modal-opcoes-especiais { background: #0f172a; }
.pausas-cell-text { font-weight: 600; color: #475569; }
.dark-mode .pausas-cell-text { color: #cbd5e1; }

/* ==== PAUSAS 5.0: contratos, sugestão, choques e linha do tempo ==== */
.pausas-contratos .badge-proj { margin: 2px 2px 0 0; padding: 2px 7px; font-size: 9.5px; }

.pausas-alerta-lista { border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; border: 1px solid #fdba74; border-left: 4px solid #f97316; background: #fff7ed; color: #7c2d12; font-size: 12px; }
.pausas-alerta-lista ul { margin: 6px 0 0 0; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.pausas-alerta-lista li .badge-proj { margin: 0 4px 0 0; padding: 1px 7px; font-size: 9.5px; }
.pausas-alerta-titulo { font-weight: 800; font-size: 12.5px; }
.pausas-alerta-lista .choque-critico { color: #b91c1c; }
.pausas-alerta-lista .choque-info { color: #64748b; }
.pausas-alerta-lista.pausas-alerta-ok { border-color: #86efac; border-left-color: #16a34a; background: #f0fdf4; color: #166534; font-weight: 600; }
.pausas-alerta-lista.pausas-alerta-orfas { border-color: #cbd5e1; border-left-color: #475569; background: #f8fafc; color: #334155; }
.dark-mode .pausas-alerta-lista { background: #431407; color: #fed7aa; border-color: #9a3412; }
.dark-mode .pausas-alerta-lista .choque-critico { color: #fca5a5; }
.dark-mode .pausas-alerta-lista .choque-info { color: #94a3b8; }
.dark-mode .pausas-alerta-lista.pausas-alerta-ok { background: #052e16; color: #86efac; border-color: #166534; }
.dark-mode .pausas-alerta-lista.pausas-alerta-orfas { background: #0f172a; color: #cbd5e1; border-color: #334155; }

.sug-celula { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; margin-bottom: 4px; }
.sug-item { font-size: 10.5px; font-weight: 600; color: #64748b; background: #f1f5f9; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.sug-item.sug-muda { color: #5b21b6; background: #ede9fe; font-weight: 800; }
.sug-excecao { font-size: 10px; color: #b45309; background: #fef3c7; border-radius: 6px; padding: 1px 6px; }
.sug-aplicar { border: none; background: #7c3aed; color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 6px; cursor: pointer; }
.sug-aplicar:hover { background: #6d28d9; }
.sug-ok { font-size: 10.5px; color: #16a34a; font-weight: 700; }
.dark-mode .sug-item { background: #1e293b; color: #94a3b8; }
.dark-mode .sug-item.sug-muda { background: #2e1065; color: #c4b5fd; }
.dark-mode .sug-excecao { background: #422006; color: #fcd34d; }

.pausas-linha-tempo-wrapper { margin-bottom: 14px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-container); }
.pausas-linha-tempo-wrapper > summary { cursor: pointer; padding: 10px 14px; font-weight: 700; font-size: 13px; color: var(--header-color); }
#pausas-linha-tempo { padding: 0 14px 12px 14px; }
.lt-legenda { font-size: 11px; color: #64748b; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.lt-seg-leg { display: inline-block; width: 14px; height: 10px; border-radius: 3px; position: static !important; }
.lt-scroll { overflow-x: auto; }
.lt-bloco { min-width: 760px; margin-bottom: 12px; border-top: 1px dashed var(--border-color); padding-top: 6px; }
.lt-linha { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 8px; min-height: 20px; }
.lt-nome { font-size: 11.5px; font-weight: 600; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-nome-cob { color: #64748b; font-style: italic; }
.lt-trilho { position: relative; height: 14px; background: rgba(148, 163, 184, 0.12); border-radius: 4px; }
.lt-escala { background: transparent; height: 16px; }
.lt-hora { position: absolute; top: 0; transform: translateX(-50%); font-size: 9.5px; color: #94a3b8; font-weight: 700; }
.lt-turno, .lt-seg, .lt-cob { position: absolute; top: 0; height: 100%; border-radius: 3px; }
.lt-turno, .lt-turno-leg { background: #bfdbfe; }
.lt-seg { z-index: 1; }
.lt-p1, .lt-p2 { background: #f59e0b; }
.lt-alm { background: #ea580c; }
.lt-cob { border-radius: 0; }
.lt-cob-ok { background: #86efac; }
.lt-cob-1 { background: #fde68a; }
.lt-cob-0 { background: #ef4444; }
.lt-cob-fechado { background: transparent; }
.dark-mode .lt-turno, .dark-mode .lt-turno-leg { background: #1e3a8a; }


/* ==== CABEÇALHO PADRÃO DAS ABAS (logo Globalweb + título) ==== */
.gw-titulo { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 22px !important; font-weight: 800; color: var(--header-color); letter-spacing: -0.4px; }
.gw-logo-titulo { width: 30px; height: 30px; flex-shrink: 0; }
.header h2.gw-titulo { font-size: 24px !important; }
@media (max-width: 768px) { .gw-titulo { font-size: 18px !important; } .gw-logo-titulo { width: 24px; height: 24px; } }
/* Tabelas: cabeçalho no azul-marinho Globalweb */
th { border-right-color: rgba(255, 255, 255, 0.08); }

/* ==== CABEÇALHO PADRÃO (abas reformuladas) ==== */
.gw-cabecalho-aba { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--border-color); padding-bottom: 14px; margin-bottom: 16px; }
.gw-subtitulo { font-size: 12.5px; color: var(--gw-texto-2); margin-top: 4px; }

/* ==== AVALIAÇÕES ==== */
.av-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 1100px) { .av-kpis { grid-template-columns: repeat(2, 1fr); } }
.av-kpi { background: var(--bg-container); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 14px; border-top: 3px solid var(--border-color); }
.av-kpi-destaque { border-top-color: var(--gw-primaria); } .av-kpi-alerta { border-top-color: var(--gw-coral); } .av-kpi-ok { border-top-color: var(--gw-verde); }
.av-kpi-titulo { font-size: 11px; font-weight: 700; color: var(--gw-texto-2); text-transform: uppercase; letter-spacing: 0.3px; }
.av-kpi-valor { font-size: 22px; font-weight: 800; color: var(--header-color); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-kpi-sub { font-size: 11px; color: var(--gw-muted); }
.av-filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.av-filtros input, .av-filtros select { height: 36px; padding: 0 12px; border: 1px solid var(--border-color); border-radius: 999px; background: var(--bg-container); color: var(--text-main); font-family: var(--font-family); font-size: 13px; }
.av-filtros input { flex: 1; min-width: 200px; }
.av-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.av-card { background: var(--bg-container); border: 1px solid var(--border-color); border-radius: 14px; padding: 14px; cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s; display: flex; flex-direction: column; gap: 6px; }
.av-card:hover, .av-card:focus-visible { border-color: var(--gw-primaria); box-shadow: 0 6px 18px rgba(10, 31, 68, 0.08); transform: translateY(-1px); outline: none; }
.av-card-atrasada { border-left: 4px solid var(--gw-coral); }
.av-card-topo { display: flex; align-items: center; gap: 10px; }
.av-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gw-primaria-suave); color: var(--gw-primaria); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.av-avatar-grande { width: 52px; height: 52px; font-size: 18px; }
.av-card-id { flex: 1; min-width: 0; }
.av-card-nome { font-weight: 800; color: var(--header-color); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-card-pc { font-size: 11px; color: var(--gw-texto-2); display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.av-card-pc .badge-proj { margin: 0; padding: 1px 7px; font-size: 9.5px; }
.av-card-linha { font-size: 12px; color: var(--text-main); }
.av-card-muted { font-size: 11.5px; color: var(--gw-muted); }
.av-card-acoes { display: flex; gap: 6px; margin-top: 4px; }
.av-card-acoes .btn-base { font-size: 12px; padding: 6px 12px; }
.av-selo { font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--gw-fundo); color: var(--gw-texto-2); white-space: nowrap; }
.av-selo-ok { background: rgba(77, 185, 108, 0.14); color: var(--gw-verde-escuro); }
.av-selo-atraso { background: rgba(254, 62, 62, 0.12); color: var(--gw-coral-escuro); }
.av-selo-hoje { background: rgba(255, 171, 0, 0.18); color: #8a5a00; }
.av-selo-andamento { background: var(--gw-primaria-suave); color: var(--gw-primaria); }
.av-vazio { color: var(--gw-muted); padding: 20px; text-align: center; grid-column: 1 / -1; }

.av-painel-fundo { position: fixed; inset: 0; background: rgba(10, 31, 68, 0.45); z-index: 1500; display: flex; justify-content: flex-end; }
.av-painel { width: min(760px, 100%); height: 100%; background: var(--bg-container); color: var(--text-main); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(10, 31, 68, 0.2); }
.av-painel-topo { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.av-painel-id { flex: 1; min-width: 0; }
.av-painel-nome { font-size: 18px; font-weight: 800; color: var(--header-color); }
.av-media-box { text-align: center; background: var(--gw-primaria-suave); border-radius: 12px; padding: 6px 14px; }
.av-media-box span { display: block; font-size: 10px; font-weight: 700; color: var(--gw-texto-2); text-transform: uppercase; }
.av-media-box b { font-size: 22px; color: var(--gw-primaria); }
.av-btn-icone { border: none; background: transparent; color: var(--gw-texto-2); font-size: 16px; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.av-btn-icone:hover { background: var(--gw-fundo); color: var(--gw-coral); }
.av-data-linha { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 12.5px; font-weight: 600; flex-wrap: wrap; }
.av-abas { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--border-color); overflow-x: auto; }
.av-aba { border: none; background: transparent; padding: 10px 12px; font-family: var(--font-family); font-size: 13px; font-weight: 700; color: var(--gw-texto-2); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.av-aba-ativa { color: var(--gw-primaria); border-bottom-color: var(--gw-primaria); }
.av-painel-corpo { flex: 1; overflow-y: auto; padding: 16px 20px; }
.av-painel-rodape { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border-color); flex-wrap: wrap; }
.av-bloco { margin-bottom: 16px; }
.av-bloco h4 { margin: 0 0 6px; font-size: 13px; color: var(--header-color); }
.av-bloco p { margin: 0; font-size: 12.5px; }
.av-bloco-pauta { background: var(--gw-primaria-suave); border-radius: 10px; padding: 10px 14px; }
.av-bloco-pauta ul { margin: 0; padding-left: 18px; font-size: 12.5px; }
.av-grade-ctx { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.av-grade-ctx div { background: var(--gw-fundo); border-radius: 10px; padding: 8px 10px; }
.av-grade-ctx b { display: block; font-size: 18px; color: var(--header-color); }
.av-grade-ctx span { font-size: 11px; color: var(--gw-texto-2); }
.av-grade-ctx i { font-style: normal; color: var(--gw-muted); }
.av-tabela { width: 100%; border-collapse: collapse; font-size: 12px; border: none; table-layout: auto; }
.av-tabela th { background: transparent; color: var(--gw-texto-2); text-align: left; font-size: 11px; padding: 4px 6px; border-bottom: 1px solid var(--border-color); text-transform: none; }
.av-tabela td { text-align: left; padding: 5px 6px; border-right: none; }
.av-revisao { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--border-color); font-size: 12.5px; }
.av-revisao span { display: block; font-size: 11px; color: var(--gw-muted); }
.av-revisao select, .av-input { border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-container); color: var(--text-main); font-family: var(--font-family); font-size: 12.5px; padding: 7px 10px; }
.av-input { width: 100%; box-sizing: border-box; }
.av-data-linha .av-input { width: auto; }
.av-textarea { min-height: 70px; resize: vertical; }
.av-ajuda { font-size: 12px; color: var(--gw-texto-2); margin: 0 0 12px; }
.av-criterio { border: 1px solid var(--border-color); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.av-criterio-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.av-criterio-nome { font-weight: 800; font-size: 13px; color: var(--header-color); }
.av-criterio-dica { font-size: 11.5px; color: var(--gw-texto-2); }
.av-notas { display: flex; gap: 4px; }
.av-nota { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border-color); background: var(--bg-container); color: var(--gw-texto-2); font-weight: 800; cursor: pointer; font-family: var(--font-family); }
.av-nota:hover { border-color: var(--gw-primaria); color: var(--gw-primaria); }
.av-nota-cheia { background: var(--gw-primaria-suave); border-color: var(--gw-primaria); color: var(--gw-primaria); }
.av-nota-ativa { background: var(--gw-primaria); color: #ffffff; }
.av-sugestao { font-size: 11.5px; color: var(--gw-texto-2); background: var(--gw-fundo); border-radius: 8px; padding: 5px 9px; }
.av-rotulo { display: block; font-weight: 700; font-size: 12.5px; margin-bottom: 4px; color: var(--header-color); }
.av-plano-linha { display: grid; grid-template-columns: 1fr 160px 150px 34px; gap: 6px; margin-bottom: 6px; }
@media (max-width: 640px) { .av-plano-linha { grid-template-columns: 1fr; } .av-grade-ctx { grid-template-columns: repeat(2, 1fr); } }
.av-btn-mini { font-size: 12px !important; padding: 5px 12px !important; }
.av-hist-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-color); font-size: 12.5px; }
.av-painel-fundo[hidden] { display: none; }

/* ==== CAPACITAÇÃO CRUZADA ==== */
.cs-resumo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 12px; }
@media (max-width: 1100px) { .cs-resumo { grid-template-columns: repeat(2, 1fr); } }
.cs-card-contrato { background: var(--bg-container); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 14px; border-top: 3px solid var(--gw-verde); }
.cs-risco-alerta { border-top-color: var(--gw-ambar); } .cs-risco-critico { border-top-color: var(--gw-coral); }
.cs-card-topo { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.cs-card-topo .badge-proj { margin: 0; }
.cs-selo { font-size: 10.5px; font-weight: 700; color: var(--gw-texto-2); }
.cs-card-num { margin-top: 6px; } .cs-card-num b { font-size: 26px; color: var(--header-color); } .cs-card-num span { color: var(--gw-texto-2); font-size: 12px; margin-left: 4px; }
.cs-card-sub { font-size: 11.5px; color: var(--gw-muted); }
.cs-turnos { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.cs-turno { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(77, 185, 108, 0.14); color: var(--gw-verde-escuro); }
.cs-turno-1 { background: rgba(255, 171, 0, 0.18); color: #8a5a00; } .cs-turno-0 { background: rgba(254, 62, 62, 0.12); color: var(--gw-coral-escuro); }
.cs-turno-fechado { background: var(--gw-fundo); color: var(--gw-muted); }
.cs-legenda { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; color: var(--gw-texto-2); margin-bottom: 10px; }
.cs-legenda-sep { margin: 0 4px; }
.cs-tabela td { padding: 6px; }
.cs-nome { text-align: left !important; padding-left: 15px !important; }
.cs-nome b { display: block; color: var(--header-color); }
.cs-nome span { font-size: 11px; color: var(--gw-muted); }
.cs-celula { position: relative; }
/* Escala ordinal em um único tom (azul Globalweb): mais escuro = mais domínio. Os pontos repetem a informação sem depender de cor. */
.cs-nivel { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; min-width: 112px; border-radius: 10px; padding: 5px 8px; border: 1.5px solid transparent; cursor: pointer; font-family: var(--font-family); font-size: 11px; font-weight: 700; transition: transform 0.1s; }
.cs-nivel:hover { transform: scale(1.03); }
.cs-n0 { background: var(--gw-fundo); color: var(--gw-muted); border-style: dashed; border-color: var(--border-color); }
.cs-n1 { background: #dbe5fa; color: #2552bd; }
.cs-n2 { background: #a9c1f2; color: #0a1f44; }
.cs-n3 { background: #3266df; color: #ffffff; }
.cs-n4 { background: #0a1f44; color: #ffffff; }
body.dark-mode .cs-n1 { background: #1c2f57; color: #a9c1f2; }
body.dark-mode .cs-n2 { background: #2b4a8c; color: #e6edfc; }
body.dark-mode .cs-n4 { background: #e6edfc; color: #0a1f44; }
.cs-atende { box-shadow: 0 0 0 2px var(--gw-primaria); }
.cs-pontos { letter-spacing: 1px; font-size: 10px; }
.cs-mini { min-width: 0; padding: 1px 6px; display: inline-flex; flex-direction: row; vertical-align: middle; cursor: default; }
.cs-flag { position: absolute; top: 2px; right: 4px; font-size: 11px; color: var(--gw-coral); }
.cs-flag-info { color: var(--gw-verde-escuro); }
.cs-menu { position: fixed; z-index: 1600; width: 260px; background: var(--bg-container); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 12px 30px rgba(10, 31, 68, 0.18); padding: 6px; }
.cs-menu-titulo { font-size: 11px; font-weight: 800; color: var(--gw-texto-2); padding: 6px 8px; }
.cs-menu-item { display: flex; align-items: center; gap: 8px; width: 100%; border: none; background: transparent; padding: 7px 8px; border-radius: 8px; font-family: var(--font-family); font-size: 12.5px; color: var(--text-main); cursor: pointer; text-align: left; }
.cs-menu-item:hover { background: var(--gw-primaria-suave); }
.cs-menu-atual { font-weight: 800; }
.cs-menu-plano { border-top: 1px solid var(--border-color); border-radius: 0 0 8px 8px; margin-top: 4px; color: var(--gw-primaria); }
.cs-paineis { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; margin-top: 16px; }
.cs-painel { background: var(--bg-container); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px 16px; }
.cs-painel h4 { margin: 0 0 8px; font-size: 14px; color: var(--header-color); }
.cs-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.cs-lista li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 6px; border-bottom: 1px dashed var(--border-color); }
.cs-lista .badge-proj { margin: 0; }
.cs-muted { color: var(--gw-muted); font-size: 12px; }
.cs-sub { font-size: 12px; font-weight: 700; color: var(--gw-texto-2); margin: 6px 0; }
body.dark-mode .cs-turno { color: #7fdc9a; } body.dark-mode .cs-turno-1, body.dark-mode .av-selo-hoje { color: #ffd27a; } body.dark-mode .cs-turno-0, body.dark-mode .av-selo-atraso { color: #ff8a8a; } body.dark-mode .av-selo-ok { color: #7fdc9a; }
/* ==== FÉRIAS: tabela compacta com Saída / Volta ==== */
.ferias-tabela { width: 100%; border-collapse: collapse; table-layout: auto; border: none; border-radius: 0; overflow: visible; }
.ferias-tabela th { background: #1e293b; color: #ffffff; font-size: 11px; padding: 8px 6px; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.ferias-tabela td { padding: 7px 6px; font-size: 12px; border-right: none; border-bottom: 1px solid var(--border-color); }
.ferias-tabela th:first-child, .ferias-tabela td:first-child { padding-left: 10px; }
.ferias-data { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; cursor: pointer; padding: 3px 7px; border-radius: 6px; border: 1px solid; white-space: nowrap; }
.ferias-data b { font-size: 12px; }
.ferias-data small { font-size: 10px; font-weight: 600; opacity: 0.75; }
.ferias-data:hover { filter: brightness(0.94); }
.ferias-data-saida { background: rgba(217, 119, 6, 0.08); color: #b45309; border-color: rgba(217, 119, 6, 0.3); }
.ferias-data-volta { background: rgba(22, 163, 74, 0.08); color: #15803d; border-color: rgba(22, 163, 74, 0.3); }
body.dark-mode .ferias-data-saida { color: #fbbf24; }
body.dark-mode .ferias-data-volta { color: #4ade80; }
.ferias-btn-excluir { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; padding: 3px 7px; border-radius: 6px; cursor: pointer; font-size: 12px; }

/* ==== RELATÓRIO: análise qualitativa (caixas largas que crescem com o texto) ==== */
.rq-qual-dica { font-size: 11.5px; color: var(--gw-texto-2); margin: -4px 0 10px; }
.rq-qual-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 800px) { .rq-qual-grade { grid-template-columns: 1fr; } }
.rq-qual-campo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hub-tab-content .rq-qual-texto { display: block; width: 100% !important; min-height: 110px; max-height: 60vh; overflow-y: auto; resize: vertical; padding: 8px 10px; font-size: 13px; line-height: 1.5; }
.rq-qual-contador { font-size: 10.5px; color: var(--gw-muted); text-align: right; min-height: 13px; }

/* ==== CAPACITAÇÃO: régua (cabeçalho e analista fixos + destaque em cruz) ==== */
/* Telas largas: sem rolagem própria, o cabeçalho acompanha a rolagem da página.
   Telas estreitas: rolagem própria (horizontal e vertical) com cabeçalho e analista fixos dentro dela. */
.cs-tabela-wrapper { overflow: visible; }
@media (max-width: 900px) { .cs-tabela-wrapper { max-height: calc(100vh - 32px); overflow: auto; } }
.cs-tabela { overflow: visible; }
.cs-tabela thead th { position: sticky; top: 0; z-index: 3; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12); }
.cs-tabela thead th:first-child { left: 0; z-index: 5; }
.cs-tabela td.cs-nome { position: sticky; left: 0; z-index: 2; background: var(--bg-container); box-shadow: 3px 0 6px rgba(0, 0, 0, 0.06); }
.cs-tabela tr.cs-cruz-linha > td, .cs-tabela td.cs-cruz-col { box-shadow: inset 0 0 0 999px rgba(50, 102, 223, 0.10); }
.cs-tabela tr.cs-cruz-linha > td.cs-cruz-col { box-shadow: inset 0 0 0 999px rgba(50, 102, 223, 0.22); }
.cs-tabela tr.cs-cruz-linha > td.cs-nome { box-shadow: inset 4px 0 0 var(--gw-primaria), inset 0 0 0 999px rgba(50, 102, 223, 0.12); }
.cs-tabela tr.cs-cruz-linha > td.cs-nome b { color: var(--gw-primaria); }
.cs-tabela thead th.cs-cruz-col { background-color: var(--gw-primaria); box-shadow: inset 0 -3px 0 #ffab00, 0 2px 4px rgba(0, 0, 0, 0.12); }
body.dark-mode .cs-tabela tr.cs-cruz-linha > td, body.dark-mode .cs-tabela td.cs-cruz-col { box-shadow: inset 0 0 0 999px rgba(120, 160, 255, 0.10); }
body.dark-mode .cs-tabela tr.cs-cruz-linha > td.cs-cruz-col { box-shadow: inset 0 0 0 999px rgba(120, 160, 255, 0.22); }
body.dark-mode .cs-tabela tr.cs-cruz-linha > td.cs-nome b { color: #a9c1f2; }

/* ==== ESCALA: régua (dias da semana fixos ao rolar + destaque em cruz) ==== */
/* Telas largas: o cabeçalho (dias + datas) acompanha a rolagem da página.
   Celular: a tabela rola dentro da própria área, com cabeçalho e colunas do analista fixos. */
.escala-tabela-wrapper { overflow: visible; }
#escalaTable { overflow: visible; }
#escalaTable thead { position: sticky; top: 0; z-index: 6; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
@media (max-width: 768px) { .escala-tabela-wrapper { max-height: calc(100vh - 24px); overflow: auto; } }
#escalaTable tr.esc-cruz-linha > td, #escalaTable td.esc-cruz-col { box-shadow: inset 0 0 0 999px rgba(50, 102, 223, 0.10); }
#escalaTable tr.esc-cruz-linha > td.esc-cruz-col { box-shadow: inset 0 0 0 2px var(--gw-primaria), inset 0 0 0 999px rgba(50, 102, 223, 0.18); }
#escalaTable tr.esc-cruz-linha > td.nome-celula { box-shadow: inset 4px 0 0 var(--gw-primaria), inset 0 0 0 999px rgba(50, 102, 223, 0.12); }
#escalaTable tr.esc-cruz-linha > td.nome-celula strong { color: var(--gw-primaria); }
#escalaTable thead th.esc-cruz-col { background: var(--gw-primaria) !important; color: #ffffff !important; box-shadow: inset 0 -3px 0 #ffab00; }
#escalaTable tfoot td.esc-cruz-col { box-shadow: inset 0 0 0 999px rgba(50, 102, 223, 0.12); }
body.dark-mode #escalaTable tr.esc-cruz-linha > td, body.dark-mode #escalaTable td.esc-cruz-col { box-shadow: inset 0 0 0 999px rgba(120, 160, 255, 0.12); }
body.dark-mode #escalaTable tr.esc-cruz-linha > td.esc-cruz-col { box-shadow: inset 0 0 0 2px #a9c1f2, inset 0 0 0 999px rgba(120, 160, 255, 0.24); }
body.dark-mode #escalaTable tr.esc-cruz-linha > td.nome-celula strong { color: #a9c1f2; }
/* ==== PAUSAS: régua (cabeçalho Analista, Contratos, Jornada... fixo ao rolar + destaque em cruz) ==== */
/* A tabela precisa de ~1100px. Telas largas: sem rolagem própria, o cabeçalho acompanha a página.
   Telas menores: a tabela rola dentro da própria área (lateral e vertical) com o cabeçalho fixo nela. */
#pausasTable { overflow: visible; }
#pausasTable thead th { position: sticky; top: 0; z-index: 3; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12); }
@media (min-width: 1200px) { .pausas-table-wrapper { overflow: visible; } }
@media (max-width: 1199px) { .pausas-table-wrapper { max-height: calc(100vh - 24px); overflow: auto; } }
#pausasTable tr.pz-cruz-linha > td, #pausasTable td.pz-cruz-col { box-shadow: inset 0 0 0 999px rgba(50, 102, 223, 0.10); }
#pausasTable tr.pz-cruz-linha > td.pz-cruz-col { box-shadow: inset 0 0 0 2px var(--gw-primaria), inset 0 0 0 999px rgba(50, 102, 223, 0.18); }
#pausasTable tr.pz-cruz-linha > td:nth-child(2) { box-shadow: inset 4px 0 0 var(--gw-primaria), inset 0 0 0 999px rgba(50, 102, 223, 0.12); color: var(--gw-primaria); }
#pausasTable thead th.pz-cruz-col { background-color: var(--gw-primaria); box-shadow: inset 0 -3px 0 #ffab00, 0 2px 4px rgba(0, 0, 0, 0.12); }
body.dark-mode #pausasTable tr.pz-cruz-linha > td, body.dark-mode #pausasTable td.pz-cruz-col { box-shadow: inset 0 0 0 999px rgba(120, 160, 255, 0.12); }
body.dark-mode #pausasTable tr.pz-cruz-linha > td.pz-cruz-col { box-shadow: inset 0 0 0 2px #a9c1f2, inset 0 0 0 999px rgba(120, 160, 255, 0.24); }
body.dark-mode #pausasTable tr.pz-cruz-linha > td:nth-child(2) { color: #a9c1f2; }
/* ==== PAUSAS: ajuste do dia (pausasDia) ==== */
#pausasTable td.pz-analista { min-width: 190px; }
.pz-aplicar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 4px; font-size: 10.5px; font-weight: 600; color: var(--gw-texto-2); }
.pz-aplicar label { display: inline-flex; align-items: center; gap: 3px; cursor: pointer; white-space: nowrap; }
.pz-aplicar input[type="radio"] { margin: 0; accent-color: var(--gw-primaria); }
.pz-obs { border: none; background: transparent; cursor: pointer; font-size: 12px; padding: 0 2px; }
.pz-dia-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 3px; }
.pz-selo-dia { font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: rgba(124, 58, 237, 0.12); color: #6d28d9; white-space: nowrap; }
.pz-voltar { border: 1px solid var(--border-color); background: var(--bg-container); color: var(--gw-texto-2); border-radius: 6px; font-size: 10px; font-weight: 700; padding: 1px 6px; cursor: pointer; white-space: nowrap; font-family: var(--font-family); }
.pz-voltar:hover { border-color: var(--gw-primaria); color: var(--gw-primaria); }
#pausasTable td.pz-campo-dia { background-image: linear-gradient(rgba(124, 58, 237, 0.10), rgba(124, 58, 237, 0.10)); box-shadow: inset 0 -2px 0 #7c3aed; }
#pausasTable td.pz-campo-dia .pausas-time-input, #pausasTable td.pz-campo-dia .pausas-cell-text { color: #6d28d9; font-weight: 800; }
body.dark-mode .pz-selo-dia { background: rgba(167, 139, 250, 0.18); color: #c4b5fd; }
.pz-selo-remoto { font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: rgba(13, 148, 136, 0.12); color: #0f766e; white-space: nowrap; }
body.dark-mode .pz-selo-remoto { background: rgba(45, 212, 191, 0.16); color: #5eead4; }
body.dark-mode #pausasTable td.pz-campo-dia .pausas-time-input, body.dark-mode #pausasTable td.pz-campo-dia .pausas-cell-text { color: #c4b5fd; }
/* ==== PAUSAS: ausência parcial (atestado manhã/tarde) ==== */
.lt-aus { background: repeating-linear-gradient(135deg, #64748b 0 4px, #cbd5e1 4px 8px); }
.pz-selo-ausencia { font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: #ffedd5; color: #c2410c; white-space: nowrap; }
body.dark-mode .pz-selo-ausencia { background: rgba(234, 88, 12, 0.18); color: #fdba74; }
/* ==== PAUSAS: origem da grade (✋ manual), modal "Quem muda" e desfazer ==== */
.sug-manual { font-size: 10.5px; font-weight: 800; color: #475569; background: #e2e8f0; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.sug-aplicar-manual { border: none; background: transparent; color: #7c3aed; font-size: 10px; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0 0 0 6px; font-family: var(--font-family); }
.dark-mode .sug-manual { background: #334155; color: #e2e8f0; }
.dark-mode .sug-aplicar-manual { color: #c4b5fd; }
.pausas-alerta-lista.pausas-desfazer { border-color: #ddd6fe; border-left-color: #7c3aed; background: #f5f3ff; color: #4c1d95; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dark-mode .pausas-alerta-lista.pausas-desfazer { background: #1e1b4b; color: #ddd6fe; border-color: #4c1d95; }
.pausas-btn-desfazer { display: inline-flex; padding: 3px 10px !important; font-size: 11.5px !important; font-weight: 700; }
.pausas-desfazer-prazo { font-size: 11px; opacity: 0.75; }
.sug-modal { text-align: left; font-size: 12.5px; }
.sug-modal-intro { color: #475569; margin-bottom: 10px; }
.sug-modal-sub { font-weight: 800; margin: 12px 0 6px; color: var(--header-color, #0a1f44); }
.sug-modal-tabela { width: 100%; border-collapse: collapse; table-layout: auto; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 12px; max-height: 260px; }
.sug-modal-tabela th { background: #f1f5f9; color: #475569; font-size: 11px; text-transform: none; letter-spacing: 0; padding: 6px 8px; text-align: left; }
.sug-modal-tabela td { text-align: left; padding: 5px 8px; border-right: none; font-size: 12px; }
.sug-modal-mud { display: inline-block; margin: 1px 8px 1px 0; white-space: nowrap; }
.sug-modal-mud s { color: #94a3b8; }
.sug-modal-quando { font-size: 10.5px; color: #94a3b8; }
.sug-modal-vazio { color: #64748b; font-style: italic; }
.sug-modal-nota { margin-top: 12px; font-size: 11.5px; color: #64748b; }

/* ==== Aviso de versão nova (service worker) ==== */
.aviso-nova-versao { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2000; display: flex; align-items: center; gap: 10px; background: #0a1f44; color: #ffffff; font-size: 13px; font-weight: 600; padding: 9px 12px 9px 16px; border-radius: 999px; box-shadow: 0 8px 24px rgba(10, 31, 68, 0.3); max-width: calc(100vw - 32px); }
.aviso-nova-versao button { border: none; background: #3266df; color: #ffffff; font-weight: 800; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; cursor: pointer; font-family: var(--font-family); }
.aviso-nova-versao .aviso-nova-versao-fechar { background: transparent; padding: 4px 6px; opacity: 0.8; }.cx-em-jornada { font-size: 10px; font-weight: 700; color: #0369a1; background: #e0f2fe; border-radius: 999px; padding: 0 6px; }

/* ==== Versão: faixa de atualização e rodapé ==== */
.faixa-nova-versao { position: fixed; top: 0; left: 0; right: 0; z-index: 3000; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; background: #0a1f44; color: #ffffff; font-size: 13.5px; font-weight: 700; padding: 10px 16px; box-shadow: 0 4px 16px rgba(10, 31, 68, 0.35); }
.faixa-nova-versao button { border: none; background: #3266df; color: #ffffff; font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-family: var(--font-family); }
.faixa-nova-versao button:hover { background: #2552bd; }
.rodape-versao {
    margin-top: 36px;
    padding: 16px 20px 10px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--gw-muted, #8b95a7);
    opacity: 0.7;
    transition: opacity 0.2s ease;
    user-select: none;
}
.rodape-versao:hover {
    opacity: 1;
}
body.dark-mode .rodape-versao {
    border-top-color: var(--gw-borda, #26334f);
    color: var(--gw-muted, #7d889c);
}
/* ==== PAINEL DO DIA (v5.6) ==== */
.pd-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pd-titulo { margin: 0; font-size: 18px; color: var(--header-color); }
.pd-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pd-nav input[type="date"] { padding: 4px 8px; font-size: 13px; font-weight: 700; border-radius: 6px; border: 1px solid var(--border-color); background: var(--bg-body); color: var(--text-main); height: 30px; }
.pd-btn-nav { padding: 4px 10px; font-size: 12px; }
.pd-rotulo { font-size: 12.5px; color: var(--gw-texto-2); font-weight: 600; text-transform: capitalize; }
.pd-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pd-card { border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 14px; background: var(--bg-container); min-width: 0; }
.pd-card h4 { margin: 0 0 8px; font-size: 13.5px; color: var(--header-color); }
.pd-card-largo { grid-column: span 2; }
.pd-card-alerta { border-color: var(--gw-coral); box-shadow: inset 3px 0 0 var(--gw-coral); }
.pd-numero { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.pd-numero b { font-size: 26px; color: var(--gw-primaria); }
.pd-numero span { font-size: 12px; color: var(--gw-texto-2); }
.pd-lista { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.pd-lista li { padding: 5px 0; border-bottom: 1px dashed var(--border-color); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.pd-lista li:last-child { border-bottom: none; }
.pd-sub { font-size: 12px; color: var(--gw-texto-2); margin-top: 6px; width: 100%; }
.pd-sub-inline { font-size: 11.5px; color: var(--gw-texto-2); }
.pd-vazio { font-size: 12px; color: var(--gw-muted); font-style: italic; }
.pd-ok { font-size: 13px; color: var(--gw-verde-escuro); font-weight: 600; }
.pd-alerta { font-size: 11.5px; color: var(--gw-coral-escuro); font-weight: 700; }
.pd-tag { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 10px; background: var(--gw-primaria-suave); color: var(--gw-primaria); }
.pd-tag-atestado, .pd-tag-falta, .pd-tag-ausência, .pd-tag-comparecimento { background: #fee2e2; color: #b91c1c; }
.pd-tag-folga { background: #e2e8f0; color: #475569; }
.pd-tag-férias { background: #fef3c7; color: #b45309; }
.pd-tag-critica { background: #fee2e2; color: #b91c1c; }
.pd-tabela { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pd-tabela th { text-align: left; width: 44px; padding: 6px 4px; color: var(--gw-primaria); vertical-align: top; }
.pd-tabela td { padding: 4px; border-bottom: 1px dashed var(--border-color); }
.pd-tabela td.pd-qtd { width: 28px; text-align: right; font-weight: 700; color: var(--gw-texto-2); }
.pd-pessoa { display: inline-flex; align-items: center; gap: 3px; margin: 2px 6px 2px 0; padding: 2px 7px; border-radius: 6px; background: var(--bg-body); border: 1px solid var(--border-color); white-space: nowrap; }
.pd-pessoa small { color: var(--gw-texto-2); }
.pd-btn-mini { padding: 2px 8px !important; font-size: 11px !important; margin-left: auto; }
.pd-lembrete { margin-bottom: 12px; padding: 10px 12px; border-radius: 8px; background: #ecfeff; border: 1px solid #67e8f9; color: #0e7490; font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.dark-mode .pd-lembrete { background: #083344; border-color: #155e75; color: #a5f3fc; }
body.dark-mode .pd-tag-atestado, body.dark-mode .pd-tag-falta, body.dark-mode .pd-tag-ausência, body.dark-mode .pd-tag-comparecimento, body.dark-mode .pd-tag-critica { background: #450a0a; color: #fca5a5; }
body.dark-mode .pd-tag-folga { background: #1e293b; color: #cbd5e1; }
body.dark-mode .pd-tag-férias { background: #451a03; color: #fcd34d; }
@media (max-width: 700px) { .pd-card-largo { grid-column: auto; } .pd-grade { grid-template-columns: 1fr; } }


.av-indicadores .av-grade-ctx { margin-bottom: 8px; }



/* ==== NAVEGAÇÃO v6.0: barra do portal, 5 abas, data global, sub-abas e ⚙️ Administração ==== */
:root {
    --nav-fundo-ativo: var(--gw-primaria-suave);
    --nav-texto: var(--gw-texto-2);
    --nav-texto-ativo: var(--gw-primaria);
    --nav-badge-fundo: var(--gw-coral);
    --nav-badge-texto: #ffffff;
    --subaba-fundo: var(--bg-body);
}
body.dark-mode {
    --nav-fundo-ativo: rgba(90, 134, 234, 0.18);
    --nav-texto: var(--gw-texto-2);
    --nav-texto-ativo: #9db8f5;
    --nav-badge-fundo: var(--gw-coral-escuro);
    --subaba-fundo: rgba(255, 255, 255, 0.04);
}
.barra-portal { flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.barra-portal-esq, .barra-portal-dir { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; min-width: 0; }
.barra-portal-esq { flex: 1 1 auto; }
.barra-portal-dir { justify-content: flex-end; }
.barra-marca { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--header-color); white-space: nowrap; }
.barra-marca img { width: 22px; height: 22px; }
.nav-abas { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.nav-abas::-webkit-scrollbar { display: none; }
.nav-aba { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--nav-texto); font-family: var(--font-family); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease; }
.nav-aba:hover { background: var(--nav-fundo-ativo); color: var(--nav-texto-ativo); }
.nav-aba.active { background: var(--nav-fundo-ativo); color: var(--nav-texto-ativo); border-color: var(--gw-primaria); }
.nav-aba:focus-visible, .sub-aba:focus-visible, .btn-data-global:focus-visible, .btn-admin-engrenagem:focus-visible { outline: 2px solid var(--gw-primaria); outline-offset: 2px; }
.nav-aba-icone { font-size: 15px; }
.nav-badge { min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 9px; background: var(--nav-badge-fundo); color: var(--nav-badge-texto); font-size: 11px; font-weight: 800; text-align: center; box-sizing: border-box; }
.nav-badge[hidden] { display: none; }

.data-global { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-container); }
.data-global input[type="date"] { height: 28px; padding: 2px 6px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-body); color: var(--text-main); font-family: var(--font-family); font-size: 12.5px; font-weight: 700; }
.btn-data-global { height: 28px; min-width: 28px; padding: 0 8px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-body); color: var(--text-main); font-family: var(--font-family); font-size: 11px; font-weight: 700; cursor: pointer; }
.btn-data-global:hover { border-color: var(--gw-primaria); color: var(--gw-primaria); }
.btn-data-hoje { background: var(--gw-primaria); border-color: var(--gw-primaria); color: #ffffff; }
.btn-data-hoje:hover { background: var(--gw-primaria-escura); color: #ffffff; }
.data-global-rotulo { font-size: 12px; font-weight: 700; color: var(--gw-texto-2); white-space: nowrap; padding-right: 4px; }
body.sem-data-global .data-global { display: none; }
.btn-icone-barra { padding: 6px 10px; }

body.is-admin .so-publico { display: none !important; }
.menu-admin-wrapper { position: relative; }
.btn-admin-engrenagem { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-color); background: var(--bg-container); color: var(--text-main); font-size: 17px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.btn-admin-engrenagem:hover, .btn-admin-engrenagem[aria-expanded="true"] { border-color: var(--gw-primaria); background: var(--nav-fundo-ativo); }
.chrome-popover-menu.menu-admin { left: auto; right: 0; width: 270px; transform-origin: top right; }
.chrome-menu-item-perigo { color: var(--gw-coral-escuro); }

.barra-subabas.barra-subabas-so-busca { background: transparent; border: none; padding: 0; margin: -4px 0 8px; justify-content: flex-end; }
.barra-subabas { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 14px; padding: 6px; border-radius: 12px; background: var(--subaba-fundo); border: 1px solid var(--border-color); }
.barra-subabas[hidden] { display: none; }
.sub-aba { padding: 6px 14px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--nav-texto); font-family: var(--font-family); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.sub-aba:hover { color: var(--nav-texto-ativo); }
.sub-aba.active { background: var(--bg-container); color: var(--nav-texto-ativo); border-color: var(--gw-primaria); box-shadow: 0 1px 3px rgba(10, 31, 68, 0.08); }
.sub-secao-oculta { display: none !important; }

.data-contexto { font-size: 11.5px; color: var(--gw-texto-2); font-weight: 600; }
.data-contexto-selo { font-size: 12px; font-weight: 700; color: var(--nav-texto-ativo); background: var(--nav-fundo-ativo); padding: 3px 10px; border-radius: 12px; margin-left: 6px; vertical-align: middle; }
.data-contexto-selo:empty { display: none; }
.pd-titulo .pd-rotulo { margin-left: 8px; font-size: 12.5px; }

@media (max-width: 900px) {
    .barra-portal-dir { justify-content: flex-start; width: 100%; }
    .barra-marca b { display: none; }
}
@media (max-width: 600px) {
    .nav-aba { padding: 7px 9px; }
    .nav-aba-texto { font-size: 12px; }
    .data-global-rotulo { display: none; }
    /* A regra móvel geral (.btn-base { flex: 1 }) esticaria os botões da barra */
    .barra-portal .btn-base { flex: none; min-height: 36px; padding: 6px 12px; }
    .barra-portal .status-nuvem { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .barra-portal-dir { gap: 8px; }
    .data-global input[type="date"] { width: 128px; }
}

/* ==== ABA 🏠 HOJE (v6.0): banner, KPIs coloridos, alertas, agora por contrato, agenda de supervisão ==== */
:root {
    --hoje-fundo: #eef2f9;
    --hoje-sombra: 0 1px 3px rgba(10, 31, 68, 0.08);
    --hoje-banner: linear-gradient(120deg, var(--gw-marinho) 0%, var(--gw-primaria) 100%);
    --hoje-banner-texto: #ffffff;
    --cor-azul: var(--gw-primaria);
    --cor-marinho: var(--gw-marinho);
    --cor-verde: #16a34a;
    --cor-coral: var(--gw-coral);
    --cor-roxo: #7c3aed;
    --cor-ambar: #d97706;
    --cor-ciano: #0891b2;
    --tile-azul-fundo: #e8efff;     --tile-azul-texto: #2552bd;
    --tile-marinho-fundo: #e7ebf3;  --tile-marinho-texto: #0a1f44;
    --tile-verde-fundo: #e5f6ea;    --tile-verde-texto: #15803d;
    --tile-coral-fundo: #ffe8e8;    --tile-coral-texto: #c81e1e;
    --tile-ambar-fundo: #fff3d9;    --tile-ambar-texto: #a35a00;
    --tile-neutro-fundo: var(--bg-container); --tile-neutro-texto: var(--gw-texto-2);
    --chip-alerta-fundo: #ffe8e8;   --chip-alerta-texto: #a61b1b; --chip-alerta-borda: #fbbcbc;
    --barra-ocupacao-fundo: #e2e8f0; --barra-ocupacao: var(--gw-primaria);
}
body.dark-mode {
    --hoje-fundo: #0d1830;
    --hoje-sombra: 0 1px 3px rgba(0, 0, 0, 0.45);
    --hoje-banner: linear-gradient(120deg, #0a1f44 0%, #2552bd 100%);
    --cor-azul: #7ea1ef;
    --cor-marinho: #94a3b8;
    --cor-verde: #4ade80;
    --cor-coral: #f87171;
    --cor-roxo: #a78bfa;
    --cor-ambar: #fbbf24;
    --cor-ciano: #22d3ee;
    --tile-azul-fundo: rgba(90, 134, 234, 0.16);   --tile-azul-texto: #a9c1f7;
    --tile-marinho-fundo: rgba(148, 163, 184, 0.14); --tile-marinho-texto: #e2e8f0;
    --tile-verde-fundo: rgba(74, 222, 128, 0.13);  --tile-verde-texto: #86efac;
    --tile-coral-fundo: rgba(248, 113, 113, 0.15); --tile-coral-texto: #fca5a5;
    --tile-ambar-fundo: rgba(251, 191, 36, 0.14);  --tile-ambar-texto: #fcd34d;
    --tile-neutro-fundo: var(--bg-container); --tile-neutro-texto: var(--gw-texto-2);   /* reavaliadas com as cores do tema escuro */
    --chip-alerta-fundo: rgba(248, 113, 113, 0.16); --chip-alerta-texto: #fecaca; --chip-alerta-borda: rgba(248, 113, 113, 0.45);
    --barra-ocupacao-fundo: rgba(255, 255, 255, 0.12); --barra-ocupacao: #7ea1ef;
}

/* ==== ESCALA & PAUSAS (v6.0): filtros numa barra só, Visão Semana | Horas, ⋯ Ações e tela de Aderência ==== */
.grade-cabecalho { align-items: center; }
.grade-cabecalho h2 { margin: 0; }
.barra-filtros-grade { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.filtro-grade { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--gw-texto-2); }
.filtro-grade select { height: 32px; padding: 2px 8px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-container); color: var(--text-main); font-family: var(--font-family); font-size: 12.5px; }
.seletor-visao { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--border-color); border-radius: 999px; background: var(--subaba-fundo); }
.seletor-visao > span { font-size: 12px; font-weight: 700; color: var(--gw-texto-2); padding: 0 6px 0 8px; }
.seletor-visao-btn { border: 1px solid transparent; background: transparent; color: var(--nav-texto); border-radius: 999px; padding: 4px 12px; font-family: var(--font-family); font-size: 12px; font-weight: 700; cursor: pointer; }
.seletor-visao-btn.active { background: var(--bg-container); color: var(--nav-texto-ativo); border-color: var(--gw-primaria); }
.seletor-visao-btn:focus-visible { outline: 2px solid var(--gw-primaria); outline-offset: 2px; }
#tab-escala:not(.grade-visao-horas) #monitorCoberturaContainer { display: none; }
#tab-escala.grade-visao-horas .escala-tabela-wrapper, #tab-escala.grade-visao-horas #weekInfo { display: none; }

.grade-horas { border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 14px; background: var(--bg-container); margin-bottom: 16px; }
.grade-horas-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; color: var(--header-color); }
.grade-horas-momento { font-size: 12px; color: var(--gw-texto-2); font-weight: 600; }
.grade-horas-momento a { color: var(--gw-primaria); }
.grade-horas-contratos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-bottom: 10px; }
.grade-horas-contrato { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--border-color); border-left: 4px solid var(--cor-verde); border-radius: 8px; padding: 6px 8px; }
.grade-horas-contrato.grade-horas-risco { border-left-color: var(--cor-coral); background: var(--chip-alerta-fundo); }
.grade-horas-contrato.grade-horas-fechado { border-left-color: var(--border-color); opacity: 0.75; }
.grade-horas-contrato.grade-horas-sel { box-shadow: 0 0 0 2px var(--gw-primaria); }
.grade-horas-filtro, .grade-horas-analistas { border: none; background: transparent; color: var(--text-main); font-family: var(--font-family); text-align: left; cursor: pointer; padding: 0; font-size: 12.5px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.grade-horas-filtro small { width: 100%; font-weight: 600; color: var(--gw-texto-2); }
.grade-horas-analistas { font-size: 11px; color: var(--gw-primaria); }
.grade-horas-analistas:hover { text-decoration: underline; }
.grade-horas-legenda { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--gw-texto-2); font-weight: 600; margin-bottom: 8px; }
.grade-horas-legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; }
.grade-horas-nome { text-align: left; font-weight: 800; background: var(--bg-container); }
.grade-cob-table th.grade-horas-agora { box-shadow: inset 0 -3px 0 var(--gw-ambar); }

.menu-suspenso { position: relative; }
.chrome-popover-menu.menu-suspenso-lista { left: auto; right: 0; width: 250px; transform-origin: top right; }
.btn-acoes { font-weight: 800; }

@media (max-width: 700px) {
    .barra-filtros-grade { width: 100%; }
    .filtro-grade { flex: 1 1 140px; }
    .filtro-grade select { flex: 1; min-width: 0; }
}

/* ==== EQUIPE (v6.0): Ocorrências & Férias em 3 blocos, busca por técnico e ficha lateral ==== */
:root {
    --eq-tag-ausencia-fundo: #fee2e2; --eq-tag-ausencia-texto: #b91c1c;
    --eq-tag-folga-fundo: #e2e8f0;    --eq-tag-folga-texto: #475569;
    --eq-tag-agenda-fundo: #ede9fe;   --eq-tag-agenda-texto: #6d28d9;
    --eq-tag-ferias-fundo: #dcfce7;   --eq-tag-ferias-texto: #15803d;
    --eq-conflito-fundo: #fff7e0;     --eq-conflito-borda: #fcd34d; --eq-conflito-texto: #92400e;
}
body.dark-mode {
    --eq-tag-ausencia-fundo: rgba(248, 113, 113, 0.18); --eq-tag-ausencia-texto: #fca5a5;
    --eq-tag-folga-fundo: rgba(148, 163, 184, 0.18);    --eq-tag-folga-texto: #cbd5e1;
    --eq-tag-agenda-fundo: rgba(167, 139, 250, 0.18);   --eq-tag-agenda-texto: #c4b5fd;
    --eq-tag-ferias-fundo: rgba(74, 222, 128, 0.16);    --eq-tag-ferias-texto: #86efac;
    --eq-conflito-fundo: rgba(251, 191, 36, 0.12);      --eq-conflito-borda: rgba(251, 191, 36, 0.45); --eq-conflito-texto: #fcd34d;
}
.eq-bloco { border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; background: var(--bg-container); box-shadow: var(--hoje-sombra); border-top: 4px solid var(--cor-marinho); }
.eq-bloco-hoje { border-top-color: var(--cor-azul); }
.eq-bloco-registrar { border-top-color: var(--cor-roxo); }
.eq-bloco-historico { border-top-color: var(--cor-ciano); }
.eq-bloco-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.eq-bloco-topo h4 { margin: 0; font-size: 14.5px; color: var(--header-color); }
.eq-hoje-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(240px, 300px); gap: 12px; align-items: start; }
.eq-coluna h5 { margin: 0 0 6px; font-size: 12px; color: var(--gw-texto-2); text-transform: uppercase; letter-spacing: 0.4px; }
.eq-calendario-topo { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; color: var(--header-color); font-size: 12.5px; }
.eq-legenda { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 10.5px; color: var(--gw-texto-2); }
.dot-ind.dot-feriado { background: #ea580c; }
.eq-vazio { font-size: 11.5px; color: var(--gw-muted); font-style: italic; padding: 6px 10px; border: 1px dashed var(--border-color); border-radius: 6px; }
.eq-sub { font-size: 11px; color: var(--gw-texto-2); }
.eq-proximas-ferias { margin-top: 6px; }

.eq-tipos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }
.eq-tipo { border: 1px solid var(--border-color); background: var(--bg-body); color: var(--text-main); border-radius: 999px; padding: 6px 12px; font-family: var(--font-family); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.eq-tipo:hover { border-color: var(--cor-roxo); }
.eq-tipo.active { background: var(--cor-roxo); border-color: var(--cor-roxo); color: #ffffff; }
.eq-tipo:focus-visible { outline: 2px solid var(--cor-roxo); outline-offset: 2px; }
.eq-tipo-mais { font-size: 11.5px; padding: 4px 10px; font-weight: 600; }
.eq-tipos-mais { font-size: 11px; color: var(--gw-texto-2); font-weight: 700; margin-left: 4px; }
.eq-registrar-campos { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.eq-campo { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 700; color: var(--gw-texto-2); min-width: 0; }
.eq-campo[hidden], .eq-ferias-preview[hidden] { display: none !important; }
.eq-campo select, .eq-campo input { margin: 0 !important; height: 36px; font-size: 12.5px; padding: 4px 10px; box-sizing: border-box; }
.eq-campo-tecnico { flex: 1 1 220px; }
.eq-campo-texto { flex: 2 1 280px; }
.eq-presets > div { display: flex; gap: 4px; }
.eq-btn-registrar { height: 36px; }
.eq-ferias-preview { margin-top: 8px; font-size: 11.5px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--gw-texto-2); }

.eq-conflitos-caixa { border: 1px solid var(--eq-conflito-borda); background: var(--eq-conflito-fundo); color: var(--eq-conflito-texto); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: 12px; }
.eq-conflitos-caixa ul { margin: 4px 0 0; padding-left: 18px; }
.eq-filtros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.eq-filtros .eq-campo { flex: 1 1 170px; }
.eq-campo-busca { flex: 2 1 220px !important; }
.eq-contagem { font-size: 11.5px; font-weight: 700; color: var(--gw-texto-2); margin-bottom: 6px; }
.eq-historico-tabela { max-height: 460px; overflow-y: auto; }
.eq-tabela-historico td { vertical-align: middle; font-size: 12px; }
.eq-tabela-historico th { position: sticky; top: 0; z-index: 2; }
.eq-col-data { white-space: nowrap; }
.eq-col-tecnico { text-align: left; }
.eq-col-detalhe { text-align: left; color: var(--text-main); }
.eq-data { border: none; background: transparent; color: var(--gw-primaria); font-family: var(--font-family); font-weight: 700; font-size: 12px; cursor: pointer; padding: 0; }
.eq-data small { color: var(--gw-texto-2); font-weight: 600; }
.eq-tag { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.eq-tag-ausencia { background: var(--eq-tag-ausencia-fundo); color: var(--eq-tag-ausencia-texto); }
.eq-tag-folga { background: var(--eq-tag-folga-fundo); color: var(--eq-tag-folga-texto); }
.eq-tag-agenda { background: var(--eq-tag-agenda-fundo); color: var(--eq-tag-agenda-texto); }
.eq-tag-ferias { background: var(--eq-tag-ferias-fundo); color: var(--eq-tag-ferias-texto); }
.eq-situacao { font-size: 11px; font-weight: 800; }
.eq-situacao-atual { color: var(--eq-tag-ferias-texto); }
.eq-situacao-futura { color: var(--eq-conflito-texto); }
.eq-situacao-passada { color: var(--gw-texto-2); }
.eq-conflito { font-size: 11px; font-weight: 700; color: var(--eq-conflito-texto); margin-top: 2px; }
.eq-sem-conflito { font-size: 11px; font-weight: 700; color: var(--eq-tag-ferias-texto); margin-top: 2px; }
.eq-linha-conflito td { background: var(--eq-conflito-fundo); }
.eq-btn-excluir { border: 1px solid var(--eq-tag-ausencia-texto); background: var(--eq-tag-ausencia-fundo); color: var(--eq-tag-ausencia-texto); border-radius: 6px; padding: 2px 7px; cursor: pointer; font-size: 12px; }

.busca-tecnico { margin-left: auto; display: flex; align-items: center; }
.busca-tecnico input { height: 30px; min-width: 230px; padding: 2px 10px; border: 1px solid var(--border-color); border-radius: 999px; background: var(--bg-container); color: var(--text-main); font-family: var(--font-family); font-size: 12.5px; }
.cs-nome-btn { border: none; background: transparent; color: inherit; padding: 0; cursor: pointer; font-family: var(--font-family); text-align: left; }
.cs-nome-btn:hover b { text-decoration: underline; }
.cs-av-pendente { border: 1px solid var(--cor-roxo); background: var(--eq-tag-agenda-fundo); border-radius: 999px; padding: 0 6px; margin-left: 6px; cursor: pointer; font-size: 12px; line-height: 18px; }
.cs-av-pendente.cs-av-atrasada { border-color: var(--cor-coral); background: var(--chip-alerta-fundo); }

.ficha-tecnico .ficha-corpo { display: flex; flex-direction: column; gap: 12px; }
.ficha-secao h4 { margin: 0 0 6px; font-size: 13px; color: var(--header-color); }
.ficha-semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ficha-dia { border: 1px solid var(--border-color); border-radius: 8px; padding: 4px; text-align: center; font-size: 10.5px; display: flex; flex-direction: column; gap: 2px; }
.ficha-dia b { font-size: 10px; color: var(--gw-texto-2); }
.ficha-dia-presencial { background: var(--tile-verde-fundo); color: var(--tile-verde-texto); }
.ficha-dia-remoto { background: var(--tile-azul-fundo); color: var(--tile-azul-texto); }
.ficha-dia-fora { background: var(--bg-body); color: var(--gw-texto-2); }
.ficha-dia-sel { box-shadow: 0 0 0 2px var(--gw-primaria); }
.ficha-grade-dia { margin-top: 6px; font-size: 12px; color: var(--text-main); }
.ficha-niveis { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.ficha-nivel { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; border: 1px solid var(--border-color); border-radius: 8px; padding: 6px; font-size: 11px; color: var(--text-main); }
.ficha-nivel-atende { border-color: var(--gw-primaria); }
.ficha-avaliacao { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-main); align-items: flex-start; }
.ficha-aderencia { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.ficha-ader-dia { border: 1px solid var(--border-color); border-radius: 8px; padding: 6px 4px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.ficha-ader-dia small { font-size: 10.5px; color: var(--gw-texto-2); }
.ficha-ader-dia b { font-size: 15px; }
.ficha-ader-ok b { color: var(--tile-verde-texto); }
.ficha-ader-alerta b { color: var(--tile-ambar-texto); }
.ficha-ader-critico b { color: var(--tile-coral-texto); }
.ficha-ader-sem b { color: var(--gw-muted); }

@media (max-width: 1100px) { .eq-hoje-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
    .eq-hoje-grade { grid-template-columns: 1fr; }
    .busca-tecnico { margin-left: 0; width: 100%; }
    .busca-tecnico input { min-width: 0; width: 100%; }
    .ficha-semana { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Calendário compacto dentro do bloco Hoje (Equipe › Ocorrências & Férias) */
.eq-calendario .agenda-calendar-grid { gap: 2px; }
.eq-calendario .agenda-day-cell { min-height: 30px; padding: 2px 1px; font-size: 11px; }
.eq-calendario .agenda-day-header { font-size: 10px; }
.eq-calendario .dot-ind { width: 5px; height: 5px; }

/* ==== TAREFAS (v6.0): filtro de concluídas compacto e colunas vazias recolhidas ==== */
.kanban-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kanban-filtro-concluidas { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--gw-texto-2); }
.kanban-filtro-concluidas select { height: 28px; padding: 0 6px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-container); color: var(--text-main); font-family: var(--font-family); font-size: 12px; font-weight: 700; cursor: pointer; }
@media (min-width: 1025px) {
    .kanban-grid { grid-template-columns: var(--kanban-colunas, repeat(5, minmax(0, 1fr))); transition: grid-template-columns 0.2s ease; }
    .kanban-column.kanban-col-vazia { padding: 10px 4px; align-items: center; }
    .kanban-col-vazia .kanban-column-title { writing-mode: vertical-rl; transform: rotate(180deg); border-bottom: none; padding-bottom: 0; justify-content: flex-end; gap: 10px; font-size: 12.5px; white-space: nowrap; }
}
.kanban-col-vazia { opacity: 0.85; }
.kanban-col-vazia > div:last-child { min-height: 40px; }
@media (max-width: 1024px) {
    .kanban-column.kanban-col-vazia { min-height: 0; padding: 8px 12px; }
    .kanban-col-vazia .kanban-column-title { border-bottom: none; padding-bottom: 0; }
}


/* ==== v7.0.0: ponto de conexão, barra do dia, Agenda (férias) e Diário ==== */
:root {
    --ponto-conectado: #16a34a; --ponto-reconectando: #f59e0b; --ponto-offline: #dc2626;
    --ponto-anel: rgba(10, 31, 68, 0.12);
    --barra-dia-fundo: #eef3fd; --barra-dia-borda: #c9d7f5; --barra-dia-texto: var(--gw-marinho);
    --barra-dia-painel: #ffffff; --barra-dia-sombra: 0 6px 18px rgba(10, 31, 68, 0.14);
    --bd-ausente-texto: #b45309; --bd-ferias-texto: #15803d;
    --cal-fundo: var(--bg-container); --cal-borda: var(--border-color); --cal-fds: #f6f7fa;
    --cal-hoje: var(--gw-primaria); --cal-sel-fundo: #eaf0fc; --cal-feriado: #ea580c;
    --ag-ferias-fundo: #dcfce7; --ag-ferias-texto: #14532d; --ag-ferias-borda: #86efac;
    --ag-conflito-fundo: #fff3d6; --ag-conflito-borda: #f59e0b; --ag-conflito-texto: #92400e;
    --di-marca-fundo: var(--gw-primaria); --di-marca-texto: #ffffff; --di-nota-fundo: #ede9fe;
    --di-parcial-fundo: #fef3c7; --di-parcial-texto: #92400e;
    --ag-sinal-ausencia: #ef4444; --ag-sinal-folga: #0284c7; --ag-sinal-agenda: #8b5cf6;
    --ag-sinal-parcial: #f59e0b; --ag-sinal-escala: #3266df; --ag-sinal-ferias: #15803d;
}
body.dark-mode {
    --ponto-conectado: #4ade80; --ponto-reconectando: #fbbf24; --ponto-offline: #f87171;
    --ponto-anel: rgba(255, 255, 255, 0.14);
    --barra-dia-fundo: #142343; --barra-dia-borda: #2a3d66; --barra-dia-texto: #eef1f7;
    --barra-dia-painel: #111c33; --barra-dia-sombra: 0 6px 18px rgba(0, 0, 0, 0.5);
    --bd-ausente-texto: #fcd34d; --bd-ferias-texto: #86efac;
    --cal-fundo: var(--bg-container); --cal-borda: var(--border-color); --cal-hoje: var(--gw-primaria);
    --cal-fds: #0d1830; --cal-sel-fundo: #16264a; --cal-feriado: #fb923c;
    --ag-ferias-fundo: rgba(74, 222, 128, 0.16); --ag-ferias-texto: #bbf7d0; --ag-ferias-borda: rgba(74, 222, 128, 0.4);
    --ag-conflito-fundo: rgba(251, 191, 36, 0.14); --ag-conflito-borda: #fbbf24; --ag-conflito-texto: #fcd34d;
    --di-marca-fundo: #5a86ea; --di-marca-texto: #0b1426; --di-nota-fundo: rgba(167, 139, 250, 0.2);
    --di-parcial-fundo: rgba(251, 191, 36, 0.16); --di-parcial-texto: #fcd34d;
    --ag-sinal-ausencia: #f87171; --ag-sinal-folga: #38bdf8; --ag-sinal-agenda: #c4b5fd;
    --ag-sinal-parcial: #fbbf24; --ag-sinal-escala: #60a5fa; --ag-sinal-ferias: #86efac;
}

/* Ponto de conexão (substitui o selo "Nuvem Sincronizada") */
.status-ponto { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 3px var(--ponto-anel); cursor: help; background: var(--ponto-reconectando); }
.status-ponto-conectado { background: var(--ponto-conectado); }
.status-ponto-reconectando { background: var(--ponto-reconectando); animation: ponto-pulsa 1.6s ease-in-out infinite; }
.status-ponto-offline { background: var(--ponto-offline); }
.status-ponto:focus-visible { outline: 2px solid var(--gw-primaria); outline-offset: 3px; }
@keyframes ponto-pulsa { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .status-ponto-reconectando { animation: none; } }

/* Barra do dia: fina, fixa no topo de todas as abas */
.barra-dia { position: sticky; top: 0; z-index: 60; margin: -6px 0 12px; }
.barra-dia-botao { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 14px; border: 1px solid var(--barra-dia-borda); border-radius: 999px; background: var(--barra-dia-fundo); color: var(--barra-dia-texto); font-family: var(--font-family); font-size: 12.5px; font-weight: 700; cursor: pointer; text-align: left; }
.barra-dia-botao:hover { border-color: var(--gw-primaria); }
.barra-dia-botao:focus-visible { outline: 2px solid var(--gw-primaria); outline-offset: 2px; }
.barra-dia-texto { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.barra-dia-seta { transition: transform 0.15s; }
.barra-dia-botao[aria-expanded="true"] .barra-dia-seta { transform: rotate(180deg); }
.barra-dia-painel { margin-top: 6px; max-height: 60vh; overflow: auto; border: 1px solid var(--barra-dia-borda); border-radius: 12px; background: var(--barra-dia-painel); box-shadow: var(--barra-dia-sombra); padding: 6px 8px; }
.barra-dia-painel[hidden] { display: none; }
.bd-tabela { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.bd-tabela th, .bd-tabela td { text-align: left; }
.bd-tabela th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.3px; color: var(--gw-texto-2); padding: 6px 8px; border-bottom: 1px solid var(--border-color); background: transparent; }
.bd-tabela td { padding: 5px 8px; border-bottom: 1px solid var(--border-color); color: var(--text-main); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bd-tabela td small { color: var(--gw-texto-2); font-weight: 600; }
.bd-nome { white-space: normal !important; }
.bd-situacao { font-weight: 700; }
.bd-situacao-ausente { color: var(--bd-ausente-texto); }
.bd-situacao-ferias { color: var(--bd-ferias-texto); }
.bd-ausente td, .bd-ferias td { color: var(--gw-texto-2); }
.bd-vazio { padding: 10px; font-size: 12px; color: var(--gw-muted); font-style: italic; }

/* Calendário do mês (Agenda e Diário) */
.cal-topo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cal-titulo { margin: 0; min-width: 150px; text-align: center; font-size: 15px; color: var(--header-color); }
.cal-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-cabecalho { text-align: center; font-size: 11px; font-weight: 800; color: var(--gw-texto-2); text-transform: uppercase; padding: 2px 0; }
.cal-dia { min-height: 64px; border: 1px solid var(--cal-borda); border-radius: 8px; background: var(--cal-fundo); padding: 4px 5px; display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow: hidden; }
.cal-dia[role="button"] { cursor: pointer; }
.cal-dia[role="button"]:hover { border-color: var(--gw-primaria); }
.cal-dia[role="button"]:focus-visible { outline: 2px solid var(--gw-primaria); outline-offset: 1px; }
.cal-fds { background: var(--cal-fds); }
.cal-hoje { box-shadow: inset 0 0 0 2px var(--cal-hoje); }
.cal-selecionado { background: var(--cal-sel-fundo); border-color: var(--gw-primaria); }
.cal-feriado { border-bottom: 3px solid var(--cal-feriado); }
.cal-dia-topo { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; color: var(--text-main); }
.cal-feriado-selo { font-size: 11px; }

/* Agenda: férias */
.ag-calendario .cal-dia { min-height: 86px; }
.ag-ferias { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 2px 5px; border-radius: 6px; background: var(--ag-ferias-fundo); color: var(--ag-ferias-texto); border: 1px solid var(--ag-ferias-borda); font-size: 11px; font-weight: 700; line-height: 1.25; min-width: 0; }
.ag-ferias-nome { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ag-ferias .badge-proj { font-size: 8.5px; padding: 0 4px; }
.ag-dia-conflito { border: 2px solid var(--ag-conflito-borda); background: var(--ag-conflito-fundo); }
.ag-ferias-conflito { border-color: var(--ag-conflito-borda); }
.ag-alerta-dia { font-size: 10.5px; font-weight: 800; color: var(--ag-conflito-texto); }
.ag-conflitos-caixa { border: 1px solid var(--ag-conflito-borda); background: var(--ag-conflito-fundo); color: var(--ag-conflito-texto); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: 12.5px; }
.ag-conflitos-caixa ul { margin: 4px 0 0; padding-left: 18px; }
.ag-sem-conflito { font-size: 12px; color: var(--bd-ferias-texto); font-weight: 700; margin-bottom: 8px; }
.ag-legenda-ferias, .ag-legenda-conflito { display: inline-block; width: 12px; height: 10px; border-radius: 3px; vertical-align: middle; background: var(--ag-ferias-fundo); border: 1px solid var(--ag-ferias-borda); }
.ag-legenda-conflito { background: var(--ag-conflito-fundo); border: 2px solid var(--ag-conflito-borda); }
.ag-form[hidden] { display: none; }
.ag-busca { margin: 0 !important; height: 32px; font-size: 12.5px; max-width: 260px; }
.ag-resumos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 10px; }
.ag-resumo { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: 1px solid var(--border-color); border-top: 3px solid var(--bd-ferias-texto); border-radius: 10px; background: var(--bg-container); color: var(--text-main); padding: 8px 12px; font-family: var(--font-family); cursor: pointer; }
.ag-resumo-futuras { border-top-color: var(--ag-conflito-borda); }
.ag-resumo b { font-size: 20px; }
.ag-resumo-rotulo { font-size: 11.5px; font-weight: 800; color: var(--gw-texto-2); }
.ag-resumo-nome { font-size: 11.5px; font-weight: 700; }
.ag-resumo-nome span, .ag-resumo-vazio { font-weight: 500; color: var(--gw-texto-2); font-size: 11.5px; }
.ag-filtros { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

/* Diário */
.di-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.di-calendario .cal-dia { min-height: 54px; }
.di-com-registro .cal-num { color: var(--gw-primaria); }
.di-marcas { display: flex; align-items: center; justify-content: space-between; gap: 3px; flex-wrap: wrap; margin-top: auto; width: 100%; }
.ag-sinais-pontos { display: inline-flex; align-items: center; gap: 3.5px; flex-wrap: wrap; max-width: 100%; }
.ag-sinal-ponto { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; box-sizing: border-box; transition: transform 0.15s ease; cursor: default; }
.ag-sinal-ponto:hover { transform: scale(1.4); z-index: 2; }
.ag-sinal-ausencia { background: var(--ag-sinal-ausencia); }
.ag-sinal-folga { background: var(--ag-sinal-folga); }
.ag-sinal-agenda { background: var(--ag-sinal-agenda); }
.ag-sinal-parcial { background: var(--ag-sinal-parcial); }
.ag-sinal-escala { background: var(--ag-sinal-escala); }
.ag-sinal-ferias { background: var(--ag-sinal-ferias); }
.ag-sinal-mais { font-size: 9px; font-weight: 800; color: var(--gw-texto-2); line-height: 1; }
.di-marca { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--bg-body); border: 1px solid var(--border-color); color: var(--text-main); font-size: 10px; font-weight: 800; box-sizing: border-box; }
.di-marca-nota { background: var(--di-nota-fundo); color: var(--text-main); border: none; }
.ag-legenda { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 11.5px; color: var(--gw-texto-2); margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--border-color); }
.ag-legenda span { display: inline-flex; align-items: center; gap: 4px; }
.di-form { border: 1px dashed var(--border-color); border-radius: 10px; padding: 10px; margin-bottom: 10px; background: var(--bg-body); }
.di-form[hidden] { display: none; }
.di-form-topo { font-size: 12px; color: var(--gw-texto-2); margin-bottom: 8px; }
.di-lista { display: flex; flex-direction: column; gap: 6px; }
.di-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--border-color); border-left: 4px solid var(--gw-muted); border-radius: 8px; background: var(--bg-container); }
.di-item-ausencia { border-left-color: var(--eq-tag-ausencia-texto); }
.di-item-parcial { border-left-color: var(--ag-conflito-borda); }
.di-item-folga { border-left-color: var(--eq-tag-folga-texto); }
.di-item-agenda { border-left-color: var(--eq-tag-agenda-texto); }
.di-item-ferias { border-left-color: var(--bd-ferias-texto); opacity: 0.85; }
.di-item-escala { border-left-color: var(--gw-primaria); }
.di-item-icone { font-size: 16px; }
.di-item-texto { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text-main); }
.di-item-texto .badge-proj { font-size: 9px; padding: 1px 5px; }
.di-tag { display: inline-block; margin-top: 2px; font-size: 10.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--eq-tag-folga-fundo); color: var(--eq-tag-folga-texto); }
.di-tag-ausencia { background: var(--eq-tag-ausencia-fundo); color: var(--eq-tag-ausencia-texto); }
.di-tag-parcial { background: var(--di-parcial-fundo); color: var(--di-parcial-texto); }
.di-tag-agenda { background: var(--eq-tag-agenda-fundo); color: var(--eq-tag-agenda-texto); }
.di-tag-ferias { background: var(--eq-tag-ferias-fundo); color: var(--eq-tag-ferias-texto); }
.di-tag-escala { background: var(--gw-primaria-suave); color: var(--gw-primaria); }
.di-detalhe { font-size: 12px; color: var(--gw-texto-2); }
.di-btn-excluir { border: 1px solid var(--eq-tag-ausencia-texto); background: var(--eq-tag-ausencia-fundo); color: var(--eq-tag-ausencia-texto); border-radius: 6px; padding: 2px 7px; cursor: pointer; font-size: 12px; }
.di-link { border: none; background: transparent; color: var(--gw-primaria); font-family: var(--font-family); font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.di-vazio { font-size: 12px; color: var(--gw-muted); font-style: italic; padding: 10px; border: 1px dashed var(--border-color); border-radius: 8px; }
.di-anotacao-bloco { margin-top: 12px; }
.di-anotacao-rotulo { display: block; font-size: 12px; font-weight: 800; color: var(--header-color); margin-bottom: 4px; }
.di-anotacao-rotulo small { font-weight: 500; color: var(--gw-texto-2); }
.di-anotacao-status { font-size: 11px; color: var(--bd-ferias-texto); font-weight: 700; }
.di-anotacao { width: 100%; box-sizing: border-box; border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 10px; font-family: var(--font-family); font-size: 12.5px; background: var(--bg-container); color: var(--text-main); resize: vertical; }
.di-historico > summary { cursor: pointer; font-weight: 800; font-size: 13.5px; color: var(--header-color); }
.di-historico[open] > summary { margin-bottom: 10px; }

@media (max-width: 900px) {
    .di-layout { grid-template-columns: 1fr; }
    .ag-calendario .cal-dia { min-height: 70px; }
    .ag-ferias .badge-proj { display: none; }
}
@media (max-width: 600px) {
    .barra-dia-botao { border-radius: 12px; }
    .barra-dia-texto { white-space: normal; }
    .cal-grade { gap: 2px; }
    .cal-dia { padding: 3px; min-height: 48px; }
    .ag-ferias { font-size: 9.5px; padding: 1px 3px; }
}
