/* MO STAYS admin — neutral dashboard UI */

:root {
  --brand-navy: #0a1d37;
  --brand-gold: #c9a227;
  --brand-gold-light: #e8d5a3;
  --adm-sidebar-w: 240px;
  --adm-bg: #f2f4f8;
  --adm-surface: #ffffff;
  --adm-border: #e2e5ea;
  --adm-border-light: #eef0f3;
  --adm-text: #10243d;
  --adm-text-secondary: #4a5f78;
  --adm-text-muted: #7a8da3;
  --adm-sidebar-bg: var(--brand-navy);
  --adm-sidebar-text: rgba(255, 255, 255, 0.68);
  --adm-sidebar-active: #ffffff;
  --adm-accent: var(--brand-navy);
  --adm-accent-hover: #0f2a4a;
  --adm-danger: #c92a2a;
  --adm-danger-bg: #fff5f5;
  --adm-success-bg: #ebfbee;
  --adm-success-text: #2b8a3e;
  --adm-warning-bg: #fff9db;
  --adm-warning-text: #e67700;
  --adm-radius: 6px;
  --adm-radius-lg: 8px;
  --adm-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --adm-shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --stat-indigo: #a8b4f5;
  --stat-emerald: #7dd3a8;
  --stat-cyan: #76d4cb;
  --stat-sun: #eecf7a;
  --stat-indigo-deep: #7c8ce8;
  --stat-emerald-deep: #5bc492;
  --stat-cyan-deep: #55bdb4;
  --stat-sun-deep: #d9b85a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--adm-text);
}

*, *::before, *::after { box-sizing: border-box; }
body.adm { margin: 0; background: var(--adm-bg); -webkit-font-smoothing: antialiased; }

/* Shell */
.adm-shell { display: flex; min-height: 100vh; }

/* Sidebar */
.adm-sidebar {
  width: var(--adm-sidebar-w);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.04), transparent 42%),
    linear-gradient(180deg, #0c2240 0%, var(--adm-sidebar-bg) 52%, #081a30 100%);
  color: var(--adm-sidebar-text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
}
.adm-sidebar-brand { padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.adm-brand-link {
  display: block;
  padding: 12px 14px;
  background: #ffffff;
  border-radius: 10px;
  text-decoration: none;
  line-height: 0;
  box-shadow: 0 8px 20px rgba(10, 29, 55, 0.12);
}
.adm-brand-link.is-fallback::after {
  content: 'MO STAYS';
  display: block;
  line-height: 1.3;
  font-size: 14px;
  font-weight: 600;
  color: var(--adm-text);
  text-align: center;
}
.adm-brand-logo { display: block; height: 36px; width: auto; max-width: 100%; margin: 0 auto; }
.adm-sidebar-vision {
  margin: 14px 2px 0;
  padding: 0 6px;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.42;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.01em;
}
.adm-sidebar-vision::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  margin: 11px auto 0;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-gold-light), transparent);
  opacity: 0.85;
}

.adm-sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.adm-sidebar-nav::-webkit-scrollbar {
  display: none;
}
.adm-nav-group {
  display: block;
  padding: 12px 10px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
}
.adm-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  margin-bottom: 2px;
  border-radius: var(--adm-radius);
  color: var(--adm-sidebar-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
}
.adm-nav-item:hover { background: rgba(255,255,255,0.08); color: #f3f6fa; }
.adm-nav-item.is-active {
  background: rgba(201, 162, 39, 0.14);
  color: var(--adm-sidebar-active);
  box-shadow: inset 3px 0 0 var(--brand-gold);
}
.adm-nav-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.75; }
.adm-nav-item.is-active .adm-nav-icon { opacity: 1; }
.adm-nav-label {
  flex: 1;
  min-width: 0;
}
.adm-nav-badge {
  flex-shrink: 0;
  min-width: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--brand-navy);
  background: var(--brand-gold-light);
  box-shadow: 0 0 0 1px rgba(10, 29, 55, 0.08);
}
.adm-nav-badge--alert {
  background: #e8a838;
  color: #fff;
}
.adm-nav-item.is-active .adm-nav-badge {
  background: var(--brand-gold);
  color: var(--brand-navy);
}
.adm-nav-item.is-active .adm-nav-badge--alert {
  background: #f97316;
  color: #fff;
}

