:root{--ink:#1e2925;--muted:#738078;--line:#e4e9e4;--panel:#fff;--bg:#f4f6f3;--green:#1f5947;--green-2:#2d765c;--mint:#e8f2eb;--amber:#b47731;--amber-soft:#fff4df;--blue:#edf4fa;--danger:#b54d41;--shadow:0 18px 44px rgba(33,53,43,.055);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-size:15px;line-height:1.5}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:flex}.sidebar{width:254px;flex:0 0 254px;background:#17211d;color:#e9f0eb;padding:26px 18px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.brand{display:flex;align-items:center;gap:11px;color:inherit;margin:0 10px 28px}.brand-mark{width:42px;height:42px;border-radius:14px;display:block;flex:0 0 auto;object-fit:contain}.brand b{display:block;letter-spacing:-.025em;font-size:16px;font-weight:800}.brand small{display:block;color:#9eaaa2;font-size:10px;letter-spacing:.02em;margin-top:0}.shop-chip{border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.045);border-radius:15px;padding:14px 15px;margin-bottom:30px}.shop-chip strong,.shop-chip small{display:block}.shop-chip strong{font-size:15px;margin:5px 0 2px}.shop-chip small{font-size:12px;color:#9eaaa2}.eyebrow,.nav-label{font-size:10px;letter-spacing:.16em;font-weight:800;color:#a8783d}.shop-chip .eyebrow{color:#a9b9ae}.nav-label{padding:0 12px;color:#82928a;margin-bottom:9px}.main-nav{display:grid;gap:4px}.main-nav a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:11px;font-size:13px;font-weight:650;color:#b4c0b8;transition:.16s ease}.main-nav a span{width:22px;color:#9aab9f;font-size:18px;text-align:center}.main-nav a:hover,.main-nav a.active{background:#e8f2eb;color:#1e5947}.main-nav a.active span{color:#1e5947}.sidebar-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.14);padding:17px 3px 0;display:flex;gap:10px;align-items:center}.sidebar-bottom>div{min-width:0;flex:1}.sidebar-bottom b,.sidebar-bottom small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-bottom b{font-size:12px}.sidebar-bottom small{font-size:11px;color:#9eaaa2}.avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#e5f0e9;color:var(--green);font-size:13px;font-weight:800;flex:0 0 auto}.icon-button{border:1px solid rgba(255,255,255,.2);background:transparent;color:#d7e1da;border-radius:9px;width:31px;height:31px}.main-area{min-width:0;flex:1}.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 38px;background:rgba(255,255,255,.88);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5;backdrop-filter:blur(16px)}.topbar-shop{font-weight:700;font-size:13px}.crumb{color:#89958e;margin-left:10px;font-size:13px}.secure-indicator{font-size:12px;color:#6b7a70}.secure-indicator i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#35a375;margin:0 7px 1px 0}.page-wrap{max-width:1450px;margin:auto;padding:36px 38px 24px}.page-heading{margin:3px 0 25px}.page-heading h1{font-size:clamp(30px,3.5vw,43px);letter-spacing:-.045em;line-height:1.08;margin:8px 0 8px}.page-heading p,.panel-heading p{color:var(--muted);margin:0;font-size:14px}.heading-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.panel{background:var(--panel);border:1px solid #e9ede8;border-radius:18px;padding:24px;margin-bottom:20px;box-shadow:var(--shadow)}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.panel-heading h2{font-size:20px;letter-spacing:-.025em;margin:5px 0 5px}.panel-heading .eyebrow{color:#a8783d}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:10px;padding:12px 16px;font-weight:750;font-size:13px;transition:transform .15s,background .15s;white-space:nowrap}.button:hover{transform:translateY(-1px)}.button:disabled{opacity:.55;cursor:wait;transform:none}.button.primary{background:var(--green);color:white;box-shadow:0 8px 18px rgba(31,89,71,.14)}.button.primary:hover{background:#164a39}.button.secondary{background:var(--mint);color:var(--green)}.button.whatsapp{background:#e8f5ed;color:#16804e}.button.ghost{background:#f2f4f1;color:#57665d}.button.full{width:100%}.button.tiny{padding:7px 10px;font-size:11px;border-radius:8px}.soft-tag{background:#fff4e1;color:#a56b28;border-radius:999px;padding:7px 12px;font-size:11px;font-weight:800;letter-spacing:.1em}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.stat-card{background:white;border:1px solid var(--line);border-radius:16px;padding:21px 22px;box-shadow:var(--shadow)}.stat-card>span,.stat-card small{display:block;color:var(--muted);font-size:12px}.stat-card strong{display:block;font-size:30px;letter-spacing:-.04em;margin:6px 0 2px}.stat-dark{background:#1b4235;color:#f4faf6;border-color:#1b4235}.stat-dark>span,.stat-dark small{color:#c0d4c8}.stat-warn{background:#fff9ee;border-color:#f2dfbd}.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.quick-card{display:flex;align-items:center;gap:12px;padding:15px;background:#fff;border:1px solid var(--line);border-radius:14px;transition:.16s}.quick-card:hover{border-color:#a7c4ae;transform:translateY(-2px)}.quick-card div{min-width:0;flex:1}.quick-card b,.quick-card small{display:block}.quick-card b{font-size:12px}.quick-card small{font-size:11px;color:var(--muted);margin-top:3px}.quick-icon{width:36px;height:36px;border-radius:12px;background:var(--mint);color:var(--green);display:grid;place-items:center;font-size:19px;flex:0 0 auto}.quick-icon.amber{background:#fff1dc;color:#aa722d}.quick-icon.blue{background:var(--blue);color:#3f779c}.quick-arrow{font-size:18px;color:#82948a}.table-wrap{width:100%;overflow:auto}table{border-collapse:collapse;width:100%;min-width:720px;font-size:12px}th{text-align:left;color:#7c8880;letter-spacing:.07em;text-transform:uppercase;font-size:10px;padding:12px 12px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:13px 12px;border-bottom:1px solid #eef1ed;vertical-align:middle}tbody tr:last-child td{border-bottom:0}.table-sub{display:block;color:#8b968f;font-size:10px;margin-top:3px}.status{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#f1f3f0;color:#607066;font-size:10px;font-weight:800;white-space:nowrap}.status-recibido,.status-diagnostico,.status-presupuestado,.status-warning{background:#fff3dd;color:#a96d23}.status-aprobado,.status-en_proceso,.status-listo,.status-entregado,.status-ok{background:#e7f4eb;color:#26754b}.status-cancelado,.status-rechazado,.status-vencido{background:#fff0ed;color:#b84f42}.empty-state{text-align:center;padding:38px 20px;color:var(--muted)}.empty-icon{width:47px;height:47px;margin:0 auto 13px;border-radius:15px;background:var(--mint);color:var(--green);display:grid;place-items:center;font-size:23px}.empty-state h3{color:var(--ink);margin:0 0 5px;font-size:17px}.empty-state p{margin:0 0 17px;font-size:13px}.form-panel{max-width:none}.form-stack{display:grid;gap:15px}.form-stack label,.search-form>label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#4e5d54}.form-stack label small{display:inline;color:#95a098;font-size:10px;font-weight:500}.form-stack input,.form-stack select,.form-stack textarea,.inline-form select,.stock-form input,.stock-form select{min-width:0;width:100%;border:1px solid #dfe6df;border-radius:9px;background:#fff;color:var(--ink);padding:10px 11px;outline:none;font-size:12px}.form-stack input:focus,.form-stack select:focus,.form-stack textarea:focus,.search-control input:focus{border-color:#75a389;box-shadow:0 0 0 3px rgba(66,130,94,.1)}textarea{resize:vertical}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.form-divider{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:15px;color:#a8783d;font-size:10px;letter-spacing:.12em;font-weight:800}.form-divider small{color:#91a096;font-size:10px;letter-spacing:0;font-weight:500}.split-layout{display:grid;grid-template-columns:minmax(330px,.95fr) minmax(400px,1.05fr);gap:18px;align-items:start}.customer-list{display:grid}.customer-row{display:flex;align-items:flex-start;gap:12px;padding:13px 0;border-bottom:1px solid #edf0ec}.customer-row:last-child{border:0}.avatar-large{width:39px;height:39px}.customer-info{min-width:0;flex:1}.customer-info>b,.customer-info>small,.vehicle-chip,.muted-mini{display:block}.customer-info>b{font-size:13px}.customer-info>small{font-size:11px;color:var(--muted);margin-top:2px}.vehicle-chip{width:max-content;max-width:100%;margin-top:7px;padding:4px 8px;border-radius:999px;background:#edf4ee;color:#38654e;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.muted-mini{font-size:10px;color:#9aa49d;margin-top:6px}.vehicle-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:13px}.vehicle-card{border:1px solid var(--line);border-radius:14px;padding:17px;background:#fcfdfb}.vehicle-symbol{width:35px;height:35px;border-radius:11px;background:#eef3e7;color:var(--green);display:grid;place-items:center;margin-bottom:17px}.vehicle-card h3{margin:4px 0;font-size:16px}.vehicle-card p,.vehicle-card small{font-size:11px;color:var(--muted);margin:0}.back-link{display:block;color:var(--green);font-size:12px;font-weight:700;margin-bottom:16px}.inline-form{display:flex;align-items:center;gap:6px}.inline-form select{width:auto;max-width:135px;padding:7px;font-size:11px}.split-layout .list-panel{max-height:900px;overflow:auto}.quote-lines{display:grid;gap:8px}.quote-line{display:grid;grid-template-columns:140px minmax(160px,1fr) 85px 150px 30px;gap:9px;align-items:end;padding:11px;background:#f7f9f6;border-radius:11px}.quote-line label{font-size:10px!important}.quote-line input,.quote-line select{padding:9px!important;font-size:11px!important}.remove-line{width:30px;height:35px;border:0;border-radius:8px;background:#ffefec;color:var(--danger);font-size:19px}.quote-list{display:grid;gap:11px}.quote-card{border:1px solid var(--line);border-radius:14px;padding:16px 18px;display:flex;justify-content:space-between;gap:20px}.quote-number{color:#ad7735;font-size:10px;font-weight:850;letter-spacing:.12em}.quote-card h3{font-size:15px;margin:4px 0}.quote-card p,.quote-card small{margin:0;color:var(--muted);font-size:11px}.quote-card-total{display:flex;align-items:flex-end;flex-direction:column;gap:8px;min-width:230px}.quote-card-total>strong{font-size:20px}.quote-actions{display:flex;gap:6px}.stock-form{display:flex;align-items:center;gap:5px;min-width:400px}.stock-form input{width:90px;padding:7px}.stock-form select{width:90px;padding:7px}.stock-form input[name=reason]{width:125px}.movement-list{display:grid}.movement-row{display:flex;gap:11px;align-items:center;border-bottom:1px solid #eef1ed;padding:12px 2px}.movement-row:last-child{border:0}.movement-row>span:nth-child(2){min-width:0;flex:1}.movement-row b,.movement-row small{display:block}.movement-row b{font-size:12px}.movement-row small{font-size:10px;color:var(--muted);margin-top:2px}.movement-row strong{font-size:12px}.movement-sign{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;font-weight:900}.movement-sign.positive{background:#e7f4eb;color:#26754b}.movement-sign.negative{background:#fff0ed;color:#b84f42}.muted-copy{color:var(--muted);font-size:12px}.manual-search{padding:22px}.search-form>label{font-size:13px;margin-bottom:9px}.search-control{display:flex;align-items:center;gap:10px}.search-control>span{font-size:23px;color:#87968d;margin-left:5px}.search-control input{flex:1;min-width:0;border:1px solid var(--line);border-radius:10px;padding:12px;outline:none}.manual-note{margin-top:17px;background:#fff8e8;border:1px solid #f3e3c4;border-radius:11px;padding:12px 14px;display:grid;gap:3px;font-size:11px;color:#82643a}.manual-note b{font-size:12px}.manual-results{display:grid;gap:15px}.spec-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.spec-head h2{margin:5px 0 2px;font-size:24px}.spec-head p{margin:0;color:var(--muted);font-size:12px}.spec-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.spec-facts>div{padding:12px;background:#f6f8f5;border-radius:10px}.spec-facts small,.spec-facts b{display:block}.spec-facts small{color:var(--muted);font-size:10px}.spec-facts b{font-size:12px;margin-top:5px}.parts-heading{display:flex;align-items:center;justify-content:space-between;margin:16px 0 5px}.parts-heading h3{font-size:14px;margin:0}.parts-heading span,.source-note{font-size:10px;color:var(--muted)}.source-note{margin-top:12px;line-height:1.7}.source-note a{color:var(--green);font-weight:700}.footer{text-align:center;color:#99a49c;font-size:10px;padding:18px 0}.flash-stack{display:grid;gap:8px;margin-bottom:16px}.flash{padding:11px 14px;border-radius:10px;font-size:12px;font-weight:650}.flash.success{background:#e6f4eb;color:#236d47}.flash.error{background:#fff0ed;color:#a84337}.auth-page{min-height:100vh;padding:28px;display:grid;place-items:center;background:radial-gradient(ellipse at 13% 90%,#e2ede4 0,transparent 42%),radial-gradient(ellipse at 90% 5%,#f1e6d5 0,transparent 38%),#f3f5f1}.login-layout{width:min(100%,980px);display:grid;grid-template-columns:1.05fr .95fr;gap:50px;align-items:center}.login-story{padding:26px}.brand-light{color:var(--ink);margin:0 0 90px}.login-story h1{font-size:clamp(44px,6vw,67px);line-height:1.02;letter-spacing:-.06em;margin:11px 0 17px}.login-story h1 em{font-style:normal;color:var(--green)}.story-copy{max-width:420px;color:#68766e;font-size:16px;line-height:1.7}.login-pills{display:flex;flex-wrap:wrap;gap:7px;margin-top:28px}.login-pills span{font-size:10px;padding:7px 10px;background:rgba(255,255,255,.72);border:1px solid #e0e7df;border-radius:999px;color:#52675a}.login-card{padding:34px;background:white;border:1px solid #e8ece7;border-radius:21px;box-shadow:0 24px 60px rgba(31,53,42,.11)}.login-card h2{font-size:26px;margin:7px 0 3px;letter-spacing:-.04em}.login-card>p{margin:0 0 23px;color:var(--muted);font-size:13px}.demo-accounts{display:grid;gap:4px;margin-top:18px;border-top:1px solid var(--line);padding-top:13px;color:var(--muted);font-size:10px}.demo-accounts b{color:#536259;font-size:11px}.login-story .eyebrow{color:#a8783d}
@media(max-width:1100px){.sidebar{width:218px;flex-basis:218px}.page-wrap{padding:28px 24px}.topbar{padding:0 24px}.stats-grid{grid-template-columns:repeat(2,1fr)}.split-layout{grid-template-columns:1fr}.quick-grid{grid-template-columns:1fr}.quote-line{grid-template-columns:120px minmax(140px,1fr) 75px 130px 30px}}
@media(max-width:700px){.app-shell{display:block}.sidebar{width:100%;height:auto;position:static;padding:10px 12px}.brand{margin:0 0 8px}.brand-mark{width:34px;height:34px}.brand b{font-size:12px}.brand small{font-size:9px}.shop-chip,.nav-label,.sidebar-bottom{display:none}.main-nav{display:flex;gap:4px;overflow:auto;padding-bottom:2px}.main-nav a{display:flex;flex:0 0 auto;gap:5px;padding:7px 9px;font-size:10px}.main-nav a span{width:auto;font-size:15px}.page-wrap{padding:23px 13px}.topbar{height:54px;padding:0 13px}.topbar-shop{font-size:11px}.crumb,.secure-indicator{font-size:10px}.page-heading{margin-bottom:17px}.heading-row{align-items:flex-start}.heading-row .button{font-size:11px;padding:10px}.panel{padding:17px;border-radius:15px}.panel-heading h2{font-size:18px}.stats-grid{gap:9px}.stat-card{padding:15px}.stat-card strong{font-size:25px}.stat-card>span,.stat-card small{font-size:10px}.form-grid,.form-grid.three,.form-grid.four{grid-template-columns:1fr}.quote-line{grid-template-columns:1fr 1fr;padding:10px}.quote-line .line-description{grid-column:1/-1}.quote-line .remove-line{grid-column:2;justify-self:end}.quote-card{flex-direction:column}.quote-card-total{align-items:flex-start;min-width:0}.quote-actions{flex-wrap:wrap}.inline-form{align-items:flex-start;flex-direction:column}.inline-form select{max-width:none;width:100%}.spec-facts{grid-template-columns:1fr 1fr}.parts-heading{align-items:flex-start;flex-direction:column;gap:4px}.search-control{flex-wrap:wrap}.search-control input{flex:1 1 calc(100% - 45px)}.search-control .button{width:100%}.login-layout{grid-template-columns:1fr;gap:18px}.login-story{padding:10px 5px}.brand-light{margin:0 0 30px}.login-story h1{font-size:44px}.story-copy{font-size:14px}.login-card{padding:23px}.auth-page{padding:20px 14px}.footer{font-size:9px}}

.finance-layout{grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr)}.finance-stats .stat-card strong{font-size:26px}.compact-form{max-width:520px}.button.danger{background:#fff0ed;color:#ac4338;border:1px solid #f4d0ca}.invoice-fields{border:1px solid var(--line);border-radius:11px;padding:12px 14px;background:#fafcf9}.invoice-fields summary{cursor:pointer;list-style:none}.invoice-fields summary::-webkit-details-marker{display:none}.check-line{display:flex!important;align-items:center;gap:9px;cursor:pointer}.check-line input{width:16px!important;height:16px;accent-color:var(--green)}.invoice-inner{padding-top:13px}.warning-callout{display:grid;gap:4px;padding:15px 18px;margin:0 0 19px;border:1px solid #f2dfbd;background:#fff8e8;border-radius:13px;color:#765a32;font-size:12px}.warning-callout b{color:#684a22;font-size:13px}.report-filters{padding:17px 20px}.report-filter-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.report-filter-form label{display:grid;gap:5px;color:#4e5d54;font-size:11px;font-weight:700}.report-filter-form input{border:1px solid #dfe6df;border-radius:9px;padding:10px 11px;font:inherit;color:var(--ink);background:white}.report-filters>.muted-copy{margin:11px 0 0}.report-sheets{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.report-sheets .panel{margin:0;padding:15px;display:grid;gap:8px;align-content:start}.report-sheets .quick-icon{margin-bottom:3px}.report-sheets b{font-size:12px}.report-sheets small{font-size:10px;color:var(--muted);line-height:1.5}.invoice-actions{display:flex;justify-content:flex-end}.invoice-fields summary label{margin:0}
@media(max-width:1100px){.finance-layout{grid-template-columns:1fr}.report-sheets{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.finance-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.report-filter-form{display:grid;grid-template-columns:1fr 1fr}.report-filter-form .button{width:100%;grid-column:1/-1}.report-sheets{grid-template-columns:1fr 1fr}.invoice-actions{justify-content:stretch}.invoice-actions .button{width:100%}}
.share-hint{display:block;max-width:260px;margin-top:5px;color:var(--muted);font-size:10px;line-height:1.45}.share-guide{width:min(92vw,480px);border:1px solid var(--line);border-radius:16px;padding:24px;color:var(--ink);box-shadow:0 24px 70px rgba(20,35,27,.25)}.share-guide::backdrop{background:rgba(18,29,23,.48)}.share-guide h2{margin:0 0 10px;font-size:20px}.share-guide p{color:var(--muted);font-size:13px;line-height:1.7}.share-guide a,.share-guide button{margin:6px 7px 0 0}

/* Identidad visual de taller y accesos del historial */
.brand-mark{background:#e8f2eb;border:0}
.main-nav a span{width:24px;font-size:16px;line-height:1}
.vehicle-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 17px}
.filter-chip{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#58675d;font-size:11px;font-weight:700;transition:.15s ease}
.filter-chip:hover{border-color:#b68b4c;color:#805a27}
.filter-chip.active{background:#1e5947;border-color:#1e5947;color:#fff}
.vehicle-grid-profile{margin-top:5px}
.vehicle-card{position:relative;overflow:hidden}
.vehicle-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#c69651,#e7d7bb,#4b8068)}
.vehicle-card-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.linked-order{margin-top:12px!important;padding:8px 10px;border-radius:9px;background:#eef5ef}
.linked-order a{color:#28634b;font-weight:750}
tr:target{background:#fff8e9;outline:2px solid #d4aa69;outline-offset:-2px}
@media(max-width:700px){.filter-chip{font-size:10px;padding:7px 9px}.vehicle-card-actions .button{flex:1}.main-nav a span{font-size:15px}}
.order-details{margin-top:6px;color:#42624f}.order-details summary{cursor:pointer;font-size:10px;font-weight:750}.order-details small{display:block;color:var(--muted);font-size:10px;margin-top:5px;line-height:1.5}
.approval-hint{max-width:300px;color:var(--muted);font-size:10px;line-height:1.45;text-align:right}
@media(max-width:700px){.approval-hint{text-align:left}}

/* Colaboradores y tablero público de taller */
.board-share-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px;background:linear-gradient(120deg,#fff,#f1f6f1)}
.board-share-panel h2{margin:5px 0;font-size:19px}.board-share-panel p{max-width:640px;margin:0;color:var(--muted);font-size:12px;line-height:1.6}
.board-share-actions{display:flex;flex-wrap:wrap;gap:8px;flex:0 0 auto}
.collaborator-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:11px}
.collaborator-card{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:13px;padding:14px;background:#fbfcfa}
.collaborator-avatar{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:50%;background:#e8f1e8;color:#245b48;font-weight:800;font-size:17px}
.collaborator-card h3{margin:0;font-size:14px}.collaborator-card p{margin:3px 0 8px;color:var(--muted);font-size:11px}.collaborator-card .status{display:inline-flex;font-size:10px}
.inline-form select{min-width:135px}
.public-board-body{min-height:100vh;background:radial-gradient(ellipse at 7% 2%,#e8f1e9 0,transparent 33%),#f3f5f1;color:var(--ink)}
.public-board{width:min(1500px,100%);min-height:100vh;margin:auto;padding:28px clamp(16px,4vw,56px);display:flex;flex-direction:column}
.public-board-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:20px;border-bottom:1px solid #dfe7df}
.public-board-header .brand{margin:0}.public-board-header .brand-mark{width:45px;height:45px}
.shop-logo{display:block;max-width:160px;max-height:56px;object-fit:contain;border-radius:8px}.shop-logo-preview{display:flex;align-items:center;gap:16px;margin:12px 0 20px;color:var(--muted);font-size:13px}.shop-logo-preview .shop-logo{max-width:220px;max-height:100px;padding:8px;border:1px solid var(--line);background:#fff}
.executive-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,340px);gap:34px;align-items:center;margin:4px 0 20px;padding:clamp(25px,4vw,42px);border:1px solid #243c32;border-radius:24px;background:radial-gradient(ellipse at 82% 10%,#28513c 0,transparent 38%),linear-gradient(125deg,#10221b,#14271f 62%,#1a3326);color:#eff8f0;box-shadow:0 18px 50px #10251b20}.executive-hero:after{content:"";position:absolute;z-index:-1;width:230px;height:230px;right:26%;bottom:-170px;border:1px solid #a8f07830;border-radius:50%;box-shadow:0 0 0 24px #a8f07809,0 0 0 50px #a8f07807}.executive-live{display:flex;align-items:center;gap:9px;color:#b9e99a;font-size:10px;font-weight:850;letter-spacing:.18em}.executive-live i{width:8px;height:8px;border-radius:50%;background:#9cf071;box-shadow:0 0 0 4px #9cf07122}.executive-date{margin:16px 0 2px;color:#afc2b6;font-size:13px}.executive-hero h1{margin:0;font-size:clamp(34px,5vw,52px);line-height:1.07;letter-spacing:-.055em}.executive-hero h1 em{color:#b7f47e;font-style:normal}.executive-shop{margin:10px 0 0;color:#b2c4b8;font-size:14px}.executive-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:24px}.executive-install,.executive-link{min-height:42px;border-radius:11px;padding:10px 15px;font-size:12px;font-weight:750}.executive-install{border:0;background:#b7f47e;color:#18231a}.executive-link{border:1px solid #ffffff30;background:#ffffff0c;color:#edf5ef}.executive-revenue{padding:22px 21px;border:1px solid #ffffff20;border-radius:18px;background:#ffffff0c;backdrop-filter:blur(9px)}.executive-revenue>span,.executive-revenue>small{display:block;color:#b5c7bb;font-size:10px;letter-spacing:.1em}.executive-revenue strong{display:block;margin:12px 0 4px;color:#fff;font-size:clamp(27px,3vw,38px);line-height:1.1;letter-spacing:-.045em;white-space:nowrap}.executive-revenue>small{font-size:11px;letter-spacing:0}.executive-revenue-line{height:5px;margin:19px 0 13px;border-radius:8px;background:#ffffff20}.executive-revenue-line i{display:block;width:68%;height:100%;border-radius:8px;background:linear-gradient(90deg,#9be870,#c6f794)}.executive-revenue .executive-offline-note{font-size:10px;line-height:1.5}.executive-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:20px}.executive-kpi{position:relative;min-width:0;min-height:158px;padding:20px 21px;border:1px solid var(--line);border-radius:18px;background:var(--panel,#fff);box-shadow:0 8px 26px #18231f08}.executive-kpi>span{display:block;padding-right:35px;color:var(--muted);font-size:12px;font-weight:700}.executive-kpi strong{display:block;margin:14px 0 3px;color:var(--ink);font-size:clamp(23px,2.5vw,32px);line-height:1.15;letter-spacing:-.04em;overflow-wrap:anywhere}.executive-kpi>small{color:var(--muted);font-size:11px}.kpi-icon{position:absolute;top:17px;right:18px;display:grid;width:30px;height:30px;place-items:center;border-radius:10px;background:#e9f4e8;color:#2a7650;font-size:17px;font-weight:850}.kpi-balance{border-color:#a8d97d;background:linear-gradient(145deg,#f5ffe9,#fff)}.kpi-balance .kpi-icon{background:#dff4c5;color:#3e7224}.executive-lower-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.8fr);gap:16px;align-items:stretch}.executive-activity,.executive-side-card{min-width:0}.executive-activity .panel-heading{align-items:center}.executive-date-chip{padding:7px 10px;border:1px solid var(--line);border-radius:9px;color:var(--muted);font-size:10px;font-weight:700;white-space:nowrap}.executive-activity-list{display:grid}.executive-activity-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 3px;border-top:1px solid var(--line)}.activity-marker{display:grid;width:31px;height:31px;place-items:center;border-radius:11px;background:#e6f5e8;color:#347a51;font-weight:850}.marker-out{background:#fff0e8;color:#bd6343}.marker-done{background:#eaf0fb;color:#5377a8}.activity-copy{min-width:0}.activity-copy b,.activity-copy small,.activity-value small{display:block}.activity-copy b{font-size:12px}.activity-copy small{margin-top:3px;color:var(--muted);font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-value{text-align:right;font-size:11px;font-weight:750;white-space:nowrap}.activity-value small{margin-top:3px;color:var(--muted);font-size:10px;font-weight:500}.executive-empty{display:grid;justify-items:center;gap:7px;padding:32px 12px;color:var(--muted);text-align:center}.executive-empty>span{font-size:30px;color:#8cab98}.executive-empty b{color:var(--ink)}.executive-empty small{font-size:11px}.executive-side-card{background:linear-gradient(155deg,#152b22,#102019);color:#f1f7f1;border-color:#254235}.executive-side-card .eyebrow{color:#b7e893}.executive-side-card h2{max-width:300px;margin:10px 0;font-size:22px;line-height:1.2;letter-spacing:-.04em}.executive-side-card>p{color:#b7c8bd;font-size:12px;line-height:1.6}.executive-side-stat{display:flex;justify-content:space-between;gap:10px;padding:11px 0;border-top:1px solid #ffffff1c;font-size:11px}.executive-side-stat span{color:#b6c5ba}.executive-side-stat b{color:#f2f8f2}.executive-side-card .text-link{display:inline-block;margin-top:16px;color:#b7ef8c;font-size:12px}.executive-install-help{display:block;margin-top:18px;color:#99aea0;font-size:10px;line-height:1.55}
@media(max-width:950px){.executive-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.executive-lower-grid{grid-template-columns:1fr}.executive-side-card{display:grid;grid-template-columns:repeat(3,1fr);gap:0 14px}.executive-side-card .eyebrow,.executive-side-card h2,.executive-side-card>p,.executive-side-card .text-link,.executive-side-card .executive-install-help{grid-column:1/-1}.executive-side-stat{align-items:center}}
@media(max-width:650px){.executive-hero{grid-template-columns:1fr;gap:21px;padding:23px 19px;border-radius:18px}.executive-revenue{padding:17px}.executive-kpis{gap:9px}.executive-kpi{min-height:140px;padding:16px 14px;border-radius:15px}.executive-kpi strong{font-size:23px}.executive-kpi>span{font-size:10px}.executive-kpi>small{font-size:9px}.kpi-icon{top:12px;right:12px;width:25px;height:25px}.executive-activity .panel-heading{align-items:flex-start;flex-direction:column}.executive-date-chip{display:none}.executive-side-card{display:block}.executive-actions .button{flex:1;justify-content:center;padding-inline:10px}.executive-activity-row{grid-template-columns:30px minmax(0,1fr) auto;gap:8px}.activity-marker{width:28px;height:28px}.activity-copy small{max-width:190px}}
html[data-theme="dark"] .kpi-balance{background:linear-gradient(145deg,#213528,#1b2420);border-color:#5b7d4c}html[data-theme="dark"] .kpi-balance .kpi-icon{background:#344c35;color:#c0ef94}html[data-theme="dark"] .executive-side-card{background:linear-gradient(155deg,#152b22,#102019);color:#f1f7f1;border-color:#254235}
.executive-period-panel{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:0 0 16px;padding:15px 18px;border:1px solid var(--line);border-radius:16px;background:var(--panel);box-shadow:0 8px 26px #18231f08}.executive-period-form{display:flex;align-items:end;flex-wrap:wrap;gap:10px}.executive-period-form label{display:grid;gap:5px;min-width:145px;color:var(--muted);font-size:10px;font-weight:750}.executive-period-form input,.executive-period-form select{min-height:39px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);font-size:12px}.executive-range-inputs{display:flex;gap:8px}.executive-range-inputs label{min-width:140px}.executive-period-form .button{min-height:39px;padding:9px 14px;font-size:11px}.executive-period-current{padding-bottom:9px;color:var(--muted);font-size:11px;white-space:nowrap}.executive-period-current b{color:var(--ink)}[data-executive-day][hidden],[data-executive-month][hidden],[data-executive-range][hidden]{display:none!important}html[data-theme="dark"] .executive-period-panel{background:var(--panel)}
@media(max-width:700px){.executive-period-panel{display:block;padding:13px}.executive-period-form{display:grid;grid-template-columns:1fr 1fr;gap:9px}.executive-period-form>label:first-child{grid-column:1/-1}.executive-period-form [data-executive-day],.executive-period-form [data-executive-month],.executive-period-form [data-executive-range]{grid-column:1/-1}.executive-range-inputs{display:grid;grid-template-columns:1fr 1fr}.executive-period-form .button{grid-column:1/-1}.executive-period-current{display:block;padding:11px 2px 0}}
.board-live{display:flex;align-items:center;gap:8px;color:#347352;font-size:12px;font-weight:750}.board-live i{width:9px;height:9px;border-radius:50%;background:#36a56c;box-shadow:0 0 0 4px #dff2e6}.board-live span{color:var(--muted);font-weight:500}
.public-board-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;padding:32px 0 22px}.public-board-heading h1{margin:5px 0;font-size:clamp(30px,4vw,46px);letter-spacing:-.05em}.public-board-heading p{margin:0;color:var(--muted);font-size:14px}
.board-count{display:flex;align-items:baseline;gap:8px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--muted);font-size:12px}.board-count b{color:var(--green);font-size:25px}
.public-work-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));align-content:start;gap:14px;flex:1}
.public-work-card{padding:20px 22px;border:1px solid #e3e9e1;border-radius:17px;background:#fff;box-shadow:0 9px 28px rgba(29,48,37,.055)}
.public-work-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.public-order-number{font-size:12px;font-weight:850;letter-spacing:.08em;color:#9a6c2e}
.public-work-card h2{margin:20px 0 2px;font-size:clamp(21px,2.7vw,28px);letter-spacing:-.035em}.public-vehicle-year{margin:0;color:var(--muted);font-size:13px}
.public-technician{display:flex;align-items:center;gap:12px;margin-top:21px;padding:12px;border-radius:12px;background:#f3f7f2}.public-technician>span{font-size:23px}.public-technician small,.public-technician b{display:block}.public-technician small{margin-bottom:3px;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.08em}.public-technician b{font-size:13px}
.public-board-empty{display:grid;place-content:center;justify-items:center;flex:1;min-height:310px;padding:24px;text-align:center;border:1px dashed #cfdccf;border-radius:18px;background:rgba(255,255,255,.75)}.public-board-empty>span{display:grid;place-items:center;width:50px;height:50px;border-radius:50%;background:#e7f4e9;color:#287649;font-size:25px}.public-board-empty h2{margin:14px 0 4px}.public-board-empty p{margin:0;color:var(--muted);font-size:13px}
.public-board-footer{display:flex;justify-content:space-between;gap:14px;margin-top:auto;padding-top:25px;color:#7b877f;font-size:10px}
.customer-quote-page{max-width:1050px}.public-quote-summary{display:grid;grid-template-columns:1fr 1fr;gap:20px}.public-quote-summary>div{display:grid;gap:4px}.public-quote-summary small,.public-quote-summary span{font-size:11px;color:var(--muted)}.public-quote-summary b{font-size:15px}.public-quote-table{min-width:600px}.public-quote-totals{display:grid;gap:7px;max-width:340px;margin:18px 0 0 auto;font-size:12px}.public-quote-totals span,.public-quote-totals strong{display:flex;justify-content:space-between;gap:20px}.public-quote-totals strong{border-top:1px solid var(--line);padding-top:10px;font-size:17px}.public-quote-notes{border-top:1px solid var(--line);padding-top:13px;margin-top:18px;font-size:12px}.public-quote-notes p,.public-order-progress p{color:var(--muted)}.public-quote-approve{display:flex;justify-content:space-between;align-items:center;gap:20px}.public-quote-approve h2,.public-order-progress h2{margin:0 0 4px}.public-quote-approve p{margin:0;color:var(--muted);font-size:12px}.public-quote-notices{margin-bottom:15px}
@media(max-width:700px){.board-share-panel{align-items:flex-start;flex-direction:column;gap:14px}.board-share-actions{width:100%}.board-share-actions .button{flex:1}.public-board{padding:18px 14px}.public-board-header{align-items:flex-start;flex-direction:column}.public-board-heading{align-items:flex-start}.board-live{font-size:10px}.public-board-footer{font-size:9px}}
.customer-return-note{padding:13px 15px;border:1px solid #ead6b8;border-radius:12px;background:#fff8eb;color:#665137}
.customer-return-note p{margin:5px 0 0;font-size:13px;line-height:1.6;white-space:pre-wrap}
.compact-return{margin:2px 0 8px;max-width:420px;font-size:11px}
.compact-return p{font-size:11px}
.customer-response-form{display:grid;gap:14px}
.customer-response-form label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#4e5d54}
.customer-response-form label small{font-size:10px;color:var(--muted);font-weight:500}
.customer-comment-history{margin-bottom:14px;padding:11px 13px;border-left:3px solid #c89a54;border-radius:7px;background:#f8f4ec;font-size:12px}
.customer-comment-history p{margin:4px 0 0;white-space:pre-wrap}
.customer-response-form textarea{width:100%;border:1px solid #dfe6df;border-radius:9px;background:#fff;color:var(--ink);padding:11px;resize:vertical}
.response-actions{display:flex;flex-wrap:wrap;gap:9px}
.response-actions .button{min-height:42px}
.status-en_revision{background:#eaf1fa;color:#456b95}
.status-devuelto{background:#fff3dd;color:#97611d}
html[data-theme="dark"] .customer-return-note{background:#332a1d;border-color:#65502c;color:#f0d6a7}
html[data-theme="dark"] .panel.customer-return-note{background:#332a1d;border-color:#65502c;color:#f0d6a7}
html[data-theme="dark"] .customer-response-form label{color:#d3ddd6}
html[data-theme="dark"] .customer-comment-history{background:#29271f;border-left-color:#b78c4b;color:#e7d7b9}
html[data-theme="dark"] .customer-response-form textarea{background:#111815;color:#e8eee9;border-color:#46534a}
html[data-theme="dark"] .status.status-en_revision{background:#263545;color:#b8d3ee}
html[data-theme="dark"] .status.status-devuelto{background:#3c3020;color:#f0c77f}
@media(max-width:700px){.response-actions{display:grid;grid-template-columns:1fr 1fr}.response-actions .button{white-space:normal;text-align:center;padding:10px 8px}.compact-return{max-width:100%}}

/* Modo oscuro: superficies profundas y texto con contraste alto. */
html[data-theme="dark"]{
  color-scheme:dark;--ink:#e8eee9;--muted:#a9b5ad;--line:#344139;--panel:#1b2420;--bg:#111714;
  --green:#7bc49d;--green-2:#8bd4aa;--mint:#25392e;--amber:#e4b66f;--amber-soft:#3c3020;
  --blue:#26343e;--danger:#f08c7e;--shadow:0 18px 44px rgba(0,0,0,.22)
}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .sidebar{background:#0b100e}
html[data-theme="dark"] .main-nav a:hover,html[data-theme="dark"] .main-nav a.active{background:#243a2e;color:#b6e6c8}
html[data-theme="dark"] .main-nav a.active span{color:#b6e6c8}
html[data-theme="dark"] .brand-mark{background:#e8f2eb}
html[data-theme="dark"] .topbar{background:rgba(23,31,27,.94);border-color:var(--line)}
html[data-theme="dark"] .crumb,html[data-theme="dark"] .secure-indicator{color:#a7b4ab}
html[data-theme="dark"] .panel,html[data-theme="dark"] .stat-card,html[data-theme="dark"] .quick-card,
html[data-theme="dark"] .vehicle-card,html[data-theme="dark"] .collaborator-card,
html[data-theme="dark"] .quote-card,html[data-theme="dark"] .login-card{background:var(--panel);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .panel{box-shadow:var(--shadow)}
html[data-theme="dark"] .panel-heading .eyebrow,html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .quote-number,
html[data-theme="dark"] .public-order-number{color:#e2b66f}
html[data-theme="dark"] .stat-dark{background:#19382b;border-color:#28523d;color:#edf7f0}
html[data-theme="dark"] .stat-dark>span,html[data-theme="dark"] .stat-dark small{color:#b8d7c3}
html[data-theme="dark"] .stat-warn,html[data-theme="dark"] .manual-note,html[data-theme="dark"] .warning-callout{background:#332a1d;border-color:#65502c;color:#efd39c}
html[data-theme="dark"] .warning-callout b{color:#ffe2aa}
html[data-theme="dark"] .button.secondary,html[data-theme="dark"] .quick-icon,
html[data-theme="dark"] .empty-icon{background:#25392e;color:#a9e0bd}
html[data-theme="dark"] .button.ghost{background:#2a332e;color:#d2ddd5}
html[data-theme="dark"] .button.whatsapp{background:#173b2a;color:#8ce0ad}
html[data-theme="dark"] .button.danger{background:#422522;color:#ffaaa0;border-color:#693b35}
html[data-theme="dark"] .button.primary{background:#28714f;color:#fff}
html[data-theme="dark"] .button.primary:hover{background:#33835e}
html[data-theme="dark"] .soft-tag{background:#3b3020;color:#f0c77e}
html[data-theme="dark"] .quick-icon.amber{background:#3c3020;color:#efc47f}
html[data-theme="dark"] .quick-icon.blue{background:#26343e;color:#a5cee7}
html[data-theme="dark"] th{color:#aebbb2;border-color:var(--line)}
html[data-theme="dark"] td{border-color:#2b352f}
html[data-theme="dark"] tr:target{background:#382f20;outline-color:#a88245}
html[data-theme="dark"] .status{background:#2b342f;color:#d0dbd3}
html[data-theme="dark"] .status-recibido,html[data-theme="dark"] .status-diagnostico,
html[data-theme="dark"] .status-presupuestado,html[data-theme="dark"] .status-warning{background:#3c3020;color:#f0c77f}
html[data-theme="dark"] .status-aprobado,html[data-theme="dark"] .status-en_proceso,
html[data-theme="dark"] .status-listo,html[data-theme="dark"] .status-entregado,
html[data-theme="dark"] .status-ok{background:#1d3a2b;color:#a8e0b9}
html[data-theme="dark"] .status-cancelado,html[data-theme="dark"] .status-rechazado,
html[data-theme="dark"] .status-vencido{background:#402724;color:#ffaaa0}
html[data-theme="dark"] .form-stack label,html[data-theme="dark"] .search-form>label,
html[data-theme="dark"] .report-filter-form label{color:#d3ddd6}
html[data-theme="dark"] .form-stack input,html[data-theme="dark"] .form-stack select,
html[data-theme="dark"] .form-stack textarea,html[data-theme="dark"] .inline-form select,
html[data-theme="dark"] .stock-form input,html[data-theme="dark"] .stock-form select,
html[data-theme="dark"] .report-filter-form input,html[data-theme="dark"] .search-control input{
  background:#111815;color:#e8eee9;border-color:#46534a
}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#89978e;opacity:1}
html[data-theme="dark"] .form-stack input:focus,html[data-theme="dark"] .form-stack select:focus,
html[data-theme="dark"] .form-stack textarea:focus,html[data-theme="dark"] .search-control input:focus{
  border-color:#70b68d;box-shadow:0 0 0 3px rgba(112,182,141,.18)
}
html[data-theme="dark"] .quote-line,html[data-theme="dark"] .spec-facts>div,
html[data-theme="dark"] .invoice-fields,html[data-theme="dark"] .filter-chip,
html[data-theme="dark"] .linked-order,html[data-theme="dark"] .collaborator-avatar{background:#222d27;color:#dce6df;border-color:var(--line)}
html[data-theme="dark"] .filter-chip:hover{border-color:#a98246;color:#f0c77f}
html[data-theme="dark"] .filter-chip.active{background:#2c7351;color:#fff;border-color:#2c7351}
html[data-theme="dark"] .linked-order a,html[data-theme="dark"] .source-note a,
html[data-theme="dark"] .back-link{color:#9edab4}
html[data-theme="dark"] .vehicle-chip{background:#25392e;color:#a9e0bd}
html[data-theme="dark"] .remove-line,html[data-theme="dark"] .movement-sign.negative{background:#402724;color:#ffaaa0}
html[data-theme="dark"] .movement-sign.positive{background:#1d3a2b;color:#a8e0b9}
html[data-theme="dark"] .flash.success{background:#1d3a2b;color:#b8e7c6}
html[data-theme="dark"] .flash.error{background:#402724;color:#ffb3a9}
html[data-theme="dark"] .auth-page{background:radial-gradient(ellipse at 13% 90%,#1b3025 0,transparent 42%),radial-gradient(ellipse at 90% 5%,#30291e 0,transparent 38%),#111714}
html[data-theme="dark"] .story-copy,html[data-theme="dark"] .login-pills span{color:#c1cdc5}
html[data-theme="dark"] .login-pills span{background:#202a24;border-color:#39463e}
html[data-theme="dark"] .demo-accounts b{color:#dce5de}
html[data-theme="dark"] .public-board-body{background:radial-gradient(ellipse at 7% 2%,#1c3025 0,transparent 33%),#111714;color:var(--ink)}
html[data-theme="dark"] .public-board-header{border-color:var(--line)}
html[data-theme="dark"] .board-count,html[data-theme="dark"] .public-work-card,
html[data-theme="dark"] .public-board-empty{background:#1b2420;border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .public-technician{background:#25312a}
html[data-theme="dark"] .board-live{color:#9edab4}
html[data-theme="dark"] .board-live i{box-shadow:0 0 0 4px #24392d}
html[data-theme="dark"] .public-board-empty>span{background:#1d3a2b;color:#a8e0b9}
html[data-theme="dark"] .public-quote-summary,html[data-theme="dark"] .public-order-progress{background:var(--panel)}
html[data-theme="dark"] .public-quote-totals strong,html[data-theme="dark"] .public-quote-notes{border-color:var(--line)}
html[data-theme="dark"] .theme-toggle{border-color:#46534a;background:#202a24;color:#e5eee8}
html[data-theme="dark"] .theme-toggle:hover{background:#2b3930;border-color:#668472}
.topbar-actions,.public-header-actions{display:flex;align-items:center;gap:16px}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 11px;border:1px solid #d9e1db;border-radius:10px;background:#fff;color:#35463c;font-size:12px;font-weight:700;white-space:nowrap;transition:background .15s,border-color .15s}
.theme-toggle:hover{background:#f1f6f2;border-color:#9bb5a1}
.theme-toggle:focus-visible{outline:3px solid rgba(74,142,98,.35);outline-offset:2px}
.auth-theme-toggle{position:fixed;top:18px;right:18px;z-index:5}
@media(max-width:700px){.topbar-actions{gap:8px}.topbar-actions .secure-indicator{display:none}.theme-toggle{padding:7px 9px;font-size:11px}.public-header-actions{width:100%;justify-content:space-between;gap:10px}}
/* Quote lines include an optional inventory-linked part selector. */
.quote-line{grid-template-columns:130px minmax(150px,1fr) 78px minmax(190px,240px) 145px 30px}
@media(max-width:760px){.quote-line{grid-template-columns:1fr 1fr}.quote-line .line-stock{grid-column:1/-1}}
.inventory-picker{position:relative;min-width:0}.inventory-search-results{position:absolute;z-index:30;top:100%;left:0;right:0;max-height:260px;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);padding:5px}.inventory-search-option{display:flex;align-items:center;gap:9px;width:100%;border:0;border-radius:7px;background:transparent;color:var(--ink);padding:8px 10px;text-align:left;font-size:12px;cursor:pointer}.inventory-search-option:hover,.inventory-search-option:focus-within{background:var(--mint)}.inventory-search-option input{width:auto!important;margin:0}.inventory-search-empty{display:block;padding:9px;color:var(--muted);font-size:12px}.inventory-selected-parts{display:grid;gap:5px;margin-top:5px}.inventory-selected-part{display:grid;grid-template-columns:minmax(0,1fr) 65px 27px;gap:5px;align-items:center;padding:5px 7px;border:1px solid var(--line);border-radius:8px;background:var(--panel);font-size:11px}.inventory-selected-part input{padding:5px!important}.inventory-remove-part{border:0;background:transparent;color:var(--danger);font-size:20px;line-height:1}.quote-title{margin:3px 0 8px;font-size:18px}
.button-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
[hidden]{display:none!important}
.quote-line{grid-template-columns:140px minmax(220px,1fr) 90px 170px 32px!important;grid-auto-flow:row}.quote-line>label:first-child{grid-column:1;grid-row:1}.quote-line .line-description{grid-column:2;grid-row:1}.quote-line .line-quantity{grid-column:3;grid-row:1}.quote-line .line-price{grid-column:4;grid-row:1}.quote-line .remove-line{grid-column:5;grid-row:1;justify-self:center}.quote-line .line-stock{grid-column:1/-1;grid-row:2}
@media(max-width:760px){.quote-line{grid-template-columns:minmax(0,1fr) auto!important}.quote-line>label:first-child{grid-column:1;grid-row:1}.quote-line .remove-line{grid-column:2;grid-row:1}.quote-line .line-description{grid-column:1/-1;grid-row:2}.quote-line .line-quantity{grid-column:1;grid-row:3}.quote-line .line-price{grid-column:2;grid-row:3}.quote-line .line-stock{grid-column:1/-1;grid-row:4}}
.public-quote-subtotal{background:#e8f2eb!important;font-weight:800}.public-quote-subtotal td{border-top:1px solid #9aafa3}.public-quote-subtotal td:first-child{text-align:right}.public-quote-subtotal td:last-child{white-space:nowrap}
html[data-theme="dark"] .public-quote-subtotal{background:#263c32!important;color:#e5efe8}
/* Inventory search and compact movement history */
.inventory-search-form{display:grid;gap:7px;margin:-4px 0 18px;color:var(--ink);font-size:12px;font-weight:700}
.inventory-items-list{border:1px solid var(--line);border-radius:11px;padding:0 13px}
.inventory-items-list>summary{padding:11px 0;color:var(--green);font-size:12px;font-weight:750;cursor:pointer}
.inventory-items-list[open]>summary{border-bottom:1px solid var(--line);margin-bottom:4px}
html[data-theme="dark"] .inventory-items-list>summary{color:#9bd3ae}
.inventory-search-form small{color:var(--muted);font-size:10px;font-weight:500}
.inventory-search-control{display:flex;align-items:center;gap:8px}
.inventory-search-control>span{font-size:24px;color:#87968d;line-height:1}
.inventory-search-control input,.movement-filter input,.movement-filter select{min-width:0;border:1px solid #dfe6df;border-radius:9px;background:var(--panel);color:var(--ink);padding:10px 11px;outline:none;font-size:12px}
.inventory-search-control input{flex:1}
.inventory-search-control input:focus,.movement-filter input:focus,.movement-filter select:focus{border-color:#75a389;box-shadow:0 0 0 3px rgba(66,130,94,.1)}
.movement-filter{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.movement-filter label{display:grid;gap:5px;color:var(--muted);font-size:11px;font-weight:700}
.movement-groups{display:grid;gap:8px}
.movement-group{border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden}
.movement-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;cursor:pointer;list-style:none}
.movement-group>summary::-webkit-details-marker{display:none}
.movement-group>summary:after{content:"＋";color:var(--green);font-weight:800}
.movement-group[open]>summary:after{content:"−"}
.movement-group>summary>span:first-child{display:grid;gap:2px}
.movement-group>summary b{font-size:12px}
.movement-group>summary small{color:var(--muted);font-size:10px}
.movement-group-totals{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}
.movement-group-totals em{font-style:normal;font-size:10px;font-weight:700;padding:4px 7px;border-radius:999px;white-space:nowrap}
.movement-in{background:#e7f4eb;color:#26754b}
.movement-out{background:#fff0ed;color:#b84f42}
.movement-group .movement-list{padding:0 13px 5px}
.movement-limit-note{display:block;margin-top:10px;color:var(--muted);font-size:10px}
html[data-theme="dark"] .inventory-search-control input,html[data-theme="dark"] .movement-filter input,html[data-theme="dark"] .movement-filter select{background:var(--panel);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .movement-in{background:#203d30;color:#8fd3a5}
html[data-theme="dark"] .movement-out{background:#482b28;color:#f0a39a}
@media(max-width:640px){.inventory-search-control{flex-wrap:wrap}.inventory-search-control input{flex-basis:calc(100% - 40px)}.inventory-search-control .button{flex:1}.movement-group>summary{align-items:flex-start;flex-wrap:wrap}.movement-group-totals{margin-left:0}.movement-filter label{flex:1 1 150px}}
.customer-search-form{display:grid;gap:6px;margin-bottom:14px;color:var(--muted);font-size:11px;font-weight:700}
.customer-search-form>div{display:flex;align-items:center;gap:8px}
.customer-search-form span{font-size:22px;color:#87968d}
.customer-search-form input,.payroll-filter input,.payroll-filter select{min-width:0;border:1px solid var(--line);border-radius:9px;padding:9px 10px;background:var(--panel);color:var(--ink);font-size:12px}
.customer-search-form input{flex:1}
.payroll-filter{display:flex;align-items:end;flex-wrap:wrap;gap:8px}
.payroll-date-range{display:flex;align-items:end;gap:8px}
.payroll-filter label{display:grid;gap:4px;color:var(--muted);font-size:10px;font-weight:700}
.payroll-filter [hidden]{display:none}
.orders-list{border:1px solid var(--line);border-radius:12px;padding:0 13px}
.orders-list>summary{padding:12px 0;color:var(--green);font-size:12px;font-weight:750;cursor:pointer}
.orders-list[open]>summary{border-bottom:1px solid var(--line);margin-bottom:5px}
html[data-theme="dark"] .customer-search-form input,html[data-theme="dark"] .payroll-filter input,html[data-theme="dark"] .payroll-filter select{background:var(--panel);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .orders-list>summary{color:#9bd3ae}
@media(max-width:640px){.customer-search-form>div{flex-wrap:wrap}.customer-search-form input{flex-basis:calc(100% - 40px)}.customer-search-form .button{flex:1}.payroll-filter{width:100%}.payroll-filter label{flex:1 1 140px}.payroll-date-range{flex:1 1 100%}.payroll-date-range label{flex:1 1 140px}.payroll-filter button{flex:1}}
.recent-customers-list{border:1px solid var(--line);border-radius:11px;padding:0 12px}
.recent-customers-list>summary{padding:11px 0;color:var(--green);font-size:12px;font-weight:750;cursor:pointer}
.recent-customers-list[open]>summary{border-bottom:1px solid var(--line);margin-bottom:4px}
html[data-theme="dark"] .recent-customers-list>summary{color:#9bd3ae}
.collaborator-card{align-items:flex-start;min-width:0}
.collaborator-card-content{flex:1 1 0;min-width:0;max-width:100%}
.collaborator-edit{min-width:0;max-width:100%;margin-top:7px}
.collaborator-edit>summary{max-width:100%;cursor:pointer;overflow-wrap:anywhere;font-size:12px}
.collaborator-history-list{display:grid;gap:6px;min-width:0;margin-top:8px}
.collaborator-history-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 8px;min-width:0;padding:8px;border-radius:9px;background:var(--bg)}
.history-order-ref{display:flex;align-items:center;gap:8px;min-width:0}
.history-order-ref b{font-size:11px;color:var(--green)}
.history-order-ref small,.history-order-vehicle small{display:block;color:var(--muted);font-size:10px;overflow-wrap:anywhere}
.collaborator-history-item>.status{grid-column:2;grid-row:1}
.history-order-vehicle{grid-column:1/-1;min-width:0;font-size:11px;overflow-wrap:anywhere}
html[data-theme="dark"] .history-order-ref b{color:#9bd3ae}
.cash-history{border:1px solid var(--line);border-radius:11px;padding:0 13px}
.cash-history>summary{padding:12px 0;color:var(--green);font-size:12px;font-weight:750;cursor:pointer}
.cash-history[open]>summary{border-bottom:1px solid var(--line);margin-bottom:5px}
.customer-fiscal-details>summary{color:var(--green);font-size:12px;font-weight:750;cursor:pointer}
.customer-fiscal-details form{margin-top:12px;align-items:end}
html[data-theme="dark"] .cash-history>summary,html[data-theme="dark"] .customer-fiscal-details>summary{color:#9bd3ae}
.negative-amount{color:#bd3028!important}
html[data-theme="dark"] .negative-amount{color:#ff8277!important}

/* Garage Ejecutivo: centro de operaciones */
body.executive-mode{--bg:#f2f5fa;--panel:#fff;--line:#e5e9f1;--ink:#172334;--muted:#718096;--blue:#2878e8;--green:#167347;--amber:#e09a39}
body.executive-mode .sidebar{width:76px;flex-basis:76px;align-items:center;padding:18px 10px}
body.executive-mode .brand{margin:0 0 28px;justify-content:center}
body.executive-mode .brand-mark{width:42px;height:42px}
body.executive-mode .brand>span:last-child,body.executive-mode .shop-chip,body.executive-mode .nav-label{display:none}
body.executive-mode .main-nav{width:100%;gap:9px}
body.executive-mode .main-nav a{justify-content:center;width:48px;height:46px;padding:0;margin:auto;font-size:0}
body.executive-mode .main-nav a span{width:auto;font-size:19px}
body.executive-mode .sidebar-bottom{width:100%;justify-content:center;flex-wrap:wrap;padding-top:13px}
body.executive-mode .sidebar-bottom>div{display:none}
body.executive-mode .sidebar-bottom form{margin:0}
body.executive-mode .topbar{display:none}
body.executive-mode .page-wrap{max-width:1700px;padding:24px 28px 30px}
.executive-dashboard{display:grid;gap:16px;color:var(--ink)}
.executive-dashboard-header{display:flex;align-items:center;gap:14px;padding:0 2px 3px}
.executive-brand-mark{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:#e7efff;color:#2878e8;font-size:23px;font-weight:900}
.executive-title{min-width:0;flex:1}.executive-title .eyebrow{color:#718096;font-size:9px}
.executive-title h1{margin:1px 0;font-size:24px;line-height:1.2;letter-spacing:-.045em}
.executive-title p{margin:0;color:var(--muted);font-size:11px}.executive-title p span{padding:0 4px;color:#bcc5d2}
.executive-header-actions{display:flex;align-items:center;gap:8px}.executive-header-actions .theme-toggle{width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink)}
.executive-quiet-link{min-height:36px;padding:9px 12px;background:#eaf1fd;color:#2868ba;font-size:11px}
.executive-period-panel{margin:0;padding:10px 13px;border-radius:12px;box-shadow:none}
.executive-period-form{gap:8px}.executive-period-form label{min-width:130px;font-size:10px}.executive-period-form input,.executive-period-form select{min-height:34px;padding:6px 9px;border-radius:8px;font-size:11px}
.executive-period-form .button{min-height:34px;padding:7px 13px;border-radius:8px;font-size:11px}
.executive-period-current{padding-bottom:8px;font-size:10px}
.executive-summary-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.executive-summary-card{display:flex;align-items:center;gap:11px;min-width:0;min-height:91px;padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--panel);box-shadow:0 5px 20px #24375408}
.summary-icon{display:grid;place-items:center;width:39px;height:39px;flex:0 0 auto;border-radius:11px;background:#eaf2ff;color:#2878e8;font-size:20px;font-weight:850}
.summary-icon-amber{background:#fff3e1;color:#c17a19}.executive-summary-card>div{min-width:0}
.executive-summary-card small,.executive-summary-card span:not(.summary-icon){display:block;color:var(--muted);font-size:9px;line-height:1.35}
.executive-summary-card strong{display:block;margin:2px 0;color:#192536;font-size:clamp(17px,1.65vw,23px);line-height:1.15;letter-spacing:-.045em;overflow-wrap:anywhere;white-space:nowrap}
.executive-summary-card.summary-balance{background:#f1f8f3;border-color:#d9eadf}.summary-balance .summary-icon{background:#e0f2e6;color:#21814d}.summary-balance strong:not(.negative-amount){color:#167347}
.executive-operations,.executive-activity,.executive-finance-chart,.executive-delivery-panel{margin:0;padding:17px 19px;border:1px solid var(--line);border-radius:13px;box-shadow:0 5px 20px #24375408}
.executive-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.executive-section-heading .eyebrow{font-size:9px;color:#7b8799}.executive-section-heading h2{margin:1px 0 0;font-size:17px;line-height:1.25;letter-spacing:-.035em}
.executive-count-pill{padding:5px 9px;border-radius:999px;background:#edf4ff;color:#3471c5;font-size:10px;font-weight:750}
.executive-orders-table-wrap{overflow:auto}.executive-orders-table{width:100%;border-collapse:collapse;text-align:left}
.executive-orders-table th{padding:8px 10px;background:#f5f7fb;color:#7a8798;font-size:9px;letter-spacing:.08em;text-transform:uppercase}
.executive-orders-table td{padding:9px 10px;border-bottom:1px solid #edf0f5;color:#344256;font-size:11px;white-space:nowrap}
.executive-orders-table tbody tr:last-child td{border-bottom:0}.executive-orders-table td:first-child{color:#1f2d40}
.executive-orders-table td:nth-child(2){white-space:normal}.executive-orders-table td:nth-child(2) strong,.executive-orders-table td:nth-child(2) small{display:block}
.executive-orders-table td:nth-child(2) strong{font-size:11px}.executive-orders-table td:nth-child(2) small{margin-top:1px;color:var(--muted);font-size:9px}
.executive-status{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;background:#edf5ff;color:#3974bc;font-size:9px;font-weight:750}
.executive-status i{width:6px;height:6px;border-radius:50%;background:currentColor}.status-en_proceso,.status-aprobado{background:#e8f5ed;color:#267246}.status-listo{background:#e8f5ed;color:#267246}.status-diagnostico,.status-presupuestado{background:#fff4e1;color:#a96d17}.status-recibido{background:#f0f2f6;color:#69788d}
.executive-insights-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.88fr);gap:14px;align-items:stretch}
.executive-activity .executive-section-heading,.executive-finance-chart .executive-section-heading{margin-bottom:8px}
.executive-date-chip{padding:5px 8px;border:1px solid var(--line);border-radius:7px;color:var(--muted);font-size:9px}
.executive-activity-list{display:grid}.executive-activity-row{grid-template-columns:27px minmax(0,1fr) auto;gap:9px;padding:9px 0;border-color:#edf0f5}
.activity-marker{width:25px;height:25px;border-radius:8px;font-size:12px}.activity-copy b{font-size:10px}.activity-copy small{font-size:9px}.activity-value{font-size:10px}.activity-value small{font-size:9px}
.executive-insights-side{display:grid;grid-template-rows:1fr auto;gap:12px;min-width:0}
.chart-legend{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:9px}.chart-legend i{width:8px;height:8px;border-radius:50%;background:#2878e8}
.executive-bars{display:grid;gap:12px;padding-top:3px}.executive-bar-row{display:grid;grid-template-columns:minmax(90px,130px) minmax(60px,1fr) auto;gap:9px;align-items:center}
.executive-bar-row>span{overflow:hidden;color:#526175;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.executive-bar-row>b{color:#344256;font-size:9px;white-space:nowrap}
.executive-bar-track{height:10px;overflow:hidden;border-radius:99px;background:#eff2f7}.executive-bar-track i{display:block;height:100%;min-width:2px;border-radius:99px}
.bar-width-0{width:0%}.bar-width-5{width:5%}.bar-width-10{width:10%}.bar-width-15{width:15%}.bar-width-20{width:20%}.bar-width-25{width:25%}.bar-width-30{width:30%}.bar-width-35{width:35%}.bar-width-40{width:40%}.bar-width-45{width:45%}.bar-width-50{width:50%}.bar-width-55{width:55%}.bar-width-60{width:60%}.bar-width-65{width:65%}.bar-width-70{width:70%}.bar-width-75{width:75%}.bar-width-80{width:80%}.bar-width-85{width:85%}.bar-width-90{width:90%}.bar-width-95{width:95%}.bar-width-100{width:100%}
.bar-blue{background:#2878e8}.bar-orange{background:#f2a243}.bar-green{background:#68b97b}.bar-slate{background:#9ba8b8}
.executive-delivery-panel{padding:12px 16px}.delivery-heading{display:flex;align-items:center;gap:9px}.delivery-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:#e8f5ed;color:#21804a;font-weight:900}
.delivery-heading b,.delivery-heading small{display:block}.delivery-heading b{font-size:11px}.delivery-heading small{color:var(--muted);font-size:9px}.delivery-progress{height:7px;margin-top:10px;overflow:hidden;border-radius:99px;background:#edf0f4}.delivery-progress i{display:block;height:100%;border-radius:99px;background:#2878e8}
.executive-footer-links{display:flex;justify-content:space-between;gap:12px;padding:0 2px;color:var(--muted);font-size:9px}.executive-footer-links a{color:#2878e8;font-weight:700}
html[data-theme="dark"] body.executive-mode{--bg:#111923;--panel:#1b2633;--line:#303d4c;--ink:#e5ebf3;--muted:#a5b0bf}
html[data-theme="dark"] body.executive-mode .executive-summary-card strong{color:#e5ebf3}
html[data-theme="dark"] body.executive-mode .executive-summary-card.summary-balance{background:#1d3029;border-color:#314b3d}
html[data-theme="dark"] body.executive-mode .executive-operations,html[data-theme="dark"] body.executive-mode .executive-activity,html[data-theme="dark"] body.executive-mode .executive-finance-chart,html[data-theme="dark"] body.executive-mode .executive-delivery-panel{background:var(--panel);border-color:var(--line)}
html[data-theme="dark"] body.executive-mode .executive-orders-table th{background:#202c3a;color:#a5b0bf}
html[data-theme="dark"] body.executive-mode .executive-orders-table td,html[data-theme="dark"] body.executive-mode .executive-orders-table td:first-child,html[data-theme="dark"] body.executive-mode .executive-bar-row>b{color:#d9e1ec;border-color:#303d4c}
html[data-theme="dark"] body.executive-mode .executive-orders-table td:nth-child(2) small,html[data-theme="dark"] body.executive-mode .executive-bar-row>span{color:#a5b0bf}
html[data-theme="dark"] body.executive-mode .executive-bar-track,html[data-theme="dark"] body.executive-mode .delivery-progress{background:#303d4c}
@media(max-width:1100px){.executive-summary-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.executive-insights-grid{grid-template-columns:1fr}.executive-insights-side{grid-template-columns:1fr 1fr;grid-template-rows:auto}}
@media(max-width:700px){body.executive-mode .sidebar{width:100%;height:auto;position:static;display:block;padding:10px 12px}body.executive-mode .brand{justify-content:flex-start;margin:0 0 8px}body.executive-mode .brand>span:last-child{display:block}body.executive-mode .shop-chip,body.executive-mode .nav-label,body.executive-mode .sidebar-bottom{display:none}body.executive-mode .main-nav{display:flex;overflow:auto;padding-bottom:2px}body.executive-mode .main-nav a{width:auto;height:auto;justify-content:flex-start;margin:0;padding:7px 9px;font-size:10px}body.executive-mode .main-nav a span{width:auto;font-size:15px}body.executive-mode .page-wrap{padding:17px 12px 22px}.executive-dashboard{gap:11px}.executive-dashboard-header{gap:9px}.executive-title h1{font-size:19px}.executive-title .eyebrow{font-size:8px}.executive-title p{font-size:9px}.executive-header-actions{gap:5px}.executive-quiet-link{font-size:0;padding:8px}.executive-quiet-link span{font-size:14px}.executive-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.executive-summary-card{min-height:76px;padding:10px;gap:8px}.summary-icon{width:31px;height:31px;font-size:16px}.executive-summary-card strong{font-size:16px}.executive-summary-card small,.executive-summary-card span:not(.summary-icon){font-size:8px}.executive-operations,.executive-activity,.executive-finance-chart,.executive-delivery-panel{padding:13px 11px}.executive-orders-table th,.executive-orders-table td{padding:8px 6px;font-size:9px}.executive-orders-table th:nth-child(3),.executive-orders-table td:nth-child(3){display:none}.executive-status{font-size:8px;padding:4px 6px}.executive-insights-side{grid-template-columns:1fr}.executive-bar-row{grid-template-columns:95px minmax(40px,1fr) auto;gap:6px}.executive-period-panel{padding:11px}.executive-period-form{grid-template-columns:1fr 1fr}.executive-period-form>label:first-child{grid-column:1/-1}.executive-period-current{display:block;padding:8px 2px 0}.executive-footer-links{display:grid}.executive-date-chip{display:none}}
 .recovery-action{margin-top:16px;padding-top:15px;border-top:1px solid var(--line)}.recovery-action p{font-size:12px;line-height:1.6;color:var(--muted)}
