@font-face {
  font-family: "GeistSans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist:vf@latest/latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --sidebar-start: #3d2e0c;
  --sidebar-mid: #5c4310;
  --sidebar-end: #2a1f08;
  --sidebar-accent: #c9a227;
  --sidebar-link: rgba(255, 236, 190, 0.78);
  --content-bg: #ffffff;
  --card-border: #f0e2c5;
  --text-main: #4a3711;
  --brand-green: #d4a017;
  --brand-green-dark: #b9860b;
  --brand-green-soft: #fff4d9;
  --brand-gold: #d5a021;
  --brand-gold-soft: #fff5db;
  --brand-gold-deep: #b58414;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: "GeistSans", Inter, "Segoe UI", Tahoma, sans-serif;
  background: var(--content-bg);
}

.app-layout {
  display: flex;
}

.sidebar {
  width: 250px;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.12) 0%, transparent 28%),
    linear-gradient(165deg, var(--sidebar-start) 0%, var(--sidebar-mid) 48%, var(--sidebar-end) 100%);
  box-shadow: 8px 0 28px rgba(26, 18, 4, 0.45);
  border-right: 1px solid rgba(201, 162, 39, 0.22);
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 1.35rem 1rem 1.15rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.1), transparent);
}

.sidebar-brand a {
  text-decoration: none;
  color: #f7e7b5;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.sidebar-brand a:hover {
  color: #ffe9a8;
}

.sidebar-brand p {
  color: rgba(255, 228, 170, 0.72) !important;
}

.sidebar-nav {
  padding: 0.95rem 0.7rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.sidebar-link {
  color: var(--sidebar-link);
  text-decoration: none;
  padding: 0.68rem 0.8rem;
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  font-size: 0.93rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.sidebar-link i {
  width: 18px;
  color: rgba(230, 196, 98, 0.85);
}

.sidebar-link:hover {
  background: rgba(201, 162, 39, 0.16);
  border-color: rgba(201, 162, 39, 0.2);
  color: #fff8e8;
}

.sidebar-link:hover i {
  color: #f0d078;
}

.sidebar-link.active {
  background: linear-gradient(135deg, #c9a227, #a88412);
  border-color: rgba(255, 220, 140, 0.35);
  color: #1f1605;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.sidebar-link.active i {
  color: #1f1605;
}

.sidebar-link .badge {
  background: rgba(255, 236, 190, 0.95) !important;
  color: #3d2e0c !important;
  font-weight: 700;
}

.sidebar-link.active .badge {
  background: rgba(31, 22, 5, 0.18) !important;
  color: #1f1605 !important;
}

.sidebar-logout {
  margin-top: auto;
  color: rgba(255, 210, 140, 0.88);
  border-top: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 0.55rem;
  padding-top: 0.75rem;
}

.sidebar-logout i {
  color: rgba(255, 196, 110, 0.9);
}

.sidebar-logout:hover {
  background: rgba(180, 80, 40, 0.22);
  border-color: rgba(255, 160, 100, 0.25);
  color: #fff;
}

.content-wrapper {
  margin-left: 250px;
  width: calc(100% - 250px);
  min-height: 100vh;
  background: #fff;
}

.sidebar-overlay {
  display: none;
}

.top-title {
  background: #fff;
  border-bottom: 1px solid #f0e2c5;
  padding: 0.85rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

main.container-fluid {
  background: #fff;
  min-height: calc(100vh - 62px);
  padding: 1.25rem 1.5rem !important;
}

.card,
form.card,
.table {
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(133, 98, 18, 0.06);
  background: #fff;
}

.table {
  overflow: hidden;
}

.table th,
.table td {
  vertical-align: middle;
  border-color: #f0e2c5;
}

.table thead th {
  background: #fff7e6;
  font-weight: 600;
  color: #5d4514;
}

/* Pawn transactions list — months / interest / fee breakdown */
.pawn-txn-table thead th {
  vertical-align: middle;
  line-height: 1.25;
}

.pawn-table-subth {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: #8a6e31;
  line-height: 1.2;
  max-width: 7.5rem;
}

/* Total column: P + I + O = principal + interest + other (fees) */
.pawn-table-subth-ipo {
  max-width: none;
  white-space: nowrap;
}

.pawn-txn-money-cell {
  vertical-align: middle;
  min-width: 7rem;
}

.pawn-txn-total {
  display: block;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #5f4713;
}

.pawn-txn-breakdown {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: #8a6e31;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.form-control,
.form-select {
  border-radius: 0.55rem;
  border: 1px solid #f0e2c5;
}

.form-control:focus,
.form-select:focus {
  border-color: #e0be6b;
  box-shadow: 0 0 0 0.2rem rgba(212, 160, 23, 0.16);
}

.btn {
  border-radius: 0.55rem;
}

.btn-primary {
  background: linear-gradient(160deg, var(--brand-green), var(--brand-green-dark));
  border: 1px solid #9f7408;
}

.btn-primary:hover {
  background: linear-gradient(160deg, #c89512, #a87507);
  border-color: #8e6506;
}

@media print {
  .sidebar,
  .btn,
  form,
  .top-title {
    display: none !important;
  }
  .no-print {
    display: none !important;
  }
  .modal,
  .modal-backdrop {
    display: none !important;
  }
  .content-wrapper {
    margin-left: 0;
    width: 100%;
  }
  main.container-fluid {
    background: #fff;
    padding: 0.75rem !important;
  }
  .pawn-receipt-toolbar {
    display: none !important;
  }
  .pawn-receipt-print {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100%;
  }
  .pawn-receipt-print .table {
    box-shadow: none !important;
  }
}

.pawn-receipt-kv th {
  font-weight: 600;
  width: 8rem;
  vertical-align: top;
}

.pawn-receipt-amounts th {
  width: 45%;
  background: #fff8e8;
}

@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    width: 250px;
    min-height: 100vh;
  }
  .content-wrapper {
    margin-left: 0;
    width: 100%;
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 40;
  }
  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ——— Staff login page ——— */
.auth-page {
  font-family: "GeistSans", Inter, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: #faf6ee;
  color: #4a3711;
}

.auth-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-showcase {
  position: relative;
  display: none;
  width: 48%;
  max-width: 640px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(155deg, #3d2e0c 0%, #6b4f12 35%, #b9860b 70%, #8a6410 100%);
  color: #fff8e8;
}

@media (min-width: 992px) {
  .auth-showcase {
    display: flex;
  }
}

.auth-showcase-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.auth-showcase-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 2.5rem 2.75rem;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff !important;
  text-decoration: none;
}

.auth-brand:hover {
  color: #ffd86a !important;
}

.auth-brand-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 1.15rem;
}

.auth-showcase-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.auth-showcase-title {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
}

.auth-showcase-text {
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 248, 232, 0.88);
  max-width: 22rem;
  margin-bottom: 2rem;
}

.auth-showcase-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-showcase-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 248, 232, 0.92);
  margin-bottom: 0.85rem;
}

.auth-showcase-list i {
  font-size: 1.15rem;
  color: #ffd86a;
}

.auth-showcase-footer {
  color: rgba(255, 248, 232, 0.5);
}

.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(213, 160, 33, 0.14), transparent),
    radial-gradient(600px 350px at 0% 100%, rgba(213, 160, 33, 0.1), transparent),
    #faf6ee;
}

.auth-mobile-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f0e2c5;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

.auth-brand--compact {
  color: #5d4514 !important;
}

