*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f4f7fb;color:#172033}.app-shell{min-height:100vh;display:flex}.sidebar{width:280px;background:#111827;color:#fff;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:10;box-shadow:12px 0 30px rgba(0,0,0,.12)}.brand{display:flex;gap:12px;align-items:center;padding:24px 22px;border-bottom:1px solid rgba(255,255,255,.08)}.brand-icon{width:46px;height:46px;border-radius:16px;background:linear-gradient(135deg,var(--primary),#22c55e);display:grid;place-items:center;font-size:26px;font-weight:900}.brand small,.user-mini small{display:block;color:#9ca3af;margin-top:3px}.menu{padding:18px 14px;display:flex;flex-direction:column;gap:8px;flex:1}.menu a{color:#e5e7eb;text-decoration:none;padding:12px 14px;border-radius:14px;display:flex;gap:10px;align-items:center;transition:.2s}.menu a:hover{background:rgba(255,255,255,.09);transform:translateX(3px)}.sidebar-footer{padding:18px 20px;border-top:1px solid rgba(255,255,255,.08)}.logout{display:block;margin-top:12px;background:#ef4444;color:#fff;text-decoration:none;text-align:center;padding:10px;border-radius:12px}.main-content{margin-left:280px;flex:1}.topbar{background:#fff;padding:22px 30px;display:flex;gap:16px;align-items:center;border-bottom:1px solid #e5e7eb;position:sticky;top:0;z-index:5}.topbar h1{margin:0;font-size:28px}.topbar p{margin:5px 0 0;color:#6b7280}.menu-toggle{display:none;border:0;background:#eef2ff;padding:10px 12px;border-radius:12px;font-size:20px}.content{padding:28px}.grid{display:grid;gap:18px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:22px;box-shadow:0 12px 30px rgba(15,23,42,.06)}.stat{display:flex;align-items:center;justify-content:space-between}.stat .icon{width:48px;height:48px;border-radius:16px;background:rgba(13,110,253,.12);display:grid;place-items:center;font-size:23px}.stat h3{margin:0;color:#6b7280;font-size:14px}.stat strong{display:block;font-size:28px;margin-top:5px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:8px 0 18px}.section-title h2{margin:0;font-size:22px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;border:0;border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer;line-height:1.2}.btn-primary{background:var(--primary);color:#fff}.btn-secondary{background:#e5e7eb;color:#111827}.btn-success{background:#22c55e;color:#fff}.btn-danger{background:#ef4444;color:#fff}.btn-warning{background:#f59e0b;color:#111827}.btn-dark{background:#111827;color:#fff}.btn-sm{padding:7px 10px;font-size:13px}.table-wrap{overflow:auto;background:#fff;border-radius:20px;border:1px solid #e5e7eb}.table{width:100%;border-collapse:collapse;min-width:780px}.table th,.table td{padding:14px 16px;border-bottom:1px solid #eef2f7;text-align:left;vertical-align:top}.table th{font-size:13px;color:#64748b;background:#f8fafc;text-transform:uppercase;letter-spacing:.03em}.table tr:hover td{background:#fbfdff}.form{display:grid;gap:14px}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-group label{display:block;font-weight:700;margin-bottom:7px;color:#374151}.form-control,.form-select,textarea{width:100%;border:1px solid #d1d5db;border-radius:12px;padding:11px 13px;font:inherit;background:#fff}.form-control:focus,.form-select:focus,textarea:focus{outline:2px solid rgba(13,110,253,.16);border-color:var(--primary)}textarea{min-height:110px;resize:vertical}.actions{display:flex;gap:8px;flex-wrap:wrap}.badge{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:12px;font-weight:800}.badge-success{background:#dcfce7;color:#166534}.badge-danger{background:#fee2e2;color:#991b1b}.badge-warning{background:#fef3c7;color:#92400e}.badge-info{background:#dbeafe;color:#1e40af}.badge-primary{background:#e0e7ff;color:#3730a3}.badge-dark{background:#111827;color:#fff}.badge-secondary{background:#e5e7eb;color:#374151}.alert{padding:13px 15px;border-radius:14px;margin-bottom:16px;font-weight:700}.alert-success{background:#dcfce7;color:#166534}.alert-danger{background:#fee2e2;color:#991b1b}.alert-warning{background:#fef3c7;color:#92400e}.alert-info{background:#dbeafe;color:#1e40af}.login-body{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top left,#dbeafe,transparent 35%),linear-gradient(135deg,#0f172a,#1e293b)}.login-card{width:min(440px,92vw);background:#fff;border-radius:28px;padding:34px;box-shadow:0 30px 80px rgba(0,0,0,.25)}.login-logo{width:70px;height:70px;border-radius:24px;background:linear-gradient(135deg,#0d6efd,#22c55e);display:grid;place-items:center;color:#fff;font-size:40px;font-weight:900;margin-bottom:16px}.muted{color:#6b7280}.searchbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.searchbar input,.searchbar select{max-width:320px}.detail-row{display:grid;grid-template-columns:140px 1fr 110px 140px 140px 44px;gap:8px;align-items:center;margin-bottom:8px}.print-box{background:#fff;border-radius:20px;padding:24px;border:1px solid #e5e7eb}.hero{background:linear-gradient(135deg,var(--primary),#111827);color:#fff;border-radius:26px;padding:28px;display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;overflow:hidden;position:relative}.hero:after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.12);right:-60px;top:-60px}.hero h2{font-size:30px;margin:0 0 8px}.hero p{margin:0;color:#dbeafe}.kpi-note{font-size:12px;color:#6b7280;margin-top:6px}@media(max-width:1050px){.grid-4{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(2,1fr)}}@media(max-width:820px){.sidebar{transform:translateX(-100%);transition:.25s}.sidebar.open{transform:translateX(0)}.main-content{margin-left:0}.menu-toggle{display:block}.grid-4,.grid-3,.grid-2,.form-row{grid-template-columns:1fr}.content{padding:18px}.topbar{padding:18px}.detail-row{grid-template-columns:1fr}.table{min-width:680px}}@media print{.sidebar,.topbar,.actions,.btn,.searchbar{display:none!important}.main-content{margin:0}.content{padding:0}.card,.table-wrap,.print-box{box-shadow:none;border:0}.app-shell{display:block}body{background:#fff}}
/* Ajustes de navegacion, sidebar y paneles principales */
.sidebar{overflow:hidden}.menu{overflow:auto;padding-bottom:12px}.menu-label{margin:12px 12px 4px;color:#9ca3af;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.menu a.active{background:rgba(255,255,255,.14);color:#fff}.brand-logo{width:46px;height:46px;border-radius:16px;object-fit:contain;background:#fff;padding:5px}.topbar{justify-content:space-between;gap:18px}.topbar-left{display:flex;align-items:center;gap:16px;min-width:0}.topbar-title{min-width:0}.topbar-title h1,.topbar-title p{overflow:hidden;text-overflow:ellipsis}.topbar-actions{display:flex;align-items:center;gap:12px;margin-left:auto}.topbar-user{text-align:right;line-height:1.2}.topbar-user strong{display:block;font-size:14px;color:#111827}.topbar-user small{display:block;color:#64748b;font-size:12px;margin-top:3px}.topbar-logout{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-decoration:none;border-radius:12px;background:#ef4444;color:#fff;font-weight:900;padding:10px 13px;box-shadow:0 10px 22px rgba(239,68,68,.18)}.topbar-logout:hover{background:#dc2626}.sidebar-backdrop{display:none;position:fixed;inset:0;border:0;background:rgba(15,23,42,.48);z-index:9}.hero,.dashboard-hero,.profile-hero,.veh-hero,.veh-form-hero,.veh-edit-hero,.hist-search-hero,.hist-hero,.cotizacion-hero,.order-view-hero,.order-form-hero,.payment-hero,.pending-hero,.report-header,.form-header-card{isolation:isolate}.hero>*,.dashboard-hero>*,.profile-hero>*,.veh-hero>*,.veh-form-hero>*,.veh-edit-hero>*,.hist-search-hero>*,.hist-hero>*,.cotizacion-hero>*,.order-view-hero>*,.order-form-hero>*,.payment-hero>*,.pending-hero>*,.report-header>*,.form-header-card>*{position:relative;z-index:1}.hero .actions,.dashboard-hero .actions,.quick-actions,.history-actions,.order-hero-actions{position:relative;z-index:2}.hero,.dashboard-hero,.profile-hero,.veh-hero,.veh-form-hero,.veh-edit-hero,.hist-search-hero,.hist-hero,.cotizacion-hero,.order-view-hero,.order-form-hero,.payment-hero,.pending-hero{max-width:100%}.hero .btn,.dashboard-hero .btn,.profile-hero .btn,.veh-hero .btn,.veh-form-hero .btn,.veh-edit-hero .btn,.hist-search-hero .btn,.hist-hero .btn,.cotizacion-hero .btn,.order-view-hero .btn,.order-form-hero .btn,.payment-hero .btn,.pending-hero .btn{white-space:normal;text-align:center}@media(max-width:820px){body.sidebar-open{overflow:hidden}.sidebar.open+.sidebar-backdrop{display:block}.topbar{align-items:flex-start}.topbar-actions{margin-left:0}.topbar-user{display:none}.topbar-logout{padding:9px 11px;font-size:13px}.topbar-title h1{font-size:22px}.topbar-title p{font-size:13px}.hero,.dashboard-hero,.profile-hero,.veh-hero,.veh-form-hero,.veh-edit-hero,.hist-search-hero,.hist-hero,.cotizacion-hero,.order-view-hero,.order-form-hero,.payment-hero,.pending-hero,.report-header{border-radius:20px;padding:20px!important}.hero,.profile-hero,.veh-hero,.veh-form-hero,.veh-edit-hero,.pending-hero,.report-header{display:flex;flex-direction:column;align-items:flex-start}.quick-actions,.actions,.history-actions{width:100%;justify-content:flex-start}.quick-actions .btn,.hero .actions .btn,.profile-hero .actions .btn,.veh-hero .actions .btn,.hist-search-form .btn{width:100%}}
