﻿/* Motorcycle Rent - Admin Dashboard Theme */
:root {
  --bg: #f6f4ef;
  --bg-2: #efe9df;
  --surface: #ffffff;
  --surface-2: #f4f1ec;
  --border: #e3ddd3;
  --ink: #1f2937;
  --muted: #6b7280;
  --accent: #0f766e;
  --accent-2: #f97316;
  --accent-3: #2563eb;
  --danger: #dc2626;
  --warning: #d97706;
  --success: #059669;
  --info: #2563eb;
  --sidebar-w: 252px;
  --topbar-h: 64px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.08);
  --transition: 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: "Instrument Sans", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #ffe6cc 0%, transparent 55%),
              radial-gradient(1200px 700px at -10% 10%, #d8f5f0 0%, transparent 50%),
              var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Instrument Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.3px;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}
select option { background: var(--surface); }

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.orb-1 { width: 320px; height: 320px; background: #ffd8a8; top: -120px; right: -80px; }
.orb-2 { width: 420px; height: 420px; background: #b8f2e6; bottom: -160px; left: -140px; }
.orb-3 { width: 260px; height: 260px; background: #c7d2fe; top: 40%; right: -140px; }

.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition);
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.04);
}

.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.1rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.logo i { width: 26px; height: 26px; color: var(--accent-3); }
.sidebar-close { display: none; color: var(--muted); padding: 4px; border-radius: 8px; }
.sidebar-close:hover { background: var(--surface-2); }

.sidebar-nav { flex: 1; padding: 0.6rem 0; overflow-y: auto; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  margin: 2px 0.6rem;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-item i { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active {
  background: linear-gradient(135deg, #0f766e 0%, #0ea5a5 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.25);
}
.nav-item.active:hover { filter: brightness(1.02); }

.sidebar-footer {
  padding: 0.9rem 1.1rem 1.2rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.4);
  z-index: 99;
}

.topbar {
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.6rem;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}
.menu-toggle { display: none; color: var(--muted); padding: 6px; border-radius: 10px; }
.menu-toggle:hover { background: var(--surface-2); }
.menu-toggle i { width: 22px; height: 22px; }
.page-title { font-size: 1.1rem; font-weight: 600; flex: 1; }
.topbar-right { margin-left: auto; }
.badge-time { font-size: 0.8rem; color: var(--muted); font-weight: 500; }

.page-container { padding: 1.6rem; flex: 1; }
.page { animation: pageIn 0.35s ease; }
.page.hidden { display: none; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: riseIn 0.5s ease both;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-color, var(--accent));
}
.stat-card .card-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--card-color, var(--accent)) 15%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--card-color, var(--accent));
}
.stat-card .card-icon i { width: 20px; height: 20px; }
.stat-card .card-value { font-size: 1.7rem; font-weight: 700; line-height: 1; }
.stat-card .card-label { font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card.square { border-radius: 8px; }
@media (min-width: 900px) {
  .stat-card.square {
    aspect-ratio: 1 / 1;
    justify-content: center;
  }
  .stat-card.square .card-value { font-size: 1.6rem; }
}
@media (max-width: 900px) {
  .stat-card.square { aspect-ratio: 1 / 1; }
}
.stat-card:nth-child(1) { animation-delay: 0.02s; }
.stat-card:nth-child(2) { animation-delay: 0.05s; }
.stat-card:nth-child(3) { animation-delay: 0.08s; }
.stat-card:nth-child(4) { animation-delay: 0.11s; }
.stat-card:nth-child(5) { animation-delay: 0.14s; }
.stat-card:nth-child(6) { animation-delay: 0.17s; }
.stat-card:nth-child(7) { animation-delay: 0.2s; }
.stat-card:nth-child(8) { animation-delay: 0.23s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.dash-section { margin-bottom: 1.5rem; }
.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.section-title i { width: 16px; height: 16px; }

.alert-list { display: flex; flex-direction: column; gap: 0.6rem; }
.alert-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--alert-color, var(--warning));
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: var(--shadow-soft);
}
.alert-item .alert-icon { color: var(--alert-color, var(--warning)); margin-top: 1px; flex-shrink: 0; }
.alert-item .alert-icon i { width: 16px; height: 16px; }
.alert-title { font-weight: 600; font-size: 0.9rem; }
.alert-sub { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.alert-empty { color: var(--muted); font-size: 0.85rem; padding: 0.5rem 0; display: flex; align-items: center; gap: 0.5rem; }

.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.recent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}
.recent-card h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.recent-card h4 i { width: 14px; height: 14px; }
.recent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  gap: 0.5rem;
}
.recent-row:last-child { border-bottom: none; }
.recent-row .rr-main { font-weight: 600; }
.recent-row .rr-sub { color: var(--muted); font-size: 0.78rem; }
.recent-row .rr-right { text-align: right; flex-shrink: 0; }