.auth-brand--compact .auth-brand-icon {
  background: linear-gradient(145deg, #d4a017, #b9860b);
  border: none;
  color: #fff;
}

.auth-main-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 2.5rem;
}

.auth-form-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #f0e2c5;
  border-radius: 1.25rem;
  padding: 2rem 2rem 1.75rem;
  box-shadow:
    0 4px 6px rgba(133, 98, 18, 0.04),
    0 24px 48px rgba(133, 98, 18, 0.12);
}

.auth-form-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-form-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(145deg, #d4a017, #b9860b);
  box-shadow: 0 8px 20px rgba(185, 134, 11, 0.35);
}

.auth-form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #5d4514;
  margin-bottom: 0.35rem;
}

.auth-form-sub {
  font-size: 0.92rem;
  color: #7a6130;
  margin: 0;
}

.auth-alert {
  border-radius: 0.65rem;
  font-size: 0.9rem;
}

.auth-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #5d4514;
  margin-bottom: 0.4rem;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #b9860b;
  font-size: 1.05rem;
  pointer-events: none;
  z-index: 2;
}

.auth-input {
  padding: 0.75rem 1rem 0.75rem 2.75rem !important;
  border: 1px solid #e6d5ac !important;
  border-radius: 0.75rem !important;
  font-size: 1rem !important;
  background: #fffdf8 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
  border-color: #d4a017 !important;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2) !important;
  background: #fff !important;
}

.auth-input-wrap:has(.auth-password-toggle) .auth-input {
  padding-right: 2.75rem !important;
}

.auth-password-toggle {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #8a6e31;
  padding: 0.25rem 0.4rem;
  line-height: 1;
  border-radius: 0.35rem;
  z-index: 2;
}

.auth-password-toggle:hover {
  color: #5d4514;
  background: rgba(212, 160, 23, 0.1);
}

.auth-submit {
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem !important;
}

.auth-form-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f0e2c5;
  text-align: center;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #8a6410;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.auth-back-link:hover {
  color: #5d4514;
  gap: 0.55rem;
}

/* ——— Public landing page ——— */
.landing-page {
  font-family: "GeistSans", Inter, sans-serif;
  background: #faf6ee;
  color: #4a3711;
}

.landing-shell {
  position: relative;
  overflow-x: hidden;
}

/* Header */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.landing-navbar {
  padding: 0.85rem 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 226, 197, 0.6);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #5d4514 !important;
  text-decoration: none;
}

.landing-brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #d4a017, #b9860b);
  color: #fff;
  font-size: 1.1rem;
}

.landing-btn-ghost {
  color: #6b4f12;
  border: 1px solid transparent;
  font-weight: 500;
}

.landing-btn-ghost:hover {
  background: rgba(212, 160, 23, 0.12);
  color: #5d4514;
}

.landing-btn-primary {
  background: linear-gradient(145deg, #d4a017, #b9860b) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(185, 134, 11, 0.35);
}

.landing-btn-primary:hover {
  background: linear-gradient(145deg, #e0ad1f, #c4920c) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(185, 134, 11, 0.4);
}

.landing-btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  color: #fff !important;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.landing-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border-color: #fff !important;
}

/* Full-width hero */
.landing-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.landing-hero-carousel,
.landing-hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.landing-hero-carousel .carousel-inner,
.landing-hero-carousel .carousel-item {
  height: 100%;
}

.landing-hero-slide-img {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  object-fit: cover;
  object-position: center;
}

.landing-hero-fallback {
  background:
    linear-gradient(135deg, rgba(93, 69, 20, 0.92) 0%, rgba(185, 134, 11, 0.75) 50%, rgba(74, 55, 17, 0.9) 100%),
    url("https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?auto=format&fit=crop&w=2000&q=80") center / cover no-repeat;
}

.landing-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(45, 32, 8, 0.55) 0%,
    rgba(45, 32, 8, 0.35) 40%,
    rgba(45, 32, 8, 0.65) 100%
  );
  pointer-events: none;
}

.landing-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 7rem 0 5rem;
}

.landing-hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff8e8;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.landing-hero-title {
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.25rem;
}

.landing-hero-accent {
  color: #ffd86a;
}

.landing-hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255, 248, 232, 0.92);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.landing-hero-indicators {
  margin-bottom: 2rem;
  z-index: 3;
}

.landing-hero-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  opacity: 1;
}

.landing-hero-indicators .active {
  background: #ffd86a;
  border-color: #ffd86a;
}

.landing-hero-control {
  width: 8%;
  z-index: 3;
}

.landing-hero-control-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.35rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.landing-hero-control:hover .landing-hero-control-icon {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}

.landing-hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.5rem;
  text-decoration: none;
  animation: landing-bounce 2s ease infinite;
}

@keyframes landing-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Stats strip */
.landing-stats {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
  padding-bottom: 2rem;
}

.landing-stat {
  background: #fff;
  border: 1px solid #f0e2c5;
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 12px 32px rgba(133, 98, 18, 0.12);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(133, 98, 18, 0.16);
}

.landing-stat i {
  display: block;
  font-size: 1.75rem;
  color: var(--brand-gold-deep);
  margin-bottom: 0.5rem;
}

.landing-stat span {
  font-size: 0.88rem;
  font-weight: 600;
  color: #5d4514;
}

/* Sections */
.landing-section {
  padding: 4.5rem 0;
}

.landing-section-alt {
  background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
}

.landing-section-head {
  margin-bottom: 3rem;
}

.landing-section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-gold-deep);
  margin-bottom: 0.5rem;
}

.landing-section-title {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: #5d4514;
  margin-bottom: 0.75rem;
}

.landing-section-sub {
  color: #7a6130;
  max-width: 36rem;
  margin: 0 auto;
}

.landing-feature-card {
  background: #fff;
  border: 1px solid #f0e2c5;
  border-radius: 1.1rem;
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.landing-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(133, 98, 18, 0.12);
  border-color: #e6c475;
}

.landing-feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fff6df, #f8e8bf);
  border: 1px solid #ecd39c;
  color: var(--brand-gold-deep);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.landing-feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #5d4514;
  margin-bottom: 0.5rem;
}

.landing-feature-desc {
  font-size: 0.9rem;
  color: #7a6130;
  margin: 0;
  line-height: 1.55;
}

/* Locations */
.landing-location-card {
  background: #fff;
  border: 1px solid #f0e2c5;
  border-radius: 1.1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(133, 98, 18, 0.08);
}

.landing-location-card--main {
  border-left: 4px solid var(--brand-gold);
}

.landing-location-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #d4a017, #b9860b);
  color: #fff;
  margin-bottom: 1rem;
}

.landing-location-tag--ext {
  background: #6c757d;
}

.landing-location-detail {
  font-size: 0.95rem;
  color: #5d4514;
  line-height: 1.6;
}

.landing-location-detail i {
  color: var(--brand-gold-deep);
  margin-right: 0.5rem;
}

.landing-map-wrap {
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid #f0e2c5;
  box-shadow: 0 12px 32px rgba(133, 98, 18, 0.1);
  min-height: 280px;
}

.landing-map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.landing-map-placeholder {
  border-radius: 1.1rem;
  background: #fffaf0;
  border: 1px dashed #e6c475;
  min-height: 280px;
}

