@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
/* ══════════════════════════════════════
   TOKENS — v3 Spacious + Color
══════════════════════════════════════ */
:root {
  /* Grayscale */
  --ink-900: #111111;
  --ink-700: #444444;
  --ink-500: #777777;
  --ink-300: #bbbbbb;
  --ink-100: #e8e8e8;
  --ink-050: #f4f4f5;
  --white: #ffffff;
  --page-bg: #f9fafb;

  /* Shadows — borderless system */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);

  /* Accent — blue as primary */
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-muted: #eff4ff;
  --accent-text: #1d4ed8;

  /* Semantic colors — used purposefully */
  --green: #16a34a;
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --violet: #7c3aed;
  --violet-bg: #f5f3ff;

  /* Layout — wider, taller */
  --sidebar-w: 272px;
  --topbar-h: 68px;

  /* Typography */
  --font: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", -apple-system, sans-serif;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 12px;

  /* Transition */
  --ease: all 0.18s ease;
}

/* ══════════════════════════════════════
   RESET
══════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
body {
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--ink-900);
  line-height: 1.7;
  letter-spacing: -0.01em;
  min-height: 100vh;
  /* display: flex; */
}
a {
  text-decoration: none;
  color: inherit;
  line-height: normal;
}
ul,
ol {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}
input,
select,
textarea {
  font-family: var(--font);
}

/* ══════════════════════════════════════
   LAYOUT
══════════════════════════════════════ */
#sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--white);
  border-right: none;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.25s ease;
}
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  transition: margin 0.25s ease;
}

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  height: 32px;
  flex-shrink: 0;
}
.logo-text {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.3px;
}

.sidebar-partner {
  padding: 10px 18px 16px;
  border-bottom: none;
}
.partner-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.p-avatar {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.p-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-900);
}
.p-type {
  font-size: 0.6875rem;
  color: var(--ink-500);
  font-weight: 400;
  margin-top: 1px;
}
.p-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-left: auto;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--green-bg);
}

.sidebar-nav {
  flex: 1;
  padding: 8px 8px;
  overflow-y: auto;
}
.nav-group {
  margin-bottom: 2px;
}
.nav-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-300);
  text-transform: uppercase;
  padding: 16px 14px 5px;
  display: block;
}
.nav-item {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-size: 0.8438rem;
  font-weight: 500;
  color: var(--ink-600);
  cursor: pointer;
  transition: var(--ease);
  user-select: none;
  position: relative;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.nav-item:hover {
  background: var(--ink-100);
  color: var(--ink-900);
}
.nav-item.active {
  background: var(--accent-muted);
  color: var(--accent);
  font-weight: 600;
}
.nav-count {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ink-500);
  background: var(--ink-100);
  padding: 2px 7px;
  border-radius: 20px;
}
.nav-lock {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--ink-300);
  height: 15px;
  & img {
    height: 100%;
  }
}

.sidebar-footer {
  padding: 10px;
  border-top: none;
}

/* ══════════════════════════════════════
   TOPBAR
══════════════════════════════════════ */
.top-bar {
  height: var(--topbar-h);
  background: var(--page-bg);
  border-bottom: none;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 50;
}
#hamburger {
  display: none;
  padding: 8px;
  border-radius: var(--r-md);
  font-size: 1.125rem;
  color: var(--ink-700);
  transition: var(--ease);
}
#hamburger:hover {
  background: var(--ink-050);
}

.topbar-path {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ink-300);
  letter-spacing: 0;
}
.topbar-path .sep {
  color: var(--ink-100);
}
.topbar-path .current {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-900);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.t-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--ease);
  white-space: nowrap;
}
.t-btn-primary {
  background: var(--accent);
  color: var(--white);
}
.t-btn-primary:hover {
  background: var(--accent-hover);
}
.t-btn-ghost {
  background: transparent;
  color: var(--ink-700);
  border: 1px solid var(--ink-100);
}
.t-btn-ghost:hover {
  background: var(--ink-050);
  color: var(--ink-900);
}

.notif-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0625rem;
  color: var(--ink-700);
  cursor: pointer;
  transition: var(--ease);
  & > img {
    height: 20px;
  }
}
.notif-wrap:hover {
  background: var(--ink-050);
}
.notif-pip {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--white);
}

/* ══════════════════════════════════════
   PAGE
══════════════════════════════════════ */
.page-body {
  padding: 40px;
  flex: 1;
}
.page-section {
  /* display: none; */
  animation: fadeIn 0.2s ease;
}
.page-section.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}
.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.5px;
}
.page-sub {
  font-size: 0.875rem;
  color: var(--ink-500);
  margin-top: 4px;
  line-height: 1.5;
}