.adm-sidebar-foot {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.adm-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.adm-user-link {
  text-decoration: none;
  border-radius: var(--adm-radius);
  padding: 6px 4px;
  margin: -6px -4px 4px;
  transition: background 0.12s;
}
.adm-user-link:hover { background: rgba(255,255,255,0.06); }
.adm-user-link.is-active { background: rgba(255,255,255,0.1); }
.adm-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
  flex-shrink: 0;
}
.adm-user-info { display: flex; flex-direction: column; min-width: 0; }
.adm-user-name { font-size: 13px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-user-role { font-size: 11px; color: rgba(255, 255, 255, 0.45); }
.adm-signout {
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--adm-radius);
  color: var(--adm-sidebar-text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.adm-signout:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(201, 162, 39, 0.45); }

/* Icon buttons (toolbar & tables) */
.adm-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  background: var(--adm-surface);
  color: var(--adm-text-secondary);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 0;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.adm-icon-btn--sm { width: 28px; height: 28px; }
.adm-icon-btn--labeled {
  width: auto;
  height: 34px;
  padding: 0 14px 0 11px;
  gap: 7px;
  line-height: 1;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.adm-icon-btn--labeled svg { flex-shrink: 0; }
.adm-icon-btn-label { line-height: 1; }
.adm-icon-btn:hover { background: var(--adm-bg); color: var(--adm-text); border-color: #c8cdd4; }
.adm-icon-btn.is-primary {
  background: linear-gradient(90deg, #d4b85a 0%, var(--brand-gold) 48%, #b8921f 100%);
  color: var(--brand-navy);
  border-color: var(--brand-gold);
}
.adm-icon-btn.is-primary:hover {
  filter: brightness(1.05);
  color: var(--brand-navy);
  border-color: #b8921f;
}
.adm-icon-btn.is-ghost { border-color: transparent; background: transparent; }
.adm-icon-btn.is-ghost:hover { background: var(--adm-bg); border-color: var(--adm-border); }
.adm-icon-btn.is-danger:hover { background: var(--adm-danger-bg); color: var(--adm-danger); border-color: #ffc9c9; }

.adm-panel-actions { display: flex; gap: 6px; align-items: center; }
.ms-col-actions { width: 44px; text-align: right; white-space: nowrap; }

/* Main area */
.adm-main {
  flex: 1;
  margin-left: var(--adm-sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.adm-topbar {
  height: 56px;
  background: var(--adm-surface);
  border-bottom: 1px solid var(--adm-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.adm-topbar-title { flex: 1; min-width: 0; }
.adm-crumb {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--brand-navy);
  letter-spacing: 0.01em;
}
.adm-topbar-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.adm-content { padding: 24px; flex: 1; min-width: 0; }

/* Page header (legacy ms-page-header) */
.ms-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ms-page-title {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--brand-navy);
}
.ms-page-sub { margin: 4px 0 0; }
.ms-page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Buttons */
.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--adm-radius);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.ms-btn--primary {
  background: linear-gradient(90deg, #d4b85a 0%, var(--brand-gold) 48%, #b8921f 100%);
  color: var(--brand-navy);
  border-color: var(--brand-gold);
  font-weight: 600;
}
.ms-btn--primary:hover {
  filter: brightness(1.05);
  background: linear-gradient(90deg, #d4b85a 0%, var(--brand-gold) 48%, #b8921f 100%);
  border-color: #b8921f;
}
.ms-btn--secondary { background: var(--adm-surface); color: var(--adm-text); border-color: var(--adm-border); }
.ms-btn--secondary:hover { background: var(--adm-bg); }
.ms-btn--ghost { background: transparent; color: var(--adm-text-secondary); border-color: var(--adm-border); }
.ms-btn--ghost:hover { background: var(--adm-bg); color: var(--adm-text); }
.ms-btn--danger { background: var(--adm-danger-bg); color: var(--adm-danger); border-color: #ffc9c9; }
.ms-btn--danger:hover { background: #ffe3e3; }
.ms-btn--block { width: 100%; }
.ms-btn--sm { padding: 4px 10px; font-size: 12px; }

/* Alerts */
.ms-alert {
  padding: 10px 14px;
  border-radius: var(--adm-radius);
  margin-bottom: 16px;
  font-size: 13px;
}
.ms-alert--success { background: var(--adm-success-bg); color: var(--adm-success-text); border: 1px solid #b2f2bb; }
.ms-alert--error { background: var(--adm-danger-bg); color: var(--adm-danger); border: 1px solid #ffc9c9; }
.ms-error-list { margin: 0; padding-left: 18px; }

/* Panels / cards */
.ms-card, .adm-panel {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
  box-shadow: var(--adm-shadow-sm);
  margin-bottom: 20px;
}
.ms-card { padding: 0; overflow: hidden; }
.adm-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--adm-border-light);
}
.adm-panel-title {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-navy);
}
.adm-panel-body { padding: 18px; }
.ms-card-title {
  margin: 0 0 14px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-navy);
  padding: 14px 18px 0;
}
.ms-card-subtitle { margin: 16px 18px 10px; font-size: 13px; font-weight: 600; color: var(--adm-text-secondary); }

/* Stats / KPIs */
.ms-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.adm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.adm-kpi {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
  padding: 16px 18px;
  box-shadow: var(--adm-shadow-sm);
}
.adm-kpi-label { display: block; font-size: 12px; font-weight: 500; color: var(--adm-text-muted); margin-bottom: 6px; }
.adm-kpi-value { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--adm-text); line-height: 1.2; }
.adm-kpi-value--sm { font-size: 18px; }

.ms-stat {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
  padding: 14px 16px;
  box-shadow: var(--adm-shadow-sm);
}
.ms-stat-label { display: block; font-size: 12px; font-weight: 500; color: var(--adm-text-muted); }
.ms-stat-value { display: block; font-size: 20px; font-weight: 600; margin-top: 4px; letter-spacing: -0.02em; }
.ms-stat--teal, .ms-stat--amber, .ms-stat--green, .ms-stat--warm, .ms-stat--slate { border-top: none; }

/* Dashboard */
.dash-period-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
  box-shadow: var(--adm-shadow-sm);
}
.dash-period-toolbar-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.dash-period-toolbar .ms-field { margin: 0; min-width: 180px; }
.dash-period-toolbar .ms-input[type="month"] { min-width: 160px; }
.dash-period-note {
  margin: 0;
  flex: 1 1 220px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--adm-text-muted);
  text-align: right;
}
.dash-hero {
  margin-bottom: 18px;
  padding-bottom: 4px;
}
.dash-hero-date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 12px;
}
.dash-hero-weekday {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--brand-navy);
}
.dash-hero-cal {
  font-size: 14px;
  font-weight: 500;
  color: var(--adm-text-muted);
}
.dash-hero-cal::before {
  content: '·';
  margin-right: 10px;
  color: var(--adm-border);
  font-weight: 400;
}
.dash-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--dash-pill-ink, var(--adm-text-secondary));
  background: var(--dash-pill-bg, #f1f3f5);
}
.dash-pill-val {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--dash-pill-val, var(--adm-text));
}
.dash-pill-text {
  font-weight: 500;
}
.dash-pill--upcoming {
  --dash-pill-bg: #eef2ff;
  --dash-pill-ink: #4f5d8c;
  --dash-pill-val: #3730a3;
}
.dash-pill--pending {
  --dash-pill-bg: #fff8e6;
  --dash-pill-ink: #8a6b2e;
  --dash-pill-val: #92400e;
}
.dash-pill--balance {
  --dash-pill-bg: #e8f7f5;
  --dash-pill-ink: #3d6b66;
  --dash-pill-val: #0f5c56;
}
.dash-pill--bookings {
  --dash-pill-bg: #eef2ff;
  --dash-pill-ink: #4f5d8c;
  --dash-pill-val: #3730a3;
}
.dash-pill--confirmed {
  --dash-pill-bg: #eaf7ef;
  --dash-pill-ink: #3d6b4f;
  --dash-pill-val: #166534;
}

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.dash-stat,
.bk-show-stat {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -3px 0 var(--stat-deep, rgba(0, 0, 0, 0.06)),
    0 10px 28px -8px var(--stat-glow, rgba(16, 24, 40, 0.12)),
    0 4px 12px rgba(16, 24, 40, 0.07);
}
.dash-stat::before,
.bk-show-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--stat-deep);
  opacity: 0.72;
  pointer-events: none;
}
.dash-stat::after,
.bk-show-stat::after {
  content: '';
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--stat-deep);
  opacity: 0.16;
  pointer-events: none;
}
.dash-stat {
  padding: 18px 20px 18px 22px;
  border-radius: 12px;
}
.bk-show-stat {
  padding: 16px 18px 16px 20px;
  border-radius: 12px;
}
.dash-stat-lbl,
.dash-stat-val,
.dash-stat-sub,
.bk-show-stat-lbl,
.bk-show-stat-val {
  position: relative;
  z-index: 1;
}
.dash-stat-lbl,
.bk-show-stat-lbl {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--stat-ink-muted);
}
.dash-stat-val,
.bk-show-stat-val {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--stat-ink);
}
.bk-show-stat-val {
  margin-top: 4px;
  font-size: 20px;
}
.dash-stat-sub {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--stat-ink-muted);
}
.dash-stat--slate,
.bk-show-stat--total {
  --stat-ink: #2e3354;
  --stat-ink-muted: #5258a3;
  --stat-deep: var(--stat-indigo-deep);
  --stat-glow: rgba(99, 102, 241, 0.28);
  background: var(--stat-indigo);
}
.dash-stat--green,
.bk-show-stat--balance.is-clear {
  --stat-ink: #1f4d38;
  --stat-ink-muted: #2d7a55;
  --stat-deep: var(--stat-emerald-deep);
  --stat-glow: rgba(34, 197, 94, 0.24);
  background: var(--stat-emerald);
}
.dash-stat--teal,
.bk-show-stat--paid {
  --stat-ink: #1f4a47;
  --stat-ink-muted: #2d7570;
  --stat-deep: var(--stat-cyan-deep);
  --stat-glow: rgba(45, 212, 191, 0.24);
  background: var(--stat-cyan);
}
.dash-stat--amber,
.bk-show-stat--balance.has-due {
  --stat-ink: #5c4520;
  --stat-ink-muted: #8a6b35;
  --stat-deep: var(--stat-sun-deep);
  --stat-glow: rgba(234, 179, 8, 0.22);
  background: var(--stat-sun);
}
.dash-stat-val--money .ms-money-totals-line {
  color: var(--stat-ink);
}

