:root{--navy:#071d3b;--navy2:#102b4c;--blue:#1673de;--blue2:#0060f4;--cyan:#16bde5;--ink:#102744;--muted:#7d91ac;--line:#e6edf5;--bg:#f3f7fc;--surface:#fff;--success:#22c55e;--yellow:#ffe633;--red:#ef4444;--shadow:0 9px 30px rgba(26,59,95,.05);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;font-size:14px;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}a{color:inherit}svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.hidden{display:none!important}.app-shell{display:flex;min-height:100vh}.sidebar{width:250px;min-width:250px;background:linear-gradient(150deg,#06182f 0%,#091f42 70%,#0b2e5c 100%);color:white;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:28px 15px 20px;z-index:12}.brand{padding:0 11px 35px;display:flex;flex-direction:column;gap:8px}.brand img{width:185px;max-width:100%;height:62px;object-fit:cover;object-position:center;border:1px solid #163b5e}.brand span{font-size:10px;letter-spacing:3px;color:#9ab8da;font-weight:800}.brand span b{font-size:10px;letter-spacing:0;color:#5c95da}.side-group-label{color:#6485ae;letter-spacing:2.3px;font-size:10px;font-weight:800;margin:13px 14px 11px}.sidebar nav{display:flex;flex-direction:column;gap:5px;overflow:auto}.nav-link{background:transparent;color:#9db5d2;border:0;width:100%;display:flex;gap:14px;align-items:center;padding:13px 14px;text-align:left;border-radius:11px;font-weight:650;font-size:13px;transition:.22s}.nav-link svg{width:19px;height:19px}.nav-link:hover{background:rgba(255,255,255,.085);color:#fff}.nav-link.active{color:#fff;background:linear-gradient(102deg,#176aff,#178dc8);box-shadow:0 8px 22px rgba(21,106,240,.25)}.nav-sep{border-top:1px solid #244062;margin:14px 9px 11px}.side-footer{margin-top:auto;padding:12px 4px 0}.system-status{border:1px solid #284c71;background:#133253;border-radius:12px;display:flex;gap:10px;padding:13px 10px;align-items:flex-start}.system-status strong{display:block;font-size:11px}.system-status small{font-size:10px;color:#829fc0;line-height:1.45;display:block;margin-top:2px}.live-dot{width:9px;height:9px;border-radius:50%;background:#27d4c2;display:inline-block;box-shadow:0 0 0 4px rgba(39,212,194,.12);margin:3px 3px 0 0;flex-shrink:0}.side-signature{font-size:9px;line-height:1.7;color:#5979a0;letter-spacing:1.3px;display:block;margin:24px 10px 0}.app-area{min-width:0;flex:1}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 37px;border-bottom:1px solid #e6edf6;background:white;position:sticky;top:0;z-index:8}.left-head,.top-actions{display:flex;align-items:center;gap:14px}.left-head{font-size:12px}.crumb-muted,.crumb-slash{color:#9aacc1}.top-date,.sync-status{font-size:12px;color:#8191a8}.sync-status{display:flex;align-items:center;gap:6px}.sync-status .live-dot{width:7px;height:7px}.icon-button{border:0;background:transparent;color:#6983a2;border-radius:9px;padding:8px;display:flex;align-items:center;justify-content:center}.icon-button:hover{background:#eaf2fa;color:var(--blue)}.icon-button svg{width:19px;height:19px}.user-pill{display:flex;gap:9px;align-items:center;border-left:1px solid var(--line);padding-left:14px;font-size:12px;font-weight:700}.avatar{width:30px;height:30px;border-radius:10px;background:linear-gradient(140deg,#00c7ea,#1368ec);display:grid;place-items:center;color:#fff;font-size:12px}.mobile-only{display:none}main{padding:36px 39px 70px;max-width:1670px;margin:0 auto}.page-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:2.6px;color:#1975da;font-weight:900;text-transform:uppercase}.page-top h1{font-size:31px;letter-spacing:-1.1px;margin:8px 0 7px;line-height:1.15}.page-top p{color:#8a9db4;font-size:13px;margin:0}.actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.btn{border:1px solid transparent;padding:12px 15px;border-radius:10px;background:linear-gradient(100deg,#0a66f0,#158ddc);color:white;font-weight:750;font-size:12px;display:inline-flex;align-items:center;gap:8px;justify-content:center;transition:transform .14s,box-shadow .18s;box-shadow:0 5px 15px rgba(0,105,255,.14)}.btn:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(0,105,255,.23)}.btn svg{width:16px;height:16px}.btn.ghost{background:white;color:#4c6484;border:1px solid #dce7f4;box-shadow:none}.btn.ghost:hover{background:#f6faff}.btn.soft{background:#eaf4ff;color:#1470d0;box-shadow:none}.btn.danger{background:#fff0f1;color:#e04b52;box-shadow:none}.btn.sm{padding:8px 11px;font-size:11px;border-radius:8px}.btn.full{width:100%}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:24px}.metric{background:#fff;border:1px solid #edf0f5;border-radius:17px;padding:21px 20px;box-shadow:var(--shadow);min-height:135px;position:relative;overflow:hidden}.metric:after{position:absolute;content:'';height:3px;left:30%;right:0;bottom:0;background:linear-gradient(90deg,transparent,#14d2e6,#1677ee);opacity:.7}.metric .metric-head{display:flex;align-items:center;justify-content:space-between;color:#8598b0;font-size:11px;font-weight:750;gap:8px}.metric .metric-head .mini-icon{width:33px;height:33px;border-radius:10px;background:#eff7ff;display:grid;place-items:center;color:#2478e2}.metric .metric-head svg{width:17px;height:17px}.metric .number{font-size:26px;font-weight:850;letter-spacing:-.8px;margin:11px 0 3px;color:#112743;white-space:nowrap}.metric small{color:#a3b0c0;font-size:10px}.section-label{color:#2374cb;font-size:10px;letter-spacing:2.3px;font-weight:900;text-transform:uppercase;margin:24px 0 7px}.section-heading{font-size:20px;letter-spacing:-.55px;margin:0 0 17px}.panel{background:white;border:1px solid #e8edf5;border-radius:17px;box-shadow:var(--shadow);padding:23px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:19px}.panel-head h3{font-size:14px;margin:0 0 6px}.panel-head p{color:#9aaac0;font-size:11px;margin:0}.layout-2{display:grid;grid-template-columns:1.25fr 1fr;gap:17px;margin-bottom:18px}.layout-2.equal{grid-template-columns:1fr 1fr}.layout-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}.table-wrap{overflow:auto;border-radius:12px;border:1px solid #edf1f7}.table{width:100%;border-collapse:collapse;font-size:12px}.table th{padding:13px 14px;text-align:left;white-space:nowrap;background:#f6f9fd;color:#7d91ac;font-weight:800;font-size:10px;text-transform:uppercase;letter-spacing:.4px}.table td{padding:14px;border-top:1px solid #eff3f8;vertical-align:middle}.table tr:hover td{background:#f8fbff}.table .clickable{cursor:pointer}.strong{font-weight:790;color:#183252}.muted{color:#91a1b7}.tiny{font-size:10px}.small{font-size:12px}.status{display:inline-flex;gap:7px;align-items:center;font-size:11px;font-weight:740}.dot{width:10px;height:10px;border-radius:50%;flex:0 0 10px;display:inline-block}.dot.pendiente{background:#ef4444}.dot.proceso{background:#ffe633}.dot.completado{background:#22c55e}.tag{display:inline-flex;align-items:center;border-radius:99px;padding:5px 10px;font-size:10px;font-weight:790;background:#edf4ff;color:#2569bb}.tag.warn{background:#fff8db;color:#ac8500}.tag.good{background:#e3faef;color:#168e5e}.tag.bad{background:#feefed;color:#d85e52}.tag.muted{background:#f0f3f8;color:#6c819b}.filterbar{background:#fff;border:1px solid #e8edf5;border-radius:16px;padding:16px 18px;display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:18px}.filterbar .field{min-width:155px;flex:1}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label{color:#6e819c;font-size:11px;font-weight:770}.field input,.field select,.field textarea,.input{width:100%;background:#f9fbfe;border:1px solid #dfe8f3;color:#203652;border-radius:10px;padding:11px 12px;outline:0;transition:.2s;min-height:42px;font-size:12px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#2788e5;box-shadow:0 0 0 3px rgba(28,130,225,.12);background:white}.field textarea{resize:vertical;min-height:77px;line-height:1.5}.field select{appearance:auto}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.span2{grid-column:span 2}.divider{height:1px;background:#e6edf5;margin:14px 0}.empty{padding:47px 16px;text-align:center;color:#8093aa;background:linear-gradient(140deg,#fbfdff,#f4f8fc);border-radius:12px;border:1px dashed #dce7f4}.empty .empty-mark{width:48px;height:48px;border-radius:16px;background:#e8f3ff;color:#2680de;display:grid;place-items:center;margin:0 auto 12px}.empty h4{color:#3e5b7d;margin:0 0 6px}.empty p{max-width:390px;margin:0 auto;font-size:12px;line-height:1.6}.progress-bar{border-radius:50px;height:17px;position:relative;min-width:0;box-shadow:inset 0 1px 2px rgba(0,0,0,.09);transition:background .65s}.progress-bar:after{content:'';position:absolute;width:14px;height:14px;background:#fff;border:2px solid #173654;box-shadow:0 2px 6px rgba(0,0,0,.15);border-radius:50%;left:calc(var(--progress) * .95%);top:50%;transform:translate(-50%,-50%);transition:left .55s}.progress-small{height:8px;background:#e8f0f9;border-radius:12px;overflow:hidden}.progress-small span{display:block;height:100%;background:linear-gradient(90deg,#078de2,#12c9e7);border-radius:12px}.tabs{display:flex;gap:3px;overflow:auto;border-bottom:1px solid #e8edf5;margin-bottom:17px}.tab{border:0;background:transparent;color:#8a9db5;padding:12px 15px;white-space:nowrap;border-bottom:2px solid transparent;font-size:12px;font-weight:750}.tab.active{color:#1769ce;border-bottom-color:#176de1}.drawer-cover{position:fixed;inset:0;z-index:18;background:rgba(4,23,48,.43);backdrop-filter:blur(4px);transition:opacity .25s}.drawer{position:fixed;z-index:19;right:0;top:0;height:100vh;width:min(660px,100%);background:#fff;box-shadow:-18px 0 45px rgba(6,29,59,.15);transform:translateX(110%);transition:transform .32s cubic-bezier(.2,.7,.2,1);display:flex;flex-direction:column}.drawer.open{transform:translateX(0)}.drawer.wide{width:min(880px,100%)}.drawer-head{background:#fff;border-bottom:1px solid var(--line);padding:24px 30px;display:flex;justify-content:space-between;align-items:center}.drawer-head h2{font-size:21px;letter-spacing:-.5px;margin:5px 0 0}.drawer-body{overflow-y:auto;padding:26px 30px 36px}.drawer-block{border:1px solid #e7edf6;border-radius:15px;padding:20px;margin-bottom:15px}.drawer-block h3{font-size:13px;margin:0 0 14px}.drawer-block .hint{font-size:11px;color:#8398af;line-height:1.6}.drawer-bar{background:#102b4c;color:white;padding:21px;border-radius:14px;margin:16px 0}.drawer-bar strong{font-size:26px;letter-spacing:-1px}.form-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.line-item{border:1px solid #edf1f6;border-radius:12px;padding:14px;margin:9px 0}.line-item strong{display:block;font-size:12px}.line-item small{color:#8ca0b7;display:block;margin-top:4px}.line-item .right{margin-left:auto;text-align:right}.chiplike{padding:6px 9px;background:#eff5fc;border-radius:9px;font-size:11px;font-weight:740;color:#356087}.stack{display:flex;flex-direction:column;gap:12px}.flex-between{display:flex;align-items:center;justify-content:space-between;gap:10px}.flex-start{display:flex;align-items:center;gap:10px}.summary-row{display:flex;justify-content:space-between;padding:9px 0;font-size:12px;gap:12px}.summary-row b{white-space:nowrap}.summary-row.total{font-weight:850;font-size:16px;border-top:1px solid #dce7f4;margin-top:8px;padding-top:16px}.label-light{color:#8a9db4}.note{background:#f0f7ff;border-left:3px solid #2284da;border-radius:0 10px 10px 0;padding:12px 14px;font-size:11px;line-height:1.6;color:#496b92;margin:15px 0}.note.warn{background:#fff9e7;border-color:#e6b800;color:#9c7a16}.section-row{display:flex;align-items:center;justify-content:space-between;margin:8px 0 13px}.section-row h3{margin:0;font-size:15px}.toast-wrap{position:fixed;bottom:25px;right:22px;z-index:40;display:flex;flex-direction:column;gap:8px}.toast{background:#102b4c;border:1px solid #345e84;color:white;border-radius:11px;padding:15px 18px;box-shadow:0 10px 35px rgba(4,29,50,.26);font-size:12px;max-width:420px}.toast.error{background:#9f3244}.auth-screen{min-height:100vh;display:grid;grid-template-columns:44% 56%;background:#f6f9fc}.auth-panel{background:#fff;padding:9vh clamp(25px,7vw,110px);display:flex;flex-direction:column;justify-content:center;min-width:0}.auth-logo{width:210px;height:75px;object-fit:cover;object-position:center;margin-bottom:35px;border-radius:7px}.auth-panel h1{font-size:28px;letter-spacing:-.9px}.auth-panel p{line-height:1.65;color:#7b8ea8;font-size:13px}.auth-art{background:radial-gradient(ellipse at 60% 23%,#19588f 0%,#0b2a53 40%,#061b38 80%);position:relative;color:white;overflow:hidden;display:flex;align-items:center;padding:60px}.art-content{z-index:1;max-width:570px}.art-content h2{font-size:clamp(35px,4.1vw,62px);letter-spacing:-2.8px;line-height:1.16}.art-content h2 em{font-style:normal;color:#18c1ec}.art-content p{font-size:16px;line-height:1.8;color:#9ebcd7;max-width:410px}.art-tag{font-size:10px;letter-spacing:3px;color:#a4cae6;font-weight:800;display:block;margin-top:50px}.art-glow{position:absolute;right:-150px;top:-100px;width:600px;height:600px;border:1px solid #20517d;border-radius:50%;box-shadow:0 0 0 100px rgba(18,101,161,.05),0 0 0 200px rgba(18,101,161,.04)}.auth-panel form{max-width:420px}.auth-panel .btn{margin-top:8px}.loader{width:32px;height:32px;border-radius:50%;border:3px solid #dfeafa;border-top-color:#147ae9;animation:spin .8s linear infinite;margin:22px auto}@keyframes spin{to{transform:rotate(360deg)}}.chart-area{width:100%;min-height:235px}.chart-area svg{width:100%;height:230px;overflow:visible}.chart-axis{fill:#93a5b8;font:10px sans-serif}.legend{display:flex;flex-wrap:wrap;gap:15px;margin-top:6px;font-size:11px;color:#7386a1}.legend span::before{content:'';width:9px;height:9px;border-radius:50%;background:var(--c);display:inline-block;margin-right:6px}.chart-tip{background:#f4f9ff;border-radius:9px;padding:7px 11px;font-size:11px;white-space:nowrap}.bars{display:flex;flex-direction:column;gap:12px}.barline{display:grid;grid-template-columns:minmax(110px,1fr) minmax(120px,2fr) 55px;gap:10px;align-items:center;font-size:11px}.bar-track{height:11px;border-radius:20px;background:#edf2f8;overflow:hidden}.bar-track span{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#14c1df,#1969eb)}.mobile-cover{display:none}.badge-compact{font-size:10px;font-weight:800;letter-spacing:1px;color:#1c70cc}.split-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px}.value-blue{color:#1774d6}.notice-inline{font-size:11px;color:#7791ad;margin-top:6px}.listdot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#16c3cc;margin-right:8px}.stat-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stat-tile{padding:14px;background:#f5f9fe;border-radius:12px}.stat-tile span{display:block;color:#889bb2;font-size:10px}.stat-tile strong{display:block;font-size:20px;margin-top:6px}.selectable{cursor:pointer}.selectable:hover{border-color:#6eabe4;box-shadow:0 7px 20px rgba(26,107,205,.08)}
@media(max-width:1300px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-2{grid-template-columns:1fr 1fr}main{padding:25px 26px 50px}.topbar{padding:0 26px}}
@media(max-width:950px){.sidebar{position:fixed;left:0;top:0;transform:translateX(-105%);transition:transform .25s}.sidebar.open{transform:translateX(0)}.mobile-cover:not(.hidden){display:block;position:fixed;inset:0;background:#061c39aa;z-index:11}.mobile-only{display:inline-flex}.layout-2,.layout-3{grid-template-columns:1fr}.top-date{display:none}}
@media(max-width:600px){main{padding:23px 15px}.topbar{height:64px;padding:0 12px}.top-actions{gap:3px}.user-pill{padding-left:6px}.sync-status{display:none}.page-top h1{font-size:25px}.page-top{flex-direction:column}.page-top .actions{width:100%}.metric{padding:17px 14px;min-height:125px}.metric .number{font-size:20px}.metrics{gap:10px}.panel{padding:15px}.form-grid,.form-grid.three,.split-cols{grid-template-columns:1fr}.span2{grid-column:auto}.drawer-head{padding:18px 17px}.drawer-body{padding:17px}.auth-screen{grid-template-columns:1fr}.auth-panel{padding:65px 25px;min-height:100vh}.auth-art{display:none}.barline{grid-template-columns:90px 1fr 38px}.tag{font-size:9px}}

/* V2.1.2 — Control granular de acceso */
.perm-row{display:grid;grid-template-columns:minmax(0,1fr) 165px;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #e8eff7}
.perm-row strong{font-size:12px;color:#1b3555;display:block}
.perm-row small{font-size:10px;color:#8b9eb6;margin-top:3px;display:block}
.perm-select{border:1px solid #dce7f2;border-radius:9px;background:#f7faff;color:#173656;padding:10px;font-size:11px;min-height:39px;max-width:100%}
.perm-select:disabled{background:#ecf0f6;color:#9eabc1}
.perm-check{display:flex;gap:10px;align-items:center;font-weight:600;font-size:12px;padding:9px 0;color:#445d7b}
.perm-check input{width:16px;height:16px;accent-color:#166fec;flex:none}
.access-tile{display:flex;align-items:flex-start;flex-direction:column;text-align:left;gap:8px;cursor:pointer;min-height:115px}
.access-tile svg{color:#1371d4}
.access-tile small{color:#788da8}
.access-tile:hover{border-color:#91b6e8;background:#fbfdff}
@media(max-width:600px){.perm-row{grid-template-columns:1fr;gap:5px}.perm-select{width:100%}}

/* V2.1.4: reminders and autosaved drafts. */
.pending-alert{display:flex;align-items:center;gap:14px;padding:16px 18px;margin-bottom:22px;border-radius:14px;border:1px solid #eadca8;background:#fffaf0;color:#6b5630;box-shadow:0 6px 20px rgba(16,43,76,.045)}
.pending-alert .pending-bell{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#fff1bb;color:#9d7510;flex-shrink:0}
.pending-alert .pending-bell svg{width:19px;height:19px}
.pending-alert>div:nth-child(2){flex:1;min-width:0}
.pending-alert .muted{color:#8a785a}
@media(max-width:680px){.pending-alert{flex-wrap:wrap}.pending-alert .btn{width:100%}.line-item .flex-between{flex-wrap:wrap}}

/* INELEC V2.1.5 – legibilidad de ejes e informes gerenciales */
.chart-area{min-height:250px}.chart-area svg{height:auto;min-height:250px;max-height:305px;display:block}
.chart-axis{font-size:13px;fill:#536f92;font-weight:600;font-family:system-ui,sans-serif}
.chart-value{font-size:12px;fill:#102b4c;font-weight:800;font-family:system-ui,sans-serif}
.chart-label{font-size:12px;fill:#7189a5;font-weight:700;letter-spacing:1px;font-family:system-ui,sans-serif}
.manager-stats{margin:0 0 14px}.manager-fields{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1050px){.manager-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:570px){.manager-fields{grid-template-columns:1fr}.manager-stats{grid-template-columns:1fr}}

.manager-rank{padding:16px 18px;border-radius:12px;border:1px solid #e6eef8;margin:14px 0 18px}.manager-rank h3{font-size:13px;margin:0 0 14px}.manager-rank .barline{grid-template-columns:minmax(130px,1fr) minmax(150px,3fr) 70px}

@media(max-width:600px){.manager-rank{padding:12px}.manager-rank .barline{grid-template-columns:95px minmax(30px,1fr) 50px;gap:5px}.chart-area{overflow-x:auto}.chart-area svg{width:640px;min-height:235px;height:235px}}

/* V2.1.6: jerarquía visual liviana y acceso rápido a datos extensos. */
.chart-axis{font-weight:400;font-size:12px;fill:#61758e;letter-spacing:0}
.chart-value{font-weight:400;font-size:12px;fill:#233f61;letter-spacing:0}
.chart-label{font-weight:500;font-size:11px;fill:#6f859f;letter-spacing:0}
.bars .barline > b,.manager-rank .barline > b{font-weight:400;color:#244362;font-variant-numeric:tabular-nums}
.inventory-panel{padding-top:12px}
.inventory-panel .inventory-scroll-hint{font-size:11px;color:#7187a0;margin:0 0 9px}
.inventory-panel .table-wrap{max-height:min(68vh,670px);overflow-y:auto;overflow-x:auto;overscroll-behavior:contain;border-radius:10px}
.inventory-panel .table{border-collapse:separate;border-spacing:0;min-width:810px}
.inventory-panel .table thead th{position:sticky;top:0;z-index:3;background:#edf4fc;box-shadow:0 2px 0 #d6e4f2,0 3px 7px rgba(20,57,96,.06)}
.commercial-explainer{background:#f6f9fe;border:1px solid #e1ebf6;border-radius:11px;padding:13px 14px;margin:14px 0 2px;color:#365372;line-height:1.5;font-size:11.5px}
.commercial-explainer>strong{font-size:12px;color:#173656}.commercial-explainer p{margin:7px 0 0}
.payment-card{background:#fbfdff}.payment-card strong{color:#1c4166}
.payment-hint{font-size:11px;color:#647f9c;line-height:1.5;margin:9px 0 0}
.payment-allocation{font-size:12px;color:#3b5878;background:#edf5ff;padding:9px 11px;border-radius:9px;margin-top:4px}
.payment-allocation span{padding:0 5px;color:#91a9c2}
.production-step-intro{font-size:12px;line-height:1.6;color:#385878;background:#f2f7fd;border-radius:10px;padding:12px 14px;margin-bottom:16px}
.production-route{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:7px;align-items:center;margin:13px 0 16px}
.production-route>div{border-radius:12px;background:#f2f7fd;border:1px solid #dfe9f4;padding:12px;min-height:85px}
.production-route small{display:block;color:#6e849c;letter-spacing:.5px;font-size:9px;margin-bottom:10px}
.production-route strong{font-size:12px;font-weight:650;line-height:1.4;display:block;color:#234464}
.production-route-arrow{color:#2376cf;font-size:22px;text-align:center}
@media(max-width:600px){.inventory-panel .table-wrap{max-height:65vh}.production-route strong{font-size:11px}}

/* V2.1.7: logo original integrado sin caja, jerarquía sutil para datos de gráficos. */
.brand img{border:0!important;box-shadow:none!important;background:transparent!important;mix-blend-mode:lighten;object-fit:contain!important;object-position:center;max-width:100%;height:auto;min-height:48px}
.brand{padding-left:8px;padding-right:8px}
.chart-area .chart-axis{font:400 11.5px -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;fill:#8095ab!important;letter-spacing:0!important}
.chart-area .chart-value{font:400 11.5px -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;fill:#667e98!important;letter-spacing:0!important}
.chart-area .chart-label{font:400 11px -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;fill:#889bb0!important;letter-spacing:0!important}

.auth-logo{border:0;box-shadow:none;background:#fff;object-fit:contain}

/* V2.1.8: discreet per-account notification indicator. */
.notif-button{position:relative}.notif-count{position:absolute;top:-3px;right:-4px;background:#e45757;color:white;border-radius:12px;padding:1px 5px;font-size:10px;line-height:15px;font-weight:600}.notif-count.hidden{display:none}.notification-row.unread{border-left:3px solid #2875df;background:#f6f9ff}

/* V2.1.9 — compact view of the orders behind production demand */
.prod-order-list{margin-top:8px;font-size:12px;color:#617791;line-height:1.6;}
.prod-order-list summary{cursor:pointer;color:#2870b8;font-weight:500;}
.prod-order-list div{padding-left:10px;margin-top:3px;}

/* V2.1.10: selector compacto de referencias con pedidos en Producción. */
.production-picker{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;padding:4px 0 2px}
.production-picker>.field{flex:1 1 360px;min-width:230px}
.production-picker-summary{display:flex;flex:1 1 260px;flex-wrap:wrap;gap:5px 16px;align-self:center;font-size:12px;color:#526780}
.production-picker-summary strong{font-weight:600;color:#102b4c}
.production-picker .btn{flex:0 0 auto}

/* V2.1.11 — Almacén de materiales: stock desconocido ≠ 0, lectura sencilla. */
.bom-row{display:grid;grid-template-columns:minmax(0,1fr) 105px 112px;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #e7eff8}
.bom-row b{font-size:11px;font-weight:600;line-height:1.4;display:block;color:#173b62}
.bom-row small{display:block;font-size:10px;color:#8095af;margin-top:3px}
.bom-row input[type=number]{width:100%;border:1px solid #dae7f4;border-radius:8px;padding:9px;font-size:12px;background:#fafdff;color:#183859}
.bom-check{font-size:10px;color:#516e8a;display:flex;align-items:center;gap:5px}
.bom-check input{accent-color:#2073d9}
#plan-material-preview .note{margin-top:12px}
@media(max-width:590px){.bom-row{grid-template-columns:1fr 95px;gap:8px}.bom-check{grid-column:1/-1;margin-bottom:4px}}

.bom-row{grid-template-columns:minmax(0,1fr) 100px 88px 75px}
@media(max-width:590px){.bom-row{grid-template-columns:1fr 95px}.bom-check{grid-column:auto;margin:0}}

/* INELEC V2.1.12 — material alerts, visible without opening detail drawers. */
.material-alert-home{background:#fff;border:1px solid #e6ecf3;border-radius:16px;padding:17px 18px;margin-bottom:23px}
.material-alert-home-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}
.material-alert-home h3{margin:0;font-size:16px;font-weight:650;color:#173654}
.material-alert-home-head p{color:#71859b;font-size:11.5px;margin:6px 0 0}
.alert-total{font-size:11px;color:#6b7892;white-space:nowrap;background:#f1f5fa;padding:7px 10px;border-radius:20px}
.material-alert-card{display:flex;gap:12px;align-items:center;justify-content:space-between;border-radius:12px;border:1px solid #f5ccca;background:#fff8f7;border-left:5px solid #e34949;padding:14px 15px;margin:9px 0}
.material-alert-card.caution{background:#fffaf0;border-color:#f0dfa7;border-left-color:#e4af23}
.material-alert-card.clear{background:#f4fbf7;border-color:#cfe8da;border-left-color:#31a86d;color:#37755b;font-size:12px}
.material-alert-card.clear svg{width:16px;height:16px;vertical-align:middle;margin-right:6px}
.material-alert-card-main{display:flex;align-items:flex-start;gap:11px;flex:1;min-width:0}
.material-alert-indicator{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border-radius:9px;background:#ffe1df;color:#c73535}
.material-alert-indicator svg{width:17px;height:17px}
.caution .material-alert-indicator{background:#fff0be;color:#987308}
.material-alert-card-main strong{font-size:12px;font-weight:650;color:#793737}
.material-alert-card.caution strong{color:#886717}
.material-alert-card-main p{font-size:11px;color:#72575a;line-height:1.55;margin:6px 0 0;white-space:normal}
.material-alert-card-main small{font-size:10px;color:#78869d;display:block;margin-top:6px}
.material-alert-card-buttons{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.material-alert-archive{font-size:11px;color:#7e8da0;margin:12px 0 1px}
.material-brief{display:grid;gap:6px;margin-top:7px;max-width:450px}
.material-brief-line{display:flex;align-items:flex-start;gap:5px;border-radius:7px;padding:7px 9px;font-size:11px;line-height:1.35}
.material-brief-line.critical{background:#ffedeb;color:#a12e2e;border-left:3px solid #df4545}
.material-brief-line.caution{background:#fff7df;color:#896613;border-left:3px solid #e2b03c}
.material-brief-line svg{width:13px;height:13px;flex:0 0 13px;margin-top:1px}
.mat-row-critical td{background:#fff5f4 !important}
.mat-row-warning td{background:#fffdf4 !important}
.mat-row-critical td:first-child{border-left:4px solid #e15757}
.mat-row-warning td:first-child{border-left:4px solid #e6b946}
.note.danger{background:#fff0ed;border-left-color:#db4848;color:#9e3333}
.production-picker-alert{margin:12px 0 13px}
@media(max-width:720px){.material-alert-home{padding:13px}.material-alert-card{flex-direction:column;align-items:stretch}.material-alert-card-buttons{justify-content:space-between}.material-alert-home-head{flex-wrap:wrap}}

/* V2.1.13 — lectura tranquila y jerarquía por planificación. */
.clean-priority-note{display:flex;gap:12px;align-items:flex-start;border:1px solid #dbe8f3;background:#f5f9fd;color:#345776;border-radius:13px;padding:15px 18px;margin:22px 0 34px;font-size:12px;line-height:1.7}
.clean-priority-note svg{flex:none;width:19px;height:19px;margin-top:2px}
.clean-work-section{margin:34px 0 44px}
.clean-section-head{margin:0 0 20px;padding:0 0 17px;border-bottom:1px solid #dce7f2}
.clean-section-head>span{font-size:10px;font-weight:750;letter-spacing:1.7px;color:#6686a6}
.clean-section-head h2{font-size:23px;font-weight:750;letter-spacing:-.5px;color:#173654;margin:8px 0 6px}
.clean-section-head p{font-size:12px;color:#7088a0;line-height:1.6;margin:0}
.clean-plan-list{display:flex;flex-direction:column;gap:22px}
.clean-plan-card{background:white;border:1px solid #e0e8f1;border-left:5px solid #afbdd0;border-radius:16px;padding:24px 26px;box-shadow:0 4px 16px rgba(20,48,77,.04)}
.clean-plan-card.danger{border-left-color:#d84646;background:#fffafa}
.clean-plan-card.warning{border-left-color:#e4ad27;background:#fffdf7}
.clean-plan-card.ok{border-left-color:#2ca56b;background:#fafffc}
.clean-plan-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:22px}
.clean-plan-title{min-width:0}
.clean-plan-title h3{font-size:clamp(20px,2.1vw,25px);font-weight:800;letter-spacing:-.6px;line-height:1.25;color:#143554;margin:9px 0 7px}
.clean-plan-title small{font-size:12px;color:#8293a7}
.clean-plan-code{display:block;color:#5b7895;font-size:11px;font-weight:750;letter-spacing:.45px}
.clean-plan-status{flex:none;padding-top:3px}
.clean-plan-meta{display:flex;align-items:center;flex-wrap:wrap;gap:12px 28px;border-top:1px solid #e5edf5;padding:17px 0;font-size:13px;color:#536980}
.clean-plan-meta b{font-size:19px;color:#173654;margin-right:4px}
.clean-plan-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding-top:3px}
.clean-order-details{margin-top:20px;border-top:1px solid #e6edf5;padding-top:12px;font-size:12px;color:#7088a1}
.clean-order-details summary{font-weight:700;cursor:pointer;color:#3e709e}
.clean-order-details div{padding:7px 0 3px 11px}
.clean-demand-list{display:flex;flex-direction:column;gap:17px}
.clean-demand-card{background:#fff;border:1px solid #dfe8f2;border-radius:15px;padding:22px 24px;display:grid;gap:18px}
.clean-demand-card h3{font-size:21px;color:#183b5b;margin:0 0 6px;line-height:1.3;letter-spacing:-.3px}
.clean-demand-card small{font-size:11px;color:#8498ae}
.clean-demand-numbers{display:flex;flex-wrap:wrap;gap:13px 26px;font-size:12px;color:#647b94}
.clean-demand-numbers b{color:#153c61;font-size:17px;margin-right:4px}
.clean-demand-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.clean-table-product{font-weight:750;color:#173654;font-size:15px;line-height:1.5}
.clean-table-product small{display:block;color:#8a9daf;font-size:11px;font-weight:400}
.clean-optional-section{border:1px solid #e1eaf4;background:white;border-radius:14px;margin:24px 0;padding:20px 22px}
.clean-optional-section summary{cursor:pointer;font-size:14px;font-weight:750;color:#234968;line-height:1.55}
.clean-optional-section[open] summary{margin-bottom:18px;padding-bottom:15px;border-bottom:1px solid #e6edf4}
.clean-optional-section p{font-size:12px;color:#6f879e;line-height:1.6}
.clean-detail-heading{font-size:25px;color:#173654;line-height:1.3;margin:12px 0}
.clean-detail-status{margin:15px 0 0}
.clean-detail-section{margin:24px 0}
.clean-detail-section h3{font-size:17px;font-weight:750;margin-bottom:13px}
.clean-detail-critical{color:#bd3e3e}.clean-detail-warning{color:#a27411}
.clean-unit{display:block;font-size:11px;color:#8b9eae;margin-top:5px;font-weight:400}
.clean-footnote{color:#788ba2;font-size:11px;line-height:1.7;margin-top:22px}
@media(max-width:760px){.clean-plan-card{padding:19px}.clean-plan-head{flex-direction:column;gap:12px}.clean-plan-meta{gap:12px 18px}.clean-section-head h2{font-size:21px}.clean-plan-title h3{font-size:22px}.clean-demand-card{padding:18px}.clean-plan-list{gap:16px}}

/* V2.1.14 — clearer planning cards, more breathing room */
.clean-work-section{margin-top:44px!important;margin-bottom:42px!important}
.clean-section-head{margin-bottom:24px!important;padding-bottom:15px}
.clean-section-head h2{font-size:clamp(22px,2.5vw,30px)!important;line-height:1.3!important;margin:10px 0!important}
.clean-plan-list{display:grid;gap:20px!important}
.clean-plan-card{padding:24px 27px!important;margin-bottom:0!important;border-radius:16px!important}
.clean-plan-title h3{font-size:clamp(21px,2vw,27px)!important;line-height:1.28!important;margin:12px 0 8px!important;letter-spacing:-.01em}
.clean-plan-meta{margin-top:22px!important;margin-bottom:20px!important;gap:18px!important}
.clean-plan-actions{margin-top:20px!important;gap:12px!important}
.clean-demand-list{display:grid;gap:16px!important}
.clean-demand-card{padding:22px!important}
.clean-demand-card h3{font-size:20px!important;line-height:1.3!important;margin-bottom:9px!important}
.clean-optional-section{margin:24px 0!important}
@media(max-width:640px){.clean-plan-card{padding:19px!important}.clean-plan-title h3{font-size:21px!important}}