/* ══════════════════════════════════════
   CARDS
══════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: none;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 22px 32px;
  border-bottom: none;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}
.card-body {
  padding: 8px 32px 32px;
}
.card-action {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-500);
  cursor: pointer;
  transition: var(--ease);
}
.card-action:hover {
  color: var(--accent);
}

/* ══════════════════════════════════════
   STATUS BANNER
══════════════════════════════════════ */
.status-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--ink-100);
  margin-bottom: 28px;
  font-size: 0.875rem;
  background: var(--ink-050);
}
.status-banner.ok {
  border-color: var(--green-border);
  background: var(--green-bg);
}
.status-banner.warn {
  border-color: var(--amber-border);
  background: var(--amber-bg);
}
.status-banner.info {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.sb-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sb-dot.green {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.sb-dot.amber {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}
.sb-dot.blue {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.sb-text {
  flex: 1;
  color: var(--ink-700);
}
.sb-text strong {
  font-weight: 700;
  color: var(--ink-900);
  display: block;
  font-size: 0.875rem;
}
.sb-text span {
  font-size: 0.8125rem;
}
.sb-cta {
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
  background: var(--accent);
  color: var(--white);
}
.sb-cta:hover {
  background: var(--accent-hover);
}
.sb-cta-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.sb-cta-ghost:hover {
  background: var(--accent-muted);
}
@media (max-width: 480px) {
  .status-banner {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .sb-cta {
    width: 100%;
    text-align: center;
  }
}

/* ══════════════════════════════════════
   KPI GRID — single accent, no color noise
══════════════════════════════════════ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  border: none;
  margin-bottom: 28px;
}
.kpi-cell {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 24px 24px;
  transition: var(--ease);
  cursor: default;
}
.kpi-cell:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.kpi-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 10px;
}
.kpi-val {
  font-size: 2.375rem;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.kpi-val.accent {
  color: var(--accent);
}
.kpi-grid .kpi-ir-val {
  font-size: 1.625rem;
}
.kpi-meta {
  font-size: 0.75rem;
  color: var(--ink-300);
  display: flex;
  align-items: center;
  gap: 5px;
}
.trend {
  font-weight: 700;
}
.trend.up {
  color: var(--green);
}
.trend.dn {
  color: var(--red);
}

/* ══════════════════════════════════════
   QUICK ACTIONS
══════════════════════════════════════ */
.qactions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.qa {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--ink-100);
  background: var(--white);
  color: var(--ink-700);
  transition: var(--ease);
}
.qa:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.qa.locked {
  color: var(--ink-300);
  cursor: not-allowed;
}
.qa.locked:hover {
  background: var(--white);
  color: var(--ink-300);
  border-color: var(--ink-100);
}

/* ══════════════════════════════════════
   DASH GRID
══════════════════════════════════════ */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

.dash-grid .stack .settlement-card {
  & .info-row {
    gap: 16px;
  }

  & .ir-key {
    flex-shrink: initial;
  }

  & .ir-val {
    font-size: 1rem;
    font-weight: 800;
  }

  & .ir-val.accent {
    color: var(--accent);
  }

  & .ir-val.muted {
    color: var(--ink-300);
    font-weight: 700;
  }

  & .notice-text {
    font-size: 0.6875rem;
    color: var(--ink-300);
    margin-top: 12px;
    text-align: center;
  }
}

.dash-grid #recentInquiries {
  & .b-booking-d-day {
    font-size: 0.625rem;
    color: var(--accent);
    margin-top: 3px;
    font-weight: 600;
  }
}

@media (max-width: 1100px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════
   TABLE — spacious rows
══════════════════════════════════════ */
.tbl-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
thead tr {
  border-bottom: none;
}
thead th {
  padding: 14px 20px 10px;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-300);
  white-space: nowrap;
  background: var(--page-bg);
}
tbody tr {
  border-bottom: none;
  transition: var(--ease);
  cursor: pointer;
}
tbody tr:last-child {
  border-bottom: none;
}
tbody tr:hover {
  background: var(--page-bg);
}
tbody td {
  padding: 16px 20px;
  vertical-align: middle;
  line-height: 1.55;
}
.td-no {
  font-size: 0.75rem;
  color: var(--ink-300);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.td-main {
  font-weight: 700;
  color: var(--ink-900);
  font-size: 0.875rem;
}
.td-sub {
  font-size: 0.75rem;
  color: var(--ink-300);
  margin-top: 2px;
}
.td-muted {
  color: var(--ink-300);
}
.td-amt {
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: -0.3px;
}

/* ══════════════════════════════════════
   BADGES
══════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.b-received {
  background: var(--ink-050);
  color: var(--ink-700);
}
.b-received::before {
  background: var(--ink-300);
}
.b-hospital {
  background: var(--green-bg);
  color: #166534;
}
.b-hospital::before {
  background: var(--green);
}
.b-consult {
  background: var(--amber-bg);
  color: #92400e;
}
.b-consult::before {
  background: var(--amber);
}
.b-booking {
  background: var(--accent-muted);
  color: var(--accent-text);
}
.b-booking::before {
  background: var(--accent);
}

.b-completed {
  background: var(--green-bg);
  color: #166534;
}
.b-completed::before {
  background: var(--green);
}
.b-hold {
  background: var(--violet-bg);
  color: #5b21b6;
}
.b-hold::before {
  background: var(--violet);
}
.b-cancelled {
  background: var(--red-bg);
  color: #991b1b;
}
.b-cancelled::before {
  background: var(--red);
}
.b-verified {
  background: var(--green-bg);
  color: #166534;
}
.b-verified::before {
  background: var(--green);
}
.b-pending {
  background: var(--amber-bg);
  color: #92400e;
}
.b-pending::before {
  background: var(--amber);
}
.b-admin {
  background: var(--ink-050);
  color: var(--ink-700);
}
.b-admin::before {
  background: var(--ink-300);
}

/* ══════════════════════════════════════
   FORMS — roomier
══════════════════════════════════════ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.fg {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.fg.full {
  grid-column: 1 / -1;
}
label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: 0.1px;
}
label .req {
  color: var(--red);
  margin-left: 2px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid transparent;
  background: var(--page-bg);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  color: var(--ink-900);
  outline: none;
  transition: var(--ease);
  -webkit-appearance: none;
  line-height: 1.5;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}
input[readonly] {
  background: var(--ink-050);
  color: var(--ink-500);
}
textarea {
  resize: vertical;
  min-height: 96px;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.form-section-head {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--ink-500);
  padding-bottom: 10px;
  border-bottom: none;
  margin-bottom: 14px;
  margin-top: 6px;
}

/* ══════════════════════════════════════
   BUTTONS — taller
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 700;
  transition: var(--ease);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  letter-spacing: -0.1px;
}
.btn-black {
  background: var(--accent);
  color: var(--white);
}
.btn-black:hover {
  background: var(--accent-hover);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-hover);
}
.btn-line {
  background: var(--page-bg);
  color: var(--ink-700);
  border: none;
}
.btn-line:hover {
  background: var(--ink-050);
  color: var(--ink-900);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-700);
}
.btn-ghost:hover {
  background: var(--ink-050);
}
.btn-danger-line {
  background: var(--white);
  color: var(--red);
  border: 1px solid var(--ink-100);
}
.btn-danger-line:hover {
  border-color: var(--red);
  background: var(--red-bg);
}
.btn-sm {
  padding: 7px 14px;
  font-size: 0.8125rem;
}

/* ══════════════════════════════════════
   TABS
══════════════════════════════════════ */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ink-100);
  margin-bottom: 24px;
}
.tab-btn {
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: var(--ease);
}
.tab-btn:hover {
  color: var(--ink-900);
}
.tab-btn.active {
  color: var(--accent);
  font-weight: 700;
  border-bottom-color: var(--accent);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* ══════════════════════════════════════
   FILTER BAR
══════════════════════════════════════ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 20px 32px;
  border-bottom: none;
  background: var(--white);
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--page-bg);
  border: none;
  border-radius: var(--r-md);
  padding: 0 12px;
  flex: 1;
  min-width: 200px;
}
.search-wrap .si {
  font-size: 0.875rem;
  color: var(--ink-300);
}
.search-wrap input {
  border: none;
  box-shadow: none;
  padding: 9px 0;
  flex: 1;
  font-size: 0.875rem;
  background: transparent;
}
.search-wrap input:focus {
  box-shadow: none;
  border: none;
}
.filter-bar select {
  width: auto;
  min-width: 140px;
  padding: 9px 32px 9px 12px;
  background-color: var(--page-bg);
  border-color: transparent;
}

/* ══════════════════════════════════════
   NOTICE LIST
══════════════════════════════════════ */
.notice-list {
  display: flex;
  flex-direction: column;
}
.notice-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  border-bottom: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--ease);
}
.notice-row:last-child {
  border-bottom: none;
}
.notice-row:hover {
  background-color: var(--ink-050);
  padding-left: 16px;
}
.n-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-900);
  margin-top: 7px;
  flex-shrink: 0;
}
.n-dot.read {
  background: var(--ink-100);
}
.n-body {
  flex: 1;
}
.n-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.5;
}
.n-meta {
  font-size: 0.75rem;
  color: var(--ink-300);
  margin-top: 3px;
}
.n-tag {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: 3px;
}
.n-tag.imp {
  background: var(--red-bg);
  color: var(--red);
}
.n-tag.gen {
  background: var(--ink-050);
  color: var(--ink-500);
}
.n-tag.upd {
  background: var(--ink-050);
  color: var(--ink-500);
}

/* ══════════════════════════════════════
   SETTINGS LAYOUT
══════════════════════════════════════ */
.set-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: start;
}
.set-nav {
  border: none;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.set-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
  transition: var(--ease);
  border-bottom: none;
}
.set-nav-item:last-child {
  border-bottom: none;
}
.set-nav-item:hover {
  background: var(--white);
  color: var(--ink-900);
}
.set-nav-item.active {
  background: var(--accent-muted);
  color: var(--accent);
  font-weight: 700;
}

/* ══════════════════════════════════════
   LOCKED STATE
══════════════════════════════════════ */
.locked-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 28px;
  gap: 10px;
}
.lock-ico {
  height: 34px;
  & img {
    height: 100%;
  }
}
.lock-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-700);
}
.lock-sub {
  font-size: 0.8125rem;
  color: var(--ink-300);
  max-width: 220px;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   TIMELINE
══════════════════════════════════════ */
.tl {
  padding: 4px 0;
}
.tl-row {
  display: flex;
  gap: 14px;
  padding-bottom: 22px;
}
.tl-row:last-child {
  padding-bottom: 0;
}
.tl-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-100);
  margin-top: 4px;
  flex-shrink: 0;
}
.tl-dot.done {
  background: var(--green);
}
.tl-dot.now {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-muted);
}
.tl-line {
  width: 1px;
  flex: 1;
  background: var(--ink-100);
  margin-top: 4px;
}
.tl-txt .lbl {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-900);
}
.tl-txt .dt {
  font-size: 0.75rem;
  color: var(--ink-300);
  margin-top: 2px;
}

/* ══════════════════════════════════════
   UPLOAD ZONE
══════════════════════════════════════ */
.upload-zone {
  border: 2px dashed var(--ink-100);
  border-radius: var(--r-lg);
  padding: 40px 28px;
  text-align: center;
  cursor: pointer;
  transition: var(--ease);
  background: var(--ink-050);
}
.upload-zone:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
}
.uz-icon {
  font-size: 1.625rem;
  margin-bottom: 10px;
  color: var(--ink-300);
}
.uz-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-700);
}
.uz-sub {
  font-size: 0.75rem;
  color: var(--ink-300);
  margin-top: 4px;
}

/* ══════════════════════════════════════
   SETTLEMENT GRID
══════════════════════════════════════ */
.sett-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  border: none;
  margin-bottom: 28px;
}
.sett-cell {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 24px;
  transition: var(--ease);
}
.sett-cell:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.sett-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 8px;
}
.sett-amt {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.5px;
}
.sett-sub {
  font-size: 0.75rem;
  color: var(--ink-300);
  margin-top: 6px;
}

/* ══════════════════════════════════════
   REFERRAL CODE
══════════════════════════════════════ */
.referral-box {
  border: none;
  border-radius: var(--r-lg);
  background: var(--page-bg);
  padding: 32px 28px;
  text-align: center;
}
.ref-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: 12px;
}
.ref-code {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
  margin-bottom: 20px;
}