.dash-charts-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  min-width: 0;
}
.dash-chart-panel {
  min-width: 0;
  overflow: hidden;
}
.dash-chart-panel .adm-panel-head { padding-bottom: 8px; }
.dash-panel-note { font-size: 12px; color: var(--adm-text-muted); }
.dash-chart-legend {
  display: flex;
  gap: 16px;
  padding: 0 18px 10px;
  font-size: 12px;
  color: var(--adm-text-secondary);
}
.dash-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.dash-legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  font-style: normal;
}
.dash-legend-swatch--revenue { background: #7dd3a8; }
.dash-legend-swatch--revenue-usd { background: #a8b4f5; }
.dash-legend-swatch--cleaning { background: #eecf7a; }
.dash-legend-swatch--cleaning-usd { background: #d4a843; }
.dash-stat-val--money {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 20px;
  line-height: 1.25;
}
.dash-stat-val--money .ms-money-totals-line + .ms-money-totals-line {
  font-size: 17px;
  opacity: 0.92;
}
.ms-money-totals {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.ms-money-totals--table {
  align-items: flex-end;
  font-size: 13px;
  font-weight: 600;
}
.ms-money-totals--block .ms-money-totals-line {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--adm-text);
}
.ms-money-totals-line { display: block; font-variant-numeric: tabular-nums; }
.ms-money-totals-empty { color: var(--adm-text-muted); }
.bk-report-currency-note {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--adm-text-muted);
}
.bk-finance-currency-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bk-finance-currency-card {
  padding: 12px 14px;
  border: 1px solid var(--adm-border-light);
  border-radius: var(--adm-radius);
  background: #fafbfc;
}
.bk-finance-currency-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--adm-text-muted);
}
.dash-chart-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 260px;
  padding: 0 18px 16px;
}
.dash-chart-wrap--units {
  height: max(180px, calc(var(--unit-bars, 2) * 52px + 48px));
  padding-top: 8px;
}
.dash-chart-wrap canvas {
  display: block;
  max-width: 100%;
}

/* Bookings list */
.bk-stat-grid { margin-bottom: 18px; }
.bk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.bk-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--adm-border);
  border-radius: 99px;
  background: var(--adm-surface);
  color: var(--adm-text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.bk-filter:hover { color: var(--adm-text); border-color: #ced4da; }
.bk-filter.is-active {
  background: #3d4f5f;
  border-color: #3d4f5f;
  color: #fff;
}
.bk-filter--greece.is-active { background: #0d6e6e; border-color: #0d6e6e; }
.bk-filter--china.is-active { background: #9a5b14; border-color: #9a5b14; }
.bk-filter-count {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(0,0,0,0.06);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 18px;
}
.bk-filter.is-active .bk-filter-count { background: rgba(255,255,255,0.2); color: #fff; }

.bk-panel .adm-panel-head { border-bottom: 1px solid var(--adm-border-light); }
.bk-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bk-panel-count { font-size: 12px; color: var(--adm-text-muted); }
.bk-empty { padding: 32px 24px; text-align: center; }
.bk-empty p { margin: 0 0 14px; color: var(--adm-text-secondary); }
.bk-empty-text { margin: 0; padding: 24px 18px; color: var(--adm-text-muted); font-size: 13px; }

.bk-list { display: flex; flex-direction: column; }
.bk-row {
  display: grid;
  grid-template-columns: 1fr auto 148px 36px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--adm-border-light);
  border-left: 3px solid var(--unit-color, #adb5bd);
}
.bk-row:last-child { border-bottom: none; }
.bk-row:hover { background: #fafbfc; }
.bk-row-main { min-width: 0; }
.bk-row-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--adm-text);
  text-decoration: none;
}
.bk-row-name:hover { color: var(--adm-accent); }
.bk-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--adm-text-muted);
}
.bk-row-meta .ms-unit-badge { font-size: 12px; }
.bk-row-dot { opacity: 0.5; }
.bk-row-dates { display: block; font-size: 13px; font-weight: 500; color: var(--adm-text); }
.bk-row-nights { display: block; margin-top: 2px; font-size: 12px; color: var(--adm-text-muted); }
.bk-row-stay { margin-top: 6px; }
@media (min-width: 900px) {
  .bk-row { grid-template-columns: 1fr 120px 148px 36px; }
  .bk-row-stay { margin-top: 0; }
  .bk-row-main { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
}

.bk-status {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--adm-radius);
  border: none;
  cursor: pointer;
}
.bk-status--pending { background: var(--adm-warning-bg); color: var(--adm-warning-text); }
.bk-status--confirmed { background: var(--adm-success-bg); color: var(--adm-success-text); }
.bk-status--cancelled { background: #f1f3f5; color: var(--adm-text-muted); }

.bk-money-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
}
.bk-money-lbl { color: var(--adm-text-muted); }
.bk-money-val { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--adm-text); }
.bk-money-val.is-due { color: var(--adm-danger); }
.bk-money-line--balance { margin-top: 2px; padding-top: 4px; border-top: 1px solid var(--adm-border-light); }
.bk-pay-track {
  height: 4px;
  margin: 5px 0;
  background: var(--adm-border-light);
  border-radius: 2px;
  overflow: hidden;
}
.bk-pay-fill {
  display: block;
  height: 100%;
  background: #0d6e6e;
  border-radius: 2px;
}

/* Monthly report */
.bk-report-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 18px;
  padding: 16px 18px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
}
.bk-report-toolbar .ms-field { margin: 0; min-width: 180px; }
.bk-report-toolbar .ms-input[type="month"] {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.bk-report-submit {
  padding: 8px 16px;
  border: none;
  border-radius: var(--adm-radius);
  background: var(--adm-accent);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.bk-report-submit:hover { background: #2558c7; }

.bk-report-panel { margin-bottom: 18px; }
.bk-report-panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--adm-border-light);
}
.bk-report-month-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--adm-text);
}
.bk-report-hint {
  margin: 0;
  font-size: 13px;
  color: var(--adm-text-muted);
}
.bk-report-body { padding: 18px 20px 20px; }

.bk-report-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}
.bk-report-charts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 210px;
}
.bk-report-stat-group { margin-bottom: 14px; }
.bk-report-stat-group:last-child { margin-bottom: 0; }
.bk-report-stat-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--adm-text-muted);
}
.bk-report-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.bk-report-stat-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-report-stat {
  padding: 10px 12px;
  background: #fafbfc;
  border: 1px solid var(--adm-border-light);
  border-radius: var(--adm-radius);
}
.bk-report-stat-lbl {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--adm-text-muted);
}
.bk-report-stat-val {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--adm-text);
  line-height: 1.2;
}
.bk-report-stat-val--sm { font-size: 17px; }
.bk-report-stat-suffix {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--adm-text-muted);
}

