/* PropertyOffer styles. Plain CSS, no build step.
   Sections: tokens · base · layout · components · pages · utilities.
   To rebrand, change the --brand-* tokens. */

/* ---------- Tokens ---------- */
:root {
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-200: #99f6e4;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --brand-800: #115e59;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;

  --red-50: #fef2f2;
  --red-200: #fecaca;
  --red-700: #b91c1c;

  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --amber-800: #92400e;

  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06);
  --shadow-hover: 0 8px 24px rgb(15 23 42 / 0.10);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-900);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container-narrow { max-width: 46rem; }
.container-auth { max-width: 26rem; }

.page {
  padding-block: 2rem 4rem;
  min-height: calc(100vh - 8rem);
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}
.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 0.75rem;
}
@media (min-width: 768px) {
  .site-header-inner { gap: 0.75rem 2rem; }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-700);
}
.brand .icon { width: 1.4rem; height: 1.4rem; }

.nav {
  display: flex;
  gap: 0.25rem;
  order: 3;
  width: 100%;
  overflow-x: auto;
}
.nav a {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  white-space: nowrap;
}
.nav a:hover { background: var(--gray-100); color: var(--gray-900); }
.nav a.active { background: var(--brand-50); color: var(--brand-800); }

.account {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.account form { margin: 0; }
.account-email {
  display: none;
  font-size: 0.875rem;
  color: var(--gray-500);
}

@media (min-width: 768px) {
  .nav { order: 0; width: auto; }
  .account-email { display: inline; }
}

.site-footer {
  border-top: 1px solid var(--gray-200);
  padding-block: 1.5rem;
  font-size: 0.8rem;
  color: var(--gray-500);
}
.site-footer p + p { margin-top: 0.35rem; }
.footer-links a:hover { text-decoration: underline; }

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.page-subtitle {
  margin-top: 0.35rem;
  color: var(--gray-500);
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--gray-900); }

.stack { display: flex; flex-direction: column; gap: 1rem; }

/* ---------- Components ---------- */

/* Buttons */
.btn-primary, .btn-secondary, .btn-ghost, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--brand-700); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-800); }
.btn-secondary { background: #fff; border-color: var(--gray-300); color: var(--gray-700); box-shadow: var(--shadow); }
.btn-secondary:hover { background: var(--gray-50); }
.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }
.btn-danger { background: #fff; border-color: var(--red-200); color: var(--red-700); box-shadow: var(--shadow); }
.btn-danger:hover { background: var(--red-50); }
.btn-block { width: 100%; }
.btn-small { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.btn-primary:disabled, .btn-secondary:disabled, .btn-ghost:disabled, .btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.page-header-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }

/* Forms */
.field { display: flex; flex-direction: column; }
.label {
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}
.hint { margin-top: 0.35rem; font-size: 0.8rem; color: var(--gray-500); }
.field-error { font-size: 0.875rem; color: var(--red-700); }
.field-error:empty { display: none; }
.optional { font-weight: 400; color: var(--gray-400); }

.input {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}
.input::placeholder { color: var(--gray-400); }
.input:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgb(13 148 136 / 0.18);
}
textarea.input { resize: vertical; }
input[type="file"].input { padding: 0.4rem; font-size: 0.85rem; color: var(--gray-500); }
input[type="file"].input::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: calc(var(--radius) - 2px);
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
input[type="file"].input::file-selector-button:hover { background: var(--gray-100); }

.input-prefix { position: relative; }
.input-prefix span {
  position: absolute;
  inset-block: 0;
  left: 0.75rem;
  display: flex;
  align-items: center;
  color: var(--gray-500);
  font-weight: 600;
}
.input-prefix .input { padding-left: 1.75rem; }

.field-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .field-grid { grid-template-columns: repeat(2, 1fr); }
  .field-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.form-disabled { opacity: 0.55; }

/* Edit-listing picture manager */
.edit-picture-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.edit-picture { display: flex; flex-direction: column; gap: 0.4rem; width: 8rem; }
.edit-picture img { width: 100%; height: 6rem; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--gray-200); }
.edit-picture-choice { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: var(--gray-700); }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}
.card-section + .card-section { border-top: 1px solid var(--gray-200); }
.section-title { font-size: 1rem; font-weight: 600; }

/* Badges */
.badge-brand, .badge-neutral, .badge-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-brand { background: var(--brand-50); color: var(--brand-800); box-shadow: inset 0 0 0 1px var(--brand-200); }
.badge-neutral { background: var(--gray-100); color: var(--gray-700); box-shadow: inset 0 0 0 1px var(--gray-200); }
.badge-danger { background: var(--red-50); color: var(--red-700); box-shadow: inset 0 0 0 1px var(--red-200); }