/* ══════════════════════════════════════
   INFO ROW
══════════════════════════════════════ */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: none;
}
.info-row:last-child {
  border-bottom: none;
}
.ir-key {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-300);
  letter-spacing: 0.1px;
  flex-shrink: 0;
  min-width: 100px;
}
.ir-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-900);
  text-align: right;
}

/* ══════════════════════════════════════
   DOCUMENT ITEM
══════════════════════════════════════ */
.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  background: var(--page-bg);
  border-radius: var(--r-md);
  margin-bottom: 8px;
}
.doc-icon {
  height: 24px;
  & img {
    height: 100%;
  }
}
.doc-name {
  font-size: 0.875rem;
  font-weight: 600;
}
.doc-meta {
  font-size: 0.75rem;
  color: var(--ink-300);
  margin-top: 2px;
}

/* ══════════════════════════════════════
   PAGINATION
══════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-top: none;
}
.pg-info {
  font-size: 0.8125rem;
  color: var(--ink-300);
}
.pg-btns {
  display: flex;
  gap: 4px;
}
.pg-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
  color: var(--ink-500);
  border: none;
  background: transparent;
}
.pg-btn:hover {
  background: var(--ink-050);
}
.pg-btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ══════════════════════════════════════
   OVERLAY + DRAWER
══════════════════════════════════════ */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 200;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#overlay.on {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(560px, 95vw);
  background: var(--white);
  border-left: none;
  box-shadow: var(--shadow-lg);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.drawer.wide {
  /* width: min(65vw, 1080px); */
  width: min(80vw);
}

.drawer.on {
  transform: translateX(0);
}

#drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(560px, 95vw);
  background: var(--white);
  border-left: none;
  box-shadow: var(--shadow-lg);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
#drawer.wide {
  /* width: min(65vw, 1080px); */
  width: min(80vw);
}
#drawer.on {
  transform: translateX(0);
}
@media (max-width: 1100px) {
  .drawer.wide {
    width: min(80vw, 900px);
  }
  #drawer.wide {
    width: min(80vw, 900px);
  }
}
@media (max-width: 768px) {
  .drawer,
  .drawer.wide {
    width: 100vw;
    left: 0;
  }
  #drawer,
  #drawer.wide {
    width: 100vw;
    left: 0;
  }
}

.d-head {
  padding: 24px 40px;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  background: var(--white);
}
.d-title {
  font-size: 1rem;
  font-weight: 800;
  flex: 1;
  letter-spacing: -0.3px;
  color: var(--ink-900);
}
.d-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--ink-300);
  cursor: pointer;
  transition: var(--ease);
  background: var(--page-bg);
}
.d-close:hover {
  background: var(--ink-050);
  color: var(--ink-900);
}
.d-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 40px 40px;
  scroll-behavior: smooth;
}
@media (max-width: 768px) {
  .d-body,
  .drawer.wide .d-body {
    padding: 4px 24px 32px;
  }
  .d-body,
  #drawer.wide .d-body {
    padding: 4px 24px 32px;
  }
}
.d-foot {
  border-top: none;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ══════════════════════════════════════
   INQUIRY DETAIL — 7:3 Wide Layout
══════════════════════════════════════ */

/* ── Row wrapper (각 행 사이 간격) ── */
.d-row {
  margin-bottom: 60px;
}
.d-row:last-of-type {
  margin-bottom: 0;
}

/* ── Outer 7:3 grid ── */
.d-layout {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 0 40px;
  align-items: start;
}
.d-main {
  min-width: 0;
}
.d-side {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 860px) {
  .d-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Main content sections ── */
.d-section {
  margin-bottom: 36px;
}
.d-section:last-child {
  margin-bottom: 0;
}
.d-section-title {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.d-section-title span {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--ink-300);
  text-transform: none;
  letter-spacing: 0;
}

/* ── Field display (main) ── */
.d-field {
  margin-bottom: 18px;
  line-height: 1.7;
}
.d-field:last-child {
  margin-bottom: 0;
}
.d-field-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ink-300);
  letter-spacing: 0.2px;
  margin-bottom: 4px;
}
.d-field-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.65;
}
.d-field-value.muted {
  color: var(--ink-300);
  font-weight: 400;
}
.d-field-memo {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-700);
  line-height: 1.7;
  background: var(--page-bg);
  border-radius: var(--r-md);
  padding: 12px 16px;
}

/* ── Mini 2-col within main ── */
.d-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  margin-bottom: 18px;
}
.d-field-row .d-field {
  margin-bottom: 0;
}
@media (max-width: 500px) {
  .d-field-row {
    grid-template-columns: 1fr;
  }
}

/* ── Attachment file item ── */
.d-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: var(--page-bg);
  border-radius: var(--r-md);
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-700);
}

.d-file-name {
  display: flex;
  align-items: center;
  gap: 4px;
  & > img {
    height: 16px;
  }
}

.d-file-item:last-child {
  margin-bottom: 0;
}
.d-file-size {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--ink-300);
  white-space: nowrap;
  margin-left: 12px;
}

/* ── Sidebar cards ── */
.d-side-card {
  height: 100%;
  background: var(--page-bg);
  border-radius: var(--r-lg);
  padding: 20px;
}
.d-side-title {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: 16px;
}
.d-side-row {
  margin-bottom: 14px;
}
.d-side-row:last-child {
  margin-bottom: 0;
}
.d-side-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-300);
  margin-bottom: 3px;
}
.d-side-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.5;
  word-break: break-all;
}
.d-side-value.accent {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.d-side-value.muted {
  color: var(--ink-300);
  font-weight: 400;
}
.d-side-value.hospital {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--ink-900);
}

/* ── Inquiry detail header ── */
.d-inq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.d-inq-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.d-inq-sub {
  font-size: 0.75rem;
  color: var(--ink-300);
  line-height: 1.6;
}
.d-inq-sub strong {
  color: var(--ink-500);
  font-weight: 600;
}

/* ── Old classes kept for other drawers ── */
.d-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.d-meta {
  font-size: 0.75rem;
  color: var(--ink-300);
  margin-bottom: 32px;
  line-height: 1.6;
}
.d-meta strong {
  color: var(--ink-500);
  font-weight: 600;
}
.d-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}
.d-col {
  min-width: 0;
}

/* ══════════════════════════════════════
   RESET PASSWORD DRAWER
══════════════════════════════════════ */
.reset-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 400;
}
.reset-overlay.on {
  display: block;
}
.reset-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 480px;
  max-width: 95vw;
  background: var(--white);
  border-left: 1px solid var(--ink-100);
  z-index: 401;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.reset-drawer.on {
  transform: translateX(0);
}
.reset-drawer .d-head {
  padding: 22px 28px;
  border-bottom: 1px solid var(--ink-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
}
.reset-drawer .d-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink-900);
}
.reset-drawer .d-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink-050);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ease);
  color: var(--ink-600);
  font-size: 0.875rem;
}
.reset-drawer .d-close:hover {
  background: var(--ink-100);
}
.reset-drawer .d-body {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
}
.reset-drawer .reset-step {
  display: none;
}
.reset-drawer .reset-step.active {
  display: block;
}
/* .btn 스타일은 기존 CSS에서 자동 적용됨 */
.reset-btn-group {
  display: flex;
  gap: 12px;
}
.reset-btn-group .btn {
  justify-content: center;
  flex: 1;
}
.reset-drawer .reset-step > .btn {
  display: block;
  width: calc(100% - 56px);
  margin: 16px 28px 28px;
}

#resetForm {
  & input {
    margin-top: 6px;
  }
}

#resetSuccess {
  & .reset-form-content {
    text-align: center;
  }

  & .reset-icon {
    background: var(--green);
  }

  & .reset-success-details {
    font-size: 0.8125rem;
    color: var(--ink-500);
  }
}

#resetError {
  & .reset-form-content {
    text-align: center;
  }

  & .reset-icon {
    background: var(--red);
  }

  & .reset-error-details {
    font-size: 0.8125rem;
    color: var(--ink-500);
  }
}

.reset-form-content {
  margin-bottom: 24px;
}

.reset-content-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.reset-instruction {
  font-size: 0.875rem;
  color: var(--ink-600);
  line-height: 1.5;
  margin-bottom: 20px;
}

.reset-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
}

/* ══════════════════════════════════════
   SIDEBAR MOBILE OVERLAY
══════════════════════════════════════ */
#sbOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
}

