:root{font-family:'Poppins',sans-serif;color:#19344a;background:#f4f7fa;font-synthesis:none;text-rendering:optimizeLegibility;--blue:#0064a2;--deep:#064b76;--mint:#e8f4f5;--muted:#718291;--line:#e2e9ee;--paper:#fff}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}.b2b-header{height:78px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(calc((100vw - 1200px)/2),24px);border-bottom:1px solid #e8edf1}.b2b-brand img{width:174px;max-height:56px;object-fit:contain}.header-back,.b2b-footer a{color:var(--blue);font-size:13px;font-weight:600;text-decoration:none}.portal-intro{text-align:center;padding:48px 16px 30px}.eyebrow{font-size:10px;letter-spacing:1.5px;color:#368b9c;font-weight:700}.portal-intro h1,.admin-welcome h1{font-size:clamp(28px,4vw,40px);margin:8px 0;color:#12334a;letter-spacing:-1.4px}.portal-intro p,.admin-welcome p{color:var(--muted);font-size:14px;margin:0}.b2b-main,.admin-main{max-width:1120px;margin:auto;padding:0 24px 64px}.auth-layout{max-width:940px;margin:12px auto 48px;display:grid;grid-template-columns:1fr .88fr;border-radius:18px;overflow:hidden;box-shadow:0 18px 50px #17384e12;background:#fff}.auth-card{padding:30px 36px 36px}.auth-tabs{display:flex;border-bottom:1px solid var(--line);gap:26px;margin:-4px 0 26px}.auth-tab{border:0;background:none;color:#8998a5;padding:0 0 13px;font-size:13px;font-weight:600}.auth-tab.active{color:var(--blue);border-bottom:2px solid var(--blue)}.auth-form h2{font-size:24px;margin:0 0 4px}.auth-form>p,.admin-login>p{font-size:13px;color:var(--muted);margin:0 0 21px}.auth-form label,.checkout-form label,.product-form label{display:block;font-size:12px;font-weight:600;color:#3f5668;margin:0 0 14px}.auth-form small{font-size:10px;color:var(--muted);font-weight:400}.auth-form input,.checkout-form input,.checkout-form textarea,.product-form input,.product-form textarea,.product-form select{width:100%;border:1px solid #dce5eb;border-radius:8px;background:#fff;padding:11px 12px;margin-top:6px;color:#19344a;outline:none;font-size:13px}.auth-form input:focus,.checkout-form input:focus,.checkout-form textarea:focus,.product-form input:focus,.product-form select:focus{border-color:#4f9cbd;box-shadow:0 0 0 3px #4f9cbd18}.btn{border-radius:8px;padding:11px 15px;font-size:12px;font-weight:600;display:inline-flex;gap:12px;align-items:center;justify-content:center;border:1px solid transparent}.btn-primary{background:var(--blue);color:#fff}.btn-primary:hover{background:var(--deep)}.auth-form>.btn,.checkout-form>.btn{width:100%;margin-top:4px}.btn-outline{color:var(--blue);background:white;border-color:#d6e3ec}.auth-aside{background:linear-gradient(145deg,#0064a2,#074a73);padding:44px 38px;color:white}.aside-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#ffffff1e;font-size:22px}.auth-aside h2{font-size:25px;line-height:1.3;margin:23px 0 10px}.auth-aside>p{font-size:12px;line-height:1.8;color:#e1f1f6;margin:0 0 22px}.aside-line{font-size:11px;padding:9px 0;color:#f4fbfc}.aside-line i{font-style:normal;color:#9fe1d3;margin-right:9px}.b2b-footer{max-width:1120px;margin:auto;padding:20px 24px 30px;display:flex;justify-content:space-between;gap:10px;color:#8998a5;font-size:11px;border-top:1px solid #e4eaee}.notice{max-width:940px;margin:0 auto 15px;padding:12px 16px;border-radius:8px;background:#eaf4fb;color:#17577c;font-size:12px}.notice.error{background:#fff0ed;color:#a24232}.notice.success{background:#e9f7ef;color:#28724e}.empty-state{margin:55px auto;text-align:center;background:#fff;border:1px solid var(--line);border-radius:16px;max-width:600px;padding:55px 24px}.empty-icon{font-size:32px;color:#3e91a3}.empty-state p{font-size:13px;color:var(--muted);margin-bottom:20px}.portal-toolbar{display:flex;align-items:center;justify-content:space-between;padding:35px 0 24px}.portal-toolbar h2{font-size:24px;margin:4px 0}.toolbar-actions{display:flex;align-items:center;gap:9px}.cart-count{background:#ffffff38;border-radius:20px;padding:1px 7px}.icon-button{height:38px;width:38px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#486273;font-size:21px}.catalog-head,.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;gap:20px}.catalog-head h3,.section-head h3{font-size:18px;margin:0}.catalog-head p,.section-head p{font-size:11px;color:var(--muted);margin:3px 0}.search-box{width:min(340px,100%);display:flex;align-items:center;gap:9px;border:1px solid #dfe7ec;background:white;border-radius:9px;padding:0 12px;height:42px;color:#688091}.search-box input{border:0;outline:0;width:100%;font-size:12px}.category-filters{display:flex;gap:8px;flex-wrap:wrap;margin:17px 0}.filter-chip{border:1px solid #dce6eb;background:#fff;border-radius:30px;padding:7px 14px;color:#597084;font-size:11px}.filter-chip.active{background:#e7f3f7;color:var(--blue);border-color:#bcd9e5;font-weight:600}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.product-card{background:#fff;border:1px solid #e3eaf0;border-radius:13px;padding:15px;display:flex;flex-direction:column;min-height:236px}.product-image{height:100px;display:grid;place-items:center;margin:-2px 0 12px;background:#f7fafb;border-radius:9px;overflow:hidden}.product-image img{height:100%;width:100%;object-fit:contain}.product-image .placeholder{color:#8aabb8;font-size:29px}.product-category{font-size:9px;letter-spacing:.7px;color:#39889b;font-weight:700;text-transform:uppercase}.product-card h4{margin:4px 0;font-size:13px}.product-card p{margin:0;color:var(--muted);font-size:10px;line-height:1.5;min-height:29px}.product-meta{display:flex;justify-content:space-between;align-items:end;margin-top:auto;padding-top:13px}.product-price{font-size:16px;font-weight:700;color:#164e70}.product-stock{font-size:9px;color:#798a96}.product-action{margin-top:10px;width:100%;padding:8px;border-radius:7px;border:1px solid #c9e0e9;color:var(--blue);background:white;font-size:10px;font-weight:600}.product-action:hover{background:#edf7fa}.product-action:disabled{color:#9aa7b1;background:#f4f6f7;border-color:#e5eaed}.overlay{position:fixed;inset:0;background:#122d4080;z-index:20;display:flex;justify-content:flex-end}.overlay[hidden]{display:none}.cart-panel{height:100%;width:min(440px,100%);background:white;padding:25px;display:flex;flex-direction:column;box-shadow:-12px 0 40px #0a2e4418}.panel-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:16px}.panel-head h2{margin:3px 0 0;font-size:22px}.cart-items{overflow:auto;flex:1;padding:12px 0}.cart-row{display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px 0;border-bottom:1px solid #eef1f3}.cart-row strong{font-size:12px}.cart-row small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.qty-controls{display:flex;align-items:center;gap:7px}.qty-controls button{height:25px;width:25px;border:1px solid var(--line);border-radius:6px;background:#fff;color:#31566d}.qty-controls span{font-size:11px}.cart-footer{padding-top:16px;border-top:1px solid var(--line)}.cart-total{display:flex;justify-content:space-between;font-size:13px}.cart-total strong{font-size:19px}.cart-footer>p{color:var(--muted);font-size:10px}.cart-footer .btn{width:100%}.checkout-modal{width:min(580px,calc(100% - 28px));max-height:calc(100vh - 35px);overflow:auto;background:white;margin:auto;padding:25px;border-radius:14px;box-shadow:0 18px 60px #092c4140}.checkout-form{padding-top:17px}.checkout-form textarea{resize:vertical}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.checkout-disclaimer{border-radius:8px;padding:12px;background:#f1f7f9;color:#50697a;font-size:10px;line-height:1.6;margin:4px 0 15px}.order-card{background:#fff;border:1px solid var(--line);border-radius:12px;margin:12px 0;padding:17px}.order-top{display:flex;justify-content:space-between;gap:12px}.order-top strong{font-size:14px}.order-top time{font-size:10px;color:var(--muted)}.status{border-radius:30px;background:#eef4f6;padding:5px 9px;font-size:9px;color:#526d7d;font-weight:600}.status.pendiente{background:#fff4df;color:#99681d}.status.confirmado{background:#e6f2fa;color:#1c6892}.status.en_preparacion{background:#f1eafb;color:#7148a0}.status.enviado{background:#e7efff;color:#4161a5}.status.entregado{background:#e6f5ec;color:#2c7951}.status.cancelado{background:#fceae8;color:#aa5047}.order-items{font-size:11px;color:#637889;line-height:1.9;padding:12px 0;border-bottom:1px solid #eef1f3}.order-bottom{display:flex;justify-content:space-between;padding-top:11px;font-size:11px}.order-bottom strong{font-size:14px}.admin-label{font-size:10px;letter-spacing:1px;color:#638093;font-weight:700;margin-right:auto;margin-left:27px}.admin-main{padding-top:44px}.admin-login{max-width:450px;margin:55px auto;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:0 15px 45px #17384e10}.admin-login h1{font-size:24px;margin:8px 0}.admin-welcome{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.admin-user{color:#5c7181;font-size:12px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:25px}.stat-card{padding:18px;background:white;border:1px solid var(--line);border-radius:12px}.stat-card span{display:block;color:var(--muted);font-size:10px}.stat-card strong{font-size:25px;color:#164e70}.admin-tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);overflow:auto;margin-bottom:18px}.admin-tabs button{position:relative;border:0;background:none;padding:12px 2px;color:#738390;font-size:12px;font-weight:600;white-space:nowrap}.admin-tabs button.active{color:var(--blue)}.admin-tabs button.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--blue)}.admin-tabs button span{color:#c05a47}.admin-panel{background:transparent}.admin-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.admin-panel-head h2{font-size:17px;margin:0}.admin-panel-head p{font-size:10px;color:var(--muted);margin:3px 0}.table-wrap{overflow-x:auto;background:white;border:1px solid var(--line);border-radius:11px}.data-table{width:100%;border-collapse:collapse;min-width:680px}.data-table th{text-align:left;padding:11px 13px;background:#f8fafb;color:#758592;font-size:9px;letter-spacing:.5px;text-transform:uppercase}.data-table td{padding:12px 13px;border-top:1px solid #edf1f3;font-size:11px;vertical-align:top}.data-table td small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.data-table select{border:1px solid var(--line);border-radius:6px;padding:7px;font-size:10px;background:white;color:#365267}.detail-toggle,.text-action{border:0;background:none;color:var(--blue);font-size:10px;font-weight:600;padding:3px}.order-detail{background:#f8fafb;padding:11px;border-radius:8px;margin-top:7px;color:#536d7e;font-size:10px;line-height:1.8}.product-admin-list{display:grid;gap:10px}.admin-product{background:#fff;border:1px solid var(--line);border-radius:10px;padding:13px;display:flex;justify-content:space-between;align-items:center;gap:15px}.admin-product h3{font-size:12px;margin:0}.admin-product p{color:var(--muted);font-size:10px;margin:4px 0}.admin-actions{display:flex;gap:6px;flex-shrink:0}.category-row{display:flex;justify-content:space-between;align-items:center;background:white;border:1px solid var(--line);padding:12px 14px;margin:8px 0;border-radius:9px;font-size:12px}.inline-form,.product-form{background:white;border:1px solid var(--line);border-radius:11px;padding:17px;margin-bottom:16px}.inline-form{display:flex;gap:9px}.inline-form input{flex:1;min-width:0;border:1px solid var(--line);border-radius:7px;padding:9px 11px;font-size:12px}.product-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.product-form h3{font-size:14px;margin:0 0 12px}.empty-table{background:white;border:1px dashed #ccd9e1;border-radius:10px;text-align:center;padding:30px;color:var(--muted);font-size:12px}.admin-page .notice{max-width:none}.admin-page .b2b-footer{max-width:1120px}@media(max-width:760px){.b2b-header{height:66px;padding:0 18px}.b2b-brand img{width:145px}.portal-intro{padding:34px 14px 23px}.portal-intro h1{font-size:30px}.b2b-main,.admin-main{padding-left:16px;padding-right:16px}.auth-layout{grid-template-columns:1fr;margin-top:5px}.auth-card{padding:24px}.auth-aside{padding:27px 25px}.auth-aside h2{font-size:21px;margin:14px 0 6px}.auth-aside>p{margin-bottom:8px}.aside-line{display:inline-block;margin-right:10px}.portal-toolbar{align-items:flex-start;padding-top:25px}.toolbar-actions{gap:6px;flex-wrap:wrap;justify-content:flex-end}.toolbar-actions>.btn{padding:9px}.toolbar-actions .icon-button{height:36px;width:36px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-card{padding:10px;min-height:218px}.product-image{height:80px}.catalog-head,.section-head{align-items:flex-start;flex-direction:column}.search-box{width:100%}.form-row{grid-template-columns:1fr;gap:0}.b2b-footer{padding:18px;flex-direction:column}.stats-grid{grid-template-columns:repeat(2,1fr)}.admin-welcome{align-items:flex-start;flex-direction:column;gap:8px}.admin-label{font-size:8px;margin-left:8px}.admin-login{margin:30px 0}.checkout-modal{padding:19px}.admin-product{align-items:flex-start}.admin-actions{flex-direction:column}.inline-form{flex-wrap:wrap}.inline-form input{flex-basis:100%}}@media(max-width:390px){.product-grid{grid-template-columns:1fr}.product-card{min-height:205px}.portal-toolbar h2{font-size:20px}.toolbar-actions{max-width:195px}.toolbar-actions>.btn{font-size:10px}}
.admin-help{color:var(--muted);font-size:10px;line-height:1.6;margin:0 0 14px}.product-form .btn:disabled{opacity:.5;cursor:not-allowed}

/* Clean Pel CRM */
.admin-page{background:#f3f7fa;color:#18384d}.admin-login-screen[hidden],.crm-shell[hidden],[hidden]{display:none!important}.login-topbar{height:76px;padding:0 max(calc((100vw - 1240px)/2),28px);display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #e6edf1}.login-main{max-width:1240px;margin:auto;padding:20px 24px 70px}.admin-login{margin:64px auto 35px;padding:36px 38px;box-shadow:0 20px 55px #0c4f7510}.admin-login .eyebrow{color:var(--blue)}
.crm-shell{min-height:100vh;display:grid;grid-template-columns:252px minmax(0,1fr);background:#f3f7fa}.crm-sidebar{height:100vh;position:sticky;top:0;display:flex;flex-direction:column;padding:22px 15px 14px;background:linear-gradient(180deg,#083f60 0%,#073652 100%);color:#e9f5f9;z-index:30}.crm-brand{display:flex;align-items:center;gap:12px;padding:0 11px 20px;text-decoration:none;color:#d8eef4;font-size:9px;letter-spacing:1.3px;font-weight:700}.crm-brand img{width:132px;max-height:44px;object-fit:contain;object-position:left center;filter:brightness(0) invert(1)}.crm-workspace{height:54px;display:flex;align-items:center;gap:10px;padding:0 9px;margin:0 0 15px;border:1px solid #ffffff1c;border-radius:10px;background:#ffffff0c}.workspace-mark{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#d7f2f4;color:#07506b;font-size:10px;font-weight:700}.crm-workspace strong,.crm-workspace small{display:block}.crm-workspace strong{font-size:11px}.crm-workspace small{font-size:9px;color:#a8c4d1;margin-top:2px}.workspace-caret{margin-left:auto;color:#adc5cf}.crm-search{display:flex;align-items:center;height:39px;gap:7px;padding:0 9px;border-radius:8px;border:1px solid #ffffff23;background:#ffffff0b;color:#a9c2cd}.crm-search>span{font-size:20px;line-height:1}.crm-search input{min-width:0;width:100%;background:transparent;border:0;outline:0;color:inherit;font-size:10px}.crm-search input::placeholder{color:#a9c2cd}.crm-search kbd{flex-shrink:0;padding:3px 4px;border:1px solid #ffffff2a;border-radius:4px;color:#b6ccd4;font:9px 'Poppins',sans-serif}.crm-nav{display:flex;flex-direction:column;gap:4px;margin-top:20px}.crm-nav button{height:40px;display:flex;align-items:center;gap:11px;padding:0 11px;border:0;border-radius:8px;background:transparent;color:#bfd2db;text-align:left;font-size:11px;font-weight:500;transition:.18s}.crm-nav button:hover{background:#ffffff12;color:white}.crm-nav button.active{background:#c7edf0;color:#064969;font-weight:700;box-shadow:0 5px 14px #001d2d22}.nav-icon{width:18px;display:grid;place-items:center;font-size:18px;line-height:1}.nav-icon svg,.quick-links svg,.metric-label svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-group-label{margin:15px 10px 4px;color:#7ea7b8;font-size:8px;font-weight:700;letter-spacing:1.4px}.nav-badge{margin-left:auto;min-width:20px;padding:2px 6px;border-radius:20px;background:#f1c66e;color:#503a0a;text-align:center;font-size:9px;font-weight:700}.crm-sidebar-bottom{margin-top:auto}.crm-help-link{display:flex;justify-content:space-between;padding:12px 10px 15px;color:#9ebcc9;font-size:9px;text-decoration:none}.crm-help-link:hover{color:white}.crm-user{display:flex;align-items:center;gap:9px;border-top:1px solid #ffffff20;padding:13px 7px 3px}.crm-avatar{width:33px;height:33px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#c6edf0;color:#075270;font-size:12px;font-weight:700}.crm-user-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.crm-user-copy strong{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.crm-user-copy small{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#a8c4d1;font-size:8px}.crm-logout{margin-left:auto;border:0;background:transparent;color:#bdd2da;font-size:17px}.crm-logout:hover{color:white}.crm-main{min-width:0}.crm-topbar{height:64px;position:sticky;top:0;z-index:15;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,3vw,42px);border-bottom:1px solid #e5edf1;background:#ffffffed;backdrop-filter:blur(12px)}.crm-topbar-left,.crm-topbar-actions{display:flex;align-items:center;gap:15px}.crm-breadcrumb{display:flex;gap:10px;align-items:center;color:#8a9aa5;font-size:10px}.crm-breadcrumb b{color:#c1cdd4;font-weight:400}.crm-breadcrumb strong{color:#2c4a5f;font-weight:600}.crm-topbar-actions{gap:17px}.crm-secure-label{color:#718794;font-size:9px}.crm-secure-label i{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#48a987}.crm-refresh,.crm-menu-toggle{height:34px;width:34px;border:1px solid #e1e9ed;border-radius:8px;background:#fff;color:#507080;font-size:18px}.crm-refresh:hover,.crm-menu-toggle:hover{border-color:#9acbd2;color:var(--blue)}.crm-site-link{color:var(--blue);font-size:10px;font-weight:600;text-decoration:none}.crm-menu-toggle{display:none}.crm-content{width:min(1480px,100%);margin:0 auto;padding:28px clamp(18px,3vw,42px) 60px}.crm-content>.notice{max-width:none;margin:0 0 20px}.crm-view{min-width:0}.crm-view[hidden]{display:none!important}.view-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:23px}.view-heading h1{margin:5px 0 4px;color:#16384f;font-size:clamp(25px,3vw,32px);letter-spacing:-1.1px}.view-heading p{margin:0;color:#738997;font-size:11px}.view-heading .eyebrow{color:#328ca0}.heading-count{padding:7px 11px;border:1px solid #e1eaee;border-radius:30px;background:white;color:#587486;font-size:9px;font-weight:600;white-space:nowrap}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:17px}.metric-card{position:relative;min-height:117px;padding:16px 18px;border:1px solid #e0e9ee;border-radius:13px;background:#fff;text-align:left;box-shadow:0 4px 16px #12426205}.metric-card[data-view-jump]{width:100%;cursor:pointer}.metric-card[data-view-jump]:hover{transform:translateY(-2px);box-shadow:0 10px 24px #0d47750e}.metric-label{display:flex;justify-content:space-between;align-items:center;color:#758a96;font-size:10px;font-weight:500}.metric-label i{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#eaf4f7;color:#11739b;font-style:normal}.metric-card>strong{display:block;margin:6px 0 2px;color:#173b53;font-size:27px;line-height:1.1;letter-spacing:-.8px}.metric-card>small{color:#84949d;font-size:9px}.metric-card.amber .metric-label i{color:#a36b0c;background:#fff4de}.metric-card.violet .metric-label i{color:#7656a5;background:#f1ebfa}.metric-card.green .metric-label i{color:#27815e;background:#e7f5ed}.metric-card.teal .metric-label i{color:#14888c;background:#e5f5f4}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:15px;margin-bottom:15px}.crm-card{min-width:0;padding:19px;border:1px solid #e1eaee;border-radius:13px;background:#fff;box-shadow:0 4px 18px #12426205}.crm-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:15px}.crm-card-head h2{margin:0;color:#183d54;font-size:13px}.crm-card-head p{margin:4px 0 0;color:#8797a0;font-size:9px}.crm-card-head .text-action{font-size:9px}.chart-total{color:#174e6c;font-size:17px;font-weight:700}.chart-total small{color:#83939c;font-size:8px;font-weight:400}.bar-chart{height:170px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:13px;align-items:end;padding-top:11px}.bar-column{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:5px}.bar-value{height:11px;color:#537180;font-size:8px}.bar-track{width:min(30px,70%);height:calc(100% - 30px);display:flex;align-items:flex-end;overflow:hidden;border-radius:7px 7px 3px 3px;background:#eff5f7}.bar-track i{width:100%;min-height:3px;border-radius:7px 7px 3px 3px;background:linear-gradient(180deg,#2e9db0,#0877a3)}.bar-column small{color:#8a9aa4;font-size:8px;text-transform:capitalize}.popular-list{display:grid}.popular-row{min-height:44px;display:flex;align-items:center;gap:10px;border-top:1px solid #eef2f4}.popular-rank{width:22px;color:#9aabb4;font-size:9px}.popular-name{min-width:0;display:flex;flex:1;flex-direction:column;gap:3px}.popular-name strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#2d4c60;font-size:9px}.popular-name small{color:#96a4ac;font-size:8px}.popular-qty{color:#235a74;font-size:11px;font-weight:700;text-align:right}.popular-qty small{display:block;color:#91a0a8;font-size:7px;font-weight:400}.lower-grid{grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr)}.recent-list{display:grid}.recent-row{min-height:49px;display:grid;grid-template-columns:70px minmax(90px,1fr) auto auto;gap:11px;align-items:center;border-top:1px solid #eef2f4}.recent-code{color:var(--blue);font-size:9px;font-weight:700}.recent-client{min-width:0;display:flex;flex-direction:column;gap:3px}.recent-client strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#2c4c61;font-size:9px}.recent-client small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8a9aa3;font-size:8px}.recent-total{color:#31556b;font-size:9px;font-weight:600}.recent-row .status{font-size:8px;white-space:nowrap}.activity-list{display:grid}.activity-item{display:flex;gap:10px;padding:10px 0;border-top:1px solid #eef2f4}.activity-dot{width:8px;height:8px;flex-shrink:0;margin-top:4px;border-radius:50%;background:#319bb0;box-shadow:0 0 0 4px #e8f5f6}.activity-dot.order_status{background:#8a6bc0;box-shadow:0 0 0 4px #f1ebfa}.activity-dot.customer_approved{background:#4eaa80;box-shadow:0 0 0 4px #e9f6ef}.activity-item p{margin:0;color:#34566b;font-size:9px;line-height:1.5}.activity-item small{display:block;margin-top:4px;color:#8a9aa3;font-size:8px}.compact-empty{padding:20px 12px;font-size:9px}.quick-links{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:17px}.quick-links button{position:relative;min-height:68px;display:grid;grid-template-columns:36px 1fr 16px;grid-template-rows:auto auto;align-content:center;column-gap:10px;padding:12px;border:1px solid #e0e9ee;border-radius:11px;background:#fff;text-align:left}.quick-links button:hover{border-color:#add5db;background:#fbfefe}.quick-links button>span{grid-row:1/3;width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#eaf5f7;color:#08769d}.quick-links strong{color:#24485d;font-size:9px}.quick-links small{margin-top:3px;color:#8799a3;font-size:8px}.quick-links b{grid-column:3;grid-row:1/3;align-self:center;color:#7a9dad}.crm-card .text-action,.text-action{border:0;background:none;color:var(--blue);font-size:9px;font-weight:600;cursor:pointer}.text-action:hover{text-decoration:underline}.danger-action{color:#a55448!important}.list-card{padding:0;overflow:hidden}.list-toolbar{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 17px;border-bottom:1px solid #edf2f4}.light-search{width:min(370px,100%);height:36px;border-color:#e4ecef;background:#fafcfd;color:#7b929e}.light-search input{color:#24475c}.light-search input::placeholder{color:#9aaab2}.light-search kbd{display:none}.filter-strip{display:flex;gap:5px;overflow:auto;padding:10px 17px;border-bottom:1px solid #edf2f4}.filter-pill{display:flex;align-items:center;gap:6px;flex-shrink:0;padding:7px 10px;border:0;border-radius:7px;background:transparent;color:#778b96;font-size:9px;white-space:nowrap}.filter-pill:hover{background:#f5f8fa}.filter-pill.active{background:#e9f4f7;color:#086b92;font-weight:700}.filter-pill b{min-width:16px;padding:2px 4px;border-radius:10px;background:#fff;color:#328aa1;font-size:8px;text-align:center}.crm-table-wrap{border:0;border-radius:0}.crm-table{min-width:760px}.crm-table th{padding:12px 16px;background:#f8fafb;color:#7d919c;font-size:8px}.crm-table td{padding:13px 16px;color:#3b586b;font-size:9px;vertical-align:middle}.crm-table td strong{color:#2b4b60;font-size:9px}.crm-table td small{color:#8999a2;font-size:8px}.crm-table select{max-width:130px;border-color:#e0e9ed;border-radius:7px;padding:7px 8px;color:#3d6277;font-size:9px}.order-code{color:#0874a1!important}.btn-small{padding:7px 10px;border-radius:7px;font-size:8px}.detail-row>td{padding:0!important;background:#f8fbfc}.order-detail-panel{padding:20px 22px 18px;border-top:1px solid #e6eef1}.order-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px}.order-detail-head h3{margin:3px 0;color:#1e4358;font-size:18px}.order-detail-head small{color:#7f929e;font-size:9px}.order-actions{display:flex;gap:8px;flex-wrap:wrap}.btn-whatsapp{border-color:#cfe9dc;background:#f1faf5;color:#278055;text-decoration:none}.order-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}.order-info-grid>div{padding:13px;border:1px solid #e6eef1;border-radius:9px;background:white}.order-info-grid span,.order-detail-summary span{display:block;margin-bottom:6px;color:#879aa5;font-size:8px;font-weight:700;letter-spacing:.6px;text-transform:uppercase}.order-info-grid strong{display:block;color:#2a4d62;font-size:10px}.order-info-grid small{display:block;margin-top:4px;color:#758b97;font-size:8px}.detail-lines-wrap{border:1px solid #e5edf0;border-radius:9px}.detail-lines{min-width:530px}.detail-lines th{background:#f5f9fa}.detail-lines td{font-size:9px}.detail-lines td small{display:block}.detail-qty{width:72px;border:1px solid #dce7ec;border-radius:6px;padding:5px 6px;font-size:9px}.detail-qty+small{display:block;color:#9aa7ae;font-size:7px}.order-detail-summary{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid #e6eef1}.order-detail-summary p{max-width:560px;margin:0;color:#476477;font-size:9px;line-height:1.7;white-space:pre-wrap}.order-total-block{text-align:right;white-space:nowrap}.order-total-block strong{color:#164f6d;font-size:17px}.internal-note-label{display:block;margin-top:13px;color:#516e7e;font-size:9px;font-weight:600}.internal-note-label textarea{width:100%;margin-top:6px;border:1px solid #dfe9ed;border-radius:8px;padding:9px 10px;resize:vertical;color:#274d62;font:10px 'Poppins',sans-serif}.order-detail-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px}.order-detail-footer>small{color:#8798a1;font-size:8px}.table-actions{display:flex;gap:7px;justify-content:flex-end;white-space:nowrap}.crm-form-card{margin-bottom:16px;padding:19px;border:1px solid #e0e9ed;border-radius:12px;background:#fff}.crm-form-card .crm-card-head{margin-bottom:14px}.crm-form-card .crm-card-head h2{margin:3px 0 0;font-size:14px}.crm-form-card .crm-card-head p{margin-top:4px;color:#8697a0;font-size:9px}.crm-form-card label{display:block;margin-bottom:12px;color:#506b7b;font-size:9px;font-weight:600}.crm-form-card input,.crm-form-card select,.crm-form-card textarea,.report-actions select{display:block;width:100%;margin-top:5px;border:1px solid #dce6eb;border-radius:7px;padding:9px 10px;background:#fff;color:#294b60;outline:0;font:10px 'Poppins',sans-serif}.crm-form-card input:focus,.crm-form-card select:focus,.crm-form-card textarea:focus,.report-actions select:focus{border-color:#55aabd;box-shadow:0 0 0 3px #55aabd18}.crm-form-card small{color:#8697a0;font-size:8px;font-weight:400}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 13px}.full-field{grid-column:1/-1}.form-actions{display:flex;gap:8px;margin-top:2px}.admin-product-list{display:grid}.admin-product{min-height:67px;display:grid;grid-template-columns:42px minmax(130px,1fr) 115px 90px auto;gap:13px;align-items:center;padding:10px 16px;border-top:1px solid #edf2f4}.admin-product-thumb{width:40px;height:40px;display:grid;place-items:center;overflow:hidden;border-radius:8px;background:#f0f6f8;color:#6eabb6}.admin-product-thumb img{width:100%;height:100%;object-fit:cover}.admin-product-copy{min-width:0}.admin-product-copy h3{margin:0;color:#315469;font-size:9px}.admin-product-copy p{margin:4px 0 0;color:#8b9ba3;font-size:8px}.admin-product-price{color:#2c5067;font-size:10px}.stock-pill{width:max-content;padding:5px 8px;border-radius:20px;background:#eaf6ef;color:#34845c;font-size:8px}.low-stock{background:#fff4e4;color:#9d6e21}.admin-product .admin-actions{align-items:center}.admin-product .btn:disabled{opacity:.5}.category-manager{padding:0 18px 12px}.category-manager .inline-form{display:flex;gap:10px;padding:17px 0;border:0;border-bottom:1px solid #edf2f4;border-radius:0;margin:0}.category-manager .inline-form input{margin:0}.category-list{display:grid}.category-row{display:flex;align-items:center;gap:11px;margin:0;padding:12px 2px;border:0;border-bottom:1px solid #edf2f4;border-radius:0;background:transparent}.category-chip-mark{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:#edf6f8;color:#247f99}.category-row-name{display:flex;flex:1;flex-direction:column;gap:3px}.category-row-name strong{color:#31556a;font-size:9px}.category-row-name small{color:#91a0a7;font-size:8px}.inline-form .crm-search{flex:1}.inline-form .crm-search input{width:100%;border:0}.report-actions{display:flex;align-items:center;gap:7px}.report-actions select{width:auto;min-width:130px;margin:0}.report-note{display:flex;gap:8px;align-items:center;margin:-7px 0 14px;padding:10px 12px;border:1px solid #e4edf0;border-radius:8px;background:#f9fcfd;color:#718793;font-size:8px}.report-note span{width:15px;height:15px;display:grid;place-items:center;border-radius:50%;background:#e3f0f4;color:#287b95;font-size:9px;font-weight:700}.report-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.report-metrics .metric-card{min-height:105px}.report-metrics .metric-card>strong{font-size:22px}.report-grid{grid-template-columns:1fr 1fr}.report-ranking{display:grid}.report-rank-row{min-height:42px;display:grid;grid-template-columns:24px minmax(90px,1fr) auto auto;gap:9px;align-items:center;border-top:1px solid #edf2f4}.report-rank-row>span{color:#91a3ac;font-size:8px}.report-rank-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#35576a;font-size:8px}.report-rank-row small{color:#81939c;font-size:8px}.report-rank-row b{color:#31596f;font-size:8px;white-space:nowrap}.report-orders-card{padding:0;overflow:hidden;margin-top:15px}.report-orders-card>.crm-card-head{padding:18px 18px 0}.report-orders-card .table-wrap{border:0;border-radius:0}.settings-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.8fr);gap:15px;align-items:start}.settings-form>.btn{margin-top:4px}.settings-notifications{display:grid;gap:8px;padding:13px 0 15px;margin:2px 0 13px;border-top:1px solid #edf2f4}.settings-notifications>strong{margin-bottom:2px;color:#385c70;font-size:9px}.settings-notifications label{display:flex;align-items:center;gap:8px;margin:0;font-weight:400}.settings-notifications input{width:14px;height:14px;margin:0;accent-color:var(--blue)}.settings-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#eaf4f7;color:#1b7998}.roles-card{padding:18px}.role-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid #edf2f4}.role-icon{width:31px;height:31px;display:grid;place-items:center;border-radius:8px;font-size:10px;font-weight:700}.admin-role{background:#e9f4f7;color:#146f92}.customer-role{background:#eaf6ef;color:#418463}.role-row>div{min-width:0;flex:1}.role-row strong,.role-row small{display:block}.role-row strong{color:#35576a;font-size:9px}.role-row small{margin-top:3px;color:#8799a2;font-size:8px;line-height:1.4}.role-row>b{color:#8a9ba3;font-size:8px;font-weight:500;text-align:right}.settings-contact{display:grid;gap:8px;padding:13px 0 0;border-top:1px solid #edf2f4}.settings-contact .eyebrow{margin-bottom:2px}.settings-contact a{color:#246c8b;font-size:9px;text-decoration:none}.subheading{margin-top:35px;margin-bottom:13px}.subheading h2{margin:3px 0;color:#1e4257;font-size:18px}.admin-settings-grid{grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr)}.admin-access-list{padding:18px}.admin-access-row{display:flex;align-items:center;gap:9px;padding:10px 0;border-top:1px solid #edf2f4}.small-avatar{width:28px;height:28px;font-size:9px}.admin-access-row>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}.admin-access-row>span:nth-child(2) strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#315468;font-size:9px}.admin-access-row>span:nth-child(2) small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8b9aa2;font-size:8px}.admin-access-row .status{font-size:7px}.admin-access-row .text-action{white-space:nowrap}.admin-public-footer{max-width:none;margin:0;padding:16px 24px;background:#f3f7fa}
@media(max-width:1100px){.crm-shell{grid-template-columns:225px minmax(0,1fr)}.crm-sidebar{padding-left:12px;padding-right:12px}.crm-content{padding-left:22px;padding-right:22px}.admin-product{grid-template-columns:40px minmax(110px,1fr) 95px 80px auto;gap:9px}.crm-table{min-width:720px}}
@media(max-width:820px){.crm-shell{display:block}.crm-sidebar{position:fixed;left:0;top:0;width:260px;transform:translateX(-101%);transition:transform .23s ease;box-shadow:12px 0 40px #00263d3a}.crm-sidebar.open{transform:translateX(0)}.crm-scrim:not([hidden]){position:fixed;inset:0;z-index:25;display:block;background:#0b2c3a55}.crm-topbar{height:58px;padding:0 16px}.crm-menu-toggle{display:block}.crm-topbar-left{gap:10px}.crm-content{padding:22px 16px 42px}.crm-secure-label{display:none}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid,.lower-grid,.report-grid,.settings-grid,.admin-settings-grid{grid-template-columns:1fr}.crm-sidebar .crm-brand img{width:135px}.crm-sidebar-bottom{margin-top:auto}.admin-public-footer{padding:14px 16px}}
@media(max-width:560px){.login-topbar{height:64px;padding:0 16px}.login-topbar .b2b-brand img{width:142px}.login-main{padding:10px 15px 45px}.admin-login{margin:34px auto 20px;padding:25px 21px}.view-heading{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:17px}.view-heading h1{font-size:25px}.view-heading>.btn,.report-actions{width:100%}.heading-count{align-self:flex-start}.metric-grid,.report-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.metric-card{min-height:103px;padding:13px}.metric-card>strong{font-size:23px}.metric-label{font-size:8px}.dashboard-grid{gap:10px}.crm-card{padding:14px}.bar-chart{height:145px;gap:7px}.recent-row{grid-template-columns:58px minmax(70px,1fr) auto;gap:6px;padding:7px 0}.recent-row .status{grid-column:2/4;justify-self:start}.quick-links{grid-template-columns:1fr;gap:8px}.list-toolbar{align-items:stretch;flex-direction:column;padding:12px}.list-toolbar .btn{align-self:flex-start}.filter-strip{padding:9px 12px}.crm-table{min-width:700px}.order-info-grid{grid-template-columns:1fr}.order-detail-head{flex-direction:column}.order-actions{width:100%}.order-detail-summary{flex-direction:column}.order-total-block{text-align:left}.order-detail-footer{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.full-field{grid-column:auto}.admin-product{grid-template-columns:38px 1fr auto;padding:11px}.admin-product-price{grid-column:2}.stock-pill{grid-column:3;grid-row:2}.admin-product .admin-actions{grid-column:1/-1;flex-direction:row}.category-manager{padding-left:13px;padding-right:13px}.category-manager .inline-form{align-items:stretch;flex-direction:column}.report-actions{align-items:stretch;flex-wrap:wrap}.report-actions select{width:100%}.report-actions .btn{flex:1}.report-rank-row{grid-template-columns:20px minmax(70px,1fr) auto}.report-rank-row b{grid-column:2/4;justify-self:end}.admin-access-row{flex-wrap:wrap}.admin-access-row .status{margin-left:auto}}

/* Portal de clientes: misma identidad Clean Pel, con navegación lateral responsive. */
.preview-banner{margin:0 auto 14px;padding:11px 14px;border:1px solid #efd99e;border-radius:9px;background:#fff8e6;color:#725619;font-size:10px;line-height:1.55}.crm-content>.preview-banner{margin:0 0 13px}
.customer-shell{min-height:100vh;display:grid;grid-template-columns:252px minmax(0,1fr);background:#f3f7fa;color:#18384d}.customer-sidebar{height:100vh;position:sticky;top:0;display:flex;flex-direction:column;padding:22px 15px 14px;background:linear-gradient(180deg,#083f60 0%,#073652 100%);color:#e9f5f9;z-index:30}.customer-brand{display:flex;align-items:center;gap:10px;padding:0 10px 20px;color:#d8eef4;text-decoration:none;font-size:9px;font-weight:700;letter-spacing:1.1px}.customer-brand img{width:132px;max-height:43px;object-fit:contain;object-position:left center;filter:brightness(0) invert(1)}.customer-workspace{height:54px;display:flex;align-items:center;gap:10px;padding:0 9px;margin-bottom:16px;border:1px solid #ffffff1c;border-radius:10px;background:#ffffff0c}.customer-workspace>span:last-child{display:flex;flex-direction:column;gap:3px}.customer-workspace strong{font-size:10px}.customer-workspace small{color:#a8c4d1;font-size:8px}.customer-nav{display:flex;flex-direction:column;gap:5px}.customer-nav .nav-group-label{margin:12px 10px 3px;color:#7ea7b8;font-size:8px;font-weight:700;letter-spacing:1.3px}.customer-nav button{height:40px;display:flex;align-items:center;gap:11px;padding:0 11px;border:0;border-radius:8px;background:transparent;color:#bfd2db;text-align:left;font-size:10px}.customer-nav button:hover{background:#ffffff12;color:white}.customer-nav button.active{background:#c7edf0;color:#064969;font-weight:700}.customer-nav button>span{width:18px;text-align:center;font-size:16px}.customer-sidebar-bottom{margin-top:auto}.customer-sidebar-bottom>a{display:block;padding:12px 9px 15px;color:#a9c4cf;text-decoration:none;font-size:9px}.customer-sidebar-bottom>a:hover{color:white}.customer-sidebar .crm-user{border-top:1px solid #ffffff20}.customer-sidebar .crm-user-copy strong{font-size:9px}.customer-sidebar .crm-user-copy small{font-size:8px}.customer-main{min-width:0}.customer-topbar{height:64px;position:sticky;top:0;z-index:15;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,3vw,42px);border-bottom:1px solid #e5edf1;background:#ffffffed;backdrop-filter:blur(12px)}.customer-topbar-left,.customer-topbar-actions{display:flex;align-items:center;gap:14px}.customer-topbar-actions{gap:18px}.customer-company-label{color:#718794;font-size:10px}.customer-company-label strong{color:#294d62}.customer-content{width:min(1480px,100%);margin:0 auto;padding:30px clamp(18px,3vw,42px) 60px}.customer-view[hidden]{display:none!important}.customer-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 17px}.customer-metrics article{min-height:113px;padding:17px 19px;border:1px solid #e0e9ee;border-radius:13px;background:white;box-shadow:0 4px 16px #12426205}.customer-metrics article>span,.customer-metrics article>small{display:block;color:#748a97;font-size:9px}.customer-metrics article>strong{display:block;margin:9px 0 5px;color:#174966;font-size:28px;line-height:1}.customer-recent{padding:0;overflow:hidden}.customer-recent>.crm-card-head{padding:17px 19px 13px}.customer-recent-row{min-height:49px;display:grid;grid-template-columns:120px minmax(110px,1fr) auto auto;gap:12px;align-items:center;padding:9px 19px;border-top:1px solid #edf2f4;color:#6b8492;font-size:9px}.customer-recent-row strong{color:#0874a1}.customer-recent-row b{color:#31596f;font-size:9px;white-space:nowrap}.customer-recent-row .status{font-size:8px}.customer-scrim[hidden]{display:none}.customer-scrim:not([hidden]){position:fixed;inset:0;z-index:25;background:#0b2c3a55}.customer-shell .crm-menu-toggle{display:none}
@media(max-width:820px){.customer-shell{display:block}.customer-sidebar{position:fixed;left:0;top:0;width:260px;transform:translateX(-101%);transition:transform .23s ease;box-shadow:12px 0 40px #00263d3a}.customer-sidebar.open{transform:translateX(0)}.customer-sidebar .customer-brand img{width:135px}.customer-topbar{height:58px;padding:0 16px}.customer-shell .crm-menu-toggle{display:block}.customer-content{padding:22px 16px 42px}}
@media(max-width:560px){.customer-topbar{padding:0 12px}.customer-topbar-left,.customer-topbar-actions{gap:8px}.customer-company-label{font-size:9px}.customer-company-label strong{max-width:70px;display:inline-block;overflow:hidden;vertical-align:bottom;text-overflow:ellipsis}.customer-topbar .btn{padding:8px 10px;font-size:9px}.customer-content{padding:21px 14px 38px}.customer-metrics{grid-template-columns:1fr;gap:8px}.customer-metrics article{min-height:92px;padding:14px}.customer-metrics article>strong{font-size:24px;margin:6px 0 4px}.customer-recent-row{grid-template-columns:1fr auto;gap:6px 10px;padding:10px 13px}.customer-recent-row .status{justify-self:start}.customer-recent-row b{justify-self:end;grid-column:2;grid-row:1}}

/* Escala de escritorio: más aire y lectura, inspirada en la referencia CAM. */
.crm-content{width:100%;max-width:none;padding:34px clamp(28px,3.3vw,62px) 64px}
.crm-brand{padding-bottom:23px}.crm-brand img,.customer-brand img{filter:none;width:154px;max-height:54px}
.crm-workspace strong{font-size:13px}.crm-workspace small{font-size:10px}.crm-search{height:43px}.crm-search input{font-size:12px}.crm-search kbd{font-size:10px}
.crm-nav{gap:6px;margin-top:21px}.crm-nav button{height:46px;font-size:13px}.crm-nav .nav-group-label{font-size:10px}.nav-icon{width:20px;font-size:20px}
.crm-topbar{height:70px}.crm-breadcrumb{font-size:12px}.crm-secure-label,.crm-site-link{font-size:11px}.crm-refresh,.crm-menu-toggle{width:38px;height:38px;font-size:20px}
.view-heading{margin-bottom:27px}.view-heading h1{font-size:clamp(32px,2.15vw,40px);letter-spacing:-1.2px}.view-heading p{font-size:14px}.view-heading .eyebrow,.eyebrow{font-size:10px}
.metric-grid{gap:15px;margin-bottom:20px}.metric-card{min-height:136px;padding:19px 21px}.metric-label{font-size:11px}.metric-label svg{width:19px;height:19px}.metric-card>strong{font-size:34px}.metric-card>small{font-size:11px}
.crm-card{padding:21px}.crm-card-head{margin-bottom:18px}.crm-card-head h2{font-size:17px}.crm-card-head p{font-size:11px}.dashboard-grid{gap:17px;margin-bottom:18px}.bar-chart{height:195px}.bar-column small,.bar-value{font-size:10px}.popular-row{min-height:56px}.popular-name strong,.popular-qty{font-size:11px}.popular-name small,.popular-qty small{font-size:9px}
.recent-row{padding:11px 0;gap:12px}.recent-code,.recent-total{font-size:11px}.recent-client strong{font-size:11px}.recent-client small{font-size:9px}.recent-row .status,.status{font-size:9px}.activity-item p{font-size:11px}.activity-item small{font-size:9px}.quick-links{gap:13px}.quick-links button{padding:14px;grid-template-columns:40px 1fr auto}.quick-links strong{font-size:11px}.quick-links small{font-size:9px}
.list-toolbar{min-height:70px;padding:14px 20px}.light-search{height:42px}.light-search input{font-size:12px}.filter-strip{padding:12px 20px}.filter-pill{font-size:11px;padding:8px 12px}.crm-table{min-width:900px}.crm-table th{padding:14px 18px;font-size:10px}.crm-table td{padding:16px 18px;font-size:11px}.crm-table td strong{font-size:12px}.crm-table td small{font-size:10px}.crm-table select{font-size:11px;padding:8px 10px}.btn-small{font-size:10px;padding:9px 12px}.table-actions{gap:10px}.table-actions .text-action,.text-action{font-size:11px}
.order-detail-panel{padding:24px}.order-info-grid>div{padding:16px}.order-info-grid span,.order-detail-summary span{font-size:9px}.order-info-grid strong{font-size:12px}.order-info-grid small{font-size:10px}.detail-lines th,.detail-lines td{font-size:11px}.detail-qty{font-size:11px;width:82px}.order-detail-summary p{font-size:11px}.order-total-block strong{font-size:20px}.internal-note-label{font-size:11px}.internal-note-label textarea{font-size:12px}.order-detail-footer>small{font-size:9px}
.crm-content .btn{font-size:12px;padding:11px 15px}.crm-form-card{padding:22px}.crm-form-card label{font-size:11px}.crm-form-card input,.crm-form-card select,.crm-form-card textarea,.report-actions select{font-size:12px;padding:10px 11px}.crm-form-card .crm-card-head h2{font-size:16px}.crm-form-card .crm-card-head p{font-size:10px}.admin-product{min-height:76px;grid-template-columns:48px minmax(150px,1fr) 130px 100px auto;gap:16px;padding:12px 20px}.admin-product-thumb{width:46px;height:46px}.admin-product-copy h3{font-size:11px}.admin-product-copy p{font-size:9px}.admin-product-price{font-size:12px}.stock-pill{font-size:9px}.report-actions select{min-height:40px}.settings-grid{gap:18px}.role-row strong,.admin-access-row>span:nth-child(2) strong{font-size:11px}.role-row small,.admin-access-row>span:nth-child(2) small{font-size:9px}

/* Portal de clientes a todo el ancho disponible del monitor. */
.b2b-portal-main{width:100%;max-width:none;margin:0;padding:0}
.customer-shell{width:100%;min-height:100vh;grid-template-columns:270px minmax(0,1fr)}
.customer-sidebar{width:auto;padding:25px 17px 16px}.customer-brand{padding-bottom:26px}.customer-brand img{width:164px;max-height:58px}
.customer-workspace{height:62px}.customer-workspace strong{font-size:12px}.customer-workspace small{font-size:9px}.customer-nav button{height:46px;font-size:12px}.customer-nav .nav-group-label{font-size:9px}.customer-main{width:100%;min-width:0}.customer-topbar{height:70px}.customer-content{width:100%;max-width:none;padding:38px clamp(28px,3.3vw,62px) 64px}.customer-metrics article{min-height:135px;padding:20px 22px}.customer-metrics article>span,.customer-metrics article>small{font-size:11px}.customer-metrics article>strong{font-size:34px;margin:12px 0 7px}.customer-recent-row{min-height:60px;padding:12px 22px;font-size:11px}.customer-recent-row b{font-size:11px}.customer-active{min-height:100vh;overflow-x:hidden}.customer-active .b2b-header,.customer-active .b2b-footer,.customer-active .portal-intro{display:none!important}
@media(max-width:1100px){.crm-content,.customer-content{padding-left:25px;padding-right:25px}.customer-shell{grid-template-columns:245px minmax(0,1fr)}}
@media(max-width:820px){.crm-content{padding:22px 16px 42px}.crm-topbar{height:58px}.crm-nav button{height:42px;font-size:12px}.crm-content .view-heading h1{font-size:29px}.metric-card{min-height:112px}.metric-card>strong{font-size:28px}.crm-card{padding:17px}.customer-shell{grid-template-columns:1fr}.customer-sidebar{width:260px;padding:22px 15px 14px}.customer-sidebar.open{transform:translateX(0)}.customer-content{padding:22px 16px 42px}.customer-topbar{height:58px}}
@media(max-width:560px){.crm-content{padding:19px 13px 38px}.crm-content .view-heading h1{font-size:26px}.crm-content .metric-card{min-height:100px;padding:13px}.crm-content .metric-card>strong{font-size:25px}.crm-content .crm-card{padding:14px}.crm-content .crm-table{min-width:760px}.customer-content{padding:20px 14px 38px}.customer-metrics article{min-height:92px;padding:14px}.customer-metrics article>strong{font-size:24px;margin:6px 0 4px}.customer-recent-row{grid-template-columns:1fr auto;gap:6px 10px;padding:10px 13px}.customer-recent-row .status{justify-self:start}.customer-recent-row b{justify-self:end;grid-column:2;grid-row:1}}
.crm-sidebar-actions{display:grid;gap:8px;padding:0 0 15px;margin-bottom:13px;border-bottom:1px solid #ffffff20}
.sidebar-assistant,.sidebar-public{min-height:42px;display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid #ffffff22;border-radius:10px;color:#dbeaf0;text-decoration:none;font-size:11px;font-weight:600;transition:background .18s,border-color .18s}
.sidebar-assistant{border-color:#167e7b66;background:#092a2c;color:#71ded1}.sidebar-assistant:hover{background:#103a3b;border-color:#36aaa0}.sidebar-public:hover{background:#ffffff10;border-color:#ffffff40;color:#fff}.sidebar-assistant span,.sidebar-public span{width:17px;text-align:center;font-size:17px}
#crm-sidebar .crm-user,#customer-sidebar .crm-user{display:flex;flex-direction:column;align-items:stretch;gap:0;border:0;padding:0 3px}
#crm-sidebar .crm-user-copy,#customer-sidebar .crm-user-copy{padding:0 2px 8px;gap:3px}
#crm-sidebar .crm-user-copy strong,#customer-sidebar .crm-user-copy strong{max-width:100%;color:#f1f7f9;font-size:12px}
#crm-sidebar .crm-user-copy small,#customer-sidebar .crm-user-copy small{max-width:100%;color:#a9c5d0;font-size:10px}
#crm-sidebar .crm-logout,#customer-sidebar .crm-logout{width:100%;display:flex;align-items:center;gap:9px;margin:0;padding:10px 8px;border:0;border-radius:8px;background:transparent;color:#a9c5d0;text-align:left;font-size:11px;font-weight:500}
#crm-sidebar .crm-logout:hover,#customer-sidebar .crm-logout:hover{background:#ffffff10;color:#fff}
#crm-sidebar .crm-logout span,#customer-sidebar .crm-logout span{width:17px;text-align:center;font-size:17px}

/* Sistema visual compartido para administración y portal del cliente. */
:root{--panel-sidebar:260px;--panel-title:36px;--panel-body:14px;--panel-card-radius:13px;--panel-card-padding:21px;--panel-button-height:44px}
.crm-shell,.customer-shell{grid-template-columns:var(--panel-sidebar) minmax(0,1fr)}
.crm-content .view-heading h1,.customer-content .view-heading h1{font-size:clamp(30px,2vw,var(--panel-title));line-height:1.2;letter-spacing:-1px}
.crm-content .view-heading p,.customer-content .view-heading p{font-size:var(--panel-body);line-height:1.6}
.crm-content .view-heading .eyebrow,.customer-content .view-heading .eyebrow{font-size:10px;letter-spacing:1.4px}
.crm-content .crm-card,.customer-content .crm-card{border-radius:var(--panel-card-radius);padding:var(--panel-card-padding)}
.crm-content .metric-card,.customer-content .customer-metrics article{min-height:136px;padding:19px 21px;border-radius:var(--panel-card-radius)}
.crm-content .metric-label,.customer-content .customer-metrics article>span{font-size:12px}
.crm-content .metric-card>strong,.customer-content .customer-metrics article>strong{font-size:34px;line-height:1.1}
.crm-content .metric-card>small,.customer-content .customer-metrics article>small{font-size:11px;line-height:1.5}
.crm-content .crm-card-head h2,.customer-content .crm-card-head h2{font-size:17px}
.crm-content .crm-card-head p,.customer-content .crm-card-head p{font-size:11px;line-height:1.5}
.crm-content .btn,.customer-content .btn{min-height:var(--panel-button-height);padding:11px 16px;border-radius:8px;font-size:12px;font-weight:600}
.crm-nav button,.customer-nav button{height:46px;font-size:12px}
.crm-nav .nav-group-label,.customer-nav .nav-group-label{font-size:9px}
.crm-workspace strong,.customer-workspace strong{font-size:12px}
.crm-workspace small,.customer-workspace small{font-size:9px}
.crm-brand img,.customer-brand img{width:154px;max-height:54px}
.sidebar-assistant{border-color:#3b9db6;background:#075577;color:#d9f6fb}.sidebar-assistant:hover{border-color:#6fc5d7;background:#0a6689;color:#fff}
.catalog-head{display:flex;justify-content:flex-end;align-items:center}
@media(max-width:1100px){.crm-shell,.customer-shell{grid-template-columns:245px minmax(0,1fr)}}
@media(max-width:820px){.crm-shell,.customer-shell{grid-template-columns:1fr}.crm-content .view-heading h1,.customer-content .view-heading h1{font-size:29px}.crm-content .metric-card,.customer-content .customer-metrics article{min-height:112px;padding:16px}.crm-content .metric-card>strong,.customer-content .customer-metrics article>strong{font-size:29px}.crm-content .crm-card,.customer-content .crm-card{padding:17px}}
@media(max-width:560px){.crm-content .view-heading h1,.customer-content .view-heading h1{font-size:26px}.crm-content .metric-card,.customer-content .customer-metrics article{min-height:98px;padding:13px}.crm-content .metric-card>strong,.customer-content .customer-metrics article>strong{font-size:25px}.crm-content .crm-card,.customer-content .crm-card{padding:14px}}
.crm-mobile-controls,.customer-mobile-controls{display:none}
.customer-active .b2b-main{padding-bottom:0}
@media(max-width:820px){.crm-mobile-controls,.customer-mobile-controls{display:flex;align-items:center;gap:12px;margin:0 0 16px;color:#526d7e;font-size:12px;font-weight:600}.crm-mobile-controls .crm-menu-toggle,.customer-mobile-controls .crm-menu-toggle{display:inline-flex;align-items:center;justify-content:center;width:auto;height:36px;padding:0 12px;border:1px solid #dce7ec;border-radius:8px;background:#fff;color:#31566b;font-size:12px}.crm-sidebar{height:100dvh}.customer-sidebar{height:100dvh}}

/* Pedidos: selector de vista, estados y tablero Kanban. */
.orders-toolbar{display:flex;align-items:center;gap:14px;margin:0 0 18px}
.orders-toolbar .heading-count{margin-left:auto;color:#627b8c;font-size:12px}
.orders-view-switch{display:inline-flex;gap:4px;padding:4px;border:1px solid #dce6eb;border-radius:10px;background:#fff}
.orders-view-switch button{min-height:36px;padding:0 14px;border:0;border-radius:7px;background:transparent;color:#456275;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer}
.orders-view-switch button.active{background:#0877a3;color:#fff}
.orders-list-view{padding:0!important;overflow:visible}
.orders-list-view .table-wrap{overflow:visible}
.orders-table{width:100%;min-width:1120px;table-layout:fixed}
.orders-table th:nth-child(1),.orders-table td:nth-child(1){width:15%}
.orders-table th:nth-child(2),.orders-table td:nth-child(2){width:32%}
.orders-table th:nth-child(3),.orders-table td:nth-child(3){width:11%}
.orders-table th:nth-child(4),.orders-table td:nth-child(4){width:14%}
.orders-table th:nth-child(5),.orders-table td:nth-child(5){width:16%}
.orders-table th:nth-child(6),.orders-table td:nth-child(6){width:12%}
.orders-table th{white-space:nowrap}
.orders-table td{vertical-align:middle}
.orders-table td:first-child small,.orders-table td:nth-child(2) small{display:block;margin-top:5px;color:#718899;font-size:11px}
.orders-table td:nth-child(2){min-width:230px}
.orders-table td:first-child{min-width:155px}
.order-status-picker{position:relative;display:inline-flex;z-index:2}
.status-tag{display:inline-flex;align-items:center;gap:8px;min-height:30px;padding:5px 11px;border:0;border-radius:999px;font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;white-space:nowrap}
.status-tag>i,.status-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#9ba6ad}
.status-tag.pendiente{background:#fff1d6;color:#9a6200}.status-tag.pendiente>i,.status-dot.pendiente{background:#f4bd53}
.status-tag.confirmado{background:#dcf5f6;color:#087b83}.status-tag.confirmado>i,.status-dot.confirmado{background:#13a7ae}
.status-tag.en_preparacion{background:#efe7ff;color:#6841aa}.status-tag.en_preparacion>i,.status-dot.en_preparacion{background:#9065d7}
.status-tag.enviado{background:#e2efff;color:#1768c4}.status-tag.enviado>i,.status-dot.enviado{background:#3985ed}
.status-tag.entregado{background:#dcf7eb;color:#087a51}.status-tag.entregado>i,.status-dot.entregado{background:#16ae78}
.status-tag.cancelado{background:#ffebed;color:#b52f3b}.status-tag.cancelado>i,.status-dot.cancelado{background:#e34c58}
.status-picker-trigger{cursor:pointer}.status-chevron{margin-left:2px;font-size:13px;line-height:1}
.order-status-menu{position:absolute;top:calc(100% + 7px);left:0;z-index:20;min-width:190px;padding:6px;border:1px solid #e2e8ec;border-radius:12px;background:#fff;box-shadow:0 12px 34px #17364b26}
.order-status-menu button{display:flex;width:100%;align-items:center;gap:10px;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:#28485d;text-align:left;font-family:inherit;font-size:12px;font-weight:500;cursor:pointer}
.order-status-menu button:hover,.order-status-menu button.current{background:#f4f7f8}
.order-status-menu button>span{margin-left:auto;color:#168a66}
.orders-kanban{display:grid;grid-auto-columns:minmax(255px,1fr);grid-auto-flow:column;gap:15px;overflow-x:auto;padding:2px 2px 14px;align-items:start;scroll-snap-type:x proximity}
.orders-kanban-column{min-height:230px;padding:12px;border:1px solid #e1e7ea;border-radius:14px;background:#f8fafb;scroll-snap-align:start;transition:border-color .16s,background .16s}
.orders-kanban-column.drag-over{border-color:#168ab8;background:#eaf7fb}
.kanban-column-head{display:flex;align-items:center;justify-content:space-between;padding:2px 2px 12px}
.kanban-count{display:grid;min-width:26px;height:26px;place-items:center;border-radius:99px;background:#fff;color:#587083;font-size:11px;font-weight:700}
.kanban-column-cards{display:grid;gap:10px}
.kanban-order-card{display:grid;gap:8px;padding:14px;border:1px solid #e0e7eb;border-radius:12px;background:#fff;box-shadow:0 2px 5px #18384b08;cursor:grab}
.kanban-order-card:active{cursor:grabbing}.kanban-order-card.dragging{opacity:.45}
.kanban-card-head,.kanban-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}
.kanban-card-head strong{color:#176c9a;font-size:11px}.kanban-card-head small,.kanban-contact{color:#718697;font-size:10px}
.kanban-company{overflow:hidden;color:#203d50;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.kanban-contact{overflow-wrap:anywhere;line-height:1.45}
.kanban-card-foot{margin-top:4px;color:#6b8190;font-size:10px}.kanban-card-foot strong{color:#17384d;font-size:13px}
.kanban-open-order{justify-self:start;padding:4px 0;border:0;background:none;color:#006da6;font-family:inherit;font-size:11px;font-weight:600;cursor:pointer}
.kanban-empty{padding:22px 8px;color:#8495a0;text-align:center;font-size:11px}
.status-tag.en_preparacion{background:#fff2d5;color:#8e6108}.status-tag.en_preparacion>i,.status-dot.en_preparacion{background:#e7ae34}
.status.en_preparacion{background:#fff2d5;color:#8e6108}.status.entregado{background:#dcf7eb;color:#087a51}.status.cancelado{background:#ffebed;color:#b52f3b}
.crm-shell .heading-count,.customer-shell .heading-count,.crm-shell .nav-badge{display:none!important}
#panel-customers .list-toolbar .crm-search{display:none}
#panel-products .list-toolbar{display:none}
/* Texto de lectura y controles más grandes en ambas experiencias; los títulos conservan su escala. */
.crm-content p,.crm-content small,.crm-content label,.crm-content button,.crm-content a,.crm-content input,.crm-content textarea,.crm-content select,.crm-content td,.crm-content th,.crm-content time,
.customer-content p,.customer-content small,.customer-content label,.customer-content button,.customer-content a,.customer-content input,.customer-content textarea,.customer-content select,.customer-content td,.customer-content th,.customer-content time{font-size:14px}
.crm-content strong,.customer-content strong,.crm-content .metric-label,.customer-content .customer-metrics article>span,.crm-content .eyebrow,.customer-content .eyebrow,.crm-nav button,.customer-nav button,.crm-user-copy strong,.crm-user-copy small,.customer-user-copy strong,.customer-user-copy small{font-size:14px}
.crm-content .metric-card>strong,.customer-content .customer-metrics article>strong{font-size:34px}
.crm-content .chart-total,.crm-content .popular-qty,.crm-content .order-total-block strong{font-size:20px}
.crm-content .kanban-count{font-size:13px}
.crm-content .status,.customer-content .status,.crm-workspace strong,.crm-workspace small,.customer-workspace strong,.customer-workspace small,.sidebar-assistant,.sidebar-public,.crm-logout,.customer-logout,.crm-content .order-info-grid span,.crm-content .order-detail-summary span,.crm-content .report-note{font-size:14px}
.customer-content .product-price,.customer-content .order-bottom strong{font-size:17px}
.customer-content .cart-total strong{font-size:20px}
.crm-content .orders-table{width:100%;min-width:1120px;table-layout:fixed}
.crm-content .orders-table th:nth-child(1),.crm-content .orders-table td:nth-child(1){width:15%}
.crm-content .orders-table th:nth-child(2),.crm-content .orders-table td:nth-child(2){width:32%}
.crm-content .orders-table th:nth-child(3),.crm-content .orders-table td:nth-child(3){width:11%}
.crm-content .orders-table th:nth-child(4),.crm-content .orders-table td:nth-child(4){width:14%}
.crm-content .orders-table th:nth-child(5),.crm-content .orders-table td:nth-child(5){width:16%}
.crm-content .orders-table th:nth-child(6),.crm-content .orders-table td:nth-child(6){width:12%}
.crm-content .orders-table td:nth-child(2){min-width:0}
.crm-content .nav-icon,.crm-content .workspace-mark,.crm-content .metric-label i,.customer-content .nav-icon,.customer-content .workspace-mark,.customer-content .metric-label i{font-size:initial}
.customer-content #customer-first-name{font-size:inherit}
.crm-content .orders-view-switch button{font-size:14px}
@media(max-width:820px){.crm-content .metric-card>strong,.customer-content .customer-metrics article>strong{font-size:29px}}
@media(max-width:560px){.crm-content .metric-card>strong,.customer-content .customer-metrics article>strong{font-size:25px}}
@media(max-width:820px){.orders-toolbar{flex-wrap:wrap}.orders-toolbar .heading-count{margin-left:auto}.orders-list-view .table-wrap{overflow-x:auto;overflow-y:hidden}.orders-table{min-width:960px}.orders-kanban{grid-auto-columns:minmax(250px,82vw)}}
@media(max-width:560px){.orders-toolbar{gap:9px}.orders-toolbar .heading-count{font-size:11px}.orders-toolbar>.btn{width:100%}.orders-view-switch{flex:1}.orders-view-switch button{flex:1}.orders-kanban{grid-auto-columns:minmax(235px,88vw)}}
@media(min-width:821px) and (max-width:1100px){.orders-list-view .table-wrap{overflow-x:auto;overflow-y:visible}.orders-table{min-width:960px}}

/* Vista de estadísticas: pocas métricas, con gráficos claros y adaptables. */
.stats-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
.stats-summary .metric-card{min-width:0}
.stats-chart-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:16px;margin-top:16px}
.stats-chart-grid>.crm-card{min-width:0}
.stats-chart-key{display:flex;align-items:center;gap:7px;color:#728896;font-size:12px;white-space:nowrap}
.stats-chart-key i{width:9px;height:9px;border-radius:50%;background:#0783ad}
.stats-bar-chart{height:220px;display:flex;align-items:stretch;gap:clamp(6px,1.3vw,16px);padding:15px 4px 0}
.stats-bar-column{min-width:0;flex:1;display:grid;grid-template-rows:20px 1fr 28px;justify-items:center;gap:6px}
.stats-bar-column>strong{color:#36586c;font-size:12px}
.stats-bar-track{width:min(30px,70%);height:100%;display:flex;align-items:flex-end;overflow:hidden;border-radius:7px 7px 3px 3px;background:#f0f5f7}
.stats-bar-track i{width:100%;min-height:2px;border-radius:7px 7px 3px 3px;background:linear-gradient(180deg,#19a4c4,#0877a3);transition:height .25s ease}
.stats-bar-column small{align-self:start;color:#718797;font-size:11px;text-align:center;white-space:nowrap}
.stats-donut-layout{min-height:210px;display:flex;align-items:center;justify-content:center;gap:clamp(18px,3vw,42px);padding:15px 5px}
.stats-donut{width:156px;height:156px;flex:0 0 156px;display:grid;place-items:center;border-radius:50%;position:relative}
.stats-donut::before{position:absolute;inset:21px;border-radius:50%;background:#fff;content:""}
.stats-donut>span{position:relative;display:grid;justify-items:center;gap:2px;color:#244d64}
.stats-donut>span strong{font-size:29px;line-height:1.1}
.stats-donut>span small{color:#718797;font-size:12px}
.stats-legend{display:grid;gap:15px;min-width:140px}
.stats-legend>div{display:grid;grid-template-columns:10px minmax(95px,1fr) auto;align-items:center;gap:8px;color:#587181;font-size:13px}
.stats-legend>div>i{width:9px;height:9px;border-radius:50%}
.prep-dot{background:#e7ae34}.delivered-dot{background:#16ae78}.cancel-dot{background:#e34c58}
.stats-legend strong{color:#24495f;font-size:14px}
.stats-ranking{display:grid;gap:19px;padding:5px 0}
.stats-rank-row{display:grid;gap:7px}
.stats-rank-row>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.stats-rank-row strong{overflow:hidden;color:#31556a;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.stats-rank-row span{flex:0 0 auto;color:#758b98;font-size:12px}
.stats-rank-track{height:9px;overflow:hidden;border-radius:8px;background:#edf3f5}
.stats-rank-track i{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#49bfd0,#0877a3)}
.client-track i{background:linear-gradient(90deg,#9bd9ca,#218c77)}
.category-inline-manager{margin-top:18px}
.category-inline-manager>.crm-card-head{margin-bottom:10px}
.category-inline-manager .inline-form{margin-bottom:7px}
@media(max-width:900px){.stats-chart-grid{grid-template-columns:1fr}.stats-donut-layout{justify-content:flex-start}}
@media(max-width:560px){.stats-summary{grid-template-columns:1fr}.stats-chart-grid{gap:12px}.stats-chart-grid>.crm-card{padding:15px}.stats-bar-chart{height:190px;gap:5px}.stats-bar-column small{font-size:10px}.stats-donut-layout{gap:16px}.stats-donut{width:132px;height:132px;flex-basis:132px}.stats-donut::before{inset:18px}.stats-legend{min-width:0}.stats-legend>div{grid-template-columns:9px minmax(82px,1fr) auto;gap:6px;font-size:12px}.stats-rank-row>div:first-child{align-items:flex-start;flex-direction:column;gap:3px}}

/* Iconos coherentes y marca centrada en las barras laterales. */
.crm-sidebar .crm-brand,.customer-sidebar .customer-brand{justify-content:center}
.crm-sidebar .crm-brand img,.customer-sidebar .customer-brand img{object-position:center center}
.crm-sidebar .workspace-mark,.customer-sidebar .workspace-mark{place-items:center;text-align:center;line-height:1}
.crm-nav .nav-icon,.customer-nav .nav-icon{width:20px;flex:0 0 20px}
.nav-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sidebar-assistant>span,.sidebar-public>span{display:grid;place-items:center}
.sidebar-assistant svg,.sidebar-public svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.orders-table td.status-cell-open{position:relative;z-index:40;overflow:visible}
.orders-table td.status-cell-open .order-status-picker{z-index:50}
.order-status-menu{z-index:100}
.orders-view-switch button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.orders-view-switch svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.crm-nav button,.customer-nav button{font-size:13px}
.sidebar-assistant,.sidebar-public,.crm-logout,.customer-logout{font-size:13px}
.crm-workspace strong,.customer-workspace strong{font-size:12px}
.crm-workspace small,.customer-workspace small,.crm-user-copy small{font-size:10px}
.crm-content .view-heading>.eyebrow,.customer-content .view-heading>.eyebrow,.crm-content .view-heading>div>.eyebrow,.customer-content .view-heading>div>.eyebrow{display:none}
.status-picker-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.status-chevron{display:inline-flex;width:14px;height:14px;flex:0 0 14px;align-items:center;justify-content:center;margin:0;text-align:center;line-height:1;transform:translateY(-1px)}
.crm-content .crm-card-head p,.customer-content .crm-card-head p{font-size:12px;line-height:1.5}
.crm-content .crm-card-head .text-action,.crm-content .text-action,.customer-content .text-action{font-size:12px}
.crm-content .recent-client strong,.crm-content .recent-client small,.crm-content .recent-row,.crm-content .recent-row .status{font-size:12px}
.crm-content .activity-item p,.crm-content .activity-item small{font-size:12px;line-height:1.5}
.crm-content .crm-table td,.crm-content .crm-table td small{font-size:12px;line-height:1.45}
.crm-content .crm-table td strong{font-size:14px;line-height:1.4}
.crm-content .kanban-card-head strong,.crm-content .kanban-card-head small,.crm-content .kanban-contact,.crm-content .kanban-company{font-size:12px;line-height:1.45}
.customer-kanban-card{cursor:default}
.customer-table{width:100%;min-width:1120px;table-layout:fixed}
.customer-table th:nth-child(1){width:32%}.customer-table th:nth-child(2){width:14%}.customer-table th:nth-child(3){width:10%}.customer-table th:nth-child(4){width:14%}.customer-table th:nth-child(5){width:16%}.customer-table th:nth-child(6){width:14%}
.customer-modal-backdrop{position:fixed;inset:0;z-index:1500;display:grid;place-items:center;overflow-y:auto;padding:22px;background:#082c40a8;backdrop-filter:blur(3px)}
.customer-modal-panel{width:min(940px,100%);max-height:calc(100dvh - 44px);overflow:auto;margin:auto;border:1px solid #dce7ec;border-radius:16px;background:#fff;box-shadow:0 24px 70px #082c4040}
.customer-detail-modal,.customer-edit-modal{padding:22px}
.customer-edit-modal{width:min(760px,100%)}
.customer-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid #e8eef1}
.customer-modal-head h2{margin:3px 0;color:#183d54;font-size:22px;line-height:1.3}
.customer-modal-head p{margin:4px 0 0;color:#718794;font-size:13px}
.customer-detail-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:20px}
.customer-detail-facts>div{min-width:0;padding:12px;border:1px solid #e5edf0;border-radius:9px;background:#f9fbfc}
.customer-detail-facts>div>span{display:block;margin-bottom:6px;color:#7b909c;font-size:11px}
.customer-detail-facts>div>strong{display:block;overflow-wrap:anywhere;color:#294d62;font-size:13px}
.customer-modal-section{padding-top:15px;border-top:1px solid #e8eef1}
.customer-modal-section .crm-card-head{margin-bottom:12px}
.customer-modal-section .crm-card-head h3{margin:0;color:#183d54;font-size:16px}
.customer-modal-section .crm-card-head p{margin:4px 0 0;color:#718794;font-size:12px}
.customer-modal-section .table-wrap{max-height:38dvh;overflow:auto}
.customer-modal-section .crm-table{min-width:650px}
.customer-modal-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;padding-top:17px;margin-top:16px;border-top:1px solid #e8eef1}
@media(max-width:820px){.orders-kanban.customer-kanban{grid-auto-columns:minmax(250px,82vw)}.customer-modal-backdrop{padding:14px}.customer-detail-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.orders-kanban.customer-kanban{grid-auto-columns:minmax(235px,88vw)}.customer-modal-backdrop{padding:8px}.customer-modal-panel{max-height:calc(100dvh - 16px);border-radius:12px}.customer-detail-modal,.customer-edit-modal{padding:16px}.customer-modal-head h2{font-size:19px}.customer-detail-facts{gap:7px}.customer-detail-facts>div{padding:10px}.customer-modal-actions{justify-content:stretch}.customer-modal-actions .btn{flex:1}}

/* Las secciones de ambos CRM fluyen con su contenido y no se alargan vacías. */
@media(min-width:821px){
  html:has(body.admin-page #admin-dashboard:not([hidden])),body.admin-page:has(#admin-dashboard:not([hidden])){height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}
  .crm-shell:not([hidden]){height:auto;min-height:100dvh;overflow:visible;align-items:start}
  .crm-sidebar{position:sticky;top:0;align-self:start;height:100dvh}
  .crm-main{height:auto;min-height:0;overflow:visible;align-self:start}
  .crm-content{height:auto;min-height:0;overflow:visible;padding-bottom:28px}
  .crm-content:has(#panel-dashboard:not([hidden])){height:auto;min-height:0;display:block;overflow:visible;padding-top:34px;padding-bottom:28px}
  .crm-content:has(#panel-dashboard:not([hidden])) #panel-dashboard{display:grid;grid-template-rows:auto auto auto auto;gap:12px}
  #panel-dashboard .view-heading{margin:0}
  #panel-dashboard .metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(88px,auto));gap:10px;margin:0}
  #panel-dashboard .metric-card{min-height:0;padding:13px 18px}
  #panel-dashboard .metric-card>strong{margin:5px 0 2px}
  #panel-dashboard .dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:14px;min-height:0;margin:0}
  #panel-dashboard .dashboard-grid>.crm-card{height:auto;min-height:0;padding:16px 18px;overflow:visible}
  #panel-dashboard .crm-card-head{margin-bottom:10px}
  #panel-dashboard .recent-row{min-height:0;padding:8px 0;gap:10px}
  #panel-dashboard .activity-item{padding:8px 0}
  #panel-dashboard .quick-links{gap:12px;margin:0}
  #panel-dashboard .quick-links button{min-height:64px;padding:10px 13px}
  .customer-content{height:auto;min-height:0;padding-bottom:28px}
}
@media(min-width:821px) and (max-height:780px){
  .crm-content:has(#panel-dashboard:not([hidden])){padding-top:34px;padding-bottom:20px}
  .crm-content:has(#panel-dashboard:not([hidden])) #panel-dashboard{gap:9px}
  #panel-dashboard .metric-grid{grid-template-rows:repeat(2,minmax(78px,auto));gap:8px}
  #panel-dashboard .metric-card{padding:10px 15px}
  #panel-dashboard .metric-card>strong{font-size:29px}
  #panel-dashboard .dashboard-grid{gap:10px}
  #panel-dashboard .dashboard-grid>.crm-card{padding:12px 15px}
  #panel-dashboard .crm-card-head{margin-bottom:7px}
  #panel-dashboard .recent-row,#panel-dashboard .activity-item{padding:6px 0}
  #panel-dashboard .quick-links{gap:9px}
  #panel-dashboard .quick-links button{min-height:56px;padding:8px 10px}
}
/* Menús laterales anclados a la ventana: no se cortan al bajar por vistas largas. */
@media(min-width:821px){
  .crm-shell:not([hidden]),.customer-shell:not([hidden]){display:block;position:relative;min-height:100dvh;height:auto;overflow:visible}
  .crm-sidebar,.customer-sidebar{position:fixed;inset:0 auto 0 0;height:100dvh;max-height:100dvh;overflow-y:auto;overscroll-behavior:contain;align-self:auto}
  .crm-sidebar{width:252px}
  .customer-sidebar{width:270px}
  .crm-main{margin-left:252px}
  .customer-main{margin-left:270px}
}
@media(min-width:821px) and (max-width:1100px){
  .crm-sidebar,.customer-sidebar{width:245px}
  .crm-main{margin-left:245px}
  .customer-main{margin-left:245px}
}
/* Alineación común de las barras laterales y del área de trabajo en escritorio. */
@media(min-width:821px){
  .crm-sidebar,.customer-sidebar{padding:22px 15px 14px}
  .customer-sidebar{width:252px}
  .crm-brand,.customer-brand{padding:0 11px 23px}
  .crm-brand img,.customer-brand img{width:154px;max-height:54px;object-position:center center;filter:none}
  .customer-workspace{height:54px;padding:0 9px;margin:0 0 15px}
  .customer-nav{gap:6px;margin-top:21px}
  .customer-main{width:auto;margin-left:252px}
  .crm-content,.customer-content{padding-top:34px;padding-bottom:28px}
}
@media(min-width:821px) and (max-width:1100px){
  .customer-sidebar{width:245px}
  .customer-main{margin-left:245px}
}
