:root{--navy:#071426;--navy2:#0b1d35;--blue:#2563eb;--blue2:#0f4bdc;--bg:#f4f7fb;--card:#fff;--text:#0f172a;--muted:#64748b;--line:#e5edf6;--shadow:0 12px 35px rgba(15,23,42,.08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}.app-shell{display:flex;min-height:100vh}.sidebar{width:285px;background:linear-gradient(180deg,var(--navy),#061225);color:#fff;position:fixed;left:0;top:0;bottom:0;display:flex;flex-direction:column;z-index:20;transition:.2s ease;box-shadow:14px 0 35px rgba(15,23,42,.13)}.sidebar.collapsed{width:88px}.brand-wrap{height:88px;display:flex;align-items:center;padding:0 20px;border-bottom:1px solid rgba(255,255,255,.08)}.brand-link{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;min-width:0}.brand-icon{width:42px;height:42px;border:2px solid rgba(255,255,255,.85);border-radius:14px;display:grid;place-items:center;flex:0 0 auto}.car-line{width:24px;height:13px;border:3px solid #fff;border-top-left-radius:10px;border-top-right-radius:10px;border-bottom:0;position:relative}.car-line:before,.car-line:after{content:"";position:absolute;width:5px;height:5px;background:#fff;border-radius:50%;bottom:-5px}.car-line:before{left:0}.car-line:after{right:0}.brand-text{font-size:20px;font-weight:900;letter-spacing:-.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar.collapsed .brand-text,.sidebar.collapsed .nav-link span:not(.nav-icon),.sidebar.collapsed .admin-mini div,.sidebar.collapsed .logout-link{display:none}.sidebar-nav{padding:22px 12px;display:grid;gap:8px}.nav-link{height:54px;border-radius:14px;color:#dbeafe;text-decoration:none;display:flex;align-items:center;gap:15px;padding:0 16px;font-weight:800}.nav-link:hover{background:rgba(255,255,255,.07);color:#fff}.nav-link.active{background:linear-gradient(135deg,var(--blue),#0f4bdc);color:#fff;box-shadow:0 12px 28px rgba(37,99,235,.3)}.nav-icon{width:24px;text-align:center;font-size:18px}.sidebar-footer{margin-top:auto;padding:18px;border-top:1px solid rgba(255,255,255,.08)}.admin-mini{display:flex;gap:12px;align-items:center}.avatar-small,.avatar-top{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#071426;font-weight:900}.admin-mini strong,.admin-mini small{display:block}.admin-mini small{color:#aac1dd}.logout-link{display:block;color:#93c5fd;text-decoration:none;margin-top:12px;font-size:13px}.main-content{margin-left:285px;width:calc(100% - 285px);transition:.2s ease}.sidebar.collapsed+.main-content{margin-left:88px;width:calc(100% - 88px)}.topbar{height:78px;background:#fff;display:flex;align-items:center;gap:18px;padding:0 24px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:15}.sidebar-toggle{width:46px;height:46px;border-radius:14px;border:2px solid #0f172a;background:#fff;font-size:26px;line-height:1;display:grid;place-items:center}.global-search{height:46px;max-width:520px;flex:1;display:flex;align-items:center;gap:10px;border:1px solid #d8e2ee;border-radius:14px;padding:0 14px;background:#fff}.global-search input{border:0;outline:0;flex:1;background:transparent;color:#0f172a}.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:18px}.notification-icon{position:relative;font-size:22px}.notification-icon b{position:absolute;right:-8px;top:-8px;background:#2563eb;color:#fff;border-radius:50%;font-size:11px;width:20px;height:20px;display:grid;place-items:center}.top-user{display:flex;align-items:center;gap:10px}.top-user small{display:block;color:#64748b}.page-body{padding:22px 26px 32px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.page-head h1{font-weight:950;letter-spacing:-.8px;margin:0;font-size:30px}.page-head p{margin:5px 0 0;color:#64748b}.btn-primary{background:var(--blue);border-color:var(--blue);font-weight:800;border-radius:12px}.btn-primary:hover{background:var(--blue2);border-color:var(--blue2)}.btn-light,.btn-outline-primary,.btn-outline-danger{font-weight:800;border-radius:12px}.card-soft{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.controls{display:grid;grid-template-columns:1.2fr .8fr .8fr .8fr 1.4fr auto;gap:10px;margin-bottom:14px}.control{height:46px;border:1px solid #dce6f1;background:#fff;border-radius:12px;display:flex;align-items:center;gap:9px;padding:0 12px;color:#0f172a}.control input,.control select{border:0;outline:0;background:transparent;width:100%;font-weight:700;color:#0f172a}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:14px}.kpi{display:flex;align-items:center;gap:16px;padding:18px;border-radius:18px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}.kpi-ico{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;font-size:26px}.kpi h3{font-size:14px;margin:0 0 4px;color:#334155}.kpi strong{font-size:30px;line-height:1}.kpi small{color:#64748b}.bar{height:5px;border-radius:10px;background:#e5e7eb;margin-top:9px;overflow:hidden}.bar span{display:block;height:100%;border-radius:10px}.bg-green{background:#22c55e}.bg-blue{background:#2563eb}.bg-orange{background:#f59e0b}.bg-purple{background:#8b5cf6}.calendar-card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}.calendar-toolbar{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);font-size:13px;color:#64748b;background:#fff}.calendar-scroll{overflow:auto;max-height:calc(100vh - 345px);scrollbar-width:thin;scrollbar-color:#94a3b8 #e5edf6}.calendar-scroll::-webkit-scrollbar{height:13px;width:13px}.calendar-scroll::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:20px;border:3px solid #e5edf6}.calendar-grid{--days:7;min-width:980px}.calendar-grid.month{min-width:1900px}.cal-head,.cal-row{display:grid;grid-template-columns:270px repeat(var(--days),minmax(110px,1fr))}.calendar-grid.month .cal-head,.calendar-grid.month .cal-row{grid-template-columns:270px repeat(var(--days),minmax(52px,1fr))}.cal-head{position:sticky;top:0;background:#fff;z-index:8;box-shadow:0 1px 0 var(--line)}.car-head{position:sticky;left:0;z-index:10;background:#fff}.day-cell,.car-head{min-height:62px;padding:12px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-weight:900;text-align:center}.day-cell small{display:block;color:#64748b;font-weight:700}.day-cell.today{background:#eef4ff}.day-cell.today .bubble{display:inline-block;background:#2563eb;color:#fff;border-radius:999px;padding:3px 9px}.cal-row{min-height:62px}.car-cell{position:sticky;left:0;z-index:6;background:#fff;display:flex;align-items:center;gap:12px;padding:10px 14px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.grid-cell{position:relative;min-height:62px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}.today-col{background:#f8fbff}.auto-icon{width:48px;height:36px;border-radius:12px;background:#eaf1ff;display:grid;place-items:center;flex:0 0 auto;position:relative;border:1px solid #cfe0ff}.auto-icon:before{content:"";width:31px;height:14px;border:4px solid #2563eb;border-bottom:0;border-radius:12px 12px 0 0}.auto-icon:after{content:"";position:absolute;bottom:7px;left:12px;width:6px;height:6px;background:#2563eb;border-radius:50%;box-shadow:18px 0 0 #2563eb}.car-meta strong{display:block;font-size:13px;line-height:1.1}.car-meta small{display:block;color:#64748b;font-size:12px}.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:4px;background:#22c55e}.booking{position:absolute;height:30px;top:15px;left:6px;right:6px;border-radius:999px;border:2px solid transparent;padding:0 10px;display:flex;align-items:center;gap:7px;font-weight:850;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:4;background:#eef4ff}.booking .dot{width:9px;height:9px;border-radius:50%;flex:0 0 auto}.booking:hover{filter:brightness(.98);transform:translateY(-1px)}.booking button{border:0;background:transparent;color:inherit;font:inherit;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.status-confirmada{background:#dbeafe!important;color:#0b48d8!important;border-color:#2563eb!important}.status-confirmada .dot,.dot-confirmada{background:#2563eb!important}.status-pendiente{background:#fef3c7!important;color:#92400e!important;border-color:#f59e0b!important}.status-pendiente .dot,.dot-pendiente{background:#f59e0b!important}.status-entregado{background:#ede9fe!important;color:#5b21b6!important;border-color:#7c3aed!important}.status-entregado .dot,.dot-entregado{background:#7c3aed!important}.status-devuelto,.status-finalizada{background:#dcfce7!important;color:#166534!important;border-color:#16a34a!important}.status-devuelto .dot,.status-finalizada .dot,.dot-devuelto{background:#16a34a!important}.status-cancelada{background:#fee2e2!important;color:#991b1b!important;border-color:#ef4444!important}.status-cancelada .dot,.dot-cancelada{background:#ef4444!important}.status-mantenimiento{background:#ffedd5!important;color:#9a3412!important;border-color:#f97316!important}.status-mantenimiento .dot,.dot-mantenimiento{background:#f97316!important}.legend{display:flex;flex-wrap:wrap;justify-content:center;gap:18px;padding:13px;border-top:1px solid var(--line);font-weight:800;color:#334155}.legend span{display:inline-flex;align-items:center;gap:6px}.legend i{width:12px;height:12px;border-radius:50%;display:inline-block}.form-card{padding:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.form-control,.form-select{min-height:46px;border-radius:12px;border-color:#d7e2ef}.form-label{font-weight:800;color:#172033}.section-title{font-size:18px;font-weight:900;margin-bottom:14px}.summary-list{display:grid;gap:8px}.summary-row{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:8px 0;color:#64748b}.summary-row strong{color:#0f172a}.auto-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.sidebar:not(.collapsed)+.main-content .auto-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.auto-card{overflow:hidden}.auto-card img{width:100%;height:190px;object-fit:cover;background:#eef2f7}.auto-body{padding:18px}.auto-title{font-size:20px;font-weight:950;letter-spacing:-.3px}.specs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.spec{background:#eef4ff;color:#0f4bdc;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:850}.contract-panel{padding:20px}.contract-section{border:1px solid var(--line);border-radius:16px;padding:16px;margin-bottom:14px;background:#fff}.contract-section h3{font-size:17px;font-weight:950;margin:0 0 12px}.annual-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.annual-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow);text-decoration:none;color:var(--text)}.annual-card:hover{transform:translateY(-2px)}.badge-soft{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:999px;font-weight:900}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.detail-item{background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:12px}.detail-item span{font-size:12px;color:#64748b;font-weight:800;display:block}.detail-item strong{display:block;color:#0f172a}.detail-wide{grid-column:1/-1}.reserva-modal{border:0;border-radius:18px;overflow:hidden;box-shadow:0 24px 70px rgba(15,23,42,.22)}@media(max-width:1400px){.page-body{padding:18px}.kpis{grid-template-columns:repeat(2,1fr)}.calendar-scroll{max-height:calc(100vh - 390px)}.controls{grid-template-columns:repeat(3,1fr)}}@media(max-width:992px){.sidebar{transform:translateX(-100%);width:270px}.sidebar.mobile-open{transform:translateX(0)}.sidebar.collapsed{width:270px}.main-content,.sidebar.collapsed+.main-content{margin-left:0;width:100%}.topbar{padding:0 14px}.page-head{flex-direction:column}.controls{grid-template-columns:1fr}.kpis{grid-template-columns:1fr}.auto-grid,.sidebar:not(.collapsed)+.main-content .auto-grid{grid-template-columns:1fr}.form-grid,.form-grid-3{grid-template-columns:1fr}.calendar-scroll{max-height:68vh}.annual-grid{grid-template-columns:1fr 1fr}.detail-grid{grid-template-columns:1fr}}@media(max-width:576px){.page-head h1{font-size:24px}.top-user div{display:none}.global-search{max-width:none}.calendar-grid{min-width:860px}.calendar-grid.month{min-width:1600px}.annual-grid{grid-template-columns:1fr}.auto-card img{height:160px}}
.login-page{min-height:100vh;background:radial-gradient(circle at 20% 10%,#1d4ed8 0,#071426 35%,#020617 100%);display:grid;place-items:center}.login-wrap{width:min(94vw,470px)}.login-card{background:#fff;border-radius:26px;padding:32px;box-shadow:0 30px 90px rgba(0,0,0,.28)}.login-brand{display:flex;align-items:center;gap:14px;margin-bottom:26px}.login-brand .brand-icon{background:#071426}.login-brand h1{font-size:24px;margin:0;font-weight:950}.login-brand p{margin:0;color:#64748b}.login-help{margin-top:18px;color:#64748b;font-size:13px;background:#f8fafc;border:1px solid #e5edf6;border-radius:14px;padding:12px}
.badge-soft .dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:0 0 auto}.status-confirmada .dot{background:#2563eb}.status-pendiente .dot{background:#f59e0b}.status-entregado .dot{background:#7c3aed}.status-devuelto .dot,.status-finalizada .dot{background:#16a34a}.status-cancelada .dot{background:#ef4444}.status-mantenimiento .dot{background:#f97316}

/* =========================================================
   RESPONSIVE PATCH FINAL - Web, laptop, tablet y teléfono
   ========================================================= */
html{scroll-behavior:smooth}body{overflow-x:hidden}.main-content{min-width:0}.page-body{max-width:100%;overflow-x:hidden}.btn{white-space:nowrap}.card-soft,.kpi,.calendar-card,.contract-section{max-width:100%}.page-head .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center}.topbar{min-width:0}.global-search{min-width:180px}.topbar-actions{flex:0 0 auto}.brand-wrap{min-width:0}.brand-link{width:100%}.brand-text{max-width:190px}.sidebar.collapsed .brand-wrap{justify-content:center;padding:0 10px}.sidebar.collapsed .brand-link{justify-content:center}.controls{align-items:stretch}.control{min-width:0}.control strong,.control input,.control select{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-card{width:100%;max-width:100%;min-width:0}.calendar-toolbar{align-items:center;flex-wrap:wrap}.calendar-scroll{width:100%;max-width:100%;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.calendar-grid.week{min-width:1040px}.calendar-grid.month{min-width:max(1500px,100%)}.cal-head,.cal-row{width:100%}.booking{cursor:pointer;box-shadow:0 8px 16px rgba(15,23,42,.06)}.booking button{max-width:100%}.auto-card{height:100%;display:flex;flex-direction:column}.auto-body{flex:1}.auto-fallback{display:grid!important}.auto-card img[src=""],.auto-card img:not([src]){display:none}.reservation-detail-link{border:0;background:transparent;color:#0f4bdc;font-weight:900;padding:0;text-align:left}.reservation-detail-link:hover{text-decoration:underline}.table{min-width:760px}.table-responsive{border-radius:14px}.modal-body{max-height:72vh;overflow:auto}.contract-section{scroll-margin-top:90px}.contract-section .form-control,.contract-section .form-select,.form-card .form-control,.form-card .form-select{width:100%}.grid-full{grid-column:1/-1}.legend{position:sticky;bottom:0;background:#fff;z-index:9;box-shadow:0 -8px 20px rgba(15,23,42,.04)}

@media (min-width:1600px){.page-body{padding:28px 34px}.calendar-scroll{max-height:calc(100vh - 330px)}.calendar-grid.week{min-width:100%}.calendar-grid.month{min-width:1850px}.cal-head,.cal-row{grid-template-columns:280px repeat(var(--days),minmax(115px,1fr))}.calendar-grid.month .cal-head,.calendar-grid.month .cal-row{grid-template-columns:280px repeat(var(--days),minmax(58px,1fr))}}

@media (max-width:1500px){.sidebar{width:260px}.main-content{margin-left:260px;width:calc(100% - 260px)}.brand-text{font-size:18px;max-width:168px}.page-body{padding:18px}.controls{grid-template-columns:1fr 1fr 1fr}.controls .control[style]{grid-column:auto!important}.kpis{grid-template-columns:repeat(4,minmax(170px,1fr));overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}.kpi{min-width:220px;padding:16px}.calendar-scroll{max-height:calc(100vh - 355px)}.calendar-grid.week{min-width:1040px}.cal-head,.cal-row{grid-template-columns:250px repeat(var(--days),minmax(105px,1fr))}.calendar-grid.month .cal-head,.calendar-grid.month .cal-row{grid-template-columns:250px repeat(var(--days),minmax(52px,1fr))}.auto-grid,.sidebar:not(.collapsed)+.main-content .auto-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media (max-width:1200px){.topbar{height:auto;min-height:72px;flex-wrap:wrap;padding:12px 18px}.global-search{order:3;flex:1 1 100%;max-width:none}.topbar-actions{margin-left:auto}.page-head{align-items:stretch}.page-head h1{font-size:28px}.page-head>div:first-child{min-width:0}.page-head .btn,.page-head .d-flex{align-self:flex-start}.controls{grid-template-columns:1fr 1fr}.kpis{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.kpi{min-width:0}.calendar-scroll{max-height:62vh}.form-grid,.form-grid-3{grid-template-columns:1fr 1fr}.annual-grid{grid-template-columns:repeat(3,1fr)}.contract-section{padding:14px}.contract-section h3{font-size:16px}}

@media (max-width:992px){body.mobile-menu-open{overflow:hidden}.sidebar{transform:translateX(-100%);width:min(86vw,320px);box-shadow:18px 0 60px rgba(2,6,23,.34)}.sidebar.mobile-open{transform:translateX(0)}.sidebar.collapsed{width:min(86vw,320px)}.sidebar.collapsed .brand-text,.sidebar.collapsed .nav-link span:not(.nav-icon),.sidebar.collapsed .admin-mini div,.sidebar.collapsed .logout-link{display:block}.sidebar.collapsed .brand-wrap{justify-content:flex-start;padding:0 20px}.sidebar.collapsed .brand-link{justify-content:flex-start}.sidebar-backdrop{position:fixed;inset:0;background:rgba(2,6,23,.56);backdrop-filter:blur(2px);z-index:19;display:none}.sidebar-backdrop.show{display:block}.main-content,.sidebar.collapsed+.main-content{margin-left:0;width:100%}.topbar{position:sticky;top:0;z-index:18}.sidebar-toggle{width:44px;height:44px;border-radius:12px;font-size:24px}.page-body{padding:16px}.page-head{flex-direction:column;gap:12px}.page-head .btn,.page-head .d-flex{width:100%;display:flex}.page-head .d-flex .btn{flex:1}.controls{grid-template-columns:1fr}.controls .control[style]{grid-column:auto!important}.kpis{grid-template-columns:1fr 1fr;gap:10px}.kpi{padding:14px;gap:12px}.kpi-ico{width:48px;height:48px;font-size:22px}.kpi strong{font-size:26px}.calendar-toolbar{font-size:12px;padding:10px}.calendar-scroll{max-height:66vh;border-radius:0}.calendar-grid.week{min-width:920px}.calendar-grid.month{min-width:1420px}.cal-head,.cal-row{grid-template-columns:210px repeat(var(--days),minmax(96px,1fr))}.calendar-grid.month .cal-head,.calendar-grid.month .cal-row{grid-template-columns:210px repeat(var(--days),minmax(48px,1fr))}.day-cell,.car-head{min-height:54px;padding:9px 8px;font-size:13px}.cal-row{min-height:58px}.car-cell{padding:8px 10px;gap:9px}.auto-icon{width:42px;height:32px}.car-meta strong{font-size:12px}.car-meta small{font-size:11px}.booking{height:28px;top:14px;font-size:11px;padding:0 8px}.legend{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;gap:14px;padding:10px 12px}.legend span{white-space:nowrap}.auto-grid,.sidebar:not(.collapsed)+.main-content .auto-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.auto-card img,.auto-fallback{height:150px!important}.auto-body{padding:14px}.auto-title{font-size:17px}.specs{gap:6px}.spec{font-size:11px;padding:5px 8px}.form-grid,.form-grid-3{grid-template-columns:1fr}.contract-section .form-grid{grid-template-columns:1fr}.annual-grid{grid-template-columns:repeat(2,1fr)}.modal-dialog{margin:12px}.detail-grid{grid-template-columns:1fr}.modal-footer{display:grid;grid-template-columns:1fr;gap:8px}.modal-footer .btn{width:100%;margin:0!important}}

@media (max-width:768px){.topbar{gap:10px}.top-user div{display:none!important}.notification-icon{font-size:20px}.global-search{height:42px}.page-head h1{font-size:25px}.page-head p{font-size:14px}.kpis{grid-template-columns:1fr}.kpi{border-radius:16px}.calendar-card{border-radius:16px;margin-left:-2px;margin-right:-2px}.calendar-scroll{max-height:64vh}.calendar-grid.week{min-width:850px}.calendar-grid.month{min-width:1280px}.cal-head,.cal-row{grid-template-columns:185px repeat(var(--days),minmax(90px,1fr))}.calendar-grid.month .cal-head,.calendar-grid.month .cal-row{grid-template-columns:185px repeat(var(--days),minmax(44px,1fr))}.car-cell{align-items:flex-start}.auto-icon{width:38px;height:30px}.auto-icon:before{width:25px;height:12px;border-width:3px}.auto-icon:after{left:10px;bottom:6px;width:5px;height:5px;box-shadow:15px 0 0 #2563eb}.car-meta small{line-height:1.25}.booking{max-width:calc(100% - 8px)}.auto-grid,.sidebar:not(.collapsed)+.main-content .auto-grid{grid-template-columns:1fr}.annual-grid{grid-template-columns:1fr}.card-soft.p-4{padding:16px!important}.card-soft.p-3{padding:12px!important}.login-card{padding:24px;border-radius:22px}.login-brand h1{font-size:22px}}

@media (max-width:576px){.topbar{padding:10px 12px}.sidebar-toggle{width:42px;height:42px}.page-body{padding:13px 12px 22px}.page-head h1{font-size:23px}.btn{min-height:42px}.control{height:auto;min-height:44px;padding:9px 11px}.control input[type="date"]{min-height:32px}.kpi h3{font-size:13px}.kpi strong{font-size:24px}.kpi small{font-size:12px}.calendar-toolbar{display:block}.calendar-toolbar span{display:block;margin:3px 0}.calendar-scroll{max-height:62vh}.calendar-grid.week{min-width:790px}.calendar-grid.month{min-width:1160px}.cal-head,.cal-row{grid-template-columns:165px repeat(var(--days),minmax(82px,1fr))}.calendar-grid.month .cal-head,.calendar-grid.month .cal-row{grid-template-columns:165px repeat(var(--days),minmax(40px,1fr))}.day-cell,.car-head{font-size:12px;min-height:50px;padding:8px 6px}.day-cell small{font-size:11px}.cal-row{min-height:56px}.car-cell{gap:7px;padding:7px 8px}.auto-icon{width:34px;height:28px;border-radius:10px}.car-meta strong{font-size:11.5px}.car-meta small{font-size:10.5px}.booking{height:26px;top:13px;font-size:10.5px;padding:0 7px;border-width:1px}.legend{font-size:12px}.form-card{padding:16px}.section-title{font-size:16px}.summary-row{display:block}.summary-row strong{margin-top:3px}.contract-section{padding:13px}.contract-section h3{font-size:15px}.table{font-size:13px;min-width:690px}.modal-title{font-size:18px}.detail-item{padding:10px}.auto-card img,.auto-fallback{height:135px!important}.auto-body{padding:13px}.spec{font-size:10.5px}.avatar-small,.avatar-top{width:38px;height:38px}.brand-wrap{height:76px}.brand-icon{width:40px;height:40px}.brand-text{font-size:18px;max-width:210px}}

@media (max-width:380px){.calendar-grid.week{min-width:740px}.cal-head,.cal-row{grid-template-columns:150px repeat(var(--days),minmax(76px,1fr))}.calendar-grid.month{min-width:1080px}.calendar-grid.month .cal-head,.calendar-grid.month .cal-row{grid-template-columns:150px repeat(var(--days),minmax(37px,1fr))}.car-cell{padding-left:6px;padding-right:6px}.auto-icon{display:none}.booking{font-size:10px}.page-head h1{font-size:21px}}

/* =========================================================
   PATCH V5 - UI más compacto, responsive y autos solo con foto
   ========================================================= */
:root{
  --shadow:0 8px 24px rgba(15,23,42,.07);
}
body{font-size:14px;line-height:1.35}.sidebar{width:250px}.main-content{margin-left:250px;width:calc(100% - 250px)}.sidebar.collapsed+.main-content{margin-left:88px;width:calc(100% - 88px)}.brand-wrap{height:72px;padding:0 16px}.brand-icon{width:38px;height:38px;border-radius:13px}.brand-text{font-size:17px;letter-spacing:-.35px;max-width:170px}.sidebar-nav{padding:16px 10px;gap:6px}.nav-link{height:46px;border-radius:13px;padding:0 14px;gap:13px;font-size:14px}.nav-icon{font-size:16px}.sidebar-footer{padding:14px}.topbar{height:64px;padding:0 18px;gap:14px}.sidebar-toggle{width:42px;height:42px;border-radius:12px;font-size:24px}.global-search{height:42px;max-width:470px;border-radius:13px}.topbar-actions{gap:14px}.avatar-small,.avatar-top{width:38px;height:38px}.page-body{padding:18px 20px 26px}.page-head{margin-bottom:14px}.page-head h1{font-size:26px;line-height:1.15}.page-head p{font-size:14px;margin-top:4px}.btn{border-radius:11px;font-weight:800;font-size:13px;padding:.48rem .78rem}.btn-sm{font-size:12px;padding:.32rem .58rem}.card-soft{border-radius:16px}.form-card{padding:18px}.section-title{font-size:17px;margin-bottom:12px}.form-grid,.form-grid-3{gap:11px}.form-label{font-size:13px;margin-bottom:5px}.form-control,.form-select{min-height:40px;border-radius:10px;font-size:13px}.controls{gap:9px;margin-bottom:12px}.control{height:42px;border-radius:11px;padding:0 10px;font-size:13px}.kpis{gap:11px;margin-bottom:12px}.kpi{padding:14px;border-radius:16px;gap:12px}.kpi-ico{width:46px;height:46px;border-radius:15px;font-size:22px}.kpi h3{font-size:13px}.kpi strong{font-size:25px}.calendar-scroll{max-height:calc(100vh - 315px)}.legend{font-size:13px;padding:10px;gap:14px}.badge-soft{font-size:12px;line-height:1.15;display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:7px 10px;font-weight:850}.badge-soft .dot,.legend i{width:10px;height:10px}.table{font-size:13.5px}.table>:not(caption)>*>*{padding:.55rem .55rem}.table th{font-size:13px}.action-stack{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;min-width:190px}.small-actions{display:flex;gap:5px;justify-content:flex-end;flex-wrap:wrap}.page-head .d-flex{flex-wrap:wrap}.page-head .d-flex.gap-2{gap:8px!important}.modal-content{border-radius:16px}.modal-header,.modal-footer{padding:12px 16px}.modal-body{padding:14px 16px}

/* Autos: tarjetas más compactas y sin icono mezclado con foto */
.auto-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:18px;align-items:start}.auto-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}.auto-form-card{position:sticky;top:82px}.auto-card{overflow:hidden}.auto-photo-wrap{height:205px;background:#f8fafc;display:grid;place-items:center;border-bottom:1px solid var(--line);overflow:hidden}.auto-photo{width:100%;height:100%;object-fit:cover;display:block}.no-photo{width:100%;height:100%;display:grid;place-items:center;color:#64748b;font-weight:900;background:linear-gradient(135deg,#edf3ff,#f8fafc)}.auto-fallback{display:none!important}.auto-card .auto-icon{display:none!important}.auto-body{padding:14px!important}.auto-title{font-size:17px;line-height:1.13;margin-bottom:4px}.auto-plate{font-size:13px}.specs{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0}.spec{font-size:11.5px;border-radius:999px;padding:5px 8px;background:#edf4ff;color:#0b48d8;font-weight:850}.auto-use{font-size:13px}.auto-actions{display:flex;gap:7px;flex-wrap:wrap}.compact-form-grid{grid-template-columns:1fr 1fr}.grid-full{grid-column:1/-1}

/* Contrato: formulario más respirable, pero compacto */
.contract-section{padding:16px;border-radius:16px;margin-bottom:12px}.contract-section h3{font-size:16px;margin-bottom:12px}.summary-list{font-size:13px}.summary-row{padding:8px 0}.summary-row strong{font-size:13px}.detail-grid{gap:10px}.detail-item{padding:11px;border-radius:13px}

/* Colores de estados más visibles */
.status-confirmada{background:#dbeafe!important;color:#0b48d8!important;border-color:#2563eb!important}.status-confirmada .dot,.dot-confirmada{background:#2563eb!important}.status-pendiente{background:#fef08a!important;color:#854d0e!important;border-color:#eab308!important}.status-pendiente .dot,.dot-pendiente{background:#eab308!important}.status-entregado{background:#ede9fe!important;color:#5b21b6!important;border-color:#7c3aed!important}.status-entregado .dot,.dot-entregado{background:#7c3aed!important}.status-devuelto,.status-finalizada{background:#dcfce7!important;color:#166534!important;border-color:#16a34a!important}.status-devuelto .dot,.status-finalizada .dot,.dot-devuelto{background:#16a34a!important}.status-cancelada{background:#fee2e2!important;color:#991b1b!important;border-color:#ef4444!important}.status-cancelada .dot,.dot-cancelada{background:#ef4444!important}.status-mantenimiento{background:#ffedd5!important;color:#9a3412!important;border-color:#f97316!important}.status-mantenimiento .dot,.dot-mantenimiento{background:#f97316!important}

@media (max-width:1500px){.sidebar{width:238px}.main-content{margin-left:238px;width:calc(100% - 238px)}.brand-text{font-size:16px;max-width:155px}.page-body{padding:16px}.page-head h1{font-size:25px}.kpi{min-width:190px}.auto-layout{grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:16px}.auto-photo-wrap{height:175px}.auto-grid{gap:14px!important}.calendar-scroll{max-height:calc(100vh - 325px)}}
@media (max-width:1200px){.page-head{flex-direction:column;align-items:stretch}.page-head .btn,.page-head .d-flex{width:auto;align-self:flex-start}.topbar{height:auto;min-height:62px}.controls{grid-template-columns:1fr 1fr}.auto-layout{grid-template-columns:1fr}.auto-form-card{position:static}.auto-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.auto-photo-wrap{height:190px}.table{min-width:900px}.contract-section{padding:14px}}
@media (max-width:992px){.sidebar{width:min(84vw,300px)}.sidebar.mobile-open{transform:translateX(0)}.main-content,.sidebar.collapsed+.main-content{margin-left:0;width:100%}.topbar{padding:10px 14px}.global-search{order:3;flex-basis:100%;max-width:none}.page-body{padding:14px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kpi{min-width:0}.auto-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.auto-photo-wrap{height:165px}.action-stack{justify-content:flex-start;min-width:0}.small-actions{justify-content:flex-start}.form-card{padding:16px}.page-head .btn,.page-head .d-flex{width:100%}.page-head .d-flex .btn{flex:1}.form-grid,.form-grid-3,.compact-form-grid{grid-template-columns:1fr 1fr}.contract-section .form-grid{grid-template-columns:1fr}.table{min-width:820px}}
@media (max-width:768px){body{font-size:13.5px}.topbar-actions{gap:10px}.top-user div{display:none!important}.page-head h1{font-size:23px}.page-head p{font-size:13px}.kpis{grid-template-columns:1fr}.kpi{padding:12px}.kpi-ico{width:42px;height:42px}.kpi strong{font-size:23px}.controls{grid-template-columns:1fr}.auto-grid{grid-template-columns:1fr!important}.auto-photo-wrap{height:185px}.form-grid,.form-grid-3,.compact-form-grid{grid-template-columns:1fr}.card-soft.p-3,.card-soft.p-4{padding:12px!important}.table{font-size:13px;min-width:760px}.calendar-scroll{max-height:64vh}.calendar-grid.week{min-width:780px}.calendar-grid.month{min-width:1120px}.cal-head,.cal-row{grid-template-columns:160px repeat(var(--days),minmax(78px,1fr))}.booking{height:25px;font-size:10.5px}.legend{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap}.legend span{white-space:nowrap}}
@media (max-width:576px){.topbar{padding:9px 10px}.sidebar-toggle{width:40px;height:40px}.global-search{height:40px}.page-body{padding:11px 10px 18px}.page-head h1{font-size:21px}.page-head .d-flex{display:grid!important;grid-template-columns:1fr;gap:8px!important}.btn{width:auto;min-height:38px;padding:.42rem .65rem;font-size:12.5px}.btn-sm{min-height:auto}.auto-photo-wrap{height:165px}.auto-title{font-size:16px}.auto-body{padding:12px!important}.spec{font-size:10.5px;padding:4px 7px}.contract-section{padding:12px}.contract-section h3{font-size:14.5px}.summary-row{display:flex;justify-content:space-between;gap:10px}.summary-row strong{text-align:right}.table{min-width:720px}.modal-footer{display:grid;grid-template-columns:1fr;gap:7px}.modal-footer .btn{width:100%;margin:0!important}}


/* =========================================================
   PATCH V6 - Reservas limpias, autos solo foto, calendario más grande
   ========================================================= */
body{font-size:13.25px}.page-body{padding:14px 18px 22px}.page-head{margin-bottom:10px}.page-head h1{font-size:24px}.page-head p{font-size:13px}.topbar{height:60px}.global-search{height:40px;max-width:520px}.btn{font-size:12.5px;padding:.42rem .68rem}.btn-sm{font-size:11.5px;padding:.28rem .48rem}.card-soft{border-radius:15px}.table{font-size:12.7px}.table>:not(caption)>*>*{padding:.48rem .5rem}.table th{font-size:12.4px;white-space:nowrap}.badge-soft{font-size:11.5px;padding:6px 9px}

/* Reservas: acciones ordenadas en un solo botón desplegable */
.reservas-controls{grid-template-columns:minmax(260px,1fr) 190px auto!important;align-items:center;margin-bottom:10px}.reservas-controls .control{height:40px}.reservas-card{padding:12px!important}.reservas-table td,.reservas-table th{vertical-align:middle}.reservation-detail-link{font-size:13px;line-height:1.25}.table-actions-th,.table-actions-cell{width:112px;min-width:112px}.actions-dropdown{display:flex;justify-content:flex-end}.btn-action-menu{border-radius:999px!important;min-width:92px;box-shadow:0 7px 18px rgba(37,99,235,.18)}.actions-dropdown .dropdown-menu{border:1px solid var(--line);border-radius:14px;padding:7px;min-width:178px}.actions-dropdown .dropdown-item{border-radius:10px;font-size:12.5px;font-weight:800;padding:8px 10px}.actions-dropdown .dropdown-item:hover{background:#eef4ff}.actions-dropdown .dropdown-divider{margin:6px 0}

/* Autos: tarjetas más limpias, solo imagen del carro arriba */
.auto-layout{grid-template-columns:minmax(250px,330px) minmax(0,1fr);gap:14px}.auto-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}.auto-photo-wrap,.auto-photo-wrap.photo-only{height:185px!important;background:#fff!important;display:block!important;position:relative;overflow:hidden;border-bottom:1px solid var(--line)}.auto-photo{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}.auto-photo-wrap .auto-icon,.auto-photo-wrap .auto-fallback,.auto-card .auto-body>.auto-icon,.auto-card .auto-body>.auto-fallback{display:none!important}.no-photo{height:100%!important;display:grid;place-items:center;background:#f8fafc;color:#64748b;font-weight:900}.auto-body{padding:12px!important}.auto-title{font-size:15.5px;line-height:1.15}.auto-plate{font-size:12px}.specs{gap:5px;margin:7px 0}.spec{font-size:10.5px;padding:4px 7px}.auto-use{font-size:12px;margin-bottom:6px!important}.auto-actions{gap:5px;margin-top:9px!important}.auto-form-card .form-control,.auto-form-card .form-select{min-height:38px}.auto-form-card .form-label{font-size:12px}.auto-form-card{top:70px}

/* Calendario: filtros más compactos y calendario ocupando más pantalla */
.calendar-head{align-items:center}.calendar-head h1{font-size:24px}.calendar-head p{font-size:12.5px}.calendar-head .btn-primary{min-width:140px}.calendar-controls{display:grid!important;grid-template-columns:190px 145px 145px minmax(210px,1fr) 165px minmax(230px,1fr) 86px!important;gap:8px!important;margin-bottom:9px!important}.calendar-controls .control{height:38px!important;border-radius:10px!important;padding:0 10px!important;font-size:12px!important}.calendar-controls .control input,.calendar-controls .control select{font-size:12px!important;font-weight:800}.calendar-controls .btn{height:38px;padding:.25rem .6rem}.compact-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:9px}.compact-kpis .kpi{padding:10px 12px;gap:10px;border-radius:14px}.compact-kpis .kpi-ico{width:38px;height:38px;border-radius:13px;font-size:18px}.compact-kpis .kpi h3{font-size:12px;margin-bottom:2px}.compact-kpis .kpi strong{font-size:22px}.compact-kpis .kpi small{font-size:12px}.compact-kpis .bar{height:4px;margin-top:6px}.calendar-big .calendar-toolbar{padding:8px 12px;font-size:12px}.calendar-big .calendar-scroll{max-height:calc(100vh - 255px)!important}.calendar-big .day-cell,.calendar-big .car-head{min-height:50px;padding:8px 9px;font-size:12px}.calendar-big .day-cell small{font-size:11px}.calendar-big .cal-row{min-height:54px}.calendar-big .grid-cell{min-height:54px}.calendar-big .car-cell{padding:7px 10px;gap:9px}.calendar-big .auto-icon{width:40px;height:31px}.calendar-big .car-meta strong{font-size:12px}.calendar-big .car-meta small{font-size:11px}.calendar-big .booking{height:25px;top:14px;font-size:10.7px;padding:0 7px}.calendar-big .legend{padding:8px 10px;font-size:12px;gap:13px}

@media (max-width:1500px){.calendar-controls{grid-template-columns:180px 140px 140px minmax(190px,1fr) 155px minmax(200px,1fr) 80px!important}.compact-kpis .kpi{padding:9px 11px}.auto-photo-wrap{height:165px!important}.calendar-big .calendar-scroll{max-height:calc(100vh - 248px)!important}}
@media (max-width:1200px){.calendar-controls{grid-template-columns:1fr 1fr 1fr!important}.calendar-controls .search-control{grid-column:1/3}.calendar-controls .btn{width:100%}.compact-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.auto-layout{grid-template-columns:1fr}.auto-form-card{position:static}.auto-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.table-actions-th,.table-actions-cell{width:96px;min-width:96px}.btn-action-menu{min-width:86px}}
@media (max-width:992px){.reservas-controls{grid-template-columns:1fr 190px auto!important}.auto-photo-wrap{height:175px!important}.calendar-big .calendar-scroll{max-height:65vh!important}}
@media (max-width:768px){.page-body{padding:11px}.page-head h1,.calendar-head h1{font-size:21px}.reservas-controls,.calendar-controls{grid-template-columns:1fr!important}.reservas-controls .btn,.calendar-controls .btn{width:100%}.compact-kpis{grid-template-columns:1fr}.calendar-head .btn-primary{width:100%}.calendar-big .calendar-toolbar{display:block}.calendar-big .calendar-toolbar span{display:block;margin-bottom:3px}.auto-grid{grid-template-columns:1fr!important}.auto-photo-wrap{height:180px!important}.table-actions-th,.table-actions-cell{width:90px;min-width:90px}.btn-action-menu{font-size:11.5px;min-width:82px;padding:.32rem .45rem}.actions-dropdown .dropdown-menu{min-width:165px}}
@media (max-width:576px){.topbar{min-height:56px}.global-search{height:38px}.auto-photo-wrap{height:160px!important}.reservas-card{padding:9px!important}.calendar-big .calendar-scroll{max-height:66vh!important}.calendar-grid.week{min-width:760px}.calendar-grid.month{min-width:1080px}}

/* =========================================================
   PATCH V7 - Calendario con filtros desplegables y más espacio
   ========================================================= */
.calendar-head-tight{margin-bottom:8px;align-items:center}.calendar-head-tight h1{font-size:24px}.calendar-head-tight p{font-size:12.5px}.calendar-new-btn{min-height:40px;padding:.48rem .9rem;border-radius:12px;white-space:nowrap}.calendar-top-filters{margin-bottom:8px}.calendar-main-toolbar{display:grid;grid-template-columns:minmax(210px,1.1fr) 160px 170px 104px 82px;gap:8px;align-items:center}.date-navigator,.toolbar-select,.toolbar-date{height:40px;border:1px solid #dce6f1;background:#fff;border-radius:12px;display:flex;align-items:center;gap:8px;padding:0 11px;color:#0f172a;box-shadow:0 6px 18px rgba(15,23,42,.035)}.date-navigator strong{font-size:13.5px;white-space:nowrap}.toolbar-icon{font-size:13px;color:#2563eb}.nav-arrow{margin-left:auto;text-decoration:none;font-weight:950;color:#2563eb;font-size:17px;line-height:1}.nav-arrow+.nav-arrow{margin-left:0}.toolbar-select{appearance:auto;font-weight:850;font-size:13px;outline:0}.toolbar-date input{border:0;outline:0;background:transparent;width:100%;font-weight:850;font-size:13px}.btn-filter-toggle,.btn-apply-toolbar{height:40px;border-radius:12px;font-weight:900}.btn-filter-toggle{border:1px solid #dce6f1;background:#fff;color:#0f172a}.btn-filter-toggle span{display:inline-block;margin-left:4px;font-size:11px}.calendar-filter-collapse{margin-top:8px}.compact-filter-panel{display:grid;grid-template-columns:minmax(260px,1fr) 250px 190px 140px auto;gap:8px;align-items:center;padding:8px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 22px rgba(15,23,42,.05)}.compact-filter-panel .control{height:38px;border-radius:10px;font-size:12px}.compact-filter-panel .control input,.compact-filter-panel .control select{font-size:12px;font-weight:800}.compact-filter-panel .btn{height:38px;border-radius:10px;white-space:nowrap}.compact-kpis{margin-bottom:8px!important}.compact-kpis .kpi{padding:8px 10px!important;min-height:72px}.compact-kpis .kpi-ico{width:36px!important;height:36px!important;border-radius:12px!important;font-size:16px!important}.compact-kpis .kpi h3{font-size:11.5px!important;line-height:1.15}.compact-kpis .kpi strong{font-size:20px!important}.compact-kpis .kpi small{font-size:11px!important}.calendar-big .calendar-toolbar{padding:6px 11px!important;min-height:32px}.calendar-big .calendar-scroll{max-height:calc(100vh - 205px)!important}.calendar-big .legend{padding:7px 9px!important}.calendar-big .cal-head,.calendar-big .car-head{z-index:9}.calendar-big .car-cell{z-index:7}.calendar-grid.week{min-width:1060px}.calendar-grid.month{min-width:2100px}.calendar-big .cal-head,.calendar-big .cal-row{grid-template-columns:280px repeat(var(--days),minmax(118px,1fr))}.calendar-big .calendar-grid.month .cal-head,.calendar-big .calendar-grid.month .cal-row{grid-template-columns:280px repeat(var(--days),minmax(54px,1fr))}.calendar-big .car-cell,.calendar-big .grid-cell{min-height:52px}.calendar-big .day-cell,.calendar-big .car-head{min-height:48px}

@media (max-width:1500px){.calendar-main-toolbar{grid-template-columns:minmax(190px,1fr) 145px 155px 96px 76px}.compact-filter-panel{grid-template-columns:minmax(220px,1fr) 220px 175px 130px auto}.calendar-big .calendar-scroll{max-height:calc(100vh - 198px)!important}.calendar-grid.week{min-width:1020px}.calendar-big .cal-head,.calendar-big .cal-row{grid-template-columns:255px repeat(var(--days),minmax(110px,1fr))}.calendar-big .calendar-grid.month .cal-head,.calendar-big .calendar-grid.month .cal-row{grid-template-columns:255px repeat(var(--days),minmax(52px,1fr))}}
@media (max-width:1200px){.calendar-main-toolbar{grid-template-columns:1fr 150px 160px 100px 80px}.compact-filter-panel{grid-template-columns:1fr 1fr 180px 130px}.compact-filter-panel .filter-search{grid-column:1/3}.calendar-big .calendar-scroll{max-height:calc(100vh - 210px)!important}}
@media (max-width:992px){.calendar-head-tight{display:grid;grid-template-columns:1fr auto}.calendar-main-toolbar{grid-template-columns:1fr 1fr 1fr;}.btn-filter-toggle,.btn-apply-toolbar{width:100%}.compact-filter-panel{grid-template-columns:1fr 1fr}.compact-filter-panel .filter-search{grid-column:1/3}.compact-filter-panel .btn{width:100%}.calendar-big .calendar-scroll{max-height:68vh!important}.calendar-grid.week{min-width:900px}.calendar-big .cal-head,.calendar-big .cal-row{grid-template-columns:220px repeat(var(--days),minmax(95px,1fr))}}
@media (max-width:768px){.calendar-head-tight{grid-template-columns:1fr;gap:8px}.calendar-new-btn{width:100%;text-align:center}.calendar-main-toolbar{grid-template-columns:1fr 1fr}.date-navigator{grid-column:1/3}.compact-filter-panel{grid-template-columns:1fr}.compact-filter-panel .filter-search{grid-column:auto}.compact-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.calendar-big .calendar-scroll{max-height:70vh!important}.calendar-big .calendar-toolbar{font-size:11px}.calendar-grid.week{min-width:820px}.calendar-big .cal-head,.calendar-big .cal-row{grid-template-columns:190px repeat(var(--days),minmax(86px,1fr))}.calendar-big .booking{font-size:10.2px}}
@media (max-width:576px){.calendar-main-toolbar{grid-template-columns:1fr}.date-navigator{grid-column:auto}.compact-kpis{grid-template-columns:1fr!important}.calendar-big .calendar-scroll{max-height:72vh!important}.calendar-grid.week{min-width:760px}.calendar-big .cal-head,.calendar-big .cal-row{grid-template-columns:165px repeat(var(--days),minmax(80px,1fr))}.calendar-big .calendar-grid.month .cal-head,.calendar-big .calendar-grid.month .cal-row{grid-template-columns:165px repeat(var(--days),minmax(48px,1fr))}.calendar-big .legend{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap}}

/* =========================================================
   PATCH V8 - Calendario sin scroll vertical interno + iconos claros
   ========================================================= */
.sidebar.collapsed{width:96px}.sidebar.collapsed+.main-content{margin-left:96px;width:calc(100% - 96px)}
.brand-icon{width:46px;height:46px;border-radius:15px}.brand-text{font-size:19px;max-width:205px}.sidebar-nav{padding:18px 12px;gap:10px}.nav-link{height:58px;border-radius:16px;gap:14px;padding:0 15px}.nav-icon{width:32px;height:32px;display:grid;place-items:center;font-size:22px;line-height:1}.nav-icon i{font-size:22px;line-height:1}.sidebar.collapsed .nav-link{justify-content:center;padding:0}.sidebar.collapsed .nav-icon{width:38px;height:38px;font-size:24px}.sidebar.collapsed .nav-icon i{font-size:24px}.notification-icon i{font-size:20px;color:#0f172a}

/* Reserva: formulario más corto, con opcionales escondidos */
.reservation-compact-form .form-card{padding:18px}.reservation-compact-form .section-title{font-size:17px;margin-bottom:14px}.reservation-compact-form .form-label{font-size:12.5px;margin-bottom:5px}.reservation-compact-form .form-control,.reservation-compact-form .form-select{min-height:40px;font-size:13px;border-radius:10px}.reservation-compact-form .form-grid{gap:10px}.optional-toggle{min-height:36px;font-size:12.5px}.optional-box{background:#f8fafc;border:1px solid var(--line);border-radius:14px;padding:12px}

/* Selector de reservas para contrato */
.contract-select-head{margin-bottom:12px}.contract-select-filters{display:grid;grid-template-columns:minmax(260px,1fr) 190px 90px 150px;gap:8px;margin-bottom:12px}.contract-select-filters .control{height:40px;border-radius:11px}.contract-select-filters .btn{border-radius:11px;font-size:13px;font-weight:900}.contract-reservation-list .table{font-size:13px}.contract-reservation-list .table th{white-space:nowrap}.contract-reservation-list .btn-sm{font-size:12px;padding:.35rem .65rem}.contract-form-head{margin-bottom:12px}.contract-summary-sticky{position:sticky;top:92px}

/* Autos: foto limpia, sin icono dentro de tarjetas */
.auto-photo-wrap,.auto-photo-wrap.photo-only{background:#fff!important;height:170px!important;display:block!important;position:relative;overflow:hidden;border-bottom:1px solid var(--line)}
.auto-photo{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;display:block!important;background:#fff!important}.auto-card .auto-icon,.auto-card .auto-fallback,.auto-photo-wrap .auto-icon,.auto-photo-wrap:before,.auto-photo-wrap:after{display:none!important;content:none!important}.no-photo{height:100%!important;display:grid;place-items:center;background:#f8fafc;color:#64748b;font-weight:900;font-size:13px}

/* Calendario: sin barra vertical interna. La página maneja el scroll general */
.calendar-head-tight{margin-bottom:6px!important}.calendar-head-tight h1{font-size:23px!important}.calendar-head-tight p{font-size:12px!important;margin-top:3px!important}.calendar-top-filters{margin-bottom:6px!important}.calendar-main-toolbar{grid-template-columns:minmax(190px,1fr) 150px 155px 88px 76px!important;gap:7px!important}.date-navigator,.toolbar-select,.toolbar-date,.btn-filter-toggle,.btn-apply-toolbar{height:36px!important;min-height:36px!important;border-radius:10px!important;font-size:12px!important}.date-navigator strong,.toolbar-select,.toolbar-date input{font-size:12.5px!important}.compact-kpis{gap:7px!important;margin-bottom:7px!important}.compact-kpis .kpi{min-height:58px!important;padding:7px 9px!important;border-radius:13px!important}.compact-kpis .kpi-ico{width:32px!important;height:32px!important;border-radius:10px!important}.compact-kpis .kpi h3{font-size:10.8px!important}.compact-kpis .kpi strong{font-size:18px!important}.compact-kpis .bar{height:4px!important;margin-top:5px!important}.calendar-big .calendar-toolbar{min-height:26px!important;padding:4px 10px!important;font-size:11.5px!important}.calendar-big .calendar-toolbar span:first-child{display:none}.calendar-big .calendar-scroll{max-height:none!important;overflow-y:visible!important;overflow-x:auto!important;scrollbar-width:thin}.calendar-big .calendar-scroll::-webkit-scrollbar{height:10px;width:0}.calendar-grid.week{min-width:0!important;width:100%!important}.calendar-big .calendar-grid.week .cal-head,.calendar-big .calendar-grid.week .cal-row{grid-template-columns:230px repeat(var(--days),minmax(92px,1fr))!important}.calendar-big .day-cell,.calendar-big .car-head{min-height:42px!important;padding:6px 8px!important;font-size:12px!important}.calendar-big .day-cell small{font-size:10.5px!important}.calendar-big .car-cell,.calendar-big .grid-cell{min-height:47px!important}.calendar-big .car-cell{padding:6px 9px!important;gap:8px!important}.calendar-big .auto-icon{width:34px!important;height:27px!important;border-radius:9px!important}.calendar-big .auto-icon:before{width:24px!important;height:11px!important;border-width:3px!important}.calendar-big .auto-icon:after{bottom:5px!important;left:9px!important;width:5px!important;height:5px!important;box-shadow:15px 0 0 #2563eb!important}.calendar-big .car-meta strong{font-size:11.5px!important}.calendar-big .car-meta small{font-size:10.5px!important}.calendar-big .booking{height:22px!important;top:12px!important;font-size:10px!important;padding:0 6px!important;gap:5px!important;border-width:1.5px!important}.calendar-big .booking .dot{width:7px!important;height:7px!important}.calendar-big .legend{padding:6px 8px!important;gap:12px!important;font-size:11.5px!important}.calendar-big .legend i{width:9px!important;height:9px!important}.calendar-grid.month{min-width:1900px!important}.calendar-big .calendar-grid.month .cal-head,.calendar-big .calendar-grid.month .cal-row{grid-template-columns:230px repeat(var(--days),minmax(48px,1fr))!important}

@media (max-width:1400px){.calendar-big .calendar-grid.week .cal-head,.calendar-big .calendar-grid.week .cal-row{grid-template-columns:205px repeat(var(--days),minmax(82px,1fr))!important}.calendar-big .car-meta strong{font-size:11px!important}.calendar-big .booking{font-size:9.5px!important}.compact-kpis .kpi small{font-size:10px!important}.calendar-main-toolbar{grid-template-columns:minmax(175px,1fr) 140px 145px 82px 72px!important}.auto-photo-wrap,.auto-photo-wrap.photo-only{height:155px!important}}
@media (max-width:1200px){.calendar-main-toolbar{grid-template-columns:1fr 145px 150px 85px 75px!important}.compact-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}.calendar-big .calendar-grid.week .cal-head,.calendar-big .calendar-grid.week .cal-row{grid-template-columns:185px repeat(var(--days),minmax(72px,1fr))!important}.calendar-big .auto-icon{display:none!important}.contract-select-filters{grid-template-columns:1fr 180px 85px 145px}}
@media (max-width:992px){.nav-icon,.nav-icon i{font-size:24px}.calendar-main-toolbar{grid-template-columns:1fr 1fr 1fr!important}.btn-filter-toggle,.btn-apply-toolbar{width:100%}.compact-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.calendar-grid.week{min-width:780px!important}.calendar-big .calendar-scroll{overflow-x:auto!important}.calendar-big .calendar-grid.week .cal-head,.calendar-big .calendar-grid.week .cal-row{grid-template-columns:170px repeat(var(--days),minmax(82px,1fr))!important}.contract-select-filters{grid-template-columns:1fr 1fr}.contract-select-filters .search-control{grid-column:1/3}.contract-select-filters .btn{width:100%}.contract-summary-sticky{position:static}.auto-photo-wrap,.auto-photo-wrap.photo-only{height:165px!important}}
@media (max-width:768px){.calendar-head-tight h1{font-size:21px!important}.calendar-new-btn{width:100%;text-align:center}.calendar-main-toolbar{grid-template-columns:1fr 1fr!important}.date-navigator{grid-column:1/3}.compact-kpis{grid-template-columns:1fr 1fr!important}.calendar-grid.week{min-width:760px!important}.contract-select-filters{grid-template-columns:1fr}.contract-select-filters .search-control{grid-column:auto}.reservation-compact-form .form-grid{grid-template-columns:1fr}.auto-photo-wrap,.auto-photo-wrap.photo-only{height:160px!important}}
@media (max-width:576px){.sidebar{width:280px}.calendar-main-toolbar{grid-template-columns:1fr!important}.date-navigator{grid-column:auto}.compact-kpis{grid-template-columns:1fr!important}.calendar-grid.week{min-width:720px!important}.calendar-big .calendar-grid.week .cal-head,.calendar-big .calendar-grid.week .cal-row{grid-template-columns:150px repeat(var(--days),minmax(78px,1fr))!important}.calendar-big .legend{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap}.auto-photo-wrap,.auto-photo-wrap.photo-only{height:145px!important}}

/* =========================================================
   PATCH V9 - Contrato completo actualizado + descargas dobles
   ========================================================= */
.contract-full-form{max-width:1180px;margin:0 auto}.compact-contract-section{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:16px;margin-bottom:14px}.compact-contract-section h3{font-size:18px;font-weight:950;letter-spacing:-.2px;margin:0 0 14px;color:#0f172a}.form-grid{display:grid;gap:12px}.form-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-span-2{grid-column:span 2}.grid-span-3{grid-column:1/-1}.form-hint{font-size:12px;color:#64748b;margin-top:5px}.contract-full-form .form-label{font-size:12.5px;font-weight:850;color:#1e293b;margin-bottom:5px}.contract-full-form .form-control,.contract-full-form .form-select{min-height:40px;border-radius:11px;border:1px solid #d8e3ef;background:#fff;font-size:13.5px;font-weight:650;color:#0f172a}.contract-full-form textarea.form-control{min-height:58px}.contract-full-form .form-control[readonly],.contract-full-form textarea[readonly]{background:#f1f6fc;color:#334155}.contract-form-head h1{font-size:28px}.contract-form-head p{font-size:14px}.contract-select-filters{display:grid;grid-template-columns:minmax(280px,1fr) 190px 95px 165px;gap:8px;margin-bottom:12px}.contract-select-filters .control{height:42px}.contract-select-filters .btn{min-height:42px}.contract-reservation-list .table{font-size:13px}.contract-table{font-size:13px}.contract-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}.contract-actions .btn{border-radius:10px;font-size:12px;padding:.34rem .58rem}.contract-download-card{max-width:760px}.contract-download-card .summary-row{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:9px 0;gap:14px}.contract-download-card .summary-row span{color:#64748b}.contract-download-card .summary-row strong{text-align:right}
@media (max-width:992px){.form-grid-2,.form-grid-3{grid-template-columns:1fr}.grid-span-2,.grid-span-3{grid-column:auto}.contract-select-filters{grid-template-columns:1fr 1fr}.contract-select-filters .search-control{grid-column:1/3}.contract-select-filters .btn{width:100%}.contract-form-head{align-items:stretch}.contract-form-head>div:last-child{justify-content:flex-start!important}.contract-full-form{max-width:100%}.compact-contract-section{padding:14px}.contract-actions{justify-content:flex-start}}
@media (max-width:576px){.contract-select-filters{grid-template-columns:1fr}.contract-select-filters .search-control{grid-column:auto}.contract-form-head h1{font-size:22px}.compact-contract-section h3{font-size:16px}.contract-full-form .form-control,.contract-full-form .form-select{font-size:13px}.contract-actions .btn{width:100%}}

/* =========================================================
   PATCH V10 - Contrato premium limpio sin textos de variables
   ========================================================= */
.premium-contract-head{
  background:linear-gradient(135deg,#ffffff 0%,#f7fbff 55%,#eef5ff 100%);
  border:1px solid #dfeaf7;
  border-radius:20px;
  box-shadow:0 18px 45px rgba(15,23,42,.08);
  padding:18px 20px;
  margin-bottom:12px;
}
.premium-contract-head .eyebrow{
  display:inline-flex;align-items:center;gap:7px;
  padding:5px 10px;border-radius:999px;
  background:#eaf2ff;color:#1454d7;font-size:12px;font-weight:900;
  margin-bottom:6px;
}
.premium-contract-head h1{font-size:25px!important;margin-bottom:3px!important;letter-spacing:-.6px;}
.premium-contract-head p{font-size:13px!important;margin:0;color:#64748b;}
.premium-contract-progress{
  max-width:1180px;margin:0 auto 12px;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;
}
.premium-contract-progress>div{
  display:flex;align-items:center;gap:8px;
  min-height:42px;padding:8px 11px;border-radius:14px;
  border:1px solid #dfeaf7;background:#fff;color:#64748b;
  box-shadow:0 10px 25px rgba(15,23,42,.05);
  font-size:12px;font-weight:900;
}
.premium-contract-progress span{
  width:24px;height:24px;border-radius:9px;display:grid;place-items:center;
  background:#eef4ff;color:#1d4ed8;font-size:12px;font-weight:950;
}
.premium-contract-progress .active{color:#0f172a;border-color:#bdd4ff;background:linear-gradient(180deg,#fff,#f7fbff);}
.premium-contract-progress .active span{background:#2563eb;color:#fff;box-shadow:0 8px 16px rgba(37,99,235,.25);}
.premium-contract-card{
  border:1px solid #dce8f6!important;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%)!important;
  box-shadow:0 16px 40px rgba(15,23,42,.07)!important;
  border-radius:20px!important;
  padding:18px!important;
  position:relative;overflow:hidden;
}
.premium-contract-card:before{
  content:"";position:absolute;left:0;top:0;width:100%;height:4px;
  background:linear-gradient(90deg,#2563eb,#38bdf8,#22c55e);
}
.contract-card-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px;}
.contract-card-title .step-dot{
  flex:0 0 34px;width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  background:#2563eb;color:#fff;font-size:14px;font-weight:950;
  box-shadow:0 10px 18px rgba(37,99,235,.25);
}
.contract-card-title h3{font-size:17px!important;margin:0 0 2px!important;letter-spacing:-.2px;color:#0f172a;}
.contract-card-title p{font-size:12.5px;color:#64748b;margin:0;line-height:1.35;}
.contract-full-form .form-label{font-size:12px!important;color:#1f2b3d!important;font-weight:900!important;}
.contract-full-form .form-control,.contract-full-form .form-select{
  min-height:38px!important;border-radius:11px!important;
  border-color:#d7e3f2!important;background:#fff!important;
  font-size:13px!important;font-weight:650!important;
  box-shadow:0 1px 0 rgba(15,23,42,.02);
}
.contract-full-form .form-control:focus,.contract-full-form .form-select:focus{
  border-color:#2563eb!important;box-shadow:0 0 0 .18rem rgba(37,99,235,.13)!important;
}
.contract-full-form .form-control[readonly],.contract-full-form textarea[readonly]{
  background:#f2f7fd!important;color:#334155!important;border-style:dashed!important;
}
.contract-full-form textarea.form-control{min-height:56px!important;resize:vertical;}
.contract-full-form .form-hint{font-size:11.5px!important;color:#64748b!important;margin-top:4px!important;}
.payment-card .form-control[readonly],.payment-card textarea[readonly]{font-weight:800;color:#0f172a!important;}
.calc-note{
  display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:14px;
  background:#eef6ff;border:1px solid #dbeafe;color:#334155;font-size:12px;margin-bottom:13px;
}
.calc-note i{font-size:17px;color:#2563eb;margin-top:1px;}
.premium-contract-actions{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  background:linear-gradient(135deg,#0f172a,#10243d)!important;
  color:#fff;border-radius:20px!important;border:1px solid rgba(255,255,255,.1)!important;
  box-shadow:0 18px 40px rgba(15,23,42,.14)!important;
}
.premium-contract-actions strong{font-size:16px;display:block;margin-bottom:2px;}
.premium-contract-actions p{margin:0;color:#cbd5e1;font-size:12.5px;}
.premium-contract-actions .btn-light{background:#1e3a5f;color:#fff;border-color:#315174;}
.premium-contract-actions .btn-primary{box-shadow:0 12px 22px rgba(37,99,235,.32);}
.contract-download-card{border-radius:20px!important;box-shadow:0 18px 45px rgba(15,23,42,.08)!important;border:1px solid #dce8f6!important;}
@media (max-width:992px){
  .premium-contract-progress{grid-template-columns:repeat(2,minmax(0,1fr));}
  .premium-contract-head{padding:15px;}
  .premium-contract-actions{align-items:flex-start;flex-direction:column;}
  .premium-contract-actions>div:last-child{width:100%;justify-content:flex-start!important;}
}
@media (max-width:576px){
  .premium-contract-progress{grid-template-columns:1fr;}
  .premium-contract-card{padding:14px!important;border-radius:16px!important;}
  .contract-card-title .step-dot{width:30px;height:30px;flex-basis:30px;}
  .contract-card-title h3{font-size:15.5px!important;}
  .premium-contract-head h1{font-size:21px!important;}
}

/* =========================================================
   PATCH V12 - Notificaciones web + cPanel
   ========================================================= */
.notification-trigger{
  border:0;
  background:transparent;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  color:#0f172a;
  cursor:pointer;
  transition:.18s ease;
}
.notification-trigger:hover,
.notification-trigger.show{
  background:#eef4ff;
  color:#2563eb;
}
.notification-menu{
  width:min(420px, calc(100vw - 28px));
  border:1px solid #dce6f1;
  border-radius:18px;
  padding:0;
  overflow:hidden;
}
.notification-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:14px 14px 12px;
  border-bottom:1px solid #e5edf6;
  background:linear-gradient(135deg,#ffffff,#f5f8ff);
}
.notification-head strong{display:block;font-size:15px;font-weight:950;color:#0f172a;}
.notification-head small{display:block;font-size:12px;color:#64748b;margin-top:2px;}
.notification-head .btn{white-space:nowrap;border-radius:10px;font-size:11.5px;font-weight:900;padding:.32rem .55rem;}
.notification-list{max-height:360px;overflow:auto;background:#fff;}
.notification-empty{padding:18px 14px;color:#64748b;font-weight:750;text-align:center;}
.notification-item{
  display:flex;
  gap:10px;
  padding:12px 14px;
  border-bottom:1px solid #eef3f8;
  text-decoration:none;
  color:#0f172a;
}
.notification-item:hover{background:#f8fbff;color:#0f172a;}
.notification-pill{
  width:34px;height:34px;border-radius:12px;display:grid;place-items:center;flex:0 0 auto;font-size:16px;font-weight:900;
}
.notification-item.is-hoy .notification-pill{background:#fee2e2;color:#dc2626;}
.notification-item.is-manana .notification-pill{background:#ffedd5;color:#ea580c;}
.notification-item.is-dos_dias .notification-pill{background:#dbeafe;color:#2563eb;}
.notification-content{min-width:0;flex:1;}
.notification-title{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:3px;}
.notification-title strong{font-size:13px;font-weight:950;}
.notification-title span{font-size:11px;font-weight:900;border-radius:999px;padding:2px 7px;}
.notification-item.is-hoy .notification-title span{background:#fee2e2;color:#991b1b;}
.notification-item.is-manana .notification-title span{background:#ffedd5;color:#9a3412;}
.notification-item.is-dos_dias .notification-title span{background:#dbeafe;color:#1d4ed8;}
.notification-content p{margin:0;font-size:12.5px;line-height:1.35;color:#334155;font-weight:750;}
.notification-content small{display:block;margin-top:3px;color:#64748b;font-size:11.5px;}
.notification-footer{padding:10px 14px;background:#f8fbff;border-top:1px solid #e5edf6;text-align:center;}
.notification-footer a{font-weight:900;color:#2563eb;text-decoration:none;font-size:13px;}
.notification-footer a:hover{text-decoration:underline;}
.notification-status-line{font-size:11.5px;color:#64748b;margin-top:6px;}
@media (max-width:576px){
  .notification-menu{width:calc(100vw - 18px);}
  .notification-head{align-items:stretch;flex-direction:column;}
  .notification-head .btn{width:100%;}
}


/* =========================================================
   PATCH V14 - Sidebar responsive para zoom y pantallas bajas
   ========================================================= */
.sidebar{height:100vh;height:100dvh;overflow:hidden;}
.sidebar-nav{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding-bottom:10px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.35) transparent;}
.sidebar-nav::-webkit-scrollbar{width:8px;}
.sidebar-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.28);border-radius:20px;}
.sidebar-footer{flex:0 0 auto;background:rgba(6,18,37,.98);position:relative;z-index:2;}
@media (max-height:760px){
  .brand-wrap{height:72px;padding:0 16px;}
  .sidebar-nav{padding-top:12px;gap:6px;}
  .nav-link{height:46px;border-radius:12px;font-size:14px;}
  .sidebar-footer{padding:12px 14px;}
  .avatar-small{width:34px;height:34px;}
  .logout-link{margin-top:8px;}
}
@media (max-height:640px){
  .brand-text{font-size:17px;}
  .nav-link{height:42px;}
  .admin-mini small{display:none;}
}
@media (max-width:992px){
  .sidebar{height:100vh;height:100dvh;}
  .sidebar.mobile-open{overflow:hidden;}
  .sidebar.mobile-open .sidebar-nav{overflow-y:auto;}
}


/* =========================================================
   MODO OSCURO MANUAL - GREEN ROUTE
   ========================================================= */

.theme-toggle-btn {
  width: 100%;
  margin-top: 12px;
  border: 1px solid rgba(147, 197, 253, .35);
  background: rgba(37, 99, 235, .12);
  color: #dbeafe;
  border-radius: 14px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 13px;
  font-weight: 850;
  transition: .2s ease;
}

.theme-toggle-btn:hover {
  background: rgba(37, 99, 235, .22);
  color: #fff;
}

.sidebar.collapsed .theme-toggle-btn span {
  display: none;
}

.sidebar.collapsed .theme-toggle-btn {
  justify-content: center;
  padding: 0;
}

html.dark-mode body,
body.dark-mode {
  --bg: #07111f;
  --card: #0b1d35;
  --text: #e5efff;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, .22);
  --shadow: 0 14px 38px rgba(0,0,0,.32);
  background: var(--bg) !important;
  color: var(--text) !important;
}

html.dark-mode .main-content,
body.dark-mode .main-content,
html.dark-mode .page-body,
body.dark-mode .page-body {
  background: var(--bg) !important;
  color: var(--text) !important;
}

html.dark-mode .topbar,
body.dark-mode .topbar,
html.dark-mode .calendar-card,
body.dark-mode .calendar-card,
html.dark-mode .card-soft,
body.dark-mode .card-soft,
html.dark-mode .kpi,
body.dark-mode .kpi,
html.dark-mode .form-card,
body.dark-mode .form-card,
html.dark-mode .card,
body.dark-mode .card,
html.dark-mode .modal-content,
body.dark-mode .modal-content,
html.dark-mode .dropdown-menu,
body.dark-mode .dropdown-menu,
html.dark-mode .notification-menu,
body.dark-mode .notification-menu {
  background: var(--card) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}

html.dark-mode .page-head h1,
body.dark-mode .page-head h1,
html.dark-mode h1,
body.dark-mode h1,
html.dark-mode h2,
body.dark-mode h2,
html.dark-mode h3,
body.dark-mode h3,
html.dark-mode h4,
body.dark-mode h4,
html.dark-mode h5,
body.dark-mode h5,
html.dark-mode strong,
body.dark-mode strong,
html.dark-mode label,
body.dark-mode label,
html.dark-mode .form-label,
body.dark-mode .form-label {
  color: var(--text) !important;
}

html.dark-mode .page-head p,
body.dark-mode .page-head p,
html.dark-mode small,
body.dark-mode small,
html.dark-mode .text-muted,
body.dark-mode .text-muted,
html.dark-mode .kpi small,
body.dark-mode .kpi small,
html.dark-mode .kpi h3,
body.dark-mode .kpi h3,
html.dark-mode .car-meta small,
body.dark-mode .car-meta small,
html.dark-mode .notification-content small,
body.dark-mode .notification-content small {
  color: var(--muted) !important;
}

html.dark-mode .global-search,
body.dark-mode .global-search,
html.dark-mode .control,
body.dark-mode .control,
html.dark-mode .form-control,
body.dark-mode .form-control,
html.dark-mode .form-select,
body.dark-mode .form-select,
html.dark-mode textarea,
body.dark-mode textarea,
html.dark-mode input,
body.dark-mode input,
html.dark-mode select,
body.dark-mode select {
  background: #081827 !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}

html.dark-mode .global-search input::placeholder,
body.dark-mode .global-search input::placeholder,
html.dark-mode input::placeholder,
body.dark-mode input::placeholder,
html.dark-mode textarea::placeholder,
body.dark-mode textarea::placeholder {
  color: #64748b !important;
}

html.dark-mode .sidebar-toggle,
body.dark-mode .sidebar-toggle {
  background: #081827 !important;
  color: #e5efff !important;
  border-color: rgba(226, 232, 240, .35) !important;
}

html.dark-mode .cal-head,
body.dark-mode .cal-head,
html.dark-mode .car-head,
body.dark-mode .car-head,
html.dark-mode .car-cell,
body.dark-mode .car-cell,
html.dark-mode .grid-cell,
body.dark-mode .grid-cell,
html.dark-mode .day-cell,
body.dark-mode .day-cell {
  background: var(--card) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}

html.dark-mode .today-col,
body.dark-mode .today-col,
html.dark-mode .day-cell.today,
body.dark-mode .day-cell.today {
  background: rgba(37, 99, 235, .18) !important;
}

html.dark-mode .calendar-toolbar,
body.dark-mode .calendar-toolbar,
html.dark-mode .legend,
body.dark-mode .legend,
html.dark-mode .notification-footer,
body.dark-mode .notification-footer,
html.dark-mode .notification-head,
body.dark-mode .notification-head {
  background: #081827 !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}

html.dark-mode .table,
body.dark-mode .table {
  --bs-table-bg: var(--card);
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--line);
  color: var(--text) !important;
  border-color: var(--line) !important;
}

html.dark-mode .table > :not(caption) > * > *,
body.dark-mode .table > :not(caption) > * > * {
  background: var(--card) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}

html.dark-mode .btn-light,
body.dark-mode .btn-light {
  background: #10243d !important;
  border-color: rgba(148, 163, 184, .25) !important;
  color: #e5efff !important;
}

html.dark-mode .modal-header,
body.dark-mode .modal-header,
html.dark-mode .modal-footer,
body.dark-mode .modal-footer {
  border-color: var(--line) !important;
}

html.dark-mode .detail-item,
body.dark-mode .detail-item {
  background: #081827 !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}

html.dark-mode .notification-item,
body.dark-mode .notification-item {
  background: var(--card) !important;
  border-color: var(--line) !important;
}

html.dark-mode .notification-item:hover,
body.dark-mode .notification-item:hover {
  background: #10243d !important;
}

html.dark-mode .notification-content p,
body.dark-mode .notification-content p {
  color: var(--text) !important;
}

html.dark-mode .avatar-top,
body.dark-mode .avatar-top,
html.dark-mode .avatar-small,
body.dark-mode .avatar-small {
  background: #e5efff !important;
  color: #071426 !important;
}


/* =========================================================
   FIX FINAL MODO OSCURO - CALENDARIO / ESTADOS / ICONOS
   GREEN ROUTE
   Pegar al FINAL de assets/css/style.css
   ========================================================= */

html.dark-mode,
html.dark-mode body,
body.dark-mode {
  background: #07111f !important;
  color: #eaf2ff !important;
}

/* Fondo general */
html.dark-mode .main-content,
html.dark-mode .page-body,
html.dark-mode .content,
html.dark-mode .dashboard-content,
html.dark-mode .calendar-page,
body.dark-mode .main-content,
body.dark-mode .page-body,
body.dark-mode .content,
body.dark-mode .dashboard-content,
body.dark-mode .calendar-page {
  background: #07111f !important;
  color: #eaf2ff !important;
}

/* Topbar */
html.dark-mode .topbar,
body.dark-mode .topbar {
  background: #0b1d35 !important;
  border-bottom: 1px solid rgba(148, 163, 184, .22) !important;
  color: #eaf2ff !important;
}

/* Buscador superior */
html.dark-mode .global-search,
body.dark-mode .global-search {
  background: #071827 !important;
  border: 1px solid rgba(148, 163, 184, .30) !important;
  color: #eaf2ff !important;
}

html.dark-mode .global-search input,
body.dark-mode .global-search input {
  background: transparent !important;
  color: #eaf2ff !important;
}

html.dark-mode .global-search input::placeholder,
body.dark-mode .global-search input::placeholder {
  color: #8aa4c6 !important;
}

html.dark-mode .global-search span,
html.dark-mode .global-search i,
body.dark-mode .global-search span,
body.dark-mode .global-search i {
  color: #dbeafe !important;
}

/* Botón hamburguesa */
html.dark-mode .sidebar-toggle,
body.dark-mode .sidebar-toggle {
  background: #071827 !important;
  border: 1px solid rgba(191, 219, 254, .35) !important;
  color: #dbeafe !important;
}

/* Textos generales */
html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6,
html.dark-mode .page-title,
html.dark-mode .page-head h1,
html.dark-mode .section-title,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .page-title,
body.dark-mode .page-head h1,
body.dark-mode .section-title {
  color: #ffffff !important;
  text-shadow: none !important;
}

html.dark-mode p,
html.dark-mode small,
html.dark-mode .text-muted,
html.dark-mode .page-head p,
html.dark-mode .subtitle,
body.dark-mode p,
body.dark-mode small,
body.dark-mode .text-muted,
body.dark-mode .page-head p,
body.dark-mode .subtitle {
  color: #b9c9df !important;
}

/* Cards y cajas */
html.dark-mode .card,
html.dark-mode .card-soft,
html.dark-mode .panel,
html.dark-mode .box,
html.dark-mode .kpi,
html.dark-mode .metric-card,
html.dark-mode .calendar-card,
html.dark-mode .form-card,
html.dark-mode .table-card,
body.dark-mode .card,
body.dark-mode .card-soft,
body.dark-mode .panel,
body.dark-mode .box,
body.dark-mode .kpi,
body.dark-mode .metric-card,
body.dark-mode .calendar-card,
body.dark-mode .form-card,
body.dark-mode .table-card {
  background: #0b1d35 !important;
  border: 1px solid rgba(148, 163, 184, .24) !important;
  color: #eaf2ff !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .28) !important;
}

/* KPIs superiores: iconos que no se ven */
html.dark-mode .kpi .icon,
html.dark-mode .kpi-icon,
html.dark-mode .metric-icon,
html.dark-mode .stat-icon,
html.dark-mode .dashboard-card-icon,
body.dark-mode .kpi .icon,
body.dark-mode .kpi-icon,
body.dark-mode .metric-icon,
body.dark-mode .stat-icon,
body.dark-mode .dashboard-card-icon {
  background: rgba(219, 234, 254, .14) !important;
  color: #dbeafe !important;
  border: 1px solid rgba(191, 219, 254, .26) !important;
}

html.dark-mode .kpi i,
html.dark-mode .metric-card i,
html.dark-mode .stat-card i,
html.dark-mode .bi,
body.dark-mode .kpi i,
body.dark-mode .metric-card i,
body.dark-mode .stat-card i,
body.dark-mode .bi {
  color: #dbeafe;
}

/* Excepción: iconos de colores por estado */
html.dark-mode .text-success,
body.dark-mode .text-success {
  color: #22c55e !important;
}

html.dark-mode .text-primary,
body.dark-mode .text-primary {
  color: #60a5fa !important;
}

html.dark-mode .text-warning,
body.dark-mode .text-warning {
  color: #fbbf24 !important;
}

html.dark-mode .text-danger,
body.dark-mode .text-danger {
  color: #fb7185 !important;
}

/* Formularios, selects, inputs y fecha arriba del calendario */
html.dark-mode input,
html.dark-mode select,
html.dark-mode textarea,
html.dark-mode .form-control,
html.dark-mode .form-select,
html.dark-mode .control,
html.dark-mode .filter-control,
html.dark-mode .date-control,
html.dark-mode .calendar-range,
html.dark-mode .calendar-filter,
html.dark-mode .flatpickr-input,
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .control,
body.dark-mode .filter-control,
body.dark-mode .date-control,
body.dark-mode .calendar-range,
body.dark-mode .calendar-filter,
body.dark-mode .flatpickr-input {
  background: #071827 !important;
  color: #f8fbff !important;
  border: 1px solid rgba(191, 219, 254, .30) !important;
  box-shadow: none !important;
}

html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder,
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #8aa4c6 !important;
}

/* Botones de calendario: semana, filtros, aplicar */
html.dark-mode .calendar-toolbar,
html.dark-mode .toolbar,
html.dark-mode .filters-bar,
body.dark-mode .calendar-toolbar,
body.dark-mode .toolbar,
body.dark-mode .filters-bar {
  background: transparent !important;
  color: #eaf2ff !important;
}

html.dark-mode .calendar-toolbar .btn,
html.dark-mode .filters-bar .btn,
html.dark-mode .btn-outline-primary,
html.dark-mode .btn-light,
body.dark-mode .calendar-toolbar .btn,
body.dark-mode .filters-bar .btn,
body.dark-mode .btn-outline-primary,
body.dark-mode .btn-light {
  background: #0b1d35 !important;
  color: #eaf2ff !important;
  border: 1px solid rgba(191, 219, 254, .30) !important;
}

html.dark-mode .calendar-toolbar .btn:hover,
html.dark-mode .filters-bar .btn:hover,
html.dark-mode .btn-outline-primary:hover,
html.dark-mode .btn-light:hover,
body.dark-mode .calendar-toolbar .btn:hover,
body.dark-mode .filters-bar .btn:hover,
body.dark-mode .btn-outline-primary:hover,
body.dark-mode .btn-light:hover {
  background: #12345e !important;
  color: #ffffff !important;
}

/* Calendario tabla */
html.dark-mode .calendar-grid,
html.dark-mode .calendar-table,
html.dark-mode .calendar-board,
html.dark-mode .schedule-grid,
body.dark-mode .calendar-grid,
body.dark-mode .calendar-table,
body.dark-mode .calendar-board,
body.dark-mode .schedule-grid {
  background: #071827 !important;
  border: 1px solid rgba(148, 163, 184, .25) !important;
  color: #eaf2ff !important;
}

html.dark-mode .cal-head,
html.dark-mode .calendar-head,
html.dark-mode .calendar-header,
html.dark-mode .grid-head,
html.dark-mode .car-head,
body.dark-mode .cal-head,
body.dark-mode .calendar-head,
body.dark-mode .calendar-header,
body.dark-mode .grid-head,
body.dark-mode .car-head {
  background: #0b1d35 !important;
  color: #ffffff !important;
  border-color: rgba(148, 163, 184, .25) !important;
}

/* Celdas del calendario */
html.dark-mode .grid-cell,
html.dark-mode .calendar-cell,
html.dark-mode .day-cell,
html.dark-mode .car-cell,
html.dark-mode td,
html.dark-mode th,
body.dark-mode .grid-cell,
body.dark-mode .calendar-cell,
body.dark-mode .day-cell,
body.dark-mode .car-cell,
body.dark-mode td,
body.dark-mode th {
  background-color: #0b1d35 !important;
  color: #eaf2ff !important;
  border-color: rgba(148, 163, 184, .22) !important;
}

/* Columna del día actual */
html.dark-mode .today-col,
html.dark-mode .today,
html.dark-mode .is-today,
body.dark-mode .today-col,
body.dark-mode .today,
body.dark-mode .is-today {
  background: rgba(37, 99, 235, .22) !important;
  color: #ffffff !important;
}

/* Encabezado del día actual */
html.dark-mode .today-col .day-pill,
html.dark-mode .is-today .day-pill,
html.dark-mode .day-pill.active,
body.dark-mode .today-col .day-pill,
body.dark-mode .is-today .day-pill,
body.dark-mode .day-pill.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .35) !important;
}

/* Autos en calendario */
html.dark-mode .auto-name,
html.dark-mode .car-name,
html.dark-mode .vehicle-name,
body.dark-mode .auto-name,
body.dark-mode .car-name,
body.dark-mode .vehicle-name {
  color: #ffffff !important;
}

html.dark-mode .auto-meta,
html.dark-mode .car-meta,
html.dark-mode .vehicle-meta,
body.dark-mode .auto-meta,
body.dark-mode .car-meta,
body.dark-mode .vehicle-meta {
  color: #b9c9df !important;
}

/* Iconos de auto que se veían apagados */
html.dark-mode .car-icon,
html.dark-mode .auto-icon,
html.dark-mode .vehicle-icon,
body.dark-mode .car-icon,
body.dark-mode .auto-icon,
body.dark-mode .vehicle-icon {
  background: #dbeafe !important;
  color: #2563eb !important;
  border: 1px solid rgba(96, 165, 250, .40) !important;
}

html.dark-mode .car-icon i,
html.dark-mode .auto-icon i,
html.dark-mode .vehicle-icon i,
body.dark-mode .car-icon i,
body.dark-mode .auto-icon i,
body.dark-mode .vehicle-icon i {
  color: #2563eb !important;
}

/* =========================================================
   ESTADOS: CONFIRMADA / PENDIENTE / ENTREGADO / DEVUELTO
   CANCELADA / MANTENIMIENTO
   ========================================================= */

/* Badge base */
html.dark-mode .badge,
html.dark-mode .status-badge,
html.dark-mode .estado-badge,
html.dark-mode .reserva-badge,
html.dark-mode .reservation-status,
body.dark-mode .badge,
body.dark-mode .status-badge,
body.dark-mode .estado-badge,
body.dark-mode .reserva-badge,
body.dark-mode .reservation-status {
  border-radius: 999px !important;
  font-weight: 900 !important;
  border: 1px solid transparent !important;
  text-shadow: none !important;
}

/* Confirmada */
html.dark-mode .confirmada,
html.dark-mode .estado-confirmada,
html.dark-mode .status-confirmada,
html.dark-mode .badge-confirmada,
html.dark-mode [class*="confirmada"],
body.dark-mode .confirmada,
body.dark-mode .estado-confirmada,
body.dark-mode .status-confirmada,
body.dark-mode .badge-confirmada,
body.dark-mode [class*="confirmada"] {
  background: rgba(37, 99, 235, .22) !important;
  color: #dbeafe !important;
  border-color: #3b82f6 !important;
}

/* Pendiente */
html.dark-mode .pendiente,
html.dark-mode .estado-pendiente,
html.dark-mode .status-pendiente,
html.dark-mode .badge-pendiente,
html.dark-mode [class*="pendiente"],
body.dark-mode .pendiente,
body.dark-mode .estado-pendiente,
body.dark-mode .status-pendiente,
body.dark-mode .badge-pendiente,
body.dark-mode [class*="pendiente"] {
  background: rgba(234, 179, 8, .22) !important;
  color: #fef3c7 !important;
  border-color: #eab308 !important;
}

/* Entregado */
html.dark-mode .entregado,
html.dark-mode .estado-entregado,
html.dark-mode .status-entregado,
html.dark-mode .badge-entregado,
html.dark-mode [class*="entregado"],
body.dark-mode .entregado,
body.dark-mode .estado-entregado,
body.dark-mode .status-entregado,
body.dark-mode .badge-entregado,
body.dark-mode [class*="entregado"] {
  background: rgba(139, 92, 246, .22) !important;
  color: #ede9fe !important;
  border-color: #8b5cf6 !important;
}

/* Devuelto */
html.dark-mode .devuelto,
html.dark-mode .estado-devuelto,
html.dark-mode .status-devuelto,
html.dark-mode .badge-devuelto,
html.dark-mode [class*="devuelto"],
body.dark-mode .devuelto,
body.dark-mode .estado-devuelto,
body.dark-mode .status-devuelto,
body.dark-mode .badge-devuelto,
body.dark-mode [class*="devuelto"] {
  background: rgba(34, 197, 94, .22) !important;
  color: #dcfce7 !important;
  border-color: #22c55e !important;
}

/* Cancelada */
html.dark-mode .cancelada,
html.dark-mode .estado-cancelada,
html.dark-mode .status-cancelada,
html.dark-mode .badge-cancelada,
html.dark-mode [class*="cancelada"],
body.dark-mode .cancelada,
body.dark-mode .estado-cancelada,
body.dark-mode .status-cancelada,
body.dark-mode .badge-cancelada,
body.dark-mode [class*="cancelada"] {
  background: rgba(239, 68, 68, .22) !important;
  color: #fee2e2 !important;
  border-color: #ef4444 !important;
}

/* Mantenimiento */
html.dark-mode .mantenimiento,
html.dark-mode .estado-mantenimiento,
html.dark-mode .status-mantenimiento,
html.dark-mode .badge-mantenimiento,
html.dark-mode [class*="mantenimiento"],
body.dark-mode .mantenimiento,
body.dark-mode .estado-mantenimiento,
body.dark-mode .status-mantenimiento,
body.dark-mode .badge-mantenimiento,
body.dark-mode [class*="mantenimiento"] {
  background: rgba(249, 115, 22, .22) !important;
  color: #ffedd5 !important;
  border-color: #f97316 !important;
}

/* Píldoras de reservas dentro del calendario */
html.dark-mode .reservation-pill,
html.dark-mode .booking-pill,
html.dark-mode .event-pill,
html.dark-mode .cal-event,
html.dark-mode .reserva-pill,
body.dark-mode .reservation-pill,
body.dark-mode .booking-pill,
body.dark-mode .event-pill,
body.dark-mode .cal-event,
body.dark-mode .reserva-pill {
  background: #dbeafe !important;
  color: #0b4ddb !important;
  border: 2px solid #3b82f6 !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .28) !important;
}

html.dark-mode .reservation-pill *,
html.dark-mode .booking-pill *,
html.dark-mode .event-pill *,
html.dark-mode .cal-event *,
html.dark-mode .reserva-pill *,
body.dark-mode .reservation-pill *,
body.dark-mode .booking-pill *,
body.dark-mode .event-pill *,
body.dark-mode .cal-event *,
body.dark-mode .reserva-pill * {
  color: #0b4ddb !important;
}

/* Puntito dentro de las reservas */
html.dark-mode .reservation-pill::before,
html.dark-mode .booking-pill::before,
html.dark-mode .event-pill::before,
html.dark-mode .cal-event::before,
html.dark-mode .reserva-pill::before,
body.dark-mode .reservation-pill::before,
body.dark-mode .booking-pill::before,
body.dark-mode .event-pill::before,
body.dark-mode .cal-event::before,
body.dark-mode .reserva-pill::before {
  background: #2563eb !important;
}

/* Leyenda inferior */
html.dark-mode .legend,
html.dark-mode .calendar-legend,
html.dark-mode .status-legend,
body.dark-mode .legend,
body.dark-mode .calendar-legend,
body.dark-mode .status-legend {
  background: #071827 !important;
  color: #ffffff !important;
  border-top: 1px solid rgba(148, 163, 184, .24) !important;
}

html.dark-mode .legend span,
html.dark-mode .calendar-legend span,
html.dark-mode .status-legend span,
body.dark-mode .legend span,
body.dark-mode .calendar-legend span,
body.dark-mode .status-legend span {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* Dots de leyenda */
html.dark-mode .legend-dot.confirmada,
html.dark-mode .dot-confirmada,
body.dark-mode .legend-dot.confirmada,
body.dark-mode .dot-confirmada {
  background: #3b82f6 !important;
}

html.dark-mode .legend-dot.pendiente,
html.dark-mode .dot-pendiente,
body.dark-mode .legend-dot.pendiente,
body.dark-mode .dot-pendiente {
  background: #eab308 !important;
}

html.dark-mode .legend-dot.entregado,
html.dark-mode .dot-entregado,
body.dark-mode .legend-dot.entregado,
body.dark-mode .dot-entregado {
  background: #8b5cf6 !important;
}

html.dark-mode .legend-dot.devuelto,
html.dark-mode .dot-devuelto,
body.dark-mode .legend-dot.devuelto,
body.dark-mode .dot-devuelto {
  background: #22c55e !important;
}

html.dark-mode .legend-dot.cancelada,
html.dark-mode .dot-cancelada,
body.dark-mode .legend-dot.cancelada,
body.dark-mode .dot-cancelada {
  background: #ef4444 !important;
}

html.dark-mode .legend-dot.mantenimiento,
html.dark-mode .dot-mantenimiento,
body.dark-mode .legend-dot.mantenimiento,
body.dark-mode .dot-mantenimiento {
  background: #f97316 !important;
}

/* Tablas del dashboard */
html.dark-mode .table,
body.dark-mode .table {
  --bs-table-bg: #0b1d35 !important;
  --bs-table-color: #eaf2ff !important;
  --bs-table-border-color: rgba(148, 163, 184, .24) !important;
  color: #eaf2ff !important;
  border-color: rgba(148, 163, 184, .24) !important;
}

html.dark-mode .table > :not(caption) > * > *,
body.dark-mode .table > :not(caption) > * > * {
  background: #0b1d35 !important;
  color: #eaf2ff !important;
  border-color: rgba(148, 163, 184, .24) !important;
}

html.dark-mode .table thead th,
body.dark-mode .table thead th {
  color: #ffffff !important;
  background: #071827 !important;
}

/* Dropdowns y filtros */
html.dark-mode .dropdown-menu,
html.dark-mode .dropdown-item,
body.dark-mode .dropdown-menu,
body.dark-mode .dropdown-item {
  background: #0b1d35 !important;
  color: #eaf2ff !important;
  border-color: rgba(148, 163, 184, .24) !important;
}

html.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:hover {
  background: #12345e !important;
  color: #ffffff !important;
}

/* Notificaciones */
html.dark-mode .notification-menu,
html.dark-mode .notification-head,
html.dark-mode .notification-footer,
html.dark-mode .notification-item,
body.dark-mode .notification-menu,
body.dark-mode .notification-head,
body.dark-mode .notification-footer,
body.dark-mode .notification-item {
  background: #0b1d35 !important;
  color: #eaf2ff !important;
  border-color: rgba(148, 163, 184, .24) !important;
}

html.dark-mode .notification-icon,
body.dark-mode .notification-icon {
  color: #dbeafe !important;
}

/* Modales */
html.dark-mode .modal-content,
body.dark-mode .modal-content {
  background: #0b1d35 !important;
  color: #eaf2ff !important;
  border: 1px solid rgba(148, 163, 184, .24) !important;
}

html.dark-mode .modal-header,
html.dark-mode .modal-footer,
body.dark-mode .modal-header,
body.dark-mode .modal-footer {
  border-color: rgba(148, 163, 184, .24) !important;
}

/* Flatpickr / calendario emergente del input fecha */
html.dark-mode .flatpickr-calendar,
body.dark-mode .flatpickr-calendar {
  background: #0b1d35 !important;
  border: 1px solid rgba(148, 163, 184, .35) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .45) !important;
}

html.dark-mode .flatpickr-months,
html.dark-mode .flatpickr-weekdays,
html.dark-mode .flatpickr-days,
body.dark-mode .flatpickr-months,
body.dark-mode .flatpickr-weekdays,
body.dark-mode .flatpickr-days {
  background: #0b1d35 !important;
  color: #eaf2ff !important;
}

html.dark-mode .flatpickr-current-month,
html.dark-mode .flatpickr-current-month input,
html.dark-mode .flatpickr-weekday,
html.dark-mode .flatpickr-day,
body.dark-mode .flatpickr-current-month,
body.dark-mode .flatpickr-current-month input,
body.dark-mode .flatpickr-weekday,
body.dark-mode .flatpickr-day {
  color: #eaf2ff !important;
}

html.dark-mode .flatpickr-day:hover,
body.dark-mode .flatpickr-day:hover {
  background: #12345e !important;
  border-color: #3b82f6 !important;
}

html.dark-mode .flatpickr-day.selected,
html.dark-mode .flatpickr-day.startRange,
html.dark-mode .flatpickr-day.endRange,
body.dark-mode .flatpickr-day.selected,
body.dark-mode .flatpickr-day.startRange,
body.dark-mode .flatpickr-day.endRange {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

html.dark-mode .flatpickr-day.prevMonthDay,
html.dark-mode .flatpickr-day.nextMonthDay,
body.dark-mode .flatpickr-day.prevMonthDay,
body.dark-mode .flatpickr-day.nextMonthDay {
  color: #64748b !important;
}

/* Barra inferior del calendario */
html.dark-mode .calendar-footer,
body.dark-mode .calendar-footer {
  background: #071827 !important;
  color: #ffffff !important;
  border-color: rgba(148, 163, 184, .24) !important;
}

/* Forzar contraste en botones principales */
html.dark-mode .btn-primary,
body.dark-mode .btn-primary {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

html.dark-mode .btn-primary:hover,
body.dark-mode .btn-primary:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}


/* =========================================================
   PATCH V20 FINAL - MODO OSCURO 100% VISIBLE
   Calendario / estados / iconos / filtros
   Pegar al FINAL del archivo o reemplazar style.css por este.
   ========================================================= */

/* Variables reales del tema oscuro */
html.dark-mode,
html.dark-mode body,
body.dark-mode {
  --navy: #020617 !important;
  --navy2: #071426 !important;
  --blue: #3b82f6 !important;
  --blue2: #2563eb !important;
  --bg: #07111f !important;
  --card: #0b1d35 !important;
  --text: #f8fbff !important;
  --muted: #b9c9df !important;
  --line: rgba(148, 163, 184, .28) !important;
  --shadow: 0 16px 42px rgba(0, 0, 0, .34) !important;
  background: #07111f !important;
  color: #f8fbff !important;
}

/* Fondo general, topbar y área de trabajo */
html.dark-mode .main-content,
html.dark-mode .page-body,
html.dark-mode .app-shell,
body.dark-mode .main-content,
body.dark-mode .page-body,
body.dark-mode .app-shell {
  background: #07111f !important;
  color: #f8fbff !important;
}

html.dark-mode .topbar,
body.dark-mode .topbar {
  background: #0b1d35 !important;
  border-bottom-color: rgba(148, 163, 184, .30) !important;
  color: #f8fbff !important;
}

/* Textos principales */
html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6,
html.dark-mode .page-head h1,
html.dark-mode .calendar-head h1,
html.dark-mode .calendar-head-tight h1,
html.dark-mode .section-title,
html.dark-mode .auto-title,
html.dark-mode .contract-card-title h3,
html.dark-mode .compact-contract-section h3,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .page-head h1,
body.dark-mode .calendar-head h1,
body.dark-mode .calendar-head-tight h1,
body.dark-mode .section-title,
body.dark-mode .auto-title,
body.dark-mode .contract-card-title h3,
body.dark-mode .compact-contract-section h3 {
  color: #ffffff !important;
  text-shadow: none !important;
}

html.dark-mode p,
html.dark-mode small,
html.dark-mode .page-head p,
html.dark-mode .calendar-head p,
html.dark-mode .calendar-head-tight p,
html.dark-mode .form-hint,
html.dark-mode .text-muted,
body.dark-mode p,
body.dark-mode small,
body.dark-mode .page-head p,
body.dark-mode .calendar-head p,
body.dark-mode .calendar-head-tight p,
body.dark-mode .form-hint,
body.dark-mode .text-muted {
  color: #b9c9df !important;
}

/* Cards reales del sistema */
html.dark-mode .card,
html.dark-mode .card-soft,
html.dark-mode .kpi,
html.dark-mode .calendar-card,
html.dark-mode .form-card,
html.dark-mode .contract-section,
html.dark-mode .compact-contract-section,
html.dark-mode .premium-contract-card,
html.dark-mode .premium-contract-head,
html.dark-mode .annual-card,
html.dark-mode .auto-card,
html.dark-mode .detail-item,
body.dark-mode .card,
body.dark-mode .card-soft,
body.dark-mode .kpi,
body.dark-mode .calendar-card,
body.dark-mode .form-card,
body.dark-mode .contract-section,
body.dark-mode .compact-contract-section,
body.dark-mode .premium-contract-card,
body.dark-mode .premium-contract-head,
body.dark-mode .annual-card,
body.dark-mode .auto-card,
body.dark-mode .detail-item {
  background: #0b1d35 !important;
  background-image: none !important;
  border-color: rgba(148, 163, 184, .28) !important;
  color: #f8fbff !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .28) !important;
}

/* KPIs: los iconos de arriba sí visibles */
html.dark-mode .kpi-ico,
html.dark-mode .kpi .kpi-ico,
html.dark-mode .compact-kpis .kpi-ico,
body.dark-mode .kpi-ico,
body.dark-mode .kpi .kpi-ico,
body.dark-mode .compact-kpis .kpi-ico {
  background: #dbeafe !important;
  color: #2563eb !important;
  border: 1px solid rgba(96, 165, 250, .55) !important;
}

html.dark-mode .kpi-ico i,
html.dark-mode .compact-kpis .kpi-ico i,
body.dark-mode .kpi-ico i,
body.dark-mode .compact-kpis .kpi-ico i {
  color: #2563eb !important;
}

html.dark-mode .kpi h3,
html.dark-mode .kpi strong,
body.dark-mode .kpi h3,
body.dark-mode .kpi strong {
  color: #f8fbff !important;
}

html.dark-mode .kpi small,
body.dark-mode .kpi small {
  color: #b9c9df !important;
}

html.dark-mode .bar,
body.dark-mode .bar {
  background: rgba(226, 232, 240, .85) !important;
}

/* Botón hamburguesa y campana */
html.dark-mode .sidebar-toggle,
body.dark-mode .sidebar-toggle {
  background: #071827 !important;
  color: #dbeafe !important;
  border-color: rgba(191, 219, 254, .45) !important;
}

html.dark-mode .notification-trigger,
html.dark-mode .notification-icon,
body.dark-mode .notification-trigger,
body.dark-mode .notification-icon {
  background: transparent !important;
  color: #dbeafe !important;
}

html.dark-mode .notification-trigger i,
html.dark-mode .notification-icon i,
body.dark-mode .notification-trigger i,
body.dark-mode .notification-icon i {
  color: #dbeafe !important;
}

html.dark-mode .notification-trigger:hover,
body.dark-mode .notification-trigger:hover {
  background: rgba(59, 130, 246, .16) !important;
}

/* Buscador */
html.dark-mode .global-search,
body.dark-mode .global-search {
  background: #071827 !important;
  border-color: rgba(191, 219, 254, .35) !important;
  color: #f8fbff !important;
}

html.dark-mode .global-search input,
body.dark-mode .global-search input {
  background: transparent !important;
  color: #f8fbff !important;
}

html.dark-mode .global-search input::placeholder,
body.dark-mode .global-search input::placeholder {
  color: #8aa4c6 !important;
}

html.dark-mode .global-search span,
html.dark-mode .global-search i,
body.dark-mode .global-search span,
body.dark-mode .global-search i {
  color: #dbeafe !important;
}

/* Controles superiores del calendario: rango, vista, fecha, filtros */
html.dark-mode .calendar-top-filters,
html.dark-mode .calendar-main-toolbar,
html.dark-mode .calendar-filter-collapse,
body.dark-mode .calendar-top-filters,
body.dark-mode .calendar-main-toolbar,
body.dark-mode .calendar-filter-collapse {
  background: transparent !important;
  color: #f8fbff !important;
}

html.dark-mode .date-navigator,
html.dark-mode .toolbar-select,
html.dark-mode .toolbar-date,
html.dark-mode .btn-filter-toggle,
html.dark-mode .compact-filter-panel,
html.dark-mode .control,
body.dark-mode .date-navigator,
body.dark-mode .toolbar-select,
body.dark-mode .toolbar-date,
body.dark-mode .btn-filter-toggle,
body.dark-mode .compact-filter-panel,
body.dark-mode .control {
  background: #071827 !important;
  color: #f8fbff !important;
  border-color: rgba(191, 219, 254, .35) !important;
  box-shadow: none !important;
}

html.dark-mode .date-navigator strong,
html.dark-mode .toolbar-icon,
html.dark-mode .toolbar-select,
html.dark-mode .toolbar-date input,
html.dark-mode .btn-filter-toggle,
body.dark-mode .date-navigator strong,
body.dark-mode .toolbar-icon,
body.dark-mode .toolbar-select,
body.dark-mode .toolbar-date input,
body.dark-mode .btn-filter-toggle {
  color: #f8fbff !important;
}

html.dark-mode .nav-arrow,
body.dark-mode .nav-arrow {
  color: #60a5fa !important;
}

html.dark-mode input,
html.dark-mode select,
html.dark-mode textarea,
html.dark-mode .form-control,
html.dark-mode .form-select,
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .form-control,
body.dark-mode .form-select {
  background: #071827 !important;
  color: #f8fbff !important;
  border-color: rgba(191, 219, 254, .35) !important;
}

html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder,
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #8aa4c6 !important;
}

html.dark-mode input[type="date"]::-webkit-calendar-picker-indicator,
html.dark-mode input[type="datetime-local"]::-webkit-calendar-picker-indicator,
body.dark-mode input[type="date"]::-webkit-calendar-picker-indicator,
body.dark-mode input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.8) !important;
  opacity: .95 !important;
}

/* Calendario completo */
html.dark-mode .calendar-big,
html.dark-mode .calendar-grid,
html.dark-mode .calendar-grid.week,
html.dark-mode .calendar-grid.month,
body.dark-mode .calendar-big,
body.dark-mode .calendar-grid,
body.dark-mode .calendar-grid.week,
body.dark-mode .calendar-grid.month {
  background: #071827 !important;
  color: #f8fbff !important;
}

html.dark-mode .calendar-toolbar,
html.dark-mode .calendar-big .calendar-toolbar,
body.dark-mode .calendar-toolbar,
body.dark-mode .calendar-big .calendar-toolbar {
  background: #071827 !important;
  color: #f8fbff !important;
  border-color: rgba(148, 163, 184, .28) !important;
}

html.dark-mode .calendar-toolbar span,
html.dark-mode .calendar-toolbar strong,
body.dark-mode .calendar-toolbar span,
body.dark-mode .calendar-toolbar strong {
  color: #f8fbff !important;
}

html.dark-mode .cal-head,
html.dark-mode .cal-row,
body.dark-mode .cal-head,
body.dark-mode .cal-row {
  color: #f8fbff !important;
}

html.dark-mode .car-head,
html.dark-mode .day-cell,
html.dark-mode .car-cell,
html.dark-mode .grid-cell,
body.dark-mode .car-head,
body.dark-mode .day-cell,
body.dark-mode .car-cell,
body.dark-mode .grid-cell {
  background: #0b1d35 !important;
  color: #f8fbff !important;
  border-color: rgba(148, 163, 184, .28) !important;
}

html.dark-mode .day-cell small,
body.dark-mode .day-cell small {
  color: #b9c9df !important;
}

html.dark-mode .day-cell.today,
html.dark-mode .today-col,
body.dark-mode .day-cell.today,
body.dark-mode .today-col {
  background: rgba(37, 99, 235, .25) !important;
  color: #ffffff !important;
}

html.dark-mode .day-cell.today .bubble,
body.dark-mode .day-cell.today .bubble {
  background: #3b82f6 !important;
  color: #ffffff !important;
}

/* Autos dentro del calendario */
html.dark-mode .car-meta strong,
body.dark-mode .car-meta strong {
  color: #ffffff !important;
}

html.dark-mode .car-meta small,
body.dark-mode .car-meta small {
  color: #b9c9df !important;
}

html.dark-mode .auto-icon,
html.dark-mode .calendar-big .auto-icon,
body.dark-mode .auto-icon,
body.dark-mode .calendar-big .auto-icon {
  background: #dbeafe !important;
  border-color: rgba(96, 165, 250, .65) !important;
}

html.dark-mode .auto-icon:before,
html.dark-mode .calendar-big .auto-icon:before,
body.dark-mode .auto-icon:before,
body.dark-mode .calendar-big .auto-icon:before {
  border-color: #2563eb !important;
  border-bottom: 0 !important;
}

html.dark-mode .auto-icon:after,
html.dark-mode .calendar-big .auto-icon:after,
body.dark-mode .auto-icon:after,
body.dark-mode .calendar-big .auto-icon:after {
  background: #2563eb !important;
  box-shadow: 18px 0 0 #2563eb !important;
}

/* Reservas dentro del calendario: clase real .booking */
html.dark-mode .booking,
body.dark-mode .booking {
  background: rgba(219, 234, 254, .16) !important;
  color: #f8fbff !important;
  border-color: #60a5fa !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .25) !important;
}

html.dark-mode .booking button,
body.dark-mode .booking button {
  color: inherit !important;
}

html.dark-mode .booking .dot,
body.dark-mode .booking .dot {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .12) !important;
}

/* Confirmada */
html.dark-mode .booking.status-confirmada,
html.dark-mode .status-confirmada,
body.dark-mode .booking.status-confirmada,
body.dark-mode .status-confirmada {
  background: rgba(37, 99, 235, .28) !important;
  color: #dbeafe !important;
  border-color: #60a5fa !important;
}

html.dark-mode .booking.status-confirmada .dot,
html.dark-mode .status-confirmada .dot,
body.dark-mode .booking.status-confirmada .dot,
body.dark-mode .status-confirmada .dot {
  background: #60a5fa !important;
}

/* Pendiente */
html.dark-mode .booking.status-pendiente,
html.dark-mode .status-pendiente,
body.dark-mode .booking.status-pendiente,
body.dark-mode .status-pendiente {
  background: rgba(234, 179, 8, .26) !important;
  color: #fef3c7 !important;
  border-color: #facc15 !important;
}

html.dark-mode .booking.status-pendiente .dot,
html.dark-mode .status-pendiente .dot,
body.dark-mode .booking.status-pendiente .dot,
body.dark-mode .status-pendiente .dot {
  background: #facc15 !important;
}

/* Entregado */
html.dark-mode .booking.status-entregado,
html.dark-mode .status-entregado,
body.dark-mode .booking.status-entregado,
body.dark-mode .status-entregado {
  background: rgba(139, 92, 246, .28) !important;
  color: #ede9fe !important;
  border-color: #a78bfa !important;
}

html.dark-mode .booking.status-entregado .dot,
html.dark-mode .status-entregado .dot,
body.dark-mode .booking.status-entregado .dot,
body.dark-mode .status-entregado .dot {
  background: #a78bfa !important;
}

/* Devuelto / finalizada */
html.dark-mode .booking.status-devuelto,
html.dark-mode .booking.status-finalizada,
html.dark-mode .status-devuelto,
html.dark-mode .status-finalizada,
body.dark-mode .booking.status-devuelto,
body.dark-mode .booking.status-finalizada,
body.dark-mode .status-devuelto,
body.dark-mode .status-finalizada {
  background: rgba(34, 197, 94, .25) !important;
  color: #dcfce7 !important;
  border-color: #4ade80 !important;
}

html.dark-mode .booking.status-devuelto .dot,
html.dark-mode .booking.status-finalizada .dot,
html.dark-mode .status-devuelto .dot,
html.dark-mode .status-finalizada .dot,
body.dark-mode .booking.status-devuelto .dot,
body.dark-mode .booking.status-finalizada .dot,
body.dark-mode .status-devuelto .dot,
body.dark-mode .status-finalizada .dot {
  background: #4ade80 !important;
}

/* Cancelada */
html.dark-mode .booking.status-cancelada,
html.dark-mode .status-cancelada,
body.dark-mode .booking.status-cancelada,
body.dark-mode .status-cancelada {
  background: rgba(239, 68, 68, .28) !important;
  color: #fee2e2 !important;
  border-color: #fb7185 !important;
}

html.dark-mode .booking.status-cancelada .dot,
html.dark-mode .status-cancelada .dot,
body.dark-mode .booking.status-cancelada .dot,
body.dark-mode .status-cancelada .dot {
  background: #fb7185 !important;
}

/* Mantenimiento */
html.dark-mode .booking.status-mantenimiento,
html.dark-mode .status-mantenimiento,
body.dark-mode .booking.status-mantenimiento,
body.dark-mode .status-mantenimiento {
  background: rgba(249, 115, 22, .28) !important;
  color: #ffedd5 !important;
  border-color: #fb923c !important;
}

html.dark-mode .booking.status-mantenimiento .dot,
html.dark-mode .status-mantenimiento .dot,
body.dark-mode .booking.status-mantenimiento .dot,
body.dark-mode .status-mantenimiento .dot {
  background: #fb923c !important;
}

/* Badges de tabla, lista y dashboard */
html.dark-mode .badge-soft,
body.dark-mode .badge-soft {
  border: 1px solid rgba(191, 219, 254, .35) !important;
  font-weight: 900 !important;
}

/* Leyenda inferior del calendario */
html.dark-mode .legend,
body.dark-mode .legend {
  background: #071827 !important;
  color: #ffffff !important;
  border-top-color: rgba(148, 163, 184, .30) !important;
  box-shadow: 0 -12px 26px rgba(0, 0, 0, .22) !important;
}

html.dark-mode .legend span,
body.dark-mode .legend span {
  color: #ffffff !important;
}

html.dark-mode .legend i,
body.dark-mode .legend i {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .10) !important;
}

html.dark-mode .dot-confirmada,
body.dark-mode .dot-confirmada {
  background: #60a5fa !important;
}

html.dark-mode .dot-pendiente,
body.dark-mode .dot-pendiente {
  background: #facc15 !important;
}

html.dark-mode .dot-entregado,
body.dark-mode .dot-entregado {
  background: #a78bfa !important;
}

html.dark-mode .dot-devuelto,
body.dark-mode .dot-devuelto {
  background: #4ade80 !important;
}

html.dark-mode .dot-cancelada,
body.dark-mode .dot-cancelada {
  background: #fb7185 !important;
}

html.dark-mode .dot-mantenimiento,
body.dark-mode .dot-mantenimiento {
  background: #fb923c !important;
}

/* Tablas del dashboard y reservas */
html.dark-mode .table,
body.dark-mode .table {
  --bs-table-bg: #0b1d35 !important;
  --bs-table-color: #f8fbff !important;
  --bs-table-border-color: rgba(148, 163, 184, .28) !important;
  color: #f8fbff !important;
  border-color: rgba(148, 163, 184, .28) !important;
}

html.dark-mode .table > :not(caption) > * > *,
body.dark-mode .table > :not(caption) > * > * {
  background: #0b1d35 !important;
  color: #f8fbff !important;
  border-color: rgba(148, 163, 184, .28) !important;
}

html.dark-mode .table thead th,
body.dark-mode .table thead th {
  background: #071827 !important;
  color: #ffffff !important;
}

/* Dropdowns, filtros y menú acciones */
html.dark-mode .dropdown-menu,
html.dark-mode .actions-dropdown .dropdown-menu,
body.dark-mode .dropdown-menu,
body.dark-mode .actions-dropdown .dropdown-menu {
  background: #0b1d35 !important;
  border-color: rgba(148, 163, 184, .30) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .45) !important;
}

html.dark-mode .dropdown-item,
body.dark-mode .dropdown-item {
  color: #f8fbff !important;
}

html.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:hover {
  background: #12345e !important;
  color: #ffffff !important;
}

/* Notificaciones */
html.dark-mode .notification-menu,
html.dark-mode .notification-head,
html.dark-mode .notification-list,
html.dark-mode .notification-footer,
html.dark-mode .notification-item,
body.dark-mode .notification-menu,
body.dark-mode .notification-head,
body.dark-mode .notification-list,
body.dark-mode .notification-footer,
body.dark-mode .notification-item {
  background: #0b1d35 !important;
  background-image: none !important;
  color: #f8fbff !important;
  border-color: rgba(148, 163, 184, .30) !important;
}

html.dark-mode .notification-content p,
html.dark-mode .notification-title strong,
body.dark-mode .notification-content p,
body.dark-mode .notification-title strong {
  color: #f8fbff !important;
}

html.dark-mode .notification-content small,
body.dark-mode .notification-content small {
  color: #b9c9df !important;
}

/* Modal y calendario emergente de fecha */
html.dark-mode .modal-content,
body.dark-mode .modal-content {
  background: #0b1d35 !important;
  color: #f8fbff !important;
  border-color: rgba(148, 163, 184, .30) !important;
}

html.dark-mode .modal-header,
html.dark-mode .modal-footer,
body.dark-mode .modal-header,
body.dark-mode .modal-footer {
  border-color: rgba(148, 163, 184, .30) !important;
}

html.dark-mode .flatpickr-calendar,
body.dark-mode .flatpickr-calendar {
  background: #0b1d35 !important;
  border-color: rgba(148, 163, 184, .45) !important;
  color: #f8fbff !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .55) !important;
}

html.dark-mode .flatpickr-months,
html.dark-mode .flatpickr-weekdays,
html.dark-mode .flatpickr-days,
body.dark-mode .flatpickr-months,
body.dark-mode .flatpickr-weekdays,
body.dark-mode .flatpickr-days {
  background: #0b1d35 !important;
  color: #f8fbff !important;
}

html.dark-mode .flatpickr-current-month,
html.dark-mode .flatpickr-current-month input,
html.dark-mode .flatpickr-weekday,
html.dark-mode .flatpickr-day,
body.dark-mode .flatpickr-current-month,
body.dark-mode .flatpickr-current-month input,
body.dark-mode .flatpickr-weekday,
body.dark-mode .flatpickr-day {
  color: #f8fbff !important;
}

html.dark-mode .flatpickr-day.prevMonthDay,
html.dark-mode .flatpickr-day.nextMonthDay,
body.dark-mode .flatpickr-day.prevMonthDay,
body.dark-mode .flatpickr-day.nextMonthDay {
  color: #64748b !important;
}

html.dark-mode .flatpickr-day:hover,
body.dark-mode .flatpickr-day:hover {
  background: #12345e !important;
  border-color: #60a5fa !important;
}

html.dark-mode .flatpickr-day.selected,
html.dark-mode .flatpickr-day.startRange,
html.dark-mode .flatpickr-day.endRange,
body.dark-mode .flatpickr-day.selected,
body.dark-mode .flatpickr-day.startRange,
body.dark-mode .flatpickr-day.endRange {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

/* Botones claros */
html.dark-mode .btn-light,
body.dark-mode .btn-light {
  background: #10243d !important;
  color: #f8fbff !important;
  border-color: rgba(191, 219, 254, .35) !important;
}

html.dark-mode .btn-light:hover,
body.dark-mode .btn-light:hover {
  background: #12345e !important;
  color: #ffffff !important;
}

/* Botones azules */
html.dark-mode .btn-primary,
body.dark-mode .btn-primary {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

html.dark-mode .btn-primary:hover,
body.dark-mode .btn-primary:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

/* Usuario del topbar */
html.dark-mode .avatar-top,
html.dark-mode .avatar-small,
body.dark-mode .avatar-top,
body.dark-mode .avatar-small {
  background: #dbeafe !important;
  color: #071426 !important;
}

html.dark-mode .top-user strong,
body.dark-mode .top-user strong {
  color: #ffffff !important;
}

html.dark-mode .top-user small,
body.dark-mode .top-user small {
  color: #b9c9df !important;
}

/* Evitar que parches antiguos blanqueen tarjetas premium */
html.dark-mode .premium-contract-actions,
body.dark-mode .premium-contract-actions {
  background: linear-gradient(135deg, #020617, #10243d) !important;
  border-color: rgba(191, 219, 254, .18) !important;
}

/* Fin patch V20 */

/* =========================================================
   PATCH V21 - FIX CAMBIO CLARO/OSCURO + ALINEACIÓN SIDEBAR
   Pegar al final. Este bloque corrige componentes que quedaban
   oscuros al volver a modo claro y mejora contraste/alineación.
   ========================================================= */

/* ---------- Variables visuales del tema ---------- */
html:not(.dark-mode),
html[data-theme="light"] {
  --navy: #071426;
  --navy2: #0b1d35;
  --blue: #2563eb;
  --blue2: #0f4bdc;
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e5edf6;
  --shadow: 0 12px 35px rgba(15,23,42,.08);
  color-scheme: light;
}

html.dark-mode,
html[data-theme="dark"] {
  --navy: #071426;
  --navy2: #0b1d35;
  --blue: #2563eb;
  --blue2: #1d4ed8;
  --bg: #07111f;
  --card: #0b1d35;
  --text: #eaf2ff;
  --muted: #b9c9df;
  --line: rgba(148, 163, 184, .26);
  --shadow: 0 14px 36px rgba(0,0,0,.30);
  color-scheme: dark;
}

/* ---------- Sidebar: logo, nombre e iconos bien alineados ---------- */
.sidebar {
  width: 285px;
  overflow-x: hidden;
}

.brand-wrap {
  min-height: 88px !important;
  height: 88px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 14px !important;
}

.brand-link {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 13px !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.brand-icon {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  flex: 0 0 56px !important;
  border-radius: 18px !important;
  display: grid !important;
  place-items: center !important;
  border: 2px solid rgba(255,255,255,.90) !important;
  background: rgba(255,255,255,.03) !important;
}

.brand-icon .car-line {
  transform: translateY(1px);
}

.brand-text {
  display: block !important;
  max-width: 178px !important;
  color: #ffffff !important;
  font-size: 18px !important;
  line-height: 1.08 !important;
  font-weight: 950 !important;
  letter-spacing: -.55px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-shadow: 0 1px 10px rgba(0,0,0,.22) !important;
}

.sidebar.collapsed .brand-wrap {
  padding: 0 !important;
}

.sidebar.collapsed .brand-link {
  justify-content: center !important;
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .admin-mini div,
.sidebar.collapsed .logout-link,
.sidebar.collapsed .theme-toggle-btn span {
  display: none !important;
}

.nav-link {
  align-items: center !important;
}

.nav-icon {
  width: 30px !important;
  min-width: 30px !important;
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
}

.nav-icon i {
  display: block !important;
  line-height: 1 !important;
  color: inherit !important;
}

.sidebar-footer {
  padding: 16px 16px 18px !important;
}

.admin-mini {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 46px !important;
}

.avatar-small,
.avatar-top {
  display: grid !important;
  place-items: center !important;
  text-align: center !important;
  line-height: 1 !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  flex: 0 0 auto !important;
}

.admin-mini div {
  min-width: 0 !important;
}

.admin-mini strong,
.admin-mini small {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.theme-toggle-btn {
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  line-height: 1 !important;
}

.theme-toggle-btn i {
  width: 18px !important;
  min-width: 18px !important;
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
}

.sidebar.collapsed .theme-toggle-btn {
  justify-content: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Botón hamburguesa visible en claro y oscuro */
.sidebar-toggle {
  display: grid !important;
  place-items: center !important;
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: #0f172a !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

html.dark-mode .sidebar-toggle,
body.dark-mode .sidebar-toggle {
  background: #071827 !important;
  color: #eaf2ff !important;
  border-color: rgba(191,219,254,.45) !important;
}

/* =========================================================
   RESET FUERTE DEL MODO CLARO
   Corrige el bug: al volver a claro, Bootstrap no debe dejar
   tablas/formularios negros por data-bs-theme o caché.
   ========================================================= */
html:not(.dark-mode),
html:not(.dark-mode) body,
body:not(.dark-mode) {
  background: #f4f7fb !important;
  color: #0f172a !important;
}

html:not(.dark-mode) .main-content,
html:not(.dark-mode) .page-body,
html:not(.dark-mode) .topbar,
body:not(.dark-mode) .main-content,
body:not(.dark-mode) .page-body,
body:not(.dark-mode) .topbar {
  background: #ffffff !important;
  color: #0f172a !important;
}

html:not(.dark-mode) .page-body,
body:not(.dark-mode) .page-body {
  background: #f4f7fb !important;
}

html:not(.dark-mode) .card,
html:not(.dark-mode) .card-soft,
html:not(.dark-mode) .calendar-card,
html:not(.dark-mode) .form-card,
html:not(.dark-mode) .kpi,
html:not(.dark-mode) .table-card,
body:not(.dark-mode) .card,
body:not(.dark-mode) .card-soft,
body:not(.dark-mode) .calendar-card,
body:not(.dark-mode) .form-card,
body:not(.dark-mode) .kpi,
body:not(.dark-mode) .table-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #e5edf6 !important;
}

html:not(.dark-mode) .table,
body:not(.dark-mode) .table {
  --bs-table-bg: #ffffff !important;
  --bs-table-color: #0f172a !important;
  --bs-table-border-color: #e5edf6 !important;
  --bs-table-striped-bg: #f8fbff !important;
  --bs-table-striped-color: #0f172a !important;
  --bs-table-hover-bg: #eef4ff !important;
  --bs-table-hover-color: #0f172a !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #e5edf6 !important;
}

html:not(.dark-mode) .table > :not(caption) > * > *,
body:not(.dark-mode) .table > :not(caption) > * > * {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #e5edf6 !important;
}

html:not(.dark-mode) .table thead th,
body:not(.dark-mode) .table thead th {
  background: #ffffff !important;
  color: #0f172a !important;
}

html:not(.dark-mode) input,
html:not(.dark-mode) select,
html:not(.dark-mode) textarea,
html:not(.dark-mode) .form-control,
html:not(.dark-mode) .form-select,
html:not(.dark-mode) .control,
html:not(.dark-mode) .toolbar-select,
html:not(.dark-mode) .toolbar-date,
html:not(.dark-mode) .date-navigator,
body:not(.dark-mode) input,
body:not(.dark-mode) select,
body:not(.dark-mode) textarea,
body:not(.dark-mode) .form-control,
body:not(.dark-mode) .form-select,
body:not(.dark-mode) .control,
body:not(.dark-mode) .toolbar-select,
body:not(.dark-mode) .toolbar-date,
body:not(.dark-mode) .date-navigator {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #d7e2ef !important;
  box-shadow: none !important;
}

html:not(.dark-mode) input::placeholder,
html:not(.dark-mode) textarea::placeholder,
body:not(.dark-mode) input::placeholder,
body:not(.dark-mode) textarea::placeholder {
  color: #64748b !important;
}

html:not(.dark-mode) .calendar-toolbar,
html:not(.dark-mode) .calendar-big,
html:not(.dark-mode) .calendar-scroll,
html:not(.dark-mode) .calendar-grid,
body:not(.dark-mode) .calendar-toolbar,
body:not(.dark-mode) .calendar-big,
body:not(.dark-mode) .calendar-scroll,
body:not(.dark-mode) .calendar-grid {
  background: #ffffff !important;
  color: #334155 !important;
}

html:not(.dark-mode) .cal-head,
html:not(.dark-mode) .car-head,
html:not(.dark-mode) .car-cell,
html:not(.dark-mode) .day-cell,
html:not(.dark-mode) .grid-cell,
body:not(.dark-mode) .cal-head,
body:not(.dark-mode) .car-head,
body:not(.dark-mode) .car-cell,
body:not(.dark-mode) .day-cell,
body:not(.dark-mode) .grid-cell {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #e5edf6 !important;
}

html:not(.dark-mode) .today-col,
html:not(.dark-mode) .day-cell.today,
body:not(.dark-mode) .today-col,
body:not(.dark-mode) .day-cell.today {
  background: #eef4ff !important;
}

html:not(.dark-mode) .car-meta strong,
html:not(.dark-mode) .auto-name,
html:not(.dark-mode) .vehicle-name,
body:not(.dark-mode) .car-meta strong,
body:not(.dark-mode) .auto-name,
body:not(.dark-mode) .vehicle-name {
  color: #0f172a !important;
}

html:not(.dark-mode) .car-meta small,
html:not(.dark-mode) .auto-meta,
html:not(.dark-mode) .vehicle-meta,
body:not(.dark-mode) .car-meta small,
body:not(.dark-mode) .auto-meta,
body:not(.dark-mode) .vehicle-meta {
  color: #64748b !important;
}

html:not(.dark-mode) .btn-light,
body:not(.dark-mode) .btn-light {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #d7e2ef !important;
}

/* Estados claros: vuelven a sus colores correctos */
html:not(.dark-mode) .status-confirmada,
body:not(.dark-mode) .status-confirmada {
  background:#dbeafe!important;
  color:#0b48d8!important;
  border-color:#2563eb!important;
}
html:not(.dark-mode) .status-pendiente,
body:not(.dark-mode) .status-pendiente {
  background:#fef3c7!important;
  color:#92400e!important;
  border-color:#f59e0b!important;
}
html:not(.dark-mode) .status-entregado,
body:not(.dark-mode) .status-entregado {
  background:#ede9fe!important;
  color:#5b21b6!important;
  border-color:#7c3aed!important;
}
html:not(.dark-mode) .status-devuelto,
html:not(.dark-mode) .status-finalizada,
body:not(.dark-mode) .status-devuelto,
body:not(.dark-mode) .status-finalizada {
  background:#dcfce7!important;
  color:#166534!important;
  border-color:#16a34a!important;
}
html:not(.dark-mode) .status-cancelada,
body:not(.dark-mode) .status-cancelada {
  background:#fee2e2!important;
  color:#991b1b!important;
  border-color:#ef4444!important;
}
html:not(.dark-mode) .status-mantenimiento,
body:not(.dark-mode) .status-mantenimiento {
  background:#ffedd5!important;
  color:#9a3412!important;
  border-color:#f97316!important;
}

/* =========================================================
   MODO OSCURO REFORZADO: contraste correcto para calendarios,
   autos, reportes, contratos, inputs e iconos.
   ========================================================= */
html.dark-mode body,
body.dark-mode {
  background: #07111f !important;
  color: #eaf2ff !important;
}

html.dark-mode .main-content,
html.dark-mode .page-body,
body.dark-mode .main-content,
body.dark-mode .page-body {
  background: #07111f !important;
  color: #eaf2ff !important;
}

html.dark-mode .topbar,
body.dark-mode .topbar {
  background: #0b1d35 !important;
  border-color: rgba(148,163,184,.28) !important;
}

html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6,
html.dark-mode .page-head h1,
html.dark-mode .section-title,
html.dark-mode label,
html.dark-mode .form-label,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .page-head h1,
body.dark-mode .section-title,
body.dark-mode label,
body.dark-mode .form-label {
  color: #ffffff !important;
}

html.dark-mode p,
html.dark-mode small,
html.dark-mode .text-muted,
html.dark-mode .page-head p,
body.dark-mode p,
body.dark-mode small,
body.dark-mode .text-muted,
body.dark-mode .page-head p {
  color: #b9c9df !important;
}

html.dark-mode .card,
html.dark-mode .card-soft,
html.dark-mode .calendar-card,
html.dark-mode .calendar-big,
html.dark-mode .form-card,
html.dark-mode .kpi,
html.dark-mode .table-card,
body.dark-mode .card,
body.dark-mode .card-soft,
body.dark-mode .calendar-card,
body.dark-mode .calendar-big,
body.dark-mode .form-card,
body.dark-mode .kpi,
body.dark-mode .table-card {
  background: #0b1d35 !important;
  color: #eaf2ff !important;
  border-color: rgba(148,163,184,.28) !important;
}

html.dark-mode input,
html.dark-mode select,
html.dark-mode textarea,
html.dark-mode .form-control,
html.dark-mode .form-select,
html.dark-mode .control,
html.dark-mode .toolbar-select,
html.dark-mode .toolbar-date,
html.dark-mode .date-navigator,
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .control,
body.dark-mode .toolbar-select,
body.dark-mode .toolbar-date,
body.dark-mode .date-navigator {
  background: #071827 !important;
  color: #f8fbff !important;
  border-color: rgba(191,219,254,.34) !important;
  box-shadow: none !important;
}

html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder,
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #8aa4c6 !important;
}

html.dark-mode .global-search,
body.dark-mode .global-search {
  background: #071827 !important;
  border-color: rgba(191,219,254,.34) !important;
}

html.dark-mode .global-search input,
body.dark-mode .global-search input {
  background: transparent !important;
  color: #f8fbff !important;
}

html.dark-mode .kpi-ico,
html.dark-mode .kpi .icon,
html.dark-mode .metric-icon,
body.dark-mode .kpi-ico,
body.dark-mode .kpi .icon,
body.dark-mode .metric-icon {
  color: #dbeafe !important;
  border: 1px solid rgba(191,219,254,.24) !important;
}

html.dark-mode .calendar-toolbar,
body.dark-mode .calendar-toolbar {
  background: #071827 !important;
  color: #dbeafe !important;
  border-color: rgba(148,163,184,.28) !important;
}

html.dark-mode .calendar-scroll,
html.dark-mode .calendar-grid,
body.dark-mode .calendar-scroll,
body.dark-mode .calendar-grid {
  background: #071827 !important;
}

html.dark-mode .cal-head,
html.dark-mode .car-head,
html.dark-mode .car-cell,
html.dark-mode .day-cell,
html.dark-mode .grid-cell,
body.dark-mode .cal-head,
body.dark-mode .car-head,
body.dark-mode .car-cell,
body.dark-mode .day-cell,
body.dark-mode .grid-cell {
  background: #0b1d35 !important;
  color: #eaf2ff !important;
  border-color: rgba(148,163,184,.26) !important;
}

html.dark-mode .today-col,
html.dark-mode .day-cell.today,
body.dark-mode .today-col,
body.dark-mode .day-cell.today {
  background: rgba(37,99,235,.22) !important;
}

html.dark-mode .day-cell.today .bubble,
body.dark-mode .day-cell.today .bubble {
  background: #3b82f6 !important;
  color: #ffffff !important;
}

html.dark-mode .car-meta strong,
body.dark-mode .car-meta strong {
  color: #ffffff !important;
}

html.dark-mode .car-meta small,
body.dark-mode .car-meta small {
  color: #b9c9df !important;
}

html.dark-mode .auto-icon,
body.dark-mode .auto-icon {
  background: #dbeafe !important;
  border-color: rgba(96,165,250,.55) !important;
}

html.dark-mode .auto-icon:before,
body.dark-mode .auto-icon:before {
  border-color: #2563eb !important;
  border-bottom: 0 !important;
}

html.dark-mode .auto-icon:after,
body.dark-mode .auto-icon:after {
  background: #2563eb !important;
  box-shadow: 18px 0 0 #2563eb !important;
}

/* Reservas dentro del calendario: visibles en oscuro */
html.dark-mode .booking,
body.dark-mode .booking {
  background: #dbeafe !important;
  color: #0b4ddb !important;
  border-color: #3b82f6 !important;
  font-weight: 950 !important;
  box-shadow: 0 8px 18px rgba(37,99,235,.28) !important;
}

html.dark-mode .booking button,
html.dark-mode .booking *,
body.dark-mode .booking button,
body.dark-mode .booking * {
  color: #0b4ddb !important;
}

html.dark-mode .booking .dot,
body.dark-mode .booking .dot {
  background: #2563eb !important;
}

/* Estados oscuros */
html.dark-mode .status-confirmada,
body.dark-mode .status-confirmada {
  background: rgba(37,99,235,.28)!important;
  color: #dbeafe!important;
  border-color: #60a5fa!important;
}
html.dark-mode .status-pendiente,
body.dark-mode .status-pendiente {
  background: rgba(234,179,8,.26)!important;
  color: #fef3c7!important;
  border-color: #facc15!important;
}
html.dark-mode .status-entregado,
body.dark-mode .status-entregado {
  background: rgba(139,92,246,.28)!important;
  color: #ede9fe!important;
  border-color: #a78bfa!important;
}
html.dark-mode .status-devuelto,
html.dark-mode .status-finalizada,
body.dark-mode .status-devuelto,
body.dark-mode .status-finalizada {
  background: rgba(34,197,94,.25)!important;
  color: #dcfce7!important;
  border-color: #4ade80!important;
}
html.dark-mode .status-cancelada,
body.dark-mode .status-cancelada {
  background: rgba(239,68,68,.28)!important;
  color: #fee2e2!important;
  border-color: #fb7185!important;
}
html.dark-mode .status-mantenimiento,
body.dark-mode .status-mantenimiento {
  background: rgba(249,115,22,.28)!important;
  color: #ffedd5!important;
  border-color: #fb923c!important;
}

html.dark-mode .badge-soft,
body.dark-mode .badge-soft {
  border: 1px solid rgba(191,219,254,.35) !important;
  font-weight: 950 !important;
}

html.dark-mode .table,
body.dark-mode .table {
  --bs-table-bg: #0b1d35 !important;
  --bs-table-color: #f8fbff !important;
  --bs-table-border-color: rgba(148,163,184,.28) !important;
  --bs-table-striped-bg: #10243d !important;
  --bs-table-striped-color: #f8fbff !important;
  --bs-table-hover-bg: #12345e !important;
  --bs-table-hover-color: #ffffff !important;
  background: #0b1d35 !important;
  color: #f8fbff !important;
  border-color: rgba(148,163,184,.28) !important;
}

html.dark-mode .table > :not(caption) > * > *,
body.dark-mode .table > :not(caption) > * > * {
  background: #0b1d35 !important;
  color: #f8fbff !important;
  border-color: rgba(148,163,184,.28) !important;
}

html.dark-mode .table thead th,
body.dark-mode .table thead th {
  background: #071827 !important;
  color: #ffffff !important;
}

html.dark-mode .legend,
body.dark-mode .legend {
  background: #071827 !important;
  color: #ffffff !important;
  border-top-color: rgba(148,163,184,.28) !important;
}

html.dark-mode .legend span,
body.dark-mode .legend span {
  color: #ffffff !important;
  font-weight: 900 !important;
}

html.dark-mode .notification-icon,
body.dark-mode .notification-icon {
  color: #dbeafe !important;
}

html.dark-mode .top-user strong,
body.dark-mode .top-user strong {
  color: #ffffff !important;
}

html.dark-mode .top-user small,
body.dark-mode .top-user small {
  color: #b9c9df !important;
}

html.dark-mode .avatar-top,
html.dark-mode .avatar-small,
body.dark-mode .avatar-top,
body.dark-mode .avatar-small {
  background: #dbeafe !important;
  color: #071426 !important;
}

@media (max-width: 768px) {
  .brand-text {
    font-size: 16px !important;
    max-width: 150px !important;
  }

  .brand-icon {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    flex-basis: 50px !important;
  }
}

/* Fin patch V21 */

/* =========================================================
   FIX V22 - SIDEBAR RETRAÍDO/EXTENDIDO SIN CORTES
   Pegar al final. Unifica ancho del menú y margen del contenido.
   ========================================================= */
:root{
  --gr-sidebar-open: 300px;
  --gr-sidebar-closed: 96px;
  --gr-sidebar-bg: #071426;
  --gr-sidebar-bg2: #061225;
}

/* Desktop: el contenido SIEMPRE empieza después del sidebar */
@media (min-width: 993px){
  .app-shell{
    display:flex !important;
    min-height:100vh !important;
    overflow-x:hidden !important;
  }

  .sidebar{
    width:var(--gr-sidebar-open) !important;
    min-width:var(--gr-sidebar-open) !important;
    max-width:var(--gr-sidebar-open) !important;
    transform:none !important;
    left:0 !important;
    top:0 !important;
    bottom:0 !important;
    position:fixed !important;
    z-index:2000 !important;
    overflow:hidden !important;
  }

  .sidebar.collapsed{
    width:var(--gr-sidebar-closed) !important;
    min-width:var(--gr-sidebar-closed) !important;
    max-width:var(--gr-sidebar-closed) !important;
  }

  .main-content{
    margin-left:var(--gr-sidebar-open) !important;
    width:calc(100% - var(--gr-sidebar-open)) !important;
    max-width:calc(100% - var(--gr-sidebar-open)) !important;
    min-width:0 !important;
    overflow-x:hidden !important;
    transition:margin-left .22s ease,width .22s ease,max-width .22s ease !important;
  }

  .sidebar.collapsed + .main-content,
  body.sidebar-is-collapsed .main-content{
    margin-left:var(--gr-sidebar-closed) !important;
    width:calc(100% - var(--gr-sidebar-closed)) !important;
    max-width:calc(100% - var(--gr-sidebar-closed)) !important;
  }
}

/* Mobile/tablet: sidebar tipo drawer, no empuja el contenido */
@media (max-width: 992px){
  .sidebar{
    width:min(84vw,300px) !important;
    min-width:0 !important;
    max-width:min(84vw,300px) !important;
    transform:translateX(-105%) !important;
    position:fixed !important;
    z-index:3000 !important;
  }

  .sidebar.mobile-open{
    transform:translateX(0) !important;
  }

  .sidebar.collapsed{
    width:min(84vw,300px) !important;
    max-width:min(84vw,300px) !important;
  }

  .main-content,
  .sidebar.collapsed + .main-content,
  body.sidebar-is-collapsed .main-content{
    margin-left:0 !important;
    width:100% !important;
    max-width:100% !important;
  }
}

/* Logo superior del sidebar: alineado y sin corte */
.sidebar .brand-wrap{
  height:92px !important;
  min-height:92px !important;
  padding:0 18px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.sidebar .brand-link{
  width:100% !important;
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:14px !important;
  overflow:hidden !important;
}

.sidebar .brand-icon{
  width:56px !important;
  height:56px !important;
  min-width:56px !important;
  max-width:56px !important;
  flex:0 0 56px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:18px !important;
}

.sidebar .brand-text{
  flex:1 1 auto !important;
  min-width:0 !important;
  max-width:none !important;
  display:block !important;
  color:#ffffff !important;
  font-size:18px !important;
  line-height:1.05 !important;
  font-weight:950 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  text-shadow:none !important;
}

.sidebar.collapsed .brand-wrap{
  padding:0 !important;
}

.sidebar.collapsed .brand-link{
  justify-content:center !important;
  gap:0 !important;
}

.sidebar.collapsed .brand-text{
  display:none !important;
}

/* Menú: evita que los textos salten o se corten al expandir */
.sidebar .sidebar-nav{
  width:100% !important;
  padding-left:14px !important;
  padding-right:14px !important;
}

.sidebar .nav-link{
  width:100% !important;
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:14px !important;
  overflow:hidden !important;
}

.sidebar .nav-link > span:not(.nav-icon){
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}

.sidebar.collapsed .sidebar-nav{
  padding-left:12px !important;
  padding-right:12px !important;
}

.sidebar.collapsed .nav-link{
  justify-content:center !important;
  padding-left:0 !important;
  padding-right:0 !important;
  gap:0 !important;
}

.sidebar.collapsed .nav-link > span:not(.nav-icon){
  display:none !important;
}

/* Usuario inferior y botón modo oscuro alineados */
.sidebar .sidebar-footer{
  width:100% !important;
  padding:16px 18px 18px !important;
}

.sidebar .admin-mini{
  width:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  min-height:48px !important;
}

.sidebar .avatar-small,
.top-user .avatar-top{
  width:46px !important;
  height:46px !important;
  min-width:46px !important;
  display:grid !important;
  place-items:center !important;
  text-align:center !important;
  line-height:1 !important;
  font-size:15px !important;
  font-weight:950 !important;
  padding:0 !important;
}

.sidebar .admin-mini div{
  flex:1 1 auto !important;
  min-width:0 !important;
}

.sidebar .admin-mini strong,
.sidebar .admin-mini small{
  max-width:100% !important;
  display:block !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}

.sidebar .theme-toggle-btn{
  width:100% !important;
  min-height:48px !important;
  margin-top:14px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  overflow:hidden !important;
}

.sidebar.collapsed .sidebar-footer{
  padding-left:10px !important;
  padding-right:10px !important;
}

.sidebar.collapsed .admin-mini{
  justify-content:center !important;
}

.sidebar.collapsed .admin-mini div,
.sidebar.collapsed .theme-toggle-btn span,
.sidebar.collapsed .logout-link{
  display:none !important;
}

.sidebar.collapsed .theme-toggle-btn{
  justify-content:center !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

/* Topbar: que no quede debajo del menú al expandir */
.topbar{
  z-index:1000 !important;
}

/* Botón hamburguesa con tamaño estable */
.sidebar-toggle{
  flex:0 0 auto !important;
  width:50px !important;
  height:50px !important;
  display:grid !important;
  place-items:center !important;
}

@media (max-width: 576px){
  .sidebar .brand-wrap{height:82px !important;min-height:82px !important;}
  .sidebar .brand-icon{width:48px !important;height:48px !important;min-width:48px !important;flex-basis:48px !important;}
  .sidebar .brand-text{font-size:17px !important;}
}

/* =========================================================
   PATCH V23 - contratos historial + autos upload
   ========================================================= */
.contract-inline-form .form-control,
.contract-inline-form .form-select {
  min-width: 110px;
  height: 34px;
  font-size: 12px;
  padding: 6px 10px;
}
.contract-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.contract-preview .detail-grid {
  margin-top: 10px;
}
.auto-upload-preview img {
  border: 1px solid rgba(148, 163, 184, .22);
  background: #fff;
}
html.dark-mode .auto-upload-preview img,
body.dark-mode .auto-upload-preview img {
  border-color: rgba(148, 163, 184, .32);
  background: #081827;
}
@media (max-width: 768px) {
  .contract-inline-form {
    min-width: 180px;
  }
  .contract-actions {
    justify-content: flex-start;
  }
}

/* =========================================================
   PATCH V24 - ACCIONES PREMIUM DEL HISTORIAL DE CONTRATOS
   ========================================================= */
.contract-history-card {
  overflow: visible;
}

.contract-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

.contract-table {
  min-width: 1050px;
  margin-bottom: 0;
}

.contract-table > :not(caption) > * > * {
  padding-top: 13px;
  padding-bottom: 13px;
  vertical-align: middle;
}

.contract-actions-heading,
.contract-actions-cell {
  width: 132px;
  min-width: 132px;
}

.contract-actions-trigger {
  min-width: 116px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 12px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

.contract-save-number {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
}

.contract-status-select {
  min-width: 116px !important;
}

.contract-actions-modal {
  border: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .25);
}

.contract-actions-modal .modal-header {
  padding: 20px 22px 16px;
  align-items: center;
}

.contract-actions-modal .modal-body {
  padding: 4px 22px 22px;
}

.contract-modal-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.contract-modal-heading h5 {
  margin: 0;
  font-size: 20px;
  font-weight: 950;
  color: #0f172a;
}

.contract-modal-heading small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-weight: 750;
}

.contract-modal-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eaf1ff;
  color: #2563eb;
  font-size: 21px;
}

.contract-modal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 18px;
}

.contract-modal-summary > div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #e3eaf4;
  border-radius: 15px;
  background: #f8fafc;
}

.contract-modal-summary span {
  display: block;
  margin-bottom: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.contract-modal-summary strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.contract-modal-summary-wide {
  grid-column: 1 / -1;
}

.contract-modal-status {
  color: #15803d !important;
}

.contract-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contract-action-card {
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.contract-action-card:hover {
  transform: translateY(-2px);
  border-color: #93b4ff;
  background: #fbfdff;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .12);
}

.contract-action-card.is-primary {
  border-color: rgba(37, 99, 235, .32);
  background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(59, 130, 246, .03));
}

.contract-action-card > span:nth-child(2) {
  min-width: 0;
}

.contract-action-card strong,
.contract-action-card small {
  display: block;
}

.contract-action-card strong {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.contract-action-card small {
  margin-top: 2px;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.contract-action-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 17px;
}

.contract-action-icon.is-neutral { background: #eef2f7; color: #334155; }
.contract-action-icon.is-purple { background: #f2eafe; color: #7c3aed; }
.contract-action-icon.is-blue { background: #dbeafe; color: #1d4ed8; }
.contract-action-icon.is-blue-soft { background: #eaf1ff; color: #2563eb; }
.contract-action-icon.is-green { background: #dcfce7; color: #15803d; }

.contract-action-arrow {
  color: #94a3b8;
  font-size: 13px;
}

.contract-modal-footer {
  padding: 14px 22px 20px;
  justify-content: space-between;
}

html.dark-mode .contract-actions-modal,
body.dark-mode .contract-actions-modal {
  background: #0b1d35 !important;
  color: #eaf2ff !important;
}

html.dark-mode .contract-modal-heading h5,
body.dark-mode .contract-modal-heading h5,
html.dark-mode .contract-modal-summary strong,
body.dark-mode .contract-modal-summary strong,
html.dark-mode .contract-action-card,
body.dark-mode .contract-action-card,
html.dark-mode .contract-action-card strong,
body.dark-mode .contract-action-card strong {
  color: #eaf2ff !important;
}

html.dark-mode .contract-modal-heading small,
body.dark-mode .contract-modal-heading small,
html.dark-mode .contract-modal-summary span,
body.dark-mode .contract-modal-summary span,
html.dark-mode .contract-action-card small,
body.dark-mode .contract-action-card small {
  color: #9fb2cc !important;
}

html.dark-mode .contract-modal-summary > div,
body.dark-mode .contract-modal-summary > div {
  background: #081827 !important;
  border-color: rgba(148, 163, 184, .24) !important;
}

html.dark-mode .contract-action-card,
body.dark-mode .contract-action-card {
  background: #081827 !important;
  border-color: rgba(148, 163, 184, .24) !important;
}

html.dark-mode .contract-action-card:hover,
body.dark-mode .contract-action-card:hover {
  background: #10243d !important;
  border-color: #3b82f6 !important;
}

html.dark-mode .contract-action-card.is-primary,
body.dark-mode .contract-action-card.is-primary {
  background: rgba(37, 99, 235, .14) !important;
  border-color: rgba(96, 165, 250, .42) !important;
}

html.dark-mode .contract-modal-icon,
body.dark-mode .contract-modal-icon {
  background: #102a54 !important;
  color: #93c5fd !important;
}

html.dark-mode .contract-action-icon.is-neutral,
body.dark-mode .contract-action-icon.is-neutral { background: #1e293b !important; color: #cbd5e1 !important; }
html.dark-mode .contract-action-icon.is-purple,
body.dark-mode .contract-action-icon.is-purple { background: rgba(124,58,237,.2) !important; color: #c4b5fd !important; }
html.dark-mode .contract-action-icon.is-blue,
body.dark-mode .contract-action-icon.is-blue,
html.dark-mode .contract-action-icon.is-blue-soft,
body.dark-mode .contract-action-icon.is-blue-soft { background: rgba(37,99,235,.22) !important; color: #bfdbfe !important; }
html.dark-mode .contract-action-icon.is-green,
body.dark-mode .contract-action-icon.is-green { background: rgba(22,163,74,.2) !important; color: #bbf7d0 !important; }

@media (max-width: 768px) {
  .contract-actions-heading,
  .contract-actions-cell {
    width: 112px;
    min-width: 112px;
  }

  .contract-actions-trigger {
    min-width: 42px;
    width: 42px;
    padding-left: 0;
    padding-right: 0;
  }

  .contract-actions-trigger span {
    display: none;
  }

  .contract-modal-actions,
  .contract-modal-summary {
    grid-template-columns: 1fr;
  }

  .contract-modal-summary-wide {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .contract-actions-modal {
    border-radius: 22px;
  }

  .contract-actions-modal .modal-header,
  .contract-actions-modal .modal-body,
  .contract-modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .contract-modal-footer {
    gap: 10px;
    flex-direction: column-reverse;
  }

  .contract-modal-footer .btn {
    width: 100%;
  }
}

/* =========================================================
   GREEN ROUTE V30 - RESERVAS CON CAMBIO DE VEHICULO
   Calendario simplificado: azul activa, verde finalizada,
   rojo cancelada/no concretada y un solo simbolo ⇄ para cambios.
   ========================================================= */
.booking.status-activa,
.badge-soft.status-activa{
  background:#dbeafe!important;
  color:#0b48d8!important;
  border-color:#2563eb!important;
}
.booking.status-activa .dot,
.badge-soft.status-activa .dot,
.dot-active{background:#2563eb!important;}

.booking.status-finalizada,
.badge-soft.status-finalizada{
  background:#dcfce7!important;
  color:#166534!important;
  border-color:#16a34a!important;
}
.booking.status-finalizada .dot,
.badge-soft.status-finalizada .dot,
.dot-finished{background:#16a34a!important;}

.booking.status-cancelada,
.badge-soft.status-cancelada{
  background:#fee2e2!important;
  color:#991b1b!important;
  border-color:#ef4444!important;
}
.booking.status-cancelada .dot,
.badge-soft.status-cancelada .dot,
.dot-cancelled{background:#ef4444!important;}

.booking-cancelled-history{opacity:.70;}
.booking-changed{box-shadow:0 0 0 2px rgba(37,99,235,.08),0 5px 14px rgba(37,99,235,.12);}
.simple-calendar-legend{gap:22px!important;}
.simple-calendar-legend .legend-change{color:#2563eb;font-weight:900;}

.current-auto-control{
  min-height:48px;border:1px solid #d7e2ef;border-radius:14px;background:#fff;
  display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px 8px 14px;
}
.current-auto-control strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.vehicle-changed-link{display:inline-flex;align-items:center;gap:5px;margin-top:4px;font-size:12px;font-weight:900;color:#2563eb;text-decoration:none;}
.vehicle-changed-link:hover{text-decoration:underline;}

.movement-current-card{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px;
  background:#f8fbff;border:1px solid #dbe7f4;border-radius:16px;
}
.movement-current-card>div{min-width:0;}
.movement-current-card small{display:block;color:#64748b;font-size:12px;margin-bottom:3px;}
.movement-current-card strong{display:block;color:#0f172a;overflow-wrap:anywhere;}
.movement-mode{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.movement-option{display:flex;gap:10px;align-items:flex-start;padding:14px;border:1px solid #dbe7f4;border-radius:16px;background:#fff;cursor:pointer;}
.movement-option input{margin-top:4px;}
.movement-option span{display:block;}
.movement-option strong,.movement-option small{display:block;}
.movement-option small{color:#64748b;margin-top:3px;line-height:1.35;}
.vehicle-timeline{display:grid;gap:12px;}
.vehicle-timeline-item{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:flex-start;padding:12px;border:1px solid #e2e8f0;border-radius:15px;background:#fff;}
.timeline-mark{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#eaf1ff;color:#2563eb;font-weight:950;}
.vehicle-timeline-item.is-change .timeline-mark{background:#dbeafe;color:#1d4ed8;}
.vehicle-timeline-item strong,.vehicle-timeline-item small,.vehicle-timeline-item p{display:block;}
.vehicle-timeline-item small{color:#64748b;margin-top:2px;}
.vehicle-timeline-item p{margin:5px 0 0;color:#334155;font-size:13px;}

html.dark-mode .booking.status-activa,
body.dark-mode .booking.status-activa,
html.dark-mode .badge-soft.status-activa,
body.dark-mode .badge-soft.status-activa{
  background:rgba(37,99,235,.22)!important;color:#dbeafe!important;border-color:#3b82f6!important;
}
html.dark-mode .booking.status-finalizada,
body.dark-mode .booking.status-finalizada,
html.dark-mode .badge-soft.status-finalizada,
body.dark-mode .badge-soft.status-finalizada{
  background:rgba(34,197,94,.20)!important;color:#dcfce7!important;border-color:#22c55e!important;
}
html.dark-mode .booking.status-cancelada,
body.dark-mode .booking.status-cancelada,
html.dark-mode .badge-soft.status-cancelada,
body.dark-mode .badge-soft.status-cancelada{
  background:rgba(239,68,68,.20)!important;color:#fee2e2!important;border-color:#ef4444!important;
}
html.dark-mode .current-auto-control,
body.dark-mode .current-auto-control,
html.dark-mode .movement-option,
body.dark-mode .movement-option,
html.dark-mode .vehicle-timeline-item,
body.dark-mode .vehicle-timeline-item,
html.dark-mode .movement-current-card,
body.dark-mode .movement-current-card{
  background:#0b1d35!important;color:#eaf2ff!important;border-color:rgba(148,163,184,.25)!important;
}
html.dark-mode .current-auto-control strong,
body.dark-mode .current-auto-control strong,
html.dark-mode .movement-current-card strong,
body.dark-mode .movement-current-card strong,
html.dark-mode .movement-option strong,
body.dark-mode .movement-option strong,
html.dark-mode .vehicle-timeline-item strong,
body.dark-mode .vehicle-timeline-item strong{color:#f8fbff!important;}
html.dark-mode .movement-current-card small,
body.dark-mode .movement-current-card small,
html.dark-mode .movement-option small,
body.dark-mode .movement-option small,
html.dark-mode .vehicle-timeline-item small,
body.dark-mode .vehicle-timeline-item small,
html.dark-mode .vehicle-timeline-item p,
body.dark-mode .vehicle-timeline-item p{color:#a9bdd7!important;}
html.dark-mode .simple-calendar-legend .legend-change,
body.dark-mode .simple-calendar-legend .legend-change{color:#93c5fd!important;}

@media(max-width:900px){
  .movement-current-card,.movement-mode{grid-template-columns:1fr;}
}


/* =========================================================
   V31 - CORRECCIÓN ADMINISTRATIVA DE VEHÍCULO
   ========================================================= */
.vehicle-admin-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.vehicle-admin-actions .btn{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.correction-explainer{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:16px;color:#1e3a8a}
.correction-explainer p{margin:3px 0 0;color:#475569;font-size:13px;line-height:1.45}
.correction-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#dbeafe;color:#1d4ed8;flex:0 0 auto;font-size:18px}
.correction-confirm{display:flex;gap:11px;align-items:flex-start;padding:14px;border:1px solid #dbe7f4;border-radius:15px;background:#fff;cursor:pointer}
.correction-confirm input{margin-top:4px;width:17px;height:17px;flex:0 0 auto}
.correction-confirm span,.correction-confirm strong,.correction-confirm small{display:block}
.correction-confirm small{color:#64748b;margin-top:3px;line-height:1.4}
.correction-history{display:grid;gap:10px}
.correction-history-item{display:grid;grid-template-columns:1fr auto 1fr;gap:6px 8px;align-items:center;padding:12px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}
.correction-history-item strong{font-size:12.5px;overflow-wrap:anywhere}
.correction-history-item small{grid-column:1/-1;color:#64748b;font-size:11.5px}
.correction-arrow{color:#2563eb;font-weight:950;text-align:center}

html.dark-mode .correction-explainer,body.dark-mode .correction-explainer{background:rgba(37,99,235,.15)!important;border-color:rgba(96,165,250,.38)!important;color:#dbeafe!important}
html.dark-mode .correction-explainer p,body.dark-mode .correction-explainer p{color:#a9bdd7!important}
html.dark-mode .correction-icon,body.dark-mode .correction-icon{background:rgba(37,99,235,.25)!important;color:#bfdbfe!important}
html.dark-mode .correction-confirm,body.dark-mode .correction-confirm,
html.dark-mode .correction-history-item,body.dark-mode .correction-history-item{background:#0b1d35!important;border-color:rgba(148,163,184,.25)!important;color:#eef6ff!important}
html.dark-mode .correction-confirm small,body.dark-mode .correction-confirm small,
html.dark-mode .correction-history-item small,body.dark-mode .correction-history-item small{color:#a9bdd7!important}
html.dark-mode .correction-history-item strong,body.dark-mode .correction-history-item strong{color:#f8fbff!important}

@media(max-width:768px){
  .vehicle-admin-actions{display:grid;grid-template-columns:1fr}
  .vehicle-admin-actions .btn{width:100%}
  .correction-history-item{grid-template-columns:1fr}
  .correction-arrow{text-align:left}
}