.page-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  flex: 1;
  min-width: 180px;
  box-shadow: var(--shadow-soft);
}
.search-box i { color: var(--muted); width: 16px; height: 16px; flex-shrink: 0; }
.search-box input { background: none; border: none; flex: 1; padding: 0; }
.filter-group select { min-width: 140px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn i { width: 15px; height: 15px; }
.btn-primary {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.25);
}
.btn-primary:hover { filter: brightness(1.02); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger  { background: var(--danger);  color: #fff; }
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.btn-icon { padding: 0.4rem; border-radius: 12px; }
.btn-icon i { width: 16px; height: 16px; }

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow-soft);
}
.data-table thead th {
  background: var(--surface-2);
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.data-table tbody td {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tbody tr:nth-child(odd) td { background: #fff; }
.data-table tbody tr:nth-child(even) td { background: #fbfaf7; }
.data-table tbody tr:hover td { background: #f3f1ea; }
.data-table .actions { display: flex; gap: 0.35rem; }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-available  { background: rgba(5, 150, 105, 0.12); color: var(--success); }
.badge-rented     { background: rgba(15, 118, 110, 0.12); color: var(--accent); }
.badge-maintenance{ background: rgba(217, 119, 6, 0.12); color: var(--warning); }
.badge-active     { background: rgba(14, 165, 233, 0.12); color: #0284c7; }
.badge-completed  { background: rgba(107, 114, 128, 0.12); color: var(--muted); }
.badge-paid       { background: rgba(5, 150, 105, 0.12); color: var(--success); }
.badge-partial    { background: rgba(217, 119, 6, 0.12); color: var(--warning); }
.badge-unpaid     { background: rgba(220, 38, 38, 0.12); color: var(--danger); }
.badge-overdue    { background: rgba(220, 38, 38, 0.15); color: var(--danger); }
.badge-oil_change { background: rgba(15, 118, 110, 0.12); color: var(--accent); }
.badge-repair     { background: rgba(217, 119, 6, 0.12); color: var(--warning); }
.badge-other      { background: rgba(37, 99, 235, 0.12); color: var(--info); }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  animation: modalIn 0.2s ease;
}
.modal-sm { max-width: 380px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1rem; }
.modal-close { color: var(--muted); padding: 4px; border-radius: 8px; }
.modal-close:hover { background: var(--surface-2); color: var(--ink); }
.modal-close i { width: 18px; height: 18px; }
.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.detail-list { display: flex; flex-direction: column; gap: 0.6rem; }
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-row span:first-child { color: var(--muted); font-weight: 600; }
.detail-row span:last-child { text-align: right; }

.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; }
.form-row textarea { resize: vertical; min-height: 70px; }
.form-row .hint { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }
.hint { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-select-row { display: flex; gap: 0.5rem; align-items: flex-end; }
.form-select-row select { flex: 1; }

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.calendar-controls h2 { font-size: 1.1rem; font-weight: 600; min-width: 160px; text-align: center; }
.cal-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.dot.rental-start  { background: var(--accent); }
.dot.payment-due   { background: var(--danger); }
.dot.payment-made  { background: var(--success); }
.dot.oil-change    { background: var(--warning); }
.dot.maintenance   { background: var(--info); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day-header { text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 0.4rem 0; }
.cal-day {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 80px;
  padding: 4px;
  cursor: pointer;
  transition: border-color var(--transition);
  position: relative;
}
.cal-day:hover { border-color: var(--accent); }
.cal-day.empty { background: transparent; border-color: transparent; cursor: default; pointer-events: none; }
.cal-day.today { border-color: var(--accent); }
.cal-day-num { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.cal-day.today .cal-day-num { color: var(--accent); }
.cal-dots { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 2px; }
.cal-dot-item { width: 7px; height: 7px; border-radius: 50%; }
.cal-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}
.cal-detail-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.cal-detail-header h3 { font-size: 0.95rem; }
.cal-event-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.cal-event-item:last-child { border-bottom: none; }
.cal-event-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 999;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.87rem;
  box-shadow: var(--shadow-soft);
  animation: toastIn 0.3s ease;
  min-width: 220px;
  max-width: 360px;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.info    { border-left: 4px solid var(--info); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

.profit-bar { height: 6px; border-radius: 3px; background: var(--success); margin-top: 4px; transition: width 0.5s ease; }
.profit-bar.negative { background: var(--danger); }

.text-muted { color: var(--muted); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--accent-3); }
.fw-600 { font-weight: 600; }
.font-mono { font-family: "Courier New", monospace; }
.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.empty-state i { width: 32px; height: 32px; margin-bottom: 0.5rem; opacity: 0.4; }

.primary-mobile { display: none; cursor: pointer; }

.address-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.address-link i { width: 14px; height: 14px; }
.address-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow); }
  .sidebar-close { display: flex; }
  .sidebar-overlay.open { display: block; }
  .main-wrapper { margin-left: 0; }
  .menu-toggle { display: flex; }
  .page-container { padding: 0.9rem; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .recent-grid { grid-template-columns: 1fr; }
  .form-cols { grid-template-columns: 1fr; }
  .page-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: unset; }
  .filter-group select { width: 100%; }
  .calendar-grid { font-size: 0.75rem; }
  .cal-day { min-height: 56px; }
  .modal { max-width: 100%; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 720px; }
}
@media (max-width: 640px) {
  .sidebar { width: 86vw; max-width: 320px; }
  .topbar { padding: 0 1rem; }
  .page-title { font-size: 1rem; }
  .btn { padding: 0.6rem 1rem; }
  .btn-icon { padding: 0.5rem; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 1rem; }
  .search-box { box-shadow: none; }
  .table-wrap { background: transparent; border: none; box-shadow: none; }
  .data-table { min-width: 0; width: 100%; }
  .data-table thead { display: none; }
  .data-table tbody tr {
    display: block;
    margin-bottom: 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
  }
  .data-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-top: 1px dashed var(--border);
  }
  .data-table tbody td:first-child { border-top: none; }
  .data-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    flex-shrink: 0;
  }
  .data-table td.empty-state { justify-content: center; text-align: center; }
  .data-table td.empty-state::before { content: ''; display: none; }
  .data-table tbody td.cell-actions {
    justify-content: flex-end;
  }
  .data-table tbody td.cell-actions::before { content: ''; display: none; }
  .data-table .actions { gap: 0.45rem; }
}
@media (max-width: 540px) {
  .primary-mobile { display: block; }
  .data-table tbody td.hide-mobile { display: none; }
  .data-table tbody td.primary-mobile {
    display: block;
    padding: 0.9rem 0.9rem 0.7rem;
    border-top: none;
  }
  .data-table tbody td.primary-mobile::before { content: ''; display: none; }
  .data-table tbody td.primary-mobile .cell-title { font-size: 1rem; font-weight: 700; }
  .data-table tbody td.primary-mobile .cell-sub { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
  .data-table tbody td.primary-mobile .cell-sub strong { color: var(--ink); font-weight: 600; }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  .stat-card .card-value { font-size: 1.5rem; }
  .calendar-grid { gap: 2px; }
  .cal-day { min-height: 48px; padding: 2px; }
  .cal-day-num { font-size: 0.7rem; }
  .detail-row { flex-direction: column; align-items: flex-start; }
  .detail-row span:last-child { text-align: left; }
  .cards-grid { gap: 0.8rem; }
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d6d0c7; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #bdb7ad; }