/* CTA + footer */
.landing-cta {
  padding: 4rem 0;
  background: linear-gradient(145deg, #5d4514 0%, #8a6410 45%, #b9860b 100%);
  color: #fff;
}

.landing-cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.landing-cta-text {
  opacity: 0.9;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.landing-footer {
  padding: 1.75rem 0;
  background: #3d2e0c;
  color: rgba(255, 248, 232, 0.75);
}

.landing-footer-brand {
  font-weight: 700;
  color: #ffd86a;
}

.landing-footer-copy {
  color: rgba(255, 248, 232, 0.55);
}

/* Legacy aliases */
.landing-card,
.feature-card,
.location-card {
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #f0e2c5;
  box-shadow: 0 8px 20px rgba(133, 98, 18, 0.08);
}

.feature-mini {
  background: #fffaf0;
  border: 1px solid #f0e2c5;
  border-radius: 0.8rem;
  padding: 0.9rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #5d4514;
  font-size: 0.92rem;
  font-weight: 500;
}

.feature-mini i {
  color: var(--brand-gold-deep);
}

@media (max-width: 991px) {
  .landing-hero-content {
    padding: 6rem 0 4rem;
  }

  .landing-stats {
    margin-top: -2rem;
  }

  .landing-hero-control {
    display: none;
  }
}

@media (max-width: 575px) {
  .landing-hero-actions .btn {
    width: 100%;
  }
}

/* Brand utility overrides for green + gold public pages */
.text-primary {
  color: var(--brand-green) !important;
}

.text-primary-emphasis {
  color: var(--brand-green-dark) !important;
}

.bg-primary-subtle {
  background-color: var(--brand-green-soft) !important;
}

.text-bg-primary-subtle {
  background-color: var(--brand-green-soft) !important;
  color: var(--brand-green-dark) !important;
}

.landing-page .badge,
.auth-page .badge {
  border: 1px solid #edd39a;
  background: var(--brand-gold-soft) !important;
  color: #805e10 !important;
}

.landing-page .landing-navbar {
  box-shadow: none;
}

.landing-page .display-5,
.auth-page .display-6 {
  color: #6b4f12;
}

.landing-page .lead,
.auth-page .text-secondary {
  color: #7a6130 !important;
}

.landing-page .btn-primary,
.auth-page .btn-primary {
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Landing — system flowchart (Mermaid) */
.landing-flow-section {
  position: relative;
  z-index: 1;
}
.landing-flowchart-card .landing-mermaid-wrap {
  min-height: 280px;
}
.landing-flowchart-card .mermaid {
  display: flex;
  justify-content: center;
  align-items: center;
}
.landing-flowchart-card .mermaid svg {
  max-width: 100%;
  height: auto !important;
}

@media (max-width: 991px) {
  .auth-form-card {
    padding: 1.75rem 1.35rem 1.5rem;
  }
}

/* Pawner photo / ID camera capture */
.photo-capture-preview-img {
  display: block;
  max-width: 100%;
  max-height: 200px;
  width: auto;
  border-radius: 0.65rem;
  border: 1px solid #f0e2c5;
  object-fit: cover;
  background: #fffaf0;
}

.photo-camera-video-wrap {
  position: relative;
  border-radius: 0.65rem;
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 4 / 3;
  max-height: 280px;
}

.photo-camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-camera-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.35rem 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff !important;
  text-align: center;
}

.photo-capture-tabs .btn.active,
.jewelry-images-tabs .btn.active {
  background: linear-gradient(145deg, #d4a017, #b9860b);
  border-color: #b9860b;
  color: #fff;
}

/* Jewelry multi-image capture */
.jewelry-gallery-thumb {
  position: relative;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid #f0e2c5;
  background: #fffaf0;
  aspect-ratio: 1;
}

.jewelry-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jewelry-gallery-badge {
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  font-size: 0.65rem;
}

.jewelry-gallery-remove {
  position: absolute;
  right: 0.35rem;
  top: 0.35rem;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

.jewelry-gallery-remove:hover {
  background: #b02a37;
}

/* Pawn renew + pawner profile modals — layout isolated from Tailwind */
.pawn-renew-modal .modal-content,
.customer-profile-modal .modal-content {
  border: 1px solid #f0e2c5;
  border-radius: 0.75rem;
  box-shadow: 0 1.25rem 3rem rgba(133, 98, 18, 0.16);
  overflow: hidden;
}

.pawn-renew-modal .modal-body,
.customer-profile-modal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding-bottom: 1.5rem;
}

.pawn-renew-section {
  width: 100%;
  min-width: 0;
}

.pawn-renew-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6f63;
  margin-bottom: 0.5rem;
}

.pawn-renew-month-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pawn-renew-month-btn {
  min-width: 3.4rem;
  font-weight: 600;
  border-color: #dcc9a0;
  color: #3d4f45;
}

.pawn-renew-month-btn.active,
.pawn-renew-month-btn:hover {
  background: #1f6f54;
  border-color: #1f6f54;
  color: #fff;
}

.pawn-renew-date-preview {
  border: 1px solid #f0e2c5;
  border-radius: 0.55rem;
  background: #fffdf8;
  padding: 0.65rem 0.85rem;
}

.pawn-renew-date-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.pawn-renew-date-row + .pawn-renew-date-row {
  margin-top: 0.35rem;
}

.pawn-renew-date-row--new {
  color: #1f6f54;
  font-weight: 600;
}

.pawn-renew-pay-group .form-control {
  border-left: 0;
}

.pawn-renew-account-details {
  border: 1px solid #f0e2c5;
  border-radius: 0.55rem;
  padding: 0.55rem 0.75rem;
  background: #fffdf8;
}

.pawn-renew-account-summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5a6f63;
  list-style: none;
}

.pawn-renew-account-summary::-webkit-details-marker {
  display: none;
}

.pawn-renew-account-summary::before {
  content: '▸ ';
  color: #9a7b3c;
}

.pawn-renew-account-details[open] .pawn-renew-account-summary::before {
  content: '▾ ';
}

.pawn-renew-table-wrap {
  border: 1px solid #f0e2c5;
  border-radius: 0.55rem;
  max-height: min(40vh, 280px);
  overflow: auto;
  background: #fff;
}

.pawn-renew-modal .pawn-renew-table-wrap .table,
.customer-profile-modal .pawn-renew-table-wrap .table {
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 0;
}

.customer-profile-photo {
  max-height: 220px;
  width: 100%;
  object-fit: contain;
  background: #fff8e8;
  border-radius: 0.35rem;
}

.customer-profile-modal .customer-pawn-history-wrap {
  border: 1px solid #f0e2c5;
  border-radius: 0.55rem;
  max-height: min(40vh, 280px);
  overflow: auto;
  background: #fff;
}

.customer-profile-modal .customer-pawn-history-wrap .table {
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 0;
}

.customer-profile-address p {
  line-height: 1.55;
}

.pawn-renew-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

/* Two columns only (e.g. customer photos) — does not switch to 4-up on xl */
.pawn-renew-stats--pair {
  margin-bottom: 0;
}

@media (min-width: 576px) {
  .pawn-renew-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pawn-renew-stats--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .pawn-renew-stats:not(.pawn-renew-stats--pair) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pawn-renew-stat-value--compact {
  font-size: 0.95rem;
}

.pawn-renew-stat-value--email {
  font-size: 0.85rem;
  word-break: break-word;
}

.pawn-renew-stat {
  min-width: 0;
  border: 1px solid #f0e2c5;
  border-radius: 0.55rem;
  padding: 0.75rem 0.85rem;
  background: #fffaf0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pawn-renew-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6f63;
  line-height: 1.2;
}

.pawn-renew-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #5f4713;
  word-break: break-word;
}

.pawn-renew-stat-hint {
  font-size: 0.72rem;
  color: #5a6f63;
  line-height: 1.25;
}

.pawn-renew-stat--accent {
  background: #fff5db;
  border-color: #efd08a;
}

.pawn-renew-formula-note {
  margin-top: 0.65rem;
}

.pawn-renew-input {
  max-width: 12rem;
  width: 100%;
}

@media (min-width: 576px) {
  .pawn-renew-input {
    max-width: 14rem;
  }
}

.pawn-renew-totals {
  border: 1px solid #f0e2c5;
  border-radius: 0.55rem;
  padding: 1rem 1.1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pawn-renew-total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.9rem;
  color: #6c5421;
}

.pawn-renew-total-line--strong {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px dashed #e8d5ac;
  font-weight: 700;
  font-size: 1rem;
  color: #5d4514;
}

/* Internal pages: consistent green + gold controls */
.content-wrapper .btn-outline-secondary {
  color: var(--brand-gold-deep);
  border-color: #e6c475;
}

.content-wrapper .btn-outline-secondary:hover {
  background: var(--brand-gold-soft);
  color: var(--brand-gold-deep);
  border-color: #dab257;
}

.content-wrapper .badge.bg-light.text-dark {
  background: var(--brand-gold-soft) !important;
  color: #6f530f !important;
  border: 1px solid #e8cb8e;
}

.content-wrapper .top-title .bg-slate-100 {
  background: #fff8e8 !important;
}

.content-wrapper .top-title .text-slate-600 {
  color: #6f5622 !important;
}

/* Dashboard */
.dashboard-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.35rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e8d5a8;
  background:
    linear-gradient(120deg, rgba(61, 46, 12, 0.96) 0%, rgba(92, 67, 16, 0.94) 42%, rgba(184, 134, 11, 0.9) 100%);
  color: #fff8e8;
  box-shadow: 0 14px 32px rgba(61, 46, 12, 0.18);
  position: relative;
  overflow: hidden;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 140, 0.22), transparent 70%);
  pointer-events: none;
}

