:root {
  font-family: "IBM Plex Sans Arabic", "DM Sans", sans-serif;
  color: #242a3a;
  background: #f4f6fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --sidebar-bg: #111827;
  --sidebar-muted: #9aa8be;
  --sidebar-text: #e8edf5;
  --blue: #4f46e5;
  --blue-dark: #4338ca;
  --ink: #242a3a;
  --muted: #8d95a6;
  --line: #edf0f5;
  --surface: #fff;
  --green: #2aa97b;
  --red: #e36a71;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { overflow-x: hidden; margin: 0; min-width: 0; min-height: 100vh; background: radial-gradient(circle at 100% 0, #f8fafc 0, #f4f6fb 36%, #f1f4f9 100%); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #8797ff75; outline-offset: 2px; }
.app-shell { display: flex; min-height: 100vh; min-height: 100dvh; }

.sidebar {
  position: fixed; z-index: 20; inset: 0 0 0 auto; display: flex; flex-direction: column;
  width: 254px; overflow-y: auto; padding: 22px 14px 14px; border-left: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(165deg, #111827 0%, #172033 56%, #0f172a 100%); color: var(--sidebar-text);
  box-shadow: -16px 0 40px rgba(15, 23, 42, .12);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 5px 20px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #ffffff20; border-radius: 14px; background: linear-gradient(145deg, #7788ff, #5269e8); color: #fff; box-shadow: 0 8px 20px #5269e84a; }
.brand-mark svg { width: 26px; height: 26px; }
.brand-mark .brand-logo { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 19px; line-height: 1.2; letter-spacing: -.3px; }
.brand-copy small { color: #a7b2c5; font-size: 10px; }
.store-switcher { display: flex; align-items: center; gap: 10px; margin: 1px 0 18px; padding: 10px; border: 1px solid rgba(255,255,255,.10); border-radius: 14px; background: linear-gradient(110deg, rgba(255,255,255,.08), rgba(255,255,255,.035)); box-shadow: inset 0 1px rgba(255,255,255,.06); }
.store-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: #30415f; color: #b7c5ff; }
.store-icon svg { width: 19px; height: 19px; }
.store-switcher > span:nth-child(2) { display: grid; gap: 1px; }
.store-switcher small { color: #99a6bb; font-size: 10px; }
.store-switcher strong { font-size: 12px; font-weight: 600; }
.switch-chevron { width: 16px; height: 16px; margin-right: auto; color: #9aa7bc; }
.nav-label { margin: 0 10px 8px; color: #8190aa; font-size: 9px; font-weight: 700; letter-spacing: .3px; }
.primary-nav { display: grid; gap: 3px; flex: 1 1 auto; min-height: 120px; max-height: calc(100vh - 260px); overflow-y: auto; padding: 2px 0 8px; scrollbar-color: #50617d transparent; scrollbar-width: thin; }
.nav-group { display: grid; gap: 3px; margin-bottom: 5px; }
.nav-group[hidden] { display: none; }
.nav-group-label { padding: 9px 11px 4px; color: #7585a0; font-size: 9px; font-weight: 700; letter-spacing: .2px; }
.nav-item { position: relative; width: 100%; display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 11px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: #b8c2d3; text-align: right; transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease; }
.nav-item:hover { transform: translateX(-2px); border-color: #ffffff0b; background: #ffffff0b; color: #f3f5ff; }
.nav-item.active { border-color: rgba(165,180,252,.28); background: linear-gradient(105deg, #6366f1, #4f46e5); color: #fff; box-shadow: 0 10px 24px rgba(79,70,229,.32), inset 0 1px rgba(255,255,255,.20); }
.nav-item.active::before { position: absolute; inset: 9px auto 9px -1px; width: 3px; border-radius: 0 3px 3px 0; background: #c9d1ff; content: ""; }
.nav-item > svg { width: 19px; height: 19px; flex: 0 0 auto; }
.nav-item > span:nth-child(2) { font-size: 12px; font-weight: 500; }
.nav-item kbd { margin-right: auto; border: 1px solid #ffffff2a; border-radius: 4px; padding: 1px 4px; color: #aab8f9; font-family: "DM Sans", sans-serif; font-size: 9px; }
.nav-count { display: grid; width: 20px; height: 20px; place-items: center; margin-right: auto; border-radius: 6px; background: #f0787250; color: #ffc0bc; font-family: "DM Sans", sans-serif; font-size: 10px; }
.sidebar-bottom { margin-top: auto; padding-top: 8px; border-top: 1px solid #ffffff12; }
.settings-link { min-height: 42px; margin: 0 0 8px; }
.sidebar-version { padding-top: 9px; border-top: 1px solid #ffffff0c; color: #74839b; text-align: center; font-family: "DM Sans", sans-serif; font-size: 9px; }
.sidebar-version span { padding: 0 3px; color: #54cc9c; }

.main-panel { width: calc(100% - 254px); min-width: 0; min-height: 100vh; margin-right: 254px; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 73px; padding: 0 36px; border-bottom: 1px solid rgba(226,232,240,.82); background: rgba(255,255,255,.88); backdrop-filter: blur(18px); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #9aa1af; font-size: 11px; }
.breadcrumbs strong { color: #303649; font-size: 11px; font-weight: 600; }
.crumb-separator { color: #cad0da; }
.app-date-time { display: grid; flex: 0 0 auto; gap: 2px; min-width: 142px; padding: 6px 11px; border: 1px solid #e9edf3; border-radius: 9px; background: #fff; color: #8792a4; text-align: center; font-size: 9px; line-height: 1.35; }
.app-date-time strong { color: #3e4b62; font: 600 12px "DM Sans", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.global-search { display: flex; align-items: center; gap: 9px; width: 264px; padding: 8px 10px; border: 1px solid #eceff4; border-radius: 8px; background: #fafbfc; color: #9da4b2; }
.global-search svg { width: 16px; height: 16px; flex: 0 0 auto; }
.global-search input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 10px; }
.global-search input::placeholder { color: #a2a9b6; }
.global-search kbd { flex: 0 0 auto; padding: 2px 4px; border: 1px solid #e8ebf0; border-radius: 4px; color: #a1a8b5; font: 9px "DM Sans", sans-serif; }
.icon-button { position: relative; display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid #eceff4; border-radius: 8px; background: #fff; color: #737e90; transition: background .15s, color .15s; }
.icon-button:hover { background: #f4f6ff; color: var(--blue); }
.icon-button svg { width: 18px; height: 18px; }
.notification-button i { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: #ee7377; }
.topbar-divider { width: 1px; height: 30px; background: #eceff4; }
.profile-button { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; text-align: right; }
.avatar { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; background: #e7eaff; color: #5368de; font-size: 14px; font-weight: 600; }
.profile-copy { display: grid; gap: 1px; }
.profile-copy strong { color: #3a4150; font-size: 10px; font-weight: 600; }
.profile-copy small { color: #9ba2af; font-size: 9px; }
.profile-chevron { width: 15px; height: 15px; color: #9ca3af; }
.mobile-menu { display: none; }

.page-content { width: 100%; max-width: 1500px; min-width: 0; margin: 0 auto; padding: 30px 36px 45px; animation: page-in .26s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.page-heading h1 { margin: 0; color: #182033; font-size: 25px; font-weight: 700; letter-spacing: -.6px; }
.page-heading p { margin: 5px 0 0; color: #969dab; font-size: 11px; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 11px; font-size: 10px; font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.button:active { transform: translateY(1px); }
.button svg { width: 15px; height: 15px; }
.button-primary { background: linear-gradient(135deg, #6366f1, #4f46e5); color: white; box-shadow: 0 8px 18px rgba(79,70,229,.22); }
.button-primary:hover { background: var(--blue-dark); box-shadow: 0 5px 13px #5269e83c; }
.button-secondary { border-color: #e8ebf1; background: #fff; color: #576072; }
.button-secondary:hover { border-color: #cdd4f8; background: #fafbff; }
.button-soft { border-color: #e8ebff; background: #f3f5ff; color: #566be0; }
.button-danger { border-color: #f7dedf; background: #fff8f8; color: #d56169; }
.date-pill { display: flex; align-items: center; gap: 7px; height: 35px; padding: 0 11px; border: 1px solid #e9edf3; border-radius: 8px; background: #fff; color: #6e7788; font-size: 9px; }
.date-pill svg { width: 14px; height: 14px; }
.card { border: 1px solid rgba(226,232,240,.88); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.04); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px 12px; }
.card-heading { display: grid; gap: 3px; }
.card-heading strong { color: #343a49; font-size: 12px; font-weight: 600; }
.card-heading small { color: #a1a7b3; font-size: 9px; }
.text-link { padding: 2px; border: 0; background: transparent; color: #6173e4; font-size: 9px; font-weight: 500; }
.text-link:hover { color: #394fd1; }
.select-small { height: 28px; padding: 0 8px; border: 1px solid #eceff3; border-radius: 6px; background: #fff; color: #758093; font-size: 9px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.stat-card { min-height: 134px; padding: 16px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.stat-card:hover { transform: translateY(-3px); border-color: #dbe3f0; box-shadow: 0 14px 34px rgba(15,23,42,.08); }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { color: #8d95a5; font-size: 10px; }
.stat-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; }
.stat-icon svg { width: 18px; height: 18px; }
.icon-purple { background: #efedff; color: #7967df; }
.icon-green { background: #e5f7f0; color: #2caa7d; }
.icon-orange { background: #fff1e5; color: #e89b55; }
.icon-blue { background: #e9efff; color: #5974e8; }
.stat-value { margin: 10px 0 8px; color: #272d3b; font-family: "DM Sans", "IBM Plex Sans Arabic", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.8px; direction: ltr; text-align: right; }
.stat-foot { display: flex; align-items: center; gap: 6px; color: #9ba2af; font-size: 9px; }
.trend-up { direction: ltr; color: #20a374; font-family: "DM Sans", sans-serif; font-size: 9px; font-weight: 600; }
.trend-down { direction: ltr; color: #e16e75; font-family: "DM Sans", sans-serif; font-size: 9px; font-weight: 600; }

.dashboard-main-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); gap: 16px; margin-bottom: 16px; }
.dashboard-main-grid > *, .dashboard-bottom-grid > * { min-width: 0; }
.chart-card { min-height: 286px; }
.chart-legend { display: flex; align-items: center; gap: 13px; color: #8e96a4; font-size: 9px; }
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: #6375ea; }
.legend-dot.orange { background: #f1b878; }
.chart-wrap { position: relative; height: 194px; padding: 5px 14px 0; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: #f0f2f6; stroke-width: 1; }
.chart-line { fill: none; stroke: #6277eb; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.chart-line.secondary { stroke: #f1b878; stroke-width: 2; stroke-dasharray: 4 5; }
.chart-area { fill: url(#salesGradient); }
.chart-labels { display: flex; justify-content: space-between; padding: 0 19px; color: #abb1bd; font: 9px "DM Sans", sans-serif; direction: ltr; }
.chart-tooltip { position: absolute; top: 32px; left: 36%; padding: 7px 10px; border-radius: 7px; background: #28334c; color: #fff; box-shadow: 0 4px 12px #202a4733; font: 9px "DM Sans", sans-serif; opacity: 0; transform: translateY(3px); transition: .2s; pointer-events: none; }
.chart-card:hover .chart-tooltip { opacity: 1; transform: translateY(0); }
.chart-tooltip span { display: block; margin-top: 3px; color: #bbc6ff; }
.chart-empty-state { position: absolute; top: 50%; right: 12px; left: 12px; color: #929bad; font-size: 10px; text-align: center; transform: translateY(-50%); }
.summary-card { display: flex; flex-direction: column; min-height: 286px; }
.summary-total { padding: 2px 18px 14px; }
.summary-total small { display: block; margin-bottom: 4px; color: #a1a7b3; font-size: 9px; }
.summary-total strong { color: #292f3e; font: 700 22px "DM Sans", sans-serif; direction: ltr; display: inline-block; }
.summary-progress { height: 5px; margin: 0 18px 14px; overflow: hidden; border-radius: 8px; background: #eef0ff; direction: ltr; }
.summary-progress span { display: block; width: 67%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8392ff, #5269e8); }
.summary-breakdown { display: grid; gap: 11px; padding: 0 18px; }
.summary-empty { padding: 8px 0; color: #929bad; font-size: 9px; text-align: center; }
.breakdown-row { display: flex; align-items: center; justify-content: space-between; color: #8a92a2; font-size: 9px; }
.breakdown-row span { display: flex; align-items: center; gap: 7px; }
.breakdown-row strong { color: #424959; font: 600 10px "DM Sans", sans-serif; }
.breakdown-dot { width: 7px; height: 7px; border-radius: 50%; background: #6175e9; }
.breakdown-dot.two { background: #8fcdb1; }
.breakdown-dot.three { background: #f2bf87; }
.breakdown-dot.four { background: #d7dbe5; }
.summary-note { display: flex; gap: 6px; margin: auto 16px 14px; padding: 8px; border-radius: 7px; background: #f4f7ff; color: #8390a7; font-size: 8px; line-height: 1.6; }
.summary-note svg { flex: 0 0 13px; width: 13px; height: 13px; color: #7084eb; }

.dashboard-bottom-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(240px, 1fr); gap: 16px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: right; }
thead th { padding: 9px 16px; border-top: 1px solid #f4f5f8; background: #fbfcfe; color: #a0a6b1; font-size: 9px; font-weight: 500; white-space: nowrap; }
tbody td { padding: 11px 16px; border-top: 1px solid #f3f4f7; color: #5c6474; font-size: 9px; white-space: nowrap; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #fbfcff; }
.product-cell { display: flex; align-items: center; gap: 9px; }
.product-thumb { display: grid; width: 32px; height: 32px; flex: 0 0 auto; overflow: hidden; place-items: center; border-radius: 8px; background: #f0f2ff; font-size: 16px; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-sale-price { display: inline-block; font: 600 9px "DM Sans", sans-serif; direction: ltr; }
.product-margin-value { display: block; margin-top: 3px; color: #43856e !important; font-size: 8px !important; direction: rtl !important; }
.product-margin-value.is-negative { color: #bd5252 !important; }
.product-cell strong { display: block; color: #454c5c; font-size: 9px; font-weight: 600; }
.product-cell small { display: block; margin-top: 2px; color: #a6acb8; font: 8px "DM Sans", sans-serif; direction: ltr; text-align: right; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 20px; font-size: 8px; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-paid { background: #eaf8f1; color: #2aa477; }
.status-pending { background: #fff4e8; color: #d89040; }
.status-low { background: #fff0ef; color: #d3656b; }
.status-good { background: #eaf8f1; color: #2aa477; }
.transactions-card { min-height: 249px; }
.quick-card { display: flex; flex-direction: column; min-height: 249px; }
.quick-actions { display: grid; gap: 8px; padding: 1px 14px 14px; }
.quick-action { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid #f0f2f6; border-radius: 9px; background: #fff; color: #555d6d; text-align: right; transition: border .16s, background .16s, transform .16s; }
.quick-action:hover { transform: translateY(-1px); border-color: #dfe4ff; background: #fafbff; }
.quick-action-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: #f0f2ff; color: #6175e8; }
.quick-action-icon.green { background: #e9f8f2; color: #31a77d; }
.quick-action-icon.orange { background: #fff2e6; color: #e2a264; }
.quick-action-icon svg { width: 16px; height: 16px; }
.quick-action span:nth-child(2) { display: grid; gap: 2px; }
.quick-action strong { color: #454c5b; font-size: 9px; font-weight: 600; }
.quick-action small { color: #9ea5b2; font-size: 8px; }
.quick-arrow { margin-right: auto; color: #adb3c0; font-size: 12px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.toolbar-group { display: flex; align-items: center; gap: 8px; }
.field-search { display: flex; align-items: center; gap: 8px; min-width: 230px; height: 35px; padding: 0 10px; border: 1px solid #e9edf3; border-radius: 8px; background: #fff; color: #9ba3b1; }
.field-search svg { width: 15px; height: 15px; flex: 0 0 auto; }
.field-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #434a58; font-size: 10px; }
.field-search input::placeholder { color: #a8afbb; }
.toolbar-select { height: 35px; padding: 0 10px; border: 1px solid #e9edf3; border-radius: 8px; background: #fff; color: #70798b; font-size: 9px; }
.table-card { overflow: hidden; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid #f1f3f7; color: #9aa2af; font-size: 9px; }
.pagination { display: flex; align-items: center; gap: 5px; direction: ltr; }
.pagination button { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #eceff4; border-radius: 6px; background: #fff; color: #8992a2; font: 10px "DM Sans", sans-serif; }
.pagination button.selected { border-color: #5269e8; background: #5269e8; color: #fff; }
.pagination button:disabled { opacity: .4; }
.table-action { width: 25px; height: 25px; border: 0; border-radius: 6px; background: transparent; color: #929aaa; font-size: 15px; }
.table-action:hover { background: #f1f3ff; color: #566be0; }
.empty-state { padding: 35px 15px; color: #999fad; text-align: center; font-size: 11px; }

.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 16px; align-items: start; }
.pos-catalog { padding: 16px; }
.pos-search { margin-bottom: 13px; }
.barcode-search { margin: -5px 0 13px; border-color: #dfe5fb; background: #f9faff; }
.barcode-search > span { padding: 0 0 0 10px; color: var(--blue); font-size: 15px; }
.category-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 0 0 13px; scrollbar-width: thin; }
.category-tab { flex: 0 0 auto; padding: 6px 13px; border: 1px solid #eceff4; border-radius: 18px; background: #fff; color: #858d9c; font-size: 9px; transition: .15s; }
.category-tab:hover, .category-tab.selected { border-color: #e2e6ff; background: #eff1ff; color: #5369dd; }
.pos-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.pos-product { position: relative; display: flex; min-height: 144px; flex-direction: column; align-items: stretch; padding: 10px; border: 1px solid #e9edf5; border-radius: 14px; background: #fff; color: inherit; text-align: start; transition: transform .16s, border .16s, box-shadow .16s; }
.pos-product:hover { transform: translateY(-3px); border-color: #cfd7ff; box-shadow: 0 12px 24px rgba(52,63,120,.10); }
.pos-product:disabled { opacity: .5; cursor: not-allowed; }
.pos-product-image { display: grid; height: 64px; margin-bottom: 8px; overflow: hidden; place-items: center; border-radius: 8px; background: linear-gradient(135deg, #f8f9ff, #f2f4ff); font-size: 27px; }
.pos-product-photo { width: 100%; height: 100%; object-fit: cover; }
.pos-product-name { overflow: hidden; color: #444b5a; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pos-product-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; color: #9ba2af; font-size: 8px; }
.pos-product-price { color: #566be0; font: 600 10px "DM Sans", sans-serif; direction: ltr; }
.product-plus { position: absolute; top: 8px; inset-inline-end: 8px; display: grid; width: 21px; height: 21px; place-items: center; border-radius: 7px; background: #fff; color: #6577e7; box-shadow: 0 2px 7px #26366512; font-size: 15px; line-height: 1; }
.cart-card { position: sticky; top: 88px; overflow: hidden; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 15px; border-bottom: 1px solid #f0f2f6; }
.cart-title { display: flex; align-items: center; gap: 8px; }
.cart-title strong { color: #343a49; font-size: 12px; }
.cart-count { display: grid; min-width: 20px; height: 20px; padding: 0 5px; place-items: center; border-radius: 7px; background: #eff1ff; color: #566be0; font: 10px "DM Sans", sans-serif; }
.clear-cart { border: 0; background: transparent; color: #a0a6b2; font-size: 9px; }
.clear-cart:hover { color: #d46168; }
.cart-customer { display: flex; align-items: center; gap: 8px; margin: 11px 12px; padding: 9px; border: 1px solid #edf0f5; border-radius: 8px; color: #8f97a6; font-size: 9px; }
.cart-customer svg { width: 16px; height: 16px; }
.cart-customer span { flex: 1; }
.cart-customer button { padding: 0; border: 0; background: transparent; color: #6577e5; font-size: 9px; }
.cart-items { min-height: 70px; max-height: 239px; overflow-y: auto; padding: 0 12px; }
.cart-empty { display: grid; min-height: 82px; place-items: center; color: #abb1bd; font-size: 9px; }
.cart-line { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid #f3f4f7; }
.cart-line-emoji { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; background: #f5f6ff; font-size: 17px; }
.cart-line-info { min-width: 0; }
.cart-line-info strong { display: block; overflow: hidden; color: #4a5160; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.cart-line-info small { display: block; margin-top: 3px; color: #8992a2; font: 9px "DM Sans", sans-serif; direction: ltr; text-align: right; }
.quantity-control { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.quantity-control button { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid #ebeef4; border-radius: 5px; background: #fff; color: #717a8b; font-size: 11px; line-height: 1; }
.quantity-control span { min-width: 12px; color: #555d6c; font: 10px "DM Sans", sans-serif; text-align: center; }
.cart-line-price { align-self: start; padding-top: 2px; color: #555e6d; font: 600 9px "DM Sans", sans-serif; white-space: nowrap; direction: ltr; }
.cart-summary { display: grid; gap: 10px; margin: 0 13px; padding: 13px 0; border-top: 1px dashed #e6e9ef; }
.cart-summary-row { display: flex; justify-content: space-between; color: #9199a8; font-size: 9px; }
.cart-summary-row strong { color: #5c6474; font: 500 10px "DM Sans", sans-serif; }
.cart-total { display: flex; align-items: center; justify-content: space-between; margin: 0 13px; padding: 11px 0; border-top: 1px solid #edf0f4; color: #303747; font-size: 11px; font-weight: 600; }
.cart-total strong { font: 700 18px "DM Sans", sans-serif; letter-spacing: -.4px; direction: ltr; }
.checkout-button { width: calc(100% - 26px); margin: 0 13px 13px; }
.payment-note { margin: -5px 0 12px; color: #a2a8b4; text-align: center; font-size: 8px; }

.app-shell.pos-mode { min-height: 100vh; height: 100vh; overflow: hidden; background: #f7f9fc; }
.app-shell.pos-mode .sidebar, .app-shell.pos-mode > .main-panel > .topbar { display: none; }
.app-shell.pos-mode > .main-panel { width: 100%; height: 100vh; min-height: 0; margin: 0; }
.app-shell.pos-mode #pageContent.page-content { width: 100%; max-width: none; height: 100vh; min-height: 0; margin: 0; padding: 0; animation: none; }
.pos-screen { display: grid; width: 100%; height: 100%; min-height: 0; grid-template-rows: 62px minmax(0, 1fr); overflow: hidden; background: #f7f9fc; }
.pos-topbar { z-index: 2; display: flex; min-width: 0; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid #e8edf4; background: #fff; direction: inherit; }
.pos-date-time { min-width: 148px; }
.pos-topbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.pos-icon-button, .pos-tool-button { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border: 1px solid #e5eaf2; border-radius: 11px; background: #fff; color: #718099; font: 600 14px "DM Sans", sans-serif; box-shadow: 0 2px 4px #17233c08; transition: .15s ease; }
.pos-icon-button:hover, .pos-tool-button:hover { border-color: #cbd6ff; background: #f8f9ff; color: #5269e8; }
.pos-device-status { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 10px 12px; border: 1px solid #f1e7c6; border-radius: 10px; background: #fffaf0; color: #a47826; font-size: 9px; white-space: nowrap; }
.pos-device-status i { width: 7px; height: 7px; border-radius: 50%; background: #48b98a; }
.pos-input { position: relative; display: flex; min-width: 0; height: 40px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #e6ebf3; border-radius: 11px; background: #fff; color: #91a0b7; box-shadow: 0 2px 4px #17233c08; }
.pos-input > svg { width: 16px; height: 16px; flex: 0 0 auto; }
.pos-input input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #566176; font-size: 10px; }
.pos-input input::placeholder { color: #9aa6ba; }
.pos-barcode-control { display: flex; width: min(24vw, 280px); min-width: 0; flex: 0 1 min(24vw, 280px); align-items: center; gap: 6px; }
.pos-barcode-control .pos-barcode { width: auto; min-width: 0; flex: 1; border-color: #cbd9ff; color: #6d8ff2; }
.pos-camera-scan { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid #cbd9ff; border-radius: 11px; background: #f5f8ff; color: #5269e8; }
.pos-camera-scan:hover { border-color: #9db5ff; background: #ebf1ff; }
.pos-camera-scan:disabled { cursor: not-allowed; opacity: .5; }
.pos-camera-scan svg { width: 19px; height: 19px; }
.pos-barcode { width: min(24vw, 280px); border-color: #cbd9ff; color: #6d8ff2; }
.pos-product-search { width: min(27vw, 310px); }
.pos-topbar-actions { margin-inline-start: auto; }
.pos-workspace { display: grid; min-width: 0; min-height: 0; grid-template-columns: minmax(290px, 29.5%) minmax(0, 1fr); direction: inherit; }
.pos-cart-panel { display: grid; min-width: 0; min-height: 0; grid-template-rows: 76px minmax(0, 1fr) auto; border-inline-end: 1px solid #dfe5ed; background: #fff; direction: inherit; }
:root[dir="ltr"] .pos-workspace { grid-template-columns: minmax(0, 1fr) minmax(255px, var(--pos-cart-width, 29.5%)); }
:root[dir="ltr"] .app-shell.pos-mode > .main-panel { width: 100%; height: 100vh; margin: 0; }
:root[dir="ltr"] .app-shell.pos-mode #pageContent.page-content { width: 100%; max-width: none; margin: 0; }
:root[dir="ltr"] .pos-workspace { grid-template-areas: "catalog cart"; grid-template-columns: minmax(0, 1fr) minmax(255px, var(--pos-cart-width, 29.5%)); column-gap: 0; row-gap: 0; }
:root[dir="ltr"] .pos-cart-panel { grid-area: cart; grid-column: 2; border-inline-start: 1px solid #dfe5ed; border-inline-end: 0; }
:root[dir="ltr"] .pos-catalog-panel { grid-area: catalog; grid-column: 1; }
.pos-customer-search-wrap { position: relative; z-index: 1; display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid #edf1f6; }
.pos-customer-search { width: 100%; height: 41px; border-color: #e0e7f2; background: #fbfcfe; }
.pos-customer-search > svg { color: #31b98b; }
.pos-add-customer { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border: 1px solid #b9efdc; border-radius: 8px; background: #f0fff9; color: #20ad7b; font-size: 17px; }
.pos-customer-suggestions { position: absolute; top: calc(100% - 5px); inset-inline: 14px; display: grid; max-height: 220px; overflow-y: auto; padding: 5px; border: 1px solid #e5eaf2; border-radius: 10px; background: #fff; box-shadow: 0 10px 24px #17233c18; }
.pos-customer-suggestions[hidden] { display: none; }
.pos-customer-suggestions button { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px; border: 0; border-radius: 7px; background: #fff; color: #4c5870; text-align: start; }
.pos-customer-suggestions button:hover { background: #f5f7ff; }
.pos-customer-suggestions strong { font-size: 10px; }
.pos-customer-suggestions small, .pos-customer-no-results { color: #97a1b2; font-size: 9px; }
.pos-customer-no-results { padding: 10px; }
.pos-selected-customer { display: flex; width: 100%; align-items: center; gap: 9px; padding: 10px; border: 1px solid #bfeedd; border-radius: 10px; background: #f4fff9; color: #258d6b; font-size: 10px; }
.pos-selected-customer > svg { width: 17px; height: 17px; }
.pos-selected-customer span { flex: 1; }
.pos-selected-customer button { width: 24px; height: 24px; border: 0; border-radius: 7px; background: #fff; color: #8793a7; font-size: 16px; }
.pos-cart-items { min-height: 0; overflow-y: auto; padding: 7px 12px; }
.pos-cart-items .cart-empty { min-height: 150px; color: #9aa9c1; font-size: 10px; }
.pos-cart-items .cart-line { grid-template-columns: 35px minmax(0, 1fr) auto; }
.pos-paid-notice { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0; padding: 9px 10px; border: 1px solid #cceede; border-radius: 9px; background: #f3fcf7; color: #268863; font-size: 9px; }
.pos-paid-notice strong { color: #21865f; font: 600 9px "DM Sans", sans-serif; direction: ltr; }
.pos-cart-footer { display: grid; gap: 8px; padding: 11px 15px 13px; border-top: 1px solid #e8edf4; background: #fbfcfe; }
.pos-subtotal-row, .pos-tax-row, .pos-discount-row { display: flex; min-height: 25px; align-items: center; justify-content: space-between; gap: 8px; color: #75839b; font-size: 10px; }
.pos-subtotal-row strong, .pos-tax-row strong { color: #303b50; font: 600 12px "DM Sans", sans-serif; direction: ltr; white-space: nowrap; }
.pos-discount-row { border-bottom: 1px solid #edf1f6; padding-bottom: 7px; }
.pos-discount-row button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid #d6e3ff; border-radius: 8px; background: #eef4ff; color: #3e78ed; font-size: 9px; }
.pos-discount-row button svg { width: 12px; height: 12px; }
.pos-discount-row button:disabled, .pos-cart-actions button:disabled { opacity: .48; cursor: not-allowed; }
.pos-grand-total { display: flex; align-items: end; justify-content: space-between; padding: 2px 0 5px; color: #8795ac; font-size: 9px; font-weight: 600; }
.pos-grand-total strong { color: #2866ed; font: 700 24px "DM Sans", sans-serif; line-height: 1; direction: ltr; }
.pos-cart-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 4px 0; }
.pos-cart-actions button { display: grid; min-width: 0; min-height: 58px; justify-items: center; align-content: center; gap: 3px; border: 1px solid #dfe6f0; border-radius: 11px; background: #fff; color: #687b99; box-shadow: 0 2px 4px #17233c08; }
.pos-cart-actions button:hover { border-color: #cbd7ff; color: #5269e8; }
.pos-cart-actions button > span { color: #3c79f0; font-size: 18px; line-height: 1; }
.pos-cart-actions button:first-child > span { color: #e0912a; }
.pos-cart-actions button:last-child > span { color: #ef6568; }
.pos-cart-actions small { font-size: 9px; }
.pos-cart-actions kbd, .pos-pay-button kbd { padding: 1px 5px; border: 1px solid #e4e9f1; border-radius: 5px; background: #f7f9fc; color: #8d9ab0; font: 8px "DM Sans", sans-serif; }
.pos-pay-button { display: flex; min-height: 47px; align-items: center; justify-content: center; gap: 9px; padding: 0 12px; border: 0; border-radius: 12px; background: #2866ed; color: #fff; box-shadow: 0 4px 9px #2866ed38; font-size: 12px; font-weight: 700; }
.pos-pay-button:hover:not(:disabled) { background: #1e58d9; }
.pos-pay-button:disabled { background: #a9badc; box-shadow: none; cursor: not-allowed; }
.pos-pay-button kbd { border-color: #ffffff47; background: #ffffff1a; color: #fff; }
.pos-pay-button strong { margin-inline-start: auto; font: 600 11px "DM Sans", sans-serif; direction: ltr; }
.pos-paid-actions { display: grid; gap: 6px; }
.pos-paid-button { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 10px; border: 1px solid #c9efde; border-radius: 11px; background: #eefaf4; color: #25885f; font-size: 11px; font-weight: 700; }
.pos-paid-button > span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #39ae7d; color: #fff; font-size: 12px; }
.pos-paid-button strong { margin-inline-start: auto; font: 600 10px "DM Sans", sans-serif; direction: ltr; }
.pos-new-sale-button { min-height: 39px; border: 1px solid #cbd9ff; border-radius: 10px; background: #fff; color: #356fe9; font-size: 10px; font-weight: 700; }
.pos-new-sale-button:hover { background: #f3f6ff; }
.pos-receipt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.pos-receipt-actions button { display: flex; min-height: 39px; align-items: center; justify-content: center; gap: 6px; border: 1px solid #dfe6f0; border-radius: 10px; background: #fff; color: #6379ed; font-size: 9px; font-weight: 600; }
.pos-receipt-actions button:first-child { border-color: #f4d66b; color: #c57518; }
.pos-receipt-actions button:disabled { opacity: .5; cursor: not-allowed; }
.pos-catalog-panel { display: grid; min-width: 0; min-height: 0; grid-template-rows: 55px minmax(0, 1fr) 36px; direction: inherit; }
.pos-catalog-toolbar { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 0 22px; border-bottom: 1px solid #e9edf4; background: #fff; }
.pos-category-tabs { display: flex; min-width: 0; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.pos-category { flex: 0 0 auto; padding: 7px 11px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #8390a6; font-size: 9px; white-space: nowrap; }
.pos-category:hover, .pos-category.selected { border-color: #dce5ff; background: #f1f5ff; color: #426ff0; }
.pos-catalog-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.pos-add-product { display: grid; width: 39px; height: 36px; place-items: center; border: 0; border-radius: 11px; background: #2866ed; color: #fff; box-shadow: 0 3px 8px #2866ed38; }
.pos-add-product svg { width: 18px; height: 18px; }
.pos-tool-button { width: 39px; height: 36px; }
.pos-product-area { min-height: 0; overflow-y: auto; background: #f7f9fc; }
.pos-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 18px; }
.pos-product { min-height: 150px; }
.pos-empty-state { display: grid; grid-column: 1 / -1; min-height: 100%; align-content: center; justify-items: center; gap: 8px; padding: 30px; color: #91a1bb; text-align: center; }
.pos-empty-state > span { font-size: 33px; line-height: 1; }
.pos-empty-state strong { color: #899bb7; font-size: 12px; }
.pos-empty-state small { color: #a3afc2; font-size: 10px; }
.pos-pagination { display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-top: 1px solid #e9edf4; background: #fff; color: #8493ad; font-size: 9px; }
.pos-pagination button { padding: 5px 12px; border: 1px solid #edf0f5; border-radius: 8px; background: #fff; color: #8796ad; font-size: 9px; }
.pos-pagination button:disabled { opacity: .48; cursor: default; }

.print-settings-page { display: grid; gap: 18px; }
.print-center-page > .page-heading { align-items: center; }
.print-center-page > .page-heading .heading-actions { flex-wrap: wrap; }
.print-center-total-pill { display: inline-flex; min-height: 34px; align-items: center; padding: 0 11px; border: 1px solid #e3eaf5; border-radius: 9px; background: #fff; color: #64728a; font-size: 10px; white-space: nowrap; }
.print-center-layout { display: grid; grid-template-columns: minmax(265px, .92fr) minmax(285px, 1fr) minmax(280px, 1fr); align-items: stretch; gap: 15px; direction: rtl; }
.print-center-layout > .card { min-width: 0; overflow: hidden; border: 1px solid #e4e9f1; border-radius: 13px; background: #fff; }
.print-center-picker, .print-center-queue, .print-center-preview-panel { display: flex; min-height: 610px; flex-direction: column; }
.print-center-panel-heading { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; border-bottom: 1px solid #edf0f5; }
.print-center-panel-heading h2 { margin: 0; color: #30394d; font-size: 13px; font-weight: 700; }
.print-center-panel-heading > span { color: #93a0b4; font-size: 9px; }
.print-center-kind-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px 8px; }
.print-center-kind-switch button { display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; border: 1px solid #e2e8f1; border-radius: 10px; background: #fff; color: #637188; font-size: 10px; }
.print-center-kind-switch button.active { border-color: #3a73f5; background: #f5f8ff; color: #3269ea; }
.print-center-kind-switch button span { color: #94a1b6; font-size: 9px; }
.print-center-search { display: flex; height: 39px; align-items: center; gap: 8px; margin: 2px 14px 9px; padding: 0 10px; border: 1px solid #e2e8f1; border-radius: 9px; background: #f9fafc; color: #8795ab; }
.print-center-search svg { width: 15px; height: 15px; flex: 0 0 auto; }
.print-center-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #3b465b; font-size: 10px; }
.print-center-select-all { display: flex; min-height: 36px; align-items: center; justify-content: space-between; margin: 0 14px 8px; padding: 0 11px; border: 1px solid #e2e8f1; border-radius: 9px; background: #fff; color: #65728a; font-size: 9px; }
.print-center-select-all span { color: #8d9bb1; }
.print-source-list { flex: 1; min-height: 170px; overflow-y: auto; padding: 0 10px; }
.print-source-row { display: flex; min-height: 58px; align-items: center; gap: 9px; padding: 8px 5px; border-bottom: 1px solid #f0f2f6; cursor: pointer; }
.print-source-row > input { width: 15px; height: 15px; flex: 0 0 auto; accent-color: #2866ed; }
.print-source-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: #eef2ff; color: #526be6; font-size: 12px; }
.print-source-copy { display: grid; min-width: 0; gap: 3px; }
.print-source-copy strong { overflow: hidden; color: #354158; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.print-source-copy small { overflow: hidden; color: #8b97ab; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.print-center-picker-footer { display: flex; min-height: 60px; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 14px; border-top: 1px solid #edf0f5; }
.print-center-picker-footer > span { color: #8895aa; font-size: 9px; }
.print-center-picker-footer .button { min-height: 34px; }
.print-center-clear { padding: 5px 9px; border: 0; border-radius: 6px; background: transparent; color: #e56b6b; font-size: 9px; }
.print-center-clear:disabled { color: #b6becb; cursor: not-allowed; }
.print-center-quantity { display: grid; grid-template-columns: auto 64px minmax(95px, 1fr); align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid #edf0f5; background: #fbfcfe; }
.print-center-quantity label { color: #718099; font-size: 9px; white-space: nowrap; }
.print-center-quantity input { width: 100%; height: 32px; border: 1px solid #dfe6f0; border-radius: 8px; color: #354158; text-align: center; font: 11px "DM Sans", sans-serif; }
.print-center-quantity button { min-height: 32px; border: 1px solid #dfe6f0; border-radius: 8px; background: #fff; color: #52627c; font-size: 8px; }
.print-center-quantity button:disabled { opacity: .5; cursor: not-allowed; }
.print-queue-list { flex: 1; min-height: 250px; overflow-y: auto; padding: 7px 12px; }
.print-queue-row { display: flex; min-height: 61px; align-items: center; gap: 8px; border-bottom: 1px solid #f0f2f6; }
.print-queue-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: #eef2ff; color: #5169e5; }
.print-queue-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.print-queue-copy strong { overflow: hidden; color: #38455b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.print-queue-copy small { color: #8d99ad; font-size: 8px; }
.print-queue-preview, .print-queue-remove { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #8a98ad; }
.print-queue-preview.active { background: #edf2ff; color: #3269ed; }
.print-queue-remove { color: #e06c70; font-size: 16px; }
.print-center-queue-footer { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; border-top: 1px solid #edf0f5; color: #8996aa; font-size: 8px; }
.print-center-queue-footer strong { color: #3269ed; font: 600 9px "DM Sans", sans-serif; }
.print-center-preview-stage { display: grid; min-height: 205px; flex: 1; place-items: center; padding: 16px; background-color: #f7f9fc; background-image: linear-gradient(45deg, #e9edf4 25%, transparent 25%), linear-gradient(-45deg, #e9edf4 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e9edf4 75%), linear-gradient(-45deg, transparent 75%, #e9edf4 75%); background-position: 0 0, 0 8px, 8px -8px, -8px 0; background-size: 16px 16px; }
.print-center-preview-empty { max-width: 240px; color: #97a5bc; font-size: 10px; font-weight: 600; line-height: 1.8; text-align: center; }
.print-center-card { display: grid; width: 100%; max-width: 100%; aspect-ratio: 86 / 54; align-content: center; justify-items: center; gap: 2px; overflow: hidden; padding: 8px 12px; border: 1px solid #e1e6ef; border-radius: 10px; background: #fff; color: #252e40; text-align: center; box-shadow: 0 8px 20px #33476615; }
.print-center-card-brand { max-width: 100%; overflow: hidden; color: #75839a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.print-center-card-name { max-width: 100%; overflow: hidden; color: #263248; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.print-center-card-detail { max-width: 100%; overflow: hidden; color: #6f7d93; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.print-center-card .order-barcode { gap: 1px; margin: 2px 0 0; }
.print-center-card .order-barcode-bars { height: 12mm; }
.print-center-card .order-barcode > span { font-size: 7px; letter-spacing: .5px; }
.print-center-options { display: grid; gap: 10px; padding: 14px; }
.print-center-option-title { color: #53617a; font-size: 10px; font-weight: 700; }
.print-center-layout-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.print-center-layout-options label { display: flex; min-height: 37px; align-items: center; justify-content: center; gap: 5px; padding: 4px; border: 1px solid #dfe6f0; border-radius: 9px; color: #627087; font-size: 8px; cursor: pointer; }
.print-center-layout-options label:has(input:checked) { border-color: #3c72f3; color: #386bea; background: #f7f9ff; }
.print-center-layout-options input { width: 13px; height: 13px; margin: 0; accent-color: #2866ed; }
.print-center-printer { display: grid; gap: 5px; }
.print-center-printer > span { color: #6f7e97; font-size: 9px; font-weight: 600; }
.print-center-printer select { width: 100%; height: 36px; padding: 0 9px; border: 1px solid #dfe6f0; border-radius: 8px; background: #fff; color: #526078; font-size: 9px; }
.print-center-save-defaults { min-height: 34px; border: 0; border-radius: 8px; background: #f0f3f8; color: #5b6b83; font-size: 9px; font-weight: 600; }
.print-center-empty { display: grid; min-height: 180px; align-content: center; justify-items: center; gap: 8px; padding: 18px; color: #9aa8bd; text-align: center; }
.print-center-empty > span { color: #d7dfeb; font-size: 32px; }
.print-center-empty strong { font-size: 10px; }
.print-center-empty small { font-size: 8px; }
.print-source-empty { min-height: 140px; }
.print-template-section { position: relative; padding: 22px 24px 18px; border: 1px solid #e6ebf3; border-radius: 14px; background: #fff; }
.print-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.print-section-heading h2, .print-device-settings > h2 { margin: 0; color: #293246; font-size: 15px; font-weight: 700; }
.print-section-heading p { margin: 5px 0 0; color: #8995aa; font-size: 10px; }
.print-section-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; background: #eef2ff; color: #426ff0; font-size: 19px; }
.print-section-icon.delivery-icon { background: #e9f8f2; color: #16a77a; }
.print-designer-button { display: inline-flex; min-height: 37px; align-items: center; justify-content: center; gap: 6px; margin-bottom: 15px; padding: 0 14px; border: 0; border-radius: 10px; background: #079c86; color: #fff; font-size: 10px; font-weight: 700; }
.print-designer-button:hover { background: #078873; }
.delivery-designer { background: #079c72; }
.delivery-designer:hover { background: #087c5d; }
.print-template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.delivery-template-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.print-template-card { display: grid; min-width: 0; justify-items: center; gap: 9px; padding: 13px; border: 2px solid transparent; border-radius: 13px; background: #f6f8fb; color: #4a5870; transition: border-color .15s, background .15s, transform .15s; }
.print-template-card:hover { transform: translateY(-2px); background: #f2f5fa; }
.print-template-card.selected { border-color: #3269f4; background: #f8faff; }
.delivery-template-grid .print-template-card.selected { border-color: #04a779; }
.print-template-card strong { max-width: 100%; color: #46536a; font-size: 9px; text-align: center; }
.print-template-sheet { position: relative; display: block; width: 100%; max-width: 220px; aspect-ratio: .68; overflow: hidden; border: 1px solid #dfe6f0; border-radius: 8px; background: #fff; box-shadow: 0 2px 6px #2034560c; }
.print-template-sheet i { position: absolute; display: block; border: 1px solid #c6d2e3; border-radius: 2px; background: #fff; }
.template-brand { top: 8%; right: 9%; width: 28%; height: 5%; border: 0 !important; border-radius: 0 !important; background: #95a4bb !important; box-shadow: 0 8px 0 -3px #dce3ed, 0 16px 0 -6px #e6ebf2; }
.template-meta { top: 19%; left: 7%; width: 35%; height: 4%; border: 0 !important; border-radius: 0 !important; background: #cbd6e5 !important; box-shadow: 0 7px 0 -2px #e3e8f0; }
.template-customer { top: 20%; right: 8%; width: 37%; height: 12%; }
.template-lines { top: 35%; right: 7%; left: 7%; height: 25%; border-radius: 0 !important; background: repeating-linear-gradient(to bottom, #fff 0 15%, #cad5e4 15% 16%, #fff 16% 34%); }
.template-total { top: 63%; right: 7%; width: 40%; height: 12%; }
.template-detailed .template-customer { top: 18%; left: 7%; right: auto; width: 38%; height: 9%; }
.template-detailed .template-lines { top: 32%; height: 30%; }
.template-detailed .template-total { top: 66%; left: 7%; right: auto; width: 45%; height: 13%; }
.template-compact .template-lines { top: 36%; height: 20%; }
.template-compact .template-total { top: 61%; height: 8%; }
.template-delivery-1 .template-lines, .template-delivery-2 .template-lines { top: 20%; height: 20%; }
.template-delivery-1 .template-customer, .template-delivery-2 .template-customer { top: 44%; right: 7%; left: 7%; width: auto; height: 16%; }
.template-delivery-1 .template-total, .template-delivery-2 .template-total { top: 64%; right: 7%; left: 7%; width: auto; height: 14%; }
.template-delivery-3 .template-brand { background: #111827 !important; box-shadow: 0 8px 0 -3px #dce3ed; }
.template-delivery-3 .template-lines { top: 25%; height: 20%; }
.template-delivery-3 .template-customer { top: 49%; right: 7%; left: 7%; width: auto; height: 13%; }
.template-delivery-3 .template-total { top: 66%; right: 7%; left: 7%; width: auto; height: 13%; background: #111827 !important; }
.template-delivery-4 .template-sign { top: 9%; left: 8%; width: 10%; aspect-ratio: 1; border: 2px solid #9aabc1 !important; border-radius: 50% !important; }
.template-delivery-4 .template-lines { top: 29%; height: 23%; }
.template-delivery-4 .template-customer { top: 18%; right: 7%; left: 25%; width: auto; height: 7%; }
.template-delivery-4 .template-total { top: 56%; left: 7%; right: auto; width: 45%; height: 8%; }
.print-language-field { max-width: 390px; margin: 16px 0 0 auto; }
.print-language-field > span, .print-device-field > span { color: #6f7e97; font-size: 10px; font-weight: 600; }
.print-language-field select, .print-device-field select, .print-device-field input { width: 100%; height: 41px; padding: 0 12px; border: 1px solid #dfe6f0; border-radius: 10px; background: #f8fafc; color: #3e4b62; font-size: 10px; }
.print-option-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 79px; padding: 14px 16px; border: 1px solid #e1e8f2; border-radius: 13px; background: #f8fafc; }
.print-option-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 12px; background: #e7eaff; color: #536bff; font-size: 20px; }
.direct-option-icon { background: #d7f7e9; color: #08a675; font-size: 25px; }
.print-option-card > span:nth-child(2) { display: grid; gap: 4px; }
.print-option-card strong { color: #354158; font-size: 11px; }
.print-option-card small { color: #8996ac; font-size: 9px; line-height: 1.6; }
.print-switch { position: relative; width: 56px; height: 29px; appearance: none; border: 0; border-radius: 20px; background: #cbd3df; cursor: pointer; transition: background .16s; }
.print-switch::after { position: absolute; top: 4px; right: 4px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0002; content: ""; transition: transform .16s; }
.print-switch:checked { background: #2866ed; }
.print-switch:checked::after { transform: translateX(-27px); }
.print-device-settings { padding: 22px 0 0; border-top: 1px solid #e5eaf2; }
.print-device-settings > h2 { margin: 0 0 5px; }
.print-device-settings > p { margin: 0 0 16px; color: #8b97aa; font-size: 10px; line-height: 1.7; }
.print-device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; align-items: start; }
.direct-print-card { grid-column: 1 / -1; }
.print-legacy-option { min-height: 40px; margin: 0; padding: 9px 11px; border: 1px solid #e7ecf3; border-radius: 9px; background: #fff; font-size: 9px; }
.print-legacy-option input { accent-color: #2866ed; }
.print-extra-settings { display: grid; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e5eaf2; }
.print-extra-settings .print-section-heading { margin: 0; }
.print-extra-settings .print-option-card { min-height: 68px; }
.print-unavailable-option { opacity: .76; }
.print-unavailable-option .print-switch { cursor: not-allowed; }
.print-label-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.print-label-settings .settings-field { gap: 7px; }
.print-label-settings .settings-field > span, .print-volume-field > span { color: #6f7e97; font-size: 10px; font-weight: 600; }
.print-label-settings input[type="number"] { width: 100%; height: 41px; padding: 0 12px; border: 1px solid #dfe6f0; border-radius: 10px; background: #f8fafc; color: #3e4b62; font-size: 11px; }
.print-label-auto { grid-column: 1 / -1; margin: 0; color: #6f7e97; font-size: 10px; }
.print-label-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.print-label-fields .setting-check { min-height: 36px; margin: 0; padding: 8px; border: 1px solid #e7ecf3; border-radius: 9px; background: #fff; font-size: 9px; }
.print-label-fields input, .print-label-auto input { accent-color: #2866ed; }
.print-label-test { justify-self: start; }
.print-sound-settings, .print-scale-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: center; }
.print-volume-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; }
.print-volume-field > span { grid-column: 1 / -1; }
.print-volume-field input { width: 100%; accent-color: #2866ed; }
.print-volume-field output { color: #52617a; font-size: 10px; }
.print-sound-tests { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.print-sound-tests .button { font-size: 9px; }
.printer-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 11px 13px; border: 1px solid #e7ecf4; border-radius: 11px; background: #f8faff; }
.printer-status-note { margin: 0; color: #74839b; font-size: 9px; line-height: 1.6; }
.printer-refresh-button { min-height: 33px; flex: 0 0 auto; padding: 0 11px; font-size: 9px; }
.order-barcode { display: grid; justify-items: center; gap: 3px; margin: 10px auto; direction: ltr; }
.order-barcode-bars { display: flex; height: 24mm; align-items: stretch; }
.barcode-bar { display: block; width: .16mm; background: #111; }
.barcode-bar.wide { width: .48mm; }
.barcode-space { display: block; width: .16mm; background: transparent; }
.barcode-space.wide { width: .48mm; }
.barcode-character-gap { width: .16mm; flex: 0 0 .16mm; }
.order-barcode > span { color: #111; font: 9px "DM Sans", sans-serif; letter-spacing: 1px; }
.product-label { display: grid; width: var(--label-width); height: var(--label-height); box-sizing: border-box; align-content: center; justify-items: center; gap: 1mm; overflow: hidden; padding: 1.5mm; color: #111; background: #fff; text-align: center; }
.product-label-store { font-size: 7pt; }
.product-label-name { max-width: 100%; font-size: 8pt; line-height: 1.15; overflow-wrap: anywhere; }
.product-label > span { font-size: 6pt; }
.product-label-barcode { width: 100%; overflow: hidden; }
.product-label-barcode .order-barcode { gap: 1px; margin: 0; }
.product-label-barcode .order-barcode-bars { height: var(--label-barcode-height); justify-content: center; transform: scaleX(.8); }
.product-label-barcode .order-barcode > span { font-size: 6pt; }

.inventory-alert { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding: 11px 14px; border: 1px solid #fae7cd; border-radius: 9px; background: #fffaf3; color: #9c7a4c; font-size: 9px; }
.inventory-alert > div { display: grid; flex: 1; gap: 4px; }
.inventory-alert strong { color: #8e6a3d; font-weight: 600; }
.inventory-alert span { color: #a98e6b; }
.inventory-alert svg { width: 17px; height: 17px; flex: 0 0 auto; color: #e6a151; }
.expiry-alert.is-critical { border-color: #f3d0d0; background: #fff6f6; color: #9f5050; }
.expiry-alert.is-critical strong, .expiry-alert.is-critical span { color: #9f5050; }
.expiry-alert.is-critical svg { color: #d76666; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.settings-card { padding: 17px; }
.settings-card h3 { margin: 0 0 4px; color: #3e4554; font-size: 12px; }
.settings-card p { margin: 0 0 14px; color: #989fad; font-size: 9px; }
.settings-page .page-heading { align-items: flex-start; margin-bottom: 36px; }
.settings-page .page-heading h1 { display: flex; align-items: center; gap: 8px; font-size: 25px; }
.settings-heading-gear { display: inline-flex; color: #5269e8; font-size: 24px; }
.settings-tabs { display: grid; grid-template-columns: repeat(9, minmax(88px, 1fr)); gap: 4px; min-height: 76px; margin-bottom: 42px; padding: 6px; overflow-x: auto; border: 1px solid #e3e9f2; border-radius: 12px; background: #f0f4f9; scrollbar-width: thin; }
.settings-tab { display: flex; min-width: 88px; align-items: center; justify-content: center; gap: 8px; padding: 9px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #718099; font-size: 10px; font-weight: 600; white-space: nowrap; transition: background .16s ease, color .16s ease, box-shadow .16s ease; }
.settings-tab:hover { color: #5269e8; background: #ffffff9c; }
.settings-tab.active { border-color: #edf0f6; background: #fff; color: #5269e8; box-shadow: 0 2px 6px #2636510b; }
.settings-tab-icon { font-size: 14px; line-height: 1; }
.settings-panel { min-width: 0; }
.settings-account-card { padding: 27px 30px 24px; }
.settings-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.settings-section-heading h2 { margin: 0; color: #252b3a; font-size: 18px; font-weight: 600; }
.settings-section-heading p { margin: 5px 0 0; color: #96a0b0; font-size: 10px; }
.settings-section-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 9px; background: #f3f6ff; color: #6d8ff2; font-size: 19px; }
.settings-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 30px; }
.settings-account-grid .settings-field { gap: 9px; margin: 0; }
.settings-account-grid .settings-field > span { color: #728099; font-size: 10px; font-weight: 600; }
.settings-account-grid .settings-field input { width: 100%; height: 47px; padding: 0 14px; border: 1px solid #dfe6f0; border-radius: 10px; background: #fff; color: #526077; font-size: 12px; }
.settings-account-grid .settings-field input::placeholder { color: #9aa4b4; }
.settings-account-grid .settings-field input[readonly] { background: #f4f6f9; color: #8792a4; }
.settings-account-confirm { grid-column: 1 / -1; }
.settings-account-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #edf0f5; }
.settings-account-footer > span { color: #9099a8; font-size: 9px; line-height: 1.7; }
.settings-account-footer .heading-actions { flex-wrap: wrap; }
.settings-divider { height: 1px; margin: 21px 0; border: 0; background: #edf0f5; }
.store-logo-preview { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.store-logo-preview img { width: 76px; height: 60px; padding: 5px; border: 1px solid #e9edf3; border-radius: 8px; background: #fff; object-fit: contain; }
.settings-utility-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.settings-utility-card { display: grid; align-content: start; gap: 11px; padding: 18px; border: 1px solid #e9edf4; border-radius: 10px; background: #fbfcfe; }
.settings-utility-card > strong { color: #3d4658; font-size: 12px; }
.settings-utility-card > p { min-height: 30px; margin: 0; line-height: 1.7; }
.settings-utility-card .heading-actions { flex-wrap: wrap; }
.settings-security-note { margin: 18px 0 0 !important; color: #a17d4b !important; line-height: 1.8; }
.help-center-content { display: grid; gap: 10px; }
.help-center-content section { padding: 11px 13px; border: 1px solid #e6ebf3; border-radius: 11px; background: #f9fbfe; }
.help-center-content h3 { margin: 0 0 5px; color: #33425d; font-size: 11px; }
.help-center-content p { margin: 4px 0 0; color: #718099; font-size: 10px; line-height: 1.8; }
.print-custom-enable { padding: 10px 12px; border: 1px solid #e4e9f1; border-radius: 10px; background: #f8fafc; }
.data-management-page .settings-section-heading { margin-bottom: 8px; }
.data-management-page .settings-utility-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.settings-danger-card { border-color: #f0d7d4; background: #fffafa; }
.settings-danger-card > strong, .settings-danger-warning { color: #a6433a !important; }
.settings-danger-warning { padding: 12px; border: 1px solid #f0d7d4; border-radius: 9px; background: #fff8f7; line-height: 1.8; }
.data-import-preview { max-height: 240px; overflow: auto; }
.data-import-preview table { width: 100%; }
.settings-info-card { max-width: 780px; min-height: 245px; padding: 28px; }
.settings-info-card h3 { margin: 13px 0 8px; font-size: 16px; }
.settings-info-card > p { max-width: 560px; font-size: 11px; line-height: 1.8; }
.settings-info-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: #f2f5ff; color: #6279e7; font-size: 19px; }
.settings-mobile-download { max-width: 980px; padding: 28px; }
.settings-mobile-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.settings-mobile-heading h2 { margin: 0; color: #252b3a; font-size: 20px; }
.settings-mobile-heading p { margin: 5px 0 0; color: #8d95a6; font-size: 11px; }
.settings-mobile-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; background: #f2f5ff; color: #2861e9; font-size: 20px; }
.settings-mobile-panel { display: grid; grid-template-columns: minmax(0, 1fr) 175px; align-items: center; gap: 24px; padding: 24px; border: 1px solid #c9dcff; border-radius: 17px; background: linear-gradient(120deg, #f8fbff, #eaf2ff); }
.settings-mobile-copy h3 { margin: 0 0 10px; color: #244fc4; font-size: 17px; }
.settings-mobile-copy > p { max-width: 620px; margin: 0 0 20px; color: #5279cc; font-size: 12px; line-height: 1.9; }
.settings-mobile-actions { display: grid; justify-items: center; gap: 10px; max-width: 390px; margin-inline: auto; }
.settings-mobile-download-button { display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 11px; background: #2861e9; box-shadow: 0 6px 15px #2861e933; color: #fff; font: inherit; font-size: 14px; font-weight: 700; transition: background .15s, transform .15s; }
.settings-mobile-download-button:hover { transform: translateY(-1px); background: #1d51cf; }
.settings-mobile-download-button span { font-size: 22px; line-height: 1; }
.settings-mobile-url { display: grid; width: 100%; min-height: 43px; align-items: center; padding: 8px 12px; overflow-wrap: anywhere; border: 1px solid #d5e3ff; border-radius: 10px; background: #ffffffc9; color: #3158c8; font: 600 11px "DM Sans", monospace; text-align: center; text-decoration: none; direction: ltr; }
.settings-mobile-qr { display: grid; justify-items: center; gap: 9px; }
.settings-mobile-qr img { display: block; width: 150px; height: 150px; padding: 7px; border: 1px solid #e4e9f2; border-radius: 13px; background: #fff; image-rendering: pixelated; }
.settings-mobile-qr span { color: #6f82a5; font-size: 10px; text-align: center; }
.settings-mobile-footer { display: flex; justify-content: space-between; gap: 12px; padding: 16px 3px 0; color: #9aa4b4; font-size: 9px; }
@media (max-width: 720px) {
  .settings-mobile-download { padding: 18px 14px; }
  .settings-mobile-panel { grid-template-columns: 1fr; gap: 20px; padding: 18px 14px; }
  .settings-mobile-qr { grid-row: 1; }
  .settings-mobile-qr img { width: 138px; height: 138px; }
  .settings-mobile-copy h3 { font-size: 15px; }
  .settings-mobile-copy > p { font-size: 11px; }
}
.settings-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf0f5; color: #727d90; font-size: 10px; }
.settings-status-row strong { color: #485368; font-size: 10px; }
.settings-status-row .status { padding: 5px 9px; }
.settings-field { display: grid; gap: 6px; margin-top: 12px; }
.settings-field label { color: #777f8f; font-size: 9px; }
.settings-field input, .settings-field select { height: 35px; padding: 0 10px; border: 1px solid #e9edf3; border-radius: 7px; background: #fff; color: #444b5a; font-size: 10px; }
.settings-footer { display: flex; justify-content: flex-start; margin-top: 14px; }
.report-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-bottom: 15px; }
.finance-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.finance-kpi { display: grid; min-width: 0; gap: 6px; padding: 14px 15px; }
.finance-kpi > span { color: #858e9d; font-size: 9px; }
.finance-kpi > strong { overflow: hidden; color: #303747; font: 700 17px "DM Sans", "IBM Plex Sans Arabic", sans-serif; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.finance-kpi > small { color: #a0a7b3; font-size: 8px; }
.dashboard-finance { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 15px; }
.money-cell { color: #414958; font: 600 10px "DM Sans", sans-serif; direction: ltr; }
.compact-button { min-height: 26px; padding: 0 9px; font-size: 8px; }
.report-toolbar .toolbar-group { flex-wrap: wrap; }
.report-date { display: flex; align-items: center; gap: 6px; height: 35px; padding: 0 9px; border: 1px solid #e9edf3; border-radius: 8px; background: #fff; color: #858d9a; font-size: 9px; }
.report-date input { width: 130px; border: 0; background: transparent; color: #50596b; font: 9px "DM Sans", "IBM Plex Sans Arabic", sans-serif; }
.setting-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: #727b8b; font-size: 9px; }
.setting-check input { accent-color: #586fe4; }
.print-paper { display: none; }
.report-kpi { padding: 13px; }
.report-kpi small { color: #979eac; font-size: 9px; }
.report-kpi strong { display: block; margin-top: 8px; color: #333a49; font: 700 18px "DM Sans", sans-serif; direction: ltr; text-align: right; }
.report-bars { display: flex; height: 205px; align-items: end; gap: 10px; padding: 12px 19px 25px; }
.report-bar-col { display: flex; height: 100%; flex: 1; flex-direction: column; justify-content: end; align-items: center; gap: 6px; }
.report-bar { width: 54%; min-height: 6px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #8796ff, #5369e3); transition: opacity .2s; }
.report-bar-col:hover .report-bar { opacity: .75; }
.report-bar-col span { color: #a3a9b5; font: 8px "DM Sans", sans-serif; }
.financial-report { display: grid; gap: 16px; color: #263248; }
.financial-report-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.financial-report-title { display: flex; align-items: center; gap: 9px; }
.financial-report-title > span { color: #2861e9; font-size: 24px; }
.financial-report-title h1 { margin: 0; color: #17213a; font-size: 25px; font-weight: 800; }
.financial-report-header > div:first-child > p { margin: 4px 0 0; color: #77869f; font-size: 11px; font-weight: 600; }
.financial-report-tools { display: flex; align-items: center; gap: 10px; }
.report-print-button { flex: 0 0 40px; }
.report-date-range { display: flex; min-height: 42px; align-items: center; gap: 10px; padding: 4px 10px; border: 1px solid #dfe5ef; border-radius: 11px; background: #fff; color: #94a0b2; }
.report-date-range > label { display: flex; align-items: center; gap: 7px; color: #8491a8; font-size: 9px; font-weight: 600; }
.report-date-range input { width: 125px; border: 0; outline: 0; background: transparent; color: #46546b; font: 600 10px "DM Sans", sans-serif; }
.report-date-apply { border: 0; background: transparent; color: #2861e9; font: inherit; font-size: 9px; font-weight: 700; white-space: nowrap; }
.financial-report-tabs { display: flex; min-height: 50px; align-items: stretch; gap: 24px; overflow-x: auto; border-bottom: 1px solid #e1e6ef; scrollbar-width: thin; }
.financial-report-tab { position: relative; display: inline-flex; min-height: 50px; flex: 0 0 auto; align-items: center; gap: 8px; padding: 0 2px; border: 0; background: transparent; color: #7a8aa4; font: inherit; font-size: 11px; font-weight: 600; white-space: nowrap; }
.financial-report-tab > span { font-size: 15px; }
.financial-report-tab.active { color: #2861e9; }
.financial-report-tab.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #2861e9; content: ""; }
.financial-report-content { display: grid; gap: 16px; }
.report-summary.report-financial-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
.report-financial-kpis .report-kpi { display: flex; min-width: 0; min-height: 112px; align-items: flex-start; gap: 12px; padding: 18px 16px; border: 1px solid #e0e6f0; border-radius: 13px; background: #fff; box-shadow: 0 1px 3px #1c31500a; }
.report-kpi-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; background: #f3f6fc; color: #2861e9; font-size: 16px; font-weight: 700; }
.report-financial-kpis .report-kpi > div { display: grid; min-width: 0; justify-items: end; gap: 7px; flex: 1; }
.report-financial-kpis .report-kpi small { color: #7e8da5; font-size: 10px; font-weight: 600; line-height: 1.45; }
.report-financial-kpis .report-kpi strong { max-width: 100%; margin-top: 2px; overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.report-financial-kpis .report-kpi.report-tone-green strong { color: #00a879; }
.report-financial-kpis .report-kpi.report-tone-red strong { color: #f04445; }
.report-financial-kpis .report-kpi.report-tone-blue strong { color: #2861e9; }
.report-financial-kpis .report-kpi.report-tone-orange strong { color: #f36b14; }
.report-financial-kpis .report-kpi.report-tone-purple strong { color: #8b45f7; }
.report-tone-green .report-kpi-icon { color: #00a879; background: #e8fbf4; }
.report-tone-red .report-kpi-icon { color: #f04445; background: #fff0ef; }
.report-tone-purple .report-kpi-icon { color: #8b45f7; background: #f4edff; }
.report-analysis-grid { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(245px, 1fr); gap: 18px; direction: ltr; align-items: start; }
.report-top-products { min-width: 0; direction: rtl; }
.report-top-products .card-header { min-height: 64px; }
.report-top-products .card-heading strong { color: #35435b; font-size: 13px; }
.report-top-products .card-heading small { margin-top: 4px; color: #94a0b1; font-size: 9px; }
.report-rank-badge { padding: 5px 9px; border-radius: 20px; background: #fff3d3; color: #be8100; font-size: 9px; font-weight: 700; white-space: nowrap; }
.report-flow-list { display: grid; gap: 13px; direction: rtl; }
.report-flow-card { display: flex; min-height: 78px; align-items: center; gap: 13px; padding: 14px 16px; border: 1px solid #e4e9f1; border-radius: 13px; background: #fff; }
.report-flow-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; background: #edf3ff; color: #2861e9; font-size: 15px; }
.report-flow-card > div { display: grid; min-width: 0; flex: 1; gap: 6px; text-align: right; }
.report-flow-card small { color: #63748f; font-size: 10px; font-weight: 600; }
.report-flow-card strong { color: #2861e9; font: 700 19px "DM Sans", "IBM Plex Sans Arabic", sans-serif; direction: ltr; text-align: right; }
.report-flow-net { border-top: 4px solid #2861e9; background: #f1f6ff; }
.report-flow-in { border-inline-end: 4px solid #0ac08b; background: #effbf7; }
.report-flow-in .report-flow-icon { background: #d7f8e9; color: #00a879; }
.report-flow-in strong { color: #008964; }
.report-flow-out { border-inline-end: 4px solid #f04445; background: #fff4f3; }
.report-flow-out .report-flow-icon { background: #ffe4e2; color: #e84c4c; }
.report-flow-out strong { color: #db3535; }
.report-flow-balance { background: #f4f7fb; }
.report-flow-capital { border-inline-end: 4px solid #13bfa8; background: #f0fcf9; }
.report-flow-capital .report-flow-icon { background: #d5f8f2; color: #0e9b89; }
.report-flow-capital strong { color: #078575; }
.report-calculation-note { margin: 0; color: #8d98aa; font-size: 9px; line-height: 1.8; }
.report-section-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.report-type-field { display: grid; gap: 5px; color: #7f8ba0; font-size: 9px; }
.report-chart-card { padding-bottom: 16px; }
.report-chart-legend { display: flex; gap: 14px; color: #7d899d; font-size: 9px; }
.report-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.report-chart-legend i { width: 8px; height: 8px; border-radius: 50%; }
.report-chart-sale { background: #426cf2; }
.report-chart-expense { background: #ff9167; }
.report-chart { display: grid; min-height: 220px; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; padding: 20px 24px 8px; border-bottom: 1px solid #edf0f5; }
.report-chart-day { display: grid; grid-template-rows: 1fr auto; gap: 10px; justify-items: center; }
.report-chart-bars { display: flex; width: 100%; height: 180px; align-items: end; justify-content: center; gap: 5px; border-bottom: 1px dashed #e2e8f1; background: repeating-linear-gradient(to top, transparent 0, transparent 44px, #eef1f6 45px, transparent 46px); }
.report-chart-bars i { width: min(24px, 34%); min-height: 3px; border-radius: 5px 5px 0 0; }
.report-chart-day small { color: #8995a8; font-size: 9px; white-space: nowrap; }
.report-zakat-callout { display: flex; align-items: center; gap: 16px; padding: 22px; }
.report-zakat-callout > span { color: #8b45f7; font-size: 28px; }
.report-zakat-callout > div { flex: 1; }
.report-zakat-callout h2 { margin: 0 0 6px; color: #35435b; font-size: 15px; }
.report-zakat-callout p { margin: 0; color: #8390a4; font-size: 10px; line-height: 1.7; }

.toast { position: fixed; z-index: 50; right: 50%; bottom: 24px; max-width: calc(100% - 30px); padding: 11px 17px; border: 1px solid #ffffff1a; border-radius: 9px; background: #26334c; color: #fff; box-shadow: 0 8px 30px #1c27462c; font-size: 10px; opacity: 0; pointer-events: none; transform: translate(50%, 10px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(50%, 0); }
#modalRoot:empty { display: none; }
.modal-backdrop { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 20px; background: #17233c70; backdrop-filter: blur(3px); animation: fade-in .16s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(440px, 100%); overflow: hidden; border: 1px solid #ffffff80; border-radius: 14px; background: #fff; box-shadow: 0 20px 70px #16213b35; animation: modal-in .2s ease both; }
.modal.modal-wide { width: min(900px, 100%); }
.modal.product-modal { width: min(760px, 100%); }
.product-modal-header { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; direction: rtl; }
.product-modal-header h2 { text-align: center; }
.product-save-top { min-height: 34px; background: #079b70; box-shadow: 0 4px 12px #079b7030; }
.product-modal .modal-body { display: block; min-height: 390px; padding: 0 20px 20px; }
.product-form-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 -20px 20px; padding: 12px 20px; border-bottom: 1px solid #e8ecf3; background: #fff; }
.product-form-tab { min-height: 42px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #78859a; font-size: 11px; font-weight: 600; }
.product-form-tab span { margin-inline-start: 5px; color: #91a0b7; }
.product-form-tab.active { border-color: #dce5ff; background: #f2f5ff; color: #4764df; }
.product-form-panel[hidden], .product-variant-input[hidden] { display: none; }
.product-form-section { padding: 18px; border: 1px solid #e1e7ff; border-radius: 13px; background: #f8f9ff; }
.product-form-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 13px; border-bottom: 1px solid #e2e7fa; color: #5269e8; }
.product-form-section-heading h3 { margin: 0; color: #35405a; font-size: 13px; }
.product-form-section-heading p { margin: 5px 0 0; color: #8792a6; font-size: 10px; }
.product-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; }
.product-form-field { min-width: 0; gap: 7px; }
.product-form-field > span { color: #5d6980; font-size: 10px; font-weight: 600; }
.product-form-field > span b { color: #df6269; }
.product-form-field input, .product-form-field select { height: 40px; padding-inline: 12px; border: 1px solid #e0e5ef; border-radius: 8px; font-size: 11px; }
.product-form-field input:focus, .product-form-field select:focus { border-color: #91a4ff; outline: 3px solid #6579ee18; }
.product-form-field small { color: #929caf; font-size: 9px; }
.product-field-wide { grid-column: 1 / -1; }
.product-barcode-control { display: flex; align-items: center; gap: 7px; }
.product-barcode-control input { min-width: 0; flex: 1; }
.product-barcode-control .button { min-height: 36px; padding: 0 11px; font-size: 10px; white-space: nowrap; }
.product-image-upload { width: fit-content; min-height: 34px; cursor: pointer; }
.product-image-preview { display: flex; min-height: 40px; align-items: center; gap: 10px; }
.product-image-preview img { width: 92px; height: 92px; border: 1px solid #e3e7f0; border-radius: 10px; background: #fff; object-fit: cover; }
.product-margin-display { padding: 10px 12px; border: 1px solid #dfe9e6; border-radius: 8px; background: #f1faf6; color: #318263; font-size: 10px; font-weight: 600; }
.product-margin-display.is-negative { border-color: #f1d7d7; background: #fff5f5; color: #bd5252; }
.product-expiry-date { display: block; margin-top: 4px; color: #8d97a8; font-size: 9px; direction: ltr; text-align: right; }
.product-form-toggle { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 18px; margin: 10px 0; padding: 11px 13px; border: 1px solid #e4e9f2; border-radius: 10px; background: #fff; }
.product-form-toggle span { display: grid; gap: 4px; }
.product-form-toggle strong { color: #414c61; font-size: 11px; }
.product-form-toggle small { color: #8995a8; font-size: 9px; }
.product-form-toggle input { width: 40px; height: 22px; accent-color: #4a70ed; }
.product-variant-input { margin: 12px 0; padding: 13px; border: 1px solid #e6eaf2; border-radius: 9px; background: #fff; }
.record-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -5px 0 18px; padding: 5px; border: 1px solid #e8ecf3; border-radius: 11px; background: #fff; }
.record-tab { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #6d798d; font-size: 10px; font-weight: 600; }
.record-tab span { display: grid; min-width: 21px; height: 21px; place-items: center; padding: 0 5px; border-radius: 7px; background: #edf0f6; color: #69758b; font: 600 9px "DM Sans", sans-serif; }
.record-tab.active { border-color: #dce4ff; background: #f3f5ff; color: #4862d8; }
.record-tab.active span { background: #e1e7ff; color: #465fd5; }
.return-total { color: #58667c; font-size: 10px; white-space: nowrap; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 17px 19px; border-bottom: 1px solid #f0f2f6; }
.modal-header h2 { margin: 0; color: #303747; font-size: 14px; font-weight: 600; }
.modal-close { display: grid; width: 27px; height: 27px; place-items: center; border: 0; border-radius: 7px; background: #f5f6f9; color: #8992a1; font-size: 17px; }
.modal-body { display: grid; gap: 13px; padding: 17px 19px; }
.camera-scanner-backdrop { z-index: 120; padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.camera-scanner-dialog { display: grid; width: min(520px, 100%); gap: 14px; overflow: hidden; padding-bottom: 17px; border: 1px solid #ffffff80; border-radius: 17px; background: #fff; box-shadow: 0 20px 70px #16213b35; }
.camera-scanner-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 17px 0; }
.camera-scanner-header h2 { margin: 0; color: #303747; font-size: 15px; }
.camera-scanner-header p, .camera-scanner-help { margin: 5px 0 0; color: #8792a4; font-size: 10px; line-height: 1.7; }
.camera-scanner-view { position: relative; display: grid; min-height: 190px; max-height: 52dvh; overflow: hidden; place-items: center; margin: 0 14px; border-radius: 12px; background: #111827; }
.camera-scanner-view video { display: block; width: 100%; max-height: 52dvh; aspect-ratio: 4 / 3; object-fit: cover; }
.camera-scanner-frame { position: absolute; width: min(78%, 310px); height: 27%; border: 2px solid #69e4b7; border-radius: 10px; box-shadow: 0 0 0 999px #09111b40; pointer-events: none; }
.camera-scanner-status { min-height: 20px; margin: 0 17px; color: #5269e8; font-size: 11px; line-height: 1.7; text-align: center; }
.camera-scanner-help { margin: -7px 17px 0; text-align: center; }
.modal-field { display: grid; gap: 6px; }
.modal-field label { color: #737c8e; font-size: 9px; }
.modal-field input, .modal-field select { width: 100%; height: 37px; padding: 0 10px; border: 1px solid #e8ebf1; border-radius: 7px; background: #fff; color: #424958; font-size: 10px; }
.import-preview { max-height: 330px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.import-preview table { width: 100%; border-collapse: collapse; font-size: 9px; white-space: nowrap; }
.import-preview th, .import-preview td { padding: 8px; border-bottom: 1px solid var(--line); text-align: right; }
.import-preview th { position: sticky; top: 0; background: #f7f8fc; color: #697386; }
.import-summary { color: #626d80; font-size: 10px; }
.zakat-result { align-content: start; gap: 14px; }
.zakat-row, .zakat-due { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); color: #737c8e; font-size: 10px; }
.zakat-row strong, .zakat-due strong { color: #3c4658; font: 600 11px "DM Sans", sans-serif; direction: ltr; text-align: left; }
.zakat-due { margin-top: 5px; padding: 14px; border: 0; border-radius: 9px; background: #f1f3ff; color: #4a5ed0; font-weight: 600; }
.zakat-due strong { color: #465dd9; font-size: 17px; }
.zakat-note { margin: 0; color: #9a7a4d; font-size: 9px; line-height: 1.8; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-start; padding: 12px 19px 17px; border-top: 1px solid #f0f2f6; }
.purchase-invoice-modal { display: flex; width: min(1120px, 100%); max-height: calc(100dvh - 40px); flex-direction: column; }
.purchase-invoice-modal #modalForm { display: flex; min-height: 0; flex-direction: column; }
.purchase-invoice-modal .modal-header, .purchase-invoice-modal .modal-footer { flex: 0 0 auto; background: #fff; }
.purchase-invoice-modal .modal-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; }
.purchase-editor-layout { display: grid; grid-template-columns: minmax(260px, 310px) minmax(0, 1fr); gap: 16px; align-items: start; direction: rtl; }
.purchase-invoice-sidebar, .purchase-editor-main { display: grid; min-width: 0; gap: 13px; align-content: start; }
.purchase-invoice-meta { display: grid; gap: 12px; padding: 16px; border: 1px solid #e8ecf3; border-radius: 12px; background: #fff; }
.purchase-invoice-meta h3, .purchase-summary-card h3 { margin: 0 0 2px; color: #333d52; font-size: 12px; }
.purchase-invoice-meta .modal-field { min-width: 0; }
.purchase-invoice-meta .modal-field label { color: #727d91; font-size: 10px; font-weight: 600; }
.purchase-invoice-meta .modal-field input, .purchase-invoice-meta .modal-field select { height: 40px; border-color: #e0e6ef; border-radius: 9px; font-size: 11px; }
.purchase-summary-card { display: grid; gap: 12px; padding: 16px; border: 1px solid #e4e9f2; border-radius: 12px; background: #f7f9fc; }
.purchase-summary-card > div { display: flex; justify-content: space-between; gap: 10px; color: #788398; font-size: 10px; }
.purchase-summary-card > div strong { color: #354158; font: 600 11px "DM Sans", sans-serif; font-variant-numeric: tabular-nums; }
.purchase-summary-card .purchase-summary-total { margin-top: 2px; padding-top: 12px; border-top: 1px solid #e2e7ef; color: #465dd9; font-weight: 700; }
.purchase-summary-card .purchase-summary-total strong { color: #079b70; font-size: 17px; }
.purchase-photo-section, .purchase-lines-section { display: grid; gap: 10px; padding: 13px; border: 1px solid #edf0f5; border-radius: 10px; background: #fbfcfe; }
.purchase-photo-section > div:first-child, .purchase-lines-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.purchase-photo-section > div:first-child { display: block; }
.purchase-photo-section strong, .purchase-lines-heading strong { color: #485268; font-size: 11px; }
.purchase-photo-section small { display: block; margin-top: 4px; color: #9099aa; font-size: 9px; }
.purchase-photo-section .product-image-upload { min-height: 32px; }
.purchase-photo-section > .product-image-upload { width: fit-content; }
.purchase-photo-preview { display: flex; align-items: center; gap: 10px; color: #7b879a; font-size: 9px; }
.purchase-photo-preview img { width: 76px; height: 76px; border: 1px solid #e3e7f0; border-radius: 8px; background: #fff; object-fit: cover; }
.purchase-photo-section #purchaseOcrStatus { color: #657187; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.purchase-photo-section #purchaseOcrStatus pre { max-height: 180px; overflow: auto; white-space: pre-wrap; direction: auto; }
.purchase-photo-section #purchaseOcrStatus summary { cursor: pointer; }
.purchase-lines-heading .button { min-height: 31px; padding: 0 10px; }
.purchase-lines-heading .button svg { width: 13px; height: 13px; }
.purchase-lines-heading > div { min-width: 0; }
.purchase-lines-heading small { display: block; margin-top: 4px; color: #8792a6; font-size: 9px; line-height: 1.6; }
.purchase-line-head, .purchase-line { display: grid; grid-template-columns: minmax(135px, 1.8fr) minmax(70px, .7fr) minmax(120px, 1.1fr) minmax(95px, .8fr) 30px; gap: 8px; align-items: center; }
.purchase-product-cell { display: grid; min-width: 0; gap: 8px; }
.purchase-new-product-fields { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; border: 1px solid #dfe7f5; border-radius: 9px; background: #f7f9ff; }
.purchase-new-product-fields[hidden] { display: none; }
.purchase-new-product-fields .modal-field { display: grid; gap: 5px; }
.purchase-new-product-fields .modal-field:first-child, .purchase-new-product-fields > small { grid-column: 1 / -1; }
.purchase-new-product-fields > small { color: #7d8ba2; font-size: 9px; line-height: 1.5; }
.purchase-line-head { padding: 10px 8px; border-bottom: 1px solid #e9edf4; color: #8792a6; font-size: 9px; font-weight: 600; }
.purchase-line { padding: 12px 8px; border-bottom: 1px solid #edf0f5; }
.purchase-line .modal-field { min-width: 0; }
.purchase-line .modal-field > span { color: #788398; font-size: 9px; }
.purchase-line .modal-field input, .purchase-line .modal-field select { height: 38px; min-width: 0; border-radius: 8px; font-size: 10px; }
.purchase-line-total { display: grid; gap: 4px; min-width: 0; color: #8792a6; font-size: 9px; }
.purchase-line-total strong { overflow: hidden; color: #354158; font: 600 10px "DM Sans", sans-serif; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.purchase-line:first-child { padding-top: 0; border-top: 0; }
.purchase-line-remove { width: 30px; height: 37px; border: 1px solid #f0dede; border-radius: 7px; background: #fff7f7; color: #c45c63; font-size: 17px; }
.purchase-invoice-image-full { display: block; max-width: 100%; max-height: 70vh; margin: auto; object-fit: contain; }
.checkout-total { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: 8px; background: #f5f6ff; color: #69738a; font-size: 10px; }
.checkout-total strong { color: #465dd9; font: 700 17px "DM Sans", sans-serif; direction: ltr; }
.payment-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.cash-session-optional-note { color: #78859a; font-size: 9px; }
.payment-option { display: grid; min-height: 56px; gap: 4px; place-content: center; border: 1px solid #e9edf3; border-radius: 8px; background: #fff; color: #7e8797; font-size: 9px; text-align: center; }
.payment-option span { font-size: 16px; }
.payment-option.selected { border-color: #bfc8ff; background: #f5f6ff; color: #5269df; }
.toast-check { display: inline-grid; width: 18px; height: 18px; place-items: center; margin-left: 5px; border-radius: 50%; background: #ffffff22; color: #abf2d4; }
.language-switch, .logout-button { min-height: 31px; padding: 0 9px; border: 1px solid #eceff4; border-radius: 7px; background: #fff; color: #59647a; font-size: 10px; font-weight: 600; }
.language-switch:hover, .logout-button:hover { border-color: #cbd2ff; color: var(--blue); }
.auth-hidden { display: none !important; }
.auth-screen { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 24px; background: radial-gradient(circle at 20% 15%, #e9edff, transparent 38%), #f4f6fb; }
.auth-card { display: grid; gap: 14px; width: min(420px, 100%); padding: 32px; border: 1px solid #e9ecf4; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px #1c2a491c; }
.auth-date-time { margin: 0 auto; }
.auth-brand { color: #5269e8; font: 700 22px "DM Sans", sans-serif; text-align: center; }
.auth-card h1 { margin: 4px 0 0; color: #252b3a; font-size: 20px; text-align: center; }
.auth-card > p { margin: 0; color: #8d95a6; font-size: 12px; line-height: 1.7; text-align: center; }
.auth-card > label { display: grid; gap: 7px; color: #737c8e; font-size: 11px; }
.auth-card input, .auth-card select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #e5e9f0; border-radius: 8px; background: #fff; color: #303747; }
.auth-password-control { position: relative; display: flex; }
.auth-password-control input { padding-inline-end: 112px; }
.auth-password-toggle { position: absolute; inset-block: 4px; inset-inline-end: 4px; padding: 0 9px; border: 0; border-radius: 6px; background: #f3f5ff; color: #5269e8; font-size: 10px; font-weight: 600; }
.auth-password-toggle:hover { background: #e9edff; }
.auth-submit { min-height: 42px; font-size: 12px; }
.auth-language { justify-self: center; padding: 6px 12px; border: 0; background: transparent; color: #5969d6; font-size: 11px; }
.auth-card .auth-error { min-height: 0; color: #c63e48; font-size: 11px; }
.trial-status-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 12px 16px; border: 1px solid #e8d596; border-radius: 10px; background: #fff8df; color: #755a12; font-size: 13px; line-height: 1.7; }
.trial-status-banner > div { display: grid; gap: 2px; min-width: 0; }
.trial-status-banner strong, .trial-label { color: #755a12; font-weight: 700; }
.trial-status-banner b { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.trial-status-banner .button { flex: 0 0 auto; min-height: 34px; }
.trial-activation-form { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid #eceff4; }
.trial-activation-form > label { color: #596174; font-size: 11px; font-weight: 600; }
.trial-activation-controls { display: flex; gap: 8px; }
.trial-activation-controls input { flex: 1; min-width: 0; }
.trial-activation-controls .button { flex: 0 0 auto; min-height: 40px; }
.trial-activation-form .auth-error { margin: 0; color: #c63e48; font-size: 11px; line-height: 1.5; }
.trial-ended-badge { justify-self: center; padding: 5px 10px; border: 1px solid #f0c4c6; border-radius: 999px; background: #fff0f0; color: #b13740; font-size: 11px; font-weight: 700; }
.auth-card > .trial-status-banner { margin: 0; }
.auth-card > .trial-activation-form { margin-top: 2px; }
.mobile-install-prompt {
  position: fixed;
  z-index: 110;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: max(12px, env(safe-area-inset-left, 0px));
  display: flex;
  max-width: 520px;
  align-items: center;
  gap: 12px;
  margin-inline: auto;
  padding: 12px;
  border: 1px solid #dfe6f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px #17233c20;
  direction: rtl;
}
.mobile-install-prompt[hidden] { display: none; }
.mobile-install-copy { display: grid; flex: 1; gap: 3px; min-width: 0; }
.mobile-install-copy strong { color: #354158; font-size: 11px; }
.mobile-install-copy span { color: #7d899e; font-size: 9px; line-height: 1.5; }
.mobile-install-button { min-height: 38px; flex: 0 0 auto; padding: 0 12px; border: 0; border-radius: 9px; background: #2866ed; color: #fff; font: inherit; font-size: 10px; font-weight: 700; }
.mobile-install-dismiss { width: 30px; height: 30px; flex: 0 0 auto; border: 0; border-radius: 8px; background: #f3f5f9; color: #77839a; font-size: 19px; }
@media (max-width: 560px) {
  .trial-status-banner { align-items: stretch; flex-direction: column; padding: 11px 12px; }
  .trial-status-banner .button { width: 100%; }
  .trial-activation-controls { flex-direction: column; }
  .trial-activation-controls .button { width: 100%; }
  .mobile-install-prompt { gap: 8px; padding: 10px; }
  .mobile-install-copy strong { font-size: 10px; }
  .mobile-install-copy span { font-size: 8px; }
  .mobile-install-button { padding: 0 9px; font-size: 9px; }
}
.permissions-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 12px; border: 1px solid #e8ebf1; border-radius: 8px; }
.permissions-list legend { padding: 0 5px; color: #737c8e; font-size: 10px; }
.permission-option { display: flex; align-items: center; gap: 6px; color: #596174; font-size: 10px; }
.permission-option input { accent-color: var(--blue); }
.invoice-note { margin: 6px 0; text-align: center; font-weight: 700; }

:root[dir="ltr"] .sidebar { inset: 0 auto 0 0; }
:root[dir="ltr"] .main-panel { margin-right: 0; margin-left: 254px; }
:root[dir="ltr"] .nav-item { text-align: left; }
:root[dir="ltr"] .nav-item kbd, :root[dir="ltr"] .nav-count { margin-right: 0; margin-left: auto; }
:root[dir="ltr"] .switch-chevron { margin-right: 0; margin-left: auto; }
:root[dir="ltr"] .profile-button { text-align: left; }
:root[dir="ltr"] .modal-footer { justify-content: flex-end; }
:root[dir="ltr"] .receipt-details, :root[dir="ltr"] .receipt-lines th, :root[dir="ltr"] .receipt-lines td { text-align: left; }

@media (max-width: 980px) {
  .purchase-editor-layout { grid-template-columns: 1fr; }
  .purchase-line-head { display: none; }
  .purchase-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; gap: 8px; }
  .purchase-product-cell { grid-column: 1 / 3; }
  .purchase-line-total { grid-column: 1 / 3; }
  .purchase-line-remove { grid-column: 3; grid-row: 2; }
  .purchase-lines-heading { align-items: flex-start; }
}

@media (max-width: 720px) {
  .purchase-invoice-modal { width: 100%; }
  .purchase-invoice-modal .modal-body { max-height: calc(100dvh - 130px); padding: 12px; }
  .purchase-invoice-modal .modal-footer { padding: 10px 12px 13px; }
  .purchase-invoice-sidebar, .purchase-editor-main { gap: 10px; }
  .purchase-invoice-meta, .purchase-summary-card { padding: 13px; }
  .purchase-photo-section, .purchase-lines-section { padding: 11px; }
  .purchase-lines-heading { flex-wrap: wrap; }
}

@media (min-width: 1500px) {
  .page-content { padding-right: 42px; padding-left: 42px; }
}
@media (max-width: 1200px) {
  .sidebar { width: 225px; padding-right: 15px; padding-left: 15px; }
  .main-panel { width: calc(100% - 225px); margin-right: 225px; }
  .topbar { padding-right: 24px; padding-left: 24px; }
  .page-content { padding-right: 24px; padding-left: 24px; }
  .stat-grid { gap: 10px; }
  .stat-card { padding: 13px 12px; }
  .pos-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :root[dir="ltr"] .main-panel { margin-left: 225px; }
}
@media (max-width: 980px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-main-grid { grid-template-columns: minmax(0, 1.4fr) minmax(220px, .9fr); }
  .dashboard-bottom-grid { grid-template-columns: minmax(0, 1.4fr) minmax(215px, .9fr); }
  .pos-layout { grid-template-columns: minmax(0, 1fr) 285px; gap: 11px; }
  .pos-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar-actions { gap: 11px; }
  .global-search { width: 220px; }
  .primary-nav { max-height: calc(100vh - 300px); }
  .print-center-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .print-center-preview-panel { grid-column: 1 / -1; min-height: 430px; }
}
@media (max-width: 1100px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .breadcrumbs { grid-column: 1; grid-row: 1; min-width: 0; }
  .topbar > .app-date-time { grid-column: 2; grid-row: 1; }
  .topbar-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    min-width: 0;
  }
  .global-search { width: auto; min-width: 0; flex: 1 1 0; }
}
@media (max-width: 980px) {
  .sidebar { right: -254px; width: 254px; transform: none; transition: right .24s ease; box-shadow: -8px 0 35px #0f1b3020; }
  .sidebar.open { right: 0; }
  :root[dir="ltr"] .sidebar { right: auto; left: -254px; transition: left .24s ease; box-shadow: 8px 0 35px #0f1b3020; }
  :root[dir="ltr"] .sidebar.open { right: auto; left: 0; }
  .main-panel { width: 100%; margin-right: 0; }
  :root[dir="ltr"] .main-panel { margin-left: 0; }
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .mobile-menu { display: grid; width: 32px; height: 32px; }
  .topbar > .mobile-menu { grid-column: 1; grid-row: 1; }
  .breadcrumbs { grid-column: 2; grid-row: 1; min-width: 0; overflow: hidden; }
  .topbar > .app-date-time { grid-column: 3; grid-row: 1; }
  .topbar-actions { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 720px) {
  .sidebar { right: -254px; width: 254px; transform: none; transition: right .24s ease; box-shadow: -8px 0 35px #0f1b3020; }
  .sidebar.open { right: 0; }
  :root[dir="ltr"] .sidebar { right: auto; left: -254px; transition: left .24s ease; box-shadow: 8px 0 35px #0f1b3020; }
  :root[dir="ltr"] .sidebar.open { right: auto; left: 0; }
  .main-panel { width: 100%; margin-right: 0; }
  :root[dir="ltr"] .main-panel { margin-left: 0; }
  .topbar { min-height: 62px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 8px 15px; }
  .mobile-menu { display: grid; width: 32px; height: 32px; }
  .topbar > .mobile-menu { grid-column: 1; grid-row: 1; }
  .mobile-menu svg { width: 17px; height: 17px; }
  .breadcrumbs { grid-column: 2; grid-row: 1; gap: 6px; overflow: hidden; }
  .topbar > .app-date-time { grid-column: 3; grid-row: 1; width: 110px; min-width: 0; }
  .breadcrumbs > span:first-child, .crumb-separator { display: none; }
  .topbar-actions { grid-column: 1 / -1; grid-row: 2; gap: 8px; }
  .app-date-time { padding: 4px 6px; font-size: 8px; }
  .app-date-time strong { font-size: 11px; }
  .global-search { width: auto; min-width: 0; flex: 1 1 0; padding: 7px; }
  .global-search input { font-size: 9px; }
  .global-search kbd, .topbar-divider, .profile-copy, .profile-chevron { display: none; }
  .icon-button { width: 32px; height: 32px; }
  .avatar { width: 32px; height: 32px; }
  .page-content { padding: 23px 15px 35px; }
  .page-heading { align-items: flex-start; margin-bottom: 18px; }
  .print-center-page > .page-heading .heading-actions { width: 100%; }
  .print-center-page > .page-heading .heading-actions .button { flex: 1; }
  .print-center-layout { grid-template-columns: 1fr; }
  .print-center-preview-panel { grid-column: auto; min-height: 500px; }
  .print-center-picker, .print-center-queue { min-height: 510px; }
  .page-heading h1 { font-size: 20px; }
  .page-heading p { max-width: 250px; font-size: 10px; line-height: 1.7; }
  .heading-actions { gap: 6px; }
  .heading-actions .button { min-height: 33px; padding: 0 9px; font-size: 9px; }
  .date-pill { display: none; }
  .stat-card { min-height: 121px; }
  .stat-value { font-size: 19px; }
  .dashboard-main-grid, .dashboard-bottom-grid { grid-template-columns: 1fr; }
  .summary-card { min-height: 276px; }
  .quick-card { min-height: 0; }
  .quick-actions { grid-template-columns: repeat(3, 1fr); }
  .quick-action { flex-direction: column; align-items: flex-start; }
  .quick-action span:nth-child(2) { gap: 4px; }
  .quick-arrow { display: none; }
  .pos-layout { grid-template-columns: 1fr; }
  .cart-card { position: static; grid-row: 1; }
  .pos-catalog { grid-row: 2; }
  .pos-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cart-items { max-height: 195px; }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-group { width: 100%; }
  .field-search { min-width: 0; flex: 1; }
  .toolbar .button { white-space: nowrap; }
  .toolbar-select { max-width: 48%; flex: 1; }
  .settings-grid { grid-template-columns: 1fr; }
  .dashboard-finance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-toolbar .toolbar-group { align-items: stretch; }
  .report-date { flex: 1; justify-content: space-between; }
  .report-date input { width: 110px; }
}
@media (max-width: 430px) {
  .topbar { column-gap: 6px; padding-right: 10px; padding-left: 10px; }
  .topbar-actions { gap: 6px; }
  .stat-grid { gap: 8px; }
  .stat-card { min-height: 115px; padding: 11px; }
  .stat-icon { width: 30px; height: 30px; }
  .stat-label { font-size: 9px; }
  .stat-value { margin: 9px 0 6px; font-size: 17px; }
  .stat-foot { gap: 4px; font-size: 8px; }
  .stat-foot .trend-up, .stat-foot .trend-down { font-size: 8px; }
  .page-heading { flex-wrap: wrap; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .product-modal-header { grid-template-columns: auto 1fr auto; gap: 7px; padding: 12px; }
  .product-save-top { padding: 0 9px; font-size: 9px; }
  .product-modal-header h2 { font-size: 12px; }
  .product-modal .modal-body { min-height: 370px; padding: 0 12px 13px; }
  .product-form-tabs { gap: 3px; margin: 0 -12px 13px; padding: 9px 7px; }
  .product-form-tab { min-height: 40px; padding: 0 4px; font-size: 8px; }
  .product-form-section { padding: 12px; }
  .product-form-grid { grid-template-columns: 1fr; gap: 11px; }
  .product-field-wide { grid-column: auto; }
  .record-tab { flex: 1; justify-content: center; padding: 0 8px; font-size: 9px; }
  .pos-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-legend { gap: 7px; font-size: 8px; }
  .card-header { padding-right: 13px; padding-left: 13px; }
  .report-summary { gap: 7px; }
  .report-kpi { padding: 10px; }
  .report-kpi strong { font-size: 15px; }
  .finance-kpi { padding: 11px; }
  .finance-kpi > strong { font-size: 14px; }
  .report-date { width: 100%; }
}

@media (max-width: 980px) {
  .pos-topbar { gap: 8px; padding: 0 10px; }
  .pos-date-time { min-width: 126px; }
  .pos-device-status { display: none; }
  .pos-barcode { width: min(30vw, 260px); }
  .pos-barcode-control { width: min(30vw, 280px); flex-basis: min(30vw, 280px); }
  .pos-product-search { width: min(30vw, 260px); }
  .pos-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .app-shell.pos-mode, .app-shell.pos-mode > .main-panel { height: 100dvh; min-height: 100dvh; }
  .app-shell.pos-mode #pageContent.page-content { height: 100dvh; }
}

.pos-screen { zoom: var(--pos-ui-scale, 1); }
.pos-workspace { grid-template-columns: minmax(255px, var(--pos-cart-width, 29.5%)) minmax(0, 1fr); }
.pos-screen .pos-product-grid { grid-template-columns: repeat(var(--pos-card-count, 5), minmax(0, 1fr)); }
.pos-screen .pos-product { min-height: var(--pos-card-min-height, 150px); padding: var(--pos-card-padding, 9px); }
.pos-screen .pos-product-image { height: var(--pos-card-image-height, 64px); font-size: var(--pos-card-image-font, 27px); }
.pos-screen .pos-product-name { font-size: var(--pos-card-name-font, 9px); }
.pos-screen .pos-product-meta { font-size: var(--pos-card-meta-font, 8px); }
.pos-screen .pos-product-price { font-size: var(--pos-card-price-font, 10px); }
.pos-product-category, .pos-product-description, .pos-product-cost { overflow: hidden; color: #8491a6; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.pos-product-cost { color: #8794ab; text-align: start; }
.pos-screen.layout-categories .pos-catalog-toolbar { min-height: 68px; height: auto; align-items: flex-start; padding-top: 9px; padding-bottom: 9px; }
.pos-screen.layout-categories .pos-category-tabs { flex-wrap: wrap; overflow: hidden; }
.pos-screen.layout-compact .pos-product-grid { gap: 7px; padding: 11px; }
.pos-screen.layout-compact .pos-product { min-height: var(--pos-compact-min-height, 112px); }
.pos-screen.layout-compact .pos-product-image { height: var(--pos-compact-image-height, 42px); margin-bottom: 4px; }
.pos-screen.catalog-list .pos-product-grid { grid-template-columns: 1fr; gap: 7px; }
.pos-screen.catalog-list .pos-product { display: grid; min-height: 74px; grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 9px; }
.pos-screen.catalog-list .pos-product-image { grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; }
.pos-screen.catalog-list .pos-product-name, .pos-screen.catalog-list .pos-product-category, .pos-screen.catalog-list .pos-product-description { grid-column: 2; }
.pos-screen.catalog-list .pos-product-meta { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; gap: 5px; }
.pos-screen.catalog-list .pos-product-cost { grid-column: 2 / -1; }
.pos-screen .pos-product-grid { font-size: var(--pos-card-base-font, 10px); }
.pos-screen.images-hidden.catalog-list .pos-product { grid-template-columns: minmax(0, 1fr) auto; }
.pos-screen.images-hidden.catalog-list .pos-product-meta { grid-column: 2; }

.cashbox-page { display: grid; gap: 18px; }
  .cashbox-page > .page-heading { margin-bottom: 0; }
  .cash-session-summary, .cashbox-idle { padding: 24px; }
  .cash-session-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
  .cash-session-heading h2, .cashbox-idle h2 { margin: 9px 0 4px; color: #28334a; font-size: 19px; }
  .cash-session-heading p, .cashbox-idle p { margin: 0; color: #8996aa; font-size: 10px; }
  .cash-open-badge { display: inline-flex; align-items: center; gap: 6px; color: #21865f; font-size: 10px; font-weight: 700; }
  .cash-open-badge i { width: 7px; height: 7px; border-radius: 50%; background: #39ae7d; }
  .cash-session-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .cash-metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
  .cash-metric-grid article { display: grid; min-height: 82px; align-content: center; gap: 9px; padding: 12px; border: 1px solid #e8edf4; border-radius: 11px; background: #fbfcfe; }
  .cash-metric-grid small { color: #8895aa; font-size: 9px; }
  .cash-metric-grid strong { color: #354158; font: 600 14px "DM Sans", sans-serif; direction: ltr; text-align: right; }
  .cash-metric-grid .cash-metric-highlight { border-color: #d7e3ff; background: #f4f7ff; }
  .cash-metric-grid .cash-metric-highlight strong { color: #3269ea; font-size: 16px; }
  .cashbox-idle { display: grid; min-height: 350px; justify-items: center; align-content: center; text-align: center; }
  .cashbox-lock { display: grid; width: 68px; height: 68px; place-items: center; border-radius: 18px; background: #f0f4f9; color: #96a5bb; font-size: 27px; }
  .cashbox-idle h2 { margin-top: 22px; }
  .cashbox-open-form { display: grid; grid-template-columns: minmax(150px, 190px) auto; align-items: end; gap: 11px; margin-top: 25px; padding: 18px; border: 1px solid #e0e7f1; border-radius: 14px; background: #fff; box-shadow: 0 4px 12px #24375008; text-align: right; }
  .cashbox-open-form label { grid-column: 2; color: #5e6d84; font-size: 9px; font-weight: 700; }
  .cashbox-open-form input { grid-column: 2; grid-row: 2; width: 100%; height: 46px; border: 2px solid #dfe6f0; border-radius: 10px; background: #f8fafc; color: #263248; font: 600 14px "DM Sans", sans-serif; text-align: center; }
  .cashbox-open-form button { grid-column: 1; grid-row: 1 / span 2; min-width: 145px; min-height: 56px; }
  .cashbox-page .card-header { align-items: center; }
  .cash-session-date { display: block; margin-top: 4px; color: #8d99ad; font-size: 8px; }
  .cash-positive { color: #21946a; }
  .cash-negative { color: #d35e62; }
  .cash-close-summary { display: flex; justify-content: space-between; margin-bottom: 18px; padding: 14px; border: 1px solid #dfe7f3; border-radius: 10px; background: #f7f9fc; color: #66748c; font-size: 10px; }
  .cash-close-summary strong { color: #2866ed; font: 600 13px "DM Sans", sans-serif; }
  .cash-session-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .cash-session-detail p { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 10px 0; border-bottom: 1px solid #edf0f5; color: #7d899e; font-size: 9px; }
  .cash-session-detail strong { color: #3c485e; font-weight: 600; }

  .pos-display-settings { max-width: 900px; }
  .pos-display-settings > .settings-card { display: grid; gap: 18px; padding: 24px; }
  .pos-display-section { display: grid; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid #edf0f5; }
  .pos-display-section > strong, .pos-display-control > span { color: #53617a; font-size: 10px; font-weight: 700; }
  .pos-display-section > small { color: #8c99ad; font-size: 9px; }
  .pos-layout-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .pos-layout-choice { display: grid; min-height: 102px; justify-items: center; align-content: center; gap: 5px; border: 1px solid #dfe6f0; border-radius: 11px; background: #fff; color: #60708a; }
  .pos-layout-choice.active { border: 2px solid #3b78f4; background: #f2f6ff; color: #2866ed; }
  .pos-layout-choice strong { font-size: 10px; }
  .pos-layout-choice small { color: #929eb0; font-size: 8px; }
  .pos-layout-preview { display: flex; width: 45px; height: 27px; gap: 3px; padding: 3px; border: 1px solid #aebbd0; border-radius: 4px; }
  .pos-layout-preview i { display: block; border-radius: 2px; background: #cbd6e8; }
  .layout-preview-split i:first-child { width: 30%; }
  .layout-preview-split i:last-child { flex: 1; }
  .layout-preview-categories i:first-child { width: 20%; }
  .layout-preview-categories i:nth-child(2) { width: 25%; }
  .layout-preview-categories i:last-child { flex: 1; }
  .layout-preview-compact i { flex: 1; }
  .pos-display-control { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
  .pos-display-stepper { display: flex; min-width: 250px; align-items: center; gap: 7px; }
  .pos-display-stepper strong { display: grid; min-width: 120px; min-height: 38px; flex: 1; place-items: center; border: 1px solid #dfe6f0; border-radius: 9px; background: #f8fafc; color: #354158; font: 600 11px "DM Sans", sans-serif; }
  .pos-display-stepper .button { min-width: 36px; min-height: 36px; padding: 0 8px; }
  .pos-flow-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pos-flow-choice { min-height: 43px; padding: 7px; border: 1px solid #dfe6f0; border-radius: 9px; background: #fff; color: #65738b; font-size: 9px; }
  .pos-flow-choice.active { border-color: #4781f6; background: #f1f6ff; color: #2866ed; }
  .pos-display-toggle-list { display: grid; gap: 8px; }
  .pos-display-toggle { display: flex; min-height: 42px; align-items: center; justify-content: space-between; padding: 0 12px; border: 1px solid #e1e8f1; border-radius: 10px; background: #f8fafc; color: #53617a; text-align: right; font-size: 9px; font-weight: 600; }
  .pos-display-toggle strong { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid #aeb8c9; border-radius: 4px; background: #fff; color: #fff; font-size: 12px; }
  .pos-display-toggle[aria-pressed="true"] strong { border-color: #2866ed; background: #2866ed; }

@media (max-width: 980px) {
    .cash-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
@media (max-width: 720px) {
    .pos-screen .pos-workspace { grid-template-columns: minmax(0, 1fr); }
    .cash-session-heading { flex-direction: column; }
    .cash-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cashbox-open-form { grid-template-columns: 1fr; width: min(100%, 340px); }
    .cashbox-open-form label, .cashbox-open-form input, .cashbox-open-form button { grid-column: 1; grid-row: auto; }
    .pos-display-settings > .settings-card { padding: 17px 13px; }
    .pos-layout-choices { grid-template-columns: 1fr; }
    .pos-flow-choices { grid-template-columns: 1fr; }
    .pos-display-control { align-items: flex-start; flex-direction: column; }
    .pos-display-stepper { width: 100%; min-width: 0; }
    .cash-session-detail { grid-template-columns: 1fr; }
  }
@media (max-width: 720px) {
  .pos-screen { grid-template-rows: auto minmax(0, 1fr); }
  .pos-topbar { min-height: 102px; flex-wrap: wrap; justify-content: center; padding: 7px; }
  .pos-topbar-actions { order: 2; margin: 0; }
  .pos-input { height: 37px; }
  .pos-barcode-control, .pos-product-search { width: calc(50% - 5px); flex: 0 1 calc(50% - 5px); }
  .pos-barcode-control .pos-barcode { width: auto; }
  .pos-camera-scan { width: 36px; height: 36px; border-radius: 9px; }
  .pos-workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(300px, 55dvh) minmax(220px, 1fr); overflow-y: auto; }
  :root[dir="ltr"] .pos-workspace { grid-template-areas: "cart" "catalog"; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(300px, 55dvh) minmax(220px, 1fr); }
  :root[dir="ltr"] .pos-cart-panel, :root[dir="ltr"] .pos-catalog-panel { grid-column: 1; }
  :root[dir="ltr"] .pos-cart-panel { border-inline-start: 0; }
  .pos-cart-panel { grid-row: 1; grid-template-rows: 62px minmax(65px, 1fr) auto; border-inline-end: 0; border-bottom: 1px solid #dfe5ed; }
  .pos-customer-search-wrap { padding: 7px 10px; }
  .pos-cart-items { padding: 0 10px; }
  .pos-cart-footer { gap: 5px; padding: 8px 10px; }
  .pos-cart-actions button { min-height: 48px; }
  .pos-pay-button { min-height: 42px; }
  .pos-receipt-actions button { min-height: 34px; }
  .pos-catalog-panel { grid-row: 2; min-height: 220px; grid-template-rows: 47px minmax(0, 1fr) 32px; }
  .pos-catalog-toolbar { padding: 0 8px; }
  .pos-category-tabs { gap: 2px; }
  .pos-category { padding: 6px 7px; font-size: 8px; }
  .pos-add-product, .pos-tool-button { width: 32px; height: 32px; }
  .pos-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 9px; }
  .pos-product { min-height: 115px; padding: 7px; }
  .pos-product-image { height: 48px; }
  .pos-pagination { padding: 0 9px; }
  .print-template-section { padding: 15px 12px; }
  .print-template-grid { gap: 7px; }
  .delivery-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .print-template-card { padding: 8px; }
  .print-template-card strong { font-size: 8px; }
  .print-device-grid { grid-template-columns: 1fr; gap: 10px; }
  .direct-print-card { grid-column: auto; }
  .print-option-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 10px; }
  .print-option-icon { width: 35px; height: 35px; }
  .print-switch { width: 48px; }
  .print-switch:checked::after { transform: translateX(-19px); }
  .print-language-field { max-width: none; }
  .print-label-settings, .print-sound-settings, .print-scale-settings { grid-template-columns: 1fr; }
  .print-label-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .print-label-auto, .print-sound-tests { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@page { margin: 8mm; }
@media print {
  html, body { width: auto !important; height: auto !important; min-width: 0 !important; margin: 0 !important; overflow: visible !important; background: #fff !important; }
  body.printing > *:not(#printRoot) { display: none !important; }
  body.printing #printRoot { display: block !important; width: 100%; color: #111; font: 11px Arial, sans-serif; direction: inherit; }
  body.printing .print-paper { display: block; margin: 0 auto; padding: 0; color: #111; background: #fff; }
  body.printing #printRoot[data-paper="58"] .print-paper { width: 48mm; }
  body.printing #printRoot[data-paper="80"] .print-paper { width: 72mm; }
  body.printing #printRoot[data-paper="A4"] .print-paper { width: 100%; max-width: 190mm; }
  body.printing #printRoot[data-template="print-center"] .print-paper { max-width: none; }
  body.printing .receipt-store { margin-bottom: 12px; text-align: center; }
  body.printing .receipt-store-logo { display: block; width: auto; max-width: 42mm; max-height: 24mm; margin: 0 auto 6px; object-fit: contain; }
  body.printing .receipt-store h1 { margin: 0 0 4px; font-size: 16px; }
  body.printing .receipt-store p { margin: 3px 0; font-size: 10px; }
  body.printing .print-paper > h2 { margin: 8px 0; font-size: 13px; text-align: center; }
  body.printing .receipt-details, body.printing .receipt-totals { display: grid; gap: 6px; margin: 10px 0; }
  body.printing .receipt-details { grid-template-columns: 1fr 1fr; }
  body.printing .receipt-lines { width: 100%; border-collapse: collapse; }
  body.printing .receipt-lines th, body.printing .receipt-lines td { padding: 5px 2px; border-bottom: 1px dashed #bbb; color: #111; font-size: 9px; text-align: right; white-space: normal; }
  body.printing .receipt-totals > div { display: flex; justify-content: space-between; }
  body.printing .receipt-totals .receipt-grand-total { padding-top: 6px; border-top: 1px solid #444; font-size: 13px; font-weight: bold; }
  body.printing .receipt-footer { margin-top: 14px; text-align: center; }
  body.printing .invoice-note { margin: 6px 0; text-align: center; font-weight: bold; }
  body.printing #printRoot[data-template="classic"] .receipt-store { padding-bottom: 10px; border-bottom: 2px solid #222; }
  body.printing #printRoot[data-template="classic"] .receipt-details { padding: 8px; border: 1px solid #999; }
  body.printing #printRoot[data-template="detailed"] .receipt-store { padding: 10px; border: 2px solid #444; }
  body.printing #printRoot[data-template="detailed"] .receipt-store h1 { font-size: 19px; }
  body.printing #printRoot[data-template="detailed"] .receipt-details { padding: 8px; border: 1px solid #777; }
  body.printing #printRoot[data-template="detailed"] .receipt-lines { border: 1px solid #555; }
  body.printing #printRoot[data-template="detailed"] .receipt-lines th { background: #ececec !important; font-weight: bold; }
  body.printing #printRoot[data-template="detailed"] .receipt-lines th,
  body.printing #printRoot[data-template="detailed"] .receipt-lines td { border: 1px solid #888; }
  body.printing #printRoot[data-template="detailed"] .receipt-totals { padding: 8px; border: 1px solid #777; }
  body.printing #printRoot[data-template="compact"] .receipt-store { margin-bottom: 5px; padding-bottom: 4px; border-bottom: 1px dashed #666; }
  body.printing #printRoot[data-template="compact"] .print-paper > h2 { margin: 4px 0; font-size: 11px; }
  body.printing #printRoot[data-template="compact"] .receipt-details,
  body.printing #printRoot[data-template="compact"] .receipt-totals { gap: 3px; margin: 5px 0; }
  body.printing #printRoot[data-template="compact"] .receipt-lines th,
  body.printing #printRoot[data-template="compact"] .receipt-lines td { padding-top: 2px; padding-bottom: 2px; font-size: 8px; }
  body.printing #printRoot[data-template="delivery-1"] .receipt-store { padding-bottom: 8px; border-bottom: 2px solid #333; }
  body.printing #printRoot[data-template="delivery-1"] .receipt-details { padding: 8px 0; }
  body.printing #printRoot[data-template="delivery-2"] .receipt-store { text-align: right; }
  body.printing #printRoot[data-template="delivery-2"] .receipt-details { grid-template-columns: auto 1fr; padding: 8px; border: 1px solid #777; }
  body.printing #printRoot[data-template="delivery-2"] .receipt-lines { border: 1px solid #555; }
  body.printing #printRoot[data-template="delivery-2"] .receipt-lines th { background: #ececec !important; }
  body.printing #printRoot[data-template="delivery-2"] .receipt-lines td { border-bottom-style: solid; }
  body.printing #printRoot[data-template="delivery-3"] .receipt-store { padding: 10px; border: 1px solid #555; background: #f0f0f0 !important; }
  body.printing #printRoot[data-template="delivery-3"] .receipt-details { padding: 8px; border-bottom: 2px solid #444; }
  body.printing #printRoot[data-template="delivery-3"] .receipt-lines th { border-bottom: 2px solid #333; }
  body.printing #printRoot[data-template="delivery-4"] .receipt-store { text-align: right; }
  body.printing #printRoot[data-template="delivery-4"] .receipt-details { padding: 10px 0; border-top: 1px solid #444; border-bottom: 1px solid #444; }
  body.printing #printRoot[data-template="delivery-4"] .receipt-lines { margin-top: 12px; }
  body.printing #printRoot[data-template="delivery-4"] .receipt-lines th,
  body.printing #printRoot[data-template="delivery-4"] .receipt-lines td { padding: 8px 5px; }
  body.printing #printRoot[data-template^="delivery-"] .receipt-footer { margin-top: 24px; padding-top: 8px; border-top: 1px solid #888; }
  body.printing #printRoot[data-custom="true"] { --receipt-accent: #2563eb; }
  body.printing #printRoot[data-custom-accent="green"] { --receipt-accent: #16815d; }
  body.printing #printRoot[data-custom-accent="charcoal"] { --receipt-accent: #374151; }
  body.printing #printRoot[data-custom-accent="burgundy"] { --receipt-accent: #8b1e3f; }
  body.printing #printRoot[data-custom="true"] .receipt-store { text-align: center; border-color: var(--receipt-accent); }
  body.printing #printRoot[data-custom="true"][data-custom-align="right"] .receipt-store,
  body.printing #printRoot[data-custom="true"][data-custom-align="right"] .print-paper > h2 { text-align: right; }
  body.printing #printRoot[data-custom="true"][data-custom-align="left"] .receipt-store,
  body.printing #printRoot[data-custom="true"][data-custom-align="left"] .print-paper > h2 { text-align: left; }
  body.printing #printRoot[data-custom="true"][data-custom-align="center"] .receipt-store,
  body.printing #printRoot[data-custom="true"][data-custom-align="center"] .print-paper > h2 { text-align: center; }
  body.printing #printRoot[data-custom="true"] .receipt-store h1,
  body.printing #printRoot[data-custom="true"] .print-paper > h2 { color: var(--receipt-accent); }
  body.printing #printRoot[data-custom="true"] .receipt-lines th { background: var(--receipt-accent) !important; color: #fff !important; }
  body.printing #printRoot[data-custom="true"] .receipt-totals .receipt-grand-total { border-color: var(--receipt-accent); color: var(--receipt-accent); }
  body.printing #printRoot[data-custom-size="compact"] .receipt-lines th,
  body.printing #printRoot[data-custom-size="compact"] .receipt-lines td { padding-top: 2px; padding-bottom: 2px; font-size: 8px; }
  body.printing #printRoot[data-custom-size="large"] .receipt-lines th,
  body.printing #printRoot[data-custom-size="large"] .receipt-lines td { padding-top: 7px; padding-bottom: 7px; font-size: 11px; }
  body.printing #printRoot[data-custom-size="large"] .receipt-store h1 { font-size: 20px; }
  body.printing .order-barcode { page-break-inside: avoid; }
  body.printing #printRoot[data-label="true"] { width: var(--label-width); height: var(--label-height); }
  body.printing #printRoot[data-label="true"] .print-paper { width: var(--label-width); height: var(--label-height); margin: 0; padding: 0; overflow: hidden; }
  body.printing #printRoot[data-label="true"] .product-label { width: var(--label-width); height: var(--label-height); }
  body.printing #printRoot[data-label="true"] .print-center-single-page { width: var(--label-width); height: var(--label-height); page-break-inside: avoid; }
  body.printing #printRoot[data-label="true"] .print-center-card { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; padding: 3mm; border: 0; border-radius: 0; box-shadow: none; }
  body.printing #printRoot[data-label="true"] .print-center-card .order-barcode-bars { height: 12mm; }
  body.printing #printRoot[data-paper="A4"][data-template="print-center"] .print-paper { width: 190mm; max-width: 190mm; }
  body.printing .print-center-sheet { display: grid; width: 100%; grid-template-columns: repeat(2, 86mm); justify-content: center; align-content: start; gap: 5mm; margin: 0 auto; page-break-after: always; break-after: page; }
  body.printing .print-center-card { width: 86mm; height: 54mm; max-width: none; aspect-ratio: auto; padding: 3mm; border: 1px solid #9aa5b5; border-radius: 0; box-shadow: none; page-break-inside: avoid; break-inside: avoid; }
  body.printing .print-center-card-brand { font-size: 7pt; }
  body.printing .print-center-card-name { font-size: 12pt; }
  body.printing .print-center-card-detail { font-size: 8pt; }
  body.printing .print-center-card .order-barcode-bars { height: 12mm; }
  body.printing .print-center-card .order-barcode > span { font-size: 7pt; }
}

  .pos-cart-panel { grid-template-rows: 92px minmax(0, 1fr) auto; }
  .pos-customer-search-wrap { display: grid; align-content: center; gap: 7px; padding: 8px 13px; }
  .pos-cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .pos-cart-heading strong { color: #354158; font-size: 11px; }
  .pos-cart-heading > span { padding: 3px 8px; border-radius: 999px; background: #eff3ff; color: #486ce4; font-size: 9px; font-weight: 600; }
  .pos-customer-search { height: 36px; }
  .pos-catalog-panel { grid-template-rows: 91px minmax(0, 1fr) 34px; }
  .pos-catalog-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 34px 35px; align-content: center; gap: 6px 12px; min-height: 91px; height: auto; padding: 7px 18px; }
  .pos-catalog-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; }
  .pos-catalog-heading > div { display: grid; min-width: 0; gap: 2px; }
  .pos-catalog-heading strong { color: #34415a; font-size: 11px; }
  .pos-catalog-heading small { overflow: hidden; color: #8d9ab0; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .pos-catalog-heading > span { flex: 0 0 auto; padding: 4px 8px; border: 1px solid #e8edf5; border-radius: 999px; background: #f9fafc; color: #718099; font-size: 8px; }
  .pos-catalog-actions { grid-column: 2; grid-row: 1; align-items: center; gap: 6px; }
  .pos-catalog-actions .pos-add-product,
  .pos-catalog-actions .pos-tool-button { display: inline-flex; width: auto; min-width: 36px; height: 32px; align-items: center; justify-content: center; gap: 6px; padding: 0 9px; border-radius: 9px; font-size: 8px; font-weight: 600; white-space: nowrap; }
  .pos-catalog-actions .pos-add-product { background: #2866ed; color: #fff; }
  .pos-catalog-actions .pos-add-product:hover { background: #1e58d9; }
  .pos-catalog-actions .pos-tool-button { border: 1px solid #e5eaf2; background: #fff; color: #64748b; box-shadow: 0 2px 4px #17233c08; }
  .pos-catalog-actions .pos-add-product > span:first-child,
  .pos-catalog-actions .pos-tool-button > span:first-child { display: grid; place-items: center; font-size: 13px; }
  .pos-catalog-actions .pos-add-product svg { width: 14px; height: 14px; }
  .pos-category-tabs { grid-column: 1 / -1; grid-row: 2; gap: 5px; }
  .pos-category { padding: 6px 9px; font-size: 8px; }
  .pos-product-grid { align-content: start; }
  .pos-empty-state { min-height: 280px; }
  .pos-empty-state button { min-height: 34px; margin-top: 6px; padding: 0 13px; font-size: 9px; }
  .pos-pagination { justify-content: space-between; }
  .pos-pagination > span:last-child { padding: 4px 8px; border-radius: 999px; background: #f7f9fc; color: #8b98ad; }

  @media (max-width: 720px) {
    .pos-cart-panel { grid-template-rows: 88px minmax(65px, 1fr) auto; }
    .pos-catalog-panel { grid-template-rows: 86px minmax(0, 1fr) 32px; }
    .pos-catalog-toolbar { min-height: 86px; grid-template-rows: 32px 32px; gap: 5px 7px; padding: 6px 8px; }
    .pos-screen .pos-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pos-catalog-heading strong { font-size: 9px; }
    .pos-catalog-heading small { font-size: 7px; }
    .pos-catalog-heading > span { padding: 3px 6px; font-size: 7px; }
    .pos-catalog-actions { gap: 4px; }
    .pos-catalog-actions .pos-add-product,
    .pos-catalog-actions .pos-tool-button { height: 30px; gap: 4px; padding: 0 7px; font-size: 7px; }
    .pos-category-tabs { gap: 3px; }
    .pos-category { padding: 5px 7px; font-size: 7px; }
  }

  @media (max-width: 420px) {
    .pos-catalog-actions .pos-add-product,
    .pos-catalog-actions .pos-tool-button { width: 32px; padding: 0; }
    .pos-catalog-actions .pos-add-product > span:last-child,
    .pos-catalog-actions .pos-tool-button > span:last-child { display: none; }
  }

@media (max-width: 1120px) {
  .report-summary.report-financial-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-analysis-grid { grid-template-columns: minmax(0, 1.65fr) minmax(220px, 1fr); gap: 12px; }
  .financial-report-tabs { gap: 17px; }
}
@media (max-width: 1024px) {
  .financial-report,
  .financial-report-header,
  .financial-report-title,
  .financial-report-content { width: 100%; min-width: 0; }
  .financial-report-header { align-items: stretch; flex-direction: column; gap: 12px; }
  .financial-report-tools { width: 100%; min-width: 0; flex-wrap: wrap; gap: 8px; }
  .report-date-range { width: 100%; min-width: 0; flex: 1 0 100%; justify-content: space-between; }
  .report-date-range > label { min-width: 0; flex: 1; }
  .report-date-range input { width: 100%; min-width: 0; }
  .financial-report-tabs { width: 100%; min-width: 0; }
}
@media (max-width: 720px) {
  .financial-report { gap: 12px; }
  .financial-report-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .financial-report-title h1 { font-size: 21px; }
  .financial-report-tools { align-items: center; }
  .report-date-range { order: 2; }
}
@media (max-width: 430px) {
  .financial-report-header { align-items: stretch; }
  .report-date-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; }
  .report-date-range > label { display: grid; gap: 4px; font-size: 8px; }
  .report-date-range input { width: 100%; min-width: 0; font-size: 9px; }
  .financial-report-tools .report-date-apply { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 720px) {
  .financial-report-tabs { gap: 18px; margin-inline: -4px; padding-inline: 4px; }
  .financial-report-tab { min-height: 45px; font-size: 10px; }
  .report-summary.report-financial-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
  .report-financial-kpis .report-kpi { min-height: 94px; gap: 8px; padding: 12px 10px; }
  .report-kpi-icon { width: 28px; height: 28px; flex-basis: 28px; font-size: 13px; }
  .report-financial-kpis .report-kpi strong { font-size: 15px; }
  .report-financial-kpis .report-kpi small { font-size: 8px; }
  .report-analysis-grid { grid-template-columns: 1fr; gap: 12px; }
  .report-flow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .report-flow-card { min-height: 72px; gap: 8px; padding: 10px; }
  .report-flow-icon { width: 28px; height: 28px; flex-basis: 28px; font-size: 12px; }
  .report-flow-card small { font-size: 8px; }
  .report-flow-card strong { font-size: 15px; }
  .report-chart { min-height: 180px; gap: 5px; padding: 16px 8px 8px; }
  .report-chart-bars { height: 140px; gap: 3px; }
  .report-chart-day small { font-size: 7px; }
  .report-zakat-callout { align-items: flex-start; flex-wrap: wrap; padding: 16px; }
  .report-zakat-callout > div { min-width: calc(100% - 50px); }
  .report-zakat-callout .button { width: 100%; }
}
@media (max-width: 430px) {
  .report-flow-list { grid-template-columns: 1fr; }
  .financial-report-tools .report-date-apply { font-size: 8px; }
  .report-summary.report-section-kpis { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .pos-screen { zoom: 1; }
  .pos-screen .pos-workspace { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .pos-screen .pos-pay-button {
    position: fixed;
    z-index: 20;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    width: auto;
    min-height: 52px;
    margin: 0;
    box-shadow: 0 6px 18px #17233c30;
  }
}