/* ══════════════════════════════════════
   MISC UTILS
══════════════════════════════════════ */
.mt4 {
  margin-top: 4px;
}
.mt8 {
  margin-top: 8px;
}
.mt12 {
  margin-top: 12px;
}
.mt16 {
  margin-top: 16px;
}
.mt20 {
  margin-top: 20px;
}
.mb12 {
  margin-bottom: 12px;
}
.mb16 {
  margin-bottom: 16px;
}
.mb20 {
  margin-bottom: 20px;
}
.flex {
  display: flex;
}
.items-c {
  align-items: center;
}
.gap8 {
  gap: 8px;
}
.gap12 {
  gap: 12px;
}
.col {
  flex-direction: column;
}
.text-right {
  text-align: right;
}
.w100 {
  width: 100%;
}
.divider {
  height: 1px;
  background: var(--page-bg);
  margin: 28px 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 960px) {
  #sidebar {
    transform: translateX(-100%);
  }
  #sidebar.on {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  }
  #sbOverlay.on {
    display: block;
  }
  .main-content {
    margin-left: 0;
  }
  #hamburger {
    display: flex;
  }
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sett-grid {
    grid-template-columns: 1fr;
  }
  .set-layout {
    grid-template-columns: 1fr;
  }
  .set-nav {
    display: flex;
    flex-wrap: wrap;
  }
  .set-nav-item {
    flex: 1;
    min-width: 110px;
    justify-content: center;
    border-bottom: none;
    border-right: 1px solid var(--ink-100);
  }
  .set-nav-item:last-child {
    border-right: none;
  }
}
@media (max-width: 640px) {
  .page-body {
    padding: 24px 16px;
  }
  .top-bar {
    padding: 0 16px;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .t-btn span.lbl {
    display: none;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi-val {
    font-size: 1.75rem;
  }
}
/* ══════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════ */
@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap");

#secLogin {
  width: 100%;
  height: 100vh;
  inset: 0;
  z-index: 300;
  background: #eef1f5;
  flex-direction: column;
  overflow-y: auto;
}

/* Top nav — mirrors landing page */
.login-topnav {
  width: 100%;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.ltn-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.ltn-logomark {
  width: 40px;
}
.ltn-logotext {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.2px;
}
.ltn-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 100px;
  padding: 4px 6px;
}
.ltn-lang span {
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-300);
  transition: var(--ease);
  letter-spacing: 0.3px;
}
.ltn-lang span:hover {
  color: var(--ink-700);
}
.ltn-lang span.active {
  background: var(--accent);
  color: #fff;
}
.ltn-lang .sep {
  display: none;
}
.ltn-cta {
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
  letter-spacing: -0.1px;
}
.ltn-cta:hover {
  background: var(--accent-hover);
}

/* Main body */
.login-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 48px 40px;
  gap: 64px;
}

/* Left — brand side */
.login-brand {
  flex: 1;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lb-eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 5px 10px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-700);
  letter-spacing: 0.2px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.lb-eyebrow-dot {
  width: 20px;
  height: 20px;
  background: var(--accent-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
}
.lb-headline {
  font-size: 3.25rem;
  font-weight: 900;
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.lb-headline .blue {
  color: var(--accent);
}
.lb-desc {
  font-size: 1rem;
  color: var(--ink-500);
  line-height: 1.75;
  /* max-width: 400px; */
  margin-bottom: 32px;
}
/* Step list */
.lb-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.lb-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--ink-100);
  transition: var(--ease);
}
.lb-step:last-child {
  border-bottom: none;
}
.lb-step:hover {
  background: var(--ink-050);
}
.lb-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.lb-step-text {
  flex: 1;
}
.lb-step-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.2px;
}
.lb-step-sub {
  font-size: 0.75rem;
  color: var(--ink-300);
  margin-top: 1px;
}

/* Right — form card */
.login-card {
  width: 420px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--ink-100);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.lc-header {
  padding: 36px 36px 0;
}
.lc-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.5px;
  margin-bottom: 5px;
}
.lc-sub {
  font-size: 0.875rem;
  color: var(--ink-500);
  line-height: 1.6;
}
.lc-body {
  padding: 24px 36px 36px;
}

/* Form fields */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-form .fg label {
  font-size: 0.8125rem;
}
.login-form input {
  height: 48px;
  padding: 0 14px;
  font-size: 0.875rem;
}

/* Primary button — pill, matching landing */
.login-btn {
  width: 100%;
  height: 50px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
  letter-spacing: -0.1px;
  margin-top: 4px;
}
.login-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.login-links {
  display: flex;
  /* justify-content: space-between; */
  justify-content: flex-end;
  margin-top: 16px;
}
.login-link {
  font-size: 0.8125rem;
  color: var(--ink-500);
  cursor: pointer;
  transition: var(--ease);
}
.login-link:hover {
  color: var(--accent);
}
.login-link.blue {
  color: var(--accent);
  font-weight: 600;
}
.login-link.blue:hover {
  color: var(--accent-hover);
}

/* Error message */
.login-error {
  display: none;
  padding: 12px 14px;
  background: var(--red-bg);
  border: 1px solid #fecaca;
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  color: var(--red);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 4px;
}
.login-error.show {
  display: block;
}

/* State Gate Card */
.gate-card {
  display: none;
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin-bottom: 12px;
}
.gate-card.show {
  display: block;
}
.gate-card.g-review {
  background: var(--amber-bg);
  border: 1px solid #fde68a;
}
.gate-card.g-reject {
  background: var(--red-bg);
  border: 1px solid #fecaca;
}
.gate-card.g-blocked {
  background: var(--ink-050);
  border: 1px solid var(--ink-100);
}
.gate-card.g-verify {
  background: var(--accent-muted);
  border: 1px solid #bfdbfe;
}

.gc-icon {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.gc-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--ink-900);
}
.gc-body {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--ink-700);
}
.gc-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.gc-btn {
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
  border: none;
}
.gc-btn.primary {
  background: var(--accent);
  color: #fff;
}
.gc-btn.primary:hover {
  background: var(--accent-hover);
}
.gc-btn.ghost {
  background: transparent;
  color: var(--ink-700);
  border: 1px solid var(--ink-100);
}
.gc-btn.ghost:hover {
  background: var(--ink-050);
}

/* State demo switcher */
.state-demo {
  padding-top: 16px;
  border-top: 1px solid var(--ink-100);
}
.state-demo-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: 10px;
}
.state-demo-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sdb {
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--ink-100);
  background: #fff;
  color: var(--ink-700);
  cursor: pointer;
  transition: var(--ease);
}
.sdb:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.sdb.on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Footer */
.login-footer {
  padding: 16px 48px 24px;
  text-align: center;
  flex-shrink: 0;
}
.login-footer-txt {
  font-size: 0.75rem;
  color: var(--ink-300);
}

@media (max-width: 1200px) {
  .lb-headline {
    font-size: 2.75rem;
  }

  .lb-desc {
    font-size: 0.875rem;
  }
}

@media (max-width: 960px) {
  .login-body {
    flex-direction: column;
    gap: 40px;
    padding: 32px 24px;
    align-items: center;
  }
  .login-brand {
    max-width: 420px;
    /* max-width: 100%; */
    text-align: center;
  }
  .lb-headline {
    font-size: 2.125rem;
  }
  .lb-stats {
    justify-content: center;
  }
  .lb-desc {
    margin: 0 auto 32px;
  }
  .lb-eyebrow {
    margin: 0 auto 24px;
  }
  .login-card {
    width: 100%;
    max-width: 420px;
  }
  .lb-step {
    text-align: left;
  }
}
@media (max-width: 640px) {
  .login-topnav {
    padding: 16px 20px;
  }
  .login-body {
    padding: 24px 16px;
  }
  .login-footer {
    padding: 16px 20px 20px;
  }
  .lb-headline {
    font-size: 1.75rem;
    letter-spacing: -1px;
  }
  .lc-header {
    padding: 24px 24px 0;
  }
  .lc-body {
    padding: 20px 24px 28px;
  }
  .lb-stats {
    flex-wrap: wrap;
  }
}

/* ══════════════════════════════════════
   APPLICATION STATUS PAGE
══════════════════════════════════════ */
#secLoginStatus {
  display: flex;
  width: 100%;
  inset: 0;
  z-index: 300;
  background: var(--ink-050);
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
  overflow-y: auto;

  & .ltn-logomark {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  & .ltn-logotext {
    font-size: 0.875rem;
  }
}

