
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: "Cairo", "Tahoma", "Segoe UI", system-ui, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .visible {
    visibility: visible;
  }
  .fixed {
    position: fixed;
  }
  .static {
    position: static;
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .table {
    display: table;
  }
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  .gap-6 {
    gap: calc(var(--spacing) * 6);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  @media (width >= 48rem) {
    .md\:col-span-3 {
      grid-column: span 3 / span 3;
    }
    .md\:inline {
      display: inline;
    }
    .md\:grid-cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
  @media (width >= 64rem) {
    .lg\:col-span-2 {
      grid-column: span 2 / span 2;
    }
    .lg\:grid-cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lg\:grid-cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
}
:root {
  --gold: #b8902c;
  --gold-soft: #f5ecca;
  --coal: #161616;
  --ink: #1c1c1c;
  --muted: #6b6b6b;
  --line: #e7e5e0;
  --bg: #f6f5f2;
  --card: #ffffff;
  --radius: 12px;
}
html {
  font-family: var(--font-sans);
}
body {
  background: var(--bg);
  color: var(--ink);
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
.ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
[dir="ltr"], .ltr {
  direction: ltr;
  unicode-bidi: plaintext;
}
.num {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: plaintext;
  display: inline-block;
}
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 252px;
  background: var(--coal);
  color: #d6d3cc;
  position: fixed;
  inset-block: 0;
  right: 0;
  overflow-y: auto;
  z-index: 40;
  transition: transform .2s;
}
.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #262626;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d7b65a, #9c7722);
  display: grid;
  place-items: center;
  color: #141414;
  font-weight: 800;
  font-size: 17px;
}
.brand-name {
  font-weight: 800;
  color: #fff;
  font-size: 16px;
  line-height: 1.1;
}
.brand-sub {
  font-size: 11px;
  color: #9b968b;
}
.nav {
  padding: 10px 10px 30px;
}
.nav-group {
  font-size: 11px;
  color: #7f7a70;
  padding: 14px 10px 6px;
  letter-spacing: .3px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #cfcbc2;
  font-size: 13.5px;
}
.nav a:hover {
  background: #222;
  color: #fff;
}
.nav a.active {
  background: #2a2414;
  color: #e9cf7f;
}
.nav a.active .ico {
  color: #d7b65a;
}
.main {
  flex: 1;
  margin-right: 252px;
  min-width: 0;
}
.topbar {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar .spacer {
  flex: 1;
}
.content {
  padding: 22px;
  max-width: 1500px;
}
.menu-btn {
  display: none;
}
.gold-ticker {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
}
.gold-ticker b {
  color: var(--gold);
  font-weight: 700;
}
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn .dot {
  position: absolute;
  top: -4px;
  left: -4px;
  background: #b91c1c;
  color: #fff;
  font-size: 10px;
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-700, #7d5f1c);
  display: grid;
  place-items: center;
  font-weight: 700;
}
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(100%);
  }
  .sidebar.open {
    transform: none;
    box-shadow: -10px 0 40px rgba(0,0,0,.3);
  }
  .main {
    margin-right: 0;
  }
  .menu-btn {
    display: inline-grid;
  }
  .gold-ticker {
    display: none;
  }
  .content {
    padding: 14px;
  }
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.page-head h1 {
  font-size: 21px;
  font-weight: 800;
}
.page-head .sub {
  color: var(--muted);
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card-body {
  padding: 18px;
}
.card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-head h2, .card-head h3 {
  font-weight: 700;
  font-size: 15px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: #7d5f1c;
  display: grid;
  place-items: center;
}
.stat-label {
  font-size: 12.5px;
  color: var(--muted);
}
.stat-value {
  font-size: 19px;
  font-weight: 800;
  margin-top: 2px;
}
.stat-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 9px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 13.5px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.2;
}
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover {
  background: #9c7722;
}
.btn-dark {
  background: var(--coal);
  color: #fff;
}
.btn-dark:hover {
  background: #2b2b2b;
}
.btn-light {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-light:hover {
  background: #faf9f6;
  border-color: #d8d4ca;
}
.btn-danger {
  background: #fff;
  border-color: #f1c4c4;
  color: #b91c1c;
}
.btn-danger:hover {
  background: #fdf2f2;
}
.btn-sm {
  padding: 6px 11px;
  font-size: 12.5px;
  border-radius: 8px;
}
.btn-lg {
  padding: 13px 22px;
  font-size: 15px;
}
.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.btn-block {
  width: 100%;
}
form.inline {
  display: inline;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: #3b3b3b;
}
.field .req {
  color: #b91c1c;
}
.input {
  width: 100%;
  border: 1px solid #dcd8cf;
  border-radius: 9px;
  padding: 9px 11px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border .15s, box-shadow .15s;
}
.input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,144,44,.15);
}
.input-error {
  border-color: #dc2626;
}
.field .error {
  color: #b91c1c;
  font-size: 12px;
}
.field .help {
  color: var(--muted);
  font-size: 11.5px;
}
select.input {
  padding-left: 28px;
}
.check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
  cursor: pointer;
}
.check input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 18px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fcfbf8;
  border-radius: var(--radius) var(--radius) 0 0;
}
.filters .field {
  min-width: 150px;
}
.table-wrap {
  overflow-x: auto;
}
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.table th {
  text-align: right;
  font-weight: 700;
  color: #4b4b4b;
  background: #faf9f6;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font-size: 12.5px;
}
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0eee9;
  vertical-align: middle;
}
.table tr:hover td {
  background: #fdfcf9;
}
.table tfoot td {
  font-weight: 800;
  background: #faf9f6;
}
.table .muted {
  color: var(--muted);
  font-size: 12px;
}
.table a.link, a.link {
  color: #8a6a1f;
  text-decoration: none;
  font-weight: 600;
}
.table a.link:hover {
  text-decoration: underline;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-green {
  background: #e7f6ec;
  color: #166534;
}
.badge-red {
  background: #fdecec;
  color: #991b1b;
}
.badge-amber {
  background: #fdf3d9;
  color: #8a5a00;
}
.badge-gray {
  background: #efefef;
  color: #4b5563;
}
.badge-gold {
  background: var(--gold-soft);
  color: #7d5f1c;
}
.alert {
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 14px;
  font-size: 13.5px;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid;
}
.alert-success {
  background: #effaf2;
  border-color: #c6ecd1;
  color: #14532d;
}
.alert-error {
  background: #fdf1f1;
  border-color: #f4caca;
  color: #7f1d1d;
}
.alert-info {
  background: #f8f4e6;
  border-color: #eadba7;
  color: #5c4510;
}
.alert-warning {
  background: #fff7e6;
  border-color: #f5d79a;
  color: #7a4d00;
}
.banner {
  padding: 9px 22px;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.banner-dark {
  background: #2a2414;
  color: #f0dc9f;
}
.banner-red {
  background: #7f1d1d;
  color: #fff;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 34px 10px;
}
.empty .ico {
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  color: #c9c4b8;
}
.pager {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 12px 18px;
  flex-wrap: wrap;
}
.pager a, .pager .current {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
  font-size: 12.5px;
}
.pager .current {
  background: var(--coal);
  color: #fff;
  border-color: var(--coal);
}
.pager-info {
  color: var(--muted);
  font-size: 12.5px;
  margin-left: auto;
  padding: 10px 18px;
}
.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 12px;
  font-size: 13.5px;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  font-weight: 600;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  overflow-x: auto;
}
.tabs a {
  padding: 9px 14px;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}
.tabs a.active {
  color: var(--ink);
  border-color: var(--gold);
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15,15,15,.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 14px;
}
.modal.open {
  display: flex;
}
.modal-box {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.modal-box.wide {
  max-width: 860px;
}
.modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-head h3 {
  font-weight: 800;
}
.modal-body {
  padding: 18px;
}
.chart {
  width: 100%;
  height: 240px;
}
.chart .grid {
  stroke: #efede8;
  stroke-width: 1;
}
.chart .axis {
  font-size: 10px;
  fill: #8b867c;
  font-family: inherit;
}
.donut-wrap {
  display: flex;
  gap: 16px;
  align-items: center;
}
.donut {
  width: 140px;
  height: 140px;
}
.legend {
  font-size: 12.5px;
  display: grid;
  gap: 6px;
}
.legend span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-left: 6px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-side {
  background: radial-gradient(ellipse at top left, #2b2414 0%, #141414 55%);
  color: #e8e1cf;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-side h2 {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
}
.auth-side .gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
  margin: 18px 0;
}
.auth-side ul {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: #c9c2b0;
}
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}
@media (max-width: 900px) {
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-side {
    display: none;
  }
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan.featured {
  border: 2px solid var(--gold);
  box-shadow: 0 10px 30px rgba(184,144,44,.12);
}
.plan .price {
  font-size: 30px;
  font-weight: 800;
}
.plan .price small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.plan ul {
  font-size: 13.5px;
  display: grid;
  gap: 7px;
  color: #3f3f3f;
}
.plan li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 800;
  margin-left: 8px;
}
.period-pick {
  display: flex;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 10px;
  width: fit-content;
}
.period-pick label {
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.period-pick input {
  display: none;
}
.period-pick input:checked + span {
  color: #fff;
}
.period-pick label:has(input:checked) {
  background: var(--coal);
  color: #fff;
}
.pos {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  height: calc(100vh - 60px);
}
.pos-left {
  padding: 16px;
  overflow-y: auto;
}
.pos-right {
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.scan-box {
  display: flex;
  gap: 8px;
}
.scan-box .input {
  font-size: 17px;
  padding: 13px 14px;
}
.cart {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
}
.cart-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
}
.cart-item .name {
  font-weight: 700;
}
.cart-item .meta {
  font-size: 12px;
  color: var(--muted);
}
.cart-item .price {
  font-weight: 800;
  font-size: 15px;
}
.cart-totals {
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.cart-totals .row {
  display: flex;
  justify-content: space-between;
}
.cart-totals .grand {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.p-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
}
.p-tile:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.p-tile .t {
  font-weight: 700;
  font-size: 13.5px;
}
.p-tile .s {
  font-size: 11.5px;
  color: var(--muted);
}
.p-tile .pr {
  font-weight: 800;
  color: #7d5f1c;
  margin-top: 6px;
}
.pay-row {
  display: grid;
  grid-template-columns: 1fr 120px 32px;
  gap: 6px;
  margin-bottom: 6px;
}
@media (max-width: 1100px) {
  .pos {
    grid-template-columns: 1fr;
    height: auto;
  }
  .pos-right {
    border-right: 0;
    border-top: 1px solid var(--line);
  }
}
.print-page {
  background: #fff;
  color: #000;
  margin: 0 auto;
  font-size: 12px;
}
.print-a4 {
  width: 190mm;
  padding: 10mm;
}
.print-80 {
  width: 76mm;
  padding: 2mm;
  font-size: 11px;
}
.print-58 {
  width: 54mm;
  padding: 1mm;
  font-size: 10px;
}
.print-page table {
  width: 100%;
  border-collapse: collapse;
}
.print-page th, .print-page td {
  padding: 3px 2px;
  border-bottom: 1px dashed #bbb;
  text-align: right;
}
.print-a4 th, .print-a4 td {
  border: 1px solid #ccc;
  padding: 6px;
}
.print-page .center {
  text-align: center;
}
.print-page h2 {
  font-size: 15px;
  font-weight: 800;
}
.print-tools {
  padding: 10px;
  text-align: center;
  background: #f4f4f4;
}
.label-sheet {
  display: flex;
  flex-wrap: wrap;
  gap: 3mm;
  padding: 3mm;
}
.label {
  width: 50mm;
  height: 25mm;
  border: 1px dashed #bbb;
  padding: 1.5mm;
  overflow: hidden;
  font-size: 8px;
  text-align: center;
}
.label svg {
  width: 100%;
  height: 11mm;
}
@media print {
  .no-print, .print-tools {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .label {
    border: none;
  }
  @page {
    margin: 4mm;
  }
}
.main {
  overflow-x: clip;
}
.card:has(> table.table) {
  overflow-x: auto;
}
.topbar {
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar::-webkit-scrollbar {
  display: none;
}
.topbar > * {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .topbar {
    padding: 0 10px;
    gap: 8px;
  }
  .page-head h1 {
    font-size: 18px;
  }
  .kv {
    grid-template-columns: 110px 1fr;
  }
  .stat-value {
    font-size: 17px;
  }
}
.grid > * {
  min-width: 0;
}
td.num, th.num {
  display: table-cell;
  text-align: right;
}