.dashboard-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 228, 170, 0.75);
}

.dashboard-hero-title {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.dashboard-hero-sub {
  font-size: 0.9rem;
  color: rgba(255, 236, 190, 0.78);
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.dashboard-hero-actions .btn-outline-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 228, 170, 0.35);
  color: #fff8e8;
}

.dashboard-hero-actions .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 228, 170, 0.55);
  color: #fff;
}

.dashboard-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.dashboard-section-head {
  margin-bottom: 0.75rem;
}

.dashboard-section-label,
.dashboard-section-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6e31;
}

.dashboard-section-title {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #5d4514;
  text-transform: none;
}

.dashboard-section-sub {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: #a08a52;
}

.dashboard-alerts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.dashboard-alert-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: min(100%, 240px);
  flex: 1 1 240px;
  max-width: 360px;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid #ecd9a8;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(133, 98, 18, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-alert-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(133, 98, 18, 0.1);
  color: inherit;
}

.dashboard-alert-count {
  min-width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: #fff6df;
  color: #7b5b13;
  border: 1px solid #ecd39c;
}

.dashboard-alert-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.dashboard-alert-text strong {
  font-size: 0.86rem;
  color: #3d2e0c;
  line-height: 1.2;
}

.dashboard-alert-text small {
  font-size: 0.74rem;
  color: #8a6e31;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-alert-chip > .bi-chevron-right {
  color: #c9a227;
  font-size: 0.85rem;
}

.dashboard-alert-chip--warning .dashboard-alert-count {
  background: #fff6e4;
  border-color: #f0d08a;
  color: #9a6a10;
}

.dashboard-alert-chip--danger .dashboard-alert-count {
  background: #fff1f0;
  border-color: #f0c2be;
  color: #a33b35;
}

.dashboard-alert-chip--success .dashboard-alert-count {
  background: #edf8ee;
  border-color: #b7dfb9;
  color: #2f6b38;
}

.dashboard-alert-chip--info .dashboard-alert-count {
  background: #eef5ff;
  border-color: #b7c9e8;
  color: #355a8a;
}

.dashboard-alert-chip--secondary .dashboard-alert-count {
  background: #f4f1ea;
  border-color: #ddd4c2;
  color: #6f6554;
}

.dashboard-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #ecd9a8;
  background: #fff;
  color: #5d4514;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(133, 98, 18, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.dashboard-quick-link i {
  color: #b58414;
}

.dashboard-quick-link:hover {
  transform: translateY(-1px);
  background: #fff8e8;
  color: #3d2e0c;
  box-shadow: 0 8px 18px rgba(133, 98, 18, 0.12);
}

.dashboard-quick-link--warn {
  border-color: #f0c4a8;
  color: #7a3a18;
}

.dashboard-quick-link--warn i {
  color: #b85a28;
}

.dashboard-panel {
  background: #fff;
  border: 1px solid #f0e2c5;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(133, 98, 18, 0.06);
  overflow: hidden;
}

.dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem 0.85rem;
  border-bottom: 1px solid #f5ebd4;
  background: linear-gradient(180deg, #fffdf8, #fff);
}

.dashboard-panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #5d4514;
}

.dashboard-panel-sub {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: #8a6e31;
}

.dashboard-panel-body {
  padding: 1rem 1.25rem 1.25rem;
}

.dashboard-chart-tall {
  height: 340px;
}

.dashboard-chart-donut {
  height: 280px;
  max-width: 280px;
}

.dashboard-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #8a6e31;
  background: #fffaf0;
  border: 1px dashed #ecd9a8;
  border-radius: 0.75rem;
  font-size: 0.92rem;
}

/* Dashboard stat cards */
.dashboard-stat-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #f0e2c5 !important;
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 10px 22px rgba(133, 98, 18, 0.07) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(133, 98, 18, 0.14) !important;
  border-color: #e0c478 !important;
  color: inherit;
}

.dashboard-stat-card-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.dashboard-stat-card--clickable {
  cursor: pointer;
}

.dashboard-stat-card--clickable:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
}

.dashboard-stat-label {
  color: #8a6e31 !important;
  font-weight: 600;
  font-size: 0.84rem;
  margin-bottom: 0.15rem;
}

.dashboard-stat-value {
  color: #3d2e0c !important;
  letter-spacing: 0.01em;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.dashboard-stat-hint {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #a08a52;
}

.dashboard-stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 16px rgba(133, 98, 18, 0.12);
}

.dashboard-stat-icon i {
  line-height: 1;
}

.dashboard-stat-icon--green {
  color: #8a6410;
  background: linear-gradient(160deg, #fff6df, #f8e8bf);
  border-color: #ecd39c;
}

.dashboard-stat-icon--green-deep {
  color: #ffffff;
  background: linear-gradient(160deg, #c9a227, #8a6410);
  border-color: #6f5210;
}

.dashboard-stat-icon--gold {
  color: #7b5b13;
  background: linear-gradient(160deg, #fff6df, #f8e8bf);
  border-color: #ecd39c;
}

.dashboard-stat-icon--danger {
  color: #8a2f2f;
  background: linear-gradient(160deg, #ffe8e8, #ffd7d7);
  border-color: #f0b5b5;
}

.pawn-renew-total-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Sandá process steps */
.sanda-steps {
  padding: 1rem 1.1rem;
  border: 1px solid #ecd9a8;
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 246, 223, 0.95) 100%);
  box-shadow: 0 10px 24px rgba(133, 98, 18, 0.06);
}

.sanda-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .sanda-steps-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    position: relative;
  }

  .sanda-steps-list::before {
    content: "";
    position: absolute;
    top: 1.55rem;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, #e4d0a0 0%, #c9a227 50%, #e4d0a0 100%);
    z-index: 0;
  }
}