.appst-shell {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Top nav bar */
.appst-topnav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.appst-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-500);
  cursor: pointer;
  transition: var(--ease);
}
.appst-back:hover {
  color: var(--accent);
}
.appst-topnav .logo-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.appst-topnav .logo-mark-sm {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #fff;
}
.appst-topnav .logo-txt-sm {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-900);
}

/* Hero status card */
.appst-hero {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  padding: 36px 40px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.appst-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  /* display: flex; */
  align-items: center;
  justify-content: center;
  font-size: 1.625rem;
  flex-shrink: 0;
}
.appst-icon-wrap.pending {
  background: var(--amber-bg);
}
.appst-icon-wrap.approved {
  background: var(--green-bg);
}
.appst-icon-wrap.rejected {
  background: var(--red-bg);
}
.appst-icon-wrap.inactive {
  background: var(--ink-050);
}

.appst-hero-body {
  flex: 1;
}
.appst-ref {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: 8px;
}
.appst-status-label {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--ink-900);
  margin-bottom: 10px;
}
.appst-desc {
  font-size: 0.875rem;
  color: var(--ink-500);
  line-height: 1.7;
}
.appst-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Timeline stepper */
.appst-stepper {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  padding: 28px 32px;
}
.appst-stepper-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.1px;
  margin-bottom: 24px;
}
.stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.stepper-row {
  display: flex;
  gap: 18px;
  position: relative;
}
.stepper-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
}
.stepper-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 800;
  border: 2px solid var(--ink-100);
  background: var(--white);
  color: var(--ink-300);
  position: relative;
  z-index: 1;
}
.stepper-dot.done {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.stepper-dot.current {
  background: var(--white);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-muted);
}
.stepper-dot.fail {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.stepper-line {
  width: 2px;
  flex: 1;
  background: var(--ink-100);
  min-height: 28px;
  margin: 2px 0;
}
.stepper-line.done {
  background: var(--accent);
}
.stepper-content {
  padding-bottom: 28px;
  flex: 1;
}
.stepper-row:last-child .stepper-content {
  padding-bottom: 0;
}
.sc-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1;
  margin-top: 1px;
}
.sc-label.muted {
  color: var(--ink-300);
  font-weight: 500;
}
.sc-sub {
  font-size: 0.75rem;
  color: var(--ink-300);
  margin-top: 4px;
  line-height: 1.5;
}
.sc-sub.active-note {
  color: var(--accent);
  font-weight: 600;
}
.sc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 700;
  margin-top: 6px;
}

/* Info section */
.appst-info {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  padding: 28px 32px;
}
.appst-info-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 16px;
}
.appst-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.appst-info-row {
  padding: 11px 0;
  border-bottom: 1px solid var(--ink-100);
}
.appst-info-row:nth-last-child(-n + 2) {
  border-bottom: none;
}
.air-key {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-300);
  margin-bottom: 3px;
}
.air-val {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-900);
}

/* Notice box */
.appst-notice-wrap {
  border-radius: 14px;
  padding: 20px 24px;
  border: 1px solid;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.appst-notice-wrap.warn {
  background: var(--amber-bg);
  border-color: #fde68a;
}
.appst-notice-wrap.info {
  background: var(--accent-muted);
  border-color: #bfdbfe;
}
.an-ico {
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.an-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.an-body {
  font-size: 0.8125rem;
  color: var(--ink-700);
  line-height: 1.65;
}

/* State switcher */
.appst-switcher {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  padding: 20px 24px;
}
.appst-switcher-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: 12px;
}
.appst-switcher-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.asb {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--ink-100);
  background: var(--white);
  color: var(--ink-700);
  cursor: pointer;
  transition: var(--ease);
}
.asb:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.asb.on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

@media (max-width: 600px) {
  #secAppStatus {
    padding: 24px 16px;
  }
  .appst-hero {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }
  .appst-info-grid {
    grid-template-columns: 1fr;
  }
  .appst-info-row:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--ink-100);
  }
  .appst-info-row:last-child {
    border-bottom: none;
  }
}
/* ══════════════════════════════════════
   PROMOTIONS PAGE
══════════════════════════════════════ */
.promo-hero-card {
  border-radius: var(--r-lg);
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
}
.phc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  align-self: flex-start;
}
.promo-badge-soon {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}
.phc-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-top: 4px;
}
.phc-period {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.phc-hospitals {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.promo-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.promo-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.promo-status.on {
  background: var(--green-bg);
  color: #166534;
}
.promo-status.on::before {
  background: var(--green);
}
.promo-status.soon {
  background: var(--violet-bg);
  color: #5b21b6;
}
.promo-status.soon::before {
  background: var(--violet);
}
.promo-status.end {
  background: var(--ink-050);
  color: var(--ink-500);
}
.promo-status.end::before {
  background: var(--ink-300);
}

/* ══════════════════════════════════════
   REFERRAL PAGE
══════════════════════════════════════ */
.tl-line.done {
  background: var(--accent);
}

@media (max-width: 900px) {
  #secReferral .flex[style*="360px"] {
    grid-template-columns: 1fr !important;
  }
  #secReferral [style*="grid-template-columns:360px"] {
    grid-template-columns: 1fr !important;
  }
  .promo-hero-card {
    min-height: 120px;
  }
}
@media (max-width: 640px) {
  #secPromotions {
    & .promo-unlocked {
      & .promo-hero-wrap {
        grid-template-columns: 1fr !important;
      }
    }
  }
}

/* ══════════════════════════════════════
   SUPPORT PAGE
══════════════════════════════════════ */
.sup-quick-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  cursor: pointer;
  transition: var(--ease);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sup-quick-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}
.sqc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.sqc-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.1px;
}
.sqc-sub {
  font-size: 0.75rem;
  color: var(--ink-300);
}

/* Ticket status badges */
.sup-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
}
.sup-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sup-status.waiting {
  background: var(--amber-bg);
  color: #92400e;
}
.sup-status.waiting::before {
  background: var(--amber);
}
.sup-status.processing {
  background: var(--accent-muted);
  color: var(--accent-text);
}
.sup-status.processing::before {
  background: var(--accent);
}
.sup-status.answered {
  background: var(--green-bg);
  color: #166534;
}
.sup-status.answered::before {
  background: var(--green);
}
.sup-status.closed {
  background: var(--ink-050);
  color: var(--ink-500);
}
.sup-status.closed::before {
  background: var(--ink-300);
}

/* Contact rows */
.sup-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--ink-100);
}
.sup-contact-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.sup-contact-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: 3px;
}
.sup-contact-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-900);
}
.sup-contact-sub {
  font-size: 0.6875rem;
  color: var(--ink-300);
  margin-top: 2px;
}

/* Channel list */
.sup-channels-section {
  border-bottom: 1px solid var(--ink-100);
}
.sup-channels-grid {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
.sup-channel-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--ink-50);
}
.sup-channel-chip:last-child {
  border-bottom: none;
}
.sup-channel-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-400);
}
.sup-channel-handle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-900);
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--ink-100);
  cursor: pointer;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.5;
  transition: var(--ease);
  gap: 12px;
}
.faq-item:hover .faq-q {
  color: var(--accent);
}
.faq-arrow {
  font-size: 1.125rem;
  color: var(--ink-300);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.open .faq-arrow {
  transform: rotate(90deg);
  color: var(--accent);
}
.faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: 0.8125rem;
  color: var(--ink-700);
  line-height: 1.7;
  border-top: 1px solid var(--ink-100);
  padding-top: 12px;
}
.faq-item.open .faq-a {
  display: block;
}

/* ══════════════════════════════════════
   INQUIRY LIST — unread state
══════════════════════════════════════ */
tbody tr.unread .td-no {
  color: var(--ink-700);
}

.btn-unread {
  background: var(--accent-muted);
  color: var(--accent-text);
}
.btn-unread:hover {
  background: #dbeafe;
  color: var(--accent-hover);
}

/* ══════════════════════════════════════
   INQUIRY LIST — hospital replies cell
══════════════════════════════════════ */
.td-replies {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
}
.td-replies-none {
  color: var(--ink-400);
  font-weight: 600;
}

/* ══════════════════════════════════════
   CLIENT SEARCH — button & drawer
══════════════════════════════════════ */

.btn-cs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-600);
  background: transparent;
  border: 1.5px solid var(--ink-100);
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}
.btn-cs:hover {
  background: var(--ink-050);
  border-color: var(--ink-200);
  color: var(--ink-900);
}
.btn-cs svg {
  flex-shrink: 0;
  color: var(--ink-400);
}

