/* ============================================================
   AJ PHARMACY — Page-Specific Styles
   Login · POS · NHRA · Wizard · Dashboards · Errors
   ============================================================ */

/* ================= LOGIN ================= */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-brand-side {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  background:
    radial-gradient(900px 500px at -10% -10%, rgba(90, 162, 255, 0.35), transparent 60%),
    radial-gradient(800px 520px at 110% 110%, rgba(20, 190, 180, 0.28), transparent 58%),
    linear-gradient(150deg, #0c3f8e 0%, #0a2f6d 45%, #083a5e 100%);
  color: #eaf2ff;
}
.login-brand-side::before,
.login-brand-side::after {
  content: "";
  position: absolute;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transform: rotate(-8deg);
}
.login-brand-side::before { width: 340px; height: 340px; right: -110px; top: -80px; }
.login-brand-side::after { width: 260px; height: 260px; left: -90px; bottom: -70px; transform: rotate(10deg); }
.login-brand-mark {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.login-hero-title { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.login-hero-sub { font-size: 15.5px; color: rgba(234, 242, 255, 0.78); max-width: 430px; line-height: 1.6; }
.login-feature {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 13px 15px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  max-width: 430px;
}
.login-feature i { font-size: 19px; color: #7fd8d0; margin-top: 2px; }
.login-feature .lf-t { font-weight: 700; font-size: 13.5px; }
.login-feature .lf-d { font-size: 12px; color: rgba(234, 242, 255, 0.66); }
.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 22px;
}
.login-card {
  width: 100%;
  max-width: 410px;
  padding: 34px 32px;
  border-radius: 24px;
  background: var(--surface-strong);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-lg), var(--inset-hi);
  animation: ajPop 0.4s var(--ease) both;
}
.demo-cred {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 13px;
  border-radius: 11px;
  background: var(--brand-soft);
  border: 1px dashed rgba(20, 103, 214, 0.35);
  font-size: 12px;
  color: var(--text-2);
}
@media (max-width: 991.98px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand-side { display: none; }
}

/* ================= DASHBOARD ================= */
.greeting-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.greet-title { font-size: 23px; font-weight: 800; letter-spacing: -0.03em; }
.greet-sub { color: var(--text-3); font-size: 13px; margin-top: 2px; }

.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.qa-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 13px;
  border: 1px solid var(--edge);
  background: var(--surface-strong);
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  cursor: pointer;
  transition: all var(--t-fast);
  box-shadow: var(--shadow-xs);
  font-family: inherit;
  text-decoration: none;
}
.qa-btn i { font-size: 16px; color: var(--brand); }
.qa-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: rgba(20,103,214,.3); }
.qa-btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px -6px rgba(20,103,214,.55);
}
[data-theme="dark"] .qa-btn.primary { color: #06121f; }
.qa-btn.primary i { color: rgba(255,255,255,.85); }

.health-list { display: flex; flex-direction: column; gap: 13px; }
.health-item { display: flex; align-items: center; gap: 12px; }
.health-item .hi-meta { flex: 1; min-width: 0; }
.health-item .hi-label { font-size: 12.5px; font-weight: 650; display: flex; justify-content: space-between; }
.health-item .hi-label b { font-variant-numeric: tabular-nums; }

.activity-feed { display: flex; flex-direction: column; }
.feed-item {
  display: flex;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px dashed var(--edge-soft);
}
.feed-item:last-child { border-bottom: none; }
.feed-ico {
  width: 33px; height: 33px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14.5px;
  flex: none;
}
.feed-text { font-size: 12.8px; line-height: 1.5; }
.feed-time { font-size: 11px; color: var(--text-3); margin-top: 1px; }

.chart-box { position: relative; width: 100%; }
.chart-box canvas { max-height: 260px; }
.chart-box.tall canvas { max-height: 300px; }
.chart-box.short canvas { max-height: 200px; }

.range-switch { display: inline-flex; }

/* ================= POS ================= */
.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 1279.98px) { .pos-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 1023.98px) { .pos-layout { grid-template-columns: 1fr; } }