.sanda-step {
  position: relative;
  z-index: 1;
  margin: 0;
}

.sanda-step-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 4.1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid #e4d0a0;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(133, 98, 18, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.sanda-step-link:hover {
  transform: translateY(-1px);
  border-color: #d4a017;
  background: #fffdf8;
  color: inherit;
  box-shadow: 0 8px 18px rgba(133, 98, 18, 0.1);
}

.sanda-step.is-active .sanda-step-link {
  border-color: #c9a227;
  background: linear-gradient(160deg, #fff 0%, #fff8e8 100%);
}

.sanda-step-index {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #c9a227, #8a6410);
  box-shadow: 0 4px 10px rgba(138, 100, 16, 0.25);
}

.sanda-step-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
  color: #8a6410;
  background: linear-gradient(160deg, #fff6df, #f0d78a);
  border: 1px solid #ecd39c;
}

.sanda-step-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sanda-step-copy strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #3d2e0c;
  line-height: 1.2;
}

.sanda-step-copy small {
  font-size: 0.74rem;
  color: #8a6e31;
  line-height: 1.25;
}

#sandaStepPawner,
#sandaStepJewelry,
#sandaStepLoan {
  scroll-margin-top: 1rem;
}

/* Pawner create workflow (legacy) */
.pawner-workflow-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid #ecd9a8;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #fffdf8, #fff8ea);
}

.pawner-workflow-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e4d0a0;
  background: #fff;
  color: #5d4514;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}

.pawner-workflow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #f3e4bf;
  color: #7a5c14;
  font-size: 0.75rem;
  font-weight: 700;
}

.pawner-workflow-step.is-current {
  background: linear-gradient(135deg, #c9a227, #8a6410);
  border-color: #6f5210;
  color: #fff8e8;
}

.pawner-workflow-step.is-current span {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.pawner-workflow-step:hover {
  color: #3d2e0c;
  border-color: #d4a017;
  background: #fff6df;
}

.pawner-workflow-step.is-current:hover {
  color: #fff;
  background: linear-gradient(135deg, #d4a017, #9a7010);
}

.pawner-workflow-arrow {
  color: #b89a4a;
  font-size: 0.85rem;
  line-height: 1;
}

/* Shared page toolbar + app buttons */
.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1rem;
}

.page-toolbar-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #3d2e0c;
}

.page-toolbar-sub {
  margin-top: 0.2rem;
  font-size: 0.86rem;
  color: #8a6e31;
}

.page-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-app-primary,
.btn-app-gold,
.btn-app-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.45rem;
  padding: 0.5rem 1rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-app-primary {
  background: linear-gradient(145deg, #c9a227, #8a6410);
  border: 1px solid #6f5210;
  color: #fff8e8;
  box-shadow: 0 8px 18px rgba(138, 100, 16, 0.22);
}

.btn-app-primary:hover,
.btn-app-primary:focus {
  background: linear-gradient(145deg, #d4a017, #9a7010);
  border-color: #5c4310;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(138, 100, 16, 0.28);
}

.btn-app-gold {
  background: linear-gradient(145deg, #5c4310, #3d2e0c);
  border: 1px solid #2a1f08;
  color: #ffe9a8;
  box-shadow: 0 8px 18px rgba(61, 46, 12, 0.22);
}

.btn-app-gold:hover,
.btn-app-gold:focus {
  background: linear-gradient(145deg, #6b4f12, #3d2e0c);
  color: #fff;
  transform: translateY(-1px);
}

.btn-app-ghost {
  background: #fff;
  border: 1px solid #e4d0a0;
  color: #5d4514;
  box-shadow: 0 4px 12px rgba(133, 98, 18, 0.05);
}

.btn-app-ghost:hover,
.btn-app-ghost:focus {
  background: #fff8e8;
  border-color: #d4a017;
  color: #3d2e0c;
  transform: translateY(-1px);
}

.btn-app-primary.btn-sm,
.btn-app-ghost.btn-sm,
.btn-app-gold.btn-sm {
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}

/* Filter bar */
.data-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.data-filter-search {
  position: relative;
  flex: 1 1 260px;
  max-width: 420px;
}

.data-filter-search i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #b08930;
  pointer-events: none;
}

.data-filter-search .form-control {
  padding-left: 2.35rem;
  min-height: 2.55rem;
  border-color: #ecd9a8;
  background: #fff;
}

/* Data table shell */
.data-table-shell {
  background: #fff;
  border: 1px solid #f0e2c5;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(133, 98, 18, 0.06);
}

.data-table {
  margin: 0;
  border: none !important;
  box-shadow: none !important;
}

.data-table thead th {
  background: linear-gradient(180deg, #fff8e8, #fff3d8) !important;
  color: #5d4514;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid #ecd9a8 !important;
  border-top: none !important;
  padding: 0.9rem 1rem;
  white-space: nowrap;
}

.data-table tbody td {
  padding: 0.95rem 1rem;
  border-color: #f5ebd4 !important;
  color: #4a3711;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: #fffaf0;
}

.data-table .col-num {
  width: 3.5rem;
  color: #8a6e31;
  font-variant-numeric: tabular-nums;
}

.data-table-person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 10rem;
}

.data-table-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  object-fit: cover;
  border: 1px solid #ecd9a8;
  background: #fff8e8;
  flex-shrink: 0;
}

.data-table-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8a6410;
  background: linear-gradient(160deg, #fff6df, #f0d78a);
}

.data-table-name {
  font-weight: 600;
  color: #3d2e0c;
  line-height: 1.25;
}

.data-table-meta,
.data-table-muted {
  font-size: 0.78rem;
  color: #a08a52;
}

.data-table-cell-main {
  font-size: 0.92rem;
  color: #4a3711;
}

.data-table-id-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #fff4d9;
  border: 1px solid #ecd9a8;
  color: #7a5c14;
  font-size: 0.72rem;
  font-weight: 700;
}

.data-table-empty {
  text-align: center;
  padding: 2.5rem 1rem !important;
  color: #8a6e31;
}

.data-table-empty i {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #c9a227;
}

.data-table-empty strong {
  display: block;
  color: #5d4514;
  margin-bottom: 0.25rem;
}

.data-table-empty span {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-action {
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-action:hover {
  transform: translateY(-1px);
}

.btn-action-view {
  background: #fff8e8;
  border-color: #ecd9a8;
  color: #8a6410;
}

.btn-action-view:hover {
  background: #fff1cf;
  color: #5c4310;
}

.btn-action-edit {
  background: linear-gradient(145deg, #c9a227, #8a6410);
  border-color: #6f5210;
  color: #fff;
}

.btn-action-edit:hover {
  color: #fff;
  box-shadow: 0 6px 14px rgba(138, 100, 16, 0.28);
}

.btn-action-delete {
  background: #fff1f0;
  border-color: #f0c2be;
  color: #a33b35;
}

.btn-action-delete:hover {
  background: #ffe4e1;
  color: #8a2f2f;
}

/* Add / edit pawner form */
.pawner-form-card {
  background: #fff;
  border: 1px solid #f0e2c5;
  border-radius: 1rem;
  padding: 1.25rem 1.35rem 1.15rem;
  box-shadow: 0 10px 24px rgba(133, 98, 18, 0.06);
}

.pawner-form-sections {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.pawner-form-section-head {
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #f5ebd4;
}

.pawner-form-section-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #5d4514;
}

.pawner-form-section-sub {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #8a6e31;
}

.pawner-form-card .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6f5622;
  margin-bottom: 0.35rem;
}

.pawner-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f5ebd4;
}

/* Edit pawner identity strip */
.pawner-edit-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1rem 1.2rem;
  border: 1px solid #f0e2c5;
  border-radius: 1rem;
  background:
    linear-gradient(135deg, #fffdf8 0%, #fff8ea 55%, #fff 100%);
  box-shadow: 0 10px 24px rgba(133, 98, 18, 0.06);
}

.pawner-edit-identity-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  flex: 1 1 16rem;
}

.pawner-edit-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.85rem;
  object-fit: cover;
  border: 1px solid #ecd9a8;
  background: #fff8e8;
  flex-shrink: 0;
}

.pawner-edit-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #8a6410;
  background: linear-gradient(160deg, #fff6df, #f0d78a);
}

.pawner-edit-identity-text {
  min-width: 0;
}

.pawner-edit-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3d2e0c;
  line-height: 1.25;
}