.cs-search-wrap {
  margin-bottom: 16px;
}
.cs-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--ink-100);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--page-bg);
  color: var(--ink-900);
  outline: none;
  transition: var(--ease);
  box-sizing: border-box;
}
.cs-search-input:focus {
  border-color: var(--accent);
  background: var(--white);
}
.cs-search-input::placeholder {
  color: var(--ink-300);
}

.cs-result-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-result-item {
  padding: 14px 16px;
  border: 1.5px solid var(--ink-100);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--ease);
  background: var(--white);
}
.cs-result-item:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
}
.cs-ri-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.cs-ri-meta {
  font-size: 0.8125rem;
  color: var(--ink-500);
}
.cs-ri-channel {
  font-size: 0.8125rem;
  color: var(--ink-400);
  margin-top: 2px;
}
.cs-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--ink-400);
  font-size: 0.875rem;
}

/* New ticket form in drawer */
.sup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 900px) {
  #sec-support [style*="grid-template-columns:1fr 320px"] {
    grid-template-columns: 1fr !important;
  }
  #sec-support [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 600px) {
  #sec-support [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}
.ntc-promo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--ink-100);
  transition: var(--ease);
  cursor: pointer;

  &:last-child {
    border-bottom: none;
  }
}
.ntc-promo-item:hover {
  background: var(--ink-050);
}
.ntc-promo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;

  &.blue {
    background: var(--accent);
  }

  &.green {
    background: var(--green);
  }

  &.violet {
    background: var(--violet);
  }

  &.muted {
    background: var(--ink-300);
  }
}
.ntc-promo-body {
  flex: 1;
  min-width: 0;
}
.ntc-promo-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ntc-promo-meta {
  font-size: 0.6875rem;
  color: var(--ink-300);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ntc-res-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--ink-100);
  transition: var(--ease);

  &:last-child {
    border-bottom: none;
  }
}
.ntc-res-item:hover {
  background: var(--ink-050);
}
.ntc-res-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0625rem;
  flex-shrink: 0;
  &.blue {
    background: #eff4ff;
  }

  &.green {
    background: #f0fdf4;
  }

  &.yellow {
    background: #fffbeb;
  }

  &.violet {
    background: #f5f3ff;
  }
}
.ntc-res-body {
  flex: 1;
  min-width: 0;
}
.ntc-res-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ntc-res-meta {
  font-size: 0.6875rem;
  color: var(--ink-300);
  margin-top: 2px;
}
.ntc-res-dl {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  border: 1px solid var(--ink-100);
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  transition: var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ntc-res-dl:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
/* Topbar lang switcher — always visible */
.topbar-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--ink-050);
  border: 1px solid var(--ink-100);
  border-radius: 100px;
  padding: 3px 4px;
}
.topbar-lang-btn {
  padding: 5px 11px;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-300);
  cursor: pointer;
  transition: var(--ease);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font);
}
.topbar-lang-btn:hover {
  color: var(--ink-700);
}
.topbar-lang-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.25);
}
.res-cat-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 20px;
  cursor: pointer;
  transition: var(--ease);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.res-cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}
.res-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
}
.res-cat-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.1px;
}
.res-cat-count {
  font-size: 0.75rem;
  color: var(--ink-300);
  font-weight: 500;
}

.res-format {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.res-format.pdf {
  background: #fef2f2;
  color: var(--red);
}
.res-format.zip {
  background: var(--amber-bg);
  color: var(--amber);
}
.res-format.docx {
  background: var(--accent-muted);
  color: var(--accent);
}
.res-format.mp4 {
  background: var(--violet-bg);
  color: var(--violet);
}

.res-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.res-file-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--ease);

  & > a {
    width: 32px;
    & img {
      width: 100%;
    }
  }
}
.res-file-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}
.rfc-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.rfc-body {
  flex: 1;
  min-width: 0;
}
.rfc-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.1px;
}
.rfc-meta {
  font-size: 0.6875rem;
  color: var(--ink-300);
  margin-top: 3px;
}

@media (max-width: 700px) {
  .res-file-grid {
    grid-template-columns: 1fr;
  }
  #secResources .card:has(.res-cat-card) > div {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ══════════════════════════════════════
   NOTICE DETAIL DRAWER STYLES
══════════════════════════════════════ */

/* Notice detail header */
.notice-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.notice-category-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  min-width: 40px;
}

.notice-category-tag.imp {
  background-color: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red);
}

.notice-category-tag.gen {
  background-color: var(--ink-050);
  color: var(--ink-700);
  border: 1px solid var(--ink-300);
}

.notice-category-tag.upd {
  background-color: var(--accent-muted);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.notice-meta-info {
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-top: 4px;
}

.notice-separator {
  margin: 0 6px;
}

/* Notice title section */
.notice-title-section {
  margin-bottom: 24px;
}

.notice-main-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-900);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Notice content */
.notice-content {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-700);
  margin-bottom: 32px;
}

.notice-greeting {
  margin-bottom: 16px;
  font-weight: 500;
}

.notice-section {
  margin: 24px 0;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

/* Change items */
.change-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.change-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.change-content strong {
  color: var(--ink-900);
  font-weight: 600;
}

/* Schedule info */
.schedule-info {
  background-color: var(--ink-050);
  border-radius: 8px;
  padding: 16px;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.schedule-item:last-child {
  margin-bottom: 0;
}

.schedule-label {
  font-size: 0.8125rem;
  color: var(--ink-500);
  font-weight: 500;
}

.schedule-value {
  font-size: 0.8125rem;
  color: var(--ink-900);
  font-weight: 600;
}

/* Package grid */
.package-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.package-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: var(--ink-050);
  border-radius: 6px;
  border: 1px solid var(--ink-100);
}

.package-category {
  font-size: 0.75rem;
  color: var(--ink-500);
  font-weight: 500;
}

.package-name {
  font-size: 0.875rem;
  color: var(--ink-700);
  font-weight: 500;
  flex: 1;
  margin: 0 12px;
}

.package-discount {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 700;
}

/* Improvement list */
.improvement-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.improvement-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.improvement-icon {
  font-size: 1.125rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.improvement-text strong {
  color: var(--ink-900);
  font-weight: 600;
}

/* Feature list */
.feature-list {
  margin: 16px 0;
  padding-left: 20px;
}

.feature-list li {
  margin: 8px 0;
  color: var(--ink-700);
}

/* Attachments */
.notice-attachments {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-100);
}

.attachments-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background-color: var(--ink-050);
  border-radius: 8px;
  border: 1px solid var(--ink-100);
}

.attachment-icon {
  height: 24px;
  & img {
    height: 100%;
  }
}

.attachment-info {
  flex: 1;
}

.attachment-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-900);
  margin-bottom: 4px;
}

.attachment-size {
  font-size: 0.75rem;
  color: var(--ink-500);
}

