:root{--blue:#2a7a9d;--ink:#214351;--muted:#718995;--line:#bfd4df;--bg:#e3edf3;--card:#f3f8fb;font:15px/1.45 system-ui,Segoe UI,sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;background:var(--blue);color:white;border:1px solid var(--blue);border-radius:13px;padding:12px 17px;font-weight:650}button:disabled{opacity:.45;cursor:default}.quiet,.secondary{background:transparent;color:var(--blue);border-color:var(--line)}.danger{background:#f8e8e6;color:#924e4a;border-color:#e5c7c3}.back{border:0;background:transparent;color:var(--blue);padding:8px;white-space:nowrap}.crescent{color:#c14b61;font-size:29px;display:inline-block;transform:rotate(-15deg)}header{padding:15px max(15px,calc((100vw - 1150px)/2));display:flex;gap:12px;align-items:center;background:#e3edf3f5;border-bottom:1px solid #ccdde5;position:sticky;top:0;z-index:10}header strong{flex:1;font-size:16px}main{max-width:1150px;margin:25px auto 120px;padding:0 20px}h1{font-size:28px;margin:8px 0 20px}h2{font-size:21px}p{margin:10px 0}.muted,small{color:var(--muted)}.small{font-size:12px}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0}.grow{flex:1;min-width:0}.searchline{display:flex;gap:7px;align-items:center}.searchline input{flex:1;min-width:0}input,select,textarea{background:#fbfdfe;border:1px solid var(--line);border-radius:12px;padding:13px}input:not([type=checkbox]),textarea{width:100%}label{display:block;font-size:14px;margin:12px 0}label input,label select,label textarea{margin-top:5px}input[type=checkbox]{width:auto;margin-right:8px}select{max-width:100%}.panel,.receipt{background:var(--card);border:1px solid var(--line);border-radius:23px;padding:24px;margin:18px 0}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.product{background:var(--card);border:1px solid var(--line);border-radius:19px;padding:12px;display:flex;flex-direction:column;min-width:0}.product .photo{width:100%;height:180px;object-fit:contain;margin:10px 0 18px}.product .photo.illustration{object-fit:contain;padding:20px}.product h3{font-size:16px;line-height:1.25;margin:auto 0 10px;overflow-wrap:anywhere}.product .foot{display:flex;align-items:center;justify-content:space-between;gap:8px}.plus{font-size:27px;padding:0;border-radius:50%;height:37px;width:37px;flex-shrink:0;line-height:1}.pill{display:inline-block;padding:5px 10px;background:#dcefe1;color:#3f7054;font-size:12px;border-radius:25px}.pill.gray{background:#e6ecef;color:#71838d}.suggestions{max-height:280px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;background:var(--card);border:1px solid var(--line);border-radius:15px;margin:8px 0 20px}.suggestion{height:70px;display:flex;gap:10px;align-items:center;border:0;border-bottom:1px solid #dce7ed;border-radius:0;background:transparent;width:100%;color:var(--ink);text-align:left;padding:8px 14px;font-weight:600}.suggestion span{flex:1}.suggestion img{height:50px;width:55px;object-fit:contain}.suggestion small{display:block;font-size:11px;font-weight:400}.companyMark{max-width:54px;max-height:23px;object-fit:contain}.receipt{max-width:700px;margin:20px auto}.receipt .center{text-align:center}.receipt h2{font-size:27px}.receipt .when{font-size:21px;font-weight:750}.receipt .ref{font-size:14px;color:var(--muted);font-weight:400}.receipt .pill{margin:17px 0}.row{display:flex;gap:15px;align-items:center;border-bottom:1px solid #d8e4eb;padding:15px 0}.row .grow{overflow-wrap:anywhere}.row input{width:85px}.total{font-size:24px;font-weight:750;display:flex;justify-content:space-between;margin:24px 0}.orderCard{display:block;text-align:left;width:100%;background:var(--card);border-color:var(--line);color:var(--ink);margin:12px 0;padding:20px}.orderCard b{display:block;font-size:18px}.orderCard small{font-weight:400}.badge{background:#e0f0e7;color:#3f7054;padding:7px 13px;border-radius:20px;font-size:13px}nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:12px;background:#dce9f0f5;border-top:1px solid var(--line);padding:12px 12px max(12px,env(safe-area-inset-bottom));z-index:20;overflow:auto}nav button{min-width:100px;background:transparent;border:0;color:#6c8896;padding:12px}nav .active{background:#cce5ee;color:#286681}dialog{border:1px solid var(--line);border-radius:23px;background:var(--card);color:var(--ink);width:min(520px,94vw);max-height:88vh;padding:25px;overflow:auto}dialog::backdrop{background:#143b4e66}dialog .photo{display:block;width:100%;height:200px;object-fit:contain}#notice{position:fixed;top:78px;left:50%;transform:translateX(-50%);background:#214351;color:white;border-radius:12px;padding:12px 20px;max-width:90vw;z-index:100;box-shadow:0 10px 30px #143b4e22}#notice:empty{display:none}.error{color:#a34c49;font-size:14px}.success{color:#3a7757}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}td,th{text-align:left;border-bottom:1px solid var(--line);padding:10px;white-space:nowrap}.metric{display:flex;justify-content:space-between;margin:8px 0}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.metricbox{padding:20px;background:var(--card);border:1px solid var(--line);border-radius:18px}.metricbox b{display:block;font-size:27px}.up{position:fixed;bottom:100px;right:20px;border-radius:50%;height:45px;width:45px;padding:0;font-size:23px;z-index:19}a{color:var(--blue)}.auth{max-width:480px;margin:25px auto}.split{display:grid;grid-template-columns:1fr 1fr;gap:14px}[hidden]{display:none!important}@media(max-width:800px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product .photo{height:170px}.metrics{grid-template-columns:repeat(2,1fr)}main{padding:0 14px}.panel,.receipt{padding:20px}nav{gap:2px;justify-content:space-around}nav button{min-width:75px;padding:10px 8px;font-size:12px}header{padding:11px 12px;gap:6px}header strong{font-size:14px}header button{font-size:13px;padding:8px}.product h3{font-size:15px}.split{grid-template-columns:1fr}}
/* Customer layout refresh; StockBridge keeps its wider workspace. */
body[data-interface=customer]{--bg:#f4f8fa;--card:#fff;background:var(--bg)}
body[data-interface=customer] header{max-width:640px;margin:auto;padding:12px 14px;gap:10px;background:#f4f8faf5;min-height:72px}
body[data-interface=customer] #brand{display:flex;align-items:center;justify-content:center;gap:8px;font-size:17px;line-height:1.2;letter-spacing:-.35px;text-align:left}
body[data-interface=customer] .crescent{font-size:33px;line-height:1;transform:rotate(-15deg);flex:none}
body[data-interface=customer] .back{width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:23px;flex:none}
body[data-interface=customer] #accountButton{font-size:12px;padding:9px 10px;flex:none;background:#fff}
body[data-interface=customer] main{max-width:640px;margin:18px auto 115px;padding:0 15px}
body[data-interface=customer] h1{font-size:23px;margin:5px 0 12px}
body[data-interface=customer] .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body[data-interface=customer] .product{border-radius:20px;padding:12px;box-shadow:0 3px 15px #21435106}
body[data-interface=customer] .product .photo{height:150px;margin:6px 0 14px}
body[data-interface=customer] .product h3{font-size:14px;line-height:1.35;min-height:38px}
body[data-interface=customer] nav{max-width:640px;margin:auto;border-radius:20px 20px 0 0;background:#f4f8faf5;box-shadow:0 -5px 24px #21435108;gap:8px}
body[data-interface=customer] nav button{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px;border-radius:13px}
body[data-interface=customer] nav button[data-page=cart]{background:var(--blue);color:white}
.cart-action{display:inline-flex;gap:8px;align-items:center;min-height:46px;box-shadow:0 4px 12px #2a7a9d20}
.cart-action svg,nav svg{width:22px;height:22px;flex:none}.cart-count{background:#fff;color:var(--blue);border-radius:50%;min-width:23px;height:23px;display:grid;place-items:center;font-size:12px;padding:0 4px}
.whatsapp-contact{display:block;margin:18px 0;padding:12px;border:1px solid #c6dfd1;border-radius:12px;text-align:center;color:#247653;text-decoration:none;background:#f2faf5}.legacy-login{display:block;margin:15px auto 0;font-size:12px}.auth button.grow{width:100%}
@media(max-width:370px){body[data-interface=customer] #brand{font-size:14px;gap:4px}body[data-interface=customer] .crescent{font-size:28px}body[data-interface=customer] #accountButton{padding:8px 6px}.cart-action{font-size:12px;padding:10px}}

/* Update 6: shared aligned header, compact authentication and search. */
header #brand{display:flex;align-items:center;justify-content:center;gap:7px;line-height:1.2;min-width:0}
header .crescent,body[data-interface=customer] .crescent{width:29px;height:29px;display:block;flex:none;transform:none}
header .back,body[data-interface=customer] header .back{width:auto;height:42px;min-width:76px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 10px;font-size:13px;line-height:1;border:1px solid var(--line);border-radius:12px;background:var(--card);flex:none}
.back svg{width:21px;height:21px;display:block}.back span{display:block;line-height:1}
#accountButton{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;padding:8px!important;flex:none}#accountButton svg{width:23px;height:23px;display:block}.workspace-label{display:block;font-size:10px;font-weight:400;margin-top:4px}
.compact-auth{margin:0 auto;max-width:400px}.compact-auth h1{font-size:23px;margin:0 0 16px}.compact-auth label{margin:10px 0}.compact-auth input{padding:11px 12px;height:44px}.compact-auth input[inputmode=numeric]{letter-spacing:.25em}.auth-primary{width:100%;margin-top:8px;min-height:44px}.auth-links{display:flex;justify-content:space-between;gap:10px;margin-top:12px}.text-link{border:0;background:transparent;color:var(--blue);font-size:13px;padding:8px 0;text-decoration:none}.optional{font-size:12px;font-weight:400}.remembered-phone input{display:none}.remembered-phone{font-size:0}.remembered-phone:after{content:'Welcome back';font-size:14px;color:var(--muted)}
.compact-menu h2{margin-top:0}.menu-row{display:block;text-align:left;width:100%;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;color:var(--ink);padding:13px 0}.whatsapp-contact,.whatsapp-recovery{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px;padding:8px 10px;margin:0;border:0;border-radius:10px;background:transparent;color:#247653;text-decoration:none}.whatsapp-contact svg,.whatsapp-recovery svg{width:22px;height:22px;flex:none}.compact-menu .whatsapp-contact{margin:10px 0}.catalog-links{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:8px 0}.catalog-links .quiet{font-size:12px;border:0;padding:8px 0}.auth-qr{width:200px;height:200px;display:block;margin:10px auto}.setup-key{display:block;overflow-wrap:anywhere;user-select:all;margin:10px 0}
.searchline{gap:6px}.searchline input{height:42px;padding:9px 12px}.searchline #clear{height:42px;padding:0 14px}.search-modes{display:flex;gap:6px;margin:7px 0 10px}.mode-chip{flex:1;border:1px solid var(--line);background:transparent;color:var(--muted);border-radius:9px;min-width:0;height:31px;padding:3px 5px;font-size:12px;font-weight:500}.mode-chip[aria-pressed=true]{color:var(--blue);background:#dfeef5;border-color:#9bc4d6}.suggestions{max-height:176px;margin:6px 0 0;border-radius:12px;scrollbar-width:thin;scrollbar-color:#8dafbf transparent}.suggestion{height:44px;min-height:44px;padding:6px 12px;font-size:13px;line-height:1.15}.suggestion span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.empty-search{padding:8px 12px;font-size:13px}.toolbar h1{margin:0}dialog{max-height:min(88dvh,720px)}
@media(max-width:400px){body[data-interface=customer] #brand,header #brand{font-size:13px;gap:4px}header .crescent,body[data-interface=customer] .crescent{width:24px;height:24px}header .back,body[data-interface=customer] header .back{min-width:68px;padding:0 7px}.catalog-links{gap:4px}.whatsapp-contact{font-size:12px;padding:6px}}
@media(max-height:520px){dialog{padding:16px}.compact-auth label{margin:6px 0}.compact-auth h1{margin-bottom:8px}.compact-auth input{height:38px}.suggestions{max-height:min(176px,30dvh)}}
/* Update 7: compact pharmacy interface */
.compact-menu{font-size:14px}.compact-menu h2{font-size:20px;margin:0 0 14px}.portal-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 8px}.portal-option{font:inherit;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:11px;height:42px;padding:8px}.portal-option.active{background:#e3f0f5;color:var(--blue);border-color:#9cbfce}.compact-menu .menu-row{font:inherit;font-weight:500;color:var(--ink);display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 4px;margin:0;border:0;border-bottom:1px solid #dfE8ed;border-radius:0;background:transparent;text-decoration:none;line-height:1.3}.menu-row svg,.row-icon{width:25px;height:25px;flex:none;display:grid;place-items:center;font-size:23px;line-height:1}.compact-menu .disabled-contact{opacity:.6}.compact-menu .menu-row:last-child{border-bottom:0}.searchline{height:40px;border:1px solid var(--line);background:var(--card);border-radius:11px;padding:0 4px;gap:0}.searchline #searchMode{width:89px;flex:none;font-size:12px;height:34px;padding:5px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent}.searchline #search{height:36px;border:0;border-radius:0;padding:6px 9px;font-size:14px;background:transparent}.searchline #clear{height:32px;width:32px;padding:0;border:0;background:transparent;font-size:20px}.suggestions{max-height:144px;border-radius:10px}.suggestion{height:36px;min-height:36px;padding:5px 10px;font-size:13px}.catalog-links{margin:5px 0}.catalog-links .whatsapp-contact{font-size:12px}.whatsapp-contact svg{width:24px;height:24px}.grid,body[data-interface=customer] .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.compact-product,body[data-interface=customer] .compact-product{position:relative;display:flex;flex-direction:row;gap:9px;align-items:center;min-height:104px;padding:11px;border-radius:13px;cursor:pointer}.compact-product:focus-visible{outline:3px solid #80b5cd}.compact-photo{width:50px;height:48px;flex:none;display:grid;place-items:center;overflow:hidden;border-radius:8px;background:#f4f7f9}.compact-product .photo,body[data-interface=customer] .compact-product .photo{height:48px;width:50px;object-fit:contain;margin:0;min-height:0}.medicine-watermark{display:flex;align-items:center;justify-content:center;letter-spacing:.65px;font-size:8px;font-weight:600;color:#a2b1ba;background:#f3f6f8;min-height:40px;border-radius:8px;text-align:center;font-style:normal}.product-summary{flex:1;min-width:0}.compact-product .product-summary h3,body[data-interface=customer] .compact-product h3{font-size:13px;line-height:1.25;min-height:0;margin:0 0 6px;overflow-wrap:anywhere}.compact-product .pill{font-size:10px;padding:2px 6px}.compact-product .plus{width:28px;height:28px;font-size:20px;align-self:flex-end;flex:none}.compact-product .request-plus{font-size:10px;border-radius:7px;width:52px;height:26px;padding:2px}.compact-product small{display:block;font-size:10px}.detail-head{display:flex;gap:14px;align-items:center}.detail-head h2{font-size:19px;line-height:1.3;margin:0 0 5px}.detail-photo{width:90px;height:80px;flex:none;display:grid;place-items:center;overflow:hidden}.detail-photo .photo,dialog .detail-photo .photo{width:90px;height:80px;object-fit:contain}.generic-detail{font-size:13px;font-style:italic;color:#69818c;margin:4px 0}.company-detail{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:#3f7b93;margin-top:7px}.companyMark{width:45px;height:25px;max-width:45px;object-fit:contain}.pack-description{font-size:12px;color:var(--muted);margin:12px 0}.price-summary{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);margin-bottom:10px}.price-summary strong{font-size:23px}.quantity-choice{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:12px;padding:11px;margin:9px 0}.quantity-choice.selected{border-color:#6fa8bd;background:#eaf4f7;box-shadow:0 0 0 1px #6fa8bd}.quantity-choice small{display:block;font-size:11px;margin:3px 0}.quantity-choice span{font-size:13px;color:var(--blue);font-weight:600}.stepper{display:flex;align-items:center;gap:6px}.stepper button{height:30px;width:30px;min-width:30px;padding:0;border-radius:8px;font-size:19px;background:var(--card);color:var(--blue);border-color:var(--line);display:grid;place-items:center}.stepper output{min-width:26px;text-align:center;font-size:14px;font-weight:700}.selection-total{display:flex;justify-content:space-between;gap:10px;font-size:14px;margin:16px 0}.selection-total strong{font-size:20px}#addProduct{display:inline-flex;align-items:center;justify-content:center;gap:8px}#addProduct svg{width:21px;height:21px}.unavailable-note{color:var(--muted)}.request-button{width:100%;margin:10px 0}.cart-panel{padding:14px}.cart-row{display:flex;gap:8px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.cart-row small{display:block;font-size:12px;margin:4px 0}.cart-row b{font-size:13px}.cart-name{background:transparent;border:0;padding:0;color:var(--ink);font-size:14px;text-align:left}.remove-line{background:transparent;border:0;padding:4px;color:#8c6470;font-size:23px}.cart-action{min-height:40px;padding:8px 12px}.toolbar{margin:9px 0}.up{height:35px;width:35px;bottom:85px;font-size:20px}
@media(min-width:900px){body[data-interface=admin] .grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:500px){.grid,body[data-interface=customer] .grid{grid-template-columns:1fr}.compact-product,body[data-interface=customer] .compact-product{min-height:78px;padding:9px 10px}.compact-product .plus{align-self:center}.compact-photo{width:52px}.compact-product .product-summary h3,body[data-interface=customer] .compact-product h3{font-size:14px}.detail-head h2{font-size:17px}.detail-photo,.detail-photo .photo,dialog .detail-photo .photo{width:72px;height:65px}.quantity-choice{padding:9px}.stepper{gap:4px}.stepper button{height:29px;width:29px;min-width:29px}dialog{padding:19px}.cart-row .stepper button{height:27px;width:27px;min-width:27px}.cart-row .stepper output{min-width:22px}.selection-total strong{font-size:18px}}

.dismiss-auth{position:absolute;right:14px;top:11px;width:28px;height:28px;padding:0;border:0;background:transparent;color:var(--muted);font-size:23px;line-height:1}

body[data-interface=customer].search-active #main>.toolbar:first-child,body[data-interface=customer].search-active .catalog-links,body[data-interface=customer].search-active nav,body.search-active #previewHelp{display:none}body[data-interface=customer].search-active main{margin-top:8px}
/* Update 8: one quantity editor and understated request rows. */
.purchase-types{display:flex;gap:8px;margin:12px 0}.purchase-types button{flex:1;min-height:42px}.purchase-types [aria-pressed=true]{background:#155e4b;color:white;border-color:#155e4b}
.quantity-choice[hidden]{display:none}.requested-row .cart-name,.requested-row .grow>b{font-style:italic;color:#796044}.request-caption{font-size:.82rem;color:#6a6155;line-height:1.5}.pharmacy-entry{margin-top:14px;border-top:1px solid #e5e8e6!important;font-size:.86rem!important;color:#65746c!important}
/* Compact inline mode list; no native full-screen selection dialog. */
.mode-picker{position:relative;flex:none;width:112px}.searchline .mode-picker #modeButton{height:100%;width:100%;display:flex;justify-content:space-between;align-items:center;padding:0 10px;background:transparent;color:var(--ink);border:0;border-right:1px solid var(--line);border-radius:0;font-size:.86rem}.mode-picker #searchMode{display:none}.mode-picker #modeOptions{position:absolute;top:calc(100% + 3px);left:0;width:132px;padding:3px;background:white;border:1px solid var(--line);border-radius:9px;box-shadow:0 6px 18px #193b5120;z-index:30}.mode-picker #modeOptions[hidden]{display:none}.mode-picker #modeOptions button{display:block;width:100%;text-align:left;background:transparent;color:var(--ink);padding:6px 9px;border:0;border-radius:5px;font:inherit;font-size:.83rem;min-height:30px}.mode-picker #modeOptions button[aria-selected=true]{background:#edf4f7}
.detail-head{display:block!important}.detail-head .detail-photo{width:100%;height:76px;background:transparent;border:0;border-radius:0;display:grid;place-items:center;margin-bottom:10px}.detail-head .detail-photo .medicine-watermark{width:auto;height:auto;min-height:0;align-self:center;background:transparent;font-size:14px;letter-spacing:.16em;color:#b9c4ca}.detail-head .detail-photo img{max-width:130px;max-height:76px;width:auto;height:auto;object-fit:contain}.detail-head h2{margin:5px 0}.detail-head .generic-detail{margin:3px 0}.detail-head .company-detail{margin:4px 0}.price-summary{margin:10px 0!important;padding:8px 0!important}.quantity-choice{padding:9px 0!important}.quantity-choice #quantityPrice{display:block;margin-top:3px;font-weight:700}.remove-line svg{width:20px;height:20px;display:block}.requested-row b small{font-size:.72rem;display:inline!important;font-weight:400}.request-count{font-size:.8rem;color:var(--muted);margin:10px 0}.receipt-capture{margin-top:16px}.pos-receipt-image{max-width:100%;max-height:75vh;object-fit:contain;display:block;margin:0 auto 12px}.whatsapp-menu svg{background:#e9f7ef;padding:5px;box-sizing:content-box;border-radius:8px;width:22px!important;height:22px!important}.whatsapp-menu span{color:var(--ink)}

#executeTrainingReset{background:#a23c4d;color:white}.production-lock{margin-top:28px;border-top:1px solid var(--line);padding-top:14px}
/* Version 14: quiet rewards, compact product maintenance, shared admin layout. */
.points-quiet{font-size:12px;padding:6px 10px;min-height:30px;width:auto;border:1px solid #ccdadd;background:#fff;color:#52666d;border-radius:7px}.points-quiet#rewardButton{display:block;margin:-4px 0 14px}.points-dialog{text-align:center;min-width:230px;padding:12px}.points-dialog>strong{display:block;font-size:32px;color:#173d4a}.points-dialog strong small{font-size:13px;font-weight:400}.points-dialog p{font-size:20px;margin:8px 0 24px}.directory-controls{display:flex;gap:10px;margin:12px 0}.directory-controls input{flex:1;min-width:0}.directory-controls select{max-width:150px}.directory-table td{padding:10px 8px}.product-open{text-align:left;line-height:1.4}.quality{font-size:12px;white-space:nowrap;padding:6px 9px;min-height:30px;border-radius:16px}.quality.complete{color:#167453;background:#e7f5ef}.quality.needs-update{color:#945c0a;background:#fff2d9}.product-editor{max-width:640px}.product-editor small{display:block}.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.photo-editor{display:flex;gap:16px;margin:16px 0}.photo-editor>div{flex:1;min-width:0}.photo-preview{height:110px;display:flex;align-items:center;justify-content:center;background:#f7f9fa;border-radius:8px;color:#b5bec2;font-size:12px}.photo-preview img{max-width:100%;max-height:100%;object-fit:contain}.photo-label{display:block;font-size:12px;text-align:center;cursor:pointer;padding:8px}.photo-label input{display:none}.return-status{color:#9b4a28;font-weight:600}.receipt-watermark-wrap{position:relative}.receipt-watermark{position:absolute;top:45%;left:5%;right:5%;text-align:center;transform:rotate(-20deg);font-size:clamp(24px,6vw,50px);color:#ae2939aa;border:3px solid currentColor;padding:8px;pointer-events:none}.settled-receipt{border-top:1px solid #e1e8eb;margin-top:18px;padding-top:12px}.app-update{position:fixed;z-index:9999;bottom:78px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;background:#fff;box-shadow:0 4px 24px #173d4a30;border:1px solid #dbe4e7;border-radius:12px;padding:10px;white-space:nowrap}.app-update button{padding:6px 10px;min-height:32px}.welcome-message{text-align:center}.welcome-message>span{font-size:42px}.medicine-watermark.photo{margin:0 auto;display:flex;align-items:center;justify-content:center}.workspace-label{font-size:10px}
@media(min-width:1050px){body[data-interface=admin]{padding-left:205px}body[data-interface=admin] header{left:205px}body[data-interface=admin] #nav{position:fixed;left:0;top:0;bottom:0;width:190px;height:100%;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:92px 12px 20px;background:#173747;border:0}body[data-interface=admin] #nav:before{content:'Rashid Medical Store';position:absolute;top:28px;color:white;font-size:16px;left:18px;right:18px;font-weight:600}body[data-interface=admin] #nav button{flex:none;color:#e5f2f4;padding:15px;text-align:left;border-radius:9px;margin:2px 0}body[data-interface=admin] #nav button.active{background:#237789;color:white}body[data-interface=admin] main{max-width:1200px}body[data-interface=admin] .metrics{grid-template-columns:repeat(3,1fr)}}
@media(max-width:500px){.edit-grid{grid-template-columns:1fr}.directory-table th,.directory-table td{font-size:12px;padding:8px 5px}.directory-table th:nth-child(3),.directory-table td:nth-child(3){display:none}.directory-controls{gap:6px}.directory-controls select{max-width:120px}.photo-editor{gap:8px}}
.detail-extra-photo{display:block;max-width:80px;max-height:65px;object-fit:contain;margin:8px auto}.directory-table{width:100%}.settled-receipt .small{line-height:1.5}

/* 15.6.0 dismissible, readable notices */
#notice:not(:empty){background:#eaf4f8;color:#163e50;border:1px solid #9bc5d7;display:flex;align-items:center;gap:12px;padding:12px 16px}
#notice span{flex:1}#notice button{background:transparent;color:#163e50;border:0;font-size:26px;padding:0 8px;min-width:40px}