.pawner-edit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: #8a6e31;
}

.pawner-edit-meta i {
  margin-right: 0.15rem;
  opacity: 0.8;
}

.pawner-edit-id {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #a08a52;
}

.pawner-edit-identity-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pawner-edit-stat {
  min-width: 4.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #ecd9a8;
  border-radius: 0.65rem;
  background: #fff;
  text-align: center;
}

.pawner-edit-stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a6e31;
}

.pawner-edit-stat-value {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #5d4514;
  font-variant-numeric: tabular-nums;
}

.pawner-edit-stat--warn {
  background: #fff5f0;
  border-color: #f0c2be;
}

.pawner-edit-stat--warn .pawner-edit-stat-value {
  color: #a33b35;
}

.pawner-sanda-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f5ebd4;
}

.pawner-sanda-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pawner-sanda-card .pawner-form-section-head {
  margin-bottom: 1rem;
}

.pawner-sanda-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.35rem 0 0.15rem;
  color: #8a6e31;
}

.pawner-sanda-empty > i {
  font-size: 1.35rem;
  opacity: 0.7;
  margin-bottom: 0.15rem;
}

.pawner-sanda-empty strong {
  color: #5d4514;
  font-size: 0.92rem;
}

.pawner-sanda-empty > span {
  font-size: 0.8rem;
}

.pawner-sanda-table .data-table-meta {
  max-width: 14rem;
}

.pawner-sanda-due {
  font-size: 0.86rem;
  font-weight: 600;
  color: #4a3711;
}

.pawner-sanda-due-hint {
  font-size: 0.72rem;
  color: #8a6e31;
  margin-top: 0.1rem;
}

.pawner-sanda-due-hint--soon {
  color: #b07a10;
  font-weight: 600;
}

.pawner-sanda-due-hint--late {
  color: #a33b35;
  font-weight: 700;
}

.pawner-sanda-renew-count {
  font-weight: 700;
  color: #5d4514;
  font-variant-numeric: tabular-nums;
}

.pawner-sanda-modal-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.pawner-sanda-modal-pawner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: flex-start;
}

.pawner-sanda-modal-pawner-photo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
  border: 1px solid #ecd9a8;
  background: #fff8e8;
  flex-shrink: 0;
}

.pawner-sanda-modal-pawner-photo--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a6410;
  font-size: 1.5rem;
  background: linear-gradient(160deg, #fff6df, #f0d78a);
}

.pawner-sanda-modal-pawner-info {
  flex: 1 1 14rem;
  min-width: 0;
}

.pawner-sanda-modal-pawner-info .pawn-renew-stats {
  margin-bottom: 0;
}

.pawn-renew-stat--warn {
  background: #fff5f0;
  border-color: #f0c2be;
}

.pawn-renew-stat--warn .pawn-renew-stat-value {
  color: #a33b35;
}

.pawner-sanda-modal .modal-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Photo capture cards */
.photo-capture-card {
  height: 100%;
  padding: 1rem;
  border: 1px solid #ecd9a8;
  border-radius: 0.95rem;
  background:
    linear-gradient(180deg, #fffdf8 0%, #fff 48%),
    #fff;
  box-shadow: 0 8px 18px rgba(133, 98, 18, 0.05);
}

.photo-capture-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.photo-capture-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(160deg, #fff6df, #f0d78a);
  border: 1px solid #ecd39c;
  color: #8a6410;
  font-size: 1.15rem;
}

.photo-capture-card-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #5d4514;
}

.photo-capture-card-sub {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: #8a6e31;
  line-height: 1.35;
}

.btn-photo-tab {
  border: 1px solid #e4d0a0;
  background: #fff;
  color: #6f5622;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.55rem 0.75rem;
}

.btn-photo-tab:hover {
  background: #fff8e8;
  color: #3d2e0c;
  border-color: #d4a017;
}

.photo-capture-tabs .btn-photo-tab.active,
.photo-capture-tabs .btn.active {
  background: linear-gradient(145deg, #c9a227, #8a6410);
  border-color: #6f5210;
  color: #fff;
  box-shadow: 0 6px 14px rgba(138, 100, 16, 0.2);
}

.photo-file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 7.5rem;
  padding: 1rem;
  border: 1.5px dashed #dfc48a;
  border-radius: 0.85rem;
  background: #fffaf0;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.photo-file-drop:hover {
  border-color: #c9a227;
  background: #fff6df;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.15);
}

.photo-file-drop-icon {
  font-size: 1.55rem;
  color: #c9a227;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.photo-file-drop-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #5d4514;
}

.photo-file-drop-sub {
  font-size: 0.76rem;
  color: #8a6e31;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-capture-preview-img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid #ecd9a8;
  background: #fffaf0;
}

.data-table-code {
  display: inline-block;
  font-weight: 700;
  color: #5d4514;
  font-variant-numeric: tabular-nums;
}

.data-table-money {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #5f4713;
}

.data-table-status-text {
  font-weight: 800;
  color: #5d4514;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

.data-table-status-text--ok {
  color: #2f6b38;
}

.data-table-status-text--info {
  color: #8a6410;
}

.data-table-status-text--warn {
  color: #9a6a10;
}

.data-table-status-text--danger {
  color: #a33b35;
}

.data-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #5d4514;
}

.data-filter-bar--wrap {
  align-items: center;
}

.data-filter-select,
.data-filter-date {
  min-height: 2.55rem;
  max-width: 11rem;
  border-color: #ecd9a8;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #ecd9a8;
  background: #fff8e8;
  color: #7a5c14;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.status-badge--ok {
  background: #eef8ef;
  border-color: #b7dfb9;
  color: #2f6b38;
}

.status-badge--info {
  background: #fff4d9;
  border-color: #e0c478;
  color: #8a6410;
}

.status-badge--warn {
  background: #fff6e4;
  border-color: #f0d08a;
  color: #9a6a10;
}

.status-badge--danger {
  background: #fff1f0;
  border-color: #f0c2be;
  color: #a33b35;
}

.status-badge--muted {
  background: #f4f1ea;
  border-color: #ddd4c2;
  color: #6f6554;
}

@media print {
  .data-table-shell {
    box-shadow: none !important;
    border-color: #ddd !important;
  }
  .table-actions,
  .page-toolbar-actions,
  .data-filter-bar {
    display: none !important;
  }
}

/* Official landscape pawn ticket (MC'CHAI-style) */
.pawn-ticket-sheet {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  max-width: 980px;
  margin: 0 auto 1.5rem;
  background: #fff;
  color: #111;
  border: 1px solid #222;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 11.5px;
  line-height: 1.35;
}