.bk-finance-block {
  padding-top: 16px;
  border-top: 1px solid var(--adm-border-light);
}
.bk-finance-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.bk-finance-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.bk-finance-metric {
  padding: 10px 12px;
  border-radius: var(--adm-radius);
  border: 1px solid var(--adm-border-light);
  background: #fafbfc;
}
.bk-finance-metric-lbl {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--adm-text-muted);
}
.bk-finance-metric-val {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.bk-finance-metric--revenue .bk-finance-metric-val { color: #0d6e6e; }
.bk-finance-metric--paid .bk-finance-metric-val { color: #2d6a4f; }
.bk-finance-metric--received .bk-finance-metric-val { color: #1d4ed8; }
.bk-finance-metric--due .bk-finance-metric-val { color: #9a5b14; }

.bk-mini-chart {
  padding: 12px 14px;
  background: #fafbfc;
  border: 1px solid var(--adm-border-light);
  border-radius: var(--adm-radius);
}
.bk-mini-chart-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--adm-text-muted);
}
.bk-chart-empty {
  margin: 0;
  font-size: 12px;
  color: var(--adm-text-muted);
}
.bk-stack-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--adm-border-light);
}
.bk-stack-seg--confirmed { background: #2d6a4f; }
.bk-stack-seg--pending { background: #9a5b14; }
.bk-stack-seg--cancelled { background: #94a3b8; }
.bk-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  color: var(--adm-text-secondary);
}
.bk-chart-legend li { display: flex; align-items: center; gap: 6px; }
.bk-legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.bk-legend-swatch--confirmed { background: #2d6a4f; }
.bk-legend-swatch--pending { background: #9a5b14; }
.bk-legend-swatch--cancelled { background: #94a3b8; }

.bk-ring-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto;
}
.bk-ring-bg { stroke: var(--adm-border-light); }
.bk-ring-fill {
  stroke: #0d6e6e;
  stroke-linecap: round;
}
.bk-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #0d6e6e;
}
.bk-ring-caption {
  margin: 6px 0 0;
  font-size: 11px;
  text-align: center;
  color: var(--adm-text-muted);
}

.bk-bar-chart { display: flex; flex-direction: column; gap: 8px; }
.bk-bar-row {
  display: grid;
  grid-template-columns: 4.75rem 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 11px;
}
.bk-bar-label { font-weight: 600; color: var(--adm-text-secondary); }
.bk-bar-track {
  height: 8px;
  background: var(--adm-border-light);
  border-radius: 4px;
  overflow: hidden;
}
.bk-bar-fill {
  height: 100%;
  border-radius: 4px;
  min-width: 2px;
  background: #0d6e6e;
}
.bk-bar-fill--revenue { background: #0d6e6e; }
.bk-bar-fill--paid { background: #2d6a4f; }
.bk-bar-fill--due { background: #9a5b14; }
.bk-bar-amt {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--adm-text);
  white-space: nowrap;
}

.bk-report-table-panel .adm-panel-head { border-bottom: 1px solid var(--adm-border-light); }

/* Booking detail */
.bk-show-header {
  margin-bottom: 18px;
  padding: 20px 22px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
  border-left: 4px solid var(--unit-color, #adb5bd);
}
.bk-show-header-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
}
.bk-show-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--adm-text);
}
.bk-show-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--adm-text-muted);
}
.bk-show-stay-block { text-align: right; }
.bk-show-dates { display: block; font-size: 15px; font-weight: 600; color: var(--adm-text); }
.bk-show-nights { display: block; margin-top: 2px; font-size: 12px; color: var(--adm-text-muted); }

.bk-show-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.bk-show-stat--paid .bk-pay-track { margin-top: 10px; background: rgba(31, 74, 71, 0.14); }
.bk-show-stat--paid .bk-pay-fill { background: rgba(31, 74, 71, 0.45); }
.bk-show-stat--balance.is-clear .bk-pay-track { background: rgba(31, 77, 56, 0.14); }
.bk-show-stat--balance.is-clear .bk-pay-fill { background: rgba(31, 77, 56, 0.45); }
.bk-show-stat--balance.has-due .bk-pay-track { background: rgba(92, 69, 32, 0.14); }
.bk-show-stat--balance.has-due .bk-pay-fill { background: rgba(92, 69, 32, 0.45); }

.bk-show-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  margin-bottom: 20px;
  align-items: start;
}
.bk-detail { margin: 0; padding: 4px 18px 18px; }
.bk-detail-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--adm-border-light);
}
.bk-detail-row:last-child { border-bottom: none; }
.bk-detail-row dt {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--adm-text-muted);
}
.bk-detail-row dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--adm-text);
}

.bk-show-status-box { padding: 14px 18px 18px; }
.bk-show-status-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}

.bk-payments { display: flex; flex-direction: column; }
.bk-payment {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--adm-border-light);
}
.bk-payment:last-child { border-bottom: none; }
.bk-payment-form {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px 12px;
  align-items: end;
}
.bk-payment-form--add { padding: 0; }
.bk-payment-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bk-payment-field--sm { max-width: 100px; }
.bk-payment-field--wide { grid-column: span 2; }
.bk-payment-lbl { font-size: 11px; font-weight: 500; color: var(--adm-text-muted); }
.bk-payment-actions { display: flex; align-items: flex-end; }
.bk-payment-delete { flex-shrink: 0; padding-top: 22px; }

.bk-payment-add {
  margin: 0 18px 18px;
  padding: 16px 18px;
  background: #f8f9fa;
  border: 1px solid var(--adm-border-light);
  border-radius: var(--adm-radius);
}
.bk-payment-add-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--adm-text);
}

.bk-show-danger {
  padding: 16px 0 0;
  border-top: 1px solid var(--adm-border-light);
}

/* Cleaning & laundry */
.cl-stat-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
.cl-filters { margin-bottom: 18px; }

.cl-list { display: flex; flex-direction: column; }
.cl-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--adm-border-light);
  border-left: 3px solid var(--unit-color, #adb5bd);
}
.cl-row:last-child { border-bottom: none; }
.cl-row:hover { background: #fafbfc; }
.cl-row-main { min-width: 0; }
.cl-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.cl-row-date { font-size: 14px; font-weight: 600; color: var(--adm-text); }
.cl-row-cleaner { display: block; font-size: 13px; font-weight: 500; color: var(--adm-text-secondary); }
.cl-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--adm-text-muted);
}
.cl-row-notes { font-style: italic; }
.cl-row-amount {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--adm-text);
  white-space: nowrap;
}
.cl-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cl-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cl-type--cleaning { background: #e6fcf5; color: #0b7285; }
.cl-type--laundry { background: #e7f5ff; color: #1864ab; }
.cl-type--both { background: #fff4e6; color: #9a5b14; }

.cl-form-header {
  margin-bottom: 18px;
  padding: 18px 20px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
  border-left: 4px solid #9a5b14;
}
.cl-form-header--edit {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  border-left-color: var(--unit-color, #9a5b14);
}
.cl-form-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--adm-text);
}
.cl-form-intro {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--adm-text-secondary);
  max-width: 52ch;
}
.cl-form-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--adm-text-muted);
}
.cl-form-header-amt {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--adm-text);
}
.cl-form { padding: 4px 18px 18px; }
.cl-form-grid { padding-top: 4px; }

/* Units */
.un-stat-grid { grid-template-columns: repeat(2, 1fr); max-width: 520px; margin-bottom: 16px; }
.un-intro { margin: 0 0 18px; font-size: 14px; color: var(--adm-text-secondary); max-width: 60ch; }

