/* ==========================================================================
   K-Tindahan — Design tokens
   ========================================================================== */
:root {
  /* Brand pinks (per spec: light #f07 / dark #ac0050) */
  --pink-50:  #fff0f6;
  --pink-100: #ffdcec;
  --pink-200: #ffbdda;
  --pink-300: #ff8dbe;
  --pink-400: #ff0077;   /* light pink — primary accent */
  --pink-500: #ec0070;
  --pink-600: #d2005f;
  --pink-700: #ac0050;   /* dark pink — sidebar / headings */
  --pink-800: #85003e;
  --pink-900: #5c002b;

  --ink:        #33101f;
  --ink-soft:   #6b4a58;
  --muted:      #97798a;
  --surface:    #ffffff;
  --bg:         #fdf3f8;
  --border:     #ffe1ee;
  --border-soft:#fff0f6;

  --success:    #12b76a;
  --success-bg: #e7faf1;
  --danger:     #e5484d;
  --danger-bg:  #fdecec;
  --warning:    #f59e0b;
  --warning-bg: #fef6e7;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 4px 18px rgba(172, 0, 80, 0.08);
  --shadow-pop: 0 18px 45px rgba(92, 0, 43, 0.22);
  --sidebar-w: 264px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--pink-700); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--pink-200); }
:focus-visible { outline: 3px solid var(--pink-300); outline-offset: 2px; }
.mono { font-family: var(--font-mono); }

/* ==========================================================================
   App shell
   ========================================================================== */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(190deg, var(--pink-700) 0%, var(--pink-900) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 40;
  transition: transform .25s ease;
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 22px 18px;
}
.sidebar__brand-icon-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar__brand-text-img {
    width: 120px;
    height: auto;
    display: block;
    object-fit: contain;
}
.sidebar__brand-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.16);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar__brand-icon svg { width: 24px; height: 24px; }
.sidebar__brand-text h1 { color: #fff; font-size: 19px; font-weight: 700; line-height: 1.1; }
.sidebar__brand-text span { font-size: 11.5px; color: rgba(255,255,255,0.65); letter-spacing: .02em; }

.sidebar__profile {
  margin: 4px 18px 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--pink-400);
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}
.sidebar__profile-name { font-size: 13.5px; font-weight: 600; color: #fff; }
.sidebar__profile-status { font-size: 11px; color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 5px; }
.sidebar__profile-status::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61,220,132,0.25);
}

.sidebar__nav { list-style: none; margin: 6px 0 0; padding: 0 14px; flex: 1; overflow-y: auto; }
.sidebar__nav li + li { margin-top: 3px; }
.sidebar__link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 13px;
  color: rgba(255,255,255,0.78);
  font-size: 14.5px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.sidebar__link svg { width: 19px; height: 19px; flex-shrink: 0; opacity: .9; }
.sidebar__link:hover { background: rgba(255,255,255,0.09); color: #fff; }
.sidebar__link.active {
  background: var(--pink-400);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255,0,119,0.35);
}

.sidebar__foot { padding: 14px; }
.sidebar__logout {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-size: 14px; font-weight: 500;
}
.sidebar__logout:hover { background: rgba(255,255,255,0.1); color: #fff; }
.sidebar__logout svg { width: 17px; height: 17px; }

.sidebar__illustration { padding: 0 18px 18px; opacity: 0.95; }

.sidebar__close { display: none; }

/* ---- Main ---- */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  position: sticky;
  top: 0;
  background: rgba(253, 243, 248, 0.88);
  backdrop-filter: blur(8px);
  z-index: 20;
  border-bottom: 1px solid var(--border);
}
.topbar__menu-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: none;
  background: var(--pink-50);
  color: var(--pink-700);
  align-items: center; justify-content: center;
}
.topbar__title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.topbar__title h2 { font-size: 21px; }
.topbar__title p { color: var(--muted); font-size: 13px; }
.topbar__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--pink-50);
  color: var(--pink-700);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pill svg { width: 14px; height: 14px; }