.pawn-ticket-stub {
  padding: 10px 10px 12px;
  border-right: 1px dashed #444;
  background: #fafafa;
}

.pawn-stub-shop {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.pawn-stub-addr {
  font-size: 10px;
  margin: 2px 0 8px;
  color: #333;
}

.pawn-stub-no {
  margin-bottom: 10px;
  font-size: 12px;
}

.pawn-stub-stamp {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 8px;
  border: 2px solid #1f6f54;
  color: #1f6f54;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: rotate(-6deg);
}

.pawn-stub-stamp--redeem,
.pawn-stub-stamp--redeemed {
  border-color: #0d6efd;
  color: #0d6efd;
}

.pawn-stub-stamp--forfeit,
.pawn-stub-stamp--forfeited,
.pawn-stub-stamp--auction,
.pawn-stub-stamp--auctioned {
  border-color: #b42318;
  color: #b42318;
}

.pawn-stub-field {
  margin-bottom: 8px;
}

.pawn-stub-field > span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #444;
}

.pawn-stub-line {
  min-height: 1.1em;
  border-bottom: 1px solid #222;
  padding: 2px 0 1px;
  font-size: 11px;
  word-break: break-word;
}

.pawn-stub-desc {
  margin-top: 4px;
  min-height: 72px;
  border: 1px solid #bbb;
  padding: 4px;
  font-size: 10.5px;
  white-space: pre-wrap;
}

.pawn-ticket-main {
  padding: 8px 10px 10px;
}

.pawn-ticket-asterisk {
  border: 2px solid #111;
  outline: 1px solid #111;
  outline-offset: 3px;
  padding: 8px 10px 10px;
  position: relative;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 7px,
      rgba(0, 0, 0, 0.03) 7px,
      rgba(0, 0, 0, 0.03) 8px
    );
  box-shadow: inset 0 0 0 1px #111;
}

.pawn-ticket-asterisk::before {
  content: "************************************************";
  display: block;
  text-align: center;
  letter-spacing: 0.08em;
  font-size: 9px;
  line-height: 1;
  margin-bottom: 4px;
  color: #111;
}

.pawn-ticket-asterisk::after {
  content: "************************************************";
  display: block;
  text-align: center;
  letter-spacing: 0.08em;
  font-size: 9px;
  line-height: 1;
  margin-top: 6px;
  color: #111;
}

.pawn-main-head {
  text-align: center;
  position: relative;
  margin-bottom: 6px;
}

.pawn-main-copy {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
}

.pawn-main-action-badge {
  display: inline-block;
  margin: 0 0 4px;
  padding: 2px 8px;
  border: 1.5px solid #1f6f54;
  background: #eef8f3;
  color: #1f6f54;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pawn-event-panel {
  margin: 6px 0 8px;
  padding: 6px 8px;
  border: 1.5px solid #1f6f54;
  background: #f4fbf7;
  font-size: 10.5px;
}

.pawn-event-panel--redeem {
  border-color: #0d6efd;
  background: #f0f6ff;
}

.pawn-event-panel--forfeit,
.pawn-event-panel--auction {
  border-color: #b42318;
  background: #fff5f4;
}

.pawn-event-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  font-size: 10px;
}

.pawn-event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 10px;
}

.pawn-event-grid span {
  display: block;
  font-size: 8.5px;
  text-transform: uppercase;
  color: #555;
}

.pawn-event-grid strong {
  font-size: 11px;
}

.pawn-history-block {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed #999;
  font-size: 9.5px;
}

.pawn-history-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
  font-size: 9px;
}

.pawn-history-list {
  margin: 0 0 4px;
  padding-left: 1.1rem;
}

.pawn-history-list li {
  margin-bottom: 2px;
}

.pawn-history-list span {
  margin-left: 4px;
  color: #444;
}

.pawn-history-list em {
  display: block;
  font-style: normal;
  color: #666;
  font-size: 8.5px;
}

.pawn-main-shop {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pawn-main-prop,
.pawn-main-meta {
  font-size: 10.5px;
}

.pawn-main-no {
  margin-top: 2px;
  font-size: 12px;
}

.pawn-main-dates {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4px 12px;
  margin: 6px 0 8px;
  font-size: 10.5px;
}

.pawn-main-dates span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  color: #333;
}

.pawn-main-dates strong {
  display: inline-block;
  min-width: 55%;
  border-bottom: 1px solid #222;
  font-weight: 600;
  padding-bottom: 1px;
}

.pawn-main-renew {
  grid-column: 1 / -1;
  font-size: 10.5px;
}

.pawn-main-body p {
  margin: 0 0 4px;
  text-align: justify;
}

.pawn-label-inline {
  font-weight: 700;
  margin-right: 4px;
}

.pawn-fill {
  display: inline;
  border-bottom: 1px solid #222;
  padding: 0 2px 1px;
  font-weight: 600;
}

.pawn-fill-wide {
  display: inline-block;
  min-width: 38%;
}

.pawn-sublabel {
  font-size: 9px;
  text-align: center;
  color: #444;
  margin: -2px 0 6px !important;
  letter-spacing: 0.02em;
}

.pawn-desc-block {
  margin: 6px 0 4px;
}

.pawn-desc-lines {
  min-height: 1.3em;
  font-weight: 600;
  margin-bottom: 2px;
}

.pawn-desc-rule {
  border-bottom: 1px solid #222;
  height: 14px;
  margin-bottom: 2px;
}

.pawn-notice {
  margin: 8px 0 6px !important;
  text-align: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pawn-main-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.pawn-amount-table {
  border-collapse: collapse;
  min-width: 210px;
  font-size: 11px;
}

.pawn-amount-table th,
.pawn-amount-table td {
  border: 1px solid #222;
  padding: 3px 6px;
}

.pawn-amount-table th {
  text-align: left;
  font-weight: 600;
  width: 55%;
}

.pawn-amount-table td:nth-child(2) {
  width: 18px;
  text-align: center;
}

.pawn-amount-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 70px;
}

.pawn-main-sigs {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.2fr;
  gap: 10px;
  margin-top: 12px;
  text-align: center;
  font-size: 9.5px;
}

.pawn-sig-line {
  border-bottom: 1px solid #222;
  height: 28px;
  margin-bottom: 4px;
}

.pawn-sig-auction {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
}

.pawn-legal-advice {
  margin: 10px 0 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pawn-legal-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 8.5px;
  color: #444;
}

@media (max-width: 900px) {
  .pawn-ticket-sheet {
    grid-template-columns: 1fr;
  }
  .pawn-ticket-stub {
    border-right: none;
    border-bottom: 1px dashed #444;
  }
}

