:root{--bg:#eef3f8;--panel:#fff;--text:#172033;--muted:#6b7889;--border:#d6e0ea;--nav:#0e2743;--blue:#164f86;--danger:#b42318;--warn:#9a6500;--ok:#0c7a53;--shadow:0 10px 35px rgba(27,48,78,.09)}*{box-sizing:border-box}body{margin:0;font-family:"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px}button,input,select,textarea{font:inherit}.hidden{display:none!important}.app{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:100vh}.sidebar{background:linear-gradient(180deg,var(--nav),#091c31);color:#fff;padding:18px 13px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;padding:8px 8px 18px;border-bottom:1px solid rgba(255,255,255,.11);margin-bottom:14px}.brandmark,.mark{width:44px;height:44px;border-radius:10px;background:#2a71ad;display:flex;align-items:center;justify-content:center;font-weight:900;color:#fff}.brand b{display:block}.brand small{color:#9fb3ca}.sidebar nav{display:flex;flex-direction:column;gap:4px}.sidebar nav button{border:0;background:transparent;color:#d3dfed;padding:10px 12px;text-align:left;border-radius:8px;font-weight:650;cursor:pointer}.sidebar nav button:hover,.sidebar nav button.active{background:#1a446f;color:#fff}.side-foot{margin-top:auto;border-top:1px solid rgba(255,255,255,.11);padding:12px 8px 0}.side-foot span,.side-foot small{display:block}.side-foot small{color:#8fa7bf;margin:3px 0 9px}.side-foot button{background:transparent;border:0;color:#ccd9e7;padding:0;cursor:pointer}.shell{min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;gap:15px;background:#fff;border-bottom:1px solid var(--border);padding:16px 24px;position:sticky;top:0;z-index:10}.topbar h1{margin:0;font-size:23px}.topbar p{margin:4px 0 0;color:var(--muted);font-size:12px}.content{padding:22px;max-width:1700px;margin:auto}.page{display:none}.page.active{display:block}.top-actions,.page-actions,.section-row,.card-head,.modal-head,.modal-foot,.doc-toolbar{display:flex;gap:9px;align-items:center;justify-content:space-between;flex-wrap:wrap}.btn{border:1px solid #c8d3de;background:#fff;color:#27364a;border-radius:8px;padding:8px 12px;cursor:pointer;font-weight:700;min-height:36px}.btn:hover{background:#f6f9fc}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn.light{background:#fff;color:#174f86;border:0}.btn.small{min-height:30px;padding:5px 8px;font-size:12px}.full{width:100%}.linkbtn{border:0;background:transparent;color:#17609d;cursor:pointer}.card{background:#fff;border:1px solid var(--border);border-radius:13px;padding:17px;box-shadow:var(--shadow)}.hero{background:linear-gradient(135deg,#123d69,#1a5e93 60%,#137861);color:#fff;border-radius:15px;padding:21px;display:flex;justify-content:space-between;align-items:center;gap:20px}.hero h2{font-size:22px;margin:5px 0}.hero p{margin:0;color:#d9e9f4}.eyebrow{font-size:10px;letter-spacing:1px;color:#bce7da;font-weight:800}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:14px 0}.stat{background:#fff;border:1px solid var(--border);border-radius:12px;padding:15px;box-shadow:var(--shadow)}.stat small{color:#748296;text-transform:uppercase;font-weight:700;font-size:10px}.stat b{display:block;font-size:25px;margin-top:6px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.workflow{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0}.workflow span{padding:7px 10px;background:#edf4fb;color:#245681;border-radius:8px;font-weight:700}.workflow i{color:#8192a4}.muted{color:var(--muted);font-size:12px}.page-actions{margin-bottom:12px}.page-actions input{min-width:300px}.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:9px}table{width:100%;border-collapse:collapse;min-width:780px}th,td{padding:10px 11px;text-align:left;border-bottom:1px solid #e4eaf0;font-size:12px;vertical-align:top}th{background:#f4f7fa;color:#536176;text-transform:uppercase;font-size:10px;letter-spacing:.4px}tbody tr:hover{background:#f8fafc}.badge{display:inline-block;padding:3px 7px;border-radius:999px;background:#eaf2fa;color:#275a8b;font-size:10px;font-weight:750}.badge.ok{background:#e6f6ef;color:var(--ok)}.badge.warn{background:#fff4dc;color:var(--warn)}.badge.danger{background:#fff0ee;color:var(--danger)}input,select,textarea{width:100%;border:1px solid #cbd6e0;border-radius:8px;padding:9px 10px;background:#fff;color:var(--text)}textarea{min-height:82px;resize:vertical}label{display:block;font-size:11px;color:#536176;font-weight:700;margin:6px 0 5px}.inline{width:auto}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.span2{grid-column:span 2}.span3{grid-column:1/-1}.form-card .section-title{font-weight:800;font-size:15px;color:#173e65;margin:5px 0 9px}.form-card .section-title:not(:first-child){margin-top:22px;padding-top:16px;border-top:1px solid #e2e8ee}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0c2743,#174f86)}.login-card{width:min(390px,calc(100% - 30px));background:#fff;border-radius:16px;padding:28px;box-shadow:0 30px 90px rgba(0,0,0,.25)}.login-card .mark{margin:auto}.login-card h1{text-align:center;font-size:22px;margin:12px 0 2px}.login-card p{text-align:center;color:var(--muted);margin:0 0 18px}.login-card input{margin-bottom:7px}.error{color:var(--danger);margin-top:10px;font-size:12px}.modal-backdrop{position:fixed;inset:0;background:rgba(9,22,35,.58);display:none;align-items:flex-start;justify-content:center;padding:26px;overflow:auto;z-index:50;backdrop-filter:blur(3px)}.modal-backdrop.show{display:flex}.modal{width:min(760px,100%);background:#fff;border-radius:15px;border:1px solid #d4dee8;box-shadow:0 28px 90px rgba(0,0,0,.27);padding:19px}.modal.wide{width:min(1060px,100%)}.modal.xl{width:min(1280px,100%)}.modal-head{border-bottom:1px solid #e0e7ed;padding-bottom:12px}.modal-head h2{margin:0;font-size:19px}.x{border:0;background:transparent;font-size:24px;color:#667789;cursor:pointer}.modal-foot{justify-content:flex-end;border-top:1px solid #e0e7ed;padding-top:13px;margin-top:15px}.tabs{display:flex;gap:4px;border-bottom:1px solid #dfe6ed;margin:12px 0}.tabs button{border:0;background:transparent;padding:9px 12px;color:#657689;cursor:pointer;font-weight:700;border-bottom:2px solid transparent}.tabs button.active{color:#174f86;border-bottom-color:#174f86}.tabpane{display:none}.tabpane.active{display:block}.contact-row,.packing-row,.order-item{border:1px solid #dce4eb;background:#fbfcfd;border-radius:9px;padding:10px;margin-bottom:8px}.contact-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr 1fr auto;gap:7px;align-items:end}.packing-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) auto;gap:7px;align-items:end}.duplicate-box{border:1px solid #f0c36d;background:#fff7e7;color:#6c4b0b;padding:11px;border-radius:9px;margin-top:12px}.order-builder{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:13px;margin-top:13px}.order-item-main{display:grid;grid-template-columns:2fr 1fr .6fr .8fr auto;gap:7px;align-items:end}.order-item-extra{display:grid;grid-template-columns:1fr 1fr 1fr .65fr .65fr .65fr;gap:7px;margin-top:7px;padding-top:7px;border-top:1px dashed #d4dee7}.summary{border:1px solid #d6e0e9;background:#f7f9fb;border-radius:10px;padding:13px;align-self:start;position:sticky;top:85px}.sumline{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid #e1e7ed;font-size:12px}.sumline.grand{font-size:15px;font-weight:850;color:#174f86;border-top:2px solid #174f86;border-bottom:0;margin-top:4px}.revision-list{margin-top:13px}.revision{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px;border:1px solid #d9e2ea;border-radius:8px;margin-bottom:7px}.request{border:1px solid #dbe4ec;border-radius:9px;padding:10px;margin-bottom:8px}.request b{display:block}.request small{color:var(--muted)}.toast{position:fixed;right:20px;bottom:20px;background:#173e65;color:#fff;padding:11px 14px;border-radius:9px;box-shadow:0 12px 35px rgba(0,0,0,.22);z-index:100}.toast.error{background:#9c2b23}
@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.grid2{grid-template-columns:1fr}.order-builder{grid-template-columns:1fr}.summary{position:static}.contact-grid{grid-template-columns:1fr 1fr}.packing-grid{grid-template-columns:1fr 1fr 1fr}.order-item-main,.order-item-extra{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.app{grid-template-columns:1fr}.sidebar{position:relative;height:auto}.sidebar nav{flex-direction:row;overflow:auto}.sidebar nav button{white-space:nowrap}.side-foot{display:none}.topbar{position:relative}.content{padding:12px}.stats,.form-grid{grid-template-columns:1fr}.span2,.span3{grid-column:auto}.page-actions{align-items:stretch}.page-actions input{min-width:0}.modal-backdrop{padding:8px}.contact-grid,.packing-grid,.order-item-main,.order-item-extra{grid-template-columns:1fr}.hero{flex-direction:column;align-items:flex-start}}

.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pb-section{display:grid;grid-template-columns:auto 1fr auto auto auto;gap:8px;align-items:center;border:1px solid #dce4eb;border-radius:8px;padding:8px;margin-bottom:6px;background:#fbfcfd}.pb-section .order-no{width:28px;height:28px;border-radius:7px;background:#e9f2f8;color:#174f86;display:flex;align-items:center;justify-content:center;font-weight:800}.pb-section .pb-title b{display:block}.pb-section .pb-title small{color:var(--muted)}.pb-section.priority{border-color:#e4bd64;background:#fffaf0}.pb-section.hidden-sec{opacity:.52}.pb-section .mini-check{display:flex;gap:4px;align-items:center;font-size:11px;color:#5c6c7d}.pb-section .mini-check input{width:auto}.pb-move{display:flex;gap:3px}.pb-move button{border:1px solid #cad5df;background:#fff;border-radius:6px;min-width:28px;height:28px;cursor:pointer}.revision a{text-decoration:none}@media(max-width:800px){.pb-section{grid-template-columns:auto 1fr}.pb-section>*:nth-child(n+3){grid-column:auto}.actions select{min-width:0}}

/* V4.1 CRM follow-up center */
.reminder-btn{display:flex;align-items:center;gap:7px}.reminder-count{display:inline-flex;min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:#fff0dc;color:#9a5c00;align-items:center;justify-content:center;font-size:10px;font-weight:800}.followup-filters{display:flex;gap:6px;flex-wrap:wrap}.active-filter{border-color:#174f86!important;background:#eaf3fb!important;color:#174f86!important}.follow-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:13px;padding:12px;border:1px solid #dbe4ec;border-radius:10px;margin-bottom:8px;background:#fff}.follow-card.overdue{border-left:4px solid #c43b30;background:#fffafa}.follow-card.today{border-left:4px solid #db8d16;background:#fffcf6}.follow-title{font-weight:800;color:#20354e;margin-bottom:3px}.follow-meta{font-size:10px;color:#708196;margin-bottom:6px}.follow-points{font-size:12px;line-height:1.5;white-space:pre-wrap;color:#46596d}.follow-last{margin-top:7px;padding:7px 9px;border-radius:7px;background:#f4f7fa;color:#5d6e80;font-size:10px}.follow-actions{display:flex;gap:5px;align-items:flex-start;flex-wrap:wrap;justify-content:flex-end}.quick-follow{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:9px 0 11px;border-bottom:1px solid #e1e7ed;margin-bottom:10px}.quick-follow span{font-size:11px;color:#65768a;font-weight:700}.timeline{position:relative;padding-left:19px}.timeline:before{content:"";position:absolute;left:6px;top:4px;bottom:4px;width:2px;background:#dce5ed}.timeline-item{position:relative;padding:0 0 14px 10px}.timeline-item:before{content:"";position:absolute;left:-17px;top:5px;width:9px;height:9px;border-radius:50%;background:#2a71ad;border:2px solid #fff;box-shadow:0 0 0 1px #cbd8e4}.timeline-item.sent:before{background:#0c9d7a}.timeline-title{font-weight:750;font-size:12px}.timeline-meta{font-size:10px;color:#718397;margin:2px 0 4px}.timeline-content{font-size:11px;color:#4b5d70;line-height:1.5;white-space:pre-wrap}.activity-follow-box{margin-top:13px;border:1px solid #d7e2eb;border-radius:9px;background:#f7fafc;padding:11px}.crm-empty{padding:22px;text-align:center;color:#738397;font-size:12px}.priority-urgent{color:#b42318}.priority-high{color:#a65c00}.priority-normal{color:#245681}.priority-low{color:#617184}.customer-crm-actions{display:flex;gap:6px;flex-wrap:wrap}.revision-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.customer-follow-chip{display:inline-flex;align-items:center;padding:3px 6px;border-radius:999px;background:#eaf3fb;color:#245681;font-size:10px;font-weight:700}.customer-follow-chip.overdue{background:#fff0ee;color:#a52a22}.customer-last-touch{font-size:10px;color:#6f8194}.material-badge{display:inline-block;padding:2px 6px;background:#e8f7f1;color:#087254;border-radius:999px;font-size:9px;font-weight:750;margin-right:4px}
@media(max-width:760px){.follow-card{grid-template-columns:1fr}.follow-actions{justify-content:flex-start}}


/* V4.2 interface themes */
html[data-theme="dark"] body{background:#0b121b;color:#e7edf4}
html[data-theme="dark"] .shell,html[data-theme="dark"] .content{background:#0b121b}
html[data-theme="dark"] .topbar,html[data-theme="dark"] .card,html[data-theme="dark"] .stat,html[data-theme="dark"] .modal,html[data-theme="dark"] .login-card{background:#111c28;color:#e7edf4;border-color:#26384a}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#0c1621;color:#e7edf4;border-color:#33495e}
html[data-theme="dark"] th{background:#172737;color:#aebdca}html[data-theme="dark"] td{border-color:#233547}html[data-theme="dark"] tbody tr:hover{background:#142231}
html[data-theme="dark"] .muted,html[data-theme="dark"] label{color:#98a9b9}html[data-theme="dark"] .page-actions .btn,html[data-theme="dark"] .btn{background:#172433;color:#e6edf4;border-color:#354b60}
html[data-theme="dark"] .btn.primary{background:#17629b;border-color:#17629b;color:#fff}html[data-theme="dark"] .contact-row,html[data-theme="dark"] .packing-row,html[data-theme="dark"] .order-item,html[data-theme="dark"] .summary,html[data-theme="dark"] .request,html[data-theme="dark"] .revision{background:#0e1924;border-color:#293e51}
html[data-theme="dark"] .tabs{border-color:#2a3d50}html[data-theme="dark"] .form-card .section-title{border-color:#2a3d50}
html[data-theme="ocean"] .sidebar{background:linear-gradient(180deg,#083e54,#062b3d)}html[data-theme="ocean"] .sidebar nav button:hover,html[data-theme="ocean"] .sidebar nav button.active{background:#0f6780}
html[data-theme="ocean"] .btn.primary{background:#087e9a;border-color:#087e9a}html[data-theme="ocean"] .hero{background:linear-gradient(135deg,#07566f,#087d91 55%,#0e8670)}
html[data-theme="ocean"] .brandmark,html[data-theme="ocean"] .mark{background:#0b89a2}
html[data-theme="slate"] .sidebar{background:linear-gradient(180deg,#293544,#1c2632)}html[data-theme="slate"] .sidebar nav button:hover,html[data-theme="slate"] .sidebar nav button.active{background:#485b70}
html[data-theme="slate"] .btn.primary{background:#526b86;border-color:#526b86}html[data-theme="slate"] .hero{background:linear-gradient(135deg,#34485d,#526b86 62%,#4d736a)}
.notice{padding:9px 11px;border:1px solid #d5e0e9;border-radius:8px;background:#f7fafd;color:#526276;font-size:12px}
html[data-theme="dark"] .notice{background:#0e1924;border-color:#2b4054;color:#a9b8c7}


.inline-security-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid var(--border,#d6e0e8);border-radius:10px;background:var(--panel-soft,#f8fafc)}
.inline-security-card b{display:block;margin-bottom:3px}
.security-note{padding:10px 12px;border-radius:8px;border-left:4px solid #2d78b2;background:#f3f8fc;color:#50667b;font-size:12px;line-height:1.5}
html[data-theme="dark"] .inline-security-card{background:#111c28;border-color:#2b4052}
html[data-theme="dark"] .security-note{background:#0e1a26;color:#b8c7d3}
@media(max-width:680px){.inline-security-card{align-items:flex-start;flex-direction:column}.inline-security-card .btn{width:100%}}

/* V6.0.7 Full Price Book personalization */
.pb-country-guide{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;border:1px solid #d6e1e9;border-left:4px solid #2d6f9f;border-radius:9px;background:#f6fafc;padding:10px 11px;color:#4d6275;font-size:10px;line-height:1.45}
.pb-country-guide b{display:block;color:#1d4b70;font-size:11px;margin-bottom:2px}
.pb-country-guide small{display:block;color:#7a8896;margin-top:4px}
.pb-guide-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;min-width:210px}
.pb-color-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;border:1px solid #d9e2ea;border-radius:9px;padding:9px;background:#fafcfd}
.pb-color-grid label{display:grid;grid-template-columns:1fr 52px;align-items:center;gap:8px;color:#5c6e81;font-size:9.5px;font-weight:800}
.pb-color-grid input[type=color]{width:52px;height:32px;padding:2px;border:1px solid #cad6e0;border-radius:7px;background:#fff}
.pb-recommend-legend{display:flex;gap:12px;flex-wrap:wrap;background:#f7f9fb;border:1px solid #dce4eb;border-radius:8px;padding:7px 9px;margin-bottom:8px;color:#627487;font-size:9px}
.pb-section-main{min-width:240px}
.pb-section-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.pb-rec-label{display:flex;align-items:center;gap:5px;color:#5d7084;font-size:9px;font-weight:800}
.pb-rec-label select{border:1px solid #cbd7e1;border-radius:7px;background:#fff;padding:5px 7px;font-size:9.5px;min-width:145px}
html[data-theme="dark"] .pb-country-guide{background:#0e1924;border-color:#33495e;color:#bac7d2}
html[data-theme="dark"] .pb-country-guide b{color:#92c5e9}
html[data-theme="dark"] .pb-color-grid,html[data-theme="dark"] .pb-recommend-legend{background:#0e1924;border-color:#33495e}
html[data-theme="dark"] .pb-rec-label select{background:#0d1722;color:#e5edf4;border-color:#33495e}
@media(max-width:720px){.pb-country-guide{flex-direction:column}.pb-guide-actions{min-width:0;justify-content:flex-start}.pb-color-grid{grid-template-columns:1fr}.pb-section-controls{justify-content:flex-start}}

.pb-theme-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dce4eb;border-radius:8px;padding:7px 9px;background:#fbfcfd}
.pb-theme-preview b{display:block;color:#35556f;font-size:10px}.pb-theme-preview small{display:block;color:#7c8997;font-size:8.5px;margin-top:1px}
.pb-swatches{display:flex;gap:4px}.pb-swatches span{display:block;width:42px;height:22px;border:1px solid rgba(0,0,0,.12);border-radius:5px}
html[data-theme="dark"] .pb-theme-preview{background:#0e1924;border-color:#33495e}html[data-theme="dark"] .pb-theme-preview b{color:#c7d8e5}

/* V6.0.8.1 Order ↔ Packaging Master linkage */
.order-pack-link{display:grid;grid-template-columns:minmax(220px,1fr) auto minmax(260px,1.4fr);gap:7px;align-items:end;margin:7px 0;padding:7px 8px;border:1px solid #dce5ec;border-radius:8px;background:#f8fbfd}.order-pack-link label{display:block;font-size:8px;font-weight:800;color:#687b8e;margin-bottom:3px}.order-pack-link select{width:100%;border:1px solid #cbd7e1;border-radius:7px;padding:6px 7px;background:#fff}.order-pack-status{font-size:8.7px;color:#687b8e;padding:6px 7px;border-radius:7px;background:#fff;border:1px solid #e1e8ed;min-height:29px}.order-pack-status.exact{color:#176847;background:#edf8f2}.order-pack-status.estimate{color:#815d16;background:#fff8e8}.order-pack-status.warn,.order-pack-status.error{color:#9a3d32;background:#fff0ed}.order-pack-status.working{color:#315e82;background:#eef6fb}@media(max-width:850px){.order-pack-link{grid-template-columns:1fr}}
/* V6.0.8.2 Price Book header editor / direct PDF */
.pb-header-editor{border:1px solid #d8e2ea;border-radius:10px;background:#f9fbfc;overflow:hidden}.pb-header-editor details>summary{cursor:pointer;padding:9px 11px;font-weight:850;color:#214f73;font-size:10.5px;background:#f1f6f9}.pb-header-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:10px}.pb-header-grid .span2{grid-column:span 2}.pb-header-grid .span4{grid-column:1/-1}.pb-header-grid label{display:block;font-size:9px;font-weight:800;color:#617388;margin-bottom:4px}.pb-header-grid input,.pb-header-grid textarea{width:100%;border:1px solid #cbd7e1;border-radius:8px;padding:8px 9px;background:#fff;color:#182a3d}.pb-token-help{padding:7px 9px;border-radius:7px;background:#eef5f9;color:#587086;font-size:8.7px;line-height:1.45}.revision-actions .pdf-download{font-weight:850}.revision-actions .pdf-download:before{content:'↓ ';font-weight:900}html[data-theme="dark"] .pb-header-editor{background:#0e1924;border-color:#33495e}html[data-theme="dark"] .pb-header-editor details>summary{background:#172738;color:#c9e1f0}html[data-theme="dark"] .pb-header-grid input,html[data-theme="dark"] .pb-header-grid textarea{background:#0d1722;color:#e5edf4;border-color:#33495e}html[data-theme="dark"] .pb-token-help{background:#172738;color:#b6c8d5}@media(max-width:760px){.pb-header-grid{grid-template-columns:1fr}.pb-header-grid .span2,.pb-header-grid .span4{grid-column:auto}}

/* V6.0.8.3 dynamic Full Price Book numbering */
.pb-live-code{display:inline-block;min-width:31px;color:#1b5684;font-weight:900}
.pb-hidden-section{opacity:.58;background:#f7f8f9}
.pb-hidden-section .pb-live-code{color:#8a97a4}
html[data-theme="dark"] .pb-live-code{color:#8cc4e9}
html[data-theme="dark"] .pb-hidden-section{background:#101923}
/* V6.0.8.4 — scalable customer directory & searchable customer pickers */
.customer-directory-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:12px}.customer-owner-folders{display:flex;flex-direction:column;gap:6px;align-self:start;position:sticky;top:76px}.customer-folder{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:1px solid #d7e1ea;background:#fff;border-radius:9px;padding:9px 10px;color:#39536b;text-align:left;cursor:pointer;font-size:10px;font-weight:750}.customer-folder:hover{border-color:#9fb8cc;background:#f7fafc}.customer-folder.active{background:#e9f2f9;border-color:#8cb3d0;color:#174f86}.customer-folder b{min-width:28px;text-align:center;background:#edf3f7;border-radius:999px;padding:2px 6px;font-size:9px}.customer-folder.active b{background:#fff}.customer-directory-head,.customer-directory-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}.customer-directory-head{padding-bottom:9px;border-bottom:1px solid #e1e8ee;margin-bottom:4px}.customer-directory-head h3{margin:0;color:#1c466d}.customer-directory-foot{padding-top:10px;color:#718195;font-size:9px}.customer-page-actions{display:flex;align-items:center;gap:6px}.customer-page-actions span{min-width:52px;text-align:center;color:#617286;font-size:9px;font-weight:800}.customer-page-actions button:disabled{opacity:.4;cursor:not-allowed}
.pb-selector-actions{align-items:stretch;min-width:min(860px,100%)}.pb-customer-picker,.customer-search-field{position:relative;min-width:360px}.pb-customer-picker>input,.customer-search-field>input{width:100%;border:1px solid #cbd7e1;border-radius:8px;padding:8px 10px;background:#fff;color:#183042}.pb-customer-results{position:absolute;z-index:60;top:calc(100% + 4px);left:0;right:0;max-height:360px;overflow:auto;background:#fff;border:1px solid #cbd8e2;border-radius:10px;box-shadow:0 16px 42px rgba(27,49,70,.18);padding:5px}.customer-lookup-result{display:grid;grid-template-columns:1fr auto;gap:2px 10px;width:100%;border:0;border-bottom:1px solid #edf1f4;background:#fff;padding:8px 9px;text-align:left;cursor:pointer;color:#273d50}.customer-lookup-result:hover{background:#f2f7fb}.customer-lookup-result b{font-size:10.5px;color:#194f7d}.customer-lookup-result span{font-size:8.8px;color:#6f8191;text-align:right}.customer-lookup-result small{grid-column:1/-1;color:#83909b;font-size:8.5px}.customer-lookup-empty{padding:14px;text-align:center;color:#7c8b98;font-size:9.5px}
.pb-buyer-editor{border:1px solid #d7e2ea;border-radius:10px;padding:10px;background:#f9fbfc}.pb-buyer-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.pb-buyer-head b{display:block;color:#214d73;font-size:10.5px}.pb-buyer-head small{display:block;color:#768696;font-size:8.7px;margin-top:2px}.pb-buyer-head select{min-width:210px;border:1px solid #cbd7e1;border-radius:8px;padding:7px;background:#fff}.pb-buyer-summary{margin-top:8px;padding:8px 9px;border-radius:8px;background:#eef5f9;color:#536b7d;font-size:9px}.pb-buyer-summary b{display:block;color:#1e4f76;margin-bottom:2px}.pb-buyer-summary span{display:block;line-height:1.4}.pb-buyer-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-top:8px}.pb-buyer-grid .span2{grid-column:span 2}.pb-buyer-grid label{display:block;font-size:8.8px;font-weight:800;color:#64768a;margin-bottom:3px}.pb-buyer-grid input{width:100%;border:1px solid #cbd7e1;border-radius:7px;padding:7px 8px;background:#fff}
html[data-theme="dark"] .customer-folder,html[data-theme="dark"] .pb-customer-results,html[data-theme="dark"] .customer-lookup-result,html[data-theme="dark"] .pb-customer-picker>input,html[data-theme="dark"] .customer-search-field>input,html[data-theme="dark"] .pb-buyer-head select,html[data-theme="dark"] .pb-buyer-grid input{background:#0e1823;color:#dbe6ee;border-color:#31485c}html[data-theme="dark"] .customer-folder.active,html[data-theme="dark"] .customer-lookup-result:hover,html[data-theme="dark"] .pb-buyer-summary{background:#172b3c}html[data-theme="dark"] .pb-buyer-editor{background:#0e1924;border-color:#31485c}
@media(max-width:980px){.customer-directory-layout{grid-template-columns:1fr}.customer-owner-folders{position:static;display:grid;grid-template-columns:repeat(2,1fr)}.pb-selector-actions{min-width:0}.pb-customer-picker,.customer-search-field{min-width:0}.pb-buyer-head{align-items:flex-start;flex-direction:column}.pb-buyer-head select{width:100%}}@media(max-width:620px){.customer-owner-folders{grid-template-columns:1fr}.customer-directory-head,.customer-directory-foot{align-items:flex-start;flex-direction:column}.pb-buyer-grid{grid-template-columns:1fr}.pb-buyer-grid .span2{grid-column:auto}}
.order-buyer-editor{margin:10px 0 12px;border:1px solid #d7e2ea;border-radius:10px;padding:10px;background:#f9fbfc}html[data-theme="dark"] .order-buyer-editor{background:#0e1924;border-color:#31485c}

/* V6.0.8.4.11 — salesperson customer directory width fix and optional wide view */
.customer-directory-layout.customer-directory-no-folders{grid-template-columns:minmax(0,1fr)}
.customer-directory-layout.customer-directory-no-folders>.customer-directory-card{grid-column:1/-1;width:100%;min-width:0}
.customer-directory-no-folders .customer-directory-card{width:100%;min-width:0}
.customer-directory-no-folders .customer-directory-card .table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.customer-directory-no-folders .customer-directory-card .table-wrap table{min-width:960px}
.customer-directory-no-folders .customer-directory-card td:first-child,.customer-directory-no-folders .customer-directory-card td:nth-child(2){overflow-wrap:anywhere;word-break:normal}
.customer-directory-no-folders .customer-directory-head{flex-wrap:wrap}
.customer-directory-no-folders .customer-page-actions{flex-wrap:wrap}
.customer-expand-btn{white-space:nowrap;flex:0 0 auto}
.app.customer-wide-mode{grid-template-columns:minmax(0,1fr)}
.app.customer-wide-mode>.sidebar{display:none}
.app.customer-wide-mode>.shell{grid-column:1;min-width:0;width:100%}
.app.customer-wide-mode .content{width:100%;max-width:none;padding-left:clamp(12px,2vw,32px);padding-right:clamp(12px,2vw,32px)}
@media(max-width:620px){.customer-directory-no-folders .customer-directory-card .table-wrap table{min-width:900px}.customer-directory-no-folders .customer-directory-head{align-items:flex-start}}