/* Alerts and text */
.alert-error {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--red-200);
  border-radius: var(--radius);
  background: var(--red-50);
  color: var(--red-700);
  font-size: 0.9rem;
}
.alert-info {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--brand-200);
  border-radius: var(--radius);
  background: var(--brand-50);
  color: var(--brand-800);
  font-size: 0.9rem;
}
.alert-warn {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--amber-200);
  border-radius: var(--radius);
  background: var(--amber-50);
  color: var(--amber-800);
  font-size: 0.9rem;
}
.alert-warn form { margin-top: 0.6rem; }
.alert-title { font-weight: 600; }
.alert-error ul { margin-top: 0.25rem; padding-left: 1.1rem; list-style: disc; }

.link { font-weight: 500; color: var(--brand-700); }
.link:hover { color: var(--brand-800); text-decoration: underline; }
.muted { color: var(--gray-500); }
.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--gray-500);
}
.empty-state .icon { width: 2rem; height: 2rem; color: var(--gray-300); }

.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--gray-100);
  color: var(--gray-300);
}
.media-placeholder .icon { width: 2.5rem; height: 2.5rem; }

/* ---------- Pages ---------- */

/* Search */
/* Pairs on small screens (purpose + type, suburb full width, beds + baths);
   one row with the buttons on desktop. */
.search { margin-bottom: 1.5rem; padding: 1.25rem; }
.search-grid {
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}
.search-suburb, .search-actions { grid-column: 1 / -1; }
.search-actions { display: flex; justify-content: flex-end; gap: 0.5rem; }
@media (min-width: 1024px) {
  .search-grid { grid-template-columns: 1fr 1fr 1.6fr 0.8fr 0.8fr auto; }
  .search-suburb, .search-actions { grid-column: auto; }
}
.results-count { margin-bottom: 1rem; font-size: 0.875rem; color: var(--gray-500); }

/* Buyer list */
.buyer-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-lg);
  background: var(--brand-50);
}
.buyer-strip-title { font-weight: 600; color: var(--brand-800); }
.buyer-strip-text { font-size: 0.85rem; color: var(--brand-800); opacity: 0.85; }

.buyer-layout { display: grid; gap: 1.5rem; align-items: start; }
.buyer-main { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 900px) {
  .buyer-layout { grid-template-columns: minmax(0, 1fr) 20rem; }
  .buyer-aside { position: sticky; top: 1.5rem; }
}
.buyer-aside { display: flex; flex-direction: column; gap: 1.5rem; }

.buyer-steps { display: flex; flex-direction: column; gap: 1rem; }
.buyer-steps li { display: flex; gap: 0.75rem; }
.buyer-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-800);
  box-shadow: inset 0 0 0 1px var(--brand-200);
  font-size: 0.85rem;
  font-weight: 700;
}
.buyer-step-title { font-size: 0.9rem; font-weight: 600; }
.buyer-step-text { margin-top: 0.15rem; font-size: 0.85rem; color: var(--gray-500); }

.buyer-points { display: flex; flex-direction: column; gap: 0.85rem; }
.buyer-points strong { display: block; font-size: 0.9rem; }
.buyer-points span { display: block; margin-top: 0.1rem; font-size: 0.85rem; color: var(--gray-500); }
.buyer-aside-text { font-size: 0.85rem; color: var(--gray-500); }

.buyer-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  cursor: pointer;
}
.buyer-consent input { margin-top: 0.15rem; flex-shrink: 0; }

.suburb-grid {
  display: grid;
  gap: 0.45rem 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.suburb-check {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--gray-700);
  cursor: pointer;
}
.suburb-check input { margin-top: 0.15rem; flex-shrink: 0; }
@media (max-width: 480px) {
  .suburb-grid { grid-template-columns: 1fr; }
}

/* Honeypot: off-screen, but still a real text field so bots fill it in. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Listing cards */
.listing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}
.listing-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, transform 0.15s;
}
.listing-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.listing-card-link { display: flex; flex-direction: column; height: 100%; }
.listing-card-pay { padding: 0 1.1rem 1.1rem; }
.listing-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--gray-100); }
.listing-card-media img { width: 100%; height: 100%; object-fit: cover; }
.listing-card-badge { position: absolute; top: 0.75rem; left: 0.75rem; box-shadow: var(--shadow); }
.listing-card-body { display: flex; flex: 1; flex-direction: column; gap: 0.4rem; padding: 1rem 1.1rem 1.1rem; }
.listing-card-title { font-size: 1.05rem; font-weight: 600; }
.listing-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-100);
}
.best-offer { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }
.no-offers { font-size: 0.9rem; color: var(--gray-500); }

.facts { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.85rem; color: var(--gray-600); }
.facts li { display: inline-flex; align-items: center; gap: 0.3rem; }
.facts .icon { color: var(--gray-400); }

