:root{--blue: #1E2A5E;--blue-strong: #2743A6;--bg: #F1F5F9;--card: #fff;--border: #E2E8F0;--text: #0F172A;--muted: #64748B}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text)}.layout{display:flex;min-height:100vh}.sidebar{width:230px;background:var(--blue);color:#fff;display:flex;flex-direction:column;padding:20px 14px;position:sticky;top:0;height:100vh}.brand-name{font-weight:800;letter-spacing:2px;font-size:20px}.brand-sub{color:#a5b4fc;font-size:12px;margin-top:2px}.sidebar nav{margin-top:26px;display:flex;flex-direction:column;gap:4px;flex:1;overflow-y:auto}.nav-item{display:flex;align-items:center;gap:10px;background:none;border:0;color:#c7d2fe;padding:11px 12px;border-radius:10px;font-size:14px;cursor:pointer;text-align:left;font-weight:600}.nav-item:hover{background:#ffffff14}.nav-item.active{background:#ffffff29;color:#fff}.nav-item.disabled{opacity:.45;cursor:not-allowed}.nav-item.disabled:hover{background:none}.nav-soon{margin-left:auto;font-size:10px;font-weight:800;letter-spacing:.5px;background:#ffffff26;color:#e0e7ff;padding:2px 6px;border-radius:6px}.nav-group{display:flex;flex-direction:column;margin-top:6px}.nav-group-head{display:flex;align-items:center;gap:10px;background:none;border:0;color:#a5b4fc;padding:9px 12px;border-radius:10px;font-size:12px;cursor:pointer;text-align:left;font-weight:800;letter-spacing:.6px;text-transform:uppercase}.nav-group-head:hover{background:#ffffff0f;color:#e0e7ff}.nav-group-head.has-active{color:#fff}.nav-caret{margin-left:auto;font-size:12px}.nav-group-items{display:flex;flex-direction:column;gap:3px;padding-left:12px;border-left:1px solid rgba(255,255,255,.12);margin-left:12px}.nav-group-items .nav-item{padding-top:9px;padding-bottom:9px;font-size:13.5px}.sidebar-foot{border-top:1px solid rgba(255,255,255,.15);padding-top:12px}.user-name{font-size:13px;font-weight:700}.user-role{font-size:11px;color:#a5b4fc;text-transform:capitalize}.logout{margin-top:10px;background:#ffffff1f;color:#fff;border:0;padding:8px 12px;border-radius:8px;cursor:pointer;font-size:12px}.content{flex:1;min-width:0}.page{padding:24px 28px;max-width:1500px}.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:12px;flex-wrap:wrap}.page-head h1{margin:0;font-size:22px}.count{color:var(--muted);font-size:15px;font-weight:600;margin-left:6px}.loading,.empty{color:var(--muted);padding:24px 8px}.error-box{background:#fef2f2;color:#b91c1c;border:1px solid #FECACA;padding:12px 14px;border-radius:10px;margin-bottom:14px}.btn-primary{background:var(--blue);color:#fff;border:0;padding:11px 16px;border-radius:10px;font-weight:700;cursor:pointer;font-size:14px}.btn-ghost{background:#fff;border:1px solid var(--border);padding:8px 12px;border-radius:8px;cursor:pointer;font-size:13px;color:var(--text)}.filters{display:flex;gap:10px;align-items:center;margin-bottom:14px;flex-wrap:wrap}.search{flex:1;min-width:260px;max-width:420px;padding:10px 14px;border:1px solid var(--border);border-radius:10px;font-size:14px}.chip{border:1.5px solid var(--border);background:#fff;padding:8px 14px;border-radius:999px;cursor:pointer;font-size:13px;font-weight:600;color:var(--muted)}.chip.on{border-color:var(--blue);color:var(--blue);background:#eef2ff}.legend{font-size:12px;color:var(--muted);display:inline-flex;align-items:center;gap:6px}.legend i{width:12px;height:12px;border-radius:3px;display:inline-block}.card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:18px}.card h2{margin:0 0 12px;font-size:15px}.kpi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-bottom:20px}.kpi{background:#fff;border:1px solid var(--border);border-radius:12px;padding:14px 16px}.kpi-value{font-size:26px;font-weight:800;color:var(--blue)}.kpi.ok .kpi-value{color:#059669}.kpi.warn .kpi-value{color:#d97706}.kpi.bad .kpi-value{color:#dc2626}.kpi-label{font-size:12px;color:var(--muted);margin-top:2px}.two-cols,.dash-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dash-hint{font-size:12.5px;color:var(--muted);background:#eef2ff;border:1px solid var(--border);border-radius:10px;padding:8px 12px;margin-bottom:14px}.dnd-item{cursor:grab;transition:opacity .15s,transform .15s}.dnd-item:active{cursor:grabbing}.dnd-item.drag-over{outline:2px dashed var(--blue);outline-offset:3px;border-radius:14px}.dnd-item.drag-over>.kpi,.dnd-item.drag-over>.card{opacity:.6}.drag-grip{color:var(--muted);font-weight:700;margin-right:4px;cursor:grab;letter-spacing:-2px}@media (max-width: 900px){.dash-grid{grid-template-columns:1fr}}.fuel-slider{width:100%}.fuel-top{display:flex;justify-content:space-between;align-items:center}.fuel-val{font-weight:800;color:var(--blue);font-size:14px}.fuel-slider input[type=range]{width:100%;margin:6px 0 2px;accent-color:var(--blue);cursor:pointer}.fuel-scale{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.fuel-desc{font-size:12px;color:var(--text);margin-top:2px}.hist-card{border:1px solid var(--border);border-radius:10px;margin-top:12px;overflow:hidden}.hist-head{width:100%;display:flex;justify-content:space-between;align-items:center;background:var(--panel, #F8FAFC);border:0;padding:10px 12px;font-weight:700;font-size:13px;cursor:pointer;color:var(--text)}.hist-list{list-style:none;margin:0;padding:4px 12px 10px}.hist-list li{padding:8px 0;border-bottom:1px solid var(--border)}.hist-list li:last-child{border-bottom:0}.hist-desc{font-size:13px;color:var(--text)}.hist-meta{font-size:11.5px;color:var(--muted);margin-top:2px}@media (max-width: 1100px){.two-cols{grid-template-columns:1fr}}.table{width:100%;border-collapse:collapse;font-size:13.5px}.table th{text-align:left;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.5px;padding:8px 10px;border-bottom:1px solid var(--border)}.table td{padding:10px;border-bottom:1px solid #F1F5F9}.table.clickable tbody tr{cursor:pointer}.table.clickable tbody tr:hover{background:#f8fafc}.table tr.sel{background:#eef2ff}.plate{font-family:ui-monospace,monospace;font-weight:700;background:#f1f5f9;border:1px solid var(--border);border-radius:6px;padding:2px 7px;font-size:12px;white-space:nowrap}.mono{font-family:ui-monospace,monospace;font-size:12.5px}.badge{font-size:10.5px;font-weight:800;padding:3px 9px;border-radius:999px;background:#f1f5f9;color:var(--muted)}.badge.confirmada{background:#d1fae5;color:#065f46}.badge.pendiente{background:#fef3c7;color:#92400e}.split{display:grid;grid-template-columns:1fr;gap:16px;align-items:start}.split.with-detail{grid-template-columns:1fr 360px}.table-card{padding:6px 10px;overflow-x:auto}.detail-panel{position:sticky;top:20px}.detail-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.detail-head h2{margin:0;font-size:17px}.kv{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #F1F5F9;font-size:13.5px}.kv span{color:var(--muted)}.kv.total b{color:var(--blue);font-size:15px}.paid-toggle{display:flex;gap:8px;align-items:center;margin-top:14px;font-size:13px;font-weight:600;cursor:pointer}.notes{margin-top:12px;background:#f8fafc;border-radius:8px;padding:10px;font-size:12.5px;color:var(--muted);white-space:pre-wrap}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:var(--blue)}.login-card{background:#fff;border-radius:16px;padding:34px 32px;width:380px;display:flex;flex-direction:column}.login-card .brand-name{color:var(--blue)}.login-card label{font-size:12px;font-weight:700;color:var(--muted);margin:10px 0 5px;text-transform:uppercase}.login-card input{padding:11px 13px;border:1px solid var(--border);border-radius:10px;font-size:14px}.login-card .btn-primary{margin-top:20px}.login-err{color:#b91c1c;font-size:13px;margin-top:10px}.week-nav{display:flex;align-items:center;gap:8px}.week-label{font-weight:700;font-size:14px}.gantt{padding:0;overflow-x:auto}.gantt-head{display:flex;border-bottom:2px solid var(--border);position:sticky;top:0;background:#fff;z-index:2}.gantt-veh-col{width:170px;min-width:170px;padding:8px 12px;border-right:1px solid var(--border)}.gantt-head .gantt-veh-col{font-size:11px;color:var(--muted);text-transform:uppercase;font-weight:700}.gantt-day{flex:1;text-align:center;padding:8px 0;font-size:12px;font-weight:700;color:var(--muted)}.gantt-day.today{color:var(--blue);background:#eef2ff}.gantt-row{display:flex;border-bottom:1px solid #F1F5F9}.veh-sub{font-size:10.5px;color:var(--muted);margin-top:2px}.veh-place{font-size:10.5px;color:var(--blue-strong);font-weight:600;margin-top:1px}.gantt-track{flex:1;position:relative;display:flex;min-height:54px}.gantt-cell{flex:1;border-right:1px solid #F1F5F9}.gantt-cell.today{background:#eef2ff66}.gantt-bar{position:absolute;top:12px;height:28px;border-radius:7px;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;padding:0 8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;opacity:.96;border:0;cursor:pointer;z-index:1}.gantt-bar:hover{opacity:1;filter:brightness(1.05);box-shadow:0 2px 6px #0003}.gantt-bar.is-contract{color:#fff}.gantt-bar.is-reservation{color:#7c2d12}.gantt-day{flex:1;text-align:center;padding:6px 0;display:flex;flex-direction:column;align-items:center}.gantt-day .gd-letter{font-size:11px;font-weight:700;color:var(--muted)}.gantt-day .gd-num{font-size:15px;font-weight:800;color:var(--text)}.gantt-day.today{background:#eef2ff}.gantt-day.today .gd-letter,.gantt-day.today .gd-num{color:var(--blue)}.gantt-day.weekend{background:#edf1f7}.gantt-cell.weekend{background:#edf1f766}.gantt-veh-col{width:200px;min-width:200px}.veh-top{display:flex;align-items:center;gap:6px}.group-badge{font-size:10px;font-weight:800;background:#eef2ff;color:var(--blue);border-radius:5px;padding:1px 6px}.now-line{position:absolute;top:0;bottom:0;width:2px;background:#ef4444;z-index:3;pointer-events:none}.date-input{padding:7px 10px;border:1px solid var(--border);border-radius:8px;font-size:13px;color:var(--text)}.span-switch{display:inline-flex;border:1px solid var(--border);border-radius:8px;overflow:hidden}.span-opt{border:0;background:#fff;padding:8px 12px;font-size:13px;font-weight:700;color:var(--muted);cursor:pointer}.span-opt.on{background:var(--blue);color:#fff}.chips-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:14px}.chip-sep{width:1px;height:22px;background:var(--border);margin:0 4px}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:50}.modal-card{background:#fff;border-radius:16px;padding:22px;width:440px;max-width:92vw;box-shadow:0 12px 40px #00000040}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.modal-close{border:0;background:none;font-size:18px;cursor:pointer;color:var(--muted)}.modal-id{font-size:22px;font-weight:800;margin-bottom:12px;color:var(--text)}.badge.b-contract{background:#e0e7ff;color:navy}.date-lbl{font-size:12px;color:var(--muted);font-weight:600;display:inline-flex;align-items:center;gap:6px}.sec-title{font-size:15px;font-weight:800;color:var(--text);margin:18px 0 10px}.truncate{max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-actions{display:flex;gap:6px;white-space:nowrap}.btn-mini{border:0;border-radius:7px;padding:5px 10px;font-size:12px;font-weight:700;cursor:pointer}.btn-mini.ok{background:#d1fae5;color:#065f46}.btn-mini.no{background:#fee2e2;color:#991b1b}.timeline{list-style:none;margin:0;padding:0}.timeline li{display:flex;gap:12px;padding:10px 0;border-top:1px solid var(--border)}.timeline li:first-child{border-top:0}.tl-date{min-width:92px;font-size:12px;font-weight:700;color:var(--muted)}.tl-body{font-size:13px;color:var(--text)}.tl-sub{font-size:11px;color:var(--muted);margin-top:2px}.modal-card.wide{width:720px;max-width:94vw}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:4px;position:relative}.field.span2{grid-column:1 / -1}.field label{font-size:12px;font-weight:700;color:var(--muted)}.field input,.field select,.field textarea{padding:9px 10px;border:1px solid var(--border);border-radius:8px;font-size:13px;color:var(--text);font-family:inherit;background:#fff}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.cli-dropdown{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px #00000026;z-index:5;max-height:220px;overflow:auto;margin-top:2px}.cli-opt{display:block;width:100%;text-align:left;border:0;background:#fff;padding:8px 10px;cursor:pointer;font-size:13px;border-bottom:1px solid var(--border)}.cli-opt:hover{background:#f1f5f9}.cli-opt span{color:var(--muted);font-size:11px;margin-left:6px}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;max-height:66vh;overflow:auto}.photo-item{position:relative;cursor:pointer;border-radius:10px;overflow:hidden;border:1px solid var(--border);background:#000}.photo-item img{width:100%;height:130px;object-fit:cover;display:block}.photo-fail{height:130px;display:flex;align-items:center;justify-content:center;color:var(--muted);background:#f1f5f9;font-size:12px}.photo-cap{position:absolute;bottom:0;left:0;right:0;background:#0000008c;color:#fff;font-size:10px;padding:3px 6px}.photo-big{max-width:92vw;max-height:92vh;border-radius:10px;box-shadow:0 12px 40px #00000080}.modal-card.tall{max-height:92vh;display:flex;flex-direction:column}.res-scroll{overflow:auto;padding-right:4px}.res-sec{border-top:1px solid var(--border);padding:12px 0}.res-sec-t{font-size:13px;font-weight:800;color:var(--text);margin-bottom:8px}.res-row{display:flex;gap:8px;align-items:center}.res-row .grow{flex:1}.hint-txt{font-size:12px;color:var(--muted);margin:4px 0}.occ{font-size:12px;padding:8px 10px;border-radius:8px;margin-top:8px}.occ-free{background:#ecfdf5;color:#065f46}.occ-partial{background:#fffbeb;color:#92400e}.occ-busy{background:#fef2f2;color:#991b1b}.cli-warn{font-size:11px;font-weight:700;color:#92400e;background:#fef3c7;padding:6px 10px}.svc-cat{margin-bottom:10px}.svc-cat-t{font-size:11px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.6px;margin:6px 0}.svc-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;margin-bottom:6px;cursor:pointer;background:#fff}.svc-row.on{border-color:var(--blue);background:#f5f7ff}.svc-n{font-size:13px;font-weight:700;color:var(--text)}.svc-p{font-size:11px;color:var(--muted)}.svc-check{font-size:18px;color:var(--blue)}.qty{display:inline-flex;align-items:center;gap:8px}.qty button{width:26px;height:26px;border:1px solid var(--border);background:#fff;border-radius:6px;cursor:pointer;font-size:15px}.svc-sum{margin-top:8px;font-size:12px;color:var(--muted)}.clock-list{list-style:none;margin:0;padding:0}.clock-list li{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--border)}.clock-list li:first-child{border-top:0}.clock-dot{width:9px;height:9px;border-radius:50%;background:#10b981;box-shadow:0 0 0 3px #10b98122}.clock-name{font-weight:700;font-size:13px;color:var(--text);flex:1}.clock-since{font-size:12px;color:var(--muted)}.combo{position:relative;width:100%}.combo-input{width:100%;padding:9px 30px 9px 10px;border:1px solid var(--border);border-radius:8px;font-size:13px;color:var(--text);font-family:inherit;background:#fff;box-sizing:border-box}.combo-input:disabled{background:#f8fafc;color:var(--muted)}.combo-caret{position:absolute;right:10px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:12px;pointer-events:none}.combo-clear{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:0;background:none;color:var(--muted);cursor:pointer;font-size:13px;padding:4px}.combo-empty{padding:10px;font-size:12px;color:var(--muted)}.cli-opt.on{background:#eef2ff}th.sortable{cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap}th.sortable:hover{color:var(--blue)}th .sort-arr{font-size:10px;margin-left:4px;color:var(--blue)}.state-btns{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.state-btn{border:1.5px solid var(--border);background:#fff;border-radius:8px;padding:7px 10px;font-size:12px;font-weight:700;cursor:pointer;color:var(--text)}.state-btn:hover{border-color:var(--blue)}.state-btn.cur{border-color:var(--blue);background:#eef2ff;color:var(--blue)}.state-btn:disabled{opacity:.5;cursor:default}.detail-actions{margin-top:14px;padding-top:12px;border-top:1px solid var(--border)}.detail-actions h3{font-size:12px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin:0 0 8px}.svc-cat{font-size:11px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.4px;margin:2px 0}.toast-wrap{position:fixed;top:16px;right:16px;z-index:3000;display:flex;flex-direction:column;gap:10px;max-width:360px}.toast{display:flex;align-items:center;gap:10px;background:#1e2a55;color:#fff;padding:12px 14px;border-radius:12px;box-shadow:0 10px 30px #00000040;cursor:pointer;animation:toast-in .25s ease}.toast-ic{font-size:18px}.toast-tx{flex:1;font-size:13px;font-weight:700}.toast-x{opacity:.6;font-size:12px}@keyframes toast-in{0%{transform:translate(20px);opacity:0}to{transform:translate(0);opacity:1}}.nav-item{position:relative}.nav-badge{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:#dc2626;color:#fff;font-size:11px;font-weight:800;min-width:18px;height:18px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}.tray-btn{width:100%;text-align:left;background:#ffffff14;color:#fff;border:0;border-radius:10px;padding:9px 12px;font-size:13px;font-weight:700;cursor:pointer;margin-bottom:8px;display:flex;align-items:center;gap:8px}.tray-btn:hover{background:#ffffff29}.tray-count{background:#dc2626;color:#fff;font-size:11px;font-weight:800;border-radius:9px;padding:1px 7px;margin-left:auto}.tray-btn.snooze-on{background:#dc262640;color:#fecaca}.login-logo{display:block;width:220px;max-width:80%;height:auto;margin:0 auto 6px}.brand-logo{background:#fff;border-radius:12px;padding:10px 12px;display:flex;align-items:center;justify-content:center}.brand-logo img{width:100%;max-width:170px;height:auto;display:block}.tray-seen{width:100%;text-align:left;background:none;color:#fca5a5;border:0;font-size:12px;font-weight:700;cursor:pointer;margin-bottom:8px;padding:0 2px}.tray-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000040;z-index:2500}.tray-panel{position:absolute;left:16px;bottom:16px;width:360px;max-width:calc(100vw - 32px);max-height:70vh;overflow:auto;background:#fff;border-radius:14px;box-shadow:0 20px 50px #0000004d;padding:14px}.tray-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.tray-seen-full{width:100%;margin-bottom:10px}.tray-list{list-style:none;margin:0;padding:0}.tray-list li{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-top:1px solid var(--border);font-size:13px}.tray-list li:first-child{border-top:0}.tray-ic{font-size:16px}.tray-tx{flex:1;color:var(--text)}.tray-at{color:var(--muted);font-size:11px;white-space:nowrap}.tray-clear{width:100%;margin-top:10px}
