:root{--navy:#17324d;--ink:#263847;--muted:#697d8c;--line:#dce5eb;--blue:#2c6e91;--bg:#f4f7f9;--white:#fff;--teal:#1e826d}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:15px/1.5 "Segoe UI",Arial,sans-serif;color:var(--ink)}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}.wrap{max-width:1280px;margin:0 auto;padding:0 28px}.topbar{background:var(--navy);color:#fff}.topbar-inner{min-height:72px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:11px;color:#fff;font-size:17px;font-weight:700;line-height:1.05}.brand small{font-size:11px;letter-spacing:.09em;text-transform:uppercase;font-weight:400;color:#b8d4df}.brand-mark{display:grid;place-items:center;background:#5aa4b1;color:#fff;border-radius:9px;width:36px;height:36px}.topbar nav{display:flex;align-items:center;gap:28px}.topbar nav a,.link-button{color:#e5f0f4;font:inherit}.link-button{background:none;border:0;cursor:pointer}.topbar form{display:inline}main.wrap{padding-top:38px;min-height:calc(100vh - 134px)}.page-heading{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:25px}.eyebrow{color:var(--teal);font-size:11px;letter-spacing:.13em;font-weight:800;margin:0 0 7px}h1{font-size:31px;line-height:1.2;color:var(--navy);margin:0 0 9px;letter-spacing:-.025em}h2{font-size:18px;color:var(--navy);margin:0}p{margin:0 0 12px}.muted{color:var(--muted)}.button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 14px;border-radius:7px;border:1px solid #b8cbd5;background:#fff;color:var(--navy);font:600 14px "Segoe UI",Arial,sans-serif;white-space:nowrap;cursor:pointer}.button:hover{text-decoration:none;background:#edf4f7}.button.primary{background:var(--blue);border-color:var(--blue);color:#fff}.button.primary:hover{background:#225d7d}.button.danger{border-color:#b54a50;color:#a8363d}.button.ghost{border-color:transparent;background:transparent}.action-row{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 22px}.action-row form{margin:0}.card{background:var(--white);border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 8px rgba(20,44,61,.035)}.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin-bottom:22px}.stat{padding:18px 21px}.stat span{color:var(--muted);font-size:13px;display:block}.stat strong{font-size:29px;color:var(--navy);line-height:1.4}.stat .small-strong{font-size:20px}.table-card{margin-bottom:22px}.card-title{padding:19px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line)}
/* overflow-x:auto + overflow-y:clip: el scroll horizontal queda contenido en la tabla (no se mueve el título ni
   las pestañas de arriba) sin activar el "overflow-y:auto" automático que rompe el anclado de los encabezados. */
.table-scroll{overflow-x:auto;overflow-y:clip}table{width:100%;border-collapse:collapse}th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#6b8190;background:#f8fafb;white-space:nowrap}th,td{padding:12px 17px;border-bottom:1px solid #e8eef1}tr:last-child td{border-bottom:0}td{font-size:14px}td strong{color:var(--navy)}.empty{text-align:center;color:var(--muted);padding:30px}.badge{display:inline-block;padding:3px 9px;border-radius:100px;font-size:12px;font-weight:700}.badge.open{background:#e3f4ec;color:#206c55}.badge.closed{background:#e7edf1;color:#526774}.badge.pending{background:#fff0d8;color:#99671e}.badge.draft{background:#eef0fa;color:#4a52a8}.badge.large{font-size:13px;padding:7px 13px}.form-card{padding:26px;max-width:1060px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.field label{display:block;font-size:13px;font-weight:700;color:#3d5362;margin-bottom:6px}.field input,.field select,.field textarea,.search-bar input,td input{width:100%;border:1px solid #c5d4dc;border-radius:6px;background:#fff;padding:9px 10px;font:inherit;color:var(--ink);min-height:39px}.field textarea{resize:vertical}.field small{display:block;color:var(--muted)}.field .field-error{color:#a02f35}.check-field{display:flex;align-items:center;gap:9px;padding-top:23px}.check-field label{margin:0;order:2}.check-field input{width:auto;min-height:auto;order:1}.form-actions{display:flex;gap:9px;margin-top:26px}.search-bar{display:flex;gap:9px;max-width:520px;margin-bottom:22px}.messages{margin-bottom:17px}.message{padding:12px 16px;border-radius:7px;margin-bottom:8px;background:#dfeef7;color:#215875;white-space:pre-line}.message.error{background:#fde9e9;color:#9a343b}.message.warning{background:#fff2d9;color:#805b18}.message.success{background:#e3f4ec;color:#206c55}.close-card{padding:22px;display:flex;justify-content:space-between;align-items:center;margin:24px 0}.close-card p{color:var(--muted);margin:4px 0 0}.employee-chips{padding:15px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.employee-chip{border:1px solid var(--line);border-radius:7px;padding:10px 12px;display:flex;justify-content:space-between;gap:12px;font-size:13px}.employee-chip strong{white-space:nowrap}.detail-row td{padding-top:3px;padding-bottom:4px;background:#fbfcfd}.detail-row details summary{cursor:pointer;color:var(--blue);font-size:12px}.line-list{display:grid;grid-template-columns:1fr auto;gap:3px 20px;max-width:550px;padding:11px 0 6px}.line-list strong{text-align:right}.login-card{max-width:440px;margin:50px auto;padding:34px}.login-card input{width:100%;border:1px solid #c5d4dc;border-radius:6px;padding:9px}.login-card label{display:block;font-weight:600}.footer{color:#8597a3;font-size:12px;padding-top:22px;padding-bottom:28px}@media(max-width:800px){.wrap{padding-left:16px;padding-right:16px}.topbar-inner,.page-heading,.close-card{flex-direction:column;align-items:start}.topbar-inner{padding-top:15px;padding-bottom:15px}.topbar nav{gap:14px;flex-wrap:wrap}.stat-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.employee-chips{grid-template-columns:1fr}h1{font-size:27px}}

.review-summary{display:flex;gap:7px;flex-wrap:wrap}.review-help{padding:12px 22px 0;margin:0}.review-grid th,.review-grid td{vertical-align:top}.review-employee{white-space:nowrap;font-weight:600}.review-cell{min-width:150px}.review-cell .rule{font-size:13px;color:var(--ink)}.review-cell .calc{font-weight:700;color:var(--navy)}.review-cell .state{display:flex;align-items:center;gap:8px;margin-top:5px}.review-cell form{margin:0}.review-cell.omitted{background:#f3f5f7;color:var(--muted)}.review-cell.omitted .rule{text-decoration:line-through}.review-cell.pending{background:#fff8ea}.hours-form{display:flex;gap:5px;margin:5px 0}.hours-form input{width:80px;min-height:32px;padding:4px 8px}.hours-form .button{min-height:32px;padding:4px 10px}.review-cell .link-button{color:var(--blue);font-size:12px}
.inline-check{display:flex;align-items:center;gap:6px;white-space:nowrap;color:var(--muted);font-size:14px}.inline-check input{width:auto;min-height:auto}
.inline-form{margin:0}.inline-form select{width:auto;min-height:34px;padding:4px 8px}.field select,.field input[type=password]{width:100%}

.sheet-tabs{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 18px;border-bottom:2px solid var(--line)}.sheet-tabs a{padding:8px 13px;border-radius:7px 7px 0 0;font-size:13.5px;font-weight:600;color:var(--muted);border:1px solid transparent;margin-bottom:-2px}.sheet-tabs a:hover{background:#edf4f7;text-decoration:none}.sheet-tabs a.active{background:#fff;color:var(--navy);border-color:var(--line);border-bottom:2px solid #fff}
.sheet-table th.num,.sheet-table td.num{text-align:right;white-space:nowrap}.sheet-table td input{max-width:110px;text-align:right}.sheet-table tfoot td{background:#f8fafb;font-weight:700;color:var(--navy);border-top:2px solid var(--line)}.row-error{background:#fdf0f0}.row-muted{background:#f3f5f7;color:var(--muted)}.row-pending{background:#fff8ea}.sheet-actions{display:flex;gap:8px}
.receipt-picker{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.receipt-picker select{min-width:280px;border:1px solid #c5d4dc;border-radius:6px;padding:8px;font:inherit}.receipt{padding:24px;max-width:920px}.receipt-head{display:flex;justify-content:space-between;gap:20px;border-bottom:2px solid var(--navy);padding-bottom:12px;margin-bottom:14px}.receipt-head .right{text-align:right}.receipt-data{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 20px;margin-bottom:16px;font-size:14px}.receipt-data span{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.05em}.receipt-totals{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:16px;padding-top:12px;border-top:2px solid var(--line)}.receipt-totals span{display:block;color:var(--muted);font-size:12px}.receipt-totals .grand strong{font-size:22px;color:var(--teal)}.small{font-size:12px}
@media print{.topbar,.footer,.sheet-tabs,.no-print,.page-heading a,.messages{display:none!important}main.wrap{padding-top:0}.card{box-shadow:none;border:0}}
.steps{list-style:none;margin:0;padding:6px 22px 14px}.steps li{display:flex;align-items:center;gap:14px;padding:11px 0;border-bottom:1px solid #e8eef1}.steps li:last-child{border-bottom:0}.steps li>span{flex:0 0 30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:700;background:#e7edf1;color:#526774}.steps li.done>span{background:#e3f4ec;color:#206c55}.steps li.todo>span{background:#fff0d8;color:#99671e}.steps li>div{flex:1}.steps form{margin:0}
.sheet-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:16px 22px 20px}.sheet-card{display:flex;flex-direction:column;gap:2px;border:1px solid var(--line);border-radius:8px;padding:11px 13px;color:var(--ink)}.sheet-card:hover{background:#edf4f7;text-decoration:none}.sheet-card strong{color:var(--navy);font-size:14px}.sheet-card span{font-size:12.5px;color:var(--muted)}.sheet-card.alert{border-color:#e6c37e;background:#fff8ea}.sheet-card.alert span{color:#99671e}
@media(max-width:800px){.sheet-grid{grid-template-columns:repeat(2,1fr)}.receipt-data,.receipt-totals{grid-template-columns:1fr 1fr}}
.year-nav{display:flex;gap:8px}.holiday-form{display:flex;gap:14px;align-items:end;padding:16px 22px;border-top:1px solid var(--line)}.holiday-form .field{flex:1;max-width:320px}.danger-link{color:#a8363d!important}
input.num-input{text-align:right}th.num{text-align:right}.row-saving{opacity:.6}.row-saved td.js-amount{color:var(--teal);font-weight:700}.js-note:empty{display:none}.js-note.js-note-ok{color:var(--teal);font-weight:700}
[data-grid] td.num,[data-grid] th.num{text-align:right}
/* Hojas y grillas: los títulos (y el total) quedan fijos mientras se recorren los empleados */
.table-scroll:not(:has(.receipt-lines)) thead th,.sheet-table thead th,table[data-grid] thead th{position:sticky;top:0;z-index:3;background:#f8fafb;box-shadow:0 1px 0 var(--line)}
.sheet-table tfoot td{position:sticky;bottom:0;z-index:2;box-shadow:0 -1px 0 var(--line)}
.sheet-table td:nth-child(2){min-width:230px}
/* Filas compactas y columnas de legajo + nombre fijas al desplazar hacia los costados */
.sheet-table th,.sheet-table td,table[data-grid] th,table[data-grid] td{padding:4px 12px}
.sheet-table td{font-size:13.5px;line-height:1.25}
.sheet-table td input,table[data-grid] td input{min-height:28px;height:28px;padding:2px 8px;font-size:13.5px}
.sheet-table td small{font-size:11.5px}
.sheet-table th:nth-child(1),.sheet-table td:nth-child(1){position:sticky;left:0;width:74px;min-width:74px;max-width:74px;background:#fff;z-index:1}
.sheet-table th:nth-child(2),.sheet-table td:nth-child(2){position:sticky;left:74px;min-width:230px;background:#fff;z-index:1;box-shadow:1px 0 0 var(--line)}
.sheet-table thead th:nth-child(-n+2){background:#f8fafb;z-index:5}
.sheet-table tfoot td:nth-child(-n+2){background:#f8fafb;z-index:4}
.sheet-table tr.row-muted>td:nth-child(-n+2){background:#f3f5f7}
.sheet-table tr.row-error>td:nth-child(-n+2){background:#fdf0f0}
.sheet-table tr.row-pending>td:nth-child(-n+2){background:#fff8ea}
.sheet-table tfoot td{background:#f8fafb}
td input:disabled,.field input:disabled,.field select:disabled{background:#eef2f5;color:#6b7f8c;border-color:#dce5eb;cursor:not-allowed}
/* Reportes: las columnas no son legajo + nombre, así que no se fijan ni se les impone ancho */
.report-table th:nth-child(-n+2),.report-table td:nth-child(-n+2){position:static;width:auto;min-width:0;max-width:none;box-shadow:none}
/* Condiciones laborales: primeras columnas son fecha + categoría, no legajo + nombre */
.conditions-table th:nth-child(-n+2),.conditions-table td:nth-child(-n+2){position:static;width:auto;min-width:0;max-width:none;box-shadow:none}
.report-table td:first-child{white-space:nowrap}.report-table tfoot th{background:#f8fafb;color:var(--navy)}
.receipt .sheet-table th,.receipt .sheet-table td{position:static!important;width:auto;min-width:0;max-width:none;box-shadow:none}
.receipt .sheet-table td:nth-child(1){min-width:0}
/* Recibo */
.receipt{padding:28px 32px;max-width:960px;font-variant-numeric:tabular-nums}
.receipt-head{align-items:flex-end}.receipt-head strong{color:var(--navy)}
.receipt-data{background:#f6f9fb;border:1px solid var(--line);border-radius:10px;padding:14px 18px;gap:12px 24px}
.receipt-data strong{color:var(--navy)}
.receipt .receipt-lines{table-layout:fixed;width:100%;border-collapse:collapse;margin-top:6px}
.receipt .receipt-lines th{background:var(--navy);color:#fff;font-size:11px;padding:8px 12px;letter-spacing:.05em}
.receipt .receipt-lines th:first-child{border-radius:6px 0 0 6px}.receipt .receipt-lines th:last-child{border-radius:0 6px 6px 0}
.receipt .receipt-lines td{padding:7px 12px;border-bottom:1px solid #e8eef1;font-size:14px}
.receipt .receipt-lines tbody tr:nth-child(even) td{background:#fafcfd}
.receipt .receipt-lines th:nth-child(1){width:auto}.receipt .receipt-lines th:nth-child(2){width:110px}.receipt .receipt-lines th:nth-child(n+3){width:150px}
.receipt .receipt-lines td.num,.receipt .receipt-lines th.num{text-align:right}
.receipt-totals{background:#f6f9fb;border:1px solid var(--line);border-radius:10px;padding:14px 18px}
.receipt-totals>div{text-align:right}.receipt-totals strong{font-size:16px;color:var(--navy)}
.receipt-totals .grand{background:var(--navy);border-radius:8px;padding:8px 14px}.receipt-totals .grand span{color:#cfe3ec}.receipt-totals .grand strong{color:#fff;font-size:22px}
.receipt-bar{position:sticky;top:0;z-index:20}
.receipt-lines td:nth-child(-n+2){position:static;width:auto;min-width:0;max-width:none;box-shadow:none}
.receipt-lines thead th:nth-child(-n+2){left:auto;width:auto;min-width:0;max-width:none;box-shadow:none;background:var(--navy);z-index:3}
.receipt .receipt-lines thead th{top:78px}
.receipt-section{margin:22px 0 8px;font-size:14px;color:var(--navy);text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid var(--line);padding-bottom:4px}
.cost-summary{display:flex;align-items:center;gap:24px;margin:6px 0 4px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:#fafcfd}
.cost-pie{width:110px;height:110px;border-radius:50%;flex:none}.cost-summary h4{margin:0 0 8px;font-size:16px;color:var(--navy)}
.cost-summary ul{list-style:none;margin:0;padding:0;font-size:13px}.cost-summary li{display:flex;align-items:center;gap:8px;padding:2px 0}
.cost-summary li i{width:11px;height:11px;border-radius:3px;flex:none}.cost-summary li span{margin-left:auto;padding-left:18px;font-weight:600}
.receipt-lines tr.subtotal td{background:#f4f7f9;border-top:1px solid var(--line)}.receipt-totals.net-only{grid-template-columns:repeat(2,1fr);border-top:0;margin-top:6px;padding-top:0}
@media print{.cost-pie{-webkit-print-color-adjust:exact;print-color-adjust:exact}.cost-summary li i{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
/* Planilla completa */
.planilla-table th,.planilla-table td{white-space:nowrap;padding:4px 10px}
.planilla-table thead th.group{text-align:center;background:var(--navy);color:#fff;border-left:1px solid #2c4a68;font-size:11px}
.planilla-table thead tr:nth-child(2) th{top:29px;font-size:10.5px;text-transform:none;letter-spacing:0}
.planilla-table thead th:nth-child(-n+2){background:var(--navy);color:#fff}
.planilla-table thead tr:nth-child(2) th:nth-child(-n+2){left:auto;width:auto;min-width:0;max-width:none;background:#f8fafb;color:inherit;z-index:3;box-shadow:0 1px 0 var(--line)}
.planilla-table td.txt{text-align:left;color:var(--muted);font-size:12.5px}
.planilla-table tbody tr:hover td{background:#eef5f8}
.planilla-table tbody tr:hover td:nth-child(-n+2){background:#eef5f8}
.planilla-table td.has-tip{text-decoration:underline dotted var(--muted);text-underline-offset:3px;cursor:help}
.planilla-table td:nth-child(3){max-width:95px;overflow:hidden;text-overflow:ellipsis}
.receipt-words{margin:14px 0 4px;font-size:14px;color:var(--navy)}.receipt-words span{font-weight:700;margin-right:6px}
.line-list .line-total{border-top:1px solid var(--line);padding-top:4px;margin-top:2px;color:var(--navy)}
.fill-row th{background:#eef5f8!important;top:29px}.fill-box{display:flex;gap:6px;align-items:center;justify-content:flex-end}.fill-input{width:96px;min-height:26px;height:26px;padding:2px 8px;text-align:right;border:1px solid #c5d4dc;border-radius:6px;font:inherit;font-size:13px}.fill-box .button{min-height:26px;padding:2px 10px;font-size:12px}.fill-box .link-button{color:var(--blue);font-size:12px}
.tax-note{font-weight:400;text-transform:none;letter-spacing:0;color:var(--muted);font-size:11px}.tax-flags{display:flex;gap:14px;flex-wrap:wrap;border:1px solid var(--line);border-radius:8px;padding:6px 12px}.tax-flags legend{font-size:12px;color:var(--muted);padding:0 4px}.tax-flags label{display:flex;gap:5px;align-items:center;font-size:13px;white-space:nowrap}.tax-flags input{width:auto;min-height:auto}
.form-actions .push-right{margin-left:auto}
.sheets-collapsed>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;padding:16px 22px}.sheets-collapsed>summary::-webkit-details-marker{display:none}.sheets-collapsed[open]>summary{border-bottom:1px solid var(--line)}
/* La lista de recibos del Resumen corre con la página (sin sub-ventana); los títulos quedan fijos al desplazarla */
.table-card.page-flow{overflow:visible}
.table-card.page-flow .table-scroll{max-height:none;overflow:visible}
.page-flow thead th{position:sticky;top:0;z-index:3;background:#f8fafb;box-shadow:0 1px 0 var(--line)}
.sheet-table .state{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.planilla-scroll{max-height:420px;overflow:auto}
.sheet-table .state input[type=checkbox]{width:20px;height:20px;cursor:pointer}
.pay-scheme-filter{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);margin-left:auto}.pay-scheme-filter select{border:1px solid #c5d4dc;border-radius:6px;padding:5px 8px;font:inherit;min-height:30px}

.pct-field{display:inline-flex;align-items:center;gap:4px;margin-left:10px}.pct-field[hidden]{display:none}.pct-field input{width:72px;min-height:32px;padding:4px 8px;text-align:right}

.manual-toc{margin-bottom:22px}.manual-toc .card-title{padding:19px 22px 0;border-bottom:0}.manual-toc .sheet-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.manual-section{padding:26px 28px;margin-bottom:18px;scroll-margin-top:18px}.manual-section h2{margin-bottom:14px}.manual-section h3{font-size:15px;color:var(--navy);margin:20px 0 8px}.manual-section h3:first-of-type{margin-top:4px}
.manual-section ul,.manual-section ol{margin:0 0 14px;padding-left:22px}.manual-section li{margin-bottom:6px}
.manual-steps{list-style:decimal;counter-reset:none}
@media(max-width:800px){.manual-toc .sheet-grid{grid-template-columns:1fr}}

/* Foco visible para teclado */
a:focus-visible,button:focus-visible,.button:focus-visible,.link-button:focus-visible,summary:focus-visible,
.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible,
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* Errores de formularios de Django sin clase propia (login, admin forms) */
ul.errorlist{list-style:none;margin:0 0 12px;padding:12px 16px;border-radius:7px;background:#fde9e9;color:#9a343b;font-size:14px}
ul.errorlist li{margin:0}

.inline-select{border:1px solid #c5d4dc;border-radius:6px;padding:8px;min-width:260px;font:inherit}
.link-button{padding:8px;min-height:38px;border-radius:7px}
.link-button:hover{text-decoration:none;background:rgba(255,255,255,.08)}

/* Agrupación del menú principal */
.topbar nav{row-gap:8px;gap:22px}
.topbar nav a.active{color:#fff;font-weight:700;border-bottom:2px solid #fff;padding-bottom:3px}
.nav-admin{color:#ffd9a0!important}
.profile-tag{color:#b8d4df}

/* Menús desplegables del menú principal */
.nav-menu{position:relative}.nav-menu>summary{list-style:none;cursor:pointer;color:#e5f0f4;padding:4px 0;white-space:nowrap}.nav-menu>summary::-webkit-details-marker{display:none}
.nav-menu>summary::after{content:' ▾';font-size:11px}.nav-menu.has-active>summary{color:#fff;font-weight:700;border-bottom:2px solid #fff;padding-bottom:3px}
.nav-panel{position:absolute;top:calc(100% + 10px);left:-12px;z-index:50;min-width:230px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 28px rgba(20,44,61,.18);padding:6px;display:flex;flex-direction:column}
.topbar nav .nav-panel a{color:var(--ink);padding:8px 12px;border-radius:7px;border:0}.topbar nav .nav-panel a:hover{background:#edf4f7;text-decoration:none}
.topbar nav .nav-panel a.active{color:var(--navy);font-weight:700;background:#eef5f8;border:0;padding-bottom:8px}.topbar nav .nav-panel .nav-admin{color:#a8363d!important}
.topbar nav a,.brand span{white-space:nowrap}.topbar-inner{gap:24px}.topbar nav{flex-wrap:nowrap}
.user-menu{margin-left:12px;padding-left:20px;border-left:1px solid rgba(255,255,255,.2)}
.user-menu>summary{display:flex;align-items:center;gap:8px}.user-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#5aa4b1;color:#fff;font-weight:700;font-size:13px}
.nav-panel-right{left:auto;right:0}.nav-panel-note{padding:8px 12px;font-size:12px;color:var(--muted);border-bottom:1px solid var(--line);margin-bottom:4px}
.nav-panel-button{background:none;border:0;text-align:left;font:inherit;color:#a8363d;padding:8px 12px;border-radius:7px;cursor:pointer;width:100%}.nav-panel-button:hover{background:#fdf0f0}
@media(max-width:1100px){.topbar nav{flex-wrap:wrap;gap:14px}.user-menu{margin-left:0;padding-left:0;border-left:0}}
@media(max-width:800px){.nav-panel{position:static;box-shadow:none;margin-top:6px}}

/* Ayudas plegables (reemplazan los párrafos largos al pie de los títulos) */
details.help{margin:0 0 18px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:0 18px}.card details.help{border:0;margin:0;padding:6px 22px 0}
details.help>summary{cursor:pointer;color:var(--blue);font-weight:600;font-size:14px;padding:10px 0}details.help[open]>summary{border-bottom:1px solid var(--line);margin-bottom:10px}
details.help p,details.help li{font-size:14px;color:var(--ink)}details.help ol,details.help ul{padding-left:20px;margin:0 0 12px}

/* Vencimientos del inicio */
.deadlines{list-style:none;margin:0;padding:6px 22px 12px}.deadlines li{display:flex;gap:16px;align-items:center;padding:9px 0;border-bottom:1px solid #e8eef1}.deadlines li:last-child{border-bottom:0}
.deadline-date{flex:0 0 64px;text-align:center;font-weight:700;color:var(--navy);background:#eef5f8;border-radius:8px;padding:5px 0;line-height:1.2}.deadline-date small{display:block;font-weight:400;font-size:11px;color:var(--muted)}
.deadlines li.soon .deadline-date{background:#fff0d8;color:#99671e}

/* Circuito y estados de vacaciones */
.flow{display:flex;gap:0;list-style:none;padding:0;margin:0 0 20px;counter-reset:step}.flow li{flex:1;position:relative;background:#fff;border:1px solid var(--line);padding:10px 14px 10px 40px;font-weight:600;color:var(--navy);font-size:14px}
.flow li+li{border-left:0}.flow li:first-child{border-radius:10px 0 0 10px}.flow li:last-child{border-radius:0 10px 10px 0}
.flow li::before{counter-increment:step;content:counter(step);position:absolute;left:12px;top:10px;width:20px;height:20px;border-radius:50%;background:#e7edf1;color:#526774;font-size:12px;display:grid;place-items:center}
.flow li small{display:block;font-weight:400;color:var(--muted);font-size:12px}
.badge.status-scheduled,.cal-cell.status-scheduled{background:#eef0fa;color:#4a52a8}.badge.status-notified,.cal-cell.status-notified{background:#fff0d8;color:#99671e}
.badge.status-paid,.cal-cell.status-paid{background:#e3f4ec;color:#206c55}.badge.status-enjoyed,.cal-cell.status-enjoyed{background:#e7edf1;color:#526774}
.calendar-table th,.calendar-table td{padding:4px 8px;font-size:13px}.calendar-table th.week,.calendar-table td.cal-cell{width:22px;min-width:22px;padding:0;text-align:center;border-left:1px solid #f0f3f5}
.calendar-table td.cal-cell.status-scheduled,.legend i.status-scheduled{background:#b9bfeb}.calendar-table td.cal-cell.status-notified,.legend i.status-notified{background:#f2c879}
.calendar-table td.cal-cell.status-paid,.legend i.status-paid{background:#7ccaa9}.calendar-table td.cal-cell.status-enjoyed,.legend i.status-enjoyed{background:#b9c7d0}
.calendar-table th.month{text-align:center;border-left:1px solid var(--line)}.calendar-table .section-row th{background:#eef5f8;color:var(--navy);text-transform:none;font-size:13px}
.legend{display:flex;gap:18px;margin:0 0 16px;font-size:13px;color:var(--muted)}.legend i{display:inline-block;width:14px;height:14px;border-radius:3px;margin-right:6px;vertical-align:-2px}
@media(max-width:800px){.flow{flex-direction:column}.flow li+li{border-left:1px solid var(--line);border-top:0}.flow li:first-child{border-radius:10px 10px 0 0}.flow li:last-child{border-radius:0 0 10px 10px}}

/* Aguinaldo: mejor mes resaltado; correcciones manuales marcadas */
.best-month{background:#e3f4ec!important;font-weight:700;color:#206c55}
.sheet-table tr.row-manual>td{background:#fffbea}.sheet-table tr.row-manual>td:nth-child(-n+2){background:#fffbea}
.sheet-table td.text-cell input.text-input{max-width:none;min-width:220px;text-align:left}

/* Notificación de vacaciones para imprimir */
body.print-page{background:#fff}.notice{max-width:720px;margin:40px auto;padding:0 24px;font-size:15px;line-height:1.7}.notice h1{font-size:24px;margin:24px 0}
.notice-place{text-align:right;color:var(--muted)}.signatures{display:flex;justify-content:space-between;gap:40px;margin-top:90px}.signatures div{flex:1;border-top:1px solid var(--ink);padding-top:8px;text-align:center}
