@import url('/fonts.css');
:root{--green:#37457f;--dark:#263361;--mint:#e4e9f7;--lime:#e5eaff;--bg:#f5f6fa;--paper:#fff;--ink:#23305a;--muted:#53617d;--line:#e1e5ef;--danger:#b04438;--amber:#936b26;--shadow:0 8px 30px #153b2a06;font-family:'Cairo',Tahoma,Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button,a{touch-action:manipulation}a{color:var(--green)}button{border:0;background:none;color:inherit}svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:29px;font-weight:650;letter-spacing:-.6px}h2{font-size:20px;font-weight:650}h3{font-size:15px}p{line-height:1.8}small,.muted{color:var(--muted);font-size:14px}bdi{unicode-bidi:isolate}.layout{min-height:100vh;display:grid;grid-template-columns:238px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;background:var(--dark);color:#e2e7f6;padding:31px 19px;display:flex;flex-direction:column;gap:30px}.brand{display:flex;align-items:center;gap:11px;padding:0 12px}.mark{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:var(--lime);color:var(--dark);font-size:28px;font-weight:800}.brand-name{font-size:27px;font-weight:650;letter-spacing:-1px;line-height:1.15;direction:ltr}.brand-sub{font-size:14px;letter-spacing:2px;color:#a4b0d2;margin-top:5px;direction:ltr}.nav-label{font-size:14px;color:#a4b0d2;padding:0 14px;margin:8px 0 12px;letter-spacing:1.2px}.nav{display:flex;flex-direction:column;gap:5px}.nav button{display:flex;align-items:center;gap:12px;text-align:start;padding:12px 14px;border-radius:9px;font-size:14px;color:#d1d9ee}.nav button:hover{background:#ffffff0a}.nav button.active{color:var(--dark);background:var(--lime);font-weight:650}.sidebar-foot{margin-top:auto;border-top:1px solid #ffffff1a;padding:22px 10px 0;font-size:14px;line-height:1.8;color:#b9c5e5}.powered{color:#a0afd6;font-size:14px;letter-spacing:1.5px;margin-top:12px}.main{min-width:0}.topbar{min-height:83px;padding:18px 35px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);background:#fafbfe;gap:18px}.topbar-left,.topbar-right,.row{display:flex;align-items:center;gap:12px}.row.between{justify-content:space-between}.topbar select{background:transparent;border:0;color:var(--ink);font-size:14px;max-width:165px}.avatar{width:34px;height:34px;display:grid;place-items:center;background:#e7ebf8;border:1px solid #d6ddef;border-radius:50%;font-size:14px}.divider{height:24px;width:1px;background:var(--line)}.language{border:1px solid var(--line);background:white;padding:7px 12px;border-radius:7px;font-size:14px}.online{display:flex;align-items:center;gap:7px;font-size:14px;color:var(--green)}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#6379b1}.content{padding:30px 35px 38px;max-width:1650px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:25px}.eyebrow{font-size:14px;color:#52658b;letter-spacing:1.8px;margin-bottom:7px}.subheading{font-size:14px;color:var(--muted);margin-top:9px}.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:6px;font-size:14px;background:#edf0fb;color:#4b5e95;white-space:nowrap}.pill.amber{background:#fff3da;color:var(--amber)}.pill.red{background:#fceae6;color:var(--danger)}.pill.outline{border:1px solid var(--line);background:transparent;color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 17px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:14px;font-weight:600;text-decoration:none}.btn.primary{background:var(--green);border-color:var(--green);color:#fff}.btn.soft{background:var(--mint);border-color:var(--mint)}.btn.small{padding:7px 10px;font-size:14px}.btn.danger{color:var(--danger)}.hero{background:#e8ecf8;border:1px solid #dbe2f5;border-radius:14px;display:flex;min-height:185px;overflow:hidden;margin-bottom:24px;position:relative}.hero-copy{padding:27px 30px;position:relative;z-index:1;flex:1}.hero h2{font-size:27px;line-height:1.5;margin:5px 0 8px}.hero p{font-size:14px;color:#62729a;max-width:470px}.hero .btn{margin-top:19px;background:#fff9;border-color:#d4dcf1}.hero-art{width:31%;min-width:180px;display:flex;align-items:center;justify-content:center;position:relative;background:radial-gradient(ellipse at center,#fff8,transparent 70%)}.hero-art img{width:85%;height:180px;object-fit:contain;mix-blend-mode:multiply;transform:rotate(-10deg)}.hero-tag{position:absolute;bottom:20px;inset-inline-end:20px;font-size:14px;color:#50618a}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.stat{background:white;padding:20px;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:14px}.stat-icon{background:#f0f3fb;padding:8px;border-radius:9px;color:#6378aa;display:flex}.stat-value{font-size:28px;font-weight:650;letter-spacing:-.8px;margin:14px 0 8px;line-height:1.2}.stat-value span{font-size:14px;font-weight:400;color:var(--muted);letter-spacing:0}.stat-note{font-size:14px;color:var(--muted)}.two-col{display:grid;grid-template-columns:1.45fr 1fr;gap:22px;margin-bottom:22px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:23px;box-shadow:var(--shadow);min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:21px}.panel h2{font-size:16px}.panel p{font-size:14px}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.step{padding:15px 12px;background:#f7f8fc;border:1px solid #e8edf7;border-radius:9px;font-size:14px;line-height:1.7}.step.done{background:#edf2fc;border-color:#dce5f8}.step-number{font-size:14px;color:#52658b;margin-bottom:14px}.step span{display:block;font-size:14px;color:var(--muted);margin-top:9px}.branch-row{margin-bottom:24px}.bar{height:8px;background:#edf1fa;border-radius:8px;margin-top:11px;overflow:hidden}.bar span{height:100%;background:#7488bd;display:block;border-radius:8px}.branch-row:nth-child(3) .bar span{background:#bcc9e8}.branch-values{display:flex;justify-content:space-between;font-size:14px}.branch-values small{font-size:14px}.empty{text-align:center;padding:32px 20px;color:var(--muted);font-size:14px;line-height:1.9}.empty svg{width:30px;height:30px;margin-bottom:10px}.notice{padding:13px 16px;background:#f0f3fb;border:1px solid #e1e7f4;border-radius:8px;color:#536488;font-size:14px;line-height:1.9;margin-bottom:20px}.notice.warn{background:#fff8e9;border-color:#f0e4c8;color:#8a6a32}.footer-note{font-size:14px;line-height:1.9;color:#5b6882;margin-top:26px;display:flex;justify-content:space-between;gap:15px}.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.search{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:10px 14px;flex:1;min-width:200px;color:var(--muted)}.search input{border:0;outline:none;width:100%;background:transparent;color:var(--ink);font-size:14px}.categories{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:21px}.categories button{border:1px solid var(--line);background:white;font-size:14px;padding:9px 13px;border-radius:7px}.categories button.active{background:var(--green);color:white;border-color:var(--green)}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:23px;align-items:start}.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.product{background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden;display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}.product:hover{transform:translateY(-2px);box-shadow:0 8px 22px #23305a10}.product-photo{height:140px;background:#fff;display:flex;align-items:center;justify-content:center;padding:15px;position:relative}.product-photo img{max-width:100%;width:100%;height:100%;object-fit:contain}.product-photo .pill{position:absolute;top:10px;inset-inline-start:10px;z-index:1}.product-body{padding:13px 15px 15px;border-top:1px solid #f4f6fb;display:flex;flex-direction:column;flex:1}.product-category{font-size:14px;color:#52658b;margin-bottom:5px}.product h3{font-size:14px;line-height:1.65;min-height:40px;direction:ltr;text-align:start;font-weight:600}.product .sku{font-size:14px;color:#5b6882;direction:ltr;margin:4px 0 10px}.product select{width:100%;padding:6px 8px;border:1px solid var(--line);border-radius:5px;background:#fafbfe;color:#465b84;font-size:14px;margin-bottom:12px}.product-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:auto;gap:5px}.price{font-size:16px;font-weight:650;white-space:nowrap}.price small{font-size:14px;font-weight:400}.add{width:30px;height:30px;border-radius:7px;background:var(--green);color:white;font-size:20px;display:grid;place-items:center}.cart{position:sticky;top:20px;padding:21px}.cart-line{border-bottom:1px solid var(--line);padding:14px 0;display:flex;gap:10px;align-items:center}.cart-line img{width:45px;height:45px;object-fit:contain}.cart-line-name{font-size:14px;line-height:1.7;flex:1;min-width:0}.qty{display:flex;align-items:center;gap:9px;font-size:14px;margin-top:8px}.qty button{border:1px solid var(--line);border-radius:4px;width:24px;height:23px}.cart-totals{padding:20px 0}.cart .btn{width:100%}.cart select{width:100%;margin:5px 0 13px;padding:10px;border:1px solid var(--line);background:#fafbfe;border-radius:6px;font-size:14px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:start;font-size:14px}th{text-align:start;font-weight:500;font-size:14px;color:#52617d;background:#f8f9fd;padding:12px 13px;border-bottom:1px solid var(--line)}td{padding:14px 13px;border-bottom:1px solid #ecf0f8;vertical-align:middle}tr:last-child td{border-bottom:0}.cell-name{max-width:270px;white-space:normal;line-height:1.7}.cell-name small{display:block;font-size:14px}.code{font-size:14px;direction:ltr;font-family:Consolas,monospace}.amount{font-variant-numeric:tabular-nums}.alert-list{display:flex;flex-direction:column;gap:13px}.alert{display:flex;gap:11px;padding:13px;background:#fbf8ef;border-radius:8px;font-size:14px;line-height:1.8}.alert svg{color:#b9964b}.section-gap{margin-top:23px}.journal-total{display:flex;gap:24px;margin-bottom:20px;flex-wrap:wrap}.journal-total div{padding:15px 20px;border:1px solid var(--line);border-radius:8px;background:#f7f9fd;min-width:150px}.journal-total b{display:block;margin-top:8px;font-size:20px}.status-line{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--green);margin-top:12px}dialog{border:1px solid var(--line);border-radius:14px;padding:0;width:560px;max-width:calc(100vw - 32px);max-height:90vh;color:var(--ink);box-shadow:0 24px 90px #23305a26}dialog::backdrop{background:#103b3259;backdrop-filter:blur(3px)}.modal{padding:27px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:23px}.modal-head h2{font-size:20px}.close{font-size:23px;color:var(--muted)}label.field{display:flex;flex-direction:column;gap:8px;font-size:14px;margin-bottom:17px}.field input,.field select{padding:11px 12px;border:1px solid #d8dfef;border-radius:7px;background:#fcfdff;color:var(--ink);width:100%;min-width:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}.receipt-head{text-align:center;border-bottom:1px dashed #cbd5ed;padding-bottom:20px;margin-bottom:20px}.receipt-head h2{font-size:29px;direction:ltr}.receipt-head p{font-size:14px;color:var(--muted)}.receipt-total{border-top:1px dashed #cbd5ed;margin-top:20px;padding-top:18px}.receipt-line{display:flex;justify-content:space-between;gap:20px;font-size:14px;margin:14px 0;line-height:1.8}.receipt-line .name{flex:1}.receipt-status{padding:15px;background:#edf2fb;border-radius:8px;margin-top:20px;font-size:14px;line-height:1.8}.assistant-results{margin-top:20px}.assistant-box{padding:30px;background:#ecf0fb;border:1px solid #dce4f6;border-radius:12px;margin-bottom:25px}.assistant-box h2{font-size:24px;margin-bottom:12px}.assistant-box p{font-size:14px;color:#536488;margin-bottom:18px}.assistant-presets{display:flex;gap:10px;flex-wrap:wrap}.store-banner{background:var(--dark);color:white;padding:30px;border-radius:14px;margin-bottom:24px}.store-banner h2{font-size:26px;margin-bottom:7px}.store-banner p{font-size:14px;color:#c4d0ee}.store-header{display:flex;justify-content:space-between;align-items:center;padding:22px 35px;background:white;border-bottom:1px solid var(--line)}.store-layout .content{max-width:1350px}.store-header .brand-name{color:var(--green)}.store-header .brand-sub{color:#8295bd}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.guide-card{padding:24px;background:white;border:1px solid var(--line);border-radius:12px}.guide-card p,.guide-card li{font-size:14px;line-height:2;color:#536488}.guide-card h2{margin-bottom:13px}.guide-card ol,.guide-card ul{padding-inline-start:20px}.guide-number{font-size:14px;letter-spacing:2px;color:#52658b;margin-bottom:12px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(100px);background:var(--dark);color:white;padding:14px 22px;border-radius:9px;z-index:50;font-size:14px;max-width:90vw;box-shadow:0 10px 35px #0002;transition:transform .2s}#toast.show{transform:translateX(-50%) translateY(0)}#toast.error{background:#8f3e32}.loading{display:grid;place-items:center;min-height:100vh;color:var(--green);font-size:18px}.inline-error{color:var(--danger);background:#fff1eb;padding:12px;border-radius:7px;font-size:14px;margin-top:15px;line-height:1.8}.nosale{color:var(--danger)}
@media(min-width:1500px){.products{grid-template-columns:repeat(4,minmax(0,1fr))}.product-photo{height:165px}.hero-art img{height:210px}.hero{min-height:220px}}
@media(max-width:1150px){.layout{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:25px 12px}.brand{padding:0 5px}.brand-name{font-size:23px}.content{padding:25px 22px}.topbar{padding:18px 22px}.products{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-layout{grid-template-columns:minmax(0,1fr) 280px}.stats{gap:10px}.stat{padding:15px}.stat-value{font-size:24px}.hero h2{font-size:24px}}
@media(max-width:850px){.layout{grid-template-columns:76px minmax(0,1fr)}.sidebar{padding:24px 10px;align-items:center}.sidebar .brand>div:last-child,.nav-label,.nav button span,.sidebar-foot{display:none}.brand{padding:0}.nav button{padding:13px}.content{padding:22px 18px}.topbar{padding:14px 18px}.two-col{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.pos-layout{grid-template-columns:1fr}.cart{position:static}.products{grid-template-columns:repeat(3,minmax(0,1fr))}.topbar-left .online{display:none}.hero-art{min-width:125px}.hero-copy{padding:23px}.page-heading h1{font-size:25px}.guide-grid{grid-template-columns:1fr}}
@media(max-width:560px){.layout{display:block}.sidebar{position:static;height:auto;padding:12px;display:flex;flex-direction:row;overflow-x:auto;gap:18px}.sidebar .brand{display:none}.nav{flex-direction:row}.nav button{padding:10px}.topbar{padding:12px;gap:5px;flex-wrap:wrap}.topbar-right{gap:7px}.content{padding:20px 13px}.hero-art{display:none}.hero h2{font-size:23px}.page-heading{align-items:start}.page-heading .btn{font-size:14px;padding:9px}.products{grid-template-columns:repeat(2,minmax(0,1fr))}.product-photo{height:120px}.product-body{padding:10px}.product h3{font-size:14px}.price{font-size:14px}.steps{grid-template-columns:repeat(2,1fr)}.panel{padding:18px}.footer-note{display:block}.store-header{padding:18px}.form-grid{grid-template-columns:1fr;gap:0}}
/* Original BioFoot identity and persistent product navigation. */
.brand{padding:0;justify-content:center;flex-shrink:0}
.brand-logo{display:block;width:154px;height:auto;object-fit:contain;background:#fff;border-radius:9px;padding:8px}
.sidebar .brand{align-self:center}
.store-header .brand-logo{width:140px;padding:0;border-radius:0}
.receipt-head .brand{margin-bottom:12px}
.receipt-head .brand-logo{width:150px;padding:0}
.categories{position:sticky;top:0;z-index:20;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:13px 0;margin-bottom:20px;background:var(--bg);border-bottom:1px solid var(--line);scrollbar-width:thin;box-shadow:0 8px 15px #26336108;scroll-padding-inline:12px}
.categories button{flex-shrink:0;white-space:nowrap;font-size:14px}
.pos-layout>section{min-width:0}
.cart{top:80px}
.code{font-family:'Cairo',Tahoma,Arial,sans-serif}
@media(max-width:850px) and (min-width:561px){.sidebar .brand-logo{width:57px;padding:4px}}
@media(max-width:560px){.store-header{gap:10px;flex-wrap:wrap}.store-header .brand-logo{width:110px}.categories{padding:10px 0}.categories button{font-size:14px}.cart{top:auto}}
/* Readable Cairo sizing: secondary text never below 14px, controls at 16px. */
body{font-size:16px;line-height:1.7}
input,select,.search input,.product select,.cart select,.topbar select,.store-header select,.field input,.field select{font-size:16px;line-height:1.6}
.product h3{font-size:16px;line-height:1.65;min-height:53px;overflow-wrap:anywhere}
.product-category,.product .sku{font-size:14px;font-weight:500}
.product-category{margin-bottom:8px}
.product .sku{margin:9px 0 13px}
.product select{min-height:46px;padding:9px 10px;color:var(--ink)}
.price{font-size:22px;line-height:1.5}
.price small{font-size:14px;color:var(--muted)}
.product-body{padding:17px}
.product-photo{height:160px}
.add{width:42px;height:42px;flex-shrink:0;font-size:25px}
.categories button,.btn,.language{font-size:15px;min-height:44px}
.categories button{padding:9px 16px}
.btn.small{font-size:14px;min-height:40px}
.cart-line-name,.receipt-line,.subheading,.hero p,.panel p,.store-banner p,.assistant-box p,.guide-card p,.guide-card li{font-size:15px}
.cart-line{flex-wrap:wrap}
.cart-line-name{min-width:110px}
.qty{font-size:16px}
.qty button{width:34px;height:34px}
.panel h2{font-size:19px}
.sidebar{overflow-y:auto}
.topbar,.topbar-left,.topbar-right,.store-header,.store-header>.row{flex-wrap:wrap}
.topbar select{max-width:190px}
.store-header select{border:1px solid var(--line);border-radius:7px;padding:7px 10px;background:#fff;color:var(--ink)}
.stat{min-width:0}
.stat-value{overflow-wrap:anywhere}
.stat-top{align-items:flex-start}
.footer-note{color:var(--muted)}
.store-banner .eyebrow{color:#d4def7}
.hero-tag{background:#e8ecf8e6;padding:4px 7px;border-radius:5px}
.cart{top:90px}
/* Keep checkout reachable when the basket is taller than the screen. */
@media(min-width:851px){.cart{max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}}
@media(max-width:1150px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.product-body{padding:12px}.product-photo{height:135px}.product h3{font-size:16px}.price{font-size:20px}.product-bottom{flex-wrap:wrap;gap:10px}.categories button{font-size:15px}.page-heading{flex-wrap:wrap}.page-heading .btn{font-size:15px}.sidebar{overflow-y:visible}.cart{top:auto}}
@media print{@page{size:A4;margin:15mm}body{background:#fff!important}body>:not(dialog){display:none!important}dialog[open]{position:static!important;inset:auto!important;margin:0!important;width:100%;max-width:100%;max-height:none;height:auto;overflow:visible;box-shadow:none;border:0;display:block}dialog:not([open]),dialog::backdrop,.modal-head,.modal-actions,.close{display:none!important}.modal{padding:0}.receipt-line,.receipt-total,.receipt-status{break-inside:avoid}.receipt-head .brand-logo{max-height:65px;width:auto}}

.pos-customer{border:1px solid var(--line);border-radius:10px;padding:12px;margin:14px 0;background:#fafbff}.customer-selected{display:flex;flex-direction:column;gap:4px;margin:10px 0;overflow-wrap:anywhere}.customer-results{display:grid;gap:10px;margin-top:16px}.customer-result{display:grid;grid-template-columns:1fr auto;gap:5px 15px;text-align:start;background:#fafbff;border:1px solid var(--line);padding:14px;border-radius:9px;color:var(--ink);font:inherit;cursor:pointer}.customer-result strong{grid-column:1/-1;font-size:17px}.customer-result:focus-visible{outline:3px solid var(--accent)}
.expiry-panel{border:1px solid #dfe4ef;border-radius:18px}
.expiry-panel>p{line-height:1.8}
.expiry-alerts{display:grid;gap:14px;margin-top:18px}
.expiry-alert{border:1px solid #e3ddc3;border-inline-start:5px solid #b38b24;background:#fffdf5;padding:20px;border-radius:12px}
.expiry-alert.critical{border-color:#ecc9c8;border-inline-start-color:#b43535;background:#fff7f7}
.expiry-alert .row{gap:12px;flex-wrap:wrap}
.expiry-alert strong{font-size:17px}
.expiry-details{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:14px;font-size:16px}
.expiry-acknowledged{padding:12px;background:#eff5ee;border-radius:8px;font-size:16px;line-height:1.8}
.expiry-alert .pill{white-space:normal;font-size:15px}
