:root{--bg: #FBF7F9;--text: #1F1A1D;--muted: #6B6168;--border: #E8DCE2;--line: #F3EDF0;--primary: #C2185B;--primary-dark: #8A0D3E;--link: #B0124F;--primary-soft: #FFF0F6;--ok-bg: #DCF3E6;--ok: #14532D;--ok-dot: #16A34A;--red-bg: #FDE2E2;--red: #7F1414;--yellow-bg: #FEF3C7;--yellow: #854D0E;--grey-bg: #E5E7EB;--orange-bg: #FFF1E7;--orange: #9A3412;--orange-2: #C2410C;--orange-row: #FFF8F2}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:IBM Plex Sans Arabic,system-ui,sans-serif;font-size:14px}a{color:var(--link)}button,input,select,textarea{font-family:inherit;font-size:14px;color:inherit}.ltr{direction:ltr;unicode-bidi:isolate}.shell{display:flex;height:100%;overflow:hidden}.side{width:220px;flex:none;background:#fff;border-inline-end:1px solid var(--border);display:flex;flex-direction:column;padding:16px 12px;gap:4px;overflow-y:auto}.brand{padding:0 8px 12px;display:flex;flex-direction:column}.brand b{font-size:20px;color:var(--primary-dark)}.brand span{font-size:12px;color:var(--muted)}.nav{min-height:44px;padding:0 12px;border-radius:10px;display:flex;align-items:center;justify-content:space-between;text-decoration:none;color:var(--text);cursor:pointer;border:0;background:none;text-align:start;width:100%}.nav:hover{background:var(--bg)}.nav.on{background:var(--primary-soft);color:var(--primary-dark);font-weight:700;border-inline-start:4px solid var(--primary)}.count{min-width:22px;padding:1px 6px;border-radius:999px;background:var(--orange-bg);color:var(--orange);font-size:11px;font-weight:700;text-align:center}.side-foot{margin-top:auto;border-top:1px solid var(--line);padding-top:10px;display:flex;flex-direction:column;gap:6px}.main{flex:1;min-width:0;display:flex;flex-direction:column}.top{height:64px;flex:none;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px;padding:0 20px}.top h1{font-size:20px;font-weight:700;margin:0;white-space:nowrap}.rate-pill{margin-right:auto;height:44px;padding:0 6px 0 14px;border-radius:999px;background:var(--text);color:#fff;display:flex;align-items:center;gap:10px;font-size:13px;border:0;cursor:pointer;white-space:nowrap}.rate-pill span{height:32px;padding:0 12px;border-radius:999px;background:#fff;color:var(--text);display:flex;align-items:center;font-weight:700}.sync{height:40px;padding:0 12px;border-radius:999px;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;white-space:nowrap;border:0;cursor:pointer}.sync i{width:10px;height:10px;border-radius:999px;display:inline-block}.sync.online{background:var(--ok-bg);color:var(--ok)}.sync.online i{background:var(--ok-dot)}.sync.uploading{background:var(--yellow-bg);color:var(--yellow)}.sync.uploading i{background:#eab308}.sync.no_internet{background:var(--orange-bg);color:var(--orange)}.sync.no_internet i{background:var(--orange-2)}.sync.server_down{background:var(--red-bg);color:var(--red)}.sync.server_down i{background:#dc2626}.chip{height:40px;padding:0 12px;border-radius:999px;border:1px solid var(--border);display:flex;align-items:center;font-size:13px;font-weight:600;white-space:nowrap}.content{flex:1;min-height:0;padding:16px 20px;display:flex;gap:16px;overflow:auto}.col{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px}.aside{width:300px;flex:none;display:flex;flex-direction:column;gap:12px}.card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:8px}.card-h{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.card-h>b,.card-t{font-size:16px;font-weight:700}.stats{display:flex;gap:12px;flex-wrap:wrap}.stat{flex:1;min-width:150px;border:1px solid var(--border);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:2px;background:#fff}.stat span{font-size:12px;opacity:.8}.stat b{font-size:22px}.stat.dark{background:var(--text);color:#fff}.stat.green{background:var(--ok-bg);color:var(--ok)}.stat.red{background:var(--red-bg);color:var(--red)}.stat.orange{background:var(--orange-bg);color:var(--orange)}.btn{height:44px;padding:0 14px;border-radius:12px;border:1px solid var(--border);background:#fff;font-weight:600;cursor:pointer;white-space:nowrap}.btn.primary{border:0;background:var(--primary);color:#fff;font-weight:700}.btn.primary:disabled{opacity:.5;cursor:not-allowed}.btn.danger{color:var(--red)}.btn.sm{height:34px;padding:0 10px;font-size:13px;border-radius:10px}.btn.block{width:100%}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.field{display:flex;flex-direction:column;gap:4px}.field>span{font-size:12px;color:var(--muted);font-weight:600}.input{height:48px;border-radius:12px;border:1px solid var(--border);background:#fff;padding:0 12px;width:100%}textarea.input{height:80px;padding:10px 12px;resize:vertical}.input:focus{outline:2px solid var(--primary-soft);border-color:var(--primary)}.seg{display:flex;border:1px solid var(--border);border-radius:12px;overflow:hidden}.seg button{flex:1;min-height:44px;border:0;background:#fff;cursor:pointer;padding:0 8px}.seg button.on{background:var(--primary-soft);color:var(--primary-dark);font-weight:700}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tbl{display:flex;flex-direction:column;overflow-x:auto}.tr{display:grid;gap:8px;align-items:center;min-height:44px;padding:4px 10px;border-bottom:1px solid var(--line);font-size:13px}.tr.head{background:var(--bg);border-radius:10px;font-size:12px;color:var(--muted);font-weight:600;min-height:34px;border:0}.tr.warn{background:var(--orange-row);border-radius:8px}.tr.good{background:#f0faf4}.tr.clickable{cursor:pointer}.tr.clickable:hover{background:var(--bg)}.tr.sel{background:var(--primary-soft)}.num{font-variant-numeric:tabular-nums}.badge{padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap;display:inline-block}.badge.ok{background:var(--ok-bg);color:var(--ok)}.badge.warn{background:var(--orange-bg);color:var(--orange)}.badge.red{background:var(--red-bg);color:var(--red)}.badge.yellow{background:var(--yellow-bg);color:var(--yellow)}.badge.grey{background:var(--grey-bg);color:#374151}.note{background:var(--yellow-bg);border-radius:10px;padding:10px;font-size:12px;color:var(--yellow)}.note.info{background:var(--primary-soft);color:var(--primary-dark)}.err{background:var(--red-bg);color:var(--red);border-radius:10px;padding:10px;font-size:13px}.muted{color:var(--muted);font-size:12px}.empty{color:var(--muted);padding:24px;text-align:center}.sum-row{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--line)}.sum-row.total{font-weight:700;border-bottom:0;border-top:2px solid var(--border)}.imgpick{border:1px dashed var(--border);border-radius:12px;min-height:56px;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;background:var(--bg);padding:6px}.imgpick.req{border-color:var(--primary)}.imgpick img{max-height:44px;border-radius:6px}.modal-bg{position:fixed;top:0;right:0;bottom:0;left:0;background:#1f1a1d73;display:flex;align-items:center;justify-content:center;z-index:50;padding:16px}.modal{background:#fff;border-radius:16px;padding:18px;width:460px;max-width:100%;max-height:90vh;overflow:auto;display:flex;flex-direction:column;gap:12px}.modal h2{margin:0;font-size:18px}.modal>*{flex-shrink:0}.toast{position:fixed;bottom:20px;left:20px;background:var(--text);color:#fff;padding:12px 16px;border-radius:12px;z-index:60;max-width:420px}.login-wrap{min-height:100%;display:flex;align-items:center;justify-content:center;padding:16px}.login{width:420px;max-width:100%;background:#fff;border:1px solid var(--border);border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:14px}.logo{width:72px;height:72px;object-fit:contain}.brand-logo{width:44px;height:44px;object-fit:contain}.print-logo{height:22mm;object-fit:contain}.thermal .print-logo{height:16mm;filter:grayscale(1) contrast(1.6)}.menu-btn{display:none}@media(max-width:900px){.shell{flex-direction:column}.side{flex:none}.main{min-height:0}.side{width:100%;flex-direction:row;overflow-x:auto;padding:8px;border-inline-end:0;border-bottom:1px solid var(--border);gap:4px}.side .brand{display:none}.side-foot{margin:0;padding:0;border:0;flex-direction:row;gap:4px}.side-foot .nav{width:auto}.nav{width:auto;white-space:nowrap;min-height:40px}.nav.on{border-inline-start:0;border-bottom:3px solid var(--primary)}.top{height:auto;min-height:56px;flex-wrap:wrap;padding:8px 12px;gap:8px}.top .chip,.top .date{display:none}.rate-pill{margin-right:0}.content{flex-direction:column;padding:12px}.aside{width:100%}.grid2{grid-template-columns:1fr}}.print-only{display:none}@media print{@page{size:A5;margin:10mm}body{background:#fff}.no-print,.shell,.modal-bg,.toast{display:none!important}.print-only{display:block!important}}.voucher{font-family:IBM Plex Sans Arabic,serif;color:#000;width:100%;font-size:12px}.voucher .vh{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid var(--primary);padding-bottom:6px}.voucher h3{text-align:center;margin:8px 0 0;font-size:18px}.voucher .vsub{text-align:center;color:#555;margin-bottom:8px}.voucher .vrow{display:flex;justify-content:space-between;padding:4px 0;border-bottom:1px dotted #999}.voucher .sig{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.voucher .sig div{border-top:1px solid #000;padding-top:4px;min-height:60px}@media(max-width:1200px){.tbl>.tr{min-width:760px}}.tr.st-red{background:var(--red-bg);border-radius:8px}.tr.st-yellow{background:var(--yellow-bg);border-radius:8px}.tr.st-grey{background:var(--grey-bg);border-radius:8px}.neg{color:var(--red);font-weight:700}.rep-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:14px;align-items:start}.rep-list{gap:2px;max-height:calc(100vh - 110px);overflow-y:auto;position:sticky;top:0}.rep-layout .card,.rep-layout .stats{min-width:0}.rep-layout .stat{min-width:120px}@media(max-width:1100px){.rep-layout{grid-template-columns:minmax(0,1fr)}.rep-list{max-height:220px;position:static}}.rep-list>*{flex-shrink:0}.td{display:contents}@media(max-width:640px){.tbl{overflow-x:visible}.tbl>.tr.head{display:none!important}.tbl>.tr{display:flex!important;flex-direction:column;align-items:stretch;gap:4px;min-width:0!important;padding:10px;border:1px solid var(--line);border-radius:12px;margin-bottom:8px}.tbl .td{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;text-align:end}.tbl .td:before{content:attr(data-label);color:var(--muted);font-size:12px;text-align:start}.tbl .td[data-label=""]:before{display:none}.tbl .td[data-label=""]{justify-content:flex-start}.top h1{font-size:17px}.rate-pill{height:38px;font-size:12px}.stats .stat{flex:1 1 140px;min-width:0}.modal-bg{padding:8px;align-items:flex-end}.modal{width:100%;max-height:94vh;border-radius:16px 16px 12px 12px}.btn{min-height:44px}}.linkish{background:none;border:0;padding:0;color:var(--primary-dark);text-decoration:underline;cursor:pointer;font:inherit}
