@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap');
body{font-family:var(--app-font,'Tajawal','Segoe UI',sans-serif)}[hidden]{display:none!important}input,select,textarea,button{font-family:inherit}.font-sample{font-size:20px;border:1px dashed var(--line);padding:18px;border-radius:9px}.skin-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;padding:0 23px 23px}.skin-option{text-align:start;background:white;border:1px solid var(--line);border-radius:10px;padding:12px;color:var(--ink)}.skin-option.selected{outline:2px solid var(--primary);background:#eef8f4}.skin-option b,.skin-option small{display:block;margin-top:10px}.skin-option small{font-size:12px;line-height:1.7;color:var(--muted)}.skin-mini{height:130px;background:#fff;position:relative;overflow:hidden;border:1px solid #dce5e5;box-shadow:0 3px 6px #18382710;padding:14px}.skin-mini i{display:block;background:#d7e4e0}.mini-brand{width:40%;height:9px;background:var(--primary)!important}.mini-title{width:25%;height:5px;margin-top:8px}.mini-lines{margin-top:20px}.mini-lines i{height:4px;margin:9px 0}.mini-total{width:35%;height:9px;margin-inline-start:auto;margin-top:12px;background:var(--primary)!important}.mini-signature .mini-brand{width:65%;height:15px;margin:auto}.mini-signature .mini-title{margin:8px auto}.mini-executive{border-top:32px solid var(--primary)}.mini-executive .mini-brand{background:#adcfc1!important}.mini-geometric:before{content:'';position:absolute;inset-inline-end:0;top:0;width:48%;height:40px;background:var(--primary);clip-path:polygon(30% 0,100% 0,100% 100%,0 100%)}.mini-ribbon{border-inline-start:15px solid var(--primary)}.invoice-stage{container-type:inline-size}.invoice-paper{position:relative;isolation:isolate;font-family:var(--app-font);overflow:hidden}.document-head{height:auto!important;position:relative;display:flex;justify-content:space-between;align-items:start;gap:20px;background:transparent;padding:0 0 24px!important;border-bottom:1px solid var(--line)}.document-brand{display:flex;align-items:center;gap:14px;min-width:0}.document-brand>div{min-width:0}.document-brand h2{font-size:24px;color:var(--invoice-color);overflow-wrap:anywhere;margin:0 0 8px}.document-brand p,.document-title p{color:var(--muted);font-size:13px;line-height:1.7;margin:4px 0}.document-logo{max-width:90px;max-height:90px;object-fit:contain}.document-title h1{font-size:24px;color:var(--invoice-color);white-space:normal}.document-title{flex-shrink:0;max-width:45%;text-align:end}.document-parties{display:flex;justify-content:space-between;gap:15px;margin:26px 0}.document-parties small{display:block;color:var(--muted);margin-bottom:8px}.document-bottom{display:flex;gap:20px;align-items:start;justify-content:space-between}.document-notes{flex:1;min-width:0;margin-top:28px}.document-notes p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.document-notes h3{color:var(--invoice-color);font-size:14px}.invoice-total{flex-shrink:0;max-width:55%;margin-inline-start:auto;margin-inline-end:0}.invoice-total .grand{gap:12px;flex-wrap:wrap;font-size:16px}.document-foot{margin-top:35px;border-top:1px solid var(--line);padding-top:12px;color:var(--muted);display:flex;justify-content:space-between;font-size:12px}.document-item-note{color:#677684;font-size:12px;line-height:1.6;margin-top:7px;white-space:pre-wrap;overflow-wrap:anywhere;border-inline-start:2px solid #d9e4df;padding-inline-start:8px}.product-description{font-size:13px;color:#536575;line-height:1.7;margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}.invoice-note{white-space:pre-wrap;overflow-wrap:anywhere}.quotation-disclaimer{color:var(--muted);font-size:12px}.invoice-decoration{display:none}.skin-signature{border-top:0}.skin-signature .document-head{display:flex;flex-direction:column;align-items:center;border-bottom:3px solid var(--invoice-color)}.skin-signature .document-brand{flex-direction:column;text-align:center;width:100%}.skin-signature .document-logo{max-width:150px;max-height:110px}.skin-signature .document-brand h2{font-size:33px;font-weight:800}.skin-signature .document-title{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:100%;margin-top:15px;border-top:1px solid var(--line);padding-top:14px;gap:10px}.skin-signature .document-title h1{font-size:20px}.skin-executive{border-top:0}.skin-executive .document-head{background:var(--invoice-color);margin:-34px -34px 0;padding:30px 28px!important;color:white;align-items:center}.skin-executive .document-head h1,.skin-executive .document-head h2,.skin-executive .document-head p,.skin-executive .document-head .code{color:white}.skin-executive .document-logo{background:white;border-radius:8px;padding:8px;max-width:100px;max-height:100px}.skin-executive .document-brand h2{font-size:29px}.skin-executive .document-parties{background:#f2f6f5;padding:18px;border-radius:7px}.skin-geometric{border-top:0;padding-top:55px}.skin-geometric .invoice-decoration{display:block;position:absolute;z-index:-1;top:0;inset-inline-end:0;width:52%;height:38px;background:var(--invoice-color);clip-path:polygon(18% 0,100% 0,100% 100%,0 100%)}.skin-geometric:after{content:'';position:absolute;inset-inline-start:0;bottom:0;width:28%;height:18px;background:var(--invoice-color);clip-path:polygon(0 0,75% 0,100% 100%,0 100%)}.skin-geometric .document-head{border-bottom:0;padding-bottom:8px!important}.skin-geometric .document-title{border-inline-start:3px solid var(--invoice-color);padding-inline-start:17px}.skin-geometric .document-parties{border-top:2px solid var(--invoice-color);padding-top:20px}.skin-ribbon{border-top:0;border-inline-start:18px solid var(--invoice-color)}.skin-ribbon .document-head{flex-direction:column;gap:25px}.skin-ribbon .document-brand h2{font-size:31px}.skin-ribbon .document-title{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:100%;gap:16px}.skin-ribbon .document-title h1{font-size:21px}.skin-ribbon th{background:#edf4f2;color:var(--invoice-color);border-bottom:2px solid var(--invoice-color)}.line-note-field,.line-description-field{margin:0 0 19px;padding:8px 12px;background:#f5f8f9;border-radius:7px;font-size:13px;min-width:0}.line-note-field textarea,.line-description-field textarea{font-size:14px}.general-note-field{margin-top:18px}.description-toggle{background:#eff5f8;padding:14px;border-radius:8px}.invoice-paper .table-wrap{overflow:visible}.invoice-paper table{table-layout:fixed;white-space:normal}.invoice-paper th,.invoice-paper td{overflow-wrap:anywhere}.invoice-paper th:first-child{width:37%}.invoice-paper:has(.invoice-product-photo) th:first-child{width:65px}.invoice-paper.compact.skin-executive .document-head{margin:-25px -25px 0}.invoice-paper.compact .document-brand h2{font-size:23px}
html[dir=ltr] aside{right:auto;left:0;border-left:0;border-right:1px solid var(--line)}html[dir=ltr] .shell{margin-right:0;margin-left:242px}html[dir=ltr] nav button,html[dir=ltr] table,html[dir=ltr] .report-card{text-align:left}html[dir=ltr] .legend i{margin-left:0;margin-right:4px}html[dir=ltr] .invoice-total{margin-right:0;margin-left:auto}html[dir=ltr] .skin-geometric .invoice-decoration{transform:scaleX(-1)}
@media(max-width:1150px){html[dir=ltr] .shell{margin-left:208px}.skin-options{gap:9px}.skin-mini{height:105px;padding:10px}}@media(max-width:850px){html[dir=ltr] .shell{margin-left:76px}.skin-options{grid-template-columns:repeat(3,minmax(0,1fr))}.document-brand h2{font-size:22px}.document-logo{max-width:70px}.document-title h1{font-size:20px}}@media(max-width:560px){html[dir=ltr] .shell{margin:0}.skin-options{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 14px 14px}.skin-executive .document-head{margin:-22px -22px 0;padding:24px 20px!important}.document-title h1{font-size:18px}}@media print{.invoice-paper{min-width:0;overflow:visible;max-width:100%;border-radius:0;box-shadow:none}.document-head{break-inside:avoid}.invoice-paper thead{display:table-header-group}.invoice-paper tr,.document-bottom,.signature{break-inside:avoid}.skin-picker{display:none!important}html[dir=ltr] body.print-main .shell{margin:0}.invoice-paper .table-wrap{overflow:visible}.invoice-paper.skin-geometric .invoice-decoration{display:block}.invoice-paper.skin-executive .document-head{background:var(--invoice-color)!important}}
.profile-picker{display:flex;gap:8px;align-items:center;font-size:12px}.profile-picker select{font-size:13px;padding:6px 8px}.header-right{flex-wrap:wrap}body>.shell>header{height:auto;min-height:78px;padding-block:10px}@media(max-width:560px){.profile-picker span{display:none}.header-right .date{display:none}.profile-picker select{max-width:130px}.crumb{display:none}}
.catalogue-product{display:flex;align-items:center;gap:14px;text-align:start;background:none;border:0;cursor:pointer;color:inherit;max-width:440px;padding:6px}.catalogue-product small{display:block;margin-top:5px;color:#64756f;white-space:normal}.catalogue-thumb{width:54px;height:54px;object-fit:contain;border:1px solid #e1e9e5;border-radius:10px;background:#f5f8f7;flex-shrink:0}.catalogue-empty{display:grid;place-items:center;color:#92a49b}.catalogue-detail-photo{display:block;max-width:100%;width:220px;height:180px;object-fit:contain;margin:12px auto;border-radius:12px;background:#f7f9f8}.catalogue-detail{text-align:center}#product-results{margin-top:20px}
.sale-stock{padding:10px 12px;background:#f6f9f8;border-radius:9px;margin:6px 0 12px}.sale-stock>small{color:#52665d}.sale-stock-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.stock-pill{display:flex;align-items:center;gap:9px;padding:6px 10px;border:1px solid #dce5df;background:white;border-radius:7px;font-size:12px}.stock-pill.chosen{border-color:#0b6e63;background:#e9f5ef}.stock-pill b{font-size:15px}.stock-pill.empty b{color:#b24b42}.stock-pill small{color:#0b6e63}
.stock-minimum-fields{border:1px solid #dce5df;border-radius:10px;margin:18px 0;padding:16px}.stock-minimum-fields legend{font-weight:700}.stock-minimum-fields small{color:#66766e}.low-stock-notice{margin:18px 32px 0;padding:16px 20px;border:1px solid #ebc483;background:#fff8e9;border-radius:12px;color:#714b11}.low-stock-notice p{margin:6px 0}.low-stock-notice>div{padding:5px 0}
.scope-picker{min-width:0}.scope-label{display:block;margin-bottom:7px;font-weight:600}.scope-picker details{position:relative}.scope-picker summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:11px 13px;border:1px solid #ccdcd3;border-radius:9px;background:white;min-height:44px}.scope-picker summary::-webkit-details-marker{display:none}.scope-picker summary>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scope-picker details[open] summary{border-color:#0b6e63;box-shadow:0 0 0 2px #0b6e6314}.scope-options{position:absolute;inset-inline:0;top:calc(100% + 5px);z-index:10;background:#fff;border:1px solid #dce5df;border-radius:10px;box-shadow:0 12px 30px #163a2725;padding:12px}.scope-scroll{max-height:180px;overflow:auto;margin:8px 0}.scope-choice{padding:7px 4px;margin:0!important}.scope-options input[type=search]{width:100%}.scope-empty{color:#79877e;padding:8px}.scope-options>.btn{width:100%}.scope-picker{margin-bottom:12px}
.compact-panel{border:1px solid #dce5df;border-radius:10px;background:white;margin:0 0 14px}.compact-panel>summary{padding:13px 16px;cursor:pointer;font-weight:700;color:#245449}.compact-panel>.panel{border:0;box-shadow:none;margin:0}.compact-panel>.filters,.compact-panel>.report-cards{margin:0;padding:14px}
.receipt-amount{padding:22px;background:#f1f7f4;border-radius:10px;margin:25px 0}.receipt-amount strong{display:block;font-size:30px;margin-top:8px;text-align:start}.receipt-paper .document-head{border-bottom:3px solid var(--invoice-color);padding-bottom:22px}
:root{--surface:#fff;--surface-soft:#f6f9f8;--accent-soft:color-mix(in srgb,var(--user-accent,#086d62) 12%,var(--surface));--accent-readable:var(--user-accent,#086d62)}html[data-mode=dark]{color-scheme:dark;--bg:#111821;--surface:#1b2531;--surface-soft:#222f3c;--ink:#edf2f7;--muted:#acbac8;--line:#354452;--accent-readable:color-mix(in srgb,var(--user-accent) 45%,white)}
body aside,body .shell>header,body .panel,body .stat,body dialog,body .warehouse,body .compact-panel{background:var(--surface);color:var(--ink)}body .workspace,body .demo-banner,body .summary-strip,body .stock-pill,body .sale-stock,body .scope-options{background:var(--surface-soft);color:var(--ink)}body nav button.active,body .preview-tag,body .avatar,body .stat-icon,body .stock-pill.chosen{background:var(--accent-soft);color:var(--accent-readable)}body nav button:hover{background:var(--surface-soft)}body .btn{background:var(--surface);color:var(--ink);border-color:var(--line)}body .btn.primary,body .mark{background:var(--primary);border-color:var(--primary);color:var(--accent-text,#fff)}body .link,body .compact-panel>summary{color:var(--accent-readable)}.theme-presets{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.theme-presets [aria-pressed=true]{outline:2px solid var(--primary);outline-offset:2px}.theme-swatch{width:16px;height:16px;border-radius:50%;display:inline-block}#theme-mode-toggle{font-size:13px;padding:7px 10px}
html[data-mode=dark] input,html[data-mode=dark] select,html[data-mode=dark] textarea{background:var(--surface-soft);color:var(--ink);border-color:var(--line)}html[data-mode=dark] nav button{color:var(--muted)}html[data-mode=dark] th,html[data-mode=dark] .filters,html[data-mode=dark] .scope-picker summary,html[data-mode=dark] .report-card,html[data-mode=dark] .skin-option,html[data-mode=dark] .notice{background:var(--surface-soft);color:var(--ink)}html[data-mode=dark] td,html[data-mode=dark] th{border-color:var(--line)}html[data-mode=dark] tbody tr:hover{background:var(--surface-soft)}html[data-mode=dark] .stat-top,html[data-mode=dark] .date{color:var(--muted)}html[data-mode=dark] .low-stock-notice{background:#3b301c;color:#ffdf9a;border-color:#85662c}
/* Documents retain a white printable canvas regardless of the user's UI mode. */
body .invoice-paper{color-scheme:light;--ink:#172c38;--muted:#77838d;--line:#e6ebee;background:white;color:#172c38}body .invoice-paper th{background:#f5f7f9;color:#172c38}body .invoice-paper td{border-color:#e6ebee}body .invoice-paper tbody tr:hover{background:transparent}body .invoice-paper .document-head{background:transparent}body .invoice-paper.skin-executive .document-head{background:var(--invoice-color)}
.donut>div{background:var(--surface);color:var(--ink)}
#sale-layout-toggle{margin:8px 0 14px}.compact-sales .item-row{display:grid;grid-template-columns:minmax(180px,2fr) 75px 115px 32px 120px;gap:8px;align-items:center;margin:0;padding:8px;border-bottom:1px solid var(--line)}.compact-sales .item-row input{width:100%;padding:9px}.sale-product-search{position:relative;min-width:0}.sale-search-results{position:absolute;top:100%;inset-inline:0;background:var(--surface);border:1px solid var(--line);box-shadow:0 6px 20px #0002;max-height:230px;overflow:auto;z-index:15;min-width:250px}.sale-search-results button{display:block!important;width:100%;text-align:start;padding:10px!important;background:var(--surface)!important;color:var(--ink)!important;border-bottom:1px solid var(--line)!important}.sale-search-results button:hover{background:var(--accent-soft)!important}.sale-line-details{border-bottom:1px solid var(--line);padding:4px 10px;font-size:12px}.sale-line-details summary{cursor:pointer;color:var(--muted);padding:4px}.sale-line-total{font-size:13px;white-space:nowrap}.compact-sales{overflow:visible}.compact-sales .sale-stock{margin:8px 0}@media(max-width:650px){.compact-sales .item-row{grid-template-columns:minmax(145px,2fr) 55px 85px 28px 90px;gap:4px;padding:5px}.compact-sales{overflow-x:auto}.sale-line-total{font-size:11px}}
.company-logo-mark{background:white!important;padding:3px;overflow:hidden}.company-logo-mark img{width:100%;height:100%;object-fit:contain}.company-logo-preview{display:block;width:150px;height:95px;object-fit:contain;background:white;border:1px solid var(--line);border-radius:8px;padding:8px;margin:16px 0}
@media print{.statement-controls{display:none!important}#detailed-statement table{font-size:11px}#detailed-statement td{white-space:normal}}
.permission-group{border:1px solid var(--line);border-radius:8px;padding:12px;margin:10px 0}.permission-group summary{cursor:pointer;font-weight:600}.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 16px}