.un-panel { overflow: hidden; }
.un-panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--adm-border-light);
}
.un-panel-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--adm-text-muted);
}

.un-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 18px 20px 20px;
}
.un-card {
  display: flex;
  flex-direction: column;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
  overflow: hidden;
  box-shadow: var(--adm-shadow-sm);
}
.un-card--inactive { opacity: 0.72; }
.un-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  background: color-mix(in srgb, var(--unit-color, #adb5bd) 12%, #fff);
  border-bottom: 3px solid var(--unit-color, #adb5bd);
}
.un-card-identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.un-card-swatch {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 3px;
  background: var(--unit-color, #adb5bd);
  flex-shrink: 0;
}
.un-card-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--adm-text);
  line-height: 1.2;
}
.un-card-loc {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--adm-text-secondary);
}

.un-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.un-status--active { background: var(--adm-success-bg); color: var(--adm-success-text); }
.un-status--inactive { background: #f1f3f5; color: var(--adm-text-muted); }

.un-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--adm-border-light);
}
.un-card-stat {
  margin: 0;
  padding: 12px 14px;
  background: var(--adm-surface);
}
.un-card-stat dt {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--adm-text-muted);
}
.un-card-stat dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--adm-text);
}

.un-card-foot {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border-top: 1px solid var(--adm-border-light);
  background: #fafbfc;
}
.un-card-link {
  flex: 1;
  padding: 6px 10px;
  border-radius: var(--adm-radius);
  font-size: 12px;
  font-weight: 600;
  color: var(--adm-text-secondary);
  text-align: center;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.un-card-link:hover {
  background: var(--adm-surface);
  color: var(--adm-text);
}
.un-card-link--edit { color: var(--adm-accent); }
.un-card-link--edit:hover { background: rgba(201, 162, 39, 0.12); color: var(--adm-accent-hover); }

.un-form-header {
  margin-bottom: 18px;
  padding: 18px 20px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
  border-left: 4px solid #3d4f5f;
}
.un-form-header--edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  border-left-color: var(--unit-color, #3d4f5f);
}
.un-form-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--adm-text);
}
.un-form-intro {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--adm-text-secondary);
  max-width: 52ch;
}
.un-form-meta {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--adm-text-muted);
}
.un-form-meta code { font-size: 12px; background: var(--adm-bg); padding: 2px 6px; border-radius: 3px; }
.un-form-swatch {
  width: 40px;
  height: 40px;
  border-radius: var(--adm-radius);
  border: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.un-form { padding: 4px 18px 18px; }
.un-form-grid { padding-top: 4px; }

.dash-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
.dash-col-main, .dash-col-side { display: flex; flex-direction: column; gap: 20px; }
.dash-empty { margin: 0; padding: 16px 18px; font-size: 13px; color: var(--adm-text-muted); }
.dash-guest { font-weight: 500; }

.dash-attn-list, .dash-clean-list { list-style: none; margin: 0; padding: 0; }
.dash-attn-item, .dash-clean-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--adm-border-light);
}
.dash-attn-item:last-child, .dash-clean-item:last-child { border-bottom: none; }
.dash-attn-main { min-width: 0; }
.dash-attn-guest { display: block; font-size: 13px; font-weight: 500; }
.dash-attn-meta { display: block; font-size: 12px; color: var(--adm-text-muted); margin-top: 1px; }
.dash-attn-end { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dash-attn-amt { font-size: 12px; font-weight: 600; color: var(--adm-danger); font-variant-numeric: tabular-nums; }
.dash-clean-date { display: block; font-size: 13px; font-weight: 500; }
.dash-clean-meta { display: block; font-size: 12px; color: var(--adm-text-muted); margin-top: 1px; }
.dash-clean-amt { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* Unit cards */
.ms-unit-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.adm-unit-list { display: flex; flex-direction: column; }
.adm-unit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--adm-border-light);
  gap: 12px;
}
.adm-unit-row:last-child { border-bottom: none; }
.adm-unit-row-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adm-unit-swatch {
  width: 8px; height: 32px;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--unit-color, #6b7280);
}
.adm-unit-row-name { font-weight: 600; font-size: 13px; }
.adm-unit-row-loc { font-size: 12px; color: var(--adm-text-muted); }
.adm-unit-row-stats { display: flex; gap: 20px; text-align: right; flex-shrink: 0; }
.adm-unit-stat-num { display: block; font-weight: 600; font-size: 14px; }
.adm-unit-stat-lbl { display: block; font-size: 11px; color: var(--adm-text-muted); }

.ms-unit-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
  padding: 16px;
  border-left: none;
  box-shadow: var(--adm-shadow-sm);
}
.ms-unit-card-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.ms-unit-card-loc { color: var(--adm-text-muted); font-size: 12px; }
.ms-unit-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.ms-unit-card-stats dt { font-size: 11px; color: var(--adm-text-muted); font-weight: 500; }
.ms-unit-card-stats dd { margin: 0; font-weight: 600; font-size: 16px; }
.ms-unit-meta { margin: 6px 0; font-size: 12px; color: var(--adm-text-muted); }
.ms-unit-meta code { font-size: 11px; background: var(--adm-bg); padding: 2px 6px; border-radius: 3px; }

/* Unit badge */
.ms-unit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}
.ms-unit-badge-dot {
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--unit-color, #6b7280);
  flex-shrink: 0;
}
.ms-unit-badge-name { font-weight: 600; }
.ms-unit-badge-loc { color: var(--adm-text-muted); font-size: 12px; font-weight: 400; }
.ms-unit-badge-loc::before { content: "·"; margin: 0 3px; }

/* Tables */
.ms-table-wrap { overflow-x: auto; }
.ms-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ms-card .ms-table-wrap, .adm-panel .ms-table-wrap { margin: 0; }
.ms-card > .ms-table-wrap .ms-table thead th,
.adm-panel .ms-table thead th {
  background: #f9fafb;
  border-bottom: 1px solid var(--adm-border);
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--adm-text-muted);
}
.ms-card > .ms-table-wrap .ms-table td,
.adm-panel .ms-table td {
  padding: 11px 18px;
  border-bottom: 1px solid var(--adm-border-light);
  vertical-align: middle;
}
.ms-table th, .ms-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--adm-border-light); vertical-align: top; }
.ms-table th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--adm-text-muted); background: #f9fafb; }
.ms-table tbody tr:hover { background: #fafbfc; }
.ms-table--rich td { vertical-align: middle; }
.ms-col-num { text-align: right; font-variant-numeric: tabular-nums; }
.ms-row--highlight { background: #f8f9fb; }
.ms-balance-due { color: var(--adm-danger); font-weight: 600; }

/* Tabs / filters */
.ms-subnav, .ms-filter-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--adm-border);
}
.ms-subnav-link, .ms-filter-tab {
  text-decoration: none;
  color: var(--adm-text-secondary);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  border-radius: 0;
  background: none;
  border-top: none; border-left: none; border-right: none;
}
.ms-subnav-link:hover, .ms-filter-tab:hover { color: var(--adm-text); }
.ms-subnav-link.is-active, .ms-filter-tab.is-active {
  color: var(--adm-accent);
  border-bottom-color: var(--adm-accent);
  background: none;
}
.ms-filter-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: var(--adm-bg);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--adm-text-muted);
}
.ms-filter-tab.is-active .ms-filter-count { background: rgba(201, 162, 39, 0.18); color: var(--brand-navy); }