.pill--muted { background: #f3eef1; color: var(--ink-soft); }
.pill--open { background: var(--success-bg); color: #0a8a54; }
.pill--closed { background: var(--danger-bg); color: #c1272d; }

.content { padding: 24px 32px 60px; max-width: 1400px; width: 100%; margin: 0 auto; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 13px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  transition: transform .1s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn--primary { background: var(--pink-400); color: #fff; box-shadow: 0 10px 24px rgba(255,0,119,0.28); }
.btn--primary:hover:not(:disabled) { background: var(--pink-500); }

.btn--dark { background: var(--pink-700); color: #fff; }
.btn--dark:hover:not(:disabled) { background: var(--pink-800); }

.btn--outline { background: #fff; color: var(--pink-700); border: 1.5px solid var(--border); }
.btn--outline:hover:not(:disabled) { border-color: var(--pink-300); background: var(--pink-50); }

.btn--ghost { background: transparent; color: var(--ink-soft); }
.btn--ghost:hover:not(:disabled) { background: var(--pink-50); color: var(--pink-700); }

.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover:not(:disabled) { background: #cf3338; }

.btn--sm { padding: 7px 13px; font-size: 12.5px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn--icon { padding: 9px; border-radius: 11px; }

/* ==========================================================================
   Cards / grid / stats
   ========================================================================== */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}
.card__pad { padding: 22px; }
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}
.card__head h3 { font-size: 16px; display: flex; align-items: center; gap: 9px; }
.card__head h3 svg { width: 18px; height: 18px; color: var(--pink-400); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 20px; }
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  padding: 20px 20px 0;
  overflow: hidden;
  position: relative;
}
.stat-card__top { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 16px; }
.stat-card__icon {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--pink-50);
  color: var(--pink-500);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-card__icon svg { width: 22px; height: 22px; }
.stat-card__label { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.stat-card__value { font-family: var(--font-display); font-size: 25px; font-weight: 700; color: var(--pink-700); }
.stat-card__wave {
  height: 30px;
  margin: 0 -20px;
  background:
    linear-gradient(180deg, rgba(255,0,119,0.10), rgba(255,0,119,0));
  position: relative;
}
.stat-card__wave svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; }

.grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }

/* ==========================================================================
   Quick actions
   ========================================================================== */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quick-tile {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--pink-50);
  border: 1px solid var(--border-soft);
  text-align: left;
}
.quick-tile:hover { background: var(--pink-100); }
.quick-tile--main { background: var(--pink-400); color: #fff; }
.quick-tile--main:hover { background: var(--pink-500); }
.quick-tile--main .quick-tile__title, .quick-tile--main .quick-tile__sub { color: #fff; }
.quick-tile--main .quick-tile__icon { background: rgba(255,255,255,0.22); color: #fff; }
.quick-tile__icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: #fff; color: var(--pink-500);
  display: flex; align-items: center; justify-content: center;
}
.quick-tile__icon svg { width: 19px; height: 19px; }
.quick-tile__title { font-weight: 700; font-size: 14.5px; color: var(--pink-700); }
.quick-tile__sub { font-size: 12px; color: var(--muted); }

/* ==========================================================================
   Tables
   ========================================================================== */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data-table th {
  text-align: left; padding: 10px 14px;
  color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
table.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.data-table tbody tr:hover { background: var(--pink-50); }
table.data-table tbody tr.clickable { cursor: pointer; }
table.data-table td.num, table.data-table th.num { text-align: right; font-family: var(--font-mono); }

.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 8px;
  background: var(--pink-50); color: var(--pink-600);
  font-weight: 700; font-size: 12px; font-family: var(--font-mono);
}
.rank-badge--1 { background: var(--pink-400); color: #fff; }

/* ==========================================================================
   Empty state
   ========================================================================== */
.empty-state { text-align: center; padding: 34px 20px; }
.empty-state svg { width: 64px; height: 64px; color: var(--pink-200); margin-bottom: 14px; }
.empty-state h4 { font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.empty-state p { color: var(--muted); font-size: 13px; margin-bottom: 14px; }

/* ==========================================================================
   Badges / tags
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
}
.badge--feed { background: #fff0e0; color: #b3630c; }
.badge--normal { background: #eaf1ff; color: #2456c9; }
.badge--active { background: var(--success-bg); color: #0a8a54; }
.badge--inactive { background: #f2eef1; color: var(--muted); }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field-hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.field-error { font-size: 12px; color: var(--danger); margin-top: 5px; }
.alert-box {
  padding: 11px 14px; border-radius: 12px; margin-bottom: 16px;
  background: var(--danger-bg); color: #c1272d; font-size: 13px; font-weight: 500;
}
.alert-box--info { background: var(--pink-50); color: var(--pink-700); }
.input, select.input, textarea.input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 14px;
  color: var(--ink);
}
.input:focus { border-color: var(--pink-300); }
textarea.input { resize: vertical; min-height: 80px; }
.input-prefix-wrap { position: relative; }
.input-prefix-wrap .prefix {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-weight: 600; font-size: 14px;
}
.input-prefix-wrap .input { padding-left: 30px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.segmented { display: flex; gap: 8px; flex-wrap: wrap; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
}
.segmented input:checked + label { border-color: var(--pink-400); background: var(--pink-50); color: var(--pink-700); }

.tabs { display: flex; gap: 6px; background: var(--pink-50); padding: 5px; border-radius: 13px; width: fit-content; flex-wrap: wrap; }
.tabs button {
  border: none; background: transparent; padding: 8px 16px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
}
.tabs button.active { background: #fff; color: var(--pink-700); box-shadow: 0 2px 8px rgba(172,0,80,0.12); }

.search-input { position: relative; }
.search-input svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search-input input { padding-left: 36px; }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; justify-content: space-between; }
.toolbar__filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.image-drop {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border: 1.5px dashed var(--border); border-radius: 13px;
}
.image-drop__preview {
  width: 58px; height: 58px; border-radius: 12px; background: var(--pink-50);
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.image-drop__preview img { width: 100%; height: 100%; object-fit: cover; }
.image-drop__preview svg { width: 24px; height: 24px; color: var(--pink-300); }

/* ==========================================================================
   Product grid (Products page + Record Sale)
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.product-card.selectable { cursor: pointer; }
.product-card.selectable:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(172,0,80,0.16); }
.product-card.inactive { opacity: 0.55; }
.product-card__thumb {
  width: 100%; height: 108px; border-radius: 12px; background: var(--pink-50);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card__thumb svg { width: 34px; height: 34px; color: var(--pink-300); }
.product-card__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.product-card__name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.product-card__category { font-size: 12px; color: var(--muted); }
.product-card__price { font-family: var(--font-mono); font-weight: 700; color: var(--pink-700); font-size: 14.5px; }
.product-card__price small { font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: 11px; }
.product-card__actions { display: flex; gap: 8px; margin-top: auto; }

/* ==========================================================================
   Record sale — cart / receipt
   ========================================================================== */
.sale-layout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: flex-start; }
.receipt {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-pop);
  position: sticky;
  top: 96px;
  overflow: hidden;
}
.receipt__top {
  border-top: 3px dashed var(--pink-200);
  padding: 18px 20px 6px;
}
.receipt__header { padding: 20px 20px 14px; background: var(--pink-700); color: #fff; }
.receipt__header h3 { color: #fff; font-size: 16px; display:flex; align-items:center; gap: 8px;}
.receipt__header p { color: rgba(255,255,255,0.7); font-size: 12px; margin-top: 2px; }
.receipt__items { padding: 6px 20px; max-height: 320px; overflow-y: auto; }
.receipt__item { padding: 12px 0; border-bottom: 1px dashed var(--border); }
.receipt__item-top { display: flex; justify-content: space-between; gap: 8px; }
.receipt__item-name { font-weight: 600; font-size: 13.5px; }
.receipt__item-remove { color: var(--danger); background: none; border: none; font-size: 12px; font-weight: 700; }
.receipt__item-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.receipt__item-qty { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); }
.receipt__item-qty input { width: 58px; padding: 5px 6px; border-radius: 8px; border: 1.5px solid var(--border); text-align: center; font-family: var(--font-mono); }
.receipt__item-total { font-family: var(--font-mono); font-weight: 700; color: var(--pink-700); font-size: 13.5px; }
.receipt__empty { padding: 30px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.receipt__empty svg { width: 40px; height: 40px; color: var(--pink-200); margin-bottom: 8px; }
.receipt__totals { padding: 14px 20px; border-top: 1.5px dashed var(--border); }
.receipt__total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.receipt__total-row span:first-child { font-weight: 600; color: var(--ink-soft); font-size: 13px; }
.receipt__total-row span:last-child { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--pink-700); }
.receipt__actions { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 20px; }

.mini-stats { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.mini-stat { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 13px; padding: 10px 16px; box-shadow: var(--shadow-card); }
.mini-stat span { display: block; }
.mini-stat .k { font-size: 11px; color: var(--muted); font-weight: 600; }
.mini-stat .v { font-family: var(--font-mono); font-weight: 700; color: var(--pink-700); font-size: 15px; }

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(51, 16, 31, 0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: var(--radius-lg);
  width: 100%; max-width: 520px;
  max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-pop);
  transform: translateY(14px) scale(.98); transition: transform .15s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal--lg { max-width: 720px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border-soft); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal__head h3 { font-size: 17px; }
.modal__close { width: 32px; height: 32px; border-radius: 10px; border: none; background: var(--pink-50); color: var(--pink-700); display: flex; align-items: center; justify-content: center; }
.modal__body { padding: 22px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border-soft); }

.modal-icon-banner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 6px 0 18px; }
.modal-icon-banner .circle { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.modal-icon-banner .circle svg { width: 30px; height: 30px; }
.modal-icon-banner.warn .circle { background: var(--warning-bg); color: var(--warning); }
.modal-icon-banner.danger .circle { background: var(--danger-bg); color: var(--danger); }
.modal-icon-banner.success .circle { background: var(--success-bg); color: var(--success); }
.modal-icon-banner h4 { font-size: 16.5px; }
.modal-icon-banner p { color: var(--muted); font-size: 13.5px; }

.summary-list { margin-top: 6px; }
.summary-list__row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.summary-list__row:last-child { border-bottom: none; }

/* ==========================================================================
   Toasts
   ========================================================================== */
.toast-stack { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 260px; max-width: 360px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-pop);
  padding: 14px 16px; display: flex; align-items: flex-start; gap: 10px;
  border-left: 4px solid var(--pink-400);
  animation: toast-in .18s ease;
}
.toast svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.toast p { font-size: 13.5px; font-weight: 500; }
.toast--success { border-color: var(--success); }
.toast--success svg { color: var(--success); }
.toast--error { border-color: var(--danger); }
.toast--error svg { color: var(--danger); }
.toast--info svg { color: var(--pink-400); }
@keyframes toast-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }

/* ==========================================================================
   Login page
   ========================================================================== */
.login-shell { min-height: 100vh; display: flex; }
.login-brand {
  flex: 1;
  background: linear-gradient(160deg, var(--pink-700), var(--pink-900));
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px;
}
.login-brand__top { display: flex; align-items: center; gap: 12px; }
.login-brand__top .icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; }
.login-brand__top .icon svg { width: 26px; height: 26px; }
.login-brand__top h1 { color: #fff; font-size: 22px; }
.login-brand__top span { color: rgba(255,255,255,0.65); font-size: 12.5px; }
.login-brand__mid h2 { color: #fff; font-size: 30px; max-width: 380px; line-height: 1.3; }
.login-brand__mid p { color: rgba(255,255,255,0.72); margin-top: 12px; max-width: 360px; font-size: 14.5px; }
.login-brand__illustration svg { width: 100%; max-width: 340px; }
.login-form-side { width: 460px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 40px; background: #fff; }
.login-form-card { width: 100%; max-width: 340px; }
.login-form-card h2 { font-size: 24px; margin-bottom: 6px; }
.login-form-card > p { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.login-hint {
  margin-top: 18px; padding: 12px 14px; border-radius: 12px;
  background: var(--pink-50); font-size: 12.5px; color: var(--pink-700);
}
.login-hint--muted { background: transparent; padding: 0; color: var(--muted); text-align: center; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 12px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.login-error {
  display: none;
  margin-bottom: 16px; padding: 11px 14px; border-radius: 12px;
  background: var(--danger-bg); color: #c1272d; font-size: 13px; font-weight: 500;
}
.login-error.show { display: block; }
.login-brand__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-brand__top .brand-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex-shrink: 0;
}

.login-brand__top .brand-text {
    width: 150px;
    height: auto;
    display: block;
    object-fit: contain;
}

.login-brand__top span {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 12.5px;
    margin-top: 3px;
}

.brand-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.brand-text {
    width: 200px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ==========================================================================
   404
   ========================================================================== */
.notfound-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--pink-50), var(--bg));
  padding: 24px;
}
.notfound-card { text-align: center; max-width: 420px; }
.notfound-card svg { width: 120px; margin-bottom: 10px; }
.notfound-card h1 { font-size: 68px; color: var(--pink-400); }
.notfound-card h2 { font-size: 20px; margin: 8px 0 6px; }
.notfound-card p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

/* ==========================================================================
   Shift Completed — full-screen takeover
   ========================================================================== */
.shift-complete-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: linear-gradient(160deg, var(--pink-700), var(--pink-900));
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity .2s ease;
}
.shift-complete-overlay.open { opacity: 1; }
.shift-complete-card {
  background: #fff; border-radius: 28px;
  width: 100%; max-width: 460px;
  padding: 36px 30px 30px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  max-height: 92vh; overflow-y: auto;
}
.shift-complete-badge {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--success-bg); color: var(--success);
  display: flex; align-items: center; justify-content: center;
}
.shift-complete-badge svg { width: 32px; height: 32px; }
.shift-complete-card h3 { font-size: 22px; }
.shift-complete-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.shift-complete-total {
  font-family: var(--font-body); font-weight: 700; color: var(--pink-700);
  font-size: 46px; line-height: 1.1; margin-top: 18px;
}
.shift-complete-total-label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); margin-top: 2px;
}
.shift-complete-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 22px; padding-top: 18px; border-top: 1.5px dashed var(--border);
}
.shift-complete-stats > div { text-align: left; background: var(--pink-50); border-radius: 12px; padding: 10px 12px; }
.shift-complete-stats .k { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.shift-complete-stats .v { display: block; font-family: var(--font-body); font-weight: 700; color: var(--pink-700); font-size: 14px; margin-top: 2px; }
.shift-complete-products { text-align: left; margin-top: 20px; padding-top: 16px; border-top: 1.5px dashed var(--border); }
.shift-complete-products h4 { font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }
.shift-complete-card .btn { margin-top: 24px; }

/* ==========================================================================
   Role badge
   ========================================================================== */
.role-badge {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  background: rgba(255,255,255,0.18); color: #fff;
}

/* ==========================================================================
   Quantity stepper (POS)
   ========================================================================== */
.qty-stepper { display: flex; align-items: center; gap: 10px; }
.qty-stepper button {
  width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--border);
  background: #fff; color: var(--pink-700); font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.qty-stepper button:hover { background: var(--pink-50); border-color: var(--pink-300); }
.qty-stepper input { text-align: center; flex: 1; }

/* ==========================================================================
   Shift-required blocking state (POS)
   ========================================================================== */
.shift-gate {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}
.shift-gate svg { width: 72px; height: 72px; color: var(--pink-300); margin-bottom: 16px; }
.shift-gate h3 { font-size: 19px; margin-bottom: 6px; }
.shift-gate p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.spinner--pink { border: 2.5px solid var(--pink-100); border-top-color: var(--pink-400); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Tablet compatibility: some Android tablets (e.g. 1280x800 at high DPI) report a
   CSS viewport around 976px wide. Treat these as tablet layouts so the fixed
   sidebar does not consume most of the usable content width. */
@media (max-width: 1100px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-pop);
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; width: 100%; }
  .topbar__menu-btn { display: flex; }
  .topbar { padding: 14px 18px; }
  .content { padding: 18px 20px 50px; }

  /* Give tablet users the full width for the product area. */
  .sale-layout {
    grid-template-columns: 1fr;
  }
  .receipt {
    position: static;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .sale-layout { grid-template-columns: 1fr; }
  .receipt { position: static; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-pop); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .topbar__menu-btn { display: flex; }
  .topbar { padding: 14px 16px; }
  .content { padding: 16px 16px 50px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .quick-grid { grid-template-columns: 1fr; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-form-side { width: 100%; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .topbar__right .pill span.hide-xs { display: none; }
}

/* Sale removal action: visible on hover */
.sale-action-cell { width: 1%; white-space: nowrap; text-align: right; }
.sale-remove-btn { opacity: 0; pointer-events: none; border: 1px solid var(--border); background: #fff; color: #ac0050; border-radius: 8px; padding: 6px 10px; font: 600 12px Inter, sans-serif; cursor: pointer; transition: opacity .15s, background .15s; }
.sale-row:hover .sale-remove-btn, tr:hover .sale-remove-btn { opacity: 1; pointer-events: auto; }
.sale-remove-btn:hover { background: #fff0f7; border-color: #ff0077; }

/* GCash */
.gcash-layout{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(520px,1.4fr);gap:18px}
.gcash-example{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;margin:0 0 16px;border-radius:13px;background:var(--pink-50);color:var(--ink-soft)}
.gcash-example strong{font-family:var(--font-display);font-size:20px;color:var(--pink-700)}
.gcash-actions{display:flex;justify-content:flex-end;gap:7px}
.gcash-cashier-card{margin-bottom:18px}
.gcash-cashier-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.gcash-option{display:flex;flex-direction:column;text-align:left;gap:5px;padding:16px;border:1.5px solid var(--border);border-radius:16px;background:#fff;color:var(--ink);transition:.15s ease;box-shadow:0 3px 12px rgba(172,0,80,.05)}
.gcash-option:hover{border-color:var(--pink-300);background:var(--pink-50);transform:translateY(-1px)}
.gcash-option__amount{font-family:var(--font-display);font-weight:700;font-size:17px;color:var(--pink-700)}
.gcash-option__fee{font-size:12.5px;font-weight:600;color:var(--success)}
.gcash-option__total{font-size:12px;color:var(--muted);margin-top:3px}
@media(max-width:900px){.gcash-layout{grid-template-columns:1fr}}


/* ==========================================================================
   Mobile App Mode
   Designed for phones: no accidental browser zoom, thumb-friendly controls,
   compact cards, and a full-width POS experience.
   ========================================================================== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-x: none;
}
body {
  min-width: 320px;
  overflow-x: hidden;
}
button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}
input, select, textarea {
  font-size: 16px; /* prevents iOS Safari input zoom */
}

@media (max-width: 860px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell {
    min-height: 100dvh;
    display: block;
  }

  /* Mobile drawer */
  .sidebar {
    width: min(82vw, 320px);
    max-width: 320px;
    height: 100dvh;
    min-height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
    overflow: hidden;
  }
  .sidebar__nav {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .main {
    width: 100%;
    min-height: 100dvh;
    margin-left: 0;
  }

  .topbar {
    min-height: 64px;
    padding: 10px 12px;
    gap: 8px;
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .topbar__menu-btn {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 13px;
  }
  .topbar__title h2 {
    font-size: 18px;
    line-height: 1.15;
  }
  .topbar__title p {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar__right {
    gap: 6px;
    max-width: 48%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .topbar__right::-webkit-scrollbar { display: none; }
  .topbar__right .pill {
    padding: 7px 9px;
    font-size: 11px;
  }

  .content {
    width: 100%;
    max-width: none;
    padding: 12px 12px calc(32px + env(safe-area-inset-bottom));
  }

  .btn {
    min-height: 44px;
    padding: 10px 15px;
  }

  .card {
    border-radius: 16px;
  }
  .card__pad {
    padding: 15px;
  }

  /* Dashboard/stat cards */
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }
  .stat-card {
    padding: 14px 13px 0;
    border-radius: 15px;
  }
  .stat-card__top {
    gap: 9px;
    padding-bottom: 13px;
  }
  .stat-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .stat-card__icon svg { width: 19px; height: 19px; }
  .stat-card__label { font-size: 10.5px; }
  .stat-card__value { font-size: 17px; }

  /* Toolbars become vertically comfortable instead of overflowing */
  .toolbar {
    gap: 9px;
    margin-bottom: 12px;
  }
  .toolbar__filters {
    width: 100%;
    gap: 7px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .toolbar__filters::-webkit-scrollbar { display: none; }
  .tabs {
    flex: 0 0 auto;
  }
  .tabs button {
    min-height: 42px;
    padding: 9px 13px;
    white-space: nowrap;
  }
  .toolbar .search-input,
  .toolbar .search-input[style] {
    width: 100% !important;
  }
  .toolbar .search-input input {
    min-height: 44px;
  }

  /* Product cards: two easy-to-tap columns */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .product-card {
    min-width: 0;
    padding: 11px;
    gap: 7px;
    border-radius: 14px;
  }
  .product-card.selectable:hover {
    transform: none;
    box-shadow: var(--shadow-card);
  }
  .product-card__thumb {
    height: 92px;
    border-radius: 10px;
  }
  .product-card__name {
    font-size: 13px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-card__category { font-size: 10.5px; }
  .product-card__price { font-size: 13px; }
  .product-card__badges { gap: 4px; }
  .product-card__badges .badge {
    font-size: 9px;
    padding: 3px 6px;
  }

  /* POS */
  .sale-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .receipt {
    position: relative;
    top: auto;
    width: 100%;
    border-radius: 16px;
  }
  .receipt__header {
    padding: 15px;
  }
  .receipt__top { padding: 12px 15px 4px; }
  .receipt__items {
    padding: 5px 15px;
    max-height: 42dvh;
  }
  .receipt__totals {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 12px 15px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    z-index: 5;
  }
  .receipt__actions {
    gap: 8px;
  }
  .receipt__actions .btn {
    flex: 1;
  }

  .mini-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }
  .mini-stat {
    padding: 11px 12px;
    border-radius: 13px;
  }

  /* GCash cashier cards */
  .gcash-cashier-card {
    margin-bottom: 12px;
  }
  .gcash-cashier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .gcash-option {
    min-height: 76px;
    padding: 11px;
    border-radius: 13px;
  }
  .gcash-option__amount { font-size: 15px; }
  .gcash-option__fee,
  .gcash-option__total { font-size: 11px; }

  /* Tables scroll inside their card instead of breaking the page */
  .table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
  }
  table.data-table {
    min-width: 620px;
  }
  table.data-table th { padding: 9px 10px; font-size: 10px; }
  table.data-table td { padding: 11px 10px; font-size: 12px; }

  /* Forms and modals */
  .form-grid,
  .grid-2,
  .grid-3,
  .row-2,
  .row-3 {
    grid-template-columns: 1fr !important;
  }
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .modal__head {
    padding: 15px 17px;
  }
  .modal__body { padding: 17px; }
  .modal__foot {
    padding: 13px 17px;
    flex-wrap: wrap;
  }
  .modal__foot .btn {
    flex: 1;
    min-width: 120px;
  }

  /* Settings / user controls */
  .settings-grid {
    width: 100%;
  }
  .user-stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .user-stat-chip {
    min-width: 0;
  }
  .user-row-actions .btn {
    min-height: 42px;
  }

  /* Shift completed screen */
  .shift-complete-overlay {
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .shift-complete-card {
    max-height: 94dvh;
    padding: 26px 18px 18px;
    border-radius: 22px;
  }
  .shift-complete-total {
    font-family: var(--font-body);
    font-size: 38px;
  }
}

@media (max-width: 480px) {
  .content {
    padding-left: 10px;
    padding-right: 10px;
  }
  .topbar__right .pill {
    padding: 6px 8px;
  }
  .stat-grid {
    gap: 8px;
  }
  .stat-card__value {
    font-size: 15px;
  }
  .product-grid {
    gap: 8px;
  }
  .product-card__thumb {
    height: 82px;
  }
  .product-card {
    padding: 9px;
  }
  .gcash-cashier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-card__thumb {
    height: 74px;
  }
  .product-card__name {
    font-size: 12px;
  }
  .btn {
    padding-left: 12px;
    padding-right: 12px;
  }
}


/* GCash branding */
.gcash-card-title { display:flex; align-items:center; gap:12px; min-width:0; }
.gcash-logo { width:118px; height:auto; flex:0 0 auto; display:block; }
.gcash-card-title h3 { margin:0 0 2px; }

/* Cashier shift control lives in the sidebar directly above Logout. */
.sidebar__foot { display:flex; flex-direction:column; gap:8px; }
.sidebar__shift-action {
  width:100%; border:0; background:rgba(255,255,255,.10); color:#fff;
  display:flex; align-items:center; gap:10px; padding:11px 13px; border-radius:10px;
  font:600 13px Inter, sans-serif; cursor:pointer; text-align:left; transition:background .18s ease, transform .18s ease;
}
.sidebar__shift-action:hover { background:rgba(255,255,255,.17); }
.sidebar__shift-action svg { width:20px; height:20px; flex:0 0 20px; }
.sidebar__shift-action.is-active { background:rgba(255,255,255,.16); }

@media (max-width: 760px) {
  .gcash-card-title { gap:9px; }
  .gcash-logo { width:96px; }
}


/* Cash received / change and GCash amount calculator */
.change-preview {
  display:flex; align-items:center; justify-content:space-between;
  margin-top:16px; padding:15px 16px; border-radius:13px;
  background:var(--pink-50); color:var(--ink-soft);
}
.change-preview span { font-weight:600; font-size:13px; }
.change-preview strong { font-family:var(--font-mono); font-size:24px; color:var(--pink-700); }
.cashier-gcash-input {
  display:grid; grid-template-columns:minmax(220px,1fr) minmax(300px,1.3fr) auto;
  align-items:end; gap:14px;
}
.cashier-gcash-input .field { margin:0; }
.gcash-calc-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.gcash-calc-grid > div {
  display:flex; flex-direction:column; gap:3px;
  padding:11px 13px; border-radius:12px; background:var(--pink-50);
}
.gcash-calc-grid span { font-size:11px; color:var(--muted); font-weight:600; }
.gcash-calc-grid strong { font-family:var(--font-mono); color:var(--pink-700); font-size:17px; }
.cashier-gcash-input .field-hint { grid-column:1 / -1; margin:0; }
@media (max-width: 860px) {
  .cashier-gcash-input { grid-template-columns:1fr; }
  .cashier-gcash-input .field-hint { grid-column:auto; }
}


/* ==========================================================
   Product Sale conversion display
   ========================================================== */
.sale-conversion-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
  padding: 14px 16px;
  border-radius: 13px;
  background: var(--pink-50);
  border: 1px solid rgba(255, 0, 119, 0.12);
}
.sale-conversion-box__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--pink-700);
  font-size: 22px;
  font-weight: 700;
}
.sale-conversion-box__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sale-conversion-box__text strong {
  color: var(--pink-700);
  font-family: "Inter", sans-serif !important;
  font-size: 15px;
}
.sale-conversion-box__text small {
  color: var(--ink-soft);
  font-family: "Inter", sans-serif !important;
  font-size: 12px;
}
.sale-conversion-box__value {
  margin-left: auto;
  white-space: nowrap;
  color: var(--pink-700);
  font-family: "Inter", sans-serif !important;
  font-size: 22px;
  font-weight: 800;
}

@media (max-width: 520px) {
  .sale-conversion-box {
    padding: 12px;
  }
  .sale-conversion-box__value {
    font-size: 19px;
  }
}

/* ==========================================================
   PRODUCT SALE — MATCH DASHBOARD FONT
   Uses the same Inter body font as the dashboard so the
   ₱ peso symbol renders correctly on older Android devices.
   ========================================================== */

#pos-area,
#pos-area *,
.modal-overlay .modal,
.modal-overlay .modal * {
  font-family: var(--font-body) !important;
}

/* Keep headings consistent with the dashboard */
#pos-area h1,
#pos-area h2,
#pos-area h3,
#pos-area h4,
.modal-overlay .modal h1,
.modal-overlay .modal h2,
.modal-overlay .modal h3,
.modal-overlay .modal h4 {
  font-family: var(--font-display) !important;
}

/* Product prices, receipt amounts, totals and calculators */
#pos-area .mono,
#pos-area .product-card__price,
#pos-area .receipt__item-qty,
#pos-area .receipt__item-total,
#pos-area .receipt__total-row,
#pos-area .mini-stat .v,
#pos-area .change-preview strong,
#pos-area .gcash-calc-grid strong,
.modal-overlay .modal .mono {
  font-family: var(--font-body) !important;
}

/* Dynamically-created feed/product sale modal values */
.modal-overlay .modal input,
.modal-overlay .modal select,
.modal-overlay .modal button,
.modal-overlay .modal label,
.modal-overlay .modal span,
.modal-overlay .modal strong,
.modal-overlay .modal small,
.modal-overlay .modal p,
.modal-overlay .modal div {
  font-family: var(--font-body) !important;
}

