/* Saffron Heritage: espresso, ivory, saffron; Fraunces figures, DM Sans text, Nastaliq Urdu */
:root {
  --accent: #e39b4b;
  --on-accent: #1b130e;
  --accent-ink: color-mix(in srgb, var(--accent) 55%, #1b130e);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, #fffbf4);
  --ink: #2a1d14;
  --muted: #6e5a49;
  --paper: #f6efe4;
  --card: #fffbf4;
  --line: rgba(42, 29, 20, 0.1);
  --line-strong: #eadfcf;
  --espresso: #1b130e;
  --espresso-2: #2a1d14;
  --shadow: 0 1px 2px rgba(42, 29, 20, 0.04), 0 12px 32px rgba(60, 36, 12, 0.06);
  --sage: #1f5c4a;
  --rose: #9b2c2c;
  --amber: var(--accent);
  --blue: #355c7d;
  --font-sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Nirmala UI", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); }
img { max-width: 100%; }
h1, h2 { font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 1.75rem; font-family: var(--font-serif); }
h2 { font-size: 1.05rem; }
p { margin: 0; }
[lang="ur"] { font-family: var(--font-urdu); line-height: 2; letter-spacing: 0; text-transform: none; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.app-shell {
  display: grid;
  grid-template-columns: 268px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  padding: 24px 14px 16px;
  background: var(--espresso);
  color: #eadfd2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 6px;
  color: inherit;
  text-decoration: none;
}
.brand img, .login-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}
.brand strong { display: block; font-family: var(--font-serif); font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; }
.brand small, .muted { color: var(--muted); }
.sidebar .brand small { color: #b6a493; font-size: 0.8rem; }
.mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
}
.mark-lg { width: 64px; height: 64px; font-size: 1.7rem; }
.side-stall {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #261b14;
  border: 1px solid rgba(234, 223, 210, 0.08);
}
.side-stall small { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #b6a493; }
.side-stall strong { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: #fff6ea; }
.side-stall span { font-size: 0.78rem; color: #b6a493; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #3a2a1f transparent; }
.sidebar-user {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(234, 223, 210, 0.1);
}
.sidebar-user > div { flex: 1; min-width: 0; }
.sidebar-user strong { display: block; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { color: #b6a493; }
.icon-btn {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #c9b8a6;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.07); color: #fff6ea; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #3a2a1f;
  color: #f2d2a9;
  font-family: var(--font-serif);
  font-weight: 600;
  flex: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-group { border-radius: 14px; }
.nav-group summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px 6px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b6a493;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: "▾"; font-size: 0.8rem; opacity: 0.7; }
.nav-group[open] summary::after { transform: rotate(180deg); }
.nav-links { display: grid; gap: 2px; padding: 0 0 6px; }
.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d8cbbd;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar a .icon { color: #a8968a; }
.nav-label { flex: 1; }
.nav-ur { font-family: var(--font-urdu); font-size: 0.74rem; line-height: 1.9; color: #a8968a; }
.sidebar a:hover { background: rgba(255, 255, 255, 0.05); color: #fff6ea; }
.sidebar a.is-active { background: #2e2118; color: #fff6ea; font-weight: 600; }
.sidebar a.is-active .icon { color: var(--accent); }
.sidebar a.is-active .nav-ur { color: #c9b8a6; }
.sidebar a:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.workspace { min-width: 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 24px 32px 8px;
}
.topbar-title { min-width: 0; }
.topbar h1 { margin: 0; font-size: 2rem; letter-spacing: -0.025em; line-height: 1.15; }
.topbar .eyebrow { color: var(--muted); font-weight: 600; }
.topbar .topbar-actions { align-items: center; justify-content: flex-end; }
.live-clock {
  min-width: 120px;
  min-height: 46px;
  padding: 6px 14px;
  border-radius: 14px;
  text-align: right;
  display: grid;
  align-content: center;
  background: var(--card);
  border: 1px solid var(--line-strong);
}
.live-clock strong {
  display: block;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  font-weight: 600;
}
.live-clock small { color: var(--muted); font-size: 0.75rem; }
.profile-menu { position: relative; }
.profile-menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 3px 14px 3px 3px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line-strong);
}
.profile-menu summary .avatar { width: 38px; height: 38px; }
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-label { font-weight: 600; }
.profile-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  min-width: 190px;
  padding: 8px;
  display: grid;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(60, 36, 12, 0.14);
}
.profile-drop a, .profile-drop button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.profile-drop a:hover, .profile-drop button:hover { background: #f3e9db; }
.profile-drop form { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.kpi .figure.is-label { font-size: 1.15rem; line-height: 1.3; word-break: break-word; }
.topbar-actions, .page-actions, .form-actions, .inline-form {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}
.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow.light { color: #ffe7d2; }
.who { color: var(--muted); align-self: center; }
.page { padding: 12px 32px 48px; display: flex; flex-direction: column; gap: 18px; }
.switcher select, input, select, textarea {
  width: 100%;
  border: 1px solid #e3d6c5;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 70%, #fff);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
select {
  appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, #6e5a49 50%), linear-gradient(135deg, #6e5a49 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
textarea { resize: vertical; }
label { display: grid; gap: 6px; font-size: 0.92rem; }
.check { display: flex; gap: 8px; align-items: center; }
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; accent-color: var(--accent); }

.btn {
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 26%, transparent);
}
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #1b130e); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid #dccab4; }
.btn-ghost:hover { background: #f3e9db; }
.btn-google {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  width: 100%;
}

.soft-card {
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 20px;
  border: 1px solid var(--line-strong);
}
.kpi-grid, .period-grid {
  display: grid;
  gap: 14px;
}
.kpi-grid { grid-template-columns: repeat(4, 1fr); }
.kpi-grid.three { grid-template-columns: repeat(3, 1fr); }
.password-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.password-sheet .muted, .password-sheet .form-actions { grid-column: 1 / -1; }
.field-row { display: flex; gap: 8px; align-items: center; }
.field-row input { flex: 1; }
.field-row .btn { flex: none; min-height: 44px; }
.period-grid { grid-template-columns: repeat(3, 1fr); }
.two-col { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 14px; }
.chip {
  width: 36px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 12px;
}
.chip-amber { background: #f0c7a4; }
.chip-sage { background: #b7d8c8; }
.chip-rose { background: #f0c2c4; }
.chip-ink { background: #d5d0ea; }
.urdu {
  font-family: var(--font-urdu);
  font-size: 0.82rem;
  line-height: 2;
  color: var(--muted);
  direction: rtl;
  text-align: left;
  margin-bottom: 2px;
}
.figure {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 10px;
  letter-spacing: -0.025em;
}
.dash-date {
  margin: -4px 2px 0;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}
.kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  gap: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.kpi:hover { border-color: #dccab4; box-shadow: 0 1px 2px rgba(42, 29, 20, 0.05), 0 16px 36px rgba(60, 36, 12, 0.09); }
.kpi-top { display: flex; gap: 12px; align-items: center; }
.kpi-top > div { flex: 1; min-width: 0; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 8px; }
.kpi-note { margin-top: 6px; color: var(--muted); font-size: 0.84rem; }
.kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
}
.kpi-amber .kpi-icon { color: #8e4a0f; background: #f6e6cf; }
.kpi-sage .kpi-icon { color: #1f5c4a; background: #dcebe3; }
.kpi-rose .kpi-icon { color: #9b2c2c; background: #f8e3de; }
.kpi-ink .kpi-icon { color: #3f3168; background: #e6e0ef; }
.kpi h2 { color: var(--muted); font-size: 0.92rem; font-weight: 600; letter-spacing: 0; }
.kpi .urdu { margin: 0; white-space: nowrap; }
.kpi .figure { color: var(--ink); font-size: clamp(1.7rem, 2.2vw, 2.15rem); margin-top: 0; line-height: 1.1; }
.kpi .figure.is-down { color: var(--rose); }
.period-card h2 {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3e9db;
  color: #6a5344;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.period-card { border: 1px solid rgba(36, 28, 22, 0.05); }
.meter { display: grid; gap: 6px; margin-top: 16px; }
.meter span { display: block; height: 7px; border-radius: 99px; }
.meter-sales { background: #c46b2d; }
.meter-exp { background: #e7b4b8; }
.meter-empty span { width: 100%; background: #efe6dc; }
.period-card dl { margin: 14px 0 0; }
.period-card div { padding: 8px 0; border-top: 1px solid var(--line); }
.period-net {
  margin-top: 6px;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 14px;
  background: #f6f1ea;
}
.stock-hero {
  align-self: stretch;
  border-radius: 22px;
  padding: 24px;
  color: #f7f1ea;
  background:
    radial-gradient(280px 180px at 100% 0%, color-mix(in srgb, var(--accent) 75%, white), transparent 70%),
    #161311;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stock-hero .urdu { color: #e7c7a8; }
.stock-hero h2 { color: #fff; }
.stock-hero .figure { color: #fff; font-size: clamp(2rem, 3vw, 2.6rem); margin-top: 12px; }
.stock-hero p:last-child { color: #d9cbbf; line-height: 1.5; }
.stock-meta { color: #fff !important; font-weight: 650; letter-spacing: -0.02em; }
.rank-list li { padding: 8px 0; }
.rank-list strong { letter-spacing: -0.02em; }
.is-down { color: var(--rose); }
.period-card dl { margin: 12px 0 0; display: grid; gap: 8px; }
.period-card div { display: flex; justify-content: space-between; gap: 12px; }
.period-card dt { color: var(--muted); }
.period-card dd { margin: 0; font-weight: 650; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 8px; }
.stock-card { align-self: start; }
.stock-card.slim { margin-top: 0; }
.rank-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.rank-list li { display: flex; gap: 12px; align-items: flex-start; }
.rank {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #f6eee4;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}
.rank-list small { display: block; color: var(--muted); }
.bar { display: block; height: 8px; background: #f3ebe3; border-radius: 99px; margin-top: 6px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.bar-rose > span { background: var(--rose); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.form-grid { display: grid; gap: 12px; width: 100%; }
.edit-sheet {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  width: 100%;
}
.edit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.edit-fields .span-2 { grid-column: 1 / -1; }
.photo-card { display: grid; gap: 12px; }
.photo-card.person { justify-items: start; }
.photo-card.person img, .photo-card.person .photo-empty {
  width: 120px;
  height: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: 2.4rem;
  font-weight: 700;
}
.photo-card img, .photo-empty {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  object-fit: cover;
  background: #f3e9db;
}
.photo-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.product-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
  vertical-align: middle;
  margin-right: 8px;
}
.pos-tile img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 4px;
}
@media (max-width: 800px) {
  .edit-sheet, .edit-fields, .password-sheet { grid-template-columns: 1fr; }
  .edit-fields .span-2 { grid-column: auto; }
  .photo-card img, .photo-empty { aspect-ratio: 16 / 7; }
}
.inline-form { max-width: none; }
.category-note span { display: inline-block; margin-right: 12px; }
.alert { padding: 12px 14px; border-radius: 14px; }
.alert-ok { background: #e7f6ee; color: #1d5a3a; }
.alert-danger { background: #fdecee; color: #8a2430; }
.badge { border-radius: 999px; padding: 4px 10px; font-size: 0.8rem; }
.badge-ok { background: #e7f6ee; color: #1d5a3a; }
.badge-wait { background: #fff1df; color: #8a4b12; }
.sql {
  white-space: pre-wrap;
  background: var(--espresso);
  color: #f6efe6;
  padding: 14px;
  border-radius: 14px;
  overflow: auto;
  max-height: 280px;
}
.code { font-family: Consolas, monospace; background: #f6eee4; padding: 8px 10px; border-radius: 10px; }
.preview { width: 72px; height: 72px; object-fit: contain; background: white; border-radius: 12px; }
.preview.tiny { width: 32px; height: 32px; }

.login-body {
  min-height: 100vh;
  background: var(--paper);
  font-family: var(--font-sans);
}
.login-body > .login-panel { min-height: 100vh; }
.login-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.login-brand {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  padding: 44px 56px 30px;
  color: #f6efe4;
  background:
    radial-gradient(640px 520px at 92% -8%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
    radial-gradient(520px 420px at -12% 112%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 72%),
    var(--espresso);
}
.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23f2d2a9' stroke-width='1.2'%3E%3Crect x='26' y='26' width='36' height='36'/%3E%3Crect x='26' y='26' width='36' height='36' transform='rotate(45 44 44)'/%3E%3Cpath d='M44 0V18.5M44 88V69.5M0 44H18.5M88 44H69.5M0 0L26 26M88 0L62 26M0 88L26 62M88 88L62 62'/%3E%3Ccircle cx='44' cy='44' r='5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 78% 34%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 75% at 78% 34%, #000 0%, transparent 72%);
}
.login-brand-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.login-brand-top strong { display: block; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.login-brand-top small { color: #b6a493; font-size: 0.85rem; }
.login-brand .login-logo { width: 52px; height: 52px; border-radius: 16px; }
.login-brand-copy { position: relative; z-index: 1; display: grid; gap: 16px; max-width: 480px; }
.login-welcome { font-size: 2rem; line-height: 1.8; color: #f2d2a9; text-align: left; }
.login-brand h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 4.4vw, 4.4rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.035em;
  max-width: 11ch;
}
.login-lede { max-width: 40ch; font-size: 1.05rem; line-height: 1.6; color: #d8cbbd; }
.login-features { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; max-width: 440px; }
.login-features li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(234, 223, 210, 0.1);
}
.lf-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: color-mix(in srgb, var(--accent) 60%, #fff6ea);
}
.lf-text strong { display: block; font-weight: 600; color: #fff6ea; }
.lf-text span { display: block; font-size: 0.86rem; color: #b6a493; }
.lf-ur { font-size: 0.95rem; color: #c9b8a6; }
.login-art { position: absolute; right: 52px; top: 50%; z-index: 0; width: 230px; transform: translateY(-44%); }
.art-slip {
  display: grid;
  gap: 9px;
  padding: 22px 20px 18px;
  border-radius: 10px;
  background: #fffbf4;
  transform: rotate(5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 2px 0 rgba(0, 0, 0, 0.08);
}
.art-mark { justify-self: center; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--font-serif); font-weight: 700; }
.art-bar { display: block; height: 8px; border-radius: 99px; background: #e9dfd1; justify-self: center; }
.art-bar.thin { height: 6px; background: #f0e8dc; }
.art-bar.strong { height: 12px; background: var(--accent); }
.art-bar.w20 { width: 20%; } .art-bar.w30 { width: 30%; } .art-bar.w40 { width: 40%; } .art-bar.w45 { width: 45%; }
.art-bar.w50 { width: 50%; } .art-bar.w55 { width: 55%; } .art-bar.w60 { width: 60%; }
.art-rule { display: block; margin: 4px 0; border-top: 1.5px dashed #d9c9b4; }
.art-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.art-total { font-family: var(--font-serif); font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.art-thanks { justify-self: center; margin-top: 2px; font-size: 1.1rem; color: var(--ink); }
.art-chip {
  position: absolute;
  right: -22px;
  bottom: -30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #2e2118;
  border: 1px solid rgba(234, 223, 210, 0.12);
  color: #fff6ea;
  font-size: 0.85rem;
  font-weight: 600;
  transform: rotate(-3deg);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}
.art-chip .icon { color: #9fd3b8; }
.art-chip [lang="ur"] { font-size: 0.85rem; font-weight: 400; color: #c9b8a6; }
.login-foot { position: relative; z-index: 1; color: #8f7d6e; font-size: 0.8rem; }

.login-panel {
  display: grid;
  place-items: center;
  padding: 40px 32px;
}
.login-stack { width: min(460px, 100%); display: grid; gap: 14px; }
.login-card {
  display: grid;
  gap: 18px;
  padding: 36px 34px 30px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  box-shadow: 0 1px 2px rgba(42, 29, 20, 0.04), 0 30px 70px rgba(60, 36, 12, 0.1);
}
.login-card-head { display: grid; gap: 6px; }
.login-kicker {
  margin: 0;
  color: var(--accent-ink);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.login-card h2 { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.login-card label { font-size: 0.85rem; font-weight: 600; color: #4d3d30; }
.field { display: grid; gap: 7px; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.field-row a { font-size: 0.84rem; font-weight: 600; text-decoration: none; }
.field-row a:hover { text-decoration: underline; }
.input-icon { position: relative; display: block; }
.input-icon > .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #a8968a; pointer-events: none; transition: color 0.15s ease; }
.input-icon:focus-within > .icon { color: var(--accent-ink); }
.login-card input { height: 50px; border-radius: 14px; padding: 0 14px; }
.login-card .input-icon input { padding-left: 44px; }
.password-field { position: relative; display: block; }
.password-field input { width: 100%; }
.login-card .password-field input { padding-right: 72px; }
.ghost-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.ghost-toggle:hover { color: var(--ink); background: #f3e9db; }
.login-submit { width: 100%; height: 52px; font-size: 1rem; gap: 6px; }
.login-card .btn-google {
  height: 50px;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  background: #fff;
  border: 1px solid #e3d6c5;
}
.login-card .btn-google:hover { background: #faf4ec; }
.login-help { text-align: center; color: var(--muted); font-size: 0.86rem; }
.divider { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; color: var(--muted); font-size: 0.82rem; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); }
.plain-error { display: grid; place-items: center; padding: 40px; }

@media (max-width: 1180px) {
  .kpi-grid, .kpi-grid.three { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .period-grid, .two-col, .login-split, .app-shell { grid-template-columns: 1fr; }
  .app-shell, .sidebar, .workspace { min-width: 0; }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: auto;
    max-height: none;
    overflow: visible;
    align-self: stretch;
    padding: 12px 12px 10px;
    gap: 10px;
    max-width: 100%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  }
  .sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
    overflow: visible;
    gap: 6px;
  }
  .nav-group { position: relative; }
  .nav-group .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 40;
    min-width: 230px;
    padding: 8px;
    background: #261b14;
    border: 1px solid rgba(234, 223, 210, 0.1);
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(0,0,0,0.35);
  }
  .nav-group[open] .nav-links { display: grid; }
  .nav-group summary { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.06); color: #eadfd2; }
  .sidebar a { white-space: nowrap; flex: none; padding: 8px 12px; }
  .sidebar nav { overflow: visible; flex: none; }
  .side-stall { display: none; }
  .page { padding-left: 16px; padding-right: 16px; }
  .topbar { flex-direction: column; align-items: stretch; padding: 18px 16px 4px; }
  .topbar h1 { font-size: 1.6rem; }
  .topbar .topbar-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

.forgot-link { color: var(--muted); font-size: 0.88rem; text-align: center; }
.sale-meta, .sale-line { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.sale-line { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.sale-line strong { font-size: 0.92rem; }
.finder-results { display: grid; gap: 6px; margin-top: 8px; }
.finder-results button {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
}
.finder-results button:hover { background: #f3e9db; }
.bill-list { display: grid; gap: 14px; }
.bill-card.is-void { opacity: 0.62; }
.bill-actions, .bill-total { display: flex; gap: 8px; align-items: center; }
.bill-total { margin-top: 8px; font-weight: 650; }
.badge-low { background: #fdecee; color: #8a2430; }
tr.is-low { background: #fff7f7; }
.day-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.day-facts div { background: #fff; border-radius: 16px; padding: 12px 14px; }
.day-facts dt { color: var(--muted); font-size: 0.82rem; }
.day-facts dd { margin: 4px 0 0; font-weight: 650; }
.receipt-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.receipt-head img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: #fff; }
.receipt table { margin-top: 12px; }
@media (max-width: 800px) {
  .sale-meta, .sale-line, .day-facts { grid-template-columns: 1fr 1fr; }
}
.report-scroll {
  max-height: 340px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 6px;
  scrollbar-gutter: stable;
}
.report-scroll thead th {
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: end;
  flex: 1 1 480px;
}
.filter-bar label { min-width: 140px; font-size: 0.82rem; }
.filter-bar label.grow { flex: 1 1 220px; min-width: 200px; }
.filter-bar .btn { margin-bottom: 1px; }

.panel-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.panel-bar p { max-width: 62ch; line-height: 1.5; }
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.fact {
  background: var(--card);
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.fact span { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.fact strong { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; letter-spacing: -0.03em; word-break: break-word; }
.identity {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  background: var(--card);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(36, 28, 22, 0.05);
}
.identity img, .identity .mark { width: 72px; height: 72px; }
.swatch {
  width: 28px;
  height: 28px;
  flex: none;
  display: inline-block;
  border-radius: 999px;
  border: 2px solid white;
  box-shadow: 0 0 0 1px rgba(36, 28, 22, 0.12);
}
.board { width: 100%; padding: 8px 8px 4px; }
.board table { min-width: 640px; }
.board th, .board td { padding: 14px 12px; }
.board tbody tr:hover { background: #fbf3e8; }
.role-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3e9db;
  font-size: 0.82rem;
  text-transform: capitalize;
}
.role-owner { background: #f8e2cf; color: #8a4b12; }
.role-staff { background: #e7f6ee; color: #1d5a3a; }
.role-super { background: #e1e3f4; color: #3d4d86; }
.role-cashier { background: #fbe3e5; color: #8a2f3a; }
dialog.modal {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  border: 0;
  padding: 0;
  border-radius: 28px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(22, 19, 17, 0.28);
}
dialog.modal::backdrop {
  background: rgba(22, 19, 17, 0.48);
  backdrop-filter: blur(3px);
}
.modal-form { display: grid; gap: 14px; padding: 26px 26px 22px; max-width: none; }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.icon-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3e9db;
  color: var(--ink);
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.icon-close:hover { background: #efe2d4; }
@media (max-width: 980px) {
  .fact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .fact-grid, .identity { grid-template-columns: 1fr; }
}

.pos-body {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(196, 107, 45, 0.18), transparent 55%),
    #efe8dc;
}
.pos-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--espresso);
  color: #f6efe6;
}
.pos-kicker {
  margin: 0;
  color: #e7c7a8;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pos-top strong { font-size: 1.15rem; letter-spacing: -0.03em; }
.pos-date { margin: 0; color: #d9cbbf; }
.pos-top-actions { display: flex; align-items: center; gap: 10px; }
.pos-top .btn-ghost { color: #f6efe6; border-color: rgba(255, 255, 255, 0.16); background: transparent; }
.pos-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 18px;
  height: calc(100vh - 150px);
  min-height: 520px;
}
.pos-catalog, .pos-ticket { min-height: 0; }
.pos-catalog { display: flex; flex-direction: column; gap: 14px; overflow: auto; padding: 2px 4px 4px 2px; }
.pos-search input {
  min-height: 56px;
  padding: 14px 18px 14px 50px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236e5a49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM21 21l-4.3-4.3'/%3E%3C/svg%3E") no-repeat 18px center;
  font-size: 1.05rem;
}
.pos-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pos-chips button {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.pos-chips button:hover { border-color: #dccab4; }
.pos-chips button.is-on { background: var(--espresso); border-color: var(--espresso); color: #fff6ea; }
.pos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  align-content: start;
}
.pos-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 10px 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--card);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.pos-tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, #eadfcf); box-shadow: 0 12px 26px rgba(60, 36, 12, 0.1); }
.pos-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pos-tile img, .pos-plate {
  width: 100%;
  height: 92px;
  margin-bottom: 6px;
  border-radius: 14px;
  object-fit: cover;
}
.pos-plate { display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; }
.pos-tile strong { padding: 0 4px; font-size: 0.98rem; letter-spacing: -0.01em; }
.pos-tile small { padding: 0 4px; color: var(--muted); font-size: 0.78rem; }
.pos-tile-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; padding: 6px 4px 0; }
.pos-tile-foot span { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.pos-tile-foot em { font-style: normal; font-size: 0.74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #efe5d7; color: #5a4636; white-space: nowrap; }
.pos-tile-foot em.is-low { background: #f8e3de; color: #9b2c2c; }
.pos-tile.is-out { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.pos-ticket {
  background: var(--espresso);
  color: #f6efe4;
  border-radius: 26px;
  overflow: auto;
  box-shadow: 0 24px 48px rgba(27, 19, 14, 0.22);
}
.pos-form { display: flex; flex-direction: column; gap: 14px; min-height: 100%; padding: 22px; }
.pos-ticket-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid rgba(234, 223, 210, 0.12); }
.pos-ticket-head h2 { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; }
.pos-ticket-head h2 [lang="ur"] { font-size: 0.95rem; font-weight: 400; color: #c9b8a6; }
.pos-ticket .muted { color: #b6a493; }
.pos-ticket .btn-ghost { color: #f6efe4; border-color: rgba(246, 239, 228, 0.25); }
.pos-ticket .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.pos-ticket label { color: #c9b8a6; font-size: 0.8rem; }
.pos-ticket input { background: #2a1d14; border-color: rgba(234, 223, 210, 0.16); color: #fff6ea; }
.pos-ticket input::placeholder { color: #8f7d6e; }
.pos-ticket input[readonly] { background: transparent; border-color: transparent; padding-left: 0; color: #eadfd2; box-shadow: none; }
.ticket-lines { display: grid; gap: 12px; }
.ticket-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(234, 223, 210, 0.1);
}
.ticket-line strong { display: block; }
.ticket-line small { color: #b6a493; }
.ticket-line label { font-size: 0.75rem; }
.pos-stepper { display: flex; align-items: center; gap: 6px; }
.pos-stepper button, .ticket-remove {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #2e2118;
  color: #f6efe4;
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}
.pos-stepper button:hover { background: #3a2a1f; }
.ticket-remove { width: auto; padding: 0 10px; grid-column: 2; justify-self: end; background: transparent; color: #e8a99b; font-size: 0.82rem; }
.ticket-remove:hover { background: rgba(232, 169, 155, 0.12); }
.pos-stepper input { width: 70px; text-align: center; }
.pos-empty, .pos-note { margin: 0; color: #b6a493; }
.pos-empty { padding: 26px 0; text-align: center; }
.pos-note { color: #f2b872; }
.pos-note:empty { display: none; }
.pay-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.pay-toggle button {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(234, 223, 210, 0.16);
  border-radius: 14px;
  background: transparent;
  color: #eadfd2;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.pay-toggle button [lang="ur"] { font-size: 0.85rem; font-weight: 400; color: inherit; opacity: 0.85; line-height: 1.6; }
.pay-toggle button.is-on { background: #f6efe4; border-color: #f6efe4; color: var(--espresso); }
#pos-customer:not([hidden]) { display: grid; gap: 10px; }
.pos-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(234, 223, 210, 0.12); }
.pos-total > span { display: flex; align-items: baseline; gap: 8px; color: #c9b8a6; font-weight: 600; }
.pos-total strong { font-family: var(--font-serif); font-size: 2.3rem; font-weight: 600; letter-spacing: -0.03em; color: color-mix(in srgb, var(--accent) 55%, #fff6ea); }
.pos-charge { width: 100%; min-height: 58px; border-radius: 16px; font-size: 1.1rem; }
.pos-charge:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
@media (max-width: 900px) {
  .pos-stage { grid-template-columns: 1fr; height: auto; }
  .pos-catalog { overflow: visible; }
  .pos-ticket { min-height: 60vh; }
}

@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .app-shell, .workspace, .page { display: block; padding: 0; background: white; }
  body { background: white; }
  .soft-card { box-shadow: none; }
}

.demo-accounts { display: grid; gap: 10px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.demo-account {
  display: grid;
  gap: 6px;
  justify-items: start;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #eadfcf;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.demo-account:hover, .demo-account:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, #fff);
  background: #fffaf3;
}
.demo-account.is-picked {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.demo-account .role-pill { font-size: 0.72rem; }
.demo-cred { display: grid; gap: 1px; min-width: 0; font-size: 0.8rem; }
.demo-cred span { overflow-wrap: anywhere; }
.demo-note { margin: 0; color: var(--muted); font-size: 0.78rem; text-align: center; }
@media (max-width: 1360px) {
  .login-art { display: none; }
}
@media (max-width: 980px) {
  .login-brand { padding: 24px 22px 30px; gap: 16px; }
  .login-welcome { font-size: 1.5rem; }
  .login-brand h1 { font-size: 2.3rem; max-width: none; }
  .login-lede { font-size: 0.98rem; }
  .login-features, .login-foot { display: none; }
  .login-panel { place-items: start center; padding: 22px 16px 32px; }
  .login-card { padding: 26px 20px 22px; border-radius: 24px; }
}
@media (max-width: 420px) {
  .demo-grid { grid-template-columns: 1fr; }
}
.demo-admin { display: grid; gap: 14px; }
.demo-admin .panel-bar p { margin: 6px 0 0; }
.demo-admin .form-actions { align-items: center; }
.demo-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.demo-fields h3 { grid-column: 1 / -1; margin: 0; font-size: 0.92rem; }
@media (max-width: 640px) {
  .demo-fields { grid-template-columns: 1fr; }
}

/* Platform pages: shared pieces */
.icon { flex: none; }
.pf-nav {
  display: flex;
  gap: 4px;
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--card);
  border: 1px solid rgba(36, 28, 22, 0.06);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(60, 36, 12, 0.06);
}
.pf-nav::-webkit-scrollbar { display: none; }
.pf-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.pf-nav a:hover { background: #f3e9db; color: var(--ink); }
.pf-nav a.is-active {
  background: color-mix(in srgb, var(--accent) 13%, #fff);
  color: color-mix(in srgb, var(--accent) 78%, #000);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent);
}
.pf-nav a:focus-visible, .tab-list [role="tab"]:focus-visible, .seg a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tabs { display: grid; gap: 16px; }
.tab-list, .seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  background: #efe7dd;
  border-radius: 14px;
}
.tab-list::-webkit-scrollbar, .seg::-webkit-scrollbar { display: none; }
.tab-list [role="tab"], .seg a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.tab-list [role="tab"]:hover, .seg a:hover { color: var(--ink); }
.tab-list [role="tab"][aria-selected="true"], .seg a.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(36, 28, 22, 0.08), 0 4px 12px rgba(60, 36, 12, 0.06);
}
.tab-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(36, 28, 22, 0.07);
  font-size: 0.75rem;
  text-align: center;
}
[aria-selected="true"] .tab-count, .seg a.is-active .tab-count {
  background: color-mix(in srgb, var(--accent) 16%, #fff);
  color: color-mix(in srgb, var(--accent) 78%, #000);
}
.tab-panel { display: grid; gap: 16px; animation: tab-in 0.18s ease; }
.tab-panel[hidden] { display: none; }
@keyframes tab-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tab-panel { animation: none; } }

.pf-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(36, 28, 22, 0.05);
  box-shadow: var(--shadow);
}
.pf-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.pf-card-head h2 { font-size: 1.1rem; }
.pf-card-head p { margin-top: 4px; color: var(--muted); line-height: 1.5; max-width: 62ch; }
.pf-card-head .form-actions { align-items: center; }

.pf-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(36, 28, 22, 0.05);
  box-shadow: var(--shadow);
}
.pf-hero h2 { font-size: 1.15rem; }
.pf-hero p { margin-top: 4px; color: var(--muted); line-height: 1.5; }
.pf-hero .form-actions { align-items: center; justify-content: flex-end; }
.pf-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: none;
  background: #f3ece3;
  color: var(--muted);
}
.is-ok .pf-icon, .pf-icon.is-ok { background: #dff1e7; color: #1d5a3a; }
.is-warn .pf-icon, .pf-icon.is-warn { background: #fde9d6; color: #8a4b12; }
.is-info .pf-icon, .pf-icon.is-info { background: #e3eaf6; color: #2d4a6b; }

.pf-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-toolbar form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex: 1 1 320px; justify-content: flex-end; }
.search-field { position: relative; flex: 1 1 220px; max-width: 340px; }
.search-field .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input { padding-left: 38px; min-height: 42px; }
.pf-toolbar select { width: auto; min-height: 42px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-ok { background: #e7f6ee; color: #1d5a3a; }
.status-off { background: #f1ece6; color: #6f6256; }
.status-warn { background: #fff1df; color: #8a4b12; }
.status-bad { background: #fdecee; color: #8a2430; }

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff5e8;
  color: #7a4512;
  font-size: 0.9rem;
  line-height: 1.5;
}
.callout.is-info { background: #eef3fa; color: #2d4a6b; }
.callout.is-ok { background: #e9f6ef; color: #1d5a3a; }

.kv { display: grid; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.kv div:first-child { border-top: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; line-height: 1.55; }
.steps li::before {
  content: counter(step);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 13%, #fff);
  color: color-mix(in srgb, var(--accent) 78%, #000);
  font-weight: 700;
  font-size: 0.85rem;
}
.steps strong { color: var(--ink); }
.steps code, .kv code, .mono {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.85em;
  padding: 1px 6px;
  border-radius: 6px;
  background: #f3ece3;
}

.copy-field { display: flex; gap: 8px; }
.copy-field input { flex: 1; min-width: 0; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.85rem; background: #faf6f1; }
.copy-field .btn { flex: none; gap: 6px; }

.pf-split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-grid .span-2 { grid-column: 1 / -1; }
.hint { color: var(--muted); font-size: 0.8rem; font-weight: 400; line-height: 1.45; }
.color-field { display: flex; gap: 10px; align-items: center; }
.color-field input[type="color"] { width: 52px; height: 44px; padding: 4px; flex: none; cursor: pointer; }
.upload-field { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.upload-field .preview, .upload-field .upload-empty {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px dashed rgba(36, 28, 22, 0.18);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #faf6f1;
}

.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.switch input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 46px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d9cfc4;
  cursor: pointer;
  transition: background 0.2s ease;
}
.switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
}
.switch input:checked { background: var(--sage); }
.switch input:checked::after { transform: translateX(20px); }
.switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.empty-state { display: grid; justify-items: center; gap: 10px; padding: 36px 20px; text-align: center; color: var(--muted); }
.empty-state h3 { margin: 0; color: var(--ink); font-size: 1rem; }

/* Stalls */
.stall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.stall-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 20px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(36, 28, 22, 0.05);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stall-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(60, 36, 12, 0.12); }
.stall-card.is-current { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.stall-card.is-off { opacity: 0.78; }
.stall-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.stall-top h3 { margin: 0; font-size: 1.05rem; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.stall-top small { color: var(--muted); }
.stall-mark {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 15%, #fff);
  color: color-mix(in srgb, var(--accent) 78%, #000);
  font-weight: 700;
  font-size: 1.15rem;
}
.stall-mark img { width: 100%; height: 100%; object-fit: cover; }
.stall-meta { display: grid; gap: 7px; color: var(--muted); font-size: 0.86rem; }
.stall-meta span { display: flex; gap: 8px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.mini-stats div { padding: 10px 12px; border-radius: 14px; background: #f8f3ec; }
.mini-stats dt { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; }
.mini-stats dd { margin: 3px 0 0; font-weight: 650; font-size: 1rem; letter-spacing: -0.02em; }
.stall-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}
.stall-foot .btn { min-height: 38px; padding: 8px 14px; }

/* People */
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person .avatar { width: 38px; height: 38px; font-size: 0.9rem; box-shadow: none; }
.person strong { display: block; }
.person small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.board td { vertical-align: middle; }
.row-action { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 0.86rem; }
.row-action:hover { background: #f3e9db; }
.matrix th:not(:first-child), .matrix td:not(:first-child) { text-align: center; }
.matrix td:first-child { font-weight: 600; }
.matrix .yes { color: #1d5a3a; }
.matrix .no { color: #c9bcae; }
.matrix th .role-pill { font-size: 0.74rem; letter-spacing: 0; text-transform: none; }
.role-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.role-card { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 18px; background: #faf6f1; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.role-card .role-pill { justify-self: start; }
.role-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.role-choice {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 14px 14px 14px 44px;
  border-radius: 16px;
  border: 1px solid rgba(36, 28, 22, 0.1);
  background: #fff;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.role-choice input { position: absolute; left: 15px; top: 16px; width: 18px; height: 18px; accent-color: var(--accent); }
.role-choice strong { color: var(--ink); font-size: 0.95rem; font-weight: 650; }
.role-choice:has(input:checked) {
  border-color: var(--accent);
  background: #fffaf5;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

/* Site settings */
.brand-preview {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 260px;
  padding: 24px;
  border-radius: 22px;
  color: #f7f1ea;
  background:
    radial-gradient(300px 240px at 95% -10%, color-mix(in srgb, var(--pv, var(--accent)) 75%, white), transparent 70%),
    radial-gradient(260px 200px at -10% 110%, color-mix(in srgb, var(--pv, var(--accent)) 45%, #1a1613), transparent 72%),
    #161311;
}
.bp-top { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.bp-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--pv, var(--accent));
  color: #fff;
  font-weight: 700;
}
.bp-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bp-tag { color: color-mix(in srgb, var(--pv, var(--accent)) 70%, white); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650; }
.bp-title { font-family: var(--font-serif); font-size: 1.7rem; line-height: 1; letter-spacing: -0.04em; font-weight: 650; }
.bp-text { color: #e7d9cc; font-size: 0.88rem; line-height: 1.5; }
.bp-button { justify-self: start; padding: 8px 18px; border-radius: 999px; background: var(--pv, var(--accent)); color: #fff; font-size: 0.85rem; font-weight: 650; }
.demo-rows { display: grid; gap: 10px; }
.demo-row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) minmax(0, 0.8fr) 11rem;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #faf6f1;
}
.demo-row label { font-size: 0.78rem; color: var(--muted); }
.demo-row .role-pill { justify-self: start; }

/* Migrations */
.mig-list { display: grid; gap: 10px; }
.mig {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(36, 28, 22, 0.06);
  box-shadow: 0 6px 16px rgba(60, 36, 12, 0.05);
}
.mig-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f3ece3;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-weight: 700;
  font-size: 0.85rem;
}
.mig strong { display: block; overflow-wrap: anywhere; }
.mig small { color: var(--muted); }
.mig details { grid-column: 1 / -1; }
.mig summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; width: fit-content; }
.mig pre.sql { margin: 10px 0 0; padding: 14px; border-radius: 14px; overflow-x: auto; max-height: 320px; }
.confirm-run { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.confirm-run input { width: 150px; min-height: 42px; text-transform: uppercase; letter-spacing: 0.08em; }

/* Database */
.size-cell { min-width: 140px; }
.size-cell .bar { margin-top: 6px; height: 6px; }
.download-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }

@media (max-width: 1180px) {
  .role-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .pf-split { grid-template-columns: 1fr; }
  .demo-row { grid-template-columns: 1fr 1fr; }
  .demo-row > :first-child, .demo-row > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .pf-hero { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .pf-hero > .form-actions, .pf-hero > form, .pf-hero > .confirm-run { grid-column: 1 / -1; justify-content: flex-start; }
  .pf-card { padding: 18px; }
  .field-grid, .role-choices, .role-cards { grid-template-columns: 1fr; }
  .search-field { max-width: none; }
  .pf-toolbar form { justify-content: stretch; }
  .demo-row { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: 1fr; }
  .mig { grid-template-columns: auto minmax(0, 1fr); }
  .mig > .status { grid-column: 2; justify-self: start; }
}

.btn { gap: 6px; }
.tabs-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.demo-row .status { justify-self: start; }
.fact .status { font-size: 0.8rem; letter-spacing: 0; text-transform: none; }
.fact .status-ok { color: #1d5a3a; }
.fact .status-warn { color: #8a4b12; }
.tabs > *, .tab-panel > *, .pf-toolbar > * { min-width: 0; }
.table-wrap { position: relative; }
.role-pill { white-space: nowrap; }

/* Heritage headings: serif section titles */
.card-head h2, .pf-card-head h2, .pf-hero h2, .modal-head h2, .empty-state h3, .stall-top h3 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.015em; }
.card-head h2, .pf-card-head h2 { font-size: 1.3rem; }
.pf-hero h2, .modal-head h2 { font-size: 1.35rem; }
th { font-size: 0.72rem; letter-spacing: 0.08em; font-weight: 600; }

/* Dashboard (Saffron Heritage) */
.dash-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 30px 32px;
  border-radius: 28px;
  background: var(--espresso-2);
  color: #f6efe4;
}
.dash-hero-copy { flex: 1 1 320px; min-width: 0; }
.dash-greet { font-size: 1.55rem; color: #f2d2a9; text-align: left; }
.dash-hero h2 { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.dash-sub { margin-top: 6px; color: #c9b8a6; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-ghost-light { background: transparent; color: #f6efe4; border: 1px solid rgba(246, 239, 228, 0.3); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.08); }
.dash-takings {
  flex: 0 1 360px;
  min-width: 260px;
  display: grid;
  gap: 8px;
  padding: 22px 26px;
  border-radius: 22px;
  background: #33241a;
}
.dash-takings-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #c9b8a6; }
.dash-takings-head [lang="ur"] { font-size: 0.85rem; font-weight: 400; }
.dash-takings-figure { font-family: var(--font-serif); font-size: clamp(2.5rem, 4vw, 3.3rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; color: color-mix(in srgb, var(--accent) 55%, #fff6ea); }
.split-bar { display: flex; gap: 3px; height: 8px; margin-top: 4px; }
.split-bar span { border-radius: 999px; }
.split-cash { background: var(--accent); }
.split-credit { background: #9fd3b8; }
.dash-takings-split { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 0.88rem; color: #eadfd2; }
.dash-takings-profit { font-size: 0.88rem; color: #9fd3b8; }

.dash-row { display: flex; flex-wrap: wrap; gap: 18px; }
.dash-card { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; }
.dash-wide { flex: 2 1 520px; }
.dash-card .card-head { margin-bottom: 0; align-items: flex-start; }
.dash-card .card-head .urdu { margin: 0; line-height: 1.9; }
.dash-card .card-head a { font-weight: 600; text-decoration: none; }
.dash-total { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; color: var(--accent-ink); }

.tile-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.product-tile { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 20px; background: #fff; border: 1px solid #efe5d7; }
.product-tile strong { display: block; }
.product-tile small { display: block; color: var(--muted); font-size: 0.78rem; }
.tile-plate {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  display: grid;
  place-items: center;
  object-fit: cover;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
}
.plate-0 { background: #f3d5a6; color: #6b3609; }
.plate-1 { background: #d3e2d2; color: #1f5c4a; }
.plate-2 { background: #e7c9b5; color: #6a2f17; }
.plate-3 { background: #ddd5ea; color: #3f3168; }
.tile-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; font-size: 0.88rem; }
.tile-foot span { color: var(--muted); }

.ledger { margin: 0; display: grid; gap: 12px; }
.ledger div { display: flex; align-items: baseline; gap: 8px; }
.ledger span { flex: 1; border-bottom: 1px dotted #cdb9a3; }
.ledger dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ledger .ledger-total { padding-top: 12px; border-top: 3px double #cdb9a3; }
.ledger-total dt { font-weight: 700; }
.ledger-total span { border: 0; }
.ledger-total dd { font-family: var(--font-serif); font-size: 1.25rem; }
.dash-note { margin-top: auto; padding: 12px 14px; border-radius: 14px; background: #f6ebdc; color: #5a4636; font-size: 0.88rem; line-height: 1.5; }
.dash-note .is-down { color: var(--rose); }
.dash-note .is-up { color: var(--sage); }

.people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.people-list li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid #efe5d7; }
.people-list li > div { flex: 1; min-width: 0; }
.people-list li > div strong { display: block; }
.people-list small { color: var(--muted); font-size: 0.8rem; }
.people-list .avatar { width: 40px; height: 40px; font-size: 0.9rem; background: #f3d5a6; color: #6b3609; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 0.84rem; }

.stock-list { list-style: none; margin: 0; padding: 0; }
.stock-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #efe5d7; }
.stock-list li:first-child { border-top: 0; }
.stock-list small { color: var(--muted); font-size: 0.8rem; }
.left-pill { flex: none; font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.left-1 { background: #f8e3de; color: #9b2c2c; }
.left-2 { background: #f6e6cf; color: #8e4a0f; }

@media (max-width: 760px) {
  .dash-hero { padding: 22px 20px; border-radius: 22px; }
  .dash-hero h2 { font-size: 1.6rem; }
  .dash-takings { flex: 1 1 100%; min-width: 0; }
  .dash-card { padding: 18px; }
  .people-list li { flex-wrap: wrap; }
}

@media (max-width: 980px) {
  .sidebar-user { display: none; }
  .sidebar .brand small { display: none; }
}
@media (max-width: 640px) {
  .pos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pos-tile img, .pos-plate { height: 72px; }
  .pos-plate { font-size: 1.35rem; }
}

/* Books pages (Saffron Heritage): sales log, udhaar, expenses, day sheet, reports, receipt */
.book-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 28px;
  padding: 26px 30px;
  border-radius: 26px;
  background: var(--espresso-2);
  color: #f6efe4;
}
.book-hero-copy { flex: 1 1 300px; min-width: 0; display: grid; gap: 4px; }
.book-hero-ur { font-size: 1.25rem; color: #f2d2a9; text-align: left; }
.book-hero h2 { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.book-hero-sub { color: #c9b8a6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.book-figure { display: grid; gap: 4px; justify-items: end; text-align: right; }
.book-figure small { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #c9b8a6; }
.book-figure strong { font-family: var(--font-serif); font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; color: color-mix(in srgb, var(--accent) 55%, #fff6ea); }
.book-figure span { font-size: 0.88rem; color: #eadfd2; }
.book-figure .is-clear { color: #9fd3b8; }
.back-link { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-weight: 600; text-decoration: none; }

.day-group { display: grid; gap: 12px; }
.day-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; padding: 4px 2px 8px; border-bottom: 1px solid var(--line-strong); }
.day-head h3 { margin: 0; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.day-head span { color: var(--muted); font-size: 0.9rem; }
.day-head strong { color: var(--ink); }
.bill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.bill-ticket { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-strong); }
.bill-ticket.is-void { opacity: 0.62; }
.bill-ticket.is-void .bill-sum strong { text-decoration: line-through; }
.bill-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bill-top h3 { margin: 0; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; }
.bill-top small { display: block; color: var(--muted); font-size: 0.8rem; }
.pay-pill { flex: none; font-size: 0.76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pay-cash { background: #efe5d7; color: #5a4636; }
.pay-credit { background: #f6e6cf; color: #8e4a0f; }
.pay-void { background: #f8e3de; color: #9b2c2c; }
.bill-items { list-style: none; margin: 0; padding: 10px 0; display: grid; gap: 7px; border-top: 1px dashed #dccab4; border-bottom: 1px dashed #dccab4; }
.bill-items li { display: flex; justify-content: space-between; gap: 10px; font-size: 0.9rem; }
.bill-items li > span:first-child { min-width: 0; }
.bill-items small { color: var(--muted); }
.bill-items li.is-void { color: var(--muted); text-decoration: line-through; }
.bill-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bill-sum strong { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; }
.bill-sum span { color: var(--sage); font-size: 0.84rem; font-weight: 600; }
.bill-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: auto; }
.bill-tools form { display: contents; }

.khata-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.khata-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(140px, 220px) minmax(90px, auto) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line-strong);
}
.khata-row .avatar { width: 44px; height: 44px; background: #f3d5a6; color: #6b3609; }
.khata-row.is-clear .avatar { background: #d3e2d2; color: #1f5c4a; }
.khata-who strong { display: block; }
.khata-who small { display: block; color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; }
.khata-progress small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.76rem; }
.khata-progress .bar { margin-top: 0; height: 6px; }
.khata-progress .bar > span { background: var(--sage); }
.khata-due { text-align: right; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; white-space: nowrap; }
.khata-due.is-owing { color: var(--rose); }
.khata-due.is-clear { font-family: var(--font-sans); font-size: 0.86rem; color: var(--sage); }

.statement { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.statement th, .statement td { padding: 12px 10px; border-bottom: 1px dashed #e3d6c5; vertical-align: middle; }
.statement .num { text-align: right; white-space: nowrap; }
.statement .debit { color: var(--rose); }
.statement .credit { color: var(--sage); }
.statement small { display: block; color: var(--muted); font-size: 0.78rem; }
.statement tr.is-void td { color: var(--muted); }
.statement tr.is-void td:nth-child(2) strong { text-decoration: line-through; }
.statement tfoot td { border-bottom: 0; border-top: 3px double #cdb9a3; font-weight: 700; }
.statement tfoot .num:last-child { font-family: var(--font-serif); font-size: 1.25rem; }

.exp-days { display: grid; gap: 18px; }
.exp-day { display: grid; }
.exp-day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 4px 2px 8px; border-bottom: 1px solid var(--line-strong); }
.exp-day-head h3 { margin: 0; font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; }
.exp-day-head span { font-weight: 700; font-variant-numeric: tabular-nums; }
.exp-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px dashed #e9dfd1; }
.exp-row small { display: block; color: var(--muted); font-size: 0.78rem; }
.exp-amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.type-pill { font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #f8e3de; color: #7a2a22; white-space: nowrap; }
.row-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.row-btn:hover { background: #f8e3de; color: var(--rose); }
.row-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bar-list li { display: grid; gap: 6px; }
.bar-list .bar-line { display: flex; justify-content: space-between; gap: 10px; font-size: 0.9rem; }
.bar-list .bar-line small { color: var(--muted); }
.bar-list .bar { margin-top: 0; height: 8px; }
.bar-list .bar.is-rose > span { background: #d98f84; }
.bar-list .bar.is-sage > span { background: #6fa78c; }

.date-stepper { display: flex; align-items: center; gap: 6px; }
.date-stepper input { width: auto; min-height: 42px; }
.date-stepper .row-btn { width: 42px; height: 42px; border: 1px solid #e3d6c5; background: #fff; color: var(--ink); }
.date-stepper .row-btn:hover { background: #f3e9db; color: var(--ink); }
.sheet { display: grid; gap: 22px; padding: 30px; border-radius: 26px; background: var(--card); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 16px; border-bottom: 3px double #cdb9a3; }
.sheet-head h2 { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.sheet-head .urdu-title { font-size: 1.35rem; color: var(--accent-ink); }
.sheet-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.sheet-figures div { padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid #efe5d7; }
.sheet-figures dt { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.sheet-figures dd { margin: 4px 0 0; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; }
.sheet-figures dd.is-down { color: var(--rose); }
.sheet-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.sheet h3 { margin: 0 0 10px; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; }
.sheet table { font-variant-numeric: tabular-nums; }
.ledger .op { flex: none; width: 1.2em; border: 0; color: var(--muted); font-weight: 700; }
.sign-line { display: flex; gap: 32px; padding-top: 30px; color: var(--muted); font-size: 0.85rem; }
.sign-line span { flex: 1; padding-top: 6px; border-top: 1px solid #cdb9a3; }

.range-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.range-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.range-form input { width: auto; min-height: 42px; }
.export-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.export-row > span { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

.slip-wrap { display: grid; justify-items: center; gap: 16px; }
.slip { position: relative; width: min(100%, 380px); padding: 28px 24px; background: #fffdf8; border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 18px 40px rgba(60, 36, 12, 0.12); font-variant-numeric: tabular-nums; }
.slip-head { display: grid; justify-items: center; gap: 4px; padding-bottom: 14px; text-align: center; border-bottom: 1px dashed #cdb9a3; }
.slip-head img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; }
.slip-head .mark { width: 52px; height: 52px; }
.slip-head h2 { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; }
.slip-head p { color: var(--muted); font-size: 0.82rem; }
.slip-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 12px 0; font-size: 0.84rem; border-bottom: 1px dashed #cdb9a3; }
.slip-meta span:nth-child(even) { text-align: right; }
.slip-meta strong { font-weight: 600; }
.slip-items { list-style: none; margin: 0; padding: 12px 0; display: grid; gap: 10px; border-bottom: 1px dashed #cdb9a3; }
.slip-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
.slip-items small { grid-column: 1; color: var(--muted); font-size: 0.78rem; }
.slip-items li > strong:last-of-type { grid-row: 1; grid-column: 2; }
.slip-items li.is-void { color: var(--muted); text-decoration: line-through; }
.slip-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; }
.slip-total span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.slip-total strong { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; }
.slip-pay { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 12px; color: var(--muted); font-size: 0.85rem; border-bottom: 1px dashed #cdb9a3; }
.slip-note { padding-top: 12px; text-align: center; font-size: 0.85rem; }
.slip-thanks { display: grid; gap: 2px; padding-top: 14px; text-align: center; }
.slip-thanks [lang="ur"] { font-size: 1.25rem; color: var(--ink); }
.slip-thanks small { color: var(--muted); font-size: 0.78rem; }
.slip-void { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg); padding: 6px 18px; border: 3px solid #9b2c2c; border-radius: 8px; color: #9b2c2c; font-size: 1.4rem; font-weight: 800; letter-spacing: 0.2em; opacity: 0.75; }
.slip-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@media (max-width: 980px) {
  .sheet-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .book-hero { padding: 22px 20px; border-radius: 22px; }
  .book-figure { justify-items: start; text-align: left; }
  .khata-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .khata-progress, .khata-row > .btn { grid-column: 1 / -1; }
  .sheet { padding: 20px; }
  .exp-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .exp-row .type-pill { grid-column: 1 / -1; justify-self: start; }
}
@media print {
  .page { gap: 12px; }
  .sheet { box-shadow: none; border: 0; padding: 0; }
  .slip-wrap { justify-items: start; }
  .slip { width: 76mm; padding: 0; box-shadow: none; border-radius: 0; }
  .alert { display: none; }
}
.ledger dd.is-down { color: var(--rose); }
.page > .dash-card, .tab-panel > .dash-card { flex: none; }
.page > .filter-bar { flex: none; }
.pf-toolbar .date-stepper { flex: 0 1 auto; justify-content: flex-start; }
.pf-toolbar .form-actions form { flex: none; }
@media (max-width: 760px) {
  .khata-row .khata-due { grid-row: 1; grid-column: 3; }
}

/* Account help pages: shared brand panel extras */
.login-features li.is-current { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.login-features li.is-current .lf-icon { background: var(--accent); color: var(--on-accent); }
.art-mail { display: grid; gap: 10px; justify-items: center; padding: 26px 22px 20px; border-radius: 16px; background: #fffbf4; transform: rotate(-4deg); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 2px 0 rgba(0, 0, 0, 0.08); }
.art-mail-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.art-btn { margin: 6px 0 2px; padding: 9px 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.82rem; font-weight: 700; }
.art-small { font-size: 0.74rem; color: var(--muted); }
.login-back { display: inline-flex; align-items: center; justify-self: center; gap: 6px; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.login-back:hover { text-decoration: underline; }
.pw-hint { margin: -6px 0 0; min-height: 1.3em; font-size: 0.84rem; color: var(--muted); }
.pw-hint.is-ok { color: var(--sage); }
.pw-hint.is-bad { color: var(--rose); }
.art-mail + .art-chip { bottom: -50px; }
.login-lede { max-width: 34ch; }
.login-features { max-width: 420px; }

/* Stall look: feature photo, logo, favicon */
.dash-hero.has-cover {
  background:
    linear-gradient(100deg, rgba(27, 19, 14, 0.95) 0%, rgba(27, 19, 14, 0.84) 42%, rgba(27, 19, 14, 0.45) 100%),
    var(--cover) center / cover no-repeat;
}
.dash-hero.has-cover .dash-takings { background: rgba(42, 29, 20, 0.86); backdrop-filter: blur(6px); }
.side-stall.has-cover {
  min-height: 118px;
  align-content: end;
  background:
    linear-gradient(180deg, rgba(27, 19, 14, 0.15) 0%, rgba(27, 19, 14, 0.92) 78%),
    var(--cover) center / cover no-repeat;
}
.side-stall-logo { width: 34px; height: 34px; margin-bottom: 6px; border-radius: 10px; object-fit: cover; background: #fff; }

.stall-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 170px;
  padding: 26px 30px;
  border-radius: 26px;
  color: #f6efe4;
  background: var(--espresso-2);
}
.stall-banner.has-cover {
  background:
    linear-gradient(100deg, rgba(27, 19, 14, 0.94) 0%, rgba(27, 19, 14, 0.78) 45%, rgba(27, 19, 14, 0.35) 100%),
    var(--cover) center / cover no-repeat;
}
.stall-banner h2 { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; }
.stall-banner-mark {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.stall-banner-mark img { width: 100%; height: 100%; object-fit: cover; background: #fff; }

.look-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.look-tile { display: grid; gap: 12px; align-content: start; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid #efe5d7; }
.look-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
.look-meta { display: grid; gap: 6px; }
.look-meta small { color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.look-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.look-cover {
  aspect-ratio: 16 / 7;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1.5px dashed #dccab4;
  background: #faf4ec;
  color: var(--muted);
  font-size: 0.86rem;
}
.look-cover span { display: inline-flex; align-items: center; gap: 8px; }
.look-cover.has-image { border-style: solid; border-color: #efe5d7; background: var(--cover) center / cover no-repeat; }
.look-cover.has-image span { display: none; }
.look-logo { height: 120px; display: grid; place-items: center; border-radius: 14px; background: #faf6f1; }
.look-logo img { width: 96px; height: 96px; object-fit: contain; border-radius: 18px; background: #fff; }
.tab-mock { height: 120px; display: flex; align-items: flex-end; padding: 0 12px; border-radius: 14px; background: #e9dfd1; }
.tab-mock-tab { display: flex; align-items: center; gap: 8px; max-width: 90%; padding: 9px 12px; border-radius: 10px 10px 0 0; background: #fffbf4; font-size: 0.8rem; }
.tab-mock-icon {
  width: 18px;
  height: 18px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.66rem;
  font-weight: 700;
}
.tab-mock-icon img { width: 100%; height: 100%; object-fit: cover; }
.tab-mock-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-mock-x { color: var(--muted); }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn .file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-chosen { color: var(--sage); font-size: 0.78rem; overflow-wrap: anywhere; }
.upload-body { display: grid; gap: 6px; }

.stall-cover {
  position: relative;
  height: 96px;
  margin: -20px -20px 0;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(135deg, #2a1d14 0%, #4a3424 100%);
}
.stall-cover.has-image {
  background:
    linear-gradient(180deg, rgba(27, 19, 14, 0) 40%, rgba(27, 19, 14, 0.35) 100%),
    var(--cover) center / cover no-repeat;
}
.stall-edit { position: absolute; top: 10px; right: 10px; background: rgba(255, 251, 244, 0.94); color: var(--ink); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.stall-edit:hover { background: #fff; }

@media (max-width: 760px) {
  .stall-banner { grid-template-columns: auto minmax(0, 1fr); padding: 22px 20px; }
  .stall-banner > .btn { grid-column: 1 / -1; justify-self: start; }
  .look-grid, .look-wide { grid-template-columns: 1fr; }
}

/* Built-in artwork picker */
.preset-row { margin: 6px 0 0; padding: 0; border: 0; min-width: 0; grid-column: 1 / -1; }
.preset-row legend { padding: 0; margin-bottom: 6px; color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.preset-options { display: flex; flex-wrap: wrap; gap: 8px; }
.preset { position: relative; display: block; padding: 3px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease; }
.preset:hover { transform: translateY(-1px); border-color: #e3d6c5; }
.preset input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.preset img { display: block; border-radius: 9px; }
.preset-icon .preset img { width: 40px; height: 40px; }
.preset-cover .preset img { width: 112px; height: 49px; object-fit: cover; }
.preset:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.preset:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.modal-form .preset-row { margin: -4px 0 6px; }

/* Database: backups saved on the server */
.pf-stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
.save-backup { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.save-backup label { flex: 1 1 240px; min-width: 0; }
.save-backup .btn { flex: none; }
.save-last { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; }
.save-last .icon { flex: none; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.backups-table { min-width: 860px; }
.backups-table td:first-child strong, .backups-table .status, .backups-table td:nth-child(3), .backups-table .mono { white-space: nowrap; }
.backups-table td:first-child small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.8rem; }
.backups-table .mono { font-size: 0.82rem; }
.backups-table td:nth-child(5) { min-width: 160px; }
@media (max-width: 640px) {
  .save-backup .btn { width: 100%; justify-content: center; }
}