.deadline { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: var(--gray-500); }

/* Property page */
/* Mobile: photos, offer panel, details (DOM order). Desktop: offer panel
   in a sticky right column spanning both rows. */
.property-layout { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .property-layout {
    grid-template-columns: minmax(0, 1fr) 22rem;
    grid-template-areas: "gallery panel" "details panel";
    grid-template-rows: auto 1fr;
    align-items: start;
  }
  .property-gallery { grid-area: gallery; }
  .property-details { grid-area: details; }
  .offer-panel { grid-area: panel; position: sticky; top: 1.5rem; }
}

.gallery { display: flex; flex-direction: column; gap: 0.5rem; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgb(15 23 42 / 0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}
.gallery-thumbs { display: grid; gap: 0.5rem; grid-template-columns: repeat(5, 1fr); }
.gallery-thumbs button { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.15s; }
.gallery-thumbs button:hover img { opacity: 0.85; }

.key-facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
.key-facts dt { font-size: 0.8rem; color: var(--gray-500); }
.key-facts dd { font-weight: 600; }
.description { color: var(--gray-700); white-space: pre-line; }

.deadline-box { gap: 0.2rem; background: var(--brand-50); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.deadline-date { font-weight: 600; }
.countdown { font-size: 1.35rem; font-weight: 700; color: var(--red-700); }

.offer-list { display: flex; flex-direction: column; }
.offer-item { padding-block: 0.75rem; border-top: 1px solid var(--gray-100); }
.offer-item:first-child { border-top: 0; padding-top: 0; }
.offer-item-head { display: flex; align-items: center; gap: 0.5rem; }
.offer-remove { margin-left: auto; }
.offer-amount { font-size: 1.05rem; font-weight: 700; }
.offer-item-top .offer-amount { color: var(--brand-700); }
.offer-meta { font-size: 0.8rem; color: var(--gray-500); }
.offer-terms { font-size: 0.85rem; color: var(--gray-600); }
.offer-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  cursor: pointer;
}
.offer-consent input { margin-top: 0.15rem; flex-shrink: 0; }

/* My Offers */
.my-offers { display: flex; flex-direction: column; }
.my-offer { display: flex; gap: 1rem; padding: 1rem 1.25rem; }
.my-offer + .my-offer { border-top: 1px solid var(--gray-200); }
.thumb { overflow: hidden; flex-shrink: 0; width: 5.5rem; height: 5.5rem; border-radius: var(--radius); background: var(--gray-100); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-offer-body { display: flex; flex: 1; flex-direction: column; gap: 0.2rem; min-width: 0; }
.my-offer-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.my-offer-amount { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.my-offer-pay { margin-top: 0.5rem; }

/* Auth */
.auth-card { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1rem; padding: 2rem; }
.auth-card .alert-error { margin-bottom: 0; }
.auth-alt { font-size: 0.9rem; color: var(--gray-500); text-align: center; }

/* Lightbox (shown/hidden by app.js via the .hidden class) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(15 23 42 / 0.9);
}
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lightbox button {
  position: absolute;
  padding: 0.5rem 0.9rem;
  border: 0;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:hover { background: rgb(255 255 255 / 0.2); }
.lightbox-close { top: 1rem; right: 1rem; font-size: 1.25rem !important; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* Admin dashboard */
.admin-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
}
.admin-form .field { min-width: 10rem; }
.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.stat {
  display: block;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.15s;
}
.stat:hover { box-shadow: var(--shadow-hover); }
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.stat-value { margin-top: 0.35rem; font-size: 2rem; font-weight: 700; color: var(--gray-900); }
.stat-sub { margin-top: 0.15rem; font-size: 0.85rem; color: var(--gray-500); }

.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.filter-tab {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  box-shadow: inset 0 0 0 1px var(--gray-200);
}
.filter-tab:hover { background: var(--gray-200); }
.filter-tab.active { background: var(--brand-50); color: var(--brand-800); box-shadow: inset 0 0 0 1px var(--brand-200); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td {
  padding: 0.6rem 0.85rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--gray-200);
}
.table th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }

/* Voucher apply */
.voucher { margin-top: 0.5rem; }
.voucher-summary { cursor: pointer; font-size: 0.85rem; font-weight: 500; color: var(--brand-700); }
.voucher-summary:hover { color: var(--brand-800); text-decoration: underline; }
.voucher[open] .voucher-summary { margin-bottom: 0.5rem; }
.voucher-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; }
.voucher-row .field { flex: 1 1 12rem; }
.voucher-status { margin-top: 0.4rem; font-size: 0.85rem; }
.voucher-status.ok { color: var(--brand-700); }
.voucher-status.err { color: var(--red-700); }

/* ---------- Utilities ---------- */
.hidden { display: none !important; }
