:root{--nav:#071f24;--nav2:#0b3c3b;--teal:#0f766e;--teal2:#14b8a6;--ink:#0f172a;--muted:#64748b;--bg:#f4f8f8;--line:#dce8e7;--danger:#be123c;--warn:#b45309;--ok:#047857;--sidebar:278px}*{box-sizing:border-box}html{font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--bg)}body{margin:0;min-height:100vh;background:radial-gradient(circle at 95% 0,rgba(20,184,166,.09),transparent 33rem),var(--bg)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);display:flex;flex-direction:column;background:linear-gradient(165deg,var(--nav),var(--nav2));color:#d7f4ef;z-index:50;box-shadow:18px 0 50px rgba(15,23,42,.14)}.brand{display:flex;gap:12px;align-items:center;padding:20px;border-bottom:1px solid rgba(255,255,255,.08)}.brand img{width:48px;height:48px;object-fit:cover;border-radius:14px;background:#fff}.brand b{display:block;color:#fff;font-size:20px}.brand small{font-size:10px;text-transform:uppercase;letter-spacing:1.2px;color:#99f6e4}.nav{padding:12px;overflow:auto;flex:1}.nav-title{margin:18px 10px 8px;color:#5eead4;font-size:10px;font-weight:900;letter-spacing:1.4px;text-transform:uppercase}.nav a{display:flex;align-items:center;gap:11px;margin:4px 0;padding:11px 12px;border-radius:13px;color:#d2e2e2;font-weight:700;font-size:13px}.nav a:hover,.nav a.active{background:rgba(255,255,255,.1);color:#fff}.nav a.active{background:linear-gradient(135deg,#ccfbf1,#5eead4);color:#064e4c}.nav .ico{display:grid;place-items:center;width:31px;height:31px;border-radius:10px;background:rgba(255,255,255,.08);font-size:10px;font-weight:900}.userbox{margin:12px;padding:13px;border:1px solid rgba(255,255,255,.09);border-radius:16px;background:rgba(255,255,255,.06)}.userbox b{display:block;color:#fff}.userbox small{color:#99f6e4}.user-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.user-actions a{padding:8px;text-align:center;border-radius:9px;background:rgba(255,255,255,.08);font-size:11px;font-weight:800}.app{margin-left:var(--sidebar);min-height:100vh}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:rgba(255,255,255,.86);border-bottom:1px solid var(--line);backdrop-filter:blur(14px);position:sticky;top:0;z-index:25}.topbar h1{margin:0;font-size:19px}.topbar p{margin:3px 0 0;color:var(--muted);font-size:12px}.main{padding:26px;max-width:1600px;margin:auto}.grid{display:grid;gap:18px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:0 12px 35px rgba(15,23,42,.045)}.card h2,.card h3{margin-top:0}.stat{position:relative;overflow:hidden}.stat:after{content:"";position:absolute;width:100px;height:100px;border-radius:50%;right:-40px;top:-40px;background:rgba(20,184,166,.1)}.stat .label{font-size:11px;color:var(--muted);font-weight:900;text-transform:uppercase;letter-spacing:.8px}.stat .value{font-size:29px;font-weight:900;margin-top:8px}.stat .hint{font-size:12px;color:var(--muted);margin-top:5px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:11px;padding:10px 14px;font-weight:800;cursor:pointer;background:#e2e8f0;color:#1e293b}.btn:hover{filter:brightness(.98)}.btn-primary{background:linear-gradient(135deg,var(--teal),var(--teal2));color:white}.btn-danger{background:#ffe4e6;color:var(--danger)}.btn-warning{background:#fef3c7;color:#92400e}.btn-sm{padding:7px 10px;font-size:12px}.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.page-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:20px}.page-head h2{margin:0;font-size:25px}.page-head p{margin:6px 0 0;color:var(--muted)}.form-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:15px}.col-12{grid-column:span 12}.col-9{grid-column:span 9}.col-8{grid-column:span 8}.col-6{grid-column:span 6}.col-4{grid-column:span 4}.col-3{grid-column:span 3}.col-2{grid-column:span 2}.field label{display:block;margin-bottom:7px;font-size:12px;font-weight:900;color:#334155}.field input,.field select,.field textarea{width:100%;border:1px solid #cbd5e1;border-radius:11px;padding:10px 12px;background:#fff;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--teal2);box-shadow:0 0 0 3px rgba(20,184,166,.12)}.field textarea{min-height:92px;resize:vertical}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px;background:white}table{width:100%;border-collapse:collapse;font-size:13px}th{padding:12px;text-align:left;background:#f0f7f6;color:#334155;font-size:10px;text-transform:uppercase;letter-spacing:.7px;white-space:nowrap}td{padding:12px;border-top:1px solid #edf2f2;vertical-align:top}tbody tr:hover{background:#fbfefe}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900;text-transform:uppercase}.badge-ok{background:#d1fae5;color:#065f46}.badge-warn{background:#fef3c7;color:#92400e}.badge-danger{background:#ffe4e6;color:#9f1239}.badge-info{background:#dbeafe;color:#1d4ed8}.muted{color:var(--muted)}.text-right{text-align:right}.alert{padding:13px 15px;border-radius:12px;margin-bottom:15px;font-weight:700;font-size:13px}.alert-success{background:#d1fae5;color:#065f46}.alert-error{background:#ffe4e6;color:#9f1239}.alert-info{background:#dbeafe;color:#1e40af}.line-editor{border:1px solid var(--line);border-radius:15px;padding:12px;margin-bottom:10px;background:#fbfefe}.summary{background:#071f24;color:white;border-radius:18px;padding:18px}.summary-row{display:flex;justify-content:space-between;gap:15px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.09)}.summary-row:last-child{border:0}.summary .total{font-size:23px;font-weight:900;color:#5eead4}.empty{padding:35px;text-align:center;color:var(--muted)}.mobile-toggle{display:none}.kpi-list{display:grid;gap:10px}.kpi-line{display:flex;justify-content:space-between;padding:12px;border-radius:12px;background:#f5f9f9}.tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:17px}.tabs a{padding:8px 12px;border-radius:10px;background:#e8f0f0;font-weight:800;font-size:12px}.tabs a.active{background:var(--teal);color:#fff}.help-article{line-height:1.75;color:#334155;white-space:pre-line}.print-only{display:none}@media(max-width:1100px){.grid-4{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:1fr 1fr}.sidebar{transform:translateX(-101%);transition:.22s}.sidebar.open{transform:translateX(0)}.app{margin-left:0}.mobile-toggle{display:inline-flex}.topbar{padding:0 16px}.main{padding:18px}.overlay{display:none;position:fixed;inset:0;background:rgba(2,6,23,.55);z-index:40}.overlay.open{display:block}}@media(max-width:720px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid>[class^=col-]{grid-column:auto}.page-head{flex-direction:column}.main{padding:14px}.card{padding:15px}.topbar h1{font-size:16px}.hide-mobile{display:none}}@media print{.sidebar,.topbar,.no-print{display:none!important}.app{margin:0}.main{padding:0}.card{box-shadow:none;border:0}.print-only{display:block}}

/* Premium 2026.3 additions */
.top-actions{display:flex;align-items:center;gap:10px}.top-title{min-width:0}.rate-pill{display:flex;flex-direction:column;padding:7px 12px;border:1px solid var(--line);border-radius:12px;background:#fff}.rate-pill span{font-size:9px;text-transform:uppercase;font-weight:900;color:var(--muted);letter-spacing:.7px}.rate-pill b{font-size:12px;color:var(--teal)}.currency-switch{display:flex;padding:3px;border-radius:12px;background:#e6eeee;border:1px solid var(--line)}.currency-switch button{border:0;background:transparent;border-radius:9px;padding:7px 10px;font-weight:900;font-size:11px;cursor:pointer;color:#64748b}.currency-switch button.active{background:#071f24;color:#fff;box-shadow:0 3px 10px rgba(15,23,42,.18)}.btn-pos{background:#111827;color:#5eead4}.user-ident{display:flex;gap:10px;align-items:center}.user-ident img{width:38px;height:38px;object-fit:cover;border-radius:12px;border:2px solid rgba(255,255,255,.14)}.global-loader{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(2,10,18,.76);backdrop-filter:blur(5px);z-index:9999}.global-loader.show{display:flex}.loader-card{width:min(380px,90vw);padding:32px;text-align:center;border-radius:24px;background:#fff;box-shadow:0 35px 120px rgba(0,0,0,.35)}.loader-card h3{margin:16px 0 6px}.loader-card p{margin:0;color:var(--muted);font-size:12px}.loader-ring{width:58px;height:58px;margin:auto;border:6px solid #d9efec;border-top-color:var(--teal);border-radius:50%;animation:bmmsSpin .8s linear infinite}@keyframes bmmsSpin{to{transform:rotate(360deg)}}.product-thumb{width:56px;height:56px;border-radius:13px;object-fit:contain;background:#f8fafc;border:1px solid var(--line);padding:4px}.product-hero{display:flex;gap:22px;align-items:center}.product-hero img{width:150px;height:150px;border-radius:22px;object-fit:contain;background:#fff;border:1px solid var(--line);padding:8px}.image-upload{display:flex;align-items:center;gap:18px}.image-upload img{width:110px;height:110px;object-fit:contain;border-radius:18px;border:1px dashed #9fb8b5;background:#f8fbfb;padding:6px}.price-dual{display:flex;flex-direction:column}.price-dual small{color:var(--muted);margin-top:2px}.success-shell{max-width:900px;margin:40px auto}.success-card{text-align:center;padding:40px}.success-icon{width:86px;height:86px;display:grid;place-items:center;margin:0 auto 20px;border-radius:50%;background:#d1fae5;color:#047857;font-size:42px;font-weight:900}.success-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:26px}.success-actions a{min-height:68px}.status-live{display:inline-flex;align-items:center;gap:7px;border-radius:999px;background:#dbeafe;color:#1d4ed8;padding:7px 11px;font-size:11px;font-weight:900}.status-live:before{content:"";width:8px;height:8px;border-radius:50%;background:#2563eb;animation:pulse 1.2s infinite}@keyframes pulse{50%{opacity:.3}}.pos-shell{min-height:100vh;background:linear-gradient(145deg,#edf8f6,#f8fafc)}.pos-top{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;padding:12px 22px;background:#071f24;color:#fff;box-shadow:0 12px 35px rgba(15,23,42,.2)}.pos-brand{display:flex;align-items:center;gap:11px}.pos-brand img{width:42px;height:42px;border-radius:12px;object-fit:cover}.pos-brand small{display:block;color:#99f6e4}.pos-nav{display:flex;gap:8px;align-items:center}.pos-nav a{padding:9px 12px;border-radius:10px;background:rgba(255,255,255,.08);font-size:12px;font-weight:900}.pos-nav a.active,.pos-nav a:hover{background:#5eead4;color:#064e4c}.pos-main{padding:24px;max-width:1500px;margin:auto}.pos-hero{padding:28px;border-radius:24px;background:linear-gradient(135deg,#083b3a,#0f766e);color:#fff}.pos-hero h1{margin:0;font-size:30px}.pos-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:18px}.pos-card{min-height:165px;padding:22px;border-radius:22px;background:#fff;border:1px solid var(--line);box-shadow:0 16px 40px rgba(15,23,42,.06)}.pos-card .pos-icon{font-size:34px}.pos-card h3{margin:15px 0 5px}.document-choice{display:grid;grid-template-columns:1fr 1fr;gap:14px}.document-choice a{padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff;text-align:center;font-weight:900}.document-choice a:hover{border-color:#14b8a6;background:#f0fdfa}.account-grid{display:grid;grid-template-columns:300px 1fr;gap:20px}.account-photo{text-align:center}.account-photo img{width:150px;height:150px;border-radius:28px;object-fit:cover;border:5px solid #e3f3f0}.report-tools{display:flex;gap:8px;flex-wrap:wrap}.report-tools a{white-space:nowrap}
@media(max-width:1100px){.rate-pill{display:none}.success-actions,.pos-cards{grid-template-columns:repeat(2,1fr)}.account-grid{grid-template-columns:1fr}.pos-top{padding:10px 14px}.pos-nav span{display:none}}
@media(max-width:720px){.top-actions{gap:5px}.currency-switch button{padding:6px 7px}.btn-pos{display:none}.success-actions,.pos-cards,.document-choice{grid-template-columns:1fr}.pos-main{padding:14px}.pos-nav a{padding:8px}.product-hero{align-items:flex-start;flex-direction:column}}

.help-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(135deg,#ecfeff,#f8fafc)}
.help-hero h2{font-size:28px;margin:10px 0 6px}.help-hero p{max-width:760px;color:var(--muted)}
.help-card{position:relative;min-height:170px;padding-top:44px}.help-number{position:absolute;top:16px;right:16px;font-size:12px;font-weight:800;color:var(--muted)}.help-open{font-size:12px;font-weight:800;color:var(--primary)}
@media(max-width:760px){.help-hero{align-items:flex-start;flex-direction:column}}

/* BMMS Premium 2026.4 — navigation, POS, notifications and workflow */
.nav{scrollbar-width:thin;scrollbar-color:#2dd4bf rgba(255,255,255,.07)}
.nav::-webkit-scrollbar{width:8px}.nav::-webkit-scrollbar-track{background:rgba(255,255,255,.05);border-radius:20px}.nav::-webkit-scrollbar-thumb{background:linear-gradient(#5eead4,#0d9488);border-radius:20px;border:2px solid #0b3537}.nav::-webkit-scrollbar-thumb:hover{background:#99f6e4}
.nav a.active{position:relative;box-shadow:0 8px 24px rgba(45,212,191,.22)}.nav a.active:before{content:"";position:absolute;left:-7px;width:4px;height:28px;border-radius:4px;background:#fff}
.user-ident{display:flex;align-items:center;gap:10px}.user-ident img{width:38px;height:38px;border-radius:12px;object-fit:cover;background:#fff;border:2px solid rgba(255,255,255,.22)}
.notification-wrap{position:relative}.notification-bell{position:relative;width:42px;height:42px;border:1px solid var(--line);border-radius:13px;background:#fff;cursor:pointer;font-size:18px}.notification-bell span{position:absolute;right:-5px;top:-6px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#dc2626;color:#fff;font-size:10px;font-weight:900;border:2px solid #fff}.notification-bell.has-news{animation:bellPulse 1.5s infinite}.notification-bell.has-news:after{content:"";position:absolute;inset:-4px;border-radius:16px;border:2px solid rgba(20,184,166,.35);animation:ringPulse 1.5s infinite}@keyframes bellPulse{0%,100%{transform:rotate(0)}15%{transform:rotate(7deg)}30%{transform:rotate(-7deg)}45%{transform:rotate(4deg)}60%{transform:rotate(0)}}@keyframes ringPulse{0%{transform:scale(.92);opacity:0}40%{opacity:1}100%{transform:scale(1.18);opacity:0}}
.notification-panel{display:none;position:absolute;right:0;top:50px;width:min(390px,calc(100vw - 28px));max-height:490px;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 70px rgba(15,23,42,.22);z-index:80}.notification-panel.open{display:block}.notification-head{display:flex;justify-content:space-between;align-items:center;padding:15px 16px;border-bottom:1px solid var(--line);background:#f0fdfa}.notification-head a{font-size:11px;color:var(--teal);font-weight:900}.notification-items{max-height:420px;overflow:auto}.notification-item{display:flex;gap:11px;padding:13px 15px;border-bottom:1px solid #edf3f2}.notification-item:hover{background:#f7fbfb}.notification-item .notif-icon{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:11px;background:#ccfbf1;color:#115e59;font-weight:900}.notification-item b{display:block;font-size:12px}.notification-item small{display:block;color:var(--muted);margin-top:4px;line-height:1.35}.notification-loading,.notification-empty{padding:24px;text-align:center;color:var(--muted)}
.ajax-results{display:none;position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:70;max-height:310px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 48px rgba(15,23,42,.16)}.ajax-results:not(:empty){display:block}.client-autocomplete,.product-live-search{position:relative}.product-live-search{margin-bottom:15px}.product-live-search>input{width:100%;padding:13px 15px;border:1px solid #b8d0cd;border-radius:13px;outline:none}.product-live-search>input:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(20,184,166,.12)}.ajax-results button{display:flex;align-items:center;gap:11px;width:100%;padding:11px 13px;border:0;border-bottom:1px solid #edf3f2;background:#fff;text-align:left;cursor:pointer}.ajax-results button:hover{background:#f0fdfa}.ajax-results button:last-child{border-bottom:0}.ajax-results button img{width:42px;height:42px;border-radius:10px;object-fit:cover;background:#f1f5f9}.ajax-results button b,.ajax-results button small{display:block}.ajax-results button small{margin-top:3px;color:var(--muted)}
.client-mode-switch{display:flex;gap:9px;flex-wrap:wrap}.client-mode-switch label{display:flex;align-items:center;gap:7px;padding:10px 13px;border:1px solid var(--line);border-radius:12px;background:#f8fbfb;font-weight:800;font-size:12px;cursor:pointer}.identified-client{margin-top:15px;padding:15px;border-radius:15px;background:#f7fbfb;border:1px solid var(--line)}.status-live{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:#d1fae5;color:#065f46;font-size:10px;font-weight:900;text-transform:uppercase}.status-live:before{content:"";width:7px;height:7px;border-radius:50%;background:#10b981;box-shadow:0 0 0 4px rgba(16,185,129,.14);animation:onlineBlink 1.4s infinite}@keyframes onlineBlink{50%{opacity:.35}}
.stock-danger{color:#be123c!important;font-weight:900}.clickable-row{cursor:pointer}.clickable-row:hover{background:#ecfdf5!important}.source-link{display:inline-flex;align-items:center;gap:5px;font-weight:900;color:#0f766e}.source-link:after{content:"↗";font-size:10px}
.modal-backdrop{position:fixed;inset:0;z-index:110;background:rgba(2,6,23,.62);display:grid;place-items:center;padding:18px}.modal-backdrop[hidden]{display:none}.modal-card{width:min(520px,100%);background:#fff;border-radius:23px;padding:26px;text-align:center;box-shadow:0 28px 90px rgba(0,0,0,.28)}.modal-card h3{font-size:23px;margin:12px 0}.modal-card p{color:var(--muted);line-height:1.7}.modal-icon{display:grid;place-items:center;margin:auto;width:58px;height:58px;border-radius:18px;background:#ccfbf1;color:#0f766e;font-size:27px;font-weight:900}.modal-actions{display:flex;justify-content:center;gap:9px;margin-top:20px}.modal-actions form{margin:0}
.pos-shell{min-height:100vh;background:radial-gradient(circle at 100% 0,rgba(20,184,166,.13),transparent 35rem),#f4f8f8}.pos-top{position:sticky;top:0;z-index:60;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 24px;background:#061f24;color:#fff;box-shadow:0 10px 35px rgba(15,23,42,.16)}.pos-brand{display:flex;align-items:center;gap:10px}.pos-brand img{width:44px;height:44px;border-radius:13px;object-fit:cover;background:#fff}.pos-brand b,.pos-brand small{display:block}.pos-brand small{font-size:10px;color:#99f6e4;margin-top:2px}.pos-nav{display:flex;align-items:center;gap:5px}.pos-nav a{padding:10px 12px;border-radius:11px;color:#d5e8e7;font-size:12px;font-weight:900}.pos-nav a:hover,.pos-nav a.active{background:#ccfbf1;color:#064e4c}.pos-menu-toggle{display:none;width:43px;height:43px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:rgba(255,255,255,.08);color:#fff;font-size:20px}.pos-main{max-width:1500px;margin:auto;padding:24px}.pos-hero{padding:22px 24px;border-radius:21px;background:linear-gradient(135deg,#062b30,#0f766e);color:#fff}.pos-hero h1{margin:0 0 7px}.pos-hero p{margin:0;color:#c8eeea}.pos-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:18px}.pos-card{padding:22px;border-radius:22px;background:#fff;border:1px solid var(--line);box-shadow:0 16px 40px rgba(15,23,42,.06)}.pos-card:hover{transform:translateY(-3px);border-color:#5eead4}.pos-card .pos-icon{font-size:34px}.success-shell{min-height:65vh;display:grid;place-items:center}.success-card{max-width:760px;text-align:center}.success-icon{display:grid;place-items:center;width:74px;height:74px;margin:auto;border-radius:24px;background:#d1fae5;color:#047857;font-size:38px;font-weight:900}.success-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:24px}
.global-loader{position:fixed;inset:0;z-index:9999;display:none;place-items:center;background:rgba(4,20,24,.83);backdrop-filter:blur(4px)}.global-loader.show{display:grid}.loader-card{min-width:min(360px,calc(100vw - 30px));padding:25px;border-radius:22px;background:#fff;text-align:center;box-shadow:0 25px 80px rgba(0,0,0,.35)}.loader-ring{width:54px;height:54px;margin:0 auto 15px;border:5px solid #dce9e7;border-top-color:#0f766e;border-radius:50%;animation:loaderSpin .75s linear infinite}@keyframes loaderSpin{to{transform:rotate(360deg)}}
@media(max-width:900px){.pos-top{padding:10px 13px;flex-wrap:wrap}.pos-menu-toggle{display:inline-grid;place-items:center}.pos-nav{display:none;position:absolute;left:12px;right:12px;top:70px;flex-direction:column;align-items:stretch;padding:10px;border:1px solid rgba(255,255,255,.15);border-radius:16px;background:#082b30;box-shadow:0 18px 50px rgba(0,0,0,.28)}.pos-nav.open{display:flex}.pos-nav a{display:block;padding:13px}.pos-main{padding:13px}.pos-cards{grid-template-columns:repeat(2,1fr)}.sale-meta-grid .col-3,.sale-meta-grid .col-2,.sale-meta-grid .col-7{grid-column:span 12}.sale-payment-grid{grid-template-columns:1fr}.sale-line{grid-template-columns:repeat(2,minmax(0,1fr))}.sale-line>[class^=col-]{grid-column:span 1}.sale-line .col-4,.sale-line .col-12{grid-column:span 2}.notification-panel{position:fixed;right:14px;top:70px}}
@media(max-width:560px){.pos-brand small{font-size:9px}.pos-cards{grid-template-columns:1fr}.pos-hero{padding:18px}.pos-hero h1{font-size:23px}.sale-line{display:block}.sale-line .field{margin-bottom:11px}.success-actions{grid-template-columns:1fr}.modal-actions{flex-direction:column}.modal-actions .btn{width:100%}.notification-bell{width:38px;height:38px}.topbar{height:auto;min-height:68px;padding:10px 12px}.top-title p{display:none}.top-actions{margin-left:auto}}

/* BMMS Premium 2026.4.2 — dettes clients et administration des agents */
.debt-nav-alert{position:relative;display:flex!important;align-items:center;gap:10px;color:#fecaca!important;background:rgba(185,28,28,.22)!important;border:1px solid rgba(248,113,113,.26);animation:debtNavPulse 1.45s infinite}.debt-nav-alert .ico{background:#b91c1c!important;color:#fff!important}.debt-nav-alert b{margin-left:auto;display:grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#ef4444;color:#fff;font-size:10px}.top-debt-alert{display:flex;align-items:center;gap:8px;padding:7px 11px;border-radius:13px;background:#b91c1c;color:#fff;box-shadow:0 8px 24px rgba(185,28,28,.23);animation:debtNavPulse 1.45s infinite}.top-debt-alert span{font-size:10px;font-weight:1000;letter-spacing:.8px}.top-debt-alert b{font-size:11px;white-space:nowrap}@keyframes debtNavPulse{0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(239,68,68,.24)}50%{opacity:.78;box-shadow:0 0 0 7px rgba(239,68,68,0)}}.debt-dashboard-card{display:flex;align-items:center;justify-content:space-between;gap:20px;border-color:#fecaca;background:linear-gradient(135deg,#fff,#fff7f7)}.debt-dashboard-card>div{display:flex;align-items:center;gap:13px}.debt-dashboard-card p{margin:4px 0 0;color:var(--muted)}.debt-dashboard-card strong{font-size:22px;color:#b91c1c}.debt-pulse{width:15px;height:15px;border-radius:50%;background:#ef4444;box-shadow:0 0 0 8px rgba(239,68,68,.12);animation:debtDot 1.15s infinite}@keyframes debtDot{50%{box-shadow:0 0 0 2px rgba(239,68,68,.12);opacity:.55}}.btn-danger{background:#b91c1c!important;border-color:#b91c1c!important;color:#fff!important}.pos-debt-link{background:#b91c1c!important;color:#fff!important;animation:debtNavPulse 1.45s infinite}.pos-debt-link b{display:inline-grid;place-items:center;min-width:19px;height:19px;margin-left:4px;border-radius:999px;background:#fff;color:#b91c1c;font-size:9px}.pos-debt-card{border-color:#fecaca!important;background:linear-gradient(145deg,#fff,#fff1f2)!important}.pos-debt-card .pos-icon,.debt-value{color:#b91c1c}.debt-hero{background:linear-gradient(135deg,#4c0519,#b91c1c)!important}
@media(max-width:720px){.top-debt-alert{padding:7px 9px}.top-debt-alert b{display:none}.debt-dashboard-card{align-items:flex-start;flex-direction:column}.debt-dashboard-card>div:last-child{width:100%;justify-content:space-between}}
.agent-list-photo{width:42px;height:42px;object-fit:cover;border-radius:13px;border:1px solid var(--line);background:#f8fafc}


/* BMMS Premium 2026.4.3 — maintenance, sauvegarde et restauration */
.maintenance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.maintenance-card{position:relative;overflow:hidden}.maintenance-card .maintenance-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:#ccfbf1;color:#0f766e;font-size:27px;font-weight:900}.maintenance-card.danger{border-color:#fecaca;background:linear-gradient(145deg,#fff,#fff7f7)}.maintenance-card.danger .maintenance-icon{background:#ffe4e6;color:#b91c1c}.instruction-list{text-align:left;margin:14px 0;padding-left:20px;color:#475569;line-height:1.7}.password-confirm-box{text-align:left;margin-top:15px}.password-confirm-box label{display:block;font-size:12px;font-weight:900;margin-bottom:7px}.password-confirm-box input{width:100%;padding:11px 12px;border:1px solid #cbd5e1;border-radius:11px}.modal-card.modal-wide{width:min(700px,100%);max-height:92vh;overflow:auto}.danger-callout{padding:13px;border-radius:13px;background:#fff1f2;color:#9f1239;text-align:left;font-weight:700}.backup-content-list{display:grid;gap:8px;margin-top:15px}.backup-content-list div{display:flex;align-items:center;gap:9px;padding:10px 12px;border-radius:12px;background:#f5f9f9;color:#334155;font-size:12px;font-weight:800}
@media(max-width:950px){.maintenance-grid{grid-template-columns:1fr}}


/* BMMS Premium 2026.4.4 — repérage du menu actif et catalogue d'aide enrichi */
.nav{scroll-behavior:smooth;overscroll-behavior:contain}.nav a.active-revealed{animation:activeMenuReveal .85s ease}@keyframes activeMenuReveal{0%,100%{transform:translateX(0)}45%{transform:translateX(5px);box-shadow:0 0 0 5px rgba(94,234,212,.16),0 10px 28px rgba(45,212,191,.28)}}
.help-start-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:16px}.help-start-step{position:relative;padding:15px 13px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#fff,#f3fbfa);min-height:126px}.help-start-step .step-no{display:grid;place-items:center;width:31px;height:31px;border-radius:10px;background:#0f766e;color:#fff;font-size:11px;font-weight:1000}.help-start-step b{display:block;margin-top:10px;font-size:13px}.help-start-step p{margin:6px 0 0;color:var(--muted);font-size:11px;line-height:1.5}.help-route-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.help-route-card{display:flex;flex-direction:column;min-height:155px;padding:17px;border:1px solid var(--line);border-radius:17px;background:#fff;transition:.18s}.help-route-card:hover{transform:translateY(-3px);border-color:#5eead4;box-shadow:0 14px 34px rgba(15,118,110,.09)}.help-route-card .route-icon{font-size:25px}.help-route-card b{margin-top:10px}.help-route-card p{margin:7px 0 12px;color:var(--muted);font-size:12px;line-height:1.55}.help-route-card span:last-child{margin-top:auto;color:#0f766e;font-weight:900;font-size:11px}.help-article-rich{line-height:1.72;color:#334155}.help-article-rich h3{margin:28px 0 10px;padding-bottom:8px;border-bottom:1px solid var(--line);color:#0f766e;font-size:19px}.help-article-rich h4{margin:22px 0 8px;color:#155e75;font-size:15px}.help-article-rich p{margin:9px 0}.help-article-rich ul,.help-article-rich ol{margin:8px 0 14px;padding-left:25px}.help-article-rich li{margin:7px 0}.help-callout{margin:14px 0;padding:13px 15px;border-left:4px solid #0f766e;border-radius:0 13px 13px 0;background:#ecfdf5;color:#065f46;font-weight:700}.help-callout.warning{border-left-color:#d97706;background:#fffbeb;color:#92400e}.help-callout.result{border-left-color:#2563eb;background:#eff6ff;color:#1e40af}.help-article-meta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.help-article-meta span{padding:6px 10px;border-radius:999px;background:#edf7f6;color:#0f766e;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.5px}
@media(max-width:1200px){.help-start-grid{grid-template-columns:repeat(3,1fr)}.help-route-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.help-start-grid,.help-route-grid{grid-template-columns:1fr}.help-start-step{min-height:auto}}

/* BMMS Premium 2026.4.5 — codes-barres et scan caméra */
.barcode-preview-field img,.barcode-cell img,.product-main-barcode img{display:block;max-width:100%;height:52px;object-fit:contain;background:#fff;border:1px solid #dbe7e5;border-radius:10px;padding:4px}.barcode-cell{min-width:175px}.barcode-cell code{display:block;margin-top:4px;font-size:10px;color:#475569}.product-main-barcode{display:flex;align-items:center;gap:10px;max-width:360px;margin:9px 0}.product-main-barcode img{width:220px}.product-main-barcode span{font-size:11px;font-weight:900;color:#475569}.sale-product-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}.btn-scan{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#073b44!important;border-color:#0f766e!important;color:#fff!important}.btn-scan span{font-size:18px}.barcode-sale-status{margin:12px 0;padding:11px 13px;border-radius:12px;font-size:12px;font-weight:900}.barcode-sale-status.success{background:#dcfce7;color:#166534}.barcode-sale-status.info{background:#e0f2fe;color:#075985}.barcode-sale-status.error{background:#fee2e2;color:#991b1b}.sale-line.barcode-added{animation:barcodeAdded 1.05s ease}@keyframes barcodeAdded{0%,100%{box-shadow:none}35%{box-shadow:0 0 0 5px rgba(16,185,129,.2),0 14px 35px rgba(16,185,129,.18);border-color:#10b981;background:#ecfdf5}}
.barcode-modal{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:16px;background:rgba(2,18,22,.84);backdrop-filter:blur(5px)}.barcode-modal[hidden]{display:none}.barcode-modal-card{width:min(680px,100%);max-height:94vh;overflow:auto;border-radius:23px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.42)}.barcode-modal-head{display:flex;justify-content:space-between;gap:16px;padding:19px 20px;border-bottom:1px solid var(--line)}.barcode-modal-head h3{margin:0;color:#0f766e}.barcode-modal-head p{margin:5px 0 0;color:var(--muted);font-size:12px}.barcode-close{width:40px;height:40px;border:0;border-radius:12px;background:#eef6f5;color:#0f766e;font-size:24px;cursor:pointer}.barcode-camera{position:relative;margin:18px;border-radius:18px;overflow:hidden;background:#061d21;aspect-ratio:16/10}.barcode-camera video{width:100%;height:100%;object-fit:cover}.barcode-target{position:absolute;inset:20% 10%;border:2px solid #5eead4;border-radius:16px;box-shadow:0 0 0 999px rgba(0,0,0,.24)}.barcode-target span{position:absolute;left:8%;right:8%;top:50%;height:2px;background:#ef4444;box-shadow:0 0 12px #ef4444;animation:scanLine 1.8s ease-in-out infinite}@keyframes scanLine{0%,100%{transform:translateY(-75px)}50%{transform:translateY(75px)}}.barcode-camera-state{position:absolute;left:12px;right:12px;bottom:10px;padding:8px 10px;border-radius:10px;background:rgba(2,18,22,.78);color:#fff;text-align:center;font-size:11px;font-weight:800}.barcode-manual{padding:0 18px 14px}.barcode-manual label{display:block;margin-bottom:7px;font-size:12px;font-weight:900}.barcode-manual>div{display:flex;gap:8px}.barcode-manual input{flex:1;padding:11px 12px;border:1px solid var(--line);border-radius:11px}.barcode-help{margin:0 18px 18px;padding:11px 13px;border-radius:12px;background:#f0fdfa;color:#115e59;font-size:11px;line-height:1.55}
@media(max-width:720px){.sale-product-tools{grid-template-columns:1fr}.btn-scan{width:100%}.barcode-modal{padding:8px}.barcode-modal-card{border-radius:18px}.barcode-camera{margin:12px;aspect-ratio:4/5}.barcode-target{inset:27% 7%}.barcode-manual>div{flex-direction:column}.product-main-barcode{align-items:flex-start;flex-direction:column}.barcode-cell{min-width:150px}}
.invoice-barcode-screen{display:flex;align-items:center;justify-content:space-between;gap:18px}.invoice-barcode-screen div span{display:block;margin-top:5px;color:var(--muted);font-size:11px}.invoice-barcode-screen img{max-width:360px;height:62px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:12px;padding:5px}@media(max-width:720px){.invoice-barcode-screen{align-items:flex-start;flex-direction:column}.invoice-barcode-screen img{width:100%;max-width:100%}}

/* BMMS 2026.4.7 — caméra, bénéfices et performance */
.barcode-camera-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}
.barcode-camera-toolbar button,.barcode-camera-toolbar select{border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 11px;font:inherit;color:var(--text)}
.barcode-camera-toolbar button.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.text-success{color:#15803d}.text-danger{color:#b91c1c}
@media(max-width:760px){.barcode-camera-toolbar>*{flex:1;min-width:120px}.sale-payment-grid{grid-template-columns:1fr!important}.sale-meta-grid .field{grid-column:span 12!important}}

/* BMMS 2026.4.7.3 — topbar réellement fixe et décalage dynamique */
:root{--topbar-height:72px}
.topbar{position:fixed!important;top:0;left:var(--sidebar);right:0;width:auto;z-index:45}
.app>.main{padding-top:calc(var(--topbar-height) + 26px)}
@media(max-width:1100px){.topbar{left:0}.app>.main{padding-top:calc(var(--topbar-height) + 18px)}}
@media(max-width:720px){.app>.main{padding-top:calc(var(--topbar-height) + 14px)}}
.notification-loading{display:flex;align-items:center;justify-content:center;gap:9px}
.notification-loading:before{content:"";width:16px;height:16px;border:2px solid #cbd5e1;border-top-color:var(--teal);border-radius:50%;animation:bmmsSpin .7s linear infinite}
.notification-retry{display:inline-flex;margin-top:10px;border:0;border-radius:9px;padding:7px 10px;background:#e2e8f0;color:#0f172a;font-weight:800;cursor:pointer}

/* BMMS 2026.4.7.4 — dashboard mobile sans débordement horizontal */
html,body{max-width:100%;overflow-x:hidden}
.app,.main,.dashboard-page{min-width:0;max-width:100%}
.dashboard-page .grid,.dashboard-page .card,.dashboard-page .table-wrap{min-width:0;max-width:100%}

@media(max-width:720px){
  .topbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:8px 10px;
    height:auto;
    min-height:68px;
    padding:9px 11px;
    overflow:visible;
  }
  .top-title{min-width:0;max-width:100%}
  .top-title h1{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .top-title p{display:none}
  .top-actions{
    grid-column:1/-1;
    width:100%;
    min-width:0;
    margin-left:0;
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-start;
    align-items:center;
    gap:6px;
  }
  .top-actions>*{max-width:100%}
  .rate-pill{flex:1 1 145px;min-width:0;padding:6px 9px}
  .rate-pill b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .currency-switch{flex:0 0 auto}
  .currency-switch button{padding:6px 8px}
  .top-debt-alert{flex:1 1 auto;min-width:0}
  .top-debt-alert b{overflow:hidden;text-overflow:ellipsis}
  .notification-wrap,.btn-pos,.mobile-toggle{flex:0 0 auto}
  .mobile-toggle{margin-left:auto}

  .dashboard-page{width:100%;overflow:visible}
  .dashboard-page .card{width:100%;overflow:hidden}
  .dashboard-page .page-head{gap:10px;margin-bottom:14px}
  .dashboard-page .page-head .btn{width:100%}
  .dashboard-page .action-grid{grid-template-columns:1fr}
  .dashboard-page .action-grid .btn{width:100%;min-width:0}

  .dashboard-page .dashboard-mobile-cards{
    overflow:visible;
    border:0;
    border-radius:0;
    background:transparent;
  }
  .dashboard-page .dashboard-mobile-cards table,
  .dashboard-page .dashboard-mobile-cards tbody{
    display:block;
    width:100%;
  }
  .dashboard-page .dashboard-mobile-cards thead{display:none}
  .dashboard-page .dashboard-mobile-cards tbody{display:grid;gap:10px}
  .dashboard-page .dashboard-mobile-cards tr{
    display:block;
    width:100%;
    padding:10px 12px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fbfefe;
  }
  .dashboard-page .dashboard-mobile-cards td{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    width:100%;
    padding:8px 0;
    border-top:1px solid #edf2f2;
    text-align:right;
    overflow-wrap:anywhere;
  }
  .dashboard-page .dashboard-mobile-cards td:first-child{border-top:0}
  .dashboard-page .dashboard-mobile-cards td::before{
    content:attr(data-label);
    flex:0 0 86px;
    color:var(--muted);
    font-size:10px;
    font-weight:900;
    letter-spacing:.5px;
    text-align:left;
    text-transform:uppercase;
  }
  .dashboard-page .dashboard-mobile-cards td>div,
  .dashboard-page .dashboard-mobile-cards td>b,
  .dashboard-page .dashboard-mobile-cards td>span,
  .dashboard-page .dashboard-mobile-cards td>a{
    min-width:0;
    max-width:calc(100% - 98px);
  }
  .dashboard-page .dashboard-mobile-cards .product-thumb{width:44px;height:44px;flex:0 0 44px}
  .dashboard-page .dashboard-mobile-cards .btn{width:auto}
}

@media(max-width:390px){
  .top-actions{gap:5px}
  .rate-pill{flex-basis:100%}
  .top-debt-alert{flex-basis:calc(100% - 92px)}
  .dashboard-page .dashboard-mobile-cards td::before{flex-basis:74px}
  .dashboard-page .dashboard-mobile-cards td>div,
  .dashboard-page .dashboard-mobile-cards td>b,
  .dashboard-page .dashboard-mobile-cards td>span,
  .dashboard-page .dashboard-mobile-cards td>a{max-width:calc(100% - 86px)}
}
@media(max-width:1100px){body.sidebar-open{overflow:hidden}.sidebar.open{overflow:hidden}.sidebar.open .nav{overscroll-behavior:contain}}