/* Forms */
.ms-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ms-field { display: flex; flex-direction: column; gap: 5px; }
.ms-field--full { grid-column: 1 / -1; }
.ms-label { font-size: 12px; font-weight: 500; color: var(--adm-text-secondary); }
.ms-req { color: var(--adm-danger); }
.ms-input, .ms-select {
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  background: var(--adm-surface);
  color: var(--adm-text);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.ms-input:focus, .ms-select:focus {
  outline: none;
  border-color: var(--adm-accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}
.ms-input--locked { background: #f9fafb; color: var(--adm-text-muted); cursor: not-allowed; }
.ms-input--compact, .ms-select--compact { padding: 5px 8px; font-size: 12px; }
.ms-input--color { height: 38px; padding: 2px; }
.ms-lock-hint { font-weight: 400; color: var(--adm-text-muted); }
.ms-check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ms-form { padding: 18px; }
.ms-form-actions { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.ms-fieldset { border: 1px solid var(--adm-border-light); border-radius: var(--adm-radius); padding: 14px; margin-top: 16px; }
.ms-legend { font-weight: 600; font-size: 13px; padding: 0 4px; }
.ms-input--readonly { background: #f8f9fa; color: var(--adm-text-secondary); cursor: default; }
.ms-password-field {
  position: relative;
  display: block;
}
.ms-password-field .ms-input {
  width: 100%;
  padding-right: 42px;
}
.ms-password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: var(--adm-radius);
  background: transparent;
  color: var(--adm-text-muted);
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
}
.ms-password-toggle:hover {
  color: var(--adm-text-secondary);
  background: rgba(16, 24, 40, 0.05);
}
.ms-password-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}
.ms-password-icon { display: block; }
.ms-password-icon--hide { display: none; }
.ms-password-toggle.is-visible .ms-password-icon--show { display: none; }
.ms-password-toggle.is-visible .ms-password-icon--hide { display: block; }

/* Booking form */
.bk-form-header {
  margin-bottom: 18px;
  padding: 18px 20px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
  border-left: 4px solid var(--unit-color, #3d4f5f);
}
.bk-form-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--adm-text);
}
.bk-form-intro {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--adm-text-muted);
}
.bk-form-panel { overflow: hidden; }
.bk-form { padding: 20px 22px 22px; }
.bk-form-section {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--adm-border-light);
}
.bk-form-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.bk-form-section-head { margin-bottom: 14px; }
.bk-form-section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--adm-text);
}
.bk-form-section-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--adm-text-muted);
}

.ms-unit-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.ms-unit-option {
  position: relative;
  display: block;
  cursor: pointer;
}
.ms-unit-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.ms-unit-option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 72px;
  padding: 14px 14px 14px 16px;
  border: 2px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
  background: var(--adm-surface);
  border-left: 4px solid var(--unit-color, #adb5bd);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.ms-unit-option:hover .ms-unit-option-card {
  border-color: #ced4da;
  background: #fafbfc;
}
.ms-unit-option.is-selected .ms-unit-option-card,
.ms-unit-option input:checked + .ms-unit-option-card {
  border-color: var(--unit-color, var(--adm-accent));
  background: color-mix(in srgb, var(--unit-color, #3d4f5f) 6%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--unit-color, #3d4f5f) 14%, transparent);
}
.ms-unit-option-mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid #ced4da;
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.ms-unit-option-mark::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 3px auto 0;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s;
}
.ms-unit-option.is-selected .ms-unit-option-mark,
.ms-unit-option input:checked + .ms-unit-option-card .ms-unit-option-mark {
  border-color: var(--unit-color, var(--adm-accent));
  background: var(--unit-color, var(--adm-accent));
  box-shadow: inset 0 0 0 2px #fff;
}
.ms-unit-option.is-selected .ms-unit-option-mark::after,
.ms-unit-option input:checked + .ms-unit-option-card .ms-unit-option-mark::after {
  background: #fff;
}
.ms-unit-option-body { min-width: 0; }
.ms-unit-option-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--adm-text);
  line-height: 1.3;
}
.ms-unit-option-loc {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--adm-text-muted);
  line-height: 1.35;
}

.bk-payment-panel {
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
  background: #fafbfc;
  overflow: hidden;
}
.bk-payment-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
}
.bk-payment-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.bk-payment-toggle-ui {
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  margin-top: 2px;
  border-radius: 11px;
  background: #ced4da;
  position: relative;
  transition: background 0.2s;
}
.bk-payment-toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}
.bk-payment-panel.is-open .bk-payment-toggle-ui {
  background: var(--adm-accent);
}
.bk-payment-panel.is-open .bk-payment-toggle-ui::after {
  transform: translateX(18px);
}
.bk-payment-toggle-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--adm-text);
}
.bk-payment-toggle-text small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--adm-text-muted);
  line-height: 1.4;
}
.bk-payment-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--adm-border-light);
  background: var(--adm-surface);
}
.bk-payment-panel:not(.is-open) .bk-payment-body {
  display: none;
}
.bk-payment-panel.is-open .bk-payment-body {
  display: block;
  padding-top: 16px;
}
.ms-payment-grid { margin-top: 0; }

/* Links & text */
.ms-link, .ms-link-strong { color: var(--adm-accent); text-decoration: none; font-size: 13px; font-weight: 500; }
.ms-link-strong { font-weight: 600; }
.ms-link:hover, .ms-link-strong:hover { text-decoration: underline; }
.ms-meta { display: block; font-size: 12px; color: var(--adm-text-muted); margin-top: 2px; }
.ms-empty, .ms-empty-inline, .ms-hint { color: var(--adm-text-muted); font-size: 13px; }
.ms-list-meta { margin: 0 0 12px; font-size: 12px; color: var(--adm-text-muted); }
.ms-section { margin-bottom: 24px; }
.ms-section-title { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.ms-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }

