:root{--green:#176b55;--deep:#124b3d;--bg:#f5f7f6;--line:#e5ebe8;--muted:#7b8983;--ink:#233c33}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Tahoma,Arial,sans-serif;font-size:14px}button,input,select{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);border-radius:9px;padding:11px 17px;transition:.15s}button:hover{background:#e9f2ed}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--green);color:white;border-color:var(--green)}button.primary:hover{background:var(--deep)}button.danger{color:#b44545}button.small{padding:7px 11px;font-size:12px}a{color:inherit;text-decoration:none}aside{position:fixed;right:0;top:0;bottom:0;width:245px;background:#fff;border-left:1px solid var(--line);padding:32px 21px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;font-size:22px;font-weight:bold}.logo{display:grid;place-items:center;width:43px;height:45px;border-radius:13px;background:var(--green);color:#fff;font-size:29px}.brand small{display:block;font-size:10px;color:var(--muted);font-weight:normal;margin-top:9px}.store{margin:37px 0 24px;padding:16px;background:#f5f8f6;border-radius:10px;font-size:15px}.store small{display:block;font-size:10px;color:var(--muted);margin:8px 23px 0}nav{display:grid;gap:7px}nav a{display:flex;align-items:center;gap:13px;padding:13px;border-radius:9px;color:#6c7e74}nav a.active{background:#e9f3ed;color:var(--green);font-weight:bold}nav a:hover{background:#f2f6f3}.ico{font-size:20px;width:23px;text-align:center}.aside-bottom{margin-top:auto;font-size:10px;color:#6f8276;line-height:2}.aside-bottom small{display:block;color:#9aa69e;margin-right:15px}.dot{display:inline-block;width:7px;height:7px;background:#55a381;border-radius:50%;margin-left:5px}main{margin-right:245px;padding:34px 42px;max-width:1750px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:31px}.eyebrow{font-size:11px;color:var(--muted)}h1{font-size:26px;margin:9px 0 0;letter-spacing:-.8px}.header-actions{display:flex;align-items:center;gap:20px}.header-actions>span{font-size:12px;color:var(--muted)}.hero{background:var(--deep);border-radius:16px;color:#fff;padding:29px 32px;display:flex;justify-content:space-between;align-items:center;position:relative;overflow:hidden;margin-bottom:25px}.hero:after{content:'';position:absolute;width:220px;height:220px;border:35px solid #ffffff07;border-radius:50%;left:80px;top:-100px;pointer-events:none}.hero p{font-size:12px;line-height:1.9;color:#c8dfd2;margin:10px 0 0}.hero h2{font-size:22px;margin:0}.hero button{background:#e7f1b8;border:0;color:#234c38;z-index:1;padding:13px 23px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:26px}.card,.panel{background:#fff;border:1px solid var(--line);border-radius:12px}.card{padding:21px}.stat-head{display:flex;justify-content:space-between;align-items:center;color:#73877a;font-size:12px}.stat-icon{padding:8px 10px;border-radius:9px;background:#edf5f0;font-size:18px;color:var(--green)}.card strong{display:block;font-size:26px;letter-spacing:-.6px;margin:17px 0 10px}.card strong small{font-size:11px;color:#95a397;font-weight:normal;margin-right:5px}.hint{font-size:10px;color:var(--muted);line-height:1.8}.dashboard-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:22px}.panel{padding:22px;margin-bottom:22px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:19px}.panel h2{font-size:16px;margin:0}.sub{color:var(--muted);font-size:11px;margin:8px 0 0}.link{color:var(--green);border:0;padding:5px;font-size:11px;background:none}.quick{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.quick button{text-align:right;min-height:110px;padding:17px;background:#fcfdfc}.quick b{display:block;font-size:13px;margin-top:13px}.quick span{font-size:23px;color:var(--green)}.quick small{display:block;color:var(--muted);font-size:10px;margin-top:7px}.empty{padding:43px 20px;text-align:center;color:var(--muted);line-height:1.9}.empty .empty-icon{display:block;font-size:30px;margin-bottom:12px;color:#adc2b4}.alert{background:#fff8e9;padding:14px 16px;border:1px solid #f3e6be;border-radius:9px;color:#927439;font-size:12px;margin-bottom:20px}.toolbar{display:flex;justify-content:space-between;gap:12px;margin-bottom:20px;flex-wrap:wrap}input,select{background:#fff;border:1px solid #dce5df;border-radius:8px;padding:12px;color:var(--ink);min-width:0;outline:none}input:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 3px #176b5510}.search{width:320px;max-width:100%}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:right}th{color:#819187;font-size:11px;background:#f7f9f7;font-weight:normal;padding:13px}td{padding:16px 13px;border-bottom:1px solid #edf1ee;font-size:12px}tr:last-child td{border-bottom:0}.badge{display:inline-block;background:#edf5ef;color:#477758;border-radius:6px;padding:5px 9px;font-size:10px}.badge.warn{background:#fff2dc;color:#a27b32}.sale-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:22px}.products{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.product{text-align:right;padding:17px;min-height:115px}.product .product-icon{display:block;background:#eff5f0;color:#568268;border-radius:8px;width:37px;padding:8px;text-align:center;margin-bottom:12px}.product b{display:block;font-size:12px}.product small{display:block;color:var(--muted);font-size:10px;margin-top:9px}.sum{display:flex;justify-content:space-between;margin:16px 0;font-size:13px}.sum.total{border-top:1px dashed var(--line);padding-top:18px;font-size:18px;font-weight:bold}.full{width:100%}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:flex;flex-direction:column;gap:9px;font-size:12px}.field.wide{grid-column:1/-1}.actions{display:flex;justify-content:flex-end;gap:9px;margin-top:23px}dialog{border:0;border-radius:15px;padding:27px;width:540px;max-width:calc(100% - 28px);max-height:90vh;color:var(--ink);box-shadow:0 30px 100px #10342733}dialog::backdrop{background:#17362c65;backdrop-filter:blur(3px)}dialog h2{margin:0 0 22px;font-size:20px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:14px 23px;background:#173f30;color:white;border-radius:9px;display:none;z-index:10;font-size:13px}footer{display:flex;justify-content:space-between;font-size:10px;color:#93a297;margin-top:35px}.receipt{line-height:1.9}.receipt h2,.receipt>p{text-align:center}.receipt table{white-space:normal}.quantity{width:65px;padding:6px}.chart{height:170px;display:flex;align-items:end;gap:14px;padding-top:20px}.bar-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:end;height:100%;gap:10px;font-size:10px;color:var(--muted)}.bar{width:70%;max-width:50px;background:#6ca98b;border-radius:5px 5px 0 0;min-height:3px}.note{font-size:12px;line-height:2;color:var(--muted)}.settings-row{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.mobile-title{display:none}@media(min-width:1500px){main{padding:40px 60px}}@media(max-width:1100px){aside{width:200px;padding:25px 15px}main{margin-right:200px;padding:26px}.stats{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.sale-layout{grid-template-columns:1fr}.brand{font-size:19px}.header-actions>span{display:none}}@media(max-width:650px){aside{position:relative;width:auto;border:0;padding:18px 18px 0;display:block}.brand{font-size:21px}.brand small{font-size:10px}.store,.aside-bottom{display:none}nav{display:flex;overflow:auto;gap:6px;margin-top:20px;padding-bottom:12px}nav a{flex-shrink:0;padding:9px 12px;gap:6px;font-size:11px}.ico{font-size:15px;width:auto}main{margin:0;padding:22px 16px}header{margin-bottom:22px}h1{font-size:23px}.header-actions button{font-size:12px;padding:11px 14px}.hero{padding:23px 20px;gap:15px}.hero h2{font-size:18px}.hero button{font-size:11px;padding:12px}.hero p{font-size:10px}.stats{gap:10px}.card{padding:15px}.card strong{font-size:23px}.quick{gap:8px}.quick button{padding:13px 9px}.quick b{font-size:11px}.quick small{font-size:9px}.panel{padding:17px}.products{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.field.wide{grid-column:auto}footer span{display:none}.search{width:100%}dialog{padding:21px}.toolbar>button{flex:1}}
@media print{body{background:#fff}aside,main,#toast,.actions{display:none!important}dialog{display:block!important;position:static;max-height:none;width:100%;max-width:100%;box-shadow:none;padding:0}dialog::backdrop{display:none}.receipt{color:black}.receipt td,.receipt th{color:black}}
.camera-button{margin-top:12px;background:#edf5ef;color:var(--green);border-color:#c9dfcf}.barcode-input{display:flex;gap:7px}.barcode-input input{width:100%}.barcode-input button{flex-shrink:0;font-size:11px;padding:9px}.camera-view{position:relative;overflow:hidden;border-radius:12px;background:#14231d;aspect-ratio:4/3}.camera-view video{display:block;width:100%;height:100%;object-fit:cover}.camera-guide{position:absolute;inset:28% 10%;border:2px solid #e7f1b8;border-radius:10px;box-shadow:0 0 0 1000px #0003;pointer-events:none}#scannerStatus{min-height:48px}#scannerDialog{width:520px}@media print{#scannerDialog{display:none!important}}
/* دفتر المحل — calm, legible Arabic workspace */
@font-face{font-family:PlexArabic;src:url('fonts/Arabic-Regular.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:PlexArabic;src:url('fonts/Arabic-SemiBold.ttf') format('truetype');font-weight:600 800;font-display:swap}
:root{--green:#197467;--deep:#133f3c;--bg:#f5f7f9;--line:#e7edef;--muted:#71858a;--ink:#263e44}body{font-family:PlexArabic,Tahoma,Arial,sans-serif;font-size:14px;line-height:1.6;background:radial-gradient(ellipse at 5% 0,#e9f2f0 0,transparent 40%),var(--bg)}button,input,select{font-family:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border-radius:10px;font-weight:600;box-shadow:0 1px 2px #183a3a03}button:hover{transform:translateY(-1px);background:#edf6f3;border-color:#c5dcd5}button.primary{background:linear-gradient(135deg,#218272,#19685d);box-shadow:0 4px 10px #12645218;border:1px solid #19685d}button.primary:hover{background:var(--deep)}button:focus-visible,a:focus-visible{outline:3px solid #9ac8bc;outline-offset:3px}.svg-icon{width:21px;height:21px;flex-shrink:0;vertical-align:middle}.full{width:100%}aside{width:250px;padding:31px 20px;background:#fff;border-left:1px solid #e4ebed;box-shadow:-4px 0 25px #1b494203}.brand{gap:11px;font-size:23px;letter-spacing:-.7px}.brand .logo{width:49px;height:49px;border-radius:14px;background:none;box-shadow:0 6px 14px #1b554b25}.brand small{font-size:10px;color:#82958f;letter-spacing:0;line-height:1.6;margin-top:4px}.store{position:relative;margin:29px 0 25px;padding:14px 12px;background:#f6f8f9;border:1px solid #e9eeee;border-radius:12px;min-height:70px;padding-right:58px;font-size:14px;font-weight:600}.store-image{position:absolute;right:12px;top:17px;width:33px;height:33px}.store-image img{width:100%;border-radius:9px}.store small{margin:2px 0 0;font-size:10px;font-weight:400}nav{gap:7px}nav a{padding:12px 14px;min-height:45px;gap:13px;color:#6e8284;font-size:13px;position:relative}nav a .svg-icon{width:21px;height:21px}nav a.active{background:#eaf5ef;color:#176f60}nav a.active:after{content:'';position:absolute;right:0;top:13px;bottom:13px;width:3px;background:#2a8a73;border-radius:4px}.aside-bottom{border-top:1px solid var(--line);padding-top:20px;color:#738983}.aside-bottom small{font-size:10px}main{margin-right:250px;padding:32px 38px}header{margin-bottom:27px;gap:15px}.eyebrow{font-size:11px;color:#8c9d9c}h1{font-weight:600;font-size:27px;margin-top:4px;letter-spacing:-.5px}.header-actions{gap:18px}.header-actions>span{font-size:11px}h2{font-weight:600}.hero{background:linear-gradient(115deg,#153f3b,#1c6659);padding:27px 32px;border:1px solid #ffffff10;border-radius:18px;margin-bottom:24px;box-shadow:0 8px 20px #1e635a09;min-height:204px}.hero:after{left:8px;top:-80px;width:320px;height:320px;border-width:45px}.hero h2{font-size:26px;letter-spacing:-.5px;margin-top:5px}.hero-kicker{color:#b8d9c6;font-size:11px;letter-spacing:.2px}.hero p{color:#c6ddd6;font-size:12px;margin:6px 0 17px}.hero button{color:#244d40;background:#edf4d2;padding:10px 19px;box-shadow:none;min-height:39px;font-size:12px}.hero-art{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:12px;padding:0 25px}.hero-art>img{width:102px;height:102px;transform:rotate(-7deg);box-shadow:0 15px 25px #092a2933;border-radius:26px}.hero-art>span{display:flex;align-items:center;gap:6px;background:#ffffff13;padding:5px 12px;border:1px solid #ffffff13;border-radius:30px;color:#d8e8df;font-size:9px}.hero-art .svg-icon{width:13px;height:13px}.stats{gap:15px;margin-bottom:24px}.card{padding:20px;border-radius:14px;box-shadow:0 2px 6px #1b3d3703;border-color:#e5ecec}.stat-head{font-size:11px;color:#718689;gap:6px}.stat-icon{width:35px;height:35px;display:inline-flex;align-items:center;justify-content:center;background:#eaf5ee;color:#2c8570;border-radius:11px;padding:0}.stat-icon .svg-icon{width:18px;height:18px}.card:nth-child(2) .stat-icon{background:#edf1fc;color:#6683b7}.card:nth-child(3) .stat-icon{background:#fff4e5;color:#b28e47}.card:nth-child(4) .stat-icon{background:#f2edfa;color:#9278b9}.card strong{font-size:27px;margin:14px 0 5px;line-height:1.4;font-weight:600;letter-spacing:0;font-variant-numeric:tabular-nums}.card strong small{font-size:10px;font-weight:400;color:#8c9b9c}.hint{font-size:10px;color:#90a09e}.panel{padding:22px;border-radius:15px;border:1px solid #e4ebed;box-shadow:0 3px 10px #17382f02;margin-bottom:22px}.panel-head{margin-bottom:21px}.panel h2{font-size:16px;letter-spacing:-.2px}.sub{font-size:10px;color:#92a19f;line-height:1.8;margin-top:4px}.section-label{font-size:9px;color:#8b9d96;background:#f4f7f5;padding:5px 9px;border-radius:6px}.dashboard-grid{grid-template-columns:1.7fr 1fr;gap:21px}.quick{gap:12px}.quick button{position:relative;display:block;border:1px solid #e8eeee;border-radius:12px;padding:16px;background:#fff;min-height:122px;text-align:right;box-shadow:none}.quick button:hover{border-color:#b7d6c8;background:#f7fbf8}.quick-icon{display:inline-flex!important;align-items:center;justify-content:center;background:#eaf5ee;border-radius:10px;width:36px;height:36px;color:#398c70!important}.quick .svg-icon{width:20px;height:20px}.quick button:nth-child(2) .quick-icon{background:#eef0fc;color:#778dc0!important}.quick button:nth-child(3) .quick-icon{background:#fff5e8;color:#b69559!important}.quick button:nth-child(4) .quick-icon{background:#f3eefb;color:#a28bbd!important}.quick button:nth-child(5) .quick-icon{background:#edf5fa;color:#6b97ae!important}.quick button:nth-child(6) .quick-icon{background:#fcf0eb;color:#bb947f!important}.quick b{font-size:12px;font-weight:600;margin-top:10px}.quick small{font-size:9px;color:#91a09b;margin-top:3px}.link{font-weight:400;font-size:11px;box-shadow:none;min-height:30px}.empty{padding:32px 14px;line-height:2.1;font-size:12px;color:#95a6a0}.empty-icon{background:#f4f8f5;display:flex!important;align-items:center;justify-content:center;width:51px;height:51px;border-radius:16px;margin:0 auto 12px!important;color:#9bb7a7}.empty-icon .svg-icon{width:25px;height:25px}.badge{font-size:10px;border-radius:6px;font-weight:400;padding:5px 10px;color:#40806c;background:#eaf6ee}.badge.warn{background:#fff5e3;color:#b0904d}.rate-card{padding:18px;border:1px solid #dce9e2;background:#eef6f1;border-radius:13px;display:flex;gap:12px;align-items:center}.rate-card>.svg-icon{color:#5f9b7e}.rate-card b{font-size:11px;font-weight:600}.rate-card p{font-size:11px;margin:3px 0 0;color:#6b8e7d}.rate-card .link{margin-right:auto;padding:4px}.chart{height:171px;gap:8px}.bar{background:linear-gradient(#83b5a1,#d2e6d8);width:65%;border-radius:6px 6px 2px 2px}.bar-col{font-size:9px}.toolbar{align-items:center;margin-bottom:20px;gap:13px}.toolbar .search{background-color:#fff;min-height:45px}.search{width:350px}input,select{min-height:44px;border-color:#dce6e4;border-radius:9px;padding:10px 12px;line-height:1.6;background-color:#fcfdfd;font-size:13px}input[type=number]{direction:ltr;text-align:right;font-variant-numeric:tabular-nums}.field{font-size:12px;gap:8px;color:#5b7373}.field input,.field select{color:#263e44}.form-grid{gap:18px 15px}.wide{grid-column:1/-1}.actions{border-top:1px solid #edf1ef;padding-top:18px;gap:10px;margin-top:24px}dialog{border-radius:19px;padding:27px;width:610px;box-shadow:0 25px 100px #153b3633}dialog h2{font-size:21px;font-weight:600;margin-bottom:23px}dialog::backdrop{background:#123b3b70;backdrop-filter:blur(4px)}.note{font-size:11px;line-height:2;color:#849792}.currency-bar{display:flex;align-items:center;gap:14px;padding:17px 21px;background:white;border:1px solid #dce9e5;border-radius:13px;margin-bottom:22px}.currency-bar>div{display:flex;align-items:center;gap:11px;margin-left:auto}.currency-bar>div>.svg-icon{background:#edf5f0;width:37px;height:37px;padding:8px;border-radius:10px;color:var(--green)}.currency-bar b{display:block;font-size:12px;font-weight:600}.currency-bar small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.currency-bar button{font-size:11px}.cash-stats{grid-template-columns:repeat(2,1fr)}.balance-lines{display:flex;flex-direction:column;gap:5px}.currency-unit{font-size:.8em;color:#92a199;margin-right:3px;white-space:nowrap}.dollar-text{color:#53806e}.code{font-size:11px;color:#758e85;background:#f4f7f5;padding:4px 7px;border-radius:5px}.cell-sub{display:block;color:#99a8a1;font-size:10px;margin-top:3px}th{padding:13px 12px;background:#f6f9f8;font-size:11px;color:#81958f}td{padding:17px 12px;border-color:#eef3f0;font-size:12px}.table-wrap{border-radius:9px}table{font-variant-numeric:tabular-nums}.small{min-height:30px!important;padding:5px 10px!important;font-size:11px!important;box-shadow:none}.sale-layout{gap:22px;align-items:start}.products{gap:12px}.product{display:block;padding:17px;border-radius:12px;border-color:#e3ede7;min-height:125px}.product-icon{display:flex!important;align-items:center;justify-content:center;width:38px!important;height:38px;padding:0!important;color:#6a9a84!important;background:#eff6f1!important}.product small{font-size:10px;margin-top:7px}.product b{font-weight:600}.camera-button{border-style:dashed;border-color:#b7d5c9;background:#f3f9f5;font-size:12px;min-height:44px}.camera-button .svg-icon{width:19px;height:19px}.checkout-total{background:#edf6ef;border:1px solid #dbeadd;border-radius:12px;padding:18px;display:flex;align-items:center;justify-content:space-between;color:#356d57}.checkout-total strong{font-size:25px;font-weight:600}.checkout-total>span{font-size:12px}.alert.info{color:#638578;background:#eef6f2;border-color:#d8e9df;display:flex;align-items:center;gap:10px;line-height:1.9;font-size:11px}.receipt-logo{display:block;margin:0 auto 12px;width:58px}.receipt h2{margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.barcode-input button{font-size:10px}footer{border-top:1px solid #e4ece6;padding-top:20px;margin-top:25px;font-size:10px;color:#a1aea6}#toast{font-family:inherit;border:1px solid #ffffff20;box-shadow:0 8px 30px #11362a22;max-width:90vw;text-align:center;line-height:1.9}
@media(min-width:1500px){main{padding:36px 55px}}@media(max-width:1150px){.stats{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.hero-art{padding-left:10px}.sale-layout{grid-template-columns:1fr}.hero h2{font-size:24px}}@media(max-width:950px) and (min-width:651px){aside{width:205px;padding:25px 14px}.brand{font-size:20px}.brand .logo{width:43px;height:43px}.brand small{font-size:8px}main{margin-right:205px;padding:28px 23px}.header-actions>span{display:none}.currency-bar{flex-wrap:wrap}}
@media(max-width:650px){body{background:#f5f8f7}aside{position:relative;width:auto;padding:20px 17px 0;box-shadow:none;border-bottom:1px solid #e6eee9}.brand{font-size:23px;gap:11px}.brand .logo{width:46px;height:46px}.brand small{font-size:10px}.store,.aside-bottom{display:none}nav{margin-top:19px;gap:7px;padding-bottom:13px;scrollbar-width:thin;scrollbar-color:#d5e5da transparent}nav a{font-size:11px;padding:9px 12px;gap:7px;min-height:38px;border:1px solid #edf2ef;border-radius:9px}nav a.active:after{display:none}nav a .svg-icon{width:17px;height:17px}main{margin:0;padding:23px 15px}header{margin-bottom:21px}h1{font-size:25px}.eyebrow{font-size:10px}.header-actions button{font-size:11px;padding:9px 12px;min-height:38px}.header-actions .svg-icon{width:17px;height:17px}.hero{padding:22px;min-height:180px;border-radius:16px;gap:5px;align-items:center}.hero h2{font-size:21px;line-height:1.6;max-width:210px}.hero-kicker{font-size:9px}.hero p{font-size:10px;max-width:210px;margin:7px 0 13px}.hero button{font-size:10px;padding:8px 12px;min-height:35px}.hero-art{padding:0 0 0 1px;gap:11px}.hero-art>img{width:65px;height:65px;border-radius:18px}.hero-art>span{display:none}.hero:after{left:-160px;top:-60px;width:270px;height:270px}.stats{gap:10px;margin-bottom:20px}.card{padding:15px 13px;border-radius:12px}.stat-head{font-size:10px;align-items:start}.stat-icon{width:29px;height:29px;border-radius:9px}.stat-icon .svg-icon{width:16px;height:16px}.card strong{font-size:25px;margin-top:10px}.card strong small{font-size:9px}.hint{font-size:9px}.panel{padding:17px;margin-bottom:18px;border-radius:13px}.panel h2{font-size:15px}.panel-head{margin-bottom:17px}.quick{gap:9px}.quick button{padding:13px 10px;min-height:117px;border-radius:10px}.quick-icon{width:32px;height:32px;border-radius:9px}.quick .svg-icon{width:18px;height:18px}.quick b{font-size:11px}.quick small{font-size:8px}.dashboard-grid{gap:0}.currency-bar{padding:14px;gap:10px;flex-wrap:wrap}.currency-bar>div{width:100%;margin-left:0}.currency-bar .field{flex:1}.currency-bar select{width:100%;font-size:11px}.currency-bar button{font-size:10px;max-width:53%;min-height:43px;padding:9px 11px}.toolbar{gap:12px}.toolbar>div{display:flex;gap:8px;flex-wrap:wrap}.toolbar>button{flex:initial}.toolbar button{font-size:11px}.toolbar>.note{width:100%;font-size:10px}.table-wrap{margin:0 -3px}th{font-size:10px}td{font-size:11px;padding:14px 10px}.products{grid-template-columns:repeat(2,1fr)}dialog{padding:23px 19px}.form-grid{grid-template-columns:1fr;gap:15px}.field.wide,.wide{grid-column:1/-1}dialog h2{font-size:20px}.balance-lines{font-size:13px}.cash-stats{grid-template-columns:repeat(2,1fr)}.checkout-total strong{font-size:23px}.actions{flex-wrap:wrap}.receipt .sum.total{font-size:16px}.search{width:100%}.rate-card{margin-bottom:18px}.sum{font-size:12px}.card strong{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}button:hover{transform:none}}
@media print{body{font-family:PlexArabic,Tahoma,sans-serif;background:white}.receipt{font-size:12px}.receipt .currency-unit{color:black}.receipt-logo{width:45px}.actions{display:none!important}}
/* Device-local sign in */
.auth-locked>aside,.auth-locked>main,.auth-locked>dialog{display:none!important}.access-root{min-height:100dvh;display:grid;place-items:center;padding:35px 18px;background:radial-gradient(ellipse at 10% 10%,#dcece4 0,transparent 40%),radial-gradient(ellipse at 90% 90%,#e5ecef 0,transparent 45%),#f5f8f7}.access-root[hidden]{display:none}.access-card{width:100%;max-width:440px;background:#fff;border:1px solid #e0eae5;border-radius:24px;padding:34px;box-shadow:0 22px 75px #214c3c0c}.access-brand{display:flex;align-items:center;gap:13px;padding-bottom:26px;border-bottom:1px solid #edf2ee;margin-bottom:27px}.access-logo{width:58px;height:58px;border-radius:17px;box-shadow:0 7px 16px #214e4220}.access-brand b{font-size:29px;display:block;line-height:1.3;font-weight:600}.access-brand span{font-size:10px;color:#8b9c94;display:block;margin-top:5px}.access-pill{font-size:10px;background:#ecf6ee;color:#558674;padding:5px 10px;border-radius:20px}.access-card h1{font-size:25px;margin:14px 0 8px}.access-description{font-size:12px;line-height:2;color:#84978e;margin-bottom:23px}.access-form{display:grid;gap:17px}.access-form .field{gap:8px}.access-form input{background:#fbfdfb;min-height:47px}.access-form>button{min-height:46px}.access-form .note{margin:0}.password-control{position:relative;display:flex;align-items:center}.password-control input{width:100%;padding-left:66px}.password-toggle{position:absolute;left:6px;top:6px;font-size:10px;min-height:34px;padding:5px 9px;background:#f0f6f2;border:0;color:#52816c;box-shadow:none}.access-message{font-size:11px;color:#a15c46;line-height:1.9;margin:15px 0 0;min-height:0}.access-message:empty{display:none}.access-footer{border-top:1px solid #edf2ee;margin-top:26px;padding-top:17px;color:#a1aea6;font-size:9px;text-align:center}.access-user{display:flex;align-items:center;gap:9px;margin-top:auto;padding:15px 0;border-top:1px solid #eaf0ec}.access-avatar{display:flex;align-items:center;justify-content:center;background:#eef5ef;border-radius:10px;width:35px;height:35px;color:#76a18a}.access-avatar .svg-icon{width:19px;height:19px}.access-user b{font-size:11px;font-weight:600;overflow-wrap:anywhere}.access-user small{display:block;font-size:9px;color:#96a69e}.access-user .link{margin-right:auto;font-size:10px}.access-user+.aside-bottom{margin-top:0;padding-top:12px}@media(max-width:650px){.access-root{padding:23px 15px}.access-card{padding:28px 23px;border-radius:20px}.access-user{margin:6px 0 0;padding:8px 0;border:0}.access-user small{display:none}.access-user .access-avatar{width:26px;height:26px}.access-user b{font-size:10px}.access-user .link{min-height:26px;font-size:10px}.access-brand{padding-bottom:22px;margin-bottom:23px}.access-card h1{font-size:24px}}@media print{.auth-locked .access-root{display:none}}
.access-admin{border-top:1px solid #e9f0eb;margin-top:22px;padding-top:20px;display:grid;gap:8px}.access-admin small{text-align:center;color:#94a59a;font-size:9px}.cloud-status{background:#eaf5ef;color:#618473;padding:10px 15px;border:1px solid #dcece1;border-radius:9px;margin-bottom:22px;font-size:10px;line-height:2}.cloud-status[hidden]{display:none}.cloud-status.cloud-warn{background:#fff6e6;border-color:#f0e2bf;color:#a78c51}.cloud-status button{padding:3px 8px;min-height:26px;font-size:9px;margin-right:6px}

.header-actions button[hidden]{display:none!important}

.manager-signin{display:block;text-align:center;padding:13px 18px;background:var(--green);color:white;border-radius:10px;font-weight:600}.manager-signin:hover{background:var(--deep)}

.inventory-tools{position:sticky;top:10px;z-index:3;display:flex;align-items:center;gap:20px;box-shadow:0 6px 22px #123b3310}.inventory-search{flex:1;min-width:0}.inventory-search>label{display:block;color:var(--deep);font-weight:600;font-size:14px;margin-bottom:10px}.inventory-search-controls{display:flex;gap:9px;align-items:stretch}.inventory-search-controls input{flex:1;min-width:0;width:100%;background:#fff;border:1.5px solid #9bc8b5}.inventory-search-controls input:focus{outline:2px solid #d5eae0;outline-offset:2px}.inventory-search-controls button{display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;margin:0}.inventory-search .note{margin:9px 0 0}.inventory-results{display:flex;justify-content:space-between;gap:12px;color:#688378;font-size:12px;margin-bottom:14px}.inventory-product-link{display:block;background:transparent;border:0;border-radius:7px;padding:6px 0;box-shadow:none;text-align:right;min-width:125px;color:var(--deep)}.inventory-product-link b{display:block;font-size:13px}.inventory-product-link small{display:block;color:var(--green);font-size:11px;margin-top:5px}.inventory-product-link:hover,.inventory-product-link:focus-visible{background:#eef7f1;outline:2px solid #c9e3d4;outline-offset:3px}.inventory-barcode{width:max-content;font-variant-numeric:tabular-nums;font-size:11px}
@media(max-width:650px){.inventory-tools{top:6px;gap:14px;flex-wrap:wrap}.inventory-search{flex-basis:100%}.inventory-search-controls{flex-wrap:wrap}.inventory-search-controls input{flex-basis:100%;min-height:48px;font-size:14px}.inventory-search-controls button{width:100%;min-height:42px}.inventory-tools>.primary{width:100%}.inventory-search .note{font-size:10px;line-height:1.8}.inventory-results{font-size:11px}}
@media(max-width:650px){.inventory-tools{position:static}}

.backup-download-actions{display:flex;flex-wrap:wrap;gap:12px}.backup-download-link{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 17px;border:1px solid #bdd5ca;border-radius:10px;text-decoration:none;color:var(--deep);background:#f2f8f4}.backup-download-link.primary{background:var(--green);color:white;border-color:var(--green)}.backup-download-link:focus-visible{outline:3px solid #b6ddc9;outline-offset:3px}.backup-file-name{overflow-wrap:anywhere;font-size:12px;color:#57746a;background:#f3f7f5;padding:12px;border-radius:9px}.backup-download-actions>button{min-height:46px}#backupDownloadStatus{font-size:13px;line-height:1.9;margin:20px 0}
@media(max-width:650px){.backup-download-actions>*{width:100%}}

.sale-mode-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 21px;margin-bottom:14px;background:#fff;border:1px solid #dce9e5;border-radius:13px}.sale-mode-bar b{display:block;font-size:14px;color:var(--deep)}.sale-mode-bar small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.sale-mode-options{display:flex;gap:7px;background:#eef5f1;border:1px solid #dce8e0;border-radius:12px;padding:5px}.sale-mode-options button{border:0;background:transparent;box-shadow:none;color:#547567;min-width:105px;min-height:44px}.sale-mode-options button.active{background:var(--green);color:#fff;box-shadow:0 3px 10px #176b5520}.sale-mode-options button:focus-visible{outline:3px solid #a9d1bd;outline-offset:2px}
@media(max-width:650px){.sale-mode-bar{flex-wrap:wrap;padding:15px}.sale-mode-options{width:100%}.sale-mode-options button{flex:1;min-width:0}}

.top-exchange-bar{display:flex;align-items:center;gap:13px;padding:16px 20px;margin-bottom:22px;background:#edf6f1;border:1px solid #cfe4d7;border-radius:13px}.top-exchange-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;height:40px;border-radius:11px;background:#dceee3;color:var(--green)}.top-exchange-bar>div{flex:1;min-width:0}.top-exchange-bar b{font-size:13px;color:var(--deep)}.top-exchange-bar p{margin:5px 0 0;font-size:13px;color:#507363;overflow-wrap:anywhere}.top-exchange-bar bdi{font-weight:600;font-variant-numeric:tabular-nums}.top-exchange-bar>button{flex-shrink:0;min-height:44px;background:#fff;border-color:#bcd9c8;color:var(--green);font-size:12px}
@media(max-width:650px){.top-exchange-bar{padding:14px 12px;gap:10px;margin-bottom:18px}.top-exchange-icon{width:32px;height:32px}.top-exchange-bar b{font-size:11px}.top-exchange-bar p{font-size:12px}.top-exchange-bar>button{padding:9px 10px;font-size:11px;min-height:42px}}

.inventory-value-panel{margin-bottom:22px}.inventory-value-panel .card{background:#edf6f1;border-color:#cfe4d7;box-shadow:none}.inventory-value-panel .stat-head{font-size:14px;color:var(--deep)}.inventory-value-panel .stat-icon{background:#dceee3;color:var(--green)}.inventory-value-panel strong{color:var(--deep);margin-top:14px}.inventory-value-panel .hint{display:block;font-size:11px;line-height:1.9;color:#668373}
@media(max-width:650px){.inventory-value-panel{margin-bottom:18px}.inventory-value-panel .stat-head{font-size:12px}.inventory-value-panel .hint{font-size:10px}}

.inventory-value-panel h2{font-size:16px;color:var(--deep);margin:0 0 13px}.inventory-value-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.inventory-value-totals>.card{min-width:0}.inventory-value-totals strong{overflow-wrap:anywhere}@media(max-width:650px){.inventory-value-totals{grid-template-columns:1fr;gap:12px}.inventory-value-panel h2{font-size:14px}}

.checkout-debtor{border:1px solid #cfe2d7;border-radius:12px;padding:17px;background:#f4f9f6;margin:0;min-width:0}.checkout-debtor legend{font-size:13px;color:var(--deep);padding:0 7px}.checkout-debtor>.field{margin-bottom:14px}.checkout-debtor[hidden],#checkoutNewCustomer[hidden]{display:none!important}input[readonly]{background:#eef4f0;color:#527366}
#backupAndroidUpdate[hidden]{display:none!important}#backupAndroidUpdate{margin-top:14px}

.product-price-field{border:1px solid #d9e8df;border-radius:12px;background:#f6faf8;padding:15px;min-width:0;margin:0}.product-price-field legend{font-size:13px;font-weight:600;color:var(--deep);padding:0 7px}.product-price-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.product-price-controls .field{min-width:0}.product-price-controls input,.product-price-controls select{width:100%}@media(max-width:400px){.product-price-controls{grid-template-columns:1fr}}

.invoice-editor,.invoice-editor *{box-sizing:border-box}.invoice-editor{width:100%;min-width:0;max-width:100%;padding-bottom:100px}.invoice-editor fieldset{border:0;padding:0;margin:0;min-width:0}.invoice-editor .form-grid>*{min-width:0}.invoice-editor input,.invoice-editor select{width:100%;min-width:0;max-width:100%}.invoice-edit-lines{display:grid;gap:14px;margin:18px 0}.invoice-edit-card{border:1px solid var(--line,#dbe5df);background:#fff;padding:16px;border-radius:16px;min-width:0}.invoice-edit-card b{overflow-wrap:anywhere}.invoice-edit-actions{position:sticky;bottom:0;z-index:15;display:flex;gap:12px;padding:14px 0 calc(14px + env(safe-area-inset-bottom));background:#f5f8f6;border-top:1px solid #dbe5df}.invoice-edit-actions button{flex:1;min-width:0}.invoice-edit-result{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;text-align:right;margin:6px 0}.invoice-edit-result small{overflow-wrap:anywhere}.invoice-edit-result span{margin-inline-start:auto}#invoiceEditNewCustomer[hidden]{display:none!important}.invoice-editor .panel{min-width:0}.invoice-editor .sum{gap:10px;flex-wrap:wrap}@media(max-width:600px){.invoice-editor .form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.invoice-editor .wide{grid-column:1/-1}.invoice-edit-card .panel-head{align-items:flex-start}.invoice-edit-actions{position:fixed;left:0;right:0;bottom:0;padding-inline:16px}.invoice-editor .panel{padding:16px}}

@media screen and (max-width:600px){#modal:has(.receipt){width:calc(100vw - 20px);max-width:calc(100vw - 20px);padding:16px;margin:auto;overflow-y:auto;overflow-x:hidden}#modal .receipt{width:100%;min-width:0;max-width:100%}#modal .receipt table{table-layout:fixed;width:100%;white-space:normal;min-width:0}#modal .receipt td,#modal .receipt th{padding:10px 4px;overflow-wrap:anywhere}#modal .receipt .sum{gap:8px;flex-wrap:wrap}#modal .actions{display:flex;flex-wrap:wrap;gap:8px}#modal .actions button{min-width:0;flex:1 1 120px}}

@media screen{#modal{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:610px;max-width:calc(100vw - 24px);min-width:0;max-height:calc(100vh - 32px);transform:none;overflow:auto}#modalBody{width:100%;min-width:0;max-width:100%;box-sizing:border-box}#modalBody>*{max-width:100%;min-width:0}}
@media screen and (max-width:600px){#modal.receipt-dialog{inset:0;top:0;right:0;bottom:0;left:0;margin:0;width:100vw;max-width:100vw;height:100vh;max-height:100vh;height:100dvh;max-height:100dvh;border-radius:0;padding:20px 14px calc(24px + env(safe-area-inset-bottom));overflow-y:auto;overflow-x:hidden}#modal.receipt-dialog .receipt{width:100%;max-width:100%;min-width:0;overflow-wrap:anywhere}#modal.receipt-dialog .receipt table{width:100%;table-layout:fixed;white-space:normal;min-width:0}#modal.receipt-dialog .receipt th,#modal.receipt-dialog .receipt td{padding:10px 4px;white-space:normal;overflow-wrap:anywhere}#modal.receipt-dialog .receipt th:first-child{width:36%}#modal.receipt-dialog .receipt p{white-space:normal;overflow-wrap:anywhere}#modal.receipt-dialog .sum{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}#modal.receipt-dialog .actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}#modal.receipt-dialog .actions button{width:100%;white-space:normal;padding:12px 8px;min-width:0}#modal.receipt-dialog .actions .primary{grid-column:1/-1}}
.home-backup-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:24px}.home-backup-panel .note{margin-bottom:0}.home-backup-panel button{flex-shrink:0}@media(max-width:600px){.home-backup-panel{display:block}.home-backup-panel button{width:100%;margin-top:16px}}

@media screen and (max-width:600px){#modal.receipt-dialog .actions .primary{grid-column:auto}#modal.receipt-dialog .actions .invoice-share-button{background:#e6f4eb;border-color:#b9dbc6;color:#176b45;font-weight:600}}

.share-account{display:inline-flex;align-items:center;min-height:36px;padding:0 .65rem;border:1px solid currentColor;border-radius:.5rem;color:#17603e;font-size:.875rem;font-weight:600;text-decoration:none}
.share-account:hover{background:#eaf6ee}
.remember-login{display:flex;align-items:center;gap:.5rem;font-size:.875rem}
.remember-login input{width:1.15rem;height:1.15rem;margin:0;flex:none}

.report-access{display:block;margin:.6rem auto 0;font-size:.875rem}
.report-dialog{width:min(34rem,calc(100% - 1.25rem));max-height:90vh}
.report-dialog textarea{width:100%;resize:vertical}
.report-description{white-space:pre-wrap;overflow-wrap:anywhere;min-width:12rem}

.manager-workspace aside .store,.manager-workspace aside .aside-bottom,.manager-workspace .shop-only{display:none}
.manager-workspace #adminTrials,.manager-workspace #adminReports{scroll-margin-top:1rem}

.signup-actions{display:grid;gap:.55rem;margin-top:.85rem}
.signup-actions .trial-offer{background:#ffda45;border-color:#c79c16;color:#362800}
.signup-actions .trial-offer:hover{background:#ffdf66}
.trial-dialog h2{margin:0 0 .35rem}
.trial-dialog p.note{margin-bottom:.8rem}

/* Identity cards keep their natural height. The desktop menu uses the remaining space. */
#storeTitle{display:block;overflow-wrap:anywhere;line-height:1.5}
.access-user{min-width:0}
.access-user .access-avatar,.access-user .link{flex:0 0 auto}
.access-user .access-identity{flex:1;min-width:0}
.access-identity b,.access-identity bdi{display:block;overflow-wrap:anywhere;line-height:1.4}
@media screen and (min-width:651px){
 body>aside{min-height:0;overflow-y:auto}
 body>aside>.brand,body>aside>.store,body>aside>.access-user,body>aside>.aside-bottom{flex:none}
 body>aside>.store{height:auto;max-height:12rem;overflow-y:auto}
 body>aside>nav{flex:1 1 auto;min-height:3rem;overflow-y:auto;overflow-x:hidden;align-content:start;scrollbar-width:thin}
 body>aside>.access-user{margin-top:0;padding-block:11px}
 body>aside>.aside-bottom{padding-top:7px;line-height:1.5}
}

.access-help{text-align:center;margin-top:16px}.access-help p{margin:0 0 5px;font-size:12px;line-height:1.8;color:var(--muted)}.access-help .report-access{font-size:13px;min-height:40px}
.stock-bell{position:relative;width:46px;min-width:46px;height:46px;padding:10px;display:inline-flex;align-items:center;justify-content:center}.stock-bell[hidden]{display:none}.stock-bell-badge{position:absolute;top:-5px;right:-5px;min-width:20px;height:20px;padding:0 4px;border-radius:12px;background:#c64740;color:#fff;font-size:11px;display:grid;place-items:center;border:2px solid white;font-weight:700}.stock-bell-seen{background:#b87624}.shortage-group{margin-top:16px}.shortage-group h3{font-size:14px;display:flex;gap:9px;align-items:center}.shortage-group h3 span{font-size:11px;border-radius:20px;padding:3px 7px;background:#f1f4f2}.shortage-0 h3{color:#b13e38}.shortage-1 h3{color:#af641c}.shortage-2 h3{color:#927217}.shortage-row{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:right;margin:7px 0;min-width:0}.shortage-row b,.stock-notification b{overflow-wrap:anywhere}.shortage-row small{font-size:11px;color:var(--muted);display:block}.shortage-row strong{white-space:nowrap}.stock-shortage-panel>.panel-head{align-items:flex-start}.stock-notification-list{display:grid;gap:10px;margin-top:16px}.stock-notification{display:grid;grid-template-columns:1fr;gap:7px;text-align:right;width:100%;min-width:0}.stock-notification.unread{border-right:4px solid var(--green);background:#f0f8f3}.stock-notification .badge{justify-self:start}.stock-notification small{color:var(--muted)}.quick>button:last-child:nth-child(odd){grid-column:1/-1}#accountShareCopyStatus textarea{width:100%;min-height:140px}@media(max-width:600px){.header-actions{gap:9px;flex-wrap:wrap}.stock-shortage-panel{padding:16px}.shortage-row{padding:12px 9px}.shortage-row strong{font-size:14px}.stock-shortage-panel .panel-head{gap:10px}.stock-bell{width:42px;height:42px;min-width:42px}}

.nasaq-login-logo{display:block;width:96px;height:auto;margin:12px auto 0}
