@import"https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap";:root{font-family:Outfit,Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;--bg-main: #f0f4f8;--bg-surface: rgba(255, 255, 255, .85);--bg-sidebar: rgba(255, 255, 255, .97);--text-main: #1e293b;--text-muted: #64748b;--primary: #4f46e5;--primary-hover: #4338ca;--success: #10b981;--warning: #f59e0b;--danger: #ef4444;--teal: #0e8f7f;--teal-hover: #0a7a6b;--border-light: rgba(226, 232, 240, .8);--shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);--shadow-md: 0 4px 12px rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .04);--shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, .1);--radius-md: 12px;--radius-lg: 16px;--glass-blur: blur(16px);color:var(--text-main);background:var(--bg-main);font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--bg-main);color:var(--text-main)}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(320px,460px) 1fr;background:#fff}.portal-page{min-height:100vh;padding:28px;background:linear-gradient(180deg,#f6faf9,#eef3f6)}.portal-hero{display:grid;grid-template-columns:minmax(280px,1.2fr) minmax(320px,520px);gap:20px;margin-bottom:20px}.portal-hero-text{display:grid;align-content:center;gap:12px}.portal-hero-text h1{margin:0;font-size:clamp(2rem,4vw,3.2rem)}.portal-hero-text p{margin:0;color:#5b6763;line-height:1.6;max-width:60ch}.portal-access-card{align-self:stretch}.portal-overview{display:grid;grid-template-columns:minmax(280px,340px) 1fr;gap:20px;align-items:center}.portal-car-track{display:grid;gap:18px}.portal-progress-ring{width:168px;height:168px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at center,#ffffff 56%,transparent 57%),conic-gradient(#0e8f7f 0 var(--progress, 68%),#dce6e3 var(--progress, 68%) 100%);border:1px solid #d8e3e0;margin:0 auto;text-align:center}.portal-progress-ring strong{display:block;font-size:2rem}.portal-progress-ring span{color:#60706b;font-size:.9rem}.portal-track-line{position:relative;height:12px;border-radius:999px;background:#dce6e3;overflow:visible}.portal-track-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#0e8f7f,#34b39e)}.portal-car-icon{position:absolute;top:-16px;color:#0b5f55;transition:left .3s ease}.portal-steps-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.portal-step-card{border:1px solid #dbe3e1;border-radius:8px;background:#fff;padding:14px;display:grid;gap:6px}.portal-step-card.done{background:#ecfaf7;border-color:#89d2c7}.portal-step-card.current{border-color:#0e8f7f;box-shadow:inset 0 0 0 1px #0e8f7f}.portal-mini-form{margin-bottom:12px}.login-panel{padding:56px;display:flex;flex-direction:column;justify-content:center;gap:18px}.login-panel h1,.topbar h2,.section-heading h3,.detail-header h3,.vehicle-summary h3{margin:0;letter-spacing:0}.login-panel p{margin:0;color:#5b6763;line-height:1.55}.login-form,.stack-form{display:grid;gap:14px}.login-visual{min-height:100vh;overflow:hidden;background:#dfe8e6}.login-visual img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.9) contrast(1.05)}.brand-mark{width:56px;height:56px;border-radius:8px;display:grid;place-items:center;background:#0e8f7f;color:#fff;font-weight:900}.brand-mark.small{width:42px;height:42px;flex:0 0 auto}.brand-mark.image{background:#fff;border:1px solid #dce3e0;overflow:hidden}.brand-mark.image img{width:100%;height:100%;object-fit:contain;display:block}.api-note,.eyebrow,.sidebar-brand span,.field span,td,.empty-state span,.note-list span,.incident-item span{color:#66736f;font-size:.88rem}.app-shell{min-height:100vh;display:grid;grid-template-columns:260px 1fr}.sidebar{background:var(--bg-sidebar);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);border-right:1px solid var(--border-light);padding:22px;display:flex;flex-direction:column;gap:24px;position:sticky;top:0;height:100vh;transition:width .3s ease,padding .3s ease;box-shadow:var(--shadow-md);z-index:10}.sidebar-brand{display:flex;gap:12px;align-items:center;justify-content:space-between}.sidebar-brand-main{display:flex;gap:12px;align-items:center;min-width:0}.sidebar-toggle{border:1px solid #dce3e0;border-radius:8px;width:34px;min-width:34px;height:34px;background:#eef2f0;color:#23302c;font-weight:900;display:grid;place-items:center}.sidebar-brand div:last-child{display:grid;gap:2px}.sidebar.collapsed{padding:18px 12px}.app-shell.sidebar-collapsed{grid-template-columns:92px 1fr}.sidebar.collapsed .sidebar-brand{flex-direction:column;align-items:stretch;gap:10px}.sidebar.collapsed .sidebar-brand-main{justify-content:center}.sidebar.collapsed nav{justify-items:center}.sidebar.collapsed .nav-item{justify-content:center;padding:0;width:44px;min-height:44px;border-radius:10px}.sidebar.collapsed .nav-item-label{display:none}.sidebar.collapsed .nav-item-icon{margin:0}.sidebar.collapsed .sidebar-footer{flex-direction:column;align-items:center;gap:8px}.sidebar.collapsed .logout{justify-content:center;padding:0;width:44px;min-height:44px;border-radius:10px}nav{display:grid;gap:8px}.nav-item,.logout{border:0;border-radius:8px;min-height:42px;padding:0 12px;display:flex;align-items:center;gap:10px;background:transparent;color:#475569;text-align:left;text-decoration:none;font-size:.9rem;font-weight:500;transition:background .15s ease,color .15s ease,box-shadow .15s ease}.nav-item-icon{flex:0 0 auto;display:flex;align-items:center}.nav-item-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-item.active{background:linear-gradient(135deg,var(--primary) 0%,var(--primary-hover) 100%);color:#fff;font-weight:600;box-shadow:0 4px 12px #4f46e547}.nav-item:hover:not(.active){background:#4f46e512;color:var(--primary)}.logout{color:#b33a2f;font-size:.9rem;font-weight:500}.logout:hover{background:#ef444412}.nav-section{display:grid;gap:2px}.nav-section+.nav-section{margin-top:6px;padding-top:6px;border-top:1px solid var(--border-light)}.nav-section-header{padding:4px 12px 2px;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8}.nav-section-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;background:none;border:none;cursor:pointer;padding:5px 12px 3px;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8;border-radius:6px;transition:background .12s,color .12s}.nav-section-toggle:hover{background:#4f46e50f;color:#64748b}.nav-section-toggle.has-active{color:var(--primary)}.nav-section-arrow{font-size:.75rem}.insurer-list-admin{display:grid;gap:6px;margin-bottom:12px}.insurer-admin-row{display:grid;grid-template-columns:1fr 100px 1fr auto;gap:6px;align-items:center}.insurer-admin-name,.insurer-admin-pass{padding:5px 8px;border-radius:6px;border:1px solid var(--border);font-size:13px;min-width:0}.insurer-admin-tone{padding:5px 6px;border-radius:6px;border:1px solid var(--border);font-size:12px}.insurer-admin-del{background:none;border:none;color:var(--danger);cursor:pointer;font-size:14px;padding:4px 6px;border-radius:4px;line-height:1}.insurer-admin-del:hover{background:#ef44441a}.workspace{padding:28px;min-width:0}.topbar,.detail-header,.section-heading,.vehicle-summary{display:flex;align-items:center;justify-content:space-between;gap:16px}.section-heading{margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--border-light)}.section-heading h3{font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--text-muted)}.topbar{margin-bottom:28px;padding-bottom:20px;border-bottom:1px solid var(--border-light)}.topbar-refresh-btn{display:flex;align-items:center;gap:5px;padding:6px 14px;border:1px solid var(--border-light);border-radius:999px;background:#fff;color:var(--text-muted);font-size:.82rem;font-weight:500;cursor:pointer;transition:background .15s,color .15s,box-shadow .15s;box-shadow:var(--shadow-sm)}.topbar-refresh-btn:hover{background:#f1f5f9;color:var(--text-main)}.topbar-refresh-btn:active{transform:scale(.97)}.user-chip{border:1px solid #e2e8f0;border-radius:40px;padding:5px 14px 5px 5px;background:#fff;display:flex;align-items:center;gap:10px;box-shadow:var(--shadow-sm)}.user-avatar{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-hover) 100%);color:#fff;display:grid;place-items:center;font-weight:700;font-size:.75rem;flex:0 0 auto;letter-spacing:.5px}.page-grid{display:grid;gap:18px}.kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr));gap:14px}.stage-pills.compact{margin:8px 0 0;gap:8px}.stage-pills.compact span{font-size:.82rem}.kpi,.section-band{background:var(--bg-surface);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);border:1px solid var(--border-light);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);transition:transform .2s ease,box-shadow .2s ease}.kpi:hover,.section-band:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}.kpi{padding:20px;display:grid;gap:6px;min-height:120px;color:inherit;text-align:left;position:relative;overflow:hidden}.kpi span{color:var(--text-muted);font-size:.83rem;font-weight:500}.kpi strong{font-size:2.25rem;letter-spacing:-1px;line-height:1}.kpi .kpi-sub{font-size:.78rem;color:var(--text-muted);margin-top:2px}.kpi.green{border-top:3px solid var(--success)}.kpi.green strong{color:#065f46}.kpi.red{border-top:3px solid var(--danger)}.kpi.red strong{color:#991b1b}.kpi.amber{border-top:3px solid var(--warning)}.kpi.amber strong{color:#92400e}.area-kpis{grid-template-columns:repeat(4,minmax(150px,1fr))}.section-band{padding:20px 22px}.alert-list,.stage-bars,.incident-list,.note-list{display:grid;gap:10px;margin-top:14px}.alert-row{display:flex;align-items:center;gap:10px;border-left:3px solid var(--warning);background:#fffbeb;padding:12px 14px;border-radius:8px;font-size:.9rem}.alert-row.critical{border-left-color:var(--danger);background:#fff1f2}.stage-bar{display:grid;grid-template-columns:minmax(160px,1fr) 3fr 70px;gap:12px;align-items:center}.stage-bar div{height:10px;background:#e6ece9;border-radius:8px;overflow:hidden}.stage-bar i{display:block;height:100%;background:#0e8f7f}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:12px;margin-bottom:18px}.field{display:grid;gap:6px}input,select{width:100%;min-height:42px;border:1px solid #e2e8f0;border-radius:8px;padding:9px 12px;background:#fff;color:#1e293b;transition:border-color .15s ease,box-shadow .15s ease}input:focus,select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #4f46e51f}input::placeholder{color:#94a3b8}.currency-input{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;min-height:42px;border:1px solid #cfd8d4;border-radius:8px;background:#fff;overflow:hidden}.currency-input span{height:100%;min-width:38px;display:grid;place-items:center;background:#eef2f0;color:#35433f;font-weight:900}.currency-input input{border:0;border-radius:0;min-height:40px;text-align:right}.currency-input:focus-within{outline:2px solid #79c8bd;border-color:#0e8f7f}.currency-input input:focus{outline:0}.adjustment-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid #dce3e0}.adjustment-footer strong{display:flex;align-items:baseline;gap:8px;white-space:nowrap}.adjustment-footer span{font-size:1.15rem}.adjustment-footer .button{border-radius:var(--radius-md);min-width:160px}.button{border:0;border-radius:8px;min-height:42px;padding:0 18px;font-weight:600;background:linear-gradient(135deg,#10a899 0%,var(--teal) 100%);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .15s ease,box-shadow .15s ease,background .15s ease;box-shadow:0 1px 3px #0e8f7f40}.button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 14px #0e8f7f59}.button:active:not(:disabled){transform:translateY(0);box-shadow:none}.button.secondary{background:linear-gradient(135deg,#f87171,#ef4444);box-shadow:0 1px 3px #ef444440}.button.secondary:hover:not(:disabled){box-shadow:0 4px 14px #ef444459}.button.danger{background:linear-gradient(135deg,#ef4444,#b91c1c);box-shadow:0 1px 3px #b91c1c40}.button.danger:hover:not(:disabled){box-shadow:0 4px 14px #b91c1c59}.button.ghost{background:#f1f5f9;color:#334155;box-shadow:none;border:1px solid #e2e8f0}.button.ghost:hover:not(:disabled){background:#e2e8f0;box-shadow:var(--shadow-sm)}.button:disabled{cursor:not-allowed;opacity:.55}.table-wrap{overflow-x:auto;border:1px solid #dce3e0;border-radius:8px}.bodywork-check-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:8px 0 12px}.bodywork-check-table{overflow-x:auto;border:1px solid #1f2d2a;border-radius:8px;margin-bottom:14px}.bodywork-check-table table{min-width:860px}.bodywork-check-table th,.bodywork-check-table td{border:1px solid #1f2d2a}.bodywork-check-table th{background:#eef2f0;text-align:center}.bodywork-check-table .check-area{width:140px;text-align:center;text-transform:uppercase;letter-spacing:2px;font-weight:900}.bodywork-check-table .check-cell{width:48px;text-align:center}.bodywork-check-table input[type=checkbox]{width:18px;min-height:18px}.bodywork-check-table td input:not([type=checkbox]){border:0;min-height:34px;width:100%}.closing-check-table{overflow-x:visible}.closing-check-table table{min-width:0;table-layout:fixed}.closing-check-table th:first-child,.closing-check-table td:first-child{width:auto}.closing-check-table th:not(:first-child),.closing-check-table td:not(:first-child){width:72px;text-align:center}.checklist-completion{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:-4px 0 14px;padding:10px 14px;border:1px solid #1f2d2a;border-top:0;color:#23302c}.quality-control-list{display:grid;gap:14px;max-height:68vh;overflow-y:auto;padding-right:8px}.quality-package{display:grid;gap:10px}.quality-package-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.quality-package-head h4{margin:0}table{width:100%;border-collapse:collapse;min-width:740px}th,td{text-align:left;padding:12px 14px;border-bottom:1px solid #e7ecea}th{color:#475569;background:#f8fafc;font-size:.75rem;text-transform:uppercase;letter-spacing:.5px;font-weight:700}tbody tr{transition:background .12s ease}tbody tr:hover{background:#f8fafc}tbody tr:last-child td{border-bottom:0}.actions{display:flex;gap:8px;flex-wrap:wrap}.badge,.risk-badge{display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:2px 9px;border-radius:6px;font-size:.78rem;font-weight:700;letter-spacing:.2px}.badge.neutral{background:#f1f5f9;color:#475569}.badge.danger,.risk-badge.danger{background:#fee2e2;color:#991b1b}.badge.warning,.risk-badge.warning{background:#fef3c7;color:#92400e}.badge.success,.risk-badge.success{background:#d1fae5;color:#065f46}.badge-button{border:0;cursor:pointer}.risk-badge i{width:9px;height:9px;border-radius:999px;background:#d94b3d}.empty-state{display:flex;flex-direction:column;align-items:center;gap:6px;padding:32px 18px;background:#f8fafc;border-radius:8px;text-align:center}.empty-state strong{color:var(--text-main);font-size:.95rem}.empty-state span{color:var(--text-muted)!important;font-size:.85rem!important}.form-error{color:#a22d24;font-weight:800}.form-success{color:#116149;font-weight:800}.detail-page,.two-columns{display:grid;gap:18px}.two-columns{grid-template-columns:1.2fr .8fr}.actions-split{display:grid;grid-template-columns:minmax(320px,1fr) minmax(280px,.7fr);gap:18px;align-items:start}.actions-left{align-content:start;min-width:0}.actions-left .button{justify-self:start;width:auto;min-width:180px;max-width:260px}.actions-left select,.actions-left textarea{max-width:100%}.actions-right{min-width:0;align-self:stretch}.actions-scroll{max-height:610px;overflow-y:auto;padding-right:8px}.actions-scroll h4:first-child{margin-top:0}.detail-header{background:#fff;border:1px solid var(--border-light);border-radius:var(--radius-md);padding:16px 20px;box-shadow:var(--shadow-sm)}.detail-header p,.vehicle-summary p{margin:4px 0 0;color:#66736f}.timeline{display:grid;grid-template-columns:repeat(11,minmax(120px,1fr));gap:10px;overflow-x:auto;padding-bottom:4px}.timeline-item{min-height:96px;border:1px solid #dce3e0;border-radius:8px;padding:12px;display:grid;align-content:start;gap:10px;background:#f7f9fa}.timeline-item span{width:14px;height:14px;border-radius:999px;background:#c7d2cd}.timeline-item.done span{background:#0e8f7f}.timeline-item.active{border-color:#d94b3d;background:#fff1ef}.timeline-item small{color:#66736f}.incident-item,.note-list article{display:flex;justify-content:space-between;gap:12px;border:1px solid #dce3e0;border-radius:8px;padding:12px;background:#fff}.incident-item.activo{border-left:4px solid #d94b3d}.incident-item p,.note-list p{margin:5px 0}.incident-toggle-card{display:flex;justify-content:space-between;gap:12px;align-items:center;border-radius:8px;padding:12px;margin-bottom:10px;background:#f4f6f8;border-left:4px solid #d94b3d}.incident-toggle-card.resuelto{background:#f2fbf5;border-left-color:#116b3c}.incident-toggle-card small{display:block;margin-top:4px}.incident-toggle-actions{display:flex;gap:6px;flex:0 0 auto}.mini-toggle{border:0;width:24px;height:24px;min-width:24px;border-radius:999px;display:grid;place-items:center;color:#fff;font-size:14px;line-height:1;padding:0}.mini-toggle.success{background:#116b3c}.mini-toggle.danger{background:#b42318}.check-row{display:flex;align-items:center;gap:8px;color:#35433f}.check-row input{width:18px;min-height:18px}.inline-form{display:flex;gap:10px;flex-wrap:wrap;max-width:1180px}.inline-form>input,.inline-form>select{flex:1 1 220px}.range-picker,.date-picker{position:relative;flex:1 1 360px;min-width:min(100%,320px)}.date-picker{flex-basis:220px;min-width:min(100%,220px)}.range-trigger{width:100%;min-height:54px;border:1px solid #cfd8d4;border-radius:8px;background:#fff;color:#18211f;padding:0;display:grid;grid-template-columns:repeat(2,minmax(130px,1fr));text-align:left;overflow:hidden}.date-trigger{width:100%;min-height:54px;border:1px solid #cfd8d4;border-radius:8px;background:#fff;color:#18211f;padding:8px 12px;display:grid;gap:3px;text-align:left}.range-trigger:focus,.date-trigger:focus{outline:2px solid #79c8bd;border-color:#0e8f7f}.range-trigger-box{display:grid;gap:3px;padding:8px 12px}.range-trigger-box+.range-trigger-box{border-left:1px solid #dce3e0}.range-trigger-box small,.date-trigger small{color:#66736f;font-size:.78rem}.range-trigger-box b,.date-trigger b{font-size:1rem}.calendar-popover{position:absolute;top:calc(100% + 8px);left:0;z-index:15;width:min(360px,calc(100vw - 56px));border:1px solid #cfd8d4;border-radius:8px;background:#fff;box-shadow:0 18px 42px #18211f2e;padding:14px}.calendar-popover p{margin:8px 0 12px;color:#66736f;font-size:.88rem}.calendar-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.calendar-head strong{text-transform:capitalize}.calendar-head button,.calendar-actions button{border:1px solid #dce3e0;border-radius:8px;background:#eef2f0;color:#23302c;min-height:34px;padding:0 10px;font-weight:800}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.calendar-weekday{color:#66736f;font-size:.78rem;font-weight:800;text-align:center}.calendar-day{min-height:36px;border:1px solid transparent;border-radius:8px;background:transparent;color:#35433f;font-weight:700}.calendar-day:hover{border-color:#0e8f7f;background:#e7f6f3}.calendar-day.today{border-color:#aebbb6}.calendar-day.in-range{background:#dff4f0}.calendar-day.selected{background:#18211f;color:#fff}.calendar-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.vehicle-summary{margin-bottom:14px}.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;margin-top:16px}.case-card{border:2px solid #dce3e0;border-radius:8px;background:#fff;padding:14px;display:grid;gap:12px}.reschedule-form{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:10px}.case-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.badge-row{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.chat-bubble-button{width:36px;height:36px;border-radius:50%;border:0;background:linear-gradient(135deg,#5fb8af,#3d8d85);color:#fff;display:grid;place-items:center;box-shadow:0 8px 16px #3d8d8538}.icon-pill-button{position:relative;padding:0}.icon-pill-core{position:relative;width:100%;height:100%;display:grid;place-items:center}.icon-pill-core small{font-size:.58rem;font-weight:900;line-height:1}.icon-pill-badge{position:absolute;top:-5px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ea4335;color:#fff;border:2px solid #fff;display:grid;place-items:center;font-size:.66rem;font-weight:900;line-height:1}.chat-bubble-button:hover{transform:translateY(-1px)}.parts-progress-button{width:36px;height:36px;border-radius:50%;border:0;color:#fff;box-shadow:0 8px 16px #1534622e}.parts-progress-button.pending{background:linear-gradient(135deg,#8492a6,#66758c)}.parts-progress-button.danger{background:linear-gradient(135deg,#ff7c67,#e44e4e)}.parts-progress-button.warn{background:linear-gradient(135deg,#ffbf66,#f08c3b)}.parts-progress-button.ok{background:linear-gradient(135deg,#62c59d,#2f9f7e)}.plate-button,.link-button{border:0;background:transparent;color:#087568;font-weight:900;padding:0;text-decoration:underline}.plate-button{font-size:1.25rem;text-decoration:none}.case-grid{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:10px}.case-grid.detail{grid-template-columns:repeat(4,minmax(140px,1fr));margin:14px 0}.case-grid span{display:grid;gap:3px;color:#5b6763}.case-grid b{color:#18211f}.spares-modal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:1rem}.spares-section{border:1px solid rgba(45,60,104,.12);border-radius:16px;padding:14px;background:#f8fbff}.spares-section h4{margin:0 0 12px}.spares-list{display:flex;flex-direction:column;gap:10px}.spares-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:12px;background:#fff;border:1px solid rgba(45,60,104,.08)}.spares-row span:first-child{font-weight:700;color:#2d3656}.spares-status{display:inline-flex;align-items:center;justify-content:center;min-width:108px;padding:6px 10px;border-radius:999px;font-size:.78rem;font-weight:900}.spares-status.arrived{background:#dff6e8;color:#137c47}.spares-status.pending{background:#ffe5e2;color:#c53d31}.spares-dl{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;font-size:1rem;font-weight:900;flex-shrink:0}.spares-dl.dl-yes{background:#dff6e8;color:#137c47}.spares-dl.dl-no{background:#ffe5e2;color:#c53d31}.stage-pills{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.stage-pills span,.stage-pills button{background:#eef2f0;border:0;border-radius:8px;color:#35433f;padding:8px 10px}.metric-stack{display:grid;gap:10px;margin-top:12px}.metric-row{border:1px solid #dce3e0;border-radius:8px;background:#fff;padding:12px;display:grid;gap:8px;text-align:left}.incident-card{border:1px solid #dce3e0;border-radius:8px;background:#fff;padding:12px;display:grid;gap:6px;text-align:left}.incident-card.activo{border-left:4px solid #d94b3d}.incident-card.resuelto{border-left:4px solid #116b3c;background:#f2fbf5}.metric-row-head{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.metric-bar{height:10px;border-radius:999px;background:#e6ece9;overflow:hidden}.metric-bar i{display:block;height:100%;background:#0e8f7f;border-radius:999px}.mini-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-top:12px}.mini-stat-card{border:1px solid #dce3e0;border-radius:8px;background:#f7f9fa;padding:12px;display:grid;gap:4px}.permission-pill{background:#eef2f0;border:1px solid transparent;border-radius:8px;color:#35433f;padding:8px 10px;font-weight:700}.permission-pill.active{background:#dff4f0;border-color:#0e8f7f;color:#087568}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:#18211f73;display:grid;place-items:center;padding:18px}.modal-box{width:min(680px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:8px;padding:18px}.modal-box.wide{width:min(1080px,100%)}.modal-header-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px}.close-btn{background:none;border:none;cursor:pointer;font-size:18px;color:#64748b;padding:4px 8px;border-radius:6px}.close-btn:hover{background:var(--bg-main);color:var(--danger)}.horario-modal-box{width:min(700px,96vw);max-height:90vh;overflow:auto}.horario-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.horario-nav button{background:var(--bg-main);border:1px solid var(--border-light);border-radius:6px;padding:4px 12px;cursor:pointer}.horario-ref-table{width:100%;border-collapse:collapse;font-size:13px}.horario-ref-table th,.horario-ref-table td{text-align:left;padding:7px 10px;border-bottom:1px solid var(--border-light)}.horario-ref-table th{background:var(--bg-main);font-weight:700}.no-slot{color:#a0b0ae;font-style:italic}.horario-slots-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}.horario-slot{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px;border:2px solid #d0e8d4;border-radius:8px;background:#f0faf2;font-size:14px;font-weight:600}.horario-slot span{font-size:11px;color:#30a060;font-weight:500}.horario-slot.occupied{border-color:#f0d0d0;background:#fdf4f4}.horario-slot.occupied span{color:#c04040}textarea{width:100%;min-height:78px;resize:vertical;border:1px solid #cfd8d4;border-radius:8px;padding:10px;font:inherit}.timeline-line{border-left:4px solid #0e8f7f;background:#f4f6f8;border-radius:8px;padding:10px}.danger-text{border-left-color:#d94b3d}.mini-form{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:10px}.date-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:4px 12px;background:#f4f6f8;border:1px solid #dce3e0;border-radius:8px;padding:10px 12px;font-size:.83rem}.date-summary small{display:flex;gap:4px}.area-form{display:grid;gap:10px}.button-row{display:flex;gap:8px;flex-wrap:wrap}@keyframes chat-pulse{0%,to{box-shadow:0 0 #ea43358c}50%{box-shadow:0 0 0 7px #ea433500}}.chat-bubble-button.has-unread{animation:chat-pulse 1.8s ease infinite}@keyframes contact-ring{0%{box-shadow:0 0 #ef4444b3}60%{box-shadow:0 0 0 8px #ef444400}to{box-shadow:0 0 #ef444400}}.chat-bubble-button.contact-pulse{border:2px solid #ef4444;animation:contact-ring 1.6s ease-out infinite}.icon-pill-badge.warn{background:#f59e0b}.contact-warn-strip{display:flex;align-items:center;gap:7px;padding:5px 14px;background:#f59e0b1a;border-bottom:1px solid rgba(245,158,11,.22);font-size:.72rem;font-weight:700;color:#f59e0b;border-radius:14px 14px 0 0;margin:-1px -1px 0;letter-spacing:.01em}.contact-warn-dot{width:7px;height:7px;border-radius:50%;background:#f59e0b;flex-shrink:0;animation:contact-ring 1.6s ease-out infinite}.chat-modal-box{display:flex;flex-direction:column;width:min(600px,92vw);max-height:82vh;padding:0;overflow:hidden}.chat-modal-header{display:flex;align-items:flex-start;gap:12px;padding:16px 20px 12px;border-bottom:1px solid var(--border-light);flex-wrap:wrap}.chat-modal-title{margin:0;font-size:1rem;font-weight:700;display:flex;align-items:center;gap:8px;white-space:nowrap}.chat-status-chips{display:flex;flex-wrap:wrap;gap:6px;flex:1}.chat-status-chip{font-size:.72rem;font-weight:700;padding:3px 10px;border-radius:999px;white-space:nowrap}.chat-status-chip.read{background:#f0fdf4;color:#16a34a;border:1px solid #86efac}.chat-status-chip.unread{background:#fef2f2;color:#dc2626;border:1px solid #fca5a5}.chat-status-chip.aseguradora.read{background:#eff6ff;color:#1d4ed8;border:1px solid #93c5fd}.chat-status-chip.aseguradora.unread{background:#fefce8;color:#92400e;border:1px solid #fcd34d}.chat-wa-btn{display:inline-flex;align-items:center;gap:5px;padding:5px 12px;border-radius:999px;background:#25d366;color:#fff;font-size:.78rem;font-weight:700;text-decoration:none;white-space:nowrap;align-self:flex-start;transition:background .15s,transform .1s}.chat-wa-btn:hover{background:#1ebe59;transform:translateY(-1px)}.chat-close-btn{background:none;border:none;font-size:18px;color:var(--text-muted);cursor:pointer;padding:2px 6px;border-radius:4px;margin-left:auto;align-self:flex-start}.chat-close-btn:hover{background:var(--bg-main);color:var(--danger)}.chat-messages-area{flex:1;overflow-y:auto;padding:16px 20px;display:flex;flex-direction:column;gap:10px;min-height:200px;max-height:400px;background:var(--bg-main)}.chat-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;flex:1;color:var(--text-muted);text-align:center;padding:24px}.chat-empty p{font-size:.85rem;margin:0;max-width:280px}.chat-msg{display:flex;max-width:78%}.chat-msg-in{align-self:flex-start}.chat-msg-out{align-self:flex-end;flex-direction:row-reverse}.chat-msg-center{align-self:center;max-width:90%}.chat-bubble-wrap{display:flex;align-items:flex-end;gap:3px;position:relative}.chat-msg-out .chat-bubble-wrap{flex-direction:row}.chat-msg-center .chat-bubble-wrap{flex-direction:row-reverse}.chat-bubble-clickable{cursor:pointer;position:relative}.chat-bubble-clickable:hover{filter:brightness(.96)}.chat-msg-menu{position:absolute;bottom:calc(100% + 6px);right:0;background:#fff;border:1px solid var(--border-light);border-radius:10px;box-shadow:0 6px 20px #00000026;z-index:50;min-width:140px;overflow:hidden}.chat-msg-in .chat-msg-menu,.chat-msg-center .chat-msg-menu{right:auto;left:0}.chat-msg-menu-item{display:flex;align-items:center;gap:7px;width:100%;text-align:left;padding:10px 15px;font-size:.83rem;font-weight:500;background:none;border:none;cursor:pointer;color:var(--text-main);transition:background .1s}.chat-msg-menu-item:hover{background:#f3f4f6}.chat-msg-menu-item.danger{color:#dc2626}.chat-msg-menu-item.danger:hover{background:#fff5f5}.chat-menu-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:49}.chat-edit-form{display:flex;flex-direction:column;gap:6px;min-width:220px}.chat-edit-textarea{width:100%;border:1px solid rgba(0,0,0,.18);border-radius:7px;padding:7px 9px;font-size:.85rem;font-family:inherit;resize:vertical;background:#ffffffbf;line-height:1.45}.chat-edit-textarea:focus{outline:none;border-color:var(--primary)}.chat-edit-actions{display:flex;gap:6px;justify-content:flex-end}.chat-bubble{padding:9px 13px;border-radius:16px;display:flex;flex-direction:column;gap:3px;word-break:break-word}.chat-msg-in .chat-bubble{border-bottom-left-radius:4px}.chat-msg-out .chat-bubble{border-bottom-right-radius:4px}.bubble-cliente{background:#dbeafe;color:#1e3a5f}.bubble-aseguradora{background:#fef9c3;color:#713f12}.bubble-taller-cliente{background:linear-gradient(135deg,#0f9482,#0b7060);color:#fff}.bubble-taller-aseguradora{background:linear-gradient(135deg,#6d28d9,#5b21b6);color:#fff}.bubble-interno{background:#f1f5f9;color:#64748b;border-radius:8px;border:1px dashed #cbd5e1}.chat-sender{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;opacity:.75}.chat-text{font-size:.875rem;line-height:1.45;white-space:pre-wrap}.chat-time{font-size:.65rem;opacity:.6;text-align:right;margin-top:1px}.chat-compose{border-top:1px solid var(--border-light);padding:12px 16px 14px;display:flex;flex-direction:column;gap:8px;background:#fff}.chat-compose-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.chat-category-select{padding:4px 8px;border-radius:8px;border:1px solid var(--border);font-size:12px;color:var(--text-main);background:var(--bg-main);cursor:pointer}.chat-hint{font-size:11px;color:var(--text-muted)}.chat-compose-input-row{display:flex;gap:8px;align-items:flex-end}.chat-textarea{flex:1;resize:none;border:1px solid var(--border);border-radius:12px;padding:9px 13px;font:inherit;font-size:.875rem;min-height:48px;max-height:120px;transition:border-color .15s}.chat-textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #4f46e51a}.chat-send-btn{width:42px;height:42px;border-radius:50%;border:0;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-hover) 100%);color:#fff;font-size:20px;font-weight:700;cursor:pointer;display:grid;place-items:center;flex:0 0 auto;transition:transform .1s,opacity .1s;box-shadow:0 4px 12px #4f46e54d}.chat-send-btn:disabled{opacity:.4;cursor:default;transform:none}.chat-send-btn:not(:disabled):hover{transform:scale(1.08)}.chat-img-btn{width:42px;height:42px;border-radius:50%;border:2px solid var(--border-light);background:var(--bg-surface);cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s}.chat-img-btn:hover:not(:disabled){background:var(--bg-main)}.chat-img-btn:disabled{opacity:.4;cursor:default}.chat-img{max-width:240px;max-height:200px;border-radius:8px;display:block;margin:4px 0;cursor:pointer}.chat-img:hover{opacity:.9}.button-row.compact{align-items:center;justify-content:flex-end;gap:10px}.button-row.compact .button{min-height:36px;min-width:142px;justify-content:center}.two-columns .stack-form>.button{justify-self:start;width:auto;min-width:180px}.no-print{margin-bottom:14px}.order-modal-box{width:min(1180px,96vw);max-height:94vh;display:grid;grid-template-rows:auto minmax(0,1fr)}.order-template-frame{width:100%;height:min(78vh,920px);border:1px solid #cfd8d4;border-radius:4px;background:#fff}.order-document{background:#fff;border:1px solid #000000;color:#222;font-size:9pt;line-height:1.25;padding:10px}.order-header{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:12px;align-items:center;border-bottom:2px solid #000000;padding-bottom:10px;margin-bottom:10px}.order-logo img{max-width:100%;max-height:80px;display:block}.order-company{text-align:center;font-size:8pt}.order-number-box{justify-self:end;padding-right:18px;text-align:right}.order-number{border:1px solid #000000;display:inline-grid;gap:4px;padding:8px;text-align:center}.order-number strong{color:#b42318;font-size:16pt}.order-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}.order-document table{width:100%;border-collapse:collapse;margin-bottom:10px}.order-document td,.order-document th{border:1px solid #000000;padding:5px;vertical-align:top}.order-info-card{border:1px solid #000000;min-width:0}.order-info-card h4{background:#e0e0e0;border-bottom:1px solid #000000;margin:0;padding:5px;text-align:center;text-transform:uppercase}.order-info-card p{display:grid;grid-template-columns:96px minmax(0,1fr);gap:6px;margin:0;min-height:28px;padding:5px;border-bottom:1px solid #000000}.order-info-card p:last-child{border-bottom:0}.order-info-card b,.order-info-card span{min-width:0;overflow-wrap:anywhere;word-break:break-word}.order-section-title{background:#e0e0e0;border:1px solid #000000;font-weight:800;margin:8px 0;padding:4px;text-align:center;text-transform:uppercase}.order-work-grid{display:grid;grid-template-columns:1fr 1fr;margin-bottom:8px;min-width:0}.order-work-grid section{border:1px solid #000000;padding:8px;min-width:0;overflow:hidden}.order-work-grid section+section{border-left:0}.order-work-grid pre{white-space:pre-wrap;margin:8px 0 0;min-height:96px;font:inherit}.order-work-list{display:grid;gap:3px;margin-top:8px}.order-work-list p{display:block;margin:0;padding-bottom:5px}.order-work-list b{display:block;font-size:9.8pt;text-transform:uppercase}.order-work-list span{display:block;min-width:0;overflow-wrap:anywhere;word-break:break-word;padding-left:8px}.order-manual-space{min-height:112px}.order-inventory{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid #000000;border-left:1px solid #000000;margin-bottom:10px;width:100%;overflow:hidden}.order-inventory-item{display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:center;min-height:24px;border-right:1px solid #000000;border-bottom:1px solid #000000;padding:3px 4px;font-size:7.2pt;gap:3px;min-width:0}.order-inventory-item span{min-width:0;overflow-wrap:anywhere;word-break:break-word}.order-inventory-item i{content:"";display:block;width:12px;height:12px;border:1px solid #000000;justify-self:center}.order-diagram{border:1px solid #000000;margin:10px 0;padding:10px;text-align:center}.order-diagram img{display:block;width:100%;max-width:650px;height:auto;margin:10px auto}.order-notes,.order-legal{border:1px solid #000000;margin-top:10px;padding:8px}.order-legal{font-size:7pt;text-align:justify}.order-signatures{display:grid;grid-template-columns:1fr 1fr;gap:56px;margin:80px 20px 20px}.order-signatures div{border-top:1px solid #000000;min-height:60px;padding-top:10px;text-align:center}.order-privacy{color:#555;font-size:6pt;text-align:justify}@media print{@page{size:216mm 330mm;margin:10mm}body *{visibility:hidden}.order-print-modal,.order-print-modal *{visibility:visible}.order-print-modal{position:absolute;top:0;right:0;bottom:0;left:0;z-index:9999;background:#fff;display:block;padding:0}.order-modal-box{width:100%;max-height:none;overflow:visible;padding:0}.order-document{border:1px solid #000000;min-height:auto}.no-print{display:none}}.sidebar nav{overflow-y:auto;max-height:calc(100vh - 200px)}.sidebar-footer{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #dce3e0;padding-top:12px}.user-role{font-size:.82rem;color:#66736f;background:#eef2f0;border-radius:6px;padding:4px 8px}h4{margin:0 0 8px}@media(max-width:1080px){.kpi-grid,.area-kpis,.form-grid,.two-columns{grid-template-columns:repeat(2,minmax(180px,1fr))}.app-shell{grid-template-columns:220px 1fr}.sidebar{padding:18px 14px}}@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{position:sticky;top:0;z-index:15;height:auto;gap:12px;border-right:0;border-bottom:1px solid #dce3e0}.sidebar nav{display:flex;gap:8px;max-height:none;overflow-x:auto;padding-bottom:4px}.nav-item{flex:0 0 auto;min-height:38px;white-space:nowrap}.sidebar-footer{margin-top:0}.workspace{padding:20px}.table-wrap{max-width:calc(100vw - 40px)}}@media(max-width:760px){.login-page,.kpi-grid,.area-kpis,.form-grid,.two-columns,.actions-split{grid-template-columns:1fr}.actions-scroll{max-height:360px}.login-visual{min-height:220px;order:-1}.login-panel{padding:28px}.workspace{padding:18px}.topbar,.detail-header,.section-heading,.vehicle-summary{align-items:flex-start;flex-direction:column}.inline-form{flex-direction:column}.case-grid,.case-grid.detail,.mini-form,.spares-modal-grid{grid-template-columns:1fr}.cards-grid{grid-template-columns:minmax(0,1fr)}.range-trigger{grid-template-columns:1fr}.modal{padding:10px}.modal-box,.modal-box.wide,.order-modal-box{width:100%;max-height:94vh}}.import-info-box{padding:14px 16px;border-radius:12px;background:#6366f114;border:1px solid rgba(99,102,241,.2);font-size:.82rem;line-height:1.8;color:var(--text-muted)}.import-stat{padding:10px 20px;border-radius:12px;font-weight:700;font-size:1rem}.import-stat.ok{background:#10b9811f;color:#10b981}.import-stat.err{background:#ef44441f;color:#ef4444}@media(max-width:520px){body{min-width:0}.sidebar{padding:12px}.sidebar-brand{align-items:flex-start}.sidebar-footer{flex-direction:column;align-items:stretch}.workspace,.section-band,.case-card,.kpi{padding:12px}.topbar{gap:10px;margin-bottom:14px}.topbar h2{font-size:1.35rem}.user-chip{width:100%}.button-row,.actions{flex-direction:column}.button-row .button,.actions .button{width:100%}.adjustment-footer{align-items:stretch;flex-direction:column}.adjustment-footer .button{width:100%}}.chat-modal-title-area{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.chat-avatar{width:40px;height:40px;border-radius:50%;background:var(--primary);color:#fff;font-size:20px;display:grid;place-items:center;flex-shrink:0}.chat-plate{display:block;font-size:1rem;font-weight:700;color:var(--text-main);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-subtitle{display:block;font-size:.75rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-emoji-tray{display:flex;flex-wrap:wrap;gap:4px;padding:8px 16px;background:var(--bg-main);border-top:1px solid var(--border-light)}.chat-emoji-btn{background:none;border:none;font-size:20px;cursor:pointer;padding:4px;border-radius:6px;line-height:1;transition:background .1s}.chat-emoji-btn:hover{background:var(--bg-surface)}.chat-icon-btn{width:42px;height:42px;border-radius:50%;border:2px solid var(--border-light);background:var(--bg-surface);cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s}.chat-icon-btn:hover:not(:disabled){background:var(--bg-main)}.chat-icon-btn:disabled{opacity:.4;cursor:default}.chat-img-expired{font-size:.8rem;color:var(--text-muted);font-style:italic;padding:4px 2px}.wcal{width:100%;border-radius:12px;border:1px solid var(--border-light);background:#fff;overflow:hidden;margin:16px 0}.wcal-legend{display:flex;flex-wrap:wrap;gap:14px;padding:10px 16px;border-bottom:1px solid var(--border-light);background:var(--bg-main)}.wcal-legend-item{display:flex;align-items:center;gap:6px;font-size:.78rem;font-weight:600;color:var(--text-muted)}.wcal-legend-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}.wcal-scroll{overflow-x:auto}.wcal-grid{display:flex;min-width:560px}.wcal-timecol{display:flex;flex-direction:column;width:58px;flex-shrink:0;border-right:1px solid var(--border-light)}.wcal-timecol-head{height:60px;border-bottom:1px solid var(--border-light)}.wcal-time-cell{height:62px;display:flex;align-items:center;justify-content:flex-end;padding:0 8px;font-size:.7rem;font-weight:600;color:var(--text-muted);border-bottom:1px solid var(--border-light);-webkit-user-select:none;user-select:none}.wcal-daycol{flex:1;display:flex;flex-direction:column;border-right:1px solid var(--border-light);min-width:88px}.wcal-daycol:last-child{border-right:0}.wcal-daycol.is-today{background:#fefce8}.wcal-daycol.is-blocked{background:#fff1f2}.wcal-daycol.is-weekend{background:#f8fafc}.wcal-colhead{height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 6px 0 8px;border-bottom:2px solid var(--border-light);gap:4px}.wcal-colhead-names{display:flex;flex-direction:column;align-items:flex-start;gap:1px;flex:1}.wcal-dayname{font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted)}.wcal-daynum{font-size:1.1rem;font-weight:700;color:var(--text-main);line-height:1}.wcal-daynum.today-num{background:var(--primary);color:#fff;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:.85rem}.wcal-toggle-btn{font-size:14px;width:26px;height:26px;border-radius:6px;border:1px solid var(--border-light);background:none;cursor:pointer;display:grid;place-items:center;flex-shrink:0;transition:background .12s;padding:0}.wcal-toggle-btn.block:hover{background:#fff1f2;border-color:#fca5a5}.wcal-toggle-btn.unblock:hover{background:#f0fdf4;border-color:#86efac}.wcal-slot{height:62px;border-bottom:1px solid var(--border-light);padding:4px 5px;display:flex;flex-direction:column;gap:3px;overflow:hidden}.wcal-slot.is-blocked{background:repeating-linear-gradient(135deg,#fff1f2,#fff1f2 4px,#fff8f8 4px,#fff8f8 8px)}.wcal-blocked-txt{color:#fca5a5;font-size:.75rem;font-weight:700;text-align:center;flex:1;display:grid;place-items:center}.wcal-slot-empty{flex:1}.wcal-chip{display:flex;align-items:center;gap:4px;padding:3px 7px;border-radius:6px;border:none;background:var(--cb, #f3effe);border-left:3px solid var(--cc, #7c3aed);cursor:pointer;text-align:left;width:100%;transition:filter .12s,transform .1s;font:inherit;font-size:.7rem}.wcal-chip:hover{filter:brightness(.92);transform:scale(1.02)}.wcal-chip:active{transform:scale(.97)}.wcal-chip.status-cancelada{opacity:.45;text-decoration:line-through}.wcal-chip.status-confirmada{border-left-width:4px}.wcal-chip-plate{font-weight:700;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-main)}.wcal-chip-label{font-size:.6rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;flex-shrink:0}.gestion-topbar{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px}.gestion-week-nav{display:flex;align-items:center;gap:6px}.gestion-sched-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:16px;padding:10px 14px;background:var(--surface2, #f8f9fa);border:1px solid var(--border);border-radius:10px}.gestion-summary{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:4px}.gestion-count-card{display:flex;flex-direction:column;align-items:center;gap:3px;padding:12px 18px;border-radius:12px;border:2px solid var(--gc, var(--border));background:#fff;min-width:80px;cursor:pointer;transition:background .14s,box-shadow .14s;box-shadow:0 2px 6px #0000000a}.gestion-count-card:hover{background:#f8fafc}.gestion-count-card.active{background:color-mix(in srgb,var(--gc) 12%,white);box-shadow:0 0 0 2px var(--gc)}.gestion-count-card.blocked-card{cursor:default}.gestion-count-card strong{font-size:1.6rem;font-weight:800;line-height:1;color:var(--gc, var(--text-main))}.gestion-count-card span{font-size:.72rem;color:var(--text-muted);font-weight:600;text-align:center}.gestion-list-section{margin-top:24px}.gestion-list-section h4{font-size:.9rem;font-weight:700;margin:0 0 10px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em}.gestion-appt-rows{display:flex;flex-direction:column;gap:5px}.gestion-appt-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;border-radius:10px;border-left:4px solid transparent;background:var(--bg-surface);font-size:.85rem;cursor:pointer;border:1px solid var(--border-light);border-left:4px solid;transition:background .12s,box-shadow .12s;text-align:left;width:100%}.gestion-appt-row:hover{background:#f8fafc;box-shadow:0 2px 8px #0000000f}.gestion-appt-row.blocked{cursor:default}.gestion-appt-row.blocked:hover{background:var(--bg-surface);box-shadow:none}.gestion-date-col{display:flex;flex-direction:column;gap:1px;min-width:80px}.gestion-date{font-family:monospace;font-size:.78rem;color:var(--text-muted);white-space:nowrap}.gestion-time{font-family:monospace;font-size:.85rem;font-weight:700;color:var(--text-main)}.gestion-type-badge{font-size:.7rem;font-weight:700;padding:2px 8px;border-radius:20px;white-space:nowrap;flex-shrink:0}.gestion-plate{font-size:.9rem;font-weight:800;letter-spacing:.04em;flex-shrink:0}.gestion-client{flex:1;min-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gestion-phone{font-size:.78rem;color:var(--text-muted);font-family:monospace;flex-shrink:0}.gestion-status-badge{font-size:.7rem;font-weight:700;padding:2px 9px;border-radius:20px;text-transform:capitalize;margin-left:auto;flex-shrink:0;white-space:nowrap}.gestion-status-badge.programada{background:#e0f2fe;color:#075985}.gestion-status-badge.pendiente{background:#fef3c7;color:#92400e}.gestion-status-badge.confirmada{background:#d1fae5;color:#065f46}.gestion-status-badge.cancelada{background:#fee2e2;color:#991b1b}.gestion-status-badge.completada{background:#ede9fe;color:#5b21b6}.gestion-blocked-panel{margin-top:24px;padding-top:20px;border-top:1px solid var(--border-light)}.gestion-blocked-panel h4{font-size:.9rem;font-weight:700;margin:0 0 10px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em}.appt-manage-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;padding:16px 0}.amg-field{display:flex;flex-direction:column;gap:3px}.amg-field label{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted)}.amg-field strong{font-size:.9rem;color:var(--text-main)}.wcal-chip.status-completada{opacity:.6;background:#ede9fe!important}.wcal-chip.is-overdue{border:1.5px dashed #ef4444;background:#fff5f5!important;animation:overdue-pulse 2s ease-in-out infinite}@keyframes overdue-pulse{0%,to{box-shadow:0 0 #ef444400}50%{box-shadow:0 0 0 3px #ef444440}}.gestion-appt-row.is-overdue{background:#fff8f8}.gestion-appt-row.is-overdue:hover{background:#fff0f0}.gestion-overdue-chip{font-size:.65rem;font-weight:800;padding:2px 7px;border-radius:20px;background:#fee2e2;color:#991b1b;flex-shrink:0;text-transform:uppercase;letter-spacing:.04em}.gestion-overdue-warn{background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;padding:8px 14px;font-size:.82rem;color:#9a3412;font-weight:600;margin-bottom:4px}.gestion-count-sub{display:flex;gap:5px;flex-wrap:wrap;justify-content:center;margin-top:2px}.gestion-count-sub span{font-size:.62rem;font-weight:700;padding:1px 5px;border-radius:10px}.gsub-pend{background:#fef3c7;color:#92400e}.gsub-conf{background:#d1fae5;color:#065f46}.gsub-done{background:#ede9fe;color:#5b21b6}.gestion-count-card.has-overdue{border:1.5px solid #fca5a5}.gestion-vehicle{font-size:.75rem;color:var(--text-muted);flex-shrink:0}body{padding-bottom:34px}.full-form-section-title{font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:var(--primary);margin:22px 0 6px;padding-bottom:6px;border-bottom:2px solid var(--primary)}.adj-modal-box{max-width:480px;width:100%}.adj-empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:40px 20px;color:var(--text-muted);text-align:center}.adj-empty p{margin:0;font-size:.9rem}.adj-rows{display:flex;flex-direction:column;gap:0;margin-top:18px;border:1px solid var(--border-light);border-radius:10px;overflow:hidden}.adj-row{display:flex;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid var(--border-light);background:var(--bg-surface)}.adj-row:last-child{border-bottom:none}.adj-row:nth-child(2n){background:var(--bg-main)}.adj-row-icon{font-size:1.1rem;width:24px;text-align:center;flex-shrink:0}.adj-row-label{flex:1;font-size:.88rem;color:var(--text-main)}.adj-row-value{font-size:.95rem;font-weight:700;color:var(--text-main);font-variant-numeric:tabular-nums}.adj-total-row{display:flex;align-items:center;justify-content:space-between;padding:16px;margin-top:12px;background:var(--primary);border-radius:10px;color:#fff}.adj-total-label{font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.adj-total-value{font-size:1.25rem;font-weight:800;font-variant-numeric:tabular-nums}.stages-section{margin:10px 0 18px}.stages-grid{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:10px}.stage-card{border:1px solid #dbe3e1;border-radius:8px;background:#fff;padding:14px 12px;display:grid;gap:5px;text-align:left;cursor:pointer;font:inherit;transition:box-shadow .15s ease,border-color .15s ease}.stage-card:hover{border-color:#0e8f7f;box-shadow:0 2px 8px #0e8f7f1f}.stage-card.superada{background:#ecfaf7;border-color:#89d2c7}.stage-card.actual{border-color:#0e8f7f;box-shadow:inset 0 0 0 1px #0e8f7f;background:#f0faf8}.stage-card.pendiente{background:#fff;border-color:#dbe3e1;opacity:.75}.stage-card-number{font-size:.7rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}.stage-card-label{font-size:.85rem;font-weight:600;color:var(--text-main);line-height:1.3}.stage-card-status{font-size:.75rem;color:var(--text-muted)}.stage-card.superada .stage-card-status{color:#0b8a6d}.stage-card.actual .stage-card-status{color:#0e8f7f;font-weight:600}.stage-number-badge{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#0e8f7f;color:#fff;font-size:.75rem;font-weight:700;flex-shrink:0}.stage-detail-subheading{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);margin:16px 0 8px;padding-bottom:6px;border-bottom:1px solid var(--border-light)}body:after{content:"DerivativeCalculus copyright";position:fixed;left:50%;bottom:10px;transform:translate(-50%);font-size:12px;letter-spacing:.08em;color:#ffffff94;pointer-events:none;z-index:9999}
