/* Tokens y geometría de escritorio. Mantiene la semántica de estado existente. */
body:not(.mode-mobile){--shell-h:64px;--nav-w:248px;font-size:16px;background:#f3f5f7}
body:not(.mode-mobile) .shellbar{padding:0 24px;gap:16px;box-shadow:none;border-bottom:1px solid #315263}
body:not(.mode-mobile) .sb-title{font-size:16px}body:not(.mode-mobile) .sb-badge{font-size:12px}
body:not(.mode-mobile) #modoConexion{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
body:not(.mode-mobile) #cambiarModo{display:none}
body:not(.mode-mobile) .sidenav{padding:14px 10px 0;background:#fff;border-right:1px solid #d7e0e7;color:#243d4a}
.enterprise-nav{display:grid;gap:4px}.nav-space{min-width:0}.space-toggle,.nav-access{border:0;background:transparent;color:inherit;font:inherit;text-align:left;width:100%;display:flex;align-items:center;gap:12px;min-height:46px;border-radius:8px;padding:10px 12px;font-size:14px;font-weight:600}
.space-toggle:hover,.nav-access:hover{background:#edf4f7}.space-toggle[aria-expanded=true]{color:#0c6178;background:#e7f2f6}.space-chevron{margin-left:auto}.space-links{padding:6px 0 8px 18px}.nav-restricted{display:block;padding:10px 12px;font-size:13px;color:#657681}
body:not(.mode-mobile) .sidenav a{color:#415863;font-size:14px;min-height:40px;padding:8px 10px;gap:9px}
body:not(.mode-mobile) .sidenav a:hover{background:#edf4f7;color:#123647}body:not(.mode-mobile) .sidenav a.active{background:#e4f1f5;color:#095c73}
body:not(.mode-mobile) .sidenav a.active:before{background:#126a83}.sidenav .space-links .ic{width:17px;height:17px}
body:not(.mode-mobile) .nav-foot{color:#61747f;border-top:1px solid #e2e8ed;font-size:12px;padding:16px 8px}
body:not(.mode-mobile) .content{min-width:0;overflow-wrap:anywhere}
body:not(.mode-mobile) .page-head{padding:22px 32px 20px;background:#fff}
.enterprise-head .crumbs{font-size:14px;gap:9px;align-items:center;margin-bottom:12px}.enterprise-head h1{font-size:28px;line-height:1.2;letter-spacing:-.02em;margin:0;font-weight:650}
.enterprise-head .ph-row{margin:0;min-height:40px}.enterprise-context{font-size:14px;color:#536975;margin:10px 0 0}.enterprise-head .ph-sub{margin-top:12px;font-size:14px}
body:not(.mode-mobile) .page-body{padding:24px 32px 40px;gap:24px;min-width:0;max-width:none;width:100%}
body:not(.mode-mobile) .page-body>*{min-width:0}
body:not(.mode-mobile) .page-body>p{margin:0}
body:not(.mode-mobile) .btn{min-height:40px;height:auto;padding:9px 16px;font-size:14px;line-height:20px;justify-self:start;max-width:100%}
body:not(.mode-mobile) .btn-sm{min-height:32px;padding:5px 10px}body:not(.mode-mobile) .input,body:not(.mode-mobile) .select{height:40px;min-height:40px;font-size:14px;min-width:0;width:100%}
body:not(.mode-mobile) textarea.input{height:auto;min-height:96px}
body:not(.mode-mobile) .field{min-width:0;gap:6px;font-size:14px}body:not(.mode-mobile) .filterbar{display:flex;align-items:end;gap:16px;flex-wrap:wrap}
body:not(.mode-mobile) .filterbar>.field{flex:1 1 180px;max-width:360px}body:not(.mode-mobile) .filterbar>.field.grow{flex:2 1 260px}
body:not(.mode-mobile) .c05-filtros{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:end;background:#fff;border:1px solid #d9e2e8;border-radius:10px;padding:20px}
body:not(.mode-mobile) .c05-filtros>.field{max-width:none}.card{border:1px solid #dbe3e9;box-shadow:0 1px 2px #12364706}.card-head{padding:18px 20px 14px}.card-head h2{font-size:17px}.card-body{padding:12px 20px 20px}
body:not(.mode-mobile) .table-wrap{max-width:100%;min-width:0;overflow:auto;border-radius:8px;background:white}
body:not(.mode-mobile) .tbl{font-size:14px;max-width:100%;width:100%}body:not(.mode-mobile) .tbl th{font-size:13px;background:#f5f8fa;color:#415965;font-weight:650;padding:12px 14px}body:not(.mode-mobile) .tbl td{padding:13px 14px;vertical-align:top;line-height:1.5}
body:not(.mode-mobile) .tbl .num{font-variant-numeric:tabular-nums}body:not(.mode-mobile) .tbl td:first-child{font-weight:500}.badge{font-size:13px;max-width:100%;white-space:normal}
.enterprise-tech{font-size:13px;color:#526873;border-top:1px solid #d8e1e7;padding-top:14px}.enterprise-tech summary{cursor:pointer;font-weight:600}.enterprise-tech p{overflow-wrap:anywhere}
.manager-card>.btn{align-self:flex-start}
.nav-access.active{background:#e4f1f5;color:#095c73;border-left:3px solid #126a83}
body:not(.mode-mobile) .prep-list button{height:auto;min-height:64px;white-space:normal;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;padding:14px;font-size:14px}
body:not(.mode-mobile) .prep-list small{font-size:12px;line-height:1.4;overflow-wrap:anywhere}.prep-list li{min-width:0}.prep-layout{grid-template-columns:minmax(240px,1fr) minmax(0,2fr)}.prep-metrics{margin:0}.prep-tabs,.prep-tools{margin:0}.prep-editor h2{font-size:20px}.prep-fields{gap:20px}
body:not(.mode-mobile) .b2-seccion:has(>.field){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}body:not(.mode-mobile) .b2-seccion>.b2-empresas{grid-column:1/-1}
body:not(.mode-mobile) .kardex-compact{table-layout:fixed;min-width:0}.kardex-compact th:nth-child(1){width:16%}.kardex-compact th:nth-child(2){width:21%}.kardex-compact th:nth-child(3){width:16%}.kardex-compact th:nth-child(7){width:12%}.kardex-compact th:last-child{width:9%}
body:not(.mode-mobile) .kardex-compact td,body:not(.mode-mobile) .kardex-compact th{white-space:normal;overflow-wrap:anywhere;padding:12px 10px}.kardex-compact td.num{white-space:normal}.kardex-compact summary{cursor:pointer;color:#126a83}.kardex-compact details[open]{position:relative;min-width:0}.kardex-compact details p{font-size:13px}
.date-warning{display:inline-block;color:#8b4300;background:#fff0db;border-radius:4px;font-size:12px;padding:2px 6px;margin-top:5px}.enterprise-notice{display:flex;gap:12px;align-items:flex-start;padding:16px 20px;border:1px solid #efcc94;border-radius:8px;background:#fff8eb;color:#6b460b;font-size:14px}.enterprise-notice p{margin:0}.enterprise-notice a{font-weight:600}
.manager-scope{display:flex;flex-wrap:wrap;align-items:end;gap:16px}.manager-scope .field{min-width:180px;flex:1}.manager-scope .cutoff{font-size:13px;line-height:1.6;color:#526873}.manager-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.manager-card{padding:22px;display:flex;flex-direction:column;gap:12px;background:white;border:1px solid #d8e3e9;border-radius:12px}.manager-card h2{font-size:16px;font-weight:650;margin:0;display:flex;gap:10px;align-items:center;color:#183c4c}.manager-value{font-size:32px;font-weight:650;line-height:1.2;letter-spacing:-.03em;color:#123647;font-variant-numeric:tabular-nums}.manager-value.state{font-size:21px}.manager-card p{margin:0;font-size:14px;color:#526873}.manager-card button{margin-top:auto}.manager-card .data-state{font-size:12px;color:#526873}.manager-detail h2{margin:0;font-size:18px}.manager-detail{scroll-margin-top:84px}.manager-detail .table-wrap{margin-top:16px}.manager-empty{padding:28px;background:#fff;border:1px solid #dbe3e9;border-radius:8px;color:#536975}
body:not(.mode-mobile).d4-administrando .content{display:none}body:not(.mode-mobile).d4-administrando #d4Acceso{display:block;position:relative;inset:auto;margin-left:var(--nav-w);padding:var(--shell-h) 0 0;background:var(--bg);min-height:100vh;z-index:1}
body:not(.mode-mobile).d4-administrando .d4-admin{max-width:none;margin:0;padding:24px 32px;border:0;border-radius:0;box-shadow:none;background:transparent}
body:not(.mode-mobile).d4-administrando .d4-marca{display:none}body:not(.mode-mobile).d4-administrando .d4-admin>h1{font-size:28px;margin:10px 0 20px}.d4-admin form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.d4-admin form>fieldset{grid-column:1/-1}.d4-admin label{font-size:14px;min-width:0}.d4-admin form button{width:auto;justify-self:start;min-width:160px;grid-column:1/-1}.d4-admin details{background:#fff;border:1px solid #d8e3e9;border-radius:8px;padding:16px;margin-top:18px}.d4-admin input,.d4-admin select{height:40px;min-height:40px}.d4-admin .m-btn{width:auto;min-height:40px;font-size:14px}.d4-admin table{width:100%;font-size:14px}.d4-admin #d4Volver{display:inline-flex;margin-bottom:20px}.d4-admin section>h2{font-size:18px}.d4-admin section>p{font-size:14px}
@media(min-width:1201px){body:not(.mode-mobile) .sidenav{width:248px}body:not(.mode-mobile) .content{margin-left:248px}}
@media(min-width:900px) and (max-width:1200px){body:not(.mode-mobile){--nav-w:220px}body:not(.mode-mobile) .sidenav{width:220px}body:not(.mode-mobile) .sidenav a span{display:inline}body:not(.mode-mobile) .content{margin-left:220px}.manager-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body:not(.mode-mobile) .c05-filtros{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:899px){.manager-grid{grid-template-columns:1fr}.manager-scope{display:grid;grid-template-columns:1fr}.enterprise-head h1{font-size:24px}body:not(.mode-mobile) .page-head,body:not(.mode-mobile) .page-body{padding:20px}body:not(.mode-mobile) .c05-filtros{grid-template-columns:repeat(2,minmax(0,1fr))}.d4-admin form{grid-template-columns:1fr}}