.pos-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-sm), var(--inset-hi);
  position: sticky;
  top: calc(var(--header-h) + 12px);
  z-index: 20;
}
.pos-search-row { display: flex; gap: 10px; }
.pos-scan-input { flex: 1; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 13px;
}
@media (max-width: 575.98px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 9px; } }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: blur(16px) saturate(155%);
  backdrop-filter: blur(16px) saturate(155%);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-xs), var(--inset-hi);
  cursor: pointer;
  transition: all var(--t-fast);
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 103, 214, 0.35);
  box-shadow: var(--shadow-md), var(--inset-hi);
}
.product-card.in-cart { border-color: rgba(20, 103, 214, 0.45); background: var(--brand-soft); }
.product-card .pc-name { font-size: 13.5px; font-weight: 750; line-height: 1.3; letter-spacing: -0.01em; }
.product-card .pc-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.pc-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--edge-soft);
  color: var(--text-2);
}
.product-card .pc-barcode { font-size: 10.5px; color: var(--text-3); font-family: ui-monospace, Menlo, monospace; }
.pc-stockline { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--text-3); }
.pc-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.pc-price { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.pc-price .cur { font-size: 11px; color: var(--text-3); font-weight: 700; margin-right: 3px; }
.pc-add {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  flex: none;
}
.pc-add:hover { transform: scale(1.08); }
.pc-add:active { transform: scale(0.95); }
.pc-reg { position: absolute; top: 10px; right: 10px; }
.pc-oos { opacity: 0.55; filter: grayscale(0.4); }
.pc-oos .pc-add { background: var(--surface-2); color: var(--text-3); }

/* Cart */
.pos-cart {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--header-h) - 24px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  backdrop-filter: blur(20px) saturate(165%);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-sm), var(--inset-hi);
  overflow: hidden;
}
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--edge-soft);
  flex: none;
}
.cart-count-pill {
  font-size: 11px;
  font-weight: 800;
  background: var(--brand);
  color: #fff;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-body { flex: 1; overflow-y: auto; padding: 6px 14px; min-height: 120px; }
.cart-line {
  display: flex;
  gap: 11px;
  padding: 11px 2px;
  border-bottom: 1px dashed var(--edge-soft);
  animation: ajFadeUp 0.25s var(--ease) both;
}
.cart-line:last-child { border-bottom: none; }
.cl-info { flex: 1; min-width: 0; }
.cl-name { font-size: 13px; font-weight: 700; line-height: 1.3; }
.cl-meta { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.cl-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.cl-right { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cl-total { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cl-remove { border: none; background: none; color: var(--text-3); cursor: pointer; font-size: 14px; padding: 2px; }
.cl-remove:hover { color: var(--red); }
.cl-edit { border: none; background: none; color: var(--text-3); cursor: pointer; font-size: 13px; padding: 2px; }
.cl-edit:hover { color: var(--brand); }

.cart-summary { flex: none; border-top: 1px solid var(--edge-soft); padding: 15px 18px 17px; background: var(--surface-2); }
.sum-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); padding: 3.5px 0; font-weight: 550; }
.sum-row.grand {
  margin-top: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--edge-soft);
  align-items: baseline;
}
.sum-row.grand .g-label { font-size: 13px; font-weight: 750; color: var(--text); text-transform: uppercase; letter-spacing: 0.04em; }
.grand-total { font-size: 31px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.grand-total .cur { font-size: 15px; color: var(--text-3); font-weight: 700; margin-right: 5px; }
.pay-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 13px; }
.pay-m-btn {
  padding: 9px 4px;
  border-radius: 11px;
  border: 1px solid var(--edge);
  background: var(--surface-strong);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all var(--t-fast);
  font-family: inherit;
}
.pay-m-btn i { font-size: 16px; color: var(--text-3); }
.pay-m-btn:hover { border-color: rgba(20,103,214,.4); color: var(--brand); }
.pay-m-btn.active { background: var(--brand-soft); border-color: rgba(20,103,214,.4); color: var(--brand); }
.pay-m-btn.active i { color: var(--brand); }

@media (max-width: 1023.98px) {
  .pos-cart { display: none; }
  .pos-cart.sheet-mode { display: flex; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1091; max-height: 86vh; border-radius: 22px 22px 0 0; animation: sheetUp .3s var(--ease) both; }
}

/* Payment modal internals */
.pm-amount-due {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 15px 18px;
  border-radius: 14px;
  background: var(--brand-soft);
  border: 1px solid rgba(20, 103, 214, 0.22);
  margin-bottom: 15px;
}
.pm-amount-due .ad-label { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }
.pm-amount-due .ad-val { font-size: 27px; font-weight: 800; letter-spacing: -0.03em; }
.quick-cash { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.quick-cash .qc-btn {
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid var(--edge);
  background: var(--surface-strong);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: inherit;
}
.quick-cash .qc-btn:hover { border-color: var(--brand); color: var(--brand); }
.change-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-radius: 14px;
  margin-top: 13px;
  background: var(--green-soft);
  border: 1px solid rgba(23, 151, 106, 0.25);
}
.change-display.negative { background: var(--red-soft); border-color: rgba(220, 53, 86, 0.25); }
.change-display .cd-label { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; }
.change-display .cd-val { font-size: 21px; font-weight: 800; }
.mixed-row { display: grid; grid-template-columns: 130px 1fr 118px; gap: 8px; margin-bottom: 8px; }

/* Receipt preview */
.receipt-preview {
  background: #fff;
  color: #222;
  border-radius: 12px;
  padding: 18px 16px;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 11.5px;
  line-height: 1.55;
  max-width: 300px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.receipt-preview .r-center { text-align: center; }
.receipt-preview .r-bold { font-weight: 700; }
.receipt-preview .r-lg { font-size: 14px; }
.receipt-preview hr { border: none; border-top: 1px dashed #bbb; margin: 8px 0; }
.receipt-preview table { width: 100%; border-collapse: collapse; }
.receipt-preview td { padding: 1.5px 0; vertical-align: top; }

/* ================= NHRA ================= */
.nhra-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background:
    radial-gradient(400px 140px at 100% 0%, rgba(14, 159, 154, 0.12), transparent 70%),
    var(--surface-strong);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-xs), var(--inset-hi);
}
.nhra-shield {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), #0a7d78);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  box-shadow: 0 8px 18px -6px rgba(14, 159, 154, 0.55);
  flex: none;
}
.nhra-ref-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 3.5px 10px;
  border-radius: 99px;
}
.nhra-source-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--edge-soft);
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 14px;
}
.nss-cell { background: var(--surface-strong); padding: 11px 15px; }
.nss-cell .nss-k { font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.nss-cell .nss-v { font-size: 13px; font-weight: 700; margin-top: 2px; }

.nhra-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.price-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.price-box {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--edge);
  background: var(--surface-2);
  text-align: center;
}
.price-box.highlight-nhra { background: var(--teal-soft); border-color: rgba(14, 159, 154, 0.3); }
.price-box.highlight-pharmacy { background: var(--brand-soft); border-color: rgba(20, 103, 214, 0.3); }
.price-box .pb-label { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-3); }
.price-box .pb-val { font-size: 23px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.price-arrow { display: flex; align-items: center; color: var(--text-3); font-size: 19px; }

/* ================= IMPORT WIZARD ================= */
.wizard-steps {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 18px 18px 4px;
  scrollbar-width: none;
}
.wizard-steps::-webkit-scrollbar { display: none; }
.wstep {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 118px;
  position: relative;
  padding-bottom: 14px;
}
.wstep::after {
  content: "";
  position: absolute;
  left: 30px; right: -6px; bottom: 21px;
  height: 2px;
  background: var(--edge);
}
.wstep:last-child::after { display: none; }
.wstep-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--surface-2);
  border: 1.5px solid var(--edge);
  color: var(--text-3);
  flex: none;
  position: relative;
  z-index: 1;
  transition: all var(--t-fast);
}
.wstep.done .wstep-num { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.wstep.current .wstep-num {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 5px 13px -4px rgba(20, 103, 214, 0.6);
}
.wstep-label { font-size: 11.5px; font-weight: 700; color: var(--text-3); white-space: nowrap; }
.wstep.current .wstep-label { color: var(--brand); }
.wstep.done .wstep-label { color: var(--text-2); }

.upload-zone {
  border: 2px dashed var(--edge);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 46px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.upload-zone .uz-ico {
  width: 62px; height: 62px;
  margin: 0 auto 14px;
  border-radius: 19px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.file-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 13px;
  background: var(--surface-strong);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-xs);
}
.file-pill i { font-size: 21px; color: var(--green); }
.validation-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 11px; }
.vcard {
  padding: 14px;
  border-radius: 13px;
  border: 1px solid var(--edge-soft);
  background: var(--surface-2);
  text-align: center;
}
.vcard .vc-num { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.vcard .vc-label { font-size: 11px; font-weight: 650; color: var(--text-3); margin-top: 2px; }
.vcard.ok .vc-num { color: var(--green); }
.vcard.info .vc-num { color: var(--brand); }
.vcard.warn .vc-num { color: var(--amber); }
.vcard.err .vc-num { color: var(--red); }

.map-table select.select-aj { min-height: 36px; padding: 6px 30px 6px 10px; font-size: 12.5px; }

/* ================= PERMISSIONS MATRIX ================= */
.perm-table th, .perm-table td { text-align: center !important; }
.perm-table td:first-child, .perm-table th:first-child { text-align: left !important; }
.perm-cat-row td {
  background: var(--surface-2);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ================= ERROR PAGES ================= */
.error-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.error-card {
  text-align: center;
  padding: 52px 44px;
  border-radius: 26px;
  background: var(--surface-strong);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-lg), var(--inset-hi);
  max-width: 480px;
  width: 100%;
  animation: ajPop 0.4s var(--ease) both;
}
.error-code {
  font-size: 88px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================= SYNC CENTER ================= */
.sync-ring { position: relative; width: 132px; height: 132px; margin: 0 auto; }
.sync-ring svg { transform: rotate(-90deg); }
.sync-ring .ring-bg { stroke: var(--edge); }
.sync-ring .ring-fill {
  stroke: url(#syncGrad);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s var(--ease);
}
.sync-ring .ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

/* ================= PRINTER CARDS ================= */
.printer-card { display: flex; gap: 15px; align-items: flex-start; }
.printer-ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  flex: none;
}

/* ================= CASH DENOMINATIONS ================= */
.denom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.denom-item { display: flex; align-items: center; gap: 10px; }
.denom-note {
  min-width: 62px;
  padding: 8px 0;
  text-align: center;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--edge-soft);
  font-weight: 800;
  font-size: 13px;
}

/* ================= PRESCRIPTION MEDICAL CARD ================= */
.rx-med-card {
  display: flex;
  gap: 14px;
  padding: 15px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  background: var(--surface-2);
  transition: all var(--t-fast);
}
.rx-med-card:hover { border-color: rgba(20, 103, 214, 0.3); box-shadow: var(--shadow-sm); }
.rx-med-ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  flex: none;
}
.rx-sig { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rx-sig .sig-chip {
  font-size: 11px;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--surface-strong);
  border: 1px solid var(--edge-soft);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.rx-sig .sig-chip i { font-size: 11.5px; color: var(--text-3); }

.rx-watermark {
  position: absolute;
  right: 18px; top: 10px;
  font-size: 64px;
  font-weight: 800;
  font-style: italic;
  color: var(--brand);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* ================= INVENTORY HEALTH BARS ================= */
.stack-bar {
  display: flex;
  height: 12px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--surface-2);
}
.stack-bar > div { height: 100%; transition: width 0.7s var(--ease); }

/* ================= EXPIRY BADGES ================= */
.exp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 7px;
  text-transform: uppercase;
}
.exp-badge.safe { background: var(--green-soft); color: var(--green); }
.exp-badge.warning { background: var(--amber-soft); color: var(--amber); }
.exp-badge.urgent { background: rgba(230, 126, 34, 0.14); color: #d97b1c; }
.exp-badge.critical { background: var(--red-soft); color: var(--red); }
.exp-badge.expired { background: var(--red); color: #fff; }

/* ================= HOLD / HELD ORDER CARDS ================= */
.hold-card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px dashed var(--edge);
  background: var(--surface-2);
  transition: all var(--t-fast);
}
.hold-card:hover { border-style: solid; border-color: rgba(20,103,214,.35); box-shadow: var(--shadow-sm); }

/* ================= SETTINGS LAYOUT ================= */
.settings-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 991.98px) { .settings-layout { grid-template-columns: 1fr; } }
.settings-nav-card {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: calc(var(--header-h) + 14px);
}
@media (max-width: 991.98px) { .settings-nav-card { position: static; } }

/* ================= REPORTS HUB ================= */
.report-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--edge);
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  color: var(--text);
}
.report-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(20,103,214,.3); color: var(--text); }
.report-card .rc-ico {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}

/* Barcode preview strip */
.barcode-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--edge-soft);
}
.barcode-strip svg { max-width: 100%; }

/* Invoice document style (sale details) */
.invoice-doc {
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-md), var(--inset-hi);
  overflow: hidden;
}
.invoice-head {
  padding: 24px 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(360px 130px at 0% 0%, var(--brand-soft), transparent 75%),
    var(--surface-2);
  border-bottom: 1px solid var(--edge-soft);
}