/* Money strip */
.ms-money-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
  padding: 16px;
}
.ms-money-item { padding: 0; box-shadow: none; background: none; }
.ms-money-item--due .ms-money-value { color: var(--adm-danger); }
.ms-money-label { font-size: 11px; font-weight: 500; color: var(--adm-text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.ms-money-value { font-size: 18px; font-weight: 600; }

/* Badges */
.ms-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.01em;
}
.ms-badge--pending { background: var(--adm-warning-bg); color: var(--adm-warning-text); }
.ms-badge--confirmed { background: var(--adm-success-bg); color: var(--adm-success-text); }
.ms-badge--cancelled { background: #f1f3f5; color: var(--adm-text-muted); }

.ms-dl { display: grid; gap: 10px; }
.ms-dl div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.ms-dl dt { color: var(--adm-text-muted); font-size: 12px; font-weight: 500; }
.ms-dl dd { margin: 0; font-weight: 500; font-size: 13px; }
.ms-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding: 18px; }

.ms-payment-row { padding: 8px 0 !important; }
.ms-payment-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ms-inline-form { display: inline-flex; gap: 4px; align-items: center; margin: 0; }
.ms-col-actions .ms-inline-form { display: inline-flex; }
.ms-actions-cell { white-space: nowrap; }
.ms-danger-zone { margin: 20px 18px 18px; padding-top: 16px; border-top: 1px solid var(--adm-border-light); }
.ms-month-picker { margin-bottom: 16px; }
.ms-select--status { font-size: 12px; padding: 4px 8px; }

/* Quick actions */
.adm-quick-actions { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 18px; }
.adm-quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  text-decoration: none;
  color: var(--adm-text);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s, border-color 0.12s;
}
.adm-quick-action:hover { background: var(--adm-bg); border-color: #d1d5db; }
.adm-quick-action-icon {
  width: 32px; height: 32px;
  border-radius: var(--adm-radius);
  background: var(--adm-bg);
  display: grid; place-items: center;
  color: var(--adm-text-secondary);
  flex-shrink: 0;
}

.adm-pin-modal {
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
  padding: 20px;
  max-width: 360px;
}
.adm-pin-modal::backdrop { background: rgba(0,0,0,0.35); }
.adm-pin-modal h3 { margin: 0 0 8px; font-size: 16px; }

/* Users */
.us-stat-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
.us-form-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 20px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
}
.us-form-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--adm-text);
}
.us-form-intro {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--adm-text-muted);
}
.us-form { padding: 18px 20px 20px; }
.us-form-hint {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--adm-text-muted);
  line-height: 1.45;
}
.us-name { font-weight: 600; color: var(--adm-text); }
.us-you {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #e8f0fe;
  color: #1d4ed8;
  vertical-align: middle;
}

/* User edit */
.us-edit-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 22px 24px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  box-shadow: var(--adm-shadow-sm);
  border-left: 4px solid var(--us-edit-accent, #6b7f9e);
}
.us-edit-hero--admin { --us-edit-accent: #6366f1; }
.us-edit-hero--staff { --us-edit-accent: #64748b; }
.us-edit-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  background: var(--us-edit-accent, #6b7f9e);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--us-edit-accent, #6b7f9e) 35%, transparent);
}
.us-edit-hero-body { min-width: 0; }
.us-edit-hero-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.us-edit-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--adm-text);
}
.us-edit-email {
  margin: 4px 0 10px;
  font-size: 14px;
  color: var(--adm-text-secondary);
}
.us-edit-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.us-edit-chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--adm-text-muted);
  background: var(--adm-bg);
  border: 1px solid var(--adm-border-light);
}
.us-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.us-edit-panel-body { padding: 18px 20px 20px; }
.us-edit-role-block { margin-top: 18px; }
.us-edit-role-block .ms-label { display: block; margin-bottom: 4px; }
.us-edit-role-block .us-form-hint { margin: 0 0 12px; }
.us-role-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.us-role-option { cursor: pointer; }
.us-role-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.us-role-option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 13px;
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  background: #fafbfc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.us-role-option:hover .us-role-option-card {
  border-color: #c5cad3;
  background: #fff;
}
.us-role-option--admin.is-selected .us-role-option-card,
.us-role-option--admin input:checked + .us-role-option-card {
  border-color: #a5b4fc;
  background: #f5f7ff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.us-role-option--staff.is-selected .us-role-option-card,
.us-role-option--staff input:checked + .us-role-option-card {
  border-color: #cbd5e1;
  background: #f8fafc;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.1);
}
.us-role-option-mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid var(--adm-border);
  background: #fff;
  position: relative;
}
.us-role-option-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s;
}
.us-role-option--admin.is-selected .us-role-option-mark,
.us-role-option--admin input:checked + .us-role-option-card .us-role-option-mark {
  border-color: #6366f1;
}
.us-role-option--admin.is-selected .us-role-option-mark::after,
.us-role-option--admin input:checked + .us-role-option-card .us-role-option-mark::after {
  background: #6366f1;
}
.us-role-option--staff.is-selected .us-role-option-mark,
.us-role-option--staff input:checked + .us-role-option-card .us-role-option-mark {
  border-color: #64748b;
}
.us-role-option--staff.is-selected .us-role-option-mark::after,
.us-role-option--staff input:checked + .us-role-option-card .us-role-option-mark::after {
  background: #64748b;
}
.us-role-option-body { min-width: 0; }
.us-role-option-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--adm-text);
  line-height: 1.3;
}
.us-role-option-desc {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--adm-text-muted);
}
.us-edit-password-grid { margin-top: 4px; }
.us-edit-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
  box-shadow: var(--adm-shadow-sm);
}
.us-edit-danger {
  margin-top: 18px;
  border-color: #fecaca;
  background: #fffafa;
}
.us-edit-danger-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}
.us-edit-danger-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--adm-danger);
}
.us-edit-danger-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--adm-text-secondary);
  max-width: 42rem;
}

/* Profile */
.pf-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px 22px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
}
.pf-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background: #3d4f5f;
}
.pf-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--adm-text);
}
.pf-meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--adm-text-muted);
}
.pf-role {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.pf-role--admin { background: #e8f0fe; color: #1d4ed8; }
.pf-role--staff { background: #f1f3f5; color: var(--adm-text-secondary); }
.pf-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: start;
}
.pf-form { padding: 18px 20px 20px; }
.pf-hint {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--adm-text-muted);
  line-height: 1.45;
}

/* Auth (login / password reset) */
body.adm-auth {
  --auth-navy: #0a1d37;
  --auth-navy-deep: #061428;
  --auth-gold: #c9a227;
  --auth-gold-light: #e8d5a3;
  --auth-white-w: 340px;
  --auth-navy-h: 500px;
  --auth-overlap: 85px;
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff;
  position: relative;
  overflow-x: hidden;
}
.adm-auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #e8edf2;
}
.adm-auth-bg-photo {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  object-fit: cover;
  object-position: center 42%;
  filter: blur(5px) saturate(1.05) brightness(1.04);
  transform: scale(1.02);
}
.adm-auth-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 12% 58%, rgba(255, 255, 255, 0.18), transparent 72%),
    radial-gradient(ellipse 48% 42% at 88% 32%, rgba(255, 255, 255, 0.22), transparent 68%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(232, 238, 245, 0.08) 55%, rgba(220, 228, 238, 0.12) 100%);
}
.adm-auth-bg-arc {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}
.adm-auth-bg-arc--1 {
  width: 520px;
  height: 520px;
  top: 8%;
  right: -8%;
  opacity: 0.7;
}
.adm-auth-bg-arc--2 {
  width: 380px;
  height: 380px;
  top: 22%;
  right: 4%;
  opacity: 0.5;
}
.adm-auth-bg-arc--3 {
  width: 240px;
  height: 240px;
  top: 38%;
  right: 14%;
  opacity: 0.35;
}
.adm-auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.adm-auth-stage {
  position: relative;
  width: min(920px, 100%);
  min-height: var(--auth-navy-h);
  box-sizing: border-box;
}
.adm-auth-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: var(--auth-navy-h);
  padding: 40px clamp(24px, 4vw, 52px) 40px calc(var(--auth-white-w) - var(--auth-overlap));
  background:
    radial-gradient(circle at 88% 50%, rgba(255, 255, 255, 0.05), transparent 42%),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.04), transparent 45%),
    linear-gradient(160deg, #0c2240 0%, var(--auth-navy) 55%, #081a30 100%);
  border-radius: 12px;
  box-shadow: 0 24px 56px rgba(10, 29, 55, 0.28);
}
.adm-auth-panel-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(390px, 100%);
  margin: 0;
}
.adm-auth-aside {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(var(--auth-white-w), 82vw);
  height: auto;
  max-height: 100%;
  padding: 34px 28px 22px;
  background: #fff;
  color: var(--auth-navy);
  text-align: center;
  border-radius: 12px;
  box-shadow:
    0 18px 40px rgba(10, 29, 55, 0.16),
    4px 0 18px rgba(10, 29, 55, 0.08);
}
.adm-auth-aside-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 0;
  padding: 8px 0 4px;
}
.adm-auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.adm-auth-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.adm-auth-logo-wrap.is-fallback::after {
  content: 'MO STAYS';
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--auth-navy);
}
.adm-auth-logo {
  display: block;
  width: min(285px, 100%);
  max-width: 100%;
  height: auto;
}
.adm-auth-vision {
  margin: 0;
  max-width: 300px;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 25px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.38;
  letter-spacing: 0.01em;
  color: #2a4560;
}
.adm-auth-rule {
  display: block;
  width: 52px;
  height: 2px;
  border-radius: 2px;
}
.adm-auth-rule--light {
  background: linear-gradient(90deg, transparent, var(--auth-gold-light), transparent);
}
.adm-auth-rule--gold {
  background: linear-gradient(90deg, var(--auth-gold-light), var(--auth-gold), var(--auth-gold-light));
}
.adm-auth-tagline {
  margin: 0;
  max-width: 300px;
  font-size: 12px;
  line-height: 1.75;
  color: #6a8098;
}
.adm-auth-illustration-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  padding: 0 8px;
  pointer-events: none;
}
.adm-auth-lounge {
  display: block;
  width: min(300px, 100%);
  max-height: 220px;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.16;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(0.85);
}
.adm-auth-aside-foot {
  margin: 0;
  padding-top: 18px;
  font-size: 11px;
  color: #9aafc4;
}
.adm-auth-heading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.adm-auth-heading {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  letter-spacing: 0.01em;
}
.adm-auth-subheading {
  margin: -12px 0 24px;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}