@media print {
  @page { size: A4 landscape; margin: 3mm; }
  body { background: #fff !important; }
  .app-layout .sidebar,
  .sidebar-overlay,
  .top-title,
  .no-print,
  .pawn-receipt-toolbar,
  .alert { display: none !important; }
  .content-wrapper, main.container-fluid { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .pawn-ticket-sheet {
    max-width: none;
    width: 100%;
    border: none;
    margin: 0;
  }

  /* Keep the whole receipt on a single sheet (prevents browser auto-splitting). */
  #receiptPrintArea {
    transform: scale(0.9);
    transform-origin: top left;
  }

  .pawn-ticket-sheet,
  .pawn-ticket-main,
  .pawn-event-panel,
  .pawn-history-block,
  .pawn-main-bottom,
  .pawn-main-sigs {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .pawn-main-body p { margin: 0 0 2px; }
  .pawn-event-panel { margin: 4px 0 6px; padding: 4px 6px; font-size: 9.5px; }
  .pawn-history-block { margin-top: 6px; padding-top: 4px; font-size: 9px; }
}

/* Branch locations settings */
.locations-help {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border: 1px solid #ecd9a8;
  border-radius: 1rem;
  background:
    linear-gradient(135deg, #fffdf8 0%, #fff8ea 55%, #fff 100%);
  box-shadow: 0 10px 24px rgba(133, 98, 18, 0.05);
}

.locations-help-icon {
  width: 2.55rem;
  height: 2.55rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(160deg, #fff6df, #f0d78a);
  border: 1px solid #e0c478;
  color: #8a6410;
  font-size: 1.15rem;
}

.locations-help-title {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: #3d2e0c;
}

.locations-help-steps {
  padding-left: 1.15rem;
  margin: 0;
  font-size: 0.84rem;
  color: #6f5622;
  line-height: 1.55;
}

.locations-help-steps code {
  font-size: 0.78rem;
  color: #5d4514;
  background: #fff4d9;
  padding: 0.05rem 0.3rem;
  border-radius: 0.3rem;
}

.locations-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.locations-card {
  background: #fff;
  border: 1px solid #f0e2c5;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(133, 98, 18, 0.06);
}

.locations-card--main {
  border-color: #e0c478;
  box-shadow: 0 12px 28px rgba(138, 100, 16, 0.1);
}

.locations-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid #f5ebd4;
  background: linear-gradient(180deg, #fffaf0 0%, #fff 100%);
}

.locations-card--main .locations-card-head {
  background: linear-gradient(180deg, #fff6df 0%, #fffdf8 100%);
}

.locations-card-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.locations-card-index {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #8a6410;
  background: linear-gradient(160deg, #fff6df, #f0d78a);
  border: 1px solid #e0c478;
}

.locations-card--main .locations-card-index {
  color: #fff8e8;
  background: linear-gradient(145deg, #c9a227, #8a6410);
  border-color: #6f5210;
}

.locations-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #3d2e0c;
  line-height: 1.25;
}

.locations-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.locations-card-meta .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.locations-card-body {
  padding: 1.15rem 1.2rem 1.25rem;
}

.locations-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.15rem 1.35rem;
  align-items: stretch;
}

.locations-fields .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6f5622;
  margin-bottom: 0.35rem;
}

.locations-input-icon .input-group-text {
  background: #fff8e8;
  border-color: #e4d0a0;
  color: #8a6e31;
}

.locations-input-icon .form-control {
  border-color: #e4d0a0;
}

.locations-input-icon--top .input-group-text {
  align-items: flex-start;
  padding-top: 0.65rem;
}

.locations-embed-field {
  font-size: 0.78rem;
  line-height: 1.45;
  border-color: #e4d0a0;
  background: #fffcf5;
}

.locations-embed-field:focus {
  background: #fff;
}

.locations-preview {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
}

.locations-preview-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #8a6e31;
}

.locations-map-frame {
  flex: 1;
  min-height: 220px;
  border: 1px solid #ecd9a8;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #f7f1e4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.locations-map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  display: block;
}

.locations-map-placeholder {
  flex: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem;
  text-align: center;
  border: 1px dashed #e0c478;
  border-radius: 0.85rem;
  background:
    repeating-linear-gradient(
      -45deg,
      #fffdf8,
      #fffdf8 10px,
      #fff8ea 10px,
      #fff8ea 20px
    );
  color: #8a6e31;
}

.locations-map-placeholder i {
  font-size: 1.65rem;
  color: #c9a227;
  margin-bottom: 0.15rem;
}

.locations-map-placeholder strong {
  font-size: 0.92rem;
  color: #5d4514;
}

.locations-map-placeholder span {
  font-size: 0.8rem;
  max-width: 16rem;
  line-height: 1.4;
}

.locations-map-placeholder--warn {
  border-color: #f0d08a;
  background: #fff6e4;
}

.locations-map-placeholder--warn i {
  color: #9a6a10;
}

.locations-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px dashed #e0c478;
  border-radius: 1rem;
  background: #fffdf8;
  color: #8a6e31;
}

.locations-empty i {
  font-size: 1.85rem;
  color: #c9a227;
  margin-bottom: 0.25rem;
}

.locations-empty strong {
  font-size: 1rem;
  color: #5d4514;
}

.locations-empty span {
  font-size: 0.86rem;
  max-width: 22rem;
}

.locations-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid #f0e2c5;
  border-radius: 1rem;
  background: linear-gradient(180deg, #fffaf0 0%, #fff 100%);
  box-shadow: 0 10px 24px rgba(133, 98, 18, 0.05);
  position: sticky;
  bottom: 0.75rem;
  z-index: 5;
}

.locations-form-hint {
  font-size: 0.84rem;
  color: #8a6e31;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 991px) {
  .locations-card-grid {
    grid-template-columns: 1fr;
  }

  .locations-map-frame,
  .locations-map-placeholder {
    min-height: 200px;
  }
}

@media (max-width: 575px) {
  .locations-help {
    flex-direction: column;
    gap: 0.7rem;
  }

  .locations-card-head,
  .locations-card-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .locations-form-actions {
    position: static;
  }
}

/* Audit log table enhancements */
.audit-th-when {
  width: 175px;
}

.audit-th-user {
  width: 210px;
}

.audit-th-action {
  width: 235px;
}

.audit-when {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.audit-when i {
  color: #b08930;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.audit-when-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.audit-when-date {
  font-weight: 800;
  color: #3d2e0c;
  font-size: 0.82rem;
  line-height: 1.15;
}

.audit-when-time {
  font-size: 0.78rem;
  color: #8a6e31;
  line-height: 1.1;
}

.audit-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.audit-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #8a6410;
  border: 1px solid #ecd9a8;
  background: linear-gradient(160deg, #fff6df, #f0d78a);
  flex-shrink: 0;
}

.audit-username-wrap {
  min-width: 0;
}

.audit-username {
  display: inline-block;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-action-badge {
  text-transform: none !important;
  font-size: 0.74rem;
  padding: 0.2rem 0.62rem;
  gap: 0.35rem;
}

.audit-action-badge i {
  font-size: 0.95rem;
}

.audit-details-cell {
  max-width: 620px;
}

.audit-details summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff4d9;
  border: 1px solid #ecd9a8;
  padding: 0.22rem 0.6rem;
  font-weight: 800;
  color: #5d4514;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audit-details summary::-webkit-details-marker {
  display: none;
}

.audit-details[open] summary {
  background: #fffaf0;
  border-color: #d4a017;
}

.audit-details-body {
  margin-top: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  background: #fffdf8;
  border: 1px dashed #e0c478;
  color: #4a3711;
  font-size: 0.8rem;
  white-space: pre-wrap;
}

.audit-row--danger td:first-child {
  box-shadow: inset 4px 0 0 #a33b35;
}

.audit-row--warn td:first-child {
  box-shadow: inset 4px 0 0 #9a6a10;
}

.audit-row--info td:first-child {
  box-shadow: inset 4px 0 0 #8a6410;
}

.audit-row--ok td:first-child {
  box-shadow: inset 4px 0 0 #2f6b38;
}

.audit-row--muted td:first-child {
  box-shadow: inset 4px 0 0 #6f6554;
}

.audit-pagination-sub {
  margin-left: 0.5rem;
  color: #8a6e31;
  font-weight: 700;
}
