:root{--red:#c81624;--red-dark:#991522;--yellow:#f3c515;--green:#138a55;--ink:#152033;--muted:#667085;--line:#e4e9f0;--bg:#f3f5f8;--white:#fff;--nav:#101722;--nav-soft:#1b2533;--shadow:0 12px 35px rgba(16,24,40,.08);--shadow-lg:0 22px 55px rgba(16,24,40,.16)}
html{scroll-behavior:smooth}body{background:linear-gradient(180deg,#eef1f5 0,#f7f8fa 280px);font-size:15px;letter-spacing:-.005em}.main{padding:0 38px 64px;max-width:1800px}.sidebar{width:264px;background:linear-gradient(180deg,#0d131d 0,#172130 100%);padding:22px 18px;box-shadow:8px 0 28px rgba(15,23,42,.11)}.main{margin-left:264px}.brand{padding:8px 8px 22px;border-bottom:1px solid rgba(255,255,255,.09);margin-bottom:20px}.brand img{height:70px;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.22)}.brand span{padding-left:4px;color:#98a5b7;font-size:.68rem;font-weight:800}.sidebar nav{gap:7px}.sidebar nav a{position:relative;padding:13px 14px;color:#aeb9c8;font-weight:650;border:1px solid transparent;transition:.18s ease}.sidebar nav a:hover{background:rgba(255,255,255,.06);color:#fff}.sidebar nav a.active{background:linear-gradient(95deg,rgba(200,22,36,.95),rgba(164,18,31,.92));border-color:rgba(255,255,255,.08);box-shadow:0 9px 20px rgba(200,22,36,.2)}.sidebar nav a.active:before{content:"";position:absolute;left:-6px;top:12px;bottom:12px;width:3px;border-radius:4px;background:var(--yellow)}.profile{margin:18px 4px 0;padding:16px 12px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.035)}
.top{height:82px;margin-bottom:30px;border-bottom:1px solid rgba(16,24,40,.09);position:sticky;top:0;z-index:15;background:rgba(243,245,248,.88);backdrop-filter:blur(14px)}.top>div:last-child strong{font-size:1.02rem}.top>div:last-child small{font-size:.74rem}.back-button{border-color:#d6dce5;box-shadow:0 3px 9px rgba(16,24,40,.05);font-weight:700}.page-head{margin:8px 0 24px}.page-head h1{font-size:2rem;letter-spacing:-.035em;color:#101828}.page-head p{font-size:.96rem}.button,button{border-radius:9px;min-height:42px;padding:10px 17px;box-shadow:0 5px 12px rgba(200,22,36,.14);transition:transform .15s,box-shadow .15s,background .15s}.button:hover,button:hover{transform:translateY(-1px);box-shadow:0 9px 18px rgba(200,22,36,.2)}.secondary{box-shadow:none;background:#fff;color:var(--red);border-color:#e9aab0}
.hero{min-height:330px;padding:42px 46px;border-radius:20px;background:linear-gradient(90deg,rgba(9,15,24,.92) 0%,rgba(9,15,24,.72) 42%,rgba(9,15,24,.14) 76%),url('/assets/fleet-executive.png') center 58%/cover;box-shadow:var(--shadow-lg);overflow:hidden;position:relative}.hero:after{content:"";position:absolute;inset:auto 0 0;height:5px;background:linear-gradient(90deg,var(--red) 0 42%,var(--yellow) 42% 73%,var(--green) 73%)}.hero h1{font-size:2.65rem;line-height:1.05;letter-spacing:-.045em;margin:9px 0 13px}.hero p{font-size:1rem;line-height:1.6}.hero .button{background:var(--yellow);color:#151a20;box-shadow:0 10px 25px rgba(243,197,21,.24)}.eyebrow{color:var(--yellow);font-weight:900}
.filters{padding:16px 18px;background:rgba(255,255,255,.82);border:1px solid var(--line);border-radius:13px;box-shadow:0 4px 15px rgba(16,24,40,.04)}.filters label{font-weight:700;color:#475467}.filters button{margin-left:auto}input,select{min-height:42px;border-color:#d6dce5;border-radius:8px;box-shadow:0 1px 2px rgba(16,24,40,.03);transition:border .15s,box-shadow .15s}input:focus,select:focus{outline:0;border-color:#d95c67;box-shadow:0 0 0 3px rgba(200,22,36,.1)}
.kpis{gap:18px;margin:24px 0}.kpis article{position:relative;overflow:hidden;border:0;border-left:0;border-radius:14px;padding:20px 22px;box-shadow:var(--shadow);background:linear-gradient(145deg,#fff,#fafbfd)}.kpis article:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#64748b}.kpis article.green:before{background:#16a34a}.kpis article.red:before{background:var(--red)}.kpis article.blue:before{background:#2563eb}.kpis span{text-transform:uppercase;letter-spacing:.055em;font-size:.7rem;font-weight:800}.kpis strong{font-size:1.85rem;color:#101828}.panel,.report-sheet,.table-wrap{border-color:var(--line);box-shadow:var(--shadow)}.panel{border-radius:14px;padding:24px}.panel-title h2,.panel h2,.report-sheet h2{color:#101828;letter-spacing:-.02em}.office-grid article{background:#fafbfc;border-color:#e8ecf1}.office-grid h3{color:#101828}
.table-wrap{border-radius:12px;overflow:auto;background:#fff}table{font-variant-numeric:tabular-nums}th{position:sticky;top:0;z-index:2;background:#f6f8fa;color:#475467;padding:13px 15px;font-size:.7rem;font-weight:850;border-bottom:1px solid #dfe4ea}td{padding:14px 15px;border-top-color:#edf0f3}tbody tr{transition:background .12s}tbody tr:hover:not(.group-row){background:#fffafa}.group-row td{background:linear-gradient(90deg,#172130,#222f40);border-top-color:var(--bg);color:#fff}.status{border-radius:8px;background:#fbfcfd}.sticky-actions{max-width:900px;border:1px solid rgba(255,255,255,.1);background:rgba(15,23,34,.96);backdrop-filter:blur(12px);box-shadow:0 16px 35px rgba(15,23,42,.28)}.pill{font-weight:800}.pill.ok{background:#e8f7ef;color:#087443}
.form-grid{border:0}.form-grid label{font-weight:700}.form-actions{background:#f8fafc;margin:5px -21px -21px;padding:18px 21px;border-radius:0 0 14px 14px}.adjustment-panel{border:0;background:linear-gradient(145deg,#fff9dc,#fffdf3);box-shadow:inset 0 0 0 1px #f3dc81,0 8px 25px rgba(120,88,0,.07)}.adjustment-form label{font-weight:700}.report-sheet{max-width:1100px;border:1px solid var(--line);padding:32px}.report-header{border-bottom:3px solid var(--red)}.report-header img{width:210px}.pay-slip{border:1px solid var(--line);box-shadow:var(--shadow-lg)}.pay-slip-header{border-bottom-color:#1b2533}.pay-slip-net{background:linear-gradient(90deg,#111827,#253246)}.pay-slip-net strong{color:var(--yellow)}.audit-deleted{margin-top:22px}.toast{top:24px;right:32px;background:#172130;border-left:4px solid var(--yellow);box-shadow:0 16px 40px rgba(0,0,0,.2)}
.login-shell{grid-template-columns:minmax(0,1.45fr) minmax(430px,.55fr)}.login-photo{background:linear-gradient(90deg,rgba(8,14,22,.05),rgba(8,14,22,.5)),url('/assets/fleet-executive.png') center/cover}.login-card{padding:9vh clamp(45px,7vw,110px);box-shadow:-22px 0 55px rgba(15,23,42,.16)}.login-card:before{content:"GESTIÓN EJECUTIVA";color:var(--red);font-size:.7rem;letter-spacing:.16em;font-weight:900;margin-bottom:14px}.login-card h1{font-size:2.1rem;letter-spacing:-.04em}.login-card img{max-width:310px}.simple-card{box-shadow:var(--shadow-lg)}
@media(max-width:1100px){.main{padding-left:24px;padding-right:24px}.hero{min-height:300px}.kpis{grid-template-columns:repeat(2,1fr)}.adjustment-form{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.sidebar{width:264px}.main{margin-left:0;padding:0 16px 45px}.top{margin-bottom:22px}.hero{padding:30px;min-height:290px}.hero h1{font-size:2rem}.login-shell{grid-template-columns:1fr}.filters button{margin-left:0}}
@media(max-width:600px){.kpis{grid-template-columns:1fr}.hero{min-height:330px;align-items:flex-end;background-position:62% center}.hero>div{position:relative;z-index:1}.hero .button{position:relative;z-index:1}.page-head{align-items:flex-start;gap:14px}.report-sheet{padding:18px}.login-card{padding:45px 28px}.filters label{width:100%}.filters button{width:100%}}
@media print{.main{max-width:none}.pay-slip{border:0}}

/* Login corporativo y logotipo HD */
.brand img{object-fit:contain;padding:10px;background:#fff}.report-header img,.pay-slip-header img{object-fit:contain}.login-card:before{display:none}.login-card{position:relative;background:radial-gradient(circle at 100% 0,#f8fafc 0,transparent 38%),#fff}.login-card:after{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,var(--red) 0 52%,var(--yellow) 52% 77%,var(--green) 77%)}.login-card>img{width:100%;max-width:360px;height:auto;object-fit:contain;margin:0 0 24px}.login-badge{display:inline-flex;align-items:center;width:max-content;padding:6px 10px;border:1px solid #f1b9be;border-radius:999px;background:#fff5f6;color:var(--red-dark);font-size:.65rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase;margin-bottom:14px}.login-card h1{margin:0 0 10px;font-size:2.35rem;line-height:1.06;color:#101828}.login-lead{max-width:440px;color:#667085;line-height:1.6;margin:0}.login-card form{position:relative;margin:28px 0 18px;padding:22px;border:1px solid #e4e9f0;border-radius:14px;background:linear-gradient(145deg,#fff,#f8fafc);box-shadow:0 16px 34px rgba(16,24,40,.07)}.login-card form label{font-weight:750;color:#344054}.login-card form input{height:46px;background:#fff}.login-card form button{height:46px;margin-top:3px;font-size:.95rem}.login-trust{display:flex;justify-content:space-between;gap:15px;color:#7b8493;font-size:.72rem}.login-trust span:first-child{color:#087443;font-weight:800}.login-photo{position:relative}.login-photo:after{content:"Cruzero Express · Gestión de personas";position:absolute;left:42px;bottom:38px;padding:10px 14px;border:1px solid rgba(255,255,255,.18);border-radius:9px;background:rgba(9,15,24,.68);backdrop-filter:blur(8px);color:#fff;font-size:.76rem;font-weight:750;letter-spacing:.04em}
@media(max-width:900px){.login-card>img{max-width:330px}.login-card form{padding:19px}.login-trust{flex-direction:column;gap:5px}}

/* Experiencia responsive para tablet y celular */
.sidebar-close,.sidebar-overlay{display:none}
@media(max-width:900px){
  body.menu-open{overflow:hidden}.sidebar{display:flex;transform:translateX(-105%);transition:transform .25s ease;width:min(82vw,300px);z-index:100;box-shadow:20px 0 50px rgba(2,6,23,.35)}.sidebar.open{transform:translateX(0)}.sidebar-close{display:flex;position:absolute;right:10px;top:8px;width:38px;height:38px;min-height:38px;padding:0;border-radius:50%;background:rgba(255,255,255,.08);box-shadow:none;font-size:1.55rem;line-height:1}.sidebar-overlay{display:block;position:fixed;inset:0;z-index:90;background:rgba(4,9,16,.58);backdrop-filter:blur(2px);opacity:0;visibility:hidden;transition:.2s}.sidebar-overlay.visible{opacity:1;visibility:visible}.menu{display:inline-flex;min-width:44px;min-height:44px}.top{height:68px;gap:10px}.top>div:last-child{min-width:0}.top>div:last-child strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:45vw}.back-button{min-height:40px;padding:8px 11px}.main{width:100%;max-width:none}.page-head{flex-wrap:wrap}.page-head>.button{min-height:44px}.filters{align-items:stretch}.filters label{flex:1 1 190px}.filters button{min-width:120px}.table-wrap{max-width:calc(100vw - 32px);-webkit-overflow-scrolling:touch}.table-wrap table{min-width:720px}.attendance-form .table-wrap table{min-width:790px}.report-sheet{max-width:100%}.report-header{gap:14px;flex-wrap:wrap}.report-header img{width:min(48vw,210px)}.report-header .button{margin-left:auto}.employee-summary{grid-template-columns:1fr 1fr}.pay-slip{max-width:100%;padding:24px}.pay-slip-actions{position:sticky;top:8px;z-index:5;background:#fff;padding:8px;border-radius:10px;box-shadow:0 5px 18px rgba(16,24,40,.1)}.pay-slip-header{grid-template-columns:minmax(150px,230px) 1fr}.pay-slip-worker{grid-template-columns:repeat(2,1fr)}.pay-slip-days{grid-template-columns:repeat(3,1fr)}.pay-slip-money{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.sticky-actions{bottom:8px;max-width:calc(100vw - 32px)}button,.button,input,select{touch-action:manipulation}
}
.single-attendance-dialog{width:min(560px,calc(100vw - 28px));padding:0;border:0;border-radius:16px;box-shadow:0 24px 70px rgba(15,23,42,.35);color:var(--ink)}
.single-attendance-dialog::backdrop{background:rgba(10,17,28,.62);backdrop-filter:blur(3px)}
.single-attendance-dialog form{padding:25px}
.single-attendance-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.single-attendance-head small{color:var(--muted)}
.single-attendance-head h2{margin:5px 0 0;font-size:1.25rem}
.single-attendance-close{min-width:40px;min-height:40px;padding:0;background:#f3f4f6;color:#344054;box-shadow:none;font-size:1.4rem}
.single-attendance-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:22px 0}
.single-attendance-help{padding:11px 13px;border-radius:9px;background:#fff8dd;color:#725500;font-size:.82rem}
.single-attendance-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.single-attendance-actions button{min-height:42px;font-size:.9rem;line-height:1.2}
.single-attendance-actions .single-attendance-close{min-width:auto;min-height:42px;padding:10px 17px;font-size:.9rem;font-weight:700;line-height:1.2}
.single-attendance-open{white-space:nowrap;min-height:38px;padding:8px 12px}
.page-head-actions{display:flex;gap:10px;flex-wrap:wrap}
.monthly-report-summary{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr));gap:12px;margin:18px 0}.monthly-report-summary article{display:grid;gap:5px;padding:14px 16px;border:1px solid var(--line);border-top:4px solid #475569;border-radius:12px;background:#fff}.monthly-report-summary article.red{border-top-color:#dc2626}.monthly-report-summary article.blue{border-top-color:#2563eb}.monthly-report-summary article.orange{border-top-color:#d97706}.monthly-report-summary article.green{border-top-color:#16a34a}.monthly-report-summary span{font-size:.75rem;color:var(--muted)}.monthly-report-summary strong{font-size:1.25rem}
.monthly-report-legend{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff}.monthly-report-legend span{padding:5px 8px;border-radius:6px;font-size:.72rem;font-weight:750}
.monthly-report-table{overflow:auto;max-width:calc(100vw - 340px);max-height:calc(100vh - 300px);border:1px solid var(--line);border-radius:14px;background:#fff}.monthly-report-table table{width:max-content;min-width:100%;font-size:.76rem}.monthly-report-table th,.monthly-report-table td{padding:7px 6px;text-align:center;border-right:1px solid var(--line)}.monthly-report-table thead{position:sticky;top:0;z-index:4}.monthly-report-table th{background:#243247;color:#fff}.monthly-report-table th small{display:block;color:#cbd5e1;font-size:.56rem}.monthly-worker{position:sticky;left:0;z-index:3;min-width:245px;max-width:245px;text-align:left!important;background:#fff!important}.monthly-report-table thead .monthly-worker{z-index:6;background:#243247!important}.monthly-worker strong{display:block}.monthly-worker small{display:block;margin-top:2px;color:var(--muted);font-size:.66rem}.monthly-day{min-width:35px}.monthly-status{min-width:35px;height:42px}.monthly-status b{font-size:.72rem}.monthly-status small{display:block;font-size:.52rem;white-space:nowrap}.monthly-total{min-width:48px;font-weight:800;background:#f8fafc}.monthly-pay{min-width:88px;text-align:right!important;font-weight:800;white-space:nowrap}.monthly-group td{position:relative!important;left:auto!important;text-align:left!important;padding:9px 12px!important;background:#111827!important;color:#fff!important;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.mr-present{background:#dcfce7!important;color:#166534}.mr-late{background:#fef3c7!important;color:#92400e}.mr-worked{background:#bbf7d0!important;color:#14532d}.mr-absent{background:#fee2e2!important;color:#991b1b}.mr-rest{background:#dbeafe!important;color:#1e40af}.mr-permission,.mr-unpaid_permission{background:#ffedd5!important;color:#9a3412}.mr-medical_leave{background:#ede9fe!important;color:#6b21a8}.mr-vacation{background:#ccfbf1!important;color:#115e59}.mr-holiday{background:#cffafe!important;color:#155e75}.mr-not_worked,.mr-suspension{background:#e5e7eb!important;color:#475569}
@media(max-width:600px){.single-attendance-fields{grid-template-columns:1fr}.single-attendance-actions{flex-direction:column-reverse}.single-attendance-actions button{width:100%}}
@media(max-width:900px){.monthly-report-summary{grid-template-columns:repeat(2,1fr)}.monthly-report-table{max-width:calc(100vw - 32px);max-height:none}.monthly-worker{min-width:205px;max-width:205px}.monthly-report-heading .button,.monthly-report-heading button{width:100%}.page-head-actions{width:100%}.page-head-actions .button{flex:1}}
@media print{@page{size:A3 landscape;margin:7mm}.monthly-report-heading button,.monthly-report-filters,.monthly-report-summary{display:none!important}.main{max-width:none!important}.monthly-report-heading{margin:0 0 5mm}.monthly-report-heading h1{font-size:16pt}.monthly-report-heading p{font-size:9pt}.monthly-report-legend{margin:0 0 3mm;padding:2mm;border-radius:0}.monthly-report-table{overflow:visible;max-width:none;max-height:none;border:0;border-radius:0}.monthly-report-table table{width:100%;font-size:6.5pt;table-layout:fixed}.monthly-report-table th,.monthly-report-table td{padding:1.2mm .5mm}.monthly-worker{position:static;min-width:42mm;max-width:42mm;width:42mm}.monthly-worker small{font-size:5.5pt}.monthly-day{min-width:0;width:6mm}.monthly-status{min-width:0;height:7mm}.monthly-pay{min-width:16mm;width:16mm}.monthly-total{min-width:7mm;width:7mm}.monthly-group td{background:#263448!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.monthly-status,.monthly-report-legend span{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
@media(max-width:600px){
  body{font-size:14px}.main{padding:0 12px 36px}.top{margin-bottom:18px}.top>div:last-child strong{max-width:34vw;font-size:.9rem}.top small{font-size:.65rem}.back-button{font-size:0;gap:0}.back-button:first-letter{font-size:1rem}.page-head{margin-bottom:16px}.page-head h1{font-size:1.55rem}.page-head p{font-size:.88rem}.page-head>.button{width:100%}.hero{min-height:360px;padding:24px 20px;background-position:60% center}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(7,12,20,.96) 0,rgba(7,12,20,.55) 58%,rgba(7,12,20,.12))}.hero h1{font-size:1.8rem}.hero p{font-size:.9rem}.hero{flex-direction:column;justify-content:flex-end;align-items:stretch}.hero .button{width:100%;margin-top:8px}.filters{display:grid;grid-template-columns:1fr;padding:14px;margin:14px 0;gap:10px}.filters label,.filters button{width:100%;min-width:0}.kpis{gap:10px;margin:16px 0}.kpis article{padding:16px 18px}.kpis strong{font-size:1.55rem}.panel{padding:17px}.office-grid{grid-template-columns:1fr}.form-grid{padding:17px;gap:14px}.form-actions{margin:3px -17px -17px;padding:15px 17px;flex-direction:column-reverse;align-items:stretch}.form-actions button,.form-actions a{text-align:center;width:100%}.report-sheet{padding:14px;border-radius:12px}.report-header{display:grid;grid-template-columns:1fr}.report-header img{width:190px}.report-header .button{width:100%;margin:0}.employee-summary{grid-template-columns:1fr;padding:15px 0}.payroll-kpis{grid-template-columns:1fr}.adjustment-panel{margin:18px 0;padding:16px}.adjustment-form{grid-template-columns:1fr}.table-wrap{max-width:calc(100vw - 24px);border-radius:10px}.sticky-actions{max-width:calc(100vw - 24px);padding:10px;gap:10px}.sticky-actions span{font-size:.72rem}.sticky-actions button{padding:9px 12px;white-space:nowrap}.toast{left:12px;right:12px;top:12px;text-align:center}.pay-slip{padding:14px;border-radius:0}.pay-slip-header{grid-template-columns:1fr}.pay-slip-header img{width:210px}.pay-slip-worker{grid-template-columns:1fr}.pay-slip-worker div{border-right:0;border-bottom:1px solid #e5e7eb}.pay-slip-days{grid-template-columns:repeat(2,1fr)}.pay-slip-footer{grid-template-columns:1fr;gap:45px;margin:45px 5px 10px}.login-card{min-height:100vh;padding:32px 20px}.login-card>img{max-width:300px;margin-bottom:18px}.login-card h1{font-size:1.9rem}.login-card form{margin:22px 0 16px;padding:17px}.simple-card{margin:18px 12px;padding:24px}.simple-card .logo{max-width:310px}
}