.adm-auth-subheading strong { color: #fff; }
.adm-auth-form {
  display: grid;
  gap: 14px;
  width: 100%;
}
.adm-auth-field {
  display: block;
}
.adm-auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.adm-auth-input-icon {
  position: absolute;
  left: 14px;
  display: inline-flex;
  color: #8a9bb0;
  pointer-events: none;
}
.adm-auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px 14px 44px;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: #1a2b42;
  font: inherit;
  font-size: 14px;
}
.adm-auth-field--password .adm-auth-input {
  padding-right: 46px;
}
.adm-auth-input::placeholder {
  color: #8a9bb0;
}
.adm-auth-input:focus {
  outline: 2px solid rgba(201, 162, 39, 0.55);
  outline-offset: 1px;
}
.adm-auth-eye {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #6b7f96;
  cursor: pointer;
}
.adm-auth-eye:hover { color: var(--auth-navy); }
.adm-auth-eye-icon--hide { display: none; }
.adm-auth-eye.is-visible .adm-auth-eye-icon--show { display: none; }
.adm-auth-eye.is-visible .adm-auth-eye-icon--hide { display: block; }
.adm-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.adm-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}
.adm-auth-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--auth-gold);
}
.adm-auth-link {
  font-size: 13px;
  font-weight: 500;
  color: #8ec8f0;
  text-decoration: none;
}
.adm-auth-link:hover { text-decoration: underline; color: #b3daf7; }
.adm-auth-submit {
  margin-top: 8px;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(90deg, #d4b85a 0%, #c9a227 48%, #b8921f 100%);
  color: var(--auth-navy);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}
.adm-auth-submit:hover {
  filter: brightness(1.05);
}
.adm-auth-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.adm-auth-or::before,
.adm-auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}
.adm-auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: not-allowed;
  opacity: 0.72;
}
.adm-auth-google-icon { flex-shrink: 0; }
.adm-auth-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
}
.adm-auth-alert--success {
  background: rgba(255, 255, 255, 0.12);
  color: #e8f4ff;
}
.adm-auth-alert--error {
  background: rgba(220, 53, 69, 0.22);
  color: #ffe8ea;
}
.adm-auth-back {
  margin: 20px 0 0;
  text-align: center;
  font-size: 13px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 760px) {
  body.adm-auth {
    --auth-white-w: 100%;
    --auth-navy-h: auto;
    --auth-overlap: 0px;
  }
  .adm-auth-stage {
    min-height: auto;
    display: block;
  }
  .adm-auth-aside {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    transform: none;
    margin-bottom: -20px;
    border-radius: 12px 12px 0 0;
    padding: 32px 24px 36px;
    box-shadow: 0 10px 28px rgba(10, 29, 55, 0.14);
  }
  .adm-auth-aside-inner {
    justify-content: flex-start;
  }
  .adm-auth-illustration-wrap { display: none; }
  .adm-auth-aside-foot { margin-top: 12px; }
  .adm-auth-panel {
    justify-content: center;
    min-height: auto;
    padding: 0;
    border-radius: 12px;
  }
  .adm-auth-panel-inner {
    width: 100%;
    max-width: none;
    padding: 40px 24px 44px;
  }
  .adm-auth-bg-arc { opacity: 0.4; }
}
/* Legacy login class mapping */
body.adm-login { all: unset; }
.ms-body--login { all: unset; }
.ms-login-wrap { width: min(380px, 100%); }
.ms-login-card { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.ms-login-brand { display: none; }
.ms-login-form { display: grid; gap: 16px; }

/* Responsive */
@media (max-width: 1100px) {
  .adm-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .cl-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-charts-row { grid-template-columns: 1fr; }
  .bk-report-layout { grid-template-columns: 1fr; }
  .bk-report-charts {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .bk-mini-chart { flex: 1 1 200px; }
  .bk-finance-inner { grid-template-columns: 1fr; }
  .bk-report-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .us-edit-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .adm-content { padding: 16px; }
  .adm-kpi-grid { grid-template-columns: 1fr 1fr; }
  .bk-finance-currency-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .bk-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bk-row-action { justify-self: end; }
  .bk-show-stats { grid-template-columns: 1fr; }
  .bk-show-layout { grid-template-columns: 1fr; }
  .bk-show-stay-block { text-align: left; }
  .bk-payment { flex-direction: column; }
  .bk-payment-delete { padding-top: 0; }
  .bk-payment-field--wide { grid-column: span 1; }
  .bk-detail-row { grid-template-columns: 1fr; gap: 2px; }
  .cl-stat-grid { grid-template-columns: 1fr; }
  .cl-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cl-row-actions { justify-content: flex-end; }
  .cl-form-header--edit { flex-direction: column; }
  .un-grid { grid-template-columns: 1fr; padding: 14px 16px 16px; }
  .un-stat-grid { max-width: none; }
  .us-edit-hero { flex-direction: column; align-items: flex-start; }
  .us-role-picker { grid-template-columns: 1fr; }
  .us-edit-danger-inner { flex-direction: column; align-items: flex-start; }
  .dash-period-note { text-align: left; flex-basis: 100%; }

}
@media (max-width: 480px) {
  .adm-kpi-grid { grid-template-columns: 1fr; }
  .dash-stat-grid { grid-template-columns: 1fr; }
  .ms-dl div { grid-template-columns: 1fr; }
}
