:root{--green:#103f32;--green2:#1f6650;--green3:#2c7b60;--orange:#cda54c;--gold:#cda54c;--gold-dark:#9b7424;--gold-soft:#f7efd9;--ink:#17231f;--muted:#6e7b75;--line:#dde6e1;--bg:#f5f7f3;--soft:#e9f3ee;--white:#fff;--shadow:0 16px 44px rgba(16,63,50,.1)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.no-scroll{overflow:hidden}.app-shell{min-height:100vh;display:flex}.sidebar{position:fixed;inset:0 auto 0 0;z-index:30;width:270px;display:flex;flex-direction:column;background:#123d33;color:#fff;box-shadow:12px 0 40px rgba(16,55,45,.09)}.brand-block{height:98px;padding:17px 23px;display:flex;align-items:center;border-bottom:1px solid rgba(255,255,255,.1)}.brand-block img{width:190px;max-height:60px;object-fit:contain}.brand-block button{display:none;margin-left:auto;border:0;background:transparent;color:white;font-size:30px}.workspace-label{margin:0;padding:25px 25px 10px;color:#87aaa0;font-size:10px;font-weight:800;letter-spacing:.17em}.sidebar nav{padding:0 12px;display:grid;gap:5px}.sidebar nav button{height:46px;padding:0 13px;display:flex;align-items:center;gap:12px;border:0;border-radius:10px;background:transparent;color:#bad0c9;text-align:left;transition:.16s ease}.sidebar nav button:hover{background:rgba(255,255,255,.07);color:white}.sidebar nav button.active{background:var(--orange);color:white;box-shadow:0 8px 22px rgba(244,123,54,.25)}.sidebar nav button span{width:25px;height:25px;display:grid;place-items:center;border:1px solid currentColor;border-radius:7px;font-weight:800}.sidebar nav button b{font-size:13px}.sidebar nav button em{margin-left:auto;min-width:22px;height:22px;padding:0 6px;display:grid;place-items:center;border-radius:99px;background:rgba(255,255,255,.18);font-size:10px;font-style:normal}.side-help{margin:auto 17px 14px;padding:13px;display:flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.06)}.side-help img{width:36px;height:36px;padding:2px;border-radius:9px;background:white;object-fit:contain}.side-help div{display:flex;flex-direction:column;gap:3px}.side-help strong{font-size:11px}.side-help small{color:#9dbbb2;font-size:9px}.user-card{min-height:76px;padding:13px 17px;display:flex;align-items:center;gap:10px;border-top:1px solid rgba(255,255,255,.1)}.user-card>span{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:var(--orange);font-size:11px;font-weight:800}.user-card div{min-width:0;display:flex;flex-direction:column;gap:2px}.user-card div strong{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.user-card small{color:#96b2a9;font-size:9px}.user-card a{margin-left:auto;color:#bcd0ca;font-size:10px;text-decoration:none}.content{width:calc(100% - 270px);margin-left:270px;min-height:100vh}.topbar{height:68px;padding:0 38px;display:flex;align-items:center;justify-content:flex-end;border-bottom:1px solid var(--line);background:white}.top-actions{display:flex;align-items:center;gap:16px}.stock-chip{padding:9px 13px;display:flex;align-items:center;gap:7px;border-radius:99px;background:var(--soft);color:var(--green2);font-size:11px}.stock-chip i{width:7px;height:7px;border-radius:50%;background:#4aa47f;box-shadow:0 0 0 4px rgba(74,164,127,.13)}.credit-shortcut{position:relative;width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--green);font-weight:800}.credit-shortcut b{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;border:2px solid white;border-radius:99px;background:var(--orange);color:white;font-size:8px}.menu-toggle,.mobile-brand{display:none}.page-wrap{max-width:1460px;margin:0 auto;padding:35px 38px 55px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.kicker{margin:0 0 8px;color:var(--orange);font-size:9px;font-weight:850;letter-spacing:.18em}.page-head h1{margin:0;color:#173f35;font-size:29px;line-height:1.15;letter-spacing:-.025em}.page-head>div>p:last-child{margin:9px 0 0;color:var(--muted);font-size:13px}.head-actions{display:flex;gap:9px}.primary-button,.secondary-button{min-height:44px;padding:0 18px;border-radius:10px;font-weight:750;font-size:12px}.primary-button{border:1px solid var(--orange);background:var(--orange);color:white;box-shadow:0 7px 18px rgba(244,123,54,.2)}.primary-button.compact{min-width:auto}.secondary-button{border:1px solid var(--line);background:white;color:#315046}.metrics{margin-top:27px;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.metric{min-height:150px;padding:20px;display:flex;flex-direction:column;justify-content:center;border:1px solid var(--line);border-left:4px solid #6d89b5;border-radius:15px;background:white}.metric.green{border-left-color:#429176}.metric.orange{border-left-color:var(--orange)}.metric.gold{border-left-color:#d5a33e}.metric>span{color:var(--muted);font-size:11px}.metric>strong{margin-top:8px;color:var(--green);font-size:24px;letter-spacing:-.025em}.metric>small{margin-top:6px;color:#92a098;font-size:10px;line-height:1.4}.quick-flow{margin-top:14px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.quick-flow button{min-height:75px;padding:14px 15px;display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:11px;border:1px solid var(--line);border-radius:14px;background:white;text-align:left;transition:.16s ease}.quick-flow button:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.quick-flow button>span{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:var(--soft);color:var(--green2);font-size:11px;font-weight:850}.quick-flow button div{display:flex;flex-direction:column;gap:3px}.quick-flow button b{color:#294b40;font-size:12px}.quick-flow button small{color:#89968f;font-size:9px}.quick-flow button em{color:#547067;font-style:normal}.quick-flow button.accent{border-color:var(--orange);background:var(--orange)}.quick-flow button.accent b,.quick-flow button.accent em{color:white}.quick-flow button.accent small{color:#ffe0ce}.quick-flow button.accent>span{background:rgba(255,255,255,.18);color:white}.dashboard-grid{margin-top:15px;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,.75fr);gap:15px;align-items:start}.side-panels{display:grid;gap:15px}.panel{margin-top:26px;overflow:hidden;border:1px solid var(--line);border-radius:15px;background:white}.dashboard-grid>.panel,.side-panels>.panel{margin-top:0}.panel>header{min-height:72px;padding:18px 20px 13px;display:flex;align-items:flex-start;justify-content:space-between;gap:15px;border-bottom:1px solid #edf1ef}.panel h2{margin:0;color:#294b40;font-size:15px}.panel header p{margin:5px 0 0;color:#909c96;font-size:10px}.panel header button,.panel-link{border:0;background:transparent;color:var(--orange);font-size:10px;font-weight:750}.table-wrap{overflow:auto}table{width:100%;min-width:720px;border-collapse:collapse}th{padding:12px 14px;background:#f7f9f8;color:#87948e;font-size:9px;letter-spacing:.055em;text-align:left;text-transform:uppercase}td{padding:14px;border-top:1px solid #edf1ef;color:#52635b;font-size:10px;white-space:nowrap}td strong{color:#294b40;font-size:10px}td small{display:block;margin-top:3px;color:#9aa49f;font-size:8px}.badge{padding:5px 8px;border-radius:99px;font-size:8px;font-weight:800}.badge.paid{color:#28775a;background:#e8f5ef}.badge.pending{color:#ad6d15;background:#fff2d9}.badge.partial{color:#4f70a5;background:#eaf0f8}.stock-flow{padding:19px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:9px}.stock-flow div{padding:13px;border-radius:10px;background:#f1f7f4}.stock-flow div:first-child{background:#fff5ec}.stock-flow small{display:block;color:#7c8c84;font-size:9px}.stock-flow b{display:block;margin-top:6px;color:var(--green);font-size:16px}.stock-flow>span{color:var(--orange)}.panel-link{width:100%;height:40px;border-top:1px solid var(--line);background:#fafcfb}.credit-card{width:100%;padding:12px 17px;display:grid;grid-template-columns:34px 1fr auto;align-items:start;gap:10px;border:0;border-top:1px solid var(--line);background:white;text-align:left}.credit-card>span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--soft);color:var(--green2);font-size:9px;font-weight:800}.credit-card div{display:flex;flex-direction:column}.credit-card div b{color:#345348;font-size:10px}.credit-card div small{margin-top:3px;color:#cf812b;font-size:8px}.credit-card i{height:4px;margin-top:8px;border-radius:8px;background:#e7ece9;overflow:hidden}.credit-card i em{display:block;height:100%;background:var(--orange)}.credit-card>strong{color:#315046;font-size:10px}.summary-strip{margin-top:26px;display:grid;grid-template-columns:repeat(3,1fr);gap:1px;overflow:hidden;border:1px solid var(--line);border-radius:15px;background:var(--line)}.summary-strip>div{min-height:92px;padding:19px 21px;display:flex;flex-direction:column;justify-content:center;background:white}.summary-strip span{color:#7e8d85;font-size:11px}.summary-strip strong{margin-top:7px;color:var(--green);font-size:19px}.inventory-pair,.report-grid{margin-top:26px;display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.inventory-pair .metric,.report-grid .metric{min-height:170px}.empty{min-height:220px;display:grid;place-items:center;align-content:center;gap:10px;color:#87958e}.empty b{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:var(--soft);color:var(--green2);font-size:20px}.empty p{margin:0;font-size:11px}.loading{min-height:360px;margin-top:26px;display:grid;place-items:center;align-content:center;gap:12px;border:1px solid var(--line);border-radius:15px;background:white;color:var(--muted)}.loading i{width:30px;height:30px;border:3px solid #dbe8e2;border-top-color:var(--orange);border-radius:50%;animation:spin .8s linear infinite}.loading p{font-size:11px}@keyframes spin{to{transform:rotate(360deg)}}.notice{margin:18px 0 0;padding:13px 15px;border:1px solid #f1d0ca;border-radius:10px;background:#fff0ed;color:#953d31;font-size:11px;line-height:1.45}.notice.success{border-color:#cce6d9;background:#edf8f2;color:#276c52}.notice a{color:inherit;font-weight:800}.toast{position:fixed;z-index:100;top:82px;right:26px;padding:13px 17px;border-radius:11px;background:var(--green);color:white;box-shadow:0 14px 35px rgba(23,72,60,.25);font-size:11px}.modal-backdrop{position:fixed;inset:0;z-index:100;padding:20px;display:grid;place-items:center;background:rgba(7,25,20,.58);backdrop-filter:blur(4px)}.modal{width:min(650px,100%);max-height:calc(100vh - 40px);overflow:auto;border-radius:18px;background:white;box-shadow:0 30px 80px rgba(0,0,0,.28)}.modal>header{position:sticky;top:0;z-index:2;min-height:82px;padding:18px 23px;display:flex;align-items:center;justify-content:space-between;background:var(--green);color:white}.modal header p{margin:0;color:#f8a06b;font-size:8px;font-weight:850;letter-spacing:.16em}.modal h2{margin:4px 0 0;font-size:19px}.modal header button{width:34px;height:34px;border:1px solid rgba(255,255,255,.2);border-radius:9px;background:rgba(255,255,255,.06);color:white;font-size:22px}.form-grid{padding:23px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field{display:flex;flex-direction:column;gap:7px}.field.full,.full,.form-actions.full{grid-column:1/-1}.field span,.choices legend{color:#435b52;font-size:11px;font-weight:750}.field input,.field select{width:100%;height:46px;padding:0 13px;border:1px solid #d9e3de;border-radius:10px;outline:none;background:white;color:#253d35;font-size:12px}.field input:focus,.field select:focus{border-color:#4a8a77;box-shadow:0 0 0 3px var(--soft)}.field input[readonly]{background:#f3f6f4;color:#64756d}.choices{margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:10px;border:0}.choices legend{margin-bottom:8px}.choices label{min-height:66px;padding:12px 14px;display:flex;align-items:center;gap:10px;border:1px solid #dbe4df;border-radius:11px;cursor:pointer}.choices label.selected{border-color:var(--orange);background:#fff8f3;box-shadow:0 0 0 2px rgba(244,123,54,.1)}.choices input{accent-color:var(--orange)}.choices label>span{display:flex;flex-direction:column;gap:4px}.choices b{color:#294b40;font-size:11px}.choices small{color:#83928a;font-size:9px}.stock-context,.calculation{padding:14px 16px;display:grid;grid-template-columns:1fr auto;gap:3px 15px;align-items:end;border:1px solid #cde3d9;border-radius:11px;background:#f1f8f5}.stock-context span,.calculation span{color:#60766c;font-size:10px}.stock-context strong,.calculation strong{grid-column:2;grid-row:1/3;color:var(--green);font-size:22px}.stock-context small,.calculation small{color:#81938a;font-size:9px}.calculation{border-color:#ead8c9;background:#fff9f3}.form-note{padding:12px 14px;border-radius:10px;background:#fff6e9;color:#8f6124;font-size:10px;line-height:1.45}.conditional{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.form-actions{padding-top:4px;display:flex;justify-content:flex-end}.form-actions button{min-width:210px}.mini-button{padding:8px 10px;border:1px solid #d2e2db;border-radius:8px;background:#f1f7f4;color:var(--green2);font-size:9px;font-weight:750}.menu-backdrop{display:none}
.auth-body{min-height:100vh;padding:24px;display:grid;place-items:center;background:linear-gradient(135deg,#0f352c,#1d5748)}.login-layout{width:min(1000px,100%);min-height:590px;display:grid;grid-template-columns:1.15fr .85fr;overflow:hidden;border-radius:24px;background:white;box-shadow:0 35px 100px rgba(0,0,0,.28)}.login-brand{padding:55px;display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(circle at 20% 80%,rgba(244,123,54,.2),transparent 35%),#153f35;color:white}.login-brand>img{width:210px}.login-brand h1{max-width:510px;margin:10px 0 15px;font-size:39px;line-height:1.07;letter-spacing:-.035em}.login-brand p:last-child{max-width:470px;margin:0;color:#bed0ca;line-height:1.6}.login-card{padding:58px 45px;display:flex;flex-direction:column;justify-content:center}.login-mark{width:54px;height:54px;object-fit:contain}.login-card h2,.install-card h1{margin:20px 0 7px;color:var(--green);font-size:28px}.login-card>p,.auth-intro{margin:0 0 25px;color:var(--muted);font-size:13px}.login-card form,.install-form{display:grid;gap:16px}.login-card label,.install-form label{display:flex;flex-direction:column;gap:7px;color:#435b52;font-size:11px;font-weight:750}.login-card input,.install-form input{height:47px;padding:0 13px;border:1px solid #d7e2dd;border-radius:10px;outline:none}.login-card input:focus,.install-form input:focus{border-color:#4a8a77;box-shadow:0 0 0 3px var(--soft)}.login-card>small{margin-top:22px;color:#9aa59f;font-size:9px;text-align:center}.install-card{width:min(680px,100%);padding:36px;border-radius:22px;background:white;box-shadow:0 35px 100px rgba(0,0,0,.26)}.auth-logo{width:185px}.install-card h1{margin-top:8px}.install-form h2{margin:14px 0 0;color:var(--green);font-size:15px}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.install-form label small{color:#929e98;font-weight:400}.install-card code{padding:2px 5px;border-radius:4px;background:rgba(0,0,0,.07)}
@media(max-width:1100px){.metrics{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.side-panels{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sidebar{width:min(300px,87vw);transform:translateX(-100%);transition:.22s ease}.sidebar.open{transform:translateX(0)}.brand-block button{display:block}.menu-backdrop.show{position:fixed;inset:0;z-index:20;display:block;border:0;background:rgba(7,24,20,.5)}.content{width:100%;margin-left:0}.topbar{height:62px;padding:0 17px;justify-content:space-between}.menu-toggle{display:block;border:0;background:transparent;color:var(--green);font-size:21px}.mobile-brand{display:flex;align-items:center;gap:7px;color:var(--green);font-size:14px;font-weight:800}.mobile-brand img{width:28px;height:28px;object-fit:contain}.stock-chip{display:none}.page-wrap{padding:25px 17px 45px}.page-head{align-items:flex-start;flex-direction:column}.page-head h1{font-size:25px}.head-actions{width:100%;flex-wrap:wrap}.head-actions button{flex:1}.metrics{grid-template-columns:1fr 1fr;gap:10px}.metric{min-height:142px;padding:16px}.metric>strong{font-size:19px}.quick-flow,.side-panels,.summary-strip,.inventory-pair,.report-grid{grid-template-columns:1fr}.quick-flow button{min-height:67px}.form-grid{grid-template-columns:1fr}.field.full,.full,.form-actions.full{grid-column:1}.choices,.conditional{grid-template-columns:1fr}.stock-context,.calculation{grid-template-columns:1fr}.stock-context strong,.calculation strong{grid-column:1;grid-row:auto;font-size:20px}.modal-backdrop{padding:10px}.modal{max-height:calc(100vh - 20px)}.form-actions button{width:100%}.login-layout{grid-template-columns:1fr}.login-brand{display:none}.login-card{padding:42px 27px}.install-card{padding:28px 20px}.form-two{grid-template-columns:1fr}}
@media(max-width:460px){.metrics{grid-template-columns:1fr}.head-actions{display:grid;grid-template-columns:1fr 1fr}.head-actions .primary-button{grid-column:1/-1}.auth-body{padding:12px}.page-head>div>p:last-child{font-size:12px}}
.directory-tools{margin-top:26px;padding:15px 17px;display:flex;align-items:end;justify-content:space-between;gap:14px;border:1px solid var(--line);border-radius:14px;background:white}.directory-tools label{flex:1;display:flex;flex-direction:column;gap:7px}.directory-tools label span{color:#435b52;font-size:10px;font-weight:750}.directory-tools input{width:100%;height:44px;padding:0 14px;border:1px solid #d9e3de;border-radius:10px;outline:none}.directory-tools input:focus{border-color:#4a8a77;box-shadow:0 0 0 3px var(--soft)}.directory-tools+.panel{margin-top:14px}@media(max-width:760px){.directory-tools{align-items:stretch;flex-direction:column}.directory-tools button{width:100%}}
.corporate-intro{margin-top:26px;padding:23px 26px;border-radius:17px;background:linear-gradient(120deg,#17483c,#286250);color:white;box-shadow:0 16px 38px rgba(23,72,60,.14)}.corporate-intro p{margin:0 0 7px;color:#ff9a60;font-size:9px;font-weight:850;letter-spacing:.16em}.corporate-intro h2{margin:0;font-size:22px;letter-spacing:-.02em}.corporate-intro span{display:block;max-width:850px;margin-top:8px;color:#d5e4df;font-size:12px;line-height:1.55}.stock-metrics{grid-template-columns:repeat(3,1fr)}.quick-flow.four{grid-template-columns:repeat(4,1fr)}.business-summary{padding:18px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.business-summary div{padding:14px;border-radius:11px;background:#f3f7f5}.business-summary small{display:block;color:#7c8c84;font-size:9px}.business-summary b{display:block;margin-top:6px;color:var(--green);font-size:15px}
@media(max-width:1100px){.quick-flow.four{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.corporate-intro{padding:20px}.corporate-intro h2{font-size:19px}.stock-metrics,.quick-flow.four{grid-template-columns:1fr}}

/* Identidad verde y dorada · Tocioriente 1.3 */
.ui-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.sidebar{background:linear-gradient(180deg,#0b382c 0%,#103f32 70%,#0b3329 100%)}.brand-block{height:104px;border-bottom-color:rgba(205,165,76,.18)}.workspace-label{color:#9bbcaf}.sidebar nav button{color:#c2d4cd}.sidebar nav button span{border:0;background:rgba(255,255,255,.06)}.sidebar nav button span .ui-icon{width:17px;height:17px}.sidebar nav button.active{background:var(--gold);color:#16382f;box-shadow:0 10px 26px rgba(205,165,76,.22)}.sidebar nav button.active span{background:rgba(255,255,255,.24)}.side-help{border-color:rgba(205,165,76,.18);background:rgba(205,165,76,.08)}.side-help-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:var(--gold);color:#16382f}.side-help-icon .ui-icon,.side-help-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.side-help small{color:#acc5bc}.user-card>span{background:var(--gold);color:#193b31}.topbar{box-shadow:0 1px 0 rgba(16,63,50,.03)}.top-actions{gap:10px}.secure-chip{height:36px;padding:0 11px;display:flex;align-items:center;gap:7px;border:1px solid #e4e7dc;border-radius:99px;background:#fbfaf5;color:#6d654d;font-size:10px}.secure-chip svg,.credit-shortcut svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.credit-shortcut{display:grid;place-items:center}.credit-shortcut b{background:var(--gold);color:#17372e}.kicker{color:var(--gold-dark)}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-color:var(--gold);background:var(--gold);color:#17362e;box-shadow:0 8px 20px rgba(205,165,76,.22)}.primary-button:hover{background:#d8b45e;border-color:#d8b45e;transform:translateY(-1px)}.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.secondary-button:hover{border-color:#b8d0c5;background:#f8fbf9}.primary-button:focus-visible,.secondary-button:focus-visible,.mini-button:focus-visible,.quick-add:focus-visible{outline:3px solid rgba(205,165,76,.35);outline-offset:2px}.panel header button{display:inline-flex;align-items:center;gap:6px;color:var(--gold-dark)}.panel header button .ui-icon{width:14px;height:14px}.metric{min-height:154px;display:grid;grid-template-columns:48px 1fr;align-items:center;gap:13px;border-left-width:1px;box-shadow:0 8px 28px rgba(16,63,50,.04)}.metric>div{min-width:0;display:flex;flex-direction:column}.metric-icon{width:46px;height:46px!important;display:grid!important;place-items:center;border-radius:13px;background:#edf2f7;color:#58769f}.metric-icon .ui-icon{width:23px;height:23px}.metric.green .metric-icon{background:var(--soft);color:var(--green3)}.metric.orange .metric-icon,.metric.gold .metric-icon{background:var(--gold-soft);color:var(--gold-dark)}.metric>div>span{color:var(--muted);font-size:11px}.metric>div>strong{margin-top:7px;color:var(--green);font-size:24px;letter-spacing:-.025em}.metric>div>small{margin-top:6px;color:#92a098;font-size:10px;line-height:1.4}.quick-flow button>span{border-radius:10px;background:var(--soft)}.quick-flow button>span .ui-icon{width:18px;height:18px}.quick-flow button.accent{border-color:var(--gold);background:var(--gold)}.quick-flow button.accent b,.quick-flow button.accent em{color:#17362e}.quick-flow button.accent small{color:#5f5439}.quick-flow button.accent>span{background:rgba(255,255,255,.35);color:#17362e}.corporate-intro{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:28px;background:linear-gradient(120deg,#0e3b2f,#1d5b48);box-shadow:0 18px 42px rgba(16,63,50,.17)}.corporate-intro:before{content:"";position:absolute;width:260px;height:260px;right:-80px;top:-110px;border:1px solid rgba(205,165,76,.23);border-radius:50%}.corporate-intro p{color:#e1c271}.corporate-intro span{color:#d7e5df}.intro-copy{position:relative;z-index:1}.intro-emblem{position:relative;z-index:1;width:78px;height:78px;display:grid;place-items:center;flex:0 0 auto;border:1px solid rgba(205,165,76,.35);border-radius:22px;background:rgba(205,165,76,.12);color:#e0bf6d}.intro-emblem .ui-icon{width:45px;height:45px;stroke-width:1.35}.modal>header{background:linear-gradient(105deg,#0d3a2e,#165541)}.modal header p{color:#e2c372}.choices label.selected{border-color:var(--gold);background:#fcf8eb;box-shadow:0 0 0 2px rgba(205,165,76,.12)}.choices input{accent-color:var(--green2)}.calculation{border-color:#e7dab8;background:#fcf8ec}.form-note{background:#f8f3e4;color:#7d6630}.mini-button{display:inline-flex;align-items:center;gap:5px}.mini-button .ui-icon{width:13px;height:13px}.loading i{border-top-color:var(--gold)}

.contact-picker{padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:12px;border:1px solid #d6e3dd;border-radius:14px;background:#f8fbf9}.picker-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px}.picker-heading>div{display:flex;flex-direction:column;gap:3px}.picker-heading>div>span{display:flex;align-items:center;gap:7px;color:var(--green);font-size:12px;font-weight:800}.picker-heading>div>small{color:#85928c;font-size:9px}.quick-add{min-height:38px;padding:0 13px;display:flex;align-items:center;gap:6px;border:1px solid var(--gold);border-radius:9px;background:var(--gold-soft);color:#74581e;font-size:10px;font-weight:800}.quick-add .ui-icon{width:14px;height:14px}.contact-search{position:relative;display:flex;align-items:center}.contact-search>span{position:absolute;left:13px;z-index:1;color:#799087}.contact-search .ui-icon{width:16px;height:16px}.contact-search input{width:100%;height:46px;padding:0 13px 0 39px;border:1px solid #d9e3de;border-radius:10px;outline:none;background:white;color:#253d35;font-size:12px}.contact-search input:focus{border-color:var(--green3);box-shadow:0 0 0 3px var(--soft)}.contact-picker>.field{gap:5px}.quick-contact{grid-column:1/-1;margin-top:2px;padding:16px;border:1px solid #e5d8b6;border-radius:12px;background:#fffdf7;animation:reveal .18s ease}.quick-contact-title{display:flex;align-items:flex-start;justify-content:space-between}.quick-contact-title>div{display:flex;flex-direction:column;gap:3px}.quick-contact-title b{color:var(--green);font-size:12px}.quick-contact-title small{color:#8c8b7d;font-size:9px}.quick-contact-title>button{border:0;background:transparent;color:#786e56;font-size:21px}.quick-contact-grid{margin-top:13px;display:grid;grid-template-columns:1fr 1fr;gap:11px}.quick-contact-grid label{display:flex;flex-direction:column;gap:6px}.quick-contact-grid label.wide{grid-column:1/-1}.quick-contact-grid span{color:#52655c;font-size:9px;font-weight:750}.quick-contact-grid input{height:42px;padding:0 12px;border:1px solid #dfdfd5;border-radius:9px;outline:none;background:white}.quick-contact-grid input:focus{border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-soft)}.quick-contact-actions{margin-top:14px;display:flex;justify-content:flex-end;gap:8px}.quick-contact-actions button{min-height:39px}.quick-contact-alert{margin-top:12px;padding:9px 11px;border-radius:8px;background:#fff0ed;color:#953d31;font-size:10px}@keyframes reveal{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}

.auth-body{background:radial-gradient(circle at 15% 85%,rgba(205,165,76,.22),transparent 28%),linear-gradient(135deg,#092f25,#15513f)}.login-brand{position:relative;overflow:hidden;background:radial-gradient(circle at 20% 80%,rgba(205,165,76,.18),transparent 34%),#103f32}.login-brand:after{content:"";position:absolute;width:300px;height:300px;right:-140px;top:-130px;border:1px solid rgba(205,165,76,.22);border-radius:50%}.login-message{position:relative;z-index:1}.meat-seal{width:58px;height:58px;margin-bottom:21px;display:grid;place-items:center;border:1px solid rgba(205,165,76,.38);border-radius:17px;background:rgba(205,165,76,.12)}.meat-seal svg{width:36px;height:36px;fill:none;stroke:#e0bf6d;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.login-card{border-top:5px solid var(--gold)}.eyebrow{margin:16px 0 -10px!important;color:var(--gold-dark)!important;font-size:9px!important;font-weight:850;letter-spacing:.14em}.login-card input:focus,.install-form input:focus{border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-soft)}
.warehouse-tip{min-height:112px;padding:19px;display:flex;align-items:center;gap:14px;color:var(--green)}.warehouse-tip .ui-icon{width:34px;height:34px;flex:0 0 auto;color:var(--gold-dark)}.warehouse-tip p{margin:0;color:#6d7c75;font-size:11px;line-height:1.55}
.credit-card i em.p0{width:0}.credit-card i em.p10{width:10%}.credit-card i em.p20{width:20%}.credit-card i em.p30{width:30%}.credit-card i em.p40{width:40%}.credit-card i em.p50{width:50%}.credit-card i em.p60{width:60%}.credit-card i em.p70{width:70%}.credit-card i em.p80{width:80%}.credit-card i em.p90{width:90%}.credit-card i em.p100{width:100%}

@media(max-width:760px){.secure-chip{display:none}.corporate-intro{align-items:flex-start}.intro-emblem{width:58px;height:58px;border-radius:16px}.intro-emblem .ui-icon{width:34px;height:34px}.metric{grid-template-columns:44px 1fr}.metric-icon{width:42px;height:42px!important}.contact-picker{grid-template-columns:1fr}.picker-heading,.quick-contact{grid-column:1}.picker-heading{align-items:flex-start;flex-direction:column}.quick-add{width:100%;justify-content:center}.quick-contact-grid{grid-template-columns:1fr}.quick-contact-grid label.wide{grid-column:1}.quick-contact-actions{display:grid;grid-template-columns:1fr 1fr}.quick-contact-actions button{width:100%;padding:0 8px}.top-actions{gap:7px}}
@media(max-width:460px){.corporate-intro{padding:18px}.intro-emblem{display:none}.metric{min-height:125px}.stock-metrics .metric{grid-template-columns:42px 1fr}.metric>div>strong{font-size:20px}.contact-picker{padding:13px}.quick-contact-actions{grid-template-columns:1fr}.toast{left:14px;right:14px;top:74px;text-align:center}}

/* Tocioriente 1.3.1 · iconografía funcional y legibilidad */
.ui-icon{width:18px;height:18px;stroke-width:1.75}
.sidebar nav{gap:3px}
.sidebar nav button{height:48px;padding:0 14px;gap:11px;border-radius:9px;color:#d2e0db}
.sidebar nav button span{width:30px;height:30px;border-radius:8px;background:transparent}
.sidebar nav button span .ui-icon{width:18px;height:18px}
.sidebar nav button b{font-size:13px;font-weight:650}
.sidebar nav button:hover{background:rgba(255,255,255,.065)}
.sidebar nav button.active{position:relative;background:rgba(255,255,255,.1);color:#fff;box-shadow:none}
.sidebar nav button.active:before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:4px;background:var(--gold)}
.sidebar nav button.active span{background:rgba(205,165,76,.16);color:#e3c56f}
.sidebar nav button em{font-size:11px;background:var(--gold);color:#17372e}
.workspace-label{font-size:10px}
.side-help-icon{width:34px;height:34px;border-radius:9px;background:rgba(205,165,76,.14);color:#e0c06d}
.side-help strong,.user-card div strong{font-size:12px}
.side-help small,.user-card small,.user-card a{font-size:10px}
.user-card a{margin-left:0}.account-password{margin-left:auto;padding:5px 7px;border:1px solid rgba(255,255,255,.16);border-radius:7px;background:rgba(255,255,255,.06);color:#d6e2dd;font-size:9px;font-weight:750}.account-password:hover,.account-password:focus-visible{border-color:rgba(205,165,76,.7);background:rgba(205,165,76,.14);color:#f0d88f;outline:none}
.secure-chip,.stock-chip{font-size:11px}
.primary-button,.secondary-button{font-size:13px}
.panel h2{font-size:16px}
.panel header p{font-size:12px}
.panel header button,.panel-link{font-size:12px}
th{font-size:10px}
td,td strong{font-size:12px}
td small{font-size:10px}
.badge{font-size:10px}
.metric{grid-template-columns:40px 1fr;gap:14px;padding:20px}
.metric-icon{width:38px;height:38px!important;border-radius:10px;background:#f1f5f3!important;color:#49665c!important}
.metric-icon .ui-icon{width:19px;height:19px}
.metric.green .metric-icon{color:var(--green3)!important}
.metric.orange .metric-icon,.metric.gold .metric-icon{background:#faf6ea!important;color:var(--gold-dark)!important}
.metric>div>span{font-size:12px;font-weight:650}
.metric>div>small{font-size:11px}
.quick-flow button{grid-template-columns:36px 1fr auto;min-height:78px}
.quick-flow button>span{width:36px;height:36px;border-radius:9px}
.quick-flow button>span .ui-icon{width:18px;height:18px}
.quick-flow button b{font-size:13px}
.quick-flow button small{font-size:11px}
.quick-flow button em{font-size:16px}
.intro-emblem{width:68px;height:68px;padding:10px;border-radius:18px;background:rgba(255,255,255,.09)}
.intro-emblem img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 12px rgba(0,0,0,.16))}
.corporate-intro p{font-size:10px}
.corporate-intro span{font-size:13px}
.empty p,.loading p,.warehouse-tip p{font-size:12px}
.field span,.choices legend,.picker-heading>div>span{font-size:12px}
.field input,.field select,.contact-search input{font-size:13px}
.choices b{font-size:12px}
.choices small,.picker-heading>div>small,.quick-contact-title small,.quick-contact-grid span{font-size:10px}

/* Inventario v1.4: dos presentaciones empacadas y salida directa desde proceso. */
.stock-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.direct-packaging{padding:14px;border:1px solid #d8e4de;border-radius:12px;background:#f8fbf9}
.direct-packaging .field{min-width:0}
@media(max-width:1100px){.stock-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.stock-metrics{grid-template-columns:1fr}.direct-packaging{grid-template-columns:1fr}}

.sale-builder{overflow:hidden;border:1px solid #d8e4de;border-radius:14px;background:#f8fbf9}
.modal.wide{width:min(920px,100%)}
.sale-builder>header{padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #dfe8e3;background:white}
.sale-builder>header>div{display:flex;flex-direction:column;gap:3px}.sale-builder>header strong{color:var(--green);font-size:12px}.sale-builder>header small{color:#7e8e86;font-size:10px}
#saleItems{padding:13px;display:grid;gap:12px}.sale-line{padding:14px;border:1px solid #dce7e1;border-radius:12px;background:white}.sale-line-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.sale-line-head strong{color:var(--green);font-size:11px}.remove-line{width:30px;height:30px;border:1px solid #eadbd5;border-radius:8px;background:#fff9f7;color:#9c5144;font-size:18px;line-height:1}.remove-line:disabled{opacity:.35;cursor:not-allowed}
.sale-line-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr .8fr;gap:11px;align-items:end}.sale-line-grid .field{min-width:0}.sale-line-grid .field>small{color:#809087;font-size:9px}.line-subtotal{height:46px;padding:0 12px;display:flex;flex-direction:column;justify-content:center;border-radius:10px;background:var(--gold-soft)}.line-subtotal span{color:#7b6b43;font-size:9px}.line-subtotal strong{margin-top:3px;color:var(--green);font-size:12px}
.quantity-stepper{height:46px;display:grid;grid-template-columns:38px 1fr 38px;overflow:hidden;border:1px solid #d9e3de;border-radius:10px;background:white}.quantity-stepper button{border:0;background:#eef5f1;color:var(--green);font-size:18px;font-weight:700}.quantity-stepper button:hover{background:#e2eee8}.quantity-stepper input{width:100%;height:44px;padding:0 4px;border:0!important;border-radius:0!important;text-align:center;box-shadow:none!important}.quantity-stepper input::-webkit-inner-spin-button,.quantity-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.quantity-stepper input{-moz-appearance:textfield;appearance:textfield}
@media(max-width:1050px){.sale-line-grid{grid-template-columns:1fr 1fr}.line-subtotal{min-height:46px}}
@media(max-width:760px){.sale-builder>header{align-items:flex-start;flex-direction:column}.sale-builder>header button{width:100%}.sale-line-grid{grid-template-columns:1fr}.quantity-stepper{grid-template-columns:46px 1fr 46px}.line-subtotal{height:54px}}
.form-note,.stock-context span,.calculation span{font-size:11px}
.mini-button,.quick-add{font-size:11px}
.login-card label,.install-form label{font-size:12px}
.login-card>small{font-size:10px}
.login-message .kicker{font-size:10px}
.login-message{padding-top:30px}

@media(max-width:760px){
  .sidebar nav button{height:50px}
  .sidebar nav button b{font-size:14px}
  .metric{grid-template-columns:38px 1fr}
  .metric-icon{width:36px;height:36px!important}
}

/* Tocioriente 1.5.1 · navegación lateral desplazable */
.sidebar{
  height:100vh;
  height:100dvh;
  max-height:100vh;
  max-height:100dvh;
  overflow:hidden;
}
.brand-block,
.workspace-label,
.side-help,
.user-card{
  flex:0 0 auto;
}
.sidebar nav{
  flex:1 1 auto;
  min-height:0;
  padding-bottom:12px;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  touch-action:pan-y;
  -webkit-overflow-scrolling:touch;
}
.sidebar nav::-webkit-scrollbar{width:7px}
.sidebar nav::-webkit-scrollbar-track{background:transparent}
.sidebar nav::-webkit-scrollbar-thumb{border-radius:8px;background:rgba(255,255,255,.2)}
.sidebar nav{scrollbar-color:rgba(255,255,255,.22) transparent;scrollbar-width:thin}
.side-help{margin:12px 17px 14px}

@media(max-width:760px){
  .sidebar{
    height:100vh;
    height:100dvh;
    max-height:100vh;
    max-height:100dvh;
  }
}

/* Tocioriente 1.6 · gastos, periodos y lectura financiera */
.period-filter{margin-top:26px;padding:17px 18px;display:grid;grid-template-columns:minmax(210px,.8fr) minmax(430px,1.25fr);gap:14px 22px;align-items:end;border:1px solid var(--line);border-radius:15px;background:white;box-shadow:0 8px 28px rgba(16,63,50,.035)}
.period-filter>div:first-child{display:flex;flex-direction:column;gap:5px}.period-filter>div:first-child span{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;font-weight:750}.period-filter>div:first-child strong{color:var(--green);font-size:15px}.period-filter form{display:grid;grid-template-columns:1fr 1fr auto;gap:9px;align-items:end}.period-filter form label{display:flex;flex-direction:column;gap:5px}.period-filter form label span{color:#61736b;font-size:10px;font-weight:700}.period-filter input{width:100%;height:42px;padding:0 10px;border:1px solid #d9e3de;border-radius:9px;color:#294b40;background:white}.period-filter form button{min-height:42px}.period-presets{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:7px}.period-presets button{min-height:33px;padding:0 11px;border:1px solid #d9e3de;border-radius:99px;background:#f8fbf9;color:#496159;font-size:10px;font-weight:700}.period-presets button:hover{border-color:var(--gold);background:var(--gold-soft)}
.finance-grid{margin-top:15px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.finance-grid .metric{min-height:145px;padding:16px}.finance-grid .metric>div>strong{font-size:19px}.metric.balance.positive{border-color:#bcdcca;background:#f7fcf9}.metric.balance.positive .metric-icon{background:#e8f5ef!important;color:#28775a!important}.metric.balance.negative{border-color:#efcbc5;background:#fffafa}.metric.balance.negative .metric-icon{background:#fff0ed!important;color:#a34f43!important}.metric.balance.negative strong{color:#9a453b}
.report-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr);gap:15px}.report-layout>.panel{min-width:0}.trend-legend{padding:13px 18px 0;display:flex;flex-wrap:wrap;gap:14px}.trend-legend span{display:flex;align-items:center;gap:6px;color:#687970;font-size:10px}.trend-legend span:before{content:"";width:9px;height:9px;border-radius:3px;background:#4d9b7d}.trend-legend .purchases:before{background:#6d89b5}.trend-legend .expenses:before{background:#d49b3d}.trend-chart{max-height:480px;padding:13px 18px 18px;display:grid;gap:10px;overflow:auto}.trend-row{display:grid;grid-template-columns:70px minmax(160px,1fr) minmax(220px,.65fr);gap:10px;align-items:center}.trend-row>strong{color:#52685f;font-size:10px;text-transform:capitalize}.trend-row>div{display:grid;gap:3px}.trend-bar{display:block;height:5px;min-width:0;border-radius:6px;background:#4d9b7d}.trend-bar.purchases{background:#6d89b5}.trend-bar.expenses{background:#d49b3d}.trend-row>small{color:#819087;font-size:9px;white-space:nowrap}.category-list{padding:8px 18px 17px}.category-list>div{padding:12px 0;display:grid;grid-template-columns:minmax(120px,1fr) minmax(70px,.8fr) auto;gap:10px;align-items:center;border-bottom:1px solid #edf1ef}.category-list>div:last-child{border-bottom:0}.category-list span{display:flex;flex-direction:column;gap:3px}.category-list b{color:#37564b;font-size:11px}.category-list small{color:#94a098;font-size:9px}.category-list i{height:6px;overflow:hidden;border-radius:8px;background:#edf2ef}.category-list em{display:block;height:100%;border-radius:8px;background:var(--gold)}.category-list strong{color:var(--green);font-size:11px}.operational-report{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.operational-report .metric{min-height:135px}.expense-tag{display:inline-block;padding:5px 8px;border-radius:99px;background:var(--gold-soft);color:#765c27;font-size:9px;font-weight:750}.report-disclaimer{margin:14px 2px 0;padding:12px 14px;border-left:3px solid var(--gold);border-radius:0 9px 9px 0;background:#fbf8ef;color:#746c58;font-size:10px;line-height:1.55}
@media(max-width:1180px){.finance-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.report-layout{grid-template-columns:1fr}.operational-report{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.period-filter{grid-template-columns:1fr}.period-filter form{grid-template-columns:1fr 1fr auto}.period-presets{grid-column:1}.trend-row{grid-template-columns:62px minmax(130px,1fr)}.trend-row>small{grid-column:2;white-space:normal}.finance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.period-filter form{grid-template-columns:1fr 1fr}.period-filter form button{grid-column:1/-1}.period-presets{display:grid;grid-template-columns:1fr 1fr}.finance-grid,.operational-report{grid-template-columns:1fr}.trend-row{grid-template-columns:55px minmax(110px,1fr)}.category-list>div{grid-template-columns:1fr auto}.category-list i{grid-column:1/-1;grid-row:2}.category-list strong{grid-column:2;grid-row:1}.report-disclaimer{font-size:9px}}

/* Tocioriente 1.6.1 · experiencia móvil compacta y consistente */
.ui-icon{display:block;max-width:100%;max-height:100%;fill:none!important;stroke:currentColor!important}
@media(max-width:760px){
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:72px}
  body{overflow-x:hidden}
  button,input,select{touch-action:manipulation}
  .topbar{position:sticky;top:0;z-index:18;height:60px;padding:env(safe-area-inset-top) 14px 0;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);box-shadow:0 1px 12px rgba(16,63,50,.08)}
  .menu-toggle{width:42px;height:42px;padding:0;border-radius:11px;background:#f2f7f4;font-size:0}
  .menu-toggle:before{content:"☰";font-size:22px}
  .mobile-brand{font-size:14px}.mobile-brand img{width:30px;height:30px}
  .credit-shortcut{width:42px;height:42px;border-radius:11px}.credit-shortcut svg{width:18px;height:18px;fill:none!important;stroke:currentColor!important}
  .page-wrap{padding:20px 14px calc(42px + env(safe-area-inset-bottom))}
  .page-head{gap:14px}.page-head .kicker{margin-bottom:5px;font-size:9px}.page-head h1{font-size:24px}.page-head>div>p:last-child{margin-top:7px;font-size:12px;line-height:1.45}
  #app[data-view="inicio"] .head-actions{display:none}
  .head-actions{gap:8px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px;scrollbar-width:none}.head-actions::-webkit-scrollbar{display:none}.head-actions button{flex:0 0 auto;min-height:42px;padding:0 14px;white-space:nowrap}
  .corporate-intro{min-height:0;margin-top:18px;padding:18px;gap:14px;border-radius:15px}.corporate-intro h2{font-size:18px;line-height:1.2}.corporate-intro span{margin-top:6px;font-size:11px;line-height:1.45}.intro-emblem{width:52px;height:52px;padding:7px;border-radius:14px}
  .metrics.stock-metrics{margin-top:10px;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .stock-metrics .metric{min-width:0;min-height:112px;padding:13px;grid-template-columns:34px minmax(0,1fr);gap:10px;border-radius:13px}
  .stock-metrics .metric-icon{width:34px;height:34px!important;border-radius:9px}.stock-metrics .metric-icon .ui-icon{width:17px;height:17px}
  .stock-metrics .metric>div>span{font-size:10px;line-height:1.25}.stock-metrics .metric>div>strong{margin-top:5px;font-size:17px;white-space:nowrap}.stock-metrics .metric>div>small{margin-top:4px;font-size:9px;line-height:1.3}
  .quick-flow,.quick-flow.four{margin-top:10px;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .quick-flow button{width:100%;min-width:0;min-height:82px;padding:12px;grid-template-columns:34px minmax(0,1fr);gap:9px;border-radius:13px;box-shadow:0 5px 18px rgba(16,63,50,.04)}
  .quick-flow button>span{width:34px;height:34px;border-radius:9px}.quick-flow button>span .ui-icon{width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important;fill:none!important;stroke:currentColor!important}
  .quick-flow button div{min-width:0}.quick-flow button b{font-size:11px;line-height:1.2}.quick-flow button small{margin-top:2px;font-size:9px;line-height:1.25}.quick-flow button em{display:none}.quick-flow button.accent{border-color:var(--gold);background:var(--gold)}.quick-flow button.accent b{color:#17362e}.quick-flow button.accent small{color:#685936}.quick-flow button.accent>span{background:rgba(255,255,255,.38);color:#17362e}
  .dashboard-grid{margin-top:10px;gap:10px}.dashboard-grid>.panel,.side-panels>.panel,.panel{border-radius:13px}.side-panels{gap:10px}.panel{margin-top:14px}.panel>header{min-height:64px;padding:15px}.panel h2{font-size:14px}.panel header p{font-size:10px;line-height:1.35}.panel header button{flex:0 0 auto;min-height:36px;padding:0 4px}
  .summary-strip{margin-top:14px}.summary-strip>div{min-height:78px;padding:14px 16px}.summary-strip span{font-size:10px}.summary-strip strong{font-size:17px}
  .business-summary{padding:14px;gap:8px}.business-summary div{padding:12px}.credit-card{padding:13px 14px}
  .table-wrap{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.table-wrap:after{content:"Desliza para ver más →";position:sticky;left:12px;display:inline-block;padding:7px 0 10px;color:#8b9992;font-size:9px}
  .modal-backdrop{padding:0;place-items:end center}.modal,.modal.wide{width:100%;max-height:92dvh;border-radius:20px 20px 0 0}.modal>header{min-height:70px;padding:14px 18px}.modal h2{font-size:17px}.form-grid{padding:18px 15px calc(18px + env(safe-area-inset-bottom));gap:14px}.field input,.field select{height:48px;font-size:16px}.form-actions{position:sticky;bottom:0;z-index:1;padding:10px 0 calc(2px + env(safe-area-inset-bottom));background:linear-gradient(transparent 0,#fff 22%)}.form-actions button{min-height:50px}
  .period-filter{margin-top:14px;padding:14px}.period-filter form input{font-size:16px}.period-presets button{min-height:38px}
  .toast{top:70px;left:14px;right:14px;text-align:center}
}
@media(max-width:380px){
  .page-wrap{padding-left:11px;padding-right:11px}
  .stock-metrics .metric{grid-template-columns:1fr;gap:7px}.stock-metrics .metric-icon{display:none!important}
  .quick-flow button{grid-template-columns:30px minmax(0,1fr);padding:10px}.quick-flow button>span{width:30px;height:30px}.quick-flow button small{display:none}
}

/* Tocioriente 1.6.2 · registro ágil de gastos diarios */
.expense-entry-intro{padding:14px 16px;display:flex;align-items:center;gap:12px;border:1px solid #d6e3dd;border-radius:12px;background:#f4f9f6}.expense-entry-intro>.ui-icon{width:32px;height:32px;padding:7px;flex:0 0 auto;border-radius:9px;background:var(--gold-soft);color:var(--gold-dark)}.expense-entry-intro>div{display:flex;flex-direction:column;gap:3px}.expense-entry-intro strong{color:var(--green);font-size:12px}.expense-entry-intro small{color:#798a82;font-size:10px;line-height:1.4}
@media(max-width:760px){.expense-entry-intro{padding:13px}.expense-entry-intro>.ui-icon{width:36px;height:36px}.expense-entry-intro strong{font-size:13px}.expense-entry-intro small{font-size:10px}}

/* Tocioriente 1.6.3 · semáforo de créditos y vencimientos */
.credit-traffic-summary{margin-top:26px;display:grid;grid-template-columns:1.25fr repeat(3,1fr);gap:12px}.credit-traffic-summary article{min-height:122px;padding:18px 19px;display:flex;flex-direction:column;justify-content:center;border:1px solid var(--line);border-radius:15px;background:white}.credit-traffic-summary article>span{display:flex;align-items:center;gap:8px;color:#61736b;font-size:11px;font-weight:750}.credit-traffic-summary article>span>.ui-icon{width:18px;height:18px;color:var(--green2)}.credit-traffic-summary article>strong{margin-top:8px;color:var(--green);font-size:25px}.credit-traffic-summary article>small{margin-top:5px;color:#87958e;font-size:9px}.credit-state-card{border-left-width:5px!important}.credit-state-card span i,.traffic-dot{width:10px;height:10px;flex:0 0 auto;border-radius:50%;background:#8e9a94;box-shadow:0 0 0 4px rgba(142,154,148,.13)}.credit-state-card.current{border-left-color:#36916a;background:#f8fcfa}.credit-state-card.current span i,.credit-ticket.current .traffic-dot{background:#36916a;box-shadow:0 0 0 4px rgba(54,145,106,.14)}.credit-state-card.warning{border-left-color:#d59a20;background:#fffdf6}.credit-state-card.warning span i,.credit-ticket.warning .traffic-dot{background:#d59a20;box-shadow:0 0 0 4px rgba(213,154,32,.16)}.credit-state-card.overdue{border-left-color:#c5544c;background:#fffafa}.credit-state-card.overdue span i,.credit-ticket.overdue .traffic-dot{background:#c5544c;box-shadow:0 0 0 4px rgba(197,84,76,.14)}.credit-no-date-note{margin:10px 2px 0;display:flex;align-items:center;gap:7px;color:#77867f;font-size:10px}.credit-no-date-note .ui-icon{width:15px;height:15px}.credit-traffic-board{padding:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;background:#f8faf9}.credit-ticket{min-width:0;padding:17px;border:1px solid #dce5e0;border-left:5px solid #8e9a94;border-radius:13px;background:white;box-shadow:0 7px 22px rgba(21,67,55,.035)}.credit-ticket.current{border-left-color:#36916a}.credit-ticket.warning{border-left-color:#d59a20}.credit-ticket.overdue{border-left-color:#c5544c}.credit-ticket>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.credit-ticket-title{min-width:0;display:flex;align-items:flex-start;gap:11px}.credit-ticket-title>.traffic-dot{margin-top:5px}.credit-ticket-title div{min-width:0;display:flex;flex-direction:column;gap:4px}.credit-ticket-title strong{overflow:hidden;color:#2b4c41;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.credit-ticket-title small{color:#86948d;font-size:9px}.due-badge{flex:0 0 auto;padding:6px 9px;border-radius:99px;background:#edf1ef;color:#68766f;font-size:9px;font-weight:850}.credit-ticket.current .due-badge{background:#e7f5ed;color:#267451}.credit-ticket.warning .due-badge{background:#fff1c9;color:#8a620d}.credit-ticket.overdue .due-badge{background:#fde9e7;color:#9f3f38}.due-detail{margin:11px 0 0;padding:9px 11px;border-radius:8px;background:#f5f7f6;color:#66766e;font-size:10px;font-weight:700}.credit-ticket.current .due-detail{background:#edf8f2;color:#34765b}.credit-ticket.warning .due-detail{background:#fff8df;color:#80631f}.credit-ticket.overdue .due-detail{background:#fff0ee;color:#9a453e}.credit-ticket-values{margin-top:13px;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.credit-ticket-values>div{min-width:0;padding:9px;border-radius:9px;background:#f7f9f8}.credit-ticket-values span{display:block;color:#87948e;font-size:8px}.credit-ticket-values strong{display:block;margin-top:4px;overflow:hidden;color:#315046;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.credit-ticket-values>div:last-child strong{color:#173f35;font-size:12px}.credit-ticket-progress{margin-top:13px;display:flex;align-items:center;gap:9px}.credit-ticket-progress>span{height:6px;flex:1;overflow:hidden;border-radius:8px;background:#e6ece9}.credit-ticket-progress em{display:block;height:100%;border-radius:8px;background:var(--orange)}.credit-ticket-progress small{color:#84918b;font-size:8px;white-space:nowrap}.credit-ticket footer{margin-top:14px;padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #e9eeeb}.credit-ticket footer>span{color:#728078;font-size:9px}.credit-ticket footer>span strong{color:#3b574e}.credit-ticket .mini-button{min-height:36px;padding:0 12px}.credit-ticket-progress em.p0{width:0}.credit-ticket-progress em.p10{width:10%}.credit-ticket-progress em.p20{width:20%}.credit-ticket-progress em.p30{width:30%}.credit-ticket-progress em.p40{width:40%}.credit-ticket-progress em.p50{width:50%}.credit-ticket-progress em.p60{width:60%}.credit-ticket-progress em.p70{width:70%}.credit-ticket-progress em.p80{width:80%}.credit-ticket-progress em.p90{width:90%}.credit-ticket-progress em.p100{width:100%}.credit-card{border-left:4px solid #8e9a94}.credit-card.current{border-left-color:#36916a}.credit-card.warning{border-left-color:#d59a20}.credit-card.overdue{border-left-color:#c5544c}.credit-card mark{padding:2px 5px;border-radius:99px;background:#edf1ef;color:#68766f;font-size:8px;font-weight:800}.credit-card.current mark{background:#e7f5ed;color:#267451}.credit-card.warning mark{background:#fff1c9;color:#8a620d}.credit-card.overdue mark{background:#fde9e7;color:#9f3f38}
@media(max-width:1040px){.credit-traffic-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.credit-traffic-board{grid-template-columns:1fr}}
@media(max-width:760px){.credit-traffic-summary{margin-top:14px;gap:9px}.credit-traffic-summary article{min-height:105px;padding:14px;border-radius:13px}.credit-traffic-summary article>strong{font-size:21px}.credit-traffic-board{padding:10px;gap:10px}.credit-ticket{padding:14px}.credit-ticket-values{gap:5px}.credit-ticket-values>div{padding:8px 6px}.credit-ticket footer{align-items:stretch;flex-direction:column}.credit-ticket .mini-button{width:100%;min-height:42px}.credit-no-date-note{line-height:1.4}}
@media(max-width:380px){.credit-traffic-summary{grid-template-columns:1fr 1fr}.credit-traffic-summary article{min-height:98px;padding:12px}.credit-traffic-summary article>span{font-size:10px}.credit-traffic-summary article>strong{font-size:19px}.credit-ticket-values{grid-template-columns:1fr}.credit-ticket-values>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.credit-ticket-values strong{margin-top:0}}

/* Tocioriente 1.6.6 · recibos PDF corporativos */
.receipt-button{min-width:70px;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;white-space:nowrap}.receipt-button .ui-icon{width:14px;height:14px}.receipt-button:hover{border-color:var(--orange);background:#fff7f1;color:#a85323}

/* Tocioriente 1.7.2 · contraseñas y sesiones */
.fulfillment-choices label{min-height:76px}.order-note{display:flex;align-items:center}.order-traffic-summary .credit-total>span>.ui-icon{color:var(--gold-dark)}
.order-products{margin-top:12px;padding:12px;border:1px solid #e4ebe7;border-radius:10px;background:#f8faf9}.order-products>span{display:block;color:#87948e;font-size:8px;font-weight:750;text-transform:uppercase}.order-products>strong{display:block;margin-top:5px;color:#2e5045;font-size:11px;line-height:1.45}.order-products>small{display:block;margin-top:5px;color:#8a9791;font-size:8px}.order-ticket .credit-ticket-values>div:first-child strong{font-size:10px}.deliver-order-button{min-width:145px;justify-content:center;border-color:#b9d9ca;background:#eaf7f0;color:#267451}.deliver-order-button:hover{border-color:#36916a;background:#dcf1e5}.order-delivery-confirm{padding:15px 16px;display:flex;align-items:center;gap:12px;border:1px solid #d8e5df;border-left:5px solid #36916a;border-radius:12px;background:#f7fcf9}.order-delivery-confirm.warning{border-left-color:#d59a20;background:#fffdf6}.order-delivery-confirm.overdue{border-left-color:#c5544c;background:#fffafa}.order-delivery-confirm>.ui-icon{width:34px;height:34px;padding:7px;border-radius:10px;background:white;color:var(--green2)}.order-delivery-confirm>div{display:flex;flex-direction:column;gap:3px}.order-delivery-confirm span{color:#7b8982;font-size:9px}.order-delivery-confirm strong{color:#294b40;font-size:13px}.order-delivery-confirm small{color:#6d7d75;font-size:9px}.order-delivery-products{padding:14px;border:1px solid #e1e9e5;border-radius:11px;background:#f8faf9}.order-delivery-products span{display:block;color:#7e8d85;font-size:9px}.order-delivery-products strong{display:block;margin-top:5px;color:#294b40;font-size:12px;line-height:1.45}.order-delivery-products small{display:block;margin-top:5px;color:#84928b;font-size:9px}.order-delivery-summary{margin-top:0}.order-delivery-summary>div{min-height:78px;padding:14px}.order-delivery-summary strong{font-size:15px}
@media(max-width:760px){.order-products>strong{font-size:10px}.order-ticket .credit-ticket-values{grid-template-columns:1fr}.order-ticket .credit-ticket-values>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.order-ticket .credit-ticket-values strong{margin-top:0}.deliver-order-button{width:100%}.order-delivery-confirm{align-items:flex-start}.order-delivery-summary{grid-template-columns:1fr}.order-delivery-summary>div{min-height:64px}.conditional#orderFields{grid-template-columns:1fr}}