.attachment-download {
  padding: 8px 16px;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.attachment-download:hover {
  background-color: var(--accent-hover);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .notice-main-title {
    font-size: 1.125rem;
  }

  .change-item {
    flex-direction: column;
    gap: 8px;
  }

  .package-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .package-name {
    margin: 0;
  }

  .improvement-item {
    gap: 8px;
  }
}

#inquireDetailDrawer {
  overflow-y: auto;
  & .d-head {
    align-items: center;
    gap: 16px;
    border-bottom: none;
    padding-bottom: 14px;
  }

  & .d-title {
    flex: none;
  }

  & .d-inq-head-meta {
    flex: 1;
    text-align: right;
    margin-right: 4px;
  }

  & .d-inq-head-id {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-700);
    line-height: 1.5;
  }

  & .d-inq-head-date {
    font-size: 0.6875rem;
    color: var(--ink-300);
    font-weight: 400;
  }

  & .d-inq-subhead {
    flex-shrink: 0;
    padding: 0px 40px;
    background: var(--white);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ink-100);
  }

  & .d-inq-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
  }

  & .b-booking-d-day {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
  }

  & .d-inq-tab-nav {
    margin-bottom: 0;
    border-bottom: none;
    display: inline-flex;
    gap: 2px;
    background: var(--ink-050);
    border-radius: var(--r-md);
    padding: 6px;

    & .tab-btn {
      padding: 6px 16px;
      font-size: 0.8125rem;
      font-weight: 600;
      color: var(--ink-400);
      border: none;
      border-radius: 8px;
      background: transparent;
      transition: var(--ease);
      letter-spacing: -0.1px;
    }

    & .tab-btn:hover {
      color: var(--ink-700);
    }

    & .tab-btn.active {
      color: var(--ink-900);
      background: var(--white);
      box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    }
  }

  & .d-inq-tab-panel {
    display: none;
  }

  & .d-inq-tab-panel.active {
    display: block;
  }

  /* ── Section → Card ── */
  & .d-section {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-lg);
    padding: 20px 24px;
    margin-bottom: 12px;
  }

  & .d-section:last-child {
    margin-bottom: 0;
  }

  & .d-section-title {
    margin-bottom: 18px;
  }

  /* ── Body top padding ── */
  & .d-body {
    padding-top: 28px;
    overflow: initial;
  }

  /* ── Layout overrides ── */
  & .d-layout {
    grid-template-columns: 3fr 2fr;
    gap: 0 20px;
  }

  & .d-row {
    margin-bottom: 0;
  }

  /* ── Client Info side card ── */
  & .d-side {
    position: sticky;
    top: 0;
  }

  & .d-side-card {
    height: auto;
    border: 1px solid var(--ink-100);
  }

  /* ── File items inside attachment card ── */
  & .d-file-item {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-md);
  }

  /* ── Timeline ── */
  & .timeline {
    & .lbl.now {
      font-weight: 700;
    }
  }

  /* ══ Hospital Quotes Tab ══ */

  /* Hospital selector pills */
  & .hosp-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }

  & .hosp-pill {
    padding: 5px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1.5px solid var(--ink-100);
    background: var(--white);
    color: var(--ink-500);
    cursor: pointer;
    transition: var(--ease);
  }

  & .hosp-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  & .hosp-pill.active {
    border-color: var(--accent);
    background: var(--accent-muted);
    color: var(--accent-text);
  }

  /* Hospital detail panel */
  & .hosp-detail {
    display: none;
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-lg);
    padding: 18px 20px;
  }

  & .hosp-detail.active {
    display: block;
  }

  & .hosp-detail-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 10px;
  }

  & .hosp-detail-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }

  /* Hospital badges */
  & .hosp-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;

    &.selected {
      background: var(--green-bg);
      color: var(--green);
      border: 1px solid var(--green-border);
    }

    &.replied {
      background: var(--accent-muted);
      color: var(--accent-text);
      border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    }

    &.hospital-reply {
      background: var(--accent-muted);
      color: var(--accent-text);
      border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    }

    &.answered {
      background: var(--green-bg);
      color: var(--green);
      border: 1px solid var(--green-border);
    }
  }

  & .hosp-updated {
    font-size: 0.6875rem;
    color: var(--ink-300);
    font-weight: 400;
  }

  /* 3-col info grid */
  & .hosp-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 16px;
    padding: 14px 0;
    border-top: 1px solid var(--ink-050);
    border-bottom: 1px solid var(--ink-050);
    margin-bottom: 14px;
  }

  & .hosp-info-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ink-300);
    margin-bottom: 4px;
    letter-spacing: 0.2px;
  }

  & .hosp-info-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ink-900);

    &.muted {
      color: var(--ink-300);
      font-weight: 400;
    }
  }

  /* Update history items */
  & .hosp-updates {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  & .hosp-update-item {
    background: var(--page-bg);
    border-radius: var(--r-md);
    padding: 10px 14px;
  }

  & .hosp-update-time {
    font-size: 0.6875rem;
    color: var(--ink-300);
    font-weight: 500;
    margin-bottom: 4px;
  }

  & .hosp-update-text {
    font-size: 0.8125rem;
    color: var(--ink-700);
    line-height: 1.6;
  }

  /* Message board */
  & .hosp-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;

    & .d-section-title {
      margin-bottom: 0;
    }
  }

  & .hosp-board-link {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  & .hosp-board-link:hover {
    text-decoration: underline;
  }

  & .hosp-msg-card {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin-bottom: 14px;
  }

  & .hosp-msg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }

  & .hosp-msg-sender {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ink-900);
  }

  & .hosp-msg-date {
    font-size: 0.6875rem;
    color: var(--ink-300);
    margin-left: auto;
  }

  & .hosp-msg-text {
    font-size: 0.8125rem;
    color: var(--ink-700);
    line-height: 1.65;
    margin-bottom: 12px;
  }

  /* Input area */
  & .hosp-input-area {
    border: 1px solid var(--ink-100);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 10px;
  }

  & .hosp-attach-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--ink-100);
  }

  & .hosp-attach-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-700);
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-md);
    padding: 4px 12px;
    cursor: pointer;
  }

  & .hosp-attach-btn:hover {
    background: var(--ink-050);
  }

  & .hosp-attach-hint {
    font-size: 0.75rem;
    color: var(--ink-300);
  }

  & .hosp-textarea {
    width: 100%;
    min-height: 90px;
    padding: 12px 14px;
    font-size: 0.8125rem;
    color: var(--ink-700);
    border: none;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
    background: var(--white);
    box-sizing: border-box;
  }

  & .hosp-textarea:focus {
    outline: none;
  }

  & .hosp-send-row {
    display: flex;
    justify-content: flex-end;
    padding: 10px 14px;
    border-top: 1px solid var(--ink-100);
    background: var(--page-bg);
  }

  & .hosp-board-note {
    font-size: 0.6875rem;
    color: var(--ink-300);
    text-align: center;
    line-height: 1.5;
  }

  & .d-foot {
    padding-top: 28px;
  }
}

#settlementDetailDrawer {
  & .notice-text {
    font-size: 0.75rem;
    color: var(--ink-300);
  }

  & .settlemnet-detail-list {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  & .settlement-detail-box {
    border: 1px solid var(--ink-100);
    border-radius: var(--r-md);
    overflow: hidden;

    & > div {
      padding: 14px 16px;
    }

    & .settlement-notes {
      background: var(--ink-050);
      border-top: 1px solid var(--ink-100);
    }

    & .settlement-notes-title {
      font-size: 0.6875rem;
      font-weight: 600;
      color: var(--ink-500);
      margin-bottom: 3px;
      letter-spacing: 0.3px;
      text-transform: uppercase;
    }

    & .settlement-notes-text {
      font-size: 0.75rem;
      color: var(--ink-700);
      line-height: 1.6;
    }

    & .box-title {
      font-size: 0.6875rem;
      font-weight: 600;
      letter-spacing: 0.4px;
      text-transform: uppercase;
      color: var(--ink-300);
      margin-bottom: 10px;
    }
  }

  & .ir-val.accent {
    color: var(--accent);
    font-weight: 800;
  }

  & .ir-val.muted {
    color: var(--ink-300);
  }

  & .settlement-detail-note {
    font-size: 0.6875rem;
    color: var(--ink-300);
    text-align: center;
    line-height: 1.6;
  }
}

/* ══════════════════════════════════════
   TEXT MODAL (expandable content)
══════════════════════════════════════ */
.text-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.text-modal-backdrop.on {
  display: flex;
}

.text-modal-box {
  background: var(--white);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  z-index: 501;
  overflow: hidden;
}

.text-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ink-100);
  min-height: 52px;
}

.text-modal-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-400);
}

.text-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--page-bg);
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--ink-400);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
  margin-left: auto;
}

.text-modal-close:hover {
  background: var(--ink-100);
  color: var(--ink-900);
}

.text-modal-body {
  padding: 20px;
  font-size: 0.875rem;
  color: var(--ink-700);
  line-height: 1.75;
  /* white-space: pre-wrap; */
}

/* ── Expandable items (truncate + cursor) ── */
.hosp-info-value.expandable,
.hosp-update-item.expandable {
  cursor: pointer;
}

.hosp-info-value.expandable {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hosp-update-item.expandable .hosp-update-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hosp-update-item.expandable:hover {
  background: var(--ink-050);
}

/* ── Message card: scrollable when long ── */
.hosp-msg-card {
  max-height: 200px;
  overflow-y: auto;
}

#secIqList {
  & .filter-bar {
    & .date-input {
      width: auto;
      padding: 7px 10px;
    }
  }

  & #inqListTable {
    & .b-booking-d-day {
      font-size: 0.625rem;
      color: var(--accent);
      margin-top: 3px;
      font-weight: 600;
    }
  }
}

#secCreateIq {
  & .page-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  & .attached-file-card {
    & .notice-text {
      font-size: 0.75rem;
      color: var(--ink-300);
    }
  }

  & .page-footer {
    justify-content: flex-end;
    padding-bottom: 32px;
  }
}

