* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background-color: #f0f2f5; display: flex; }
.container { display: flex; width: 100%; }
.content { margin-left: 250px; padding: 20px 40px; width: calc(100% - 250px); height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.header-dashboard { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 25px; flex-shrink: 0; }
.header-dashboard h1 { font-size: 1.8rem; text-align: center; width: 100%; margin: 0;}
.header-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; width: 100%;}
.filter-group { display: flex; align-items: center; gap: 8px; background: white; padding: 8px 12px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.filter-group-visible { display: flex; gap: 8px; background: white; padding: 6px 12px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); align-items: center; }
.filter-group label { font-size: 0.8rem; font-weight: bold; color: #000; }
.filter-group select, .filter-group input { border: 1px solid #ddd; padding: 4px; border-radius: 4px; outline: none; font-size: 0.85rem; text-align: center; text-align-last: center; }
.check-item { font-size: 0.75rem; font-weight: bold; color: #444; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.check-item input { cursor: pointer; accent-color: #3498db; width: 15px; height: 15px; }
.legenda-mapa { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 10px; background: white; padding: 10px 15px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); flex-wrap: wrap; flex-shrink: 0; }
.legenda-itens-group { display: flex; gap: 15px; flex-wrap: wrap; }
.legenda-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: bold; }
.box { width: 14px; height: 14px; border-radius: 3px; border: 1px solid #ddd; display: inline-block; }
.s-sab { background-color: #fff4e6; } 
.s-dom { background-color: #e7f5ff; } 
.s-fer { background-color: #ebfbee; } 
.s-vac { background-color: #9b59b6; }
.s-lic { background-color: #e67e22; } 
.mapa-scroll-area { flex-grow: 1; overflow: auto; padding-right: 10px; padding-bottom: 50px; }
.empresa-section { margin-bottom: 30px; }
.empresa-title { background: transparent; color: black; padding: 15px 0 5px 0; text-align: center; font-weight: bold; font-size: 1.1rem; text-transform: uppercase; }
.periodo-subtitle { background: #eee; padding: 4px 15px; font-weight: bold; border-left: 5px solid #3498db; font-size: 1rem; }
.table-wrapper { border: 2px solid #666; background: white; margin-bottom: 10px; position: relative; }
table { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; border: 1px solid #666; }
th, td { border: 1px solid #666; padding: 4px; font-size: 0.7rem; height: 32px; text-align: center; vertical-align: middle; min-width: 38px; }
thead th { background: #f8f9fa; color: #000 !important; font-weight: bold; position: sticky; top: 0; z-index: 25; }
.col-func { min-width: 170px !important; width: 170px; text-align: left !important; padding-left: 8px !important; font-weight: bold !important; white-space: nowrap; background: #fff !important; position: sticky; left: 0; z-index: 20; border-right: 2px solid #666 !important; }
thead th.col-func { z-index: 30; top: 0; }
.col-total { min-width: 50px !important; width: 50px; font-weight: bold; background: #f8f9fa !important; border-left: 2px solid #666 !important; }
.dia-sabado { background-color: #fff4e6 !important; } 
.dia-domingo { background-color: #e7f5ff !important; } 
.dia-feriado { background-color: #ebfbee !important; } 
thead th.dia-feriado { cursor: help; }
.dia-ferias { background-color: #9b59b6 !important; color: white !important; font-weight: bold; text-transform: uppercase; }
.dia-afastamento { background-color: #e67e22 !important; color: white !important; font-weight: bold; text-transform: uppercase; }
.dia-demitido { background-color: #000 !important; color: #fff !important; font-weight: bold; text-transform: uppercase; text-align: center; font-size: 0.7rem; }
.folga-pedida { color: #e74c3c !important; font-weight: bold; } 
.folga-programada { color: #000 !important; font-weight: bold; } 
.folga-marcada { color: #000 !important; font-weight: bold; font-style: italic; }
.btn-save-blue { background: #3498db; color: white; border: none; padding: 10px 15px; border-radius: 8px; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.btn-print-red { background: #e74c3c; color: white; border: none; padding: 10px 15px; border-radius: 8px; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.switch-label { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: bold; color: #2c3e50; cursor: pointer; }
.symbol-a { color: #e74c3c !important; font-weight: bold; font-size: 0.8rem; margin-right: 2px; }
.hide-extras .symbol-a, .hide-extras .folga-programada { display: none; }
.print-only-header { display: none; }
@media print {
    @page { size: A4 landscape; margin: 5mm; }
    body { background: white; }
    .sidebar, .header-dashboard, .header-controls, .instrucao, .legenda-controls, .legenda-mapa { display: none !important; }
    .content { margin: 0; padding: 0; width: 100%; height: auto; overflow: visible; display: block; }
    .mapa-scroll-area { overflow: visible; padding: 0; }
    .print-only-header { display: block !important; text-align: center; font-size: 1.2rem; font-weight: bold; margin-bottom: 10px; border-bottom: 2px solid #000; padding-bottom: 5px; color: #000 !important; }
    .empresa-section { page-break-inside: avoid; margin-bottom: 15px; }
    .table-wrapper { border-width: 1pt; border-color: #666; }
    table { width: 100%; border-collapse: collapse; border: 0.5pt solid #666 !important; }
    th, td { font-size: 0.45rem !important; height: 18px !important; padding: 0px !important; border: 0.5pt solid #666 !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; color: #000 !important; }
    .col-func { position: static !important; width: 120px !important; min-width: 120px !important; font-size: 0.45rem !important; border-right: 1pt solid #666 !important; background: white !important; }
    .col-total { border-left: 1pt solid #666 !important; width: 30px !important; }
    thead th { position: static !important; background-color: #eeeeee !important; color: black !important; }
    .dia-sabado { background-color: #fff4e6 !important; }
    .dia-domingo { background-color: #e7f5ff !important; }
    .dia-feriado { background-color: #ebfbee !important; }
    .dia-ferias { background-color: #9b59b6 !important; color: white !important; }
    .dia-afastamento { background-color: #e67e22 !important; color: white !important; }
}