#secSettlement {
  & .sett-grid {
    & .sett-amt {
      &.muted {
        color: var(--ink-300);
      }
    }
  }

  & #settTableCard {
    & .card-body {
      padding-bottom: 0;
    }

    & .b-panel {
      & .bonus-text {
        font-size: 0.8125rem;
        font-weight: 600;
      }
    }

    & .sett-table-note {
      padding: 12px 16px;
      border-top: 1px solid var(--ink-100);

      & > span {
        font-size: 0.75rem;
        color: var(--ink-300);
      }
    }
  }
}

#secNoticeList {
  & .notice-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
  }

  & .stack {
    & .lock-ico {
      height: 30px;
    }
  }

  & .locked-block {
    padding: 32px 20px;
  }

  & .card-note {
    padding: 12px 20px;
    border-top: 1px solid var(--ink-100);
    background: var(--ink-050);

    & > div {
      font-size: 0.6875rem;
      color: var(--ink-300);
      & strong {
        &.green {
          color: var(--green);
        }
        &.black {
          color: var(--ink-700);
        }
        &.accent {
          color: var(--accent);
        }
      }
    }
  }

  #notiTableCard {
    & .card-body {
      padding-bottom: 0;
    }

    & .tab-panel {
      padding: 0 20px;

      & .empty-notice {
        color: var(--ink-300);
        font-size: 0.8125rem;
        text-align: center;
      }
    }
  }

  #ntcPromoCard {
    & .ntc-promo-unlocked {
      & .promo-status {
        font-size: 0.625rem;
        padding: 3px 8px;
      }
    }
  }
}

#promotionDetailDrawer {
  & .promo-date-text {
    font-size: 0.75rem;
    color: var(--ink-300);
  }
  & .ir-val {
    &.green {
      font-weight: 800;
      color: var(--green);
    }

    &.accent {
      color: var(--accent);
      font-weight: 700;
    }
  }
}

#secPromotions {
  & .promo-locked {
    & .locked-block {
      padding: 100px 24px;

      & .lock-title {
        font-size: 1rem;
      }
    }
  }

  & .promo-unlocked {
    & .promo-hero-wrap {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-bottom: 24px;
    }

    & .promo-hero-card {
      &.blue {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
      }

      &.green {
        background: linear-gradient(135deg, #059669, #047857);
      }

      &.violet {
        background: linear-gradient(135deg, #7c3aed, #6d28d9);
      }
    }

    & .filter-bar {
      border-radius: var(--r-lg);
      border: 1px solid var(--ink-100);
      margin-bottom: 20px;
      background: var(--ink-050);
    }

    & .promotions-table {
      & table {
        & .hospital-td {
          font-size: 0.8125rem;
        }

        & .date-td {
          font-size: 0.8125rem;
        }

        & .benefit-td {
          font-size: 0.8125rem;
          font-weight: 700;
        }
      }
    }

    & .promotions-note {
      padding: 16px 20px;
      background: var(--accent-muted);
      border-radius: var(--r-lg);
      border: 1px solid #bfdbfe;
      margin-top: 16px;
      font-size: 0.8125rem;
      color: var(--ink-700);
      line-height: 1.65;
    }
  }
}

#secResources {
  & .res-cta-banner {
    background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
    border-radius: var(--r-lg);
    padding: 32px 36px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;

    & .package-img {
      opacity: 0.4;
      flex-shrink: 0;
      height: 74px;
      & img {
        height: 100%;
      }
    }
  }
}

#secSettingOrg {
  & .card-body {
    & .website-row {
      & .ir-val {
        color: var(--accent);
      }
    }
  }
}

#secSettingVerified {
  & .verified-status-banner {
    padding: 12px 14px;
    border-radius: var(--r-md);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    &.ok {
      background: var(--green-bg);
      border: 1px solid #d1fae5;
      & .status-text {
        color: var(--green);
      }

      & .status-sub-text {
        color: #15803d;
      }
    }

    &.pending {
      background: #fffbeb;
      border: 1px solid #fde68a;
      & .status-text {
        color: #92400e;
      }

      & .status-sub-text {
        color: #78350f;
        line-height: 1.6;
      }
    }

    &.unverified {
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      & .status-text {
        color: #1d4ed8;
      }

      & .status-sub-text {
        color: #1e40af;
        line-height: 1.8;
      }
    }

    &.rejected {
      background: #fef2f2;
      border: 1px solid #fecaca;

      & .status-text {
        color: #991b1b;
      }

      & .status-sub-text {
        color: #7f1d1d;
        line-height: 1.6;
      }

      & .status-date {
        font-size: 0.6875rem;
        color: #991b1b;
        font-weight: 600;
      }
    }

    & .status-text {
      font-size: 0.8125rem;
      font-weight: 700;
    }

    & .status-sub-text {
      font-size: 0.75rem;
    }
  }

  & .doc-item {
    & .doc-title {
      flex: 1;
    }
  }

  & .setting-verified-note {
    margin-top: 16px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--ink-400);

    & .note-link {
      color: var(--accent);
      font-weight: 600;
    }
  }

  & .card-body {
    & .btn {
      display: block;
      text-align: center;
      text-decoration: none;
      width: 100%;
      box-sizing: border-box;
    }
  }
}

#secSettingAccount {
  & .card-sub-title {
    font-size: 0.75rem;
    color: var(--ink-300);
  }

  & .setting-account-note {
    padding: 10px 14px;
    background: var(--ink-050);
    border-radius: var(--r-md);
    margin-bottom: 16px;
    font-size: 0.75rem;
    color: var(--ink-500);
    border: 1px solid var(--ink-100);
  }
}

#secSettingOperator {
  & table {
    & .td-action {
      color: var(--ink-300);
      font-size: 0.75rem;
    }
  }
}

#secSettingReferral {
  & .setting-referral-note {
    font-size: 0.6875rem;
    color: var(--ink-300);
    text-align: center;
    margin-top: 14px;
  }
}

#secReferral {
  & .ref-locked {
    & .locked-block {
      padding: 100px 24px;

      & .lock-title {
        font-size: 1rem;
      }
    }
  }

  & .ref-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
    align-items: start;
  }

  & .referral-code-card {
    & .card-body {
      text-align: center;
      padding: 32px 28px;
    }
  }

  & .referral-code-title {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-300);
    margin-bottom: 14px;
  }

  & .referral-code-value {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--ink-900);
    font-family: monospace;
    margin-bottom: 6px;
  }

  & .agency-name {
    font-size: 0.75rem;
    color: var(--ink-300);
    margin-bottom: 24px;
  }

  & .refeffal-copy-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
  }

  & .referral-code-note {
    padding: 14px 20px;
    border-top: 1px solid var(--ink-100);
    background: var(--ink-050);
    text-align: center;

    & > div {
      font-size: 0.75rem;
      color: var(--ink-500);
    }
  }

  & .ref-stat-box-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--ink-100);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-lg);
    overflow: hidden;

    & > div {
      background: var(--white);
      padding: 22px 20px;

      & .kpi-val {
        font-size: 2rem;

        &.green {
          color: var(--green);
        }

        &.accent {
          color: var(--accent);
        }
      }
    }
  }

  & .ref-partners-table {
    & .date-td {
      font-size: 0.8125rem;
    }

    & .bonus-td {
      font-size: 0.875rem;
      font-weight: 700;
      &.green {
        color: var(--green);
      }

      &.muted {
        font-size: 0.8125rem;
        color: var(--ink-300);
        font-weight: 400;
      }
    }
  }

  & .ref-bonus-table {
    & .partner-name-td {
      font-size: 0.8125rem;
      font-weight: 600;
    }

    & .bonus-td {
      font-weight: 700;
    }
  }
}

#secSupport {
  & .sup-hero-wrap {
    display: grid;
    /* grid-template-columns: repeat(3, 1fr); */
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
  }

  & .sup-quick-card {
    &:nth-child(1) {
      & .sqc-icon {
        background: #eff4ff;
        color: var(--accent);
      }
    }

    &:nth-child(2) {
      & .sqc-icon {
        background: #f0fdf4;
        color: var(--green);
      }
    }

    &:nth-child(3) {
      & .sqc-icon {
        background: #fffbeb;
        color: var(--amber);
      }
    }
  }

  & .sup-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
  }

  & .filter-bar {
    padding: 16px 20px;
  }

  & .sup-contact-row {
    &:last-child {
      border-bottom: none;
    }
  }

  & .faq-card {
    & .card-body {
      padding: 0;
    }
  }

  & .faq-item {
    &:last-child {
      border-bottom: none;
    }
  }
}
