:root {
  --bg: #f3f6f7;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #637381;
  --line: #d5dee4;
  --field: #f9fbfc;
  --primary: #0f766e;
  --primary-dark: #0b5f59;
  --accent: #9a3412;
  --danger: #b42318;
  --shadow: 0 20px 60px rgba(18, 38, 48, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(154, 52, 18, 0.06) 0 1px, transparent 1px 100%),
    var(--bg);
  background-size: 42px 42px;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.login-shell {
  display: grid;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  align-items: stretch;
}

.brand-panel,
.login-panel,
.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  padding: 34px;
}

.login-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.06;
}

h2 {
  font-size: 24px;
}

.lead {
  max-width: 560px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.signal-grid div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
}

.signal-grid strong,
.signal-grid span {
  display: block;
}

.signal-grid strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.signal-grid span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.login-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef4f4;
}

.login-mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #344054;
  cursor: pointer;
  font-weight: 800;
}

.login-mode-tab input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.login-mode-tab.active {
  border-color: rgba(15, 118, 110, 0.3);
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: 0 8px 22px rgba(18, 38, 48, 0.08);
}

.platform-login-note {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: #eefbf8;
}

.platform-login-note strong,
.platform-login-note span {
  display: block;
}

.platform-login-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5dc;
  border-radius: 6px;
  background: var(--field);
  color: var(--text);
  outline: none;
  padding: 0 12px;
}

.field textarea {
  min-height: 108px;
  line-height: 1.7;
  padding: 12px 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.primary-button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.primary-button:hover {
  background: var(--primary-dark);
}

.secondary-button {
  min-height: 40px;
  border: 1px solid #b8c4cc;
  border-radius: 6px;
  background: #ffffff;
  color: #344054;
  cursor: pointer;
  font-weight: 800;
  padding: 0 14px;
}

.secondary-button:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.danger-button {
  min-height: 32px;
  border: 1px solid rgba(180, 35, 24, 0.35);
  border-radius: 6px;
  background: #fff7f6;
  color: var(--danger);
  cursor: pointer;
  font-weight: 800;
  padding: 0 12px;
}

.danger-button:hover {
  border-color: var(--danger);
  background: #fef3f2;
}

.compact-button {
  min-height: 32px;
  padding: 0 12px;
}

.inline-delete-form {
  display: inline-flex;
  margin: 0;
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.alert p + p {
  margin-top: 6px;
}

.alert.error {
  border: 1px solid rgba(180, 35, 24, 0.24);
  background: #fef3f2;
  color: var(--danger);
}

.alert.success {
  border: 1px solid rgba(2, 122, 72, 0.24);
  background: #ecfdf3;
  color: #027a48;
}

.dashboard-panel {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 34px;
  text-align: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f766e, #9a3412);
  color: #ffffff;
  font-size: 42px;
  font-weight: 800;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-list {
  display: grid;
  gap: 0;
  margin: 28px 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.profile-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.profile-list dt {
  color: var(--muted);
}

.profile-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.dashboard-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
}

.primary-link {
  background: var(--primary);
  color: #ffffff;
}

.secondary-link {
  border: 1px solid #b8c4cc;
  background: #ffffff;
  color: #344054;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 18px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
}

.sidebar-brand > span,
.mini-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f766e, #9a3412);
  color: #ffffff;
  font-weight: 900;
}

.sidebar-brand strong,
.sidebar-brand small,
.sidebar-user strong,
.sidebar-user small {
  display: block;
}

.sidebar-brand small,
.sidebar-user small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.side-menu {
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 26px;
}

.side-menu a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  color: #344054;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.side-menu a span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #eef2f4;
  color: var(--primary-dark);
  font-size: 12px;
}

.side-menu a.active {
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary-dark);
  box-shadow: inset 3px 0 0 var(--primary);
}

.side-menu a.active span,
.side-menu a:hover span {
  background: var(--primary);
  color: #ffffff;
}

.side-menu a:hover,
.side-menu a:focus-visible {
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-dark);
  outline: none;
}

.side-menu a:focus-visible,
.menu-group-title:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.menu-group {
  display: grid;
  gap: 6px;
}

.menu-group-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 0;
  padding: 0 34px 0 12px;
  border-radius: 6px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.menu-group-title::after {
  position: absolute;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  opacity: 0.58;
  transform: rotate(-45deg);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-group-title span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #eef2f4;
  color: var(--primary-dark);
  font-size: 12px;
}

.menu-group.open .menu-group-title {
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary-dark);
}

.menu-group-title:hover {
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-dark);
}

.menu-group-title:hover span,
.menu-group-title:focus-visible span {
  background: var(--primary);
  color: #ffffff;
}

.menu-group.open .menu-group-title span {
  background: var(--primary);
  color: #ffffff;
}

.menu-group.open .menu-group-title::after {
  opacity: 0.9;
  transform: rotate(45deg);
}

.submenu {
  display: none;
  gap: 4px;
  margin: 2px 0 2px 34px;
  padding-left: 8px;
  border-left: 1px solid #dce7e5;
}

.menu-group.open .submenu {
  display: grid;
}

.submenu a {
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.submenu a.active {
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary-dark);
  box-shadow: inset 3px 0 0 var(--primary);
}

.logout-link {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mini-avatar {
  width: 38px;
  height: 38px;
  overflow: hidden;
}

.mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-main {
  min-width: 0;
  padding: 26px;
}

.admin-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-topbar h1 {
  font-size: clamp(28px, 4vw, 42px);
}

.topbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--primary-dark);
  white-space: nowrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-card,
.content-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.metric-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
}

.metric-card-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.metric-card-link:hover {
  border-color: rgba(31, 102, 91, 0.36);
  box-shadow: 0 14px 30px rgba(23, 48, 42, 0.12);
  transform: translateY(-2px);
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  overflow-wrap: anywhere;
  font-size: 24px;
}

.metric-card-amount {
  align-content: start;
}

.metric-amount-lines {
  display: grid;
  gap: 8px;
}

.metric-amount-lines div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.metric-amount-lines span {
  flex: 0 0 auto;
  font-size: 12px;
}

.metric-amount-lines strong {
  font-size: 18px;
  text-align: right;
}

.dashboard-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.status-strip {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.status-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #344054;
  font-weight: 800;
}

.status-row strong {
  color: var(--primary-dark);
  font-size: 20px;
}

.status-row small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.reservation-schedule-panel {
  margin-bottom: 18px;
}

.reservation-schedule-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.reservation-date-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
}

.reservation-date-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.reservation-date-form input {
  min-width: 178px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #ffffff;
  color: var(--text);
}

.reservation-all-time-field {
  display: inline-flex !important;
  grid-template-columns: none !important;
  gap: 8px !important;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.reservation-all-time-field input {
  min-width: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.reservation-date-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.reservation-date-shortcuts a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #ccd6dd;
  border-radius: 6px;
  background: #ffffff;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.reservation-date-shortcuts a.is-active {
  border-color: rgba(15, 118, 110, 0.38);
  background: #e9f7f5;
  color: var(--primary-dark);
}

.reservation-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.reservation-summary-grid div {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid #d8e1e7;
  border-radius: 8px;
  background: #ffffff;
}

.reservation-summary-grid div:nth-child(1) {
  background: #f5f7ff;
}

.reservation-summary-grid div:nth-child(3) {
  background: #fff7ed;
}

.reservation-summary-grid div:nth-child(4) {
  background: #f0fdf4;
}

.reservation-summary-grid div:nth-child(5) {
  background: #f7f7f8;
}

.reservation-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reservation-summary-grid strong {
  color: #17202a;
  font-size: 22px;
}

.reservation-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.reservation-room-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  border: 1px solid #d8e1e7;
  border-left: 5px solid #94a3b8;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.reservation-room-card.is-free {
  border-left-color: #16a34a;
  background: #fbfffd;
}

.reservation-room-card.is-booked {
  border-left-color: #f97316;
  background: #fffaf5;
}

.reservation-room-card.is-disabled {
  border-left-color: #98a2b3;
  background: #f7f8fa;
}

.reservation-room-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.reservation-room-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reservation-room-top h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.reservation-count-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  padding: 0 8px;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
}

.reservation-count-bubble:hover,
.reservation-count-bubble:focus {
  background: #b91c1c;
  outline: 3px solid rgba(220, 38, 38, 0.18);
}

.reservation-room-top strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2f6;
  color: #344054;
  white-space: nowrap;
  font-size: 13px;
}

.reservation-room-card.is-free .reservation-room-top strong {
  background: #dcfce7;
  color: #166534;
}

.reservation-room-card.is-booked .reservation-room-top strong {
  background: #ffedd5;
  color: #9a3412;
}

.reservation-room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reservation-room-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid #d8e1e7;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.reservation-empty-room,
.reservation-empty-state {
  display: grid;
  place-items: center;
  min-height: 76px;
  border: 1px dashed #c4ced6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-weight: 800;
}

.reservation-booking-list {
  display: grid;
  gap: 8px;
}

.reservation-booking-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 8px;
  background: #ffffff;
}

.reservation-booking-item div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.reservation-booking-item strong {
  color: #9a3412;
  font-size: 16px;
}

.reservation-booking-item span,
.reservation-booking-item small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.reservation-booking-item span {
  color: #344054;
  font-weight: 800;
}

.reservation-booking-item small {
  color: var(--muted);
  font-size: 12px;
}

.reservation-more-button {
  min-height: 36px;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 6px;
  background: #fff5f5;
  color: #b42318;
  cursor: pointer;
  font-weight: 900;
}

.reservation-more-button:hover {
  border-color: rgba(220, 38, 38, 0.42);
  background: #ffe9e9;
}

.reservation-detail-dialog {
  width: min(720px, 100%);
}

.reservation-detail-dialog .detail-dialog-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.reservation-detail-list {
  display: grid;
  gap: 10px;
  max-height: min(62vh, 560px);
  overflow: auto;
  padding-right: 4px;
}

.reservation-detail-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(220, 38, 38, 0.16);
  border-left: 4px solid #dc2626;
  border-radius: 8px;
  background: #ffffff;
}

.reservation-detail-item strong {
  color: #b42318;
  font-size: 17px;
}

.reservation-detail-item span {
  color: #344054;
  font-weight: 900;
}

.reservation-detail-item small {
  color: var(--muted);
  font-size: 13px;
}

.reservation-unmatched {
  margin-top: 16px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: 8px;
  background: #fff8f7;
  padding: 14px;
}

.reservation-unmatched h3 {
  margin: 0 0 10px;
  color: #912018;
  font-size: 16px;
}

.reservation-unmatched-list {
  display: grid;
  gap: 8px;
}

.reservation-unmatched-list div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 6px;
  background: #ffffff;
}

.reservation-unmatched-list span,
.reservation-unmatched-list small {
  color: var(--muted);
}

.dashboard-recent {
  margin-top: 0;
}

.dashboard-table {
  min-width: 760px;
}

.content-panel {
  padding: 22px;
}

.content-panel h2 {
  margin-bottom: 12px;
}

.content-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-text {
  color: var(--muted);
  line-height: 1.8;
}

.empty-module {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 22px;
  border: 1px dashed #b8c4cc;
  border-radius: 8px;
  background: #f9fbfc;
}

.empty-module strong {
  font-size: 18px;
}

.empty-module span {
  color: var(--muted);
}

.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.module-actions .primary-button,
.module-actions .secondary-button {
  min-width: 96px;
  padding: 0 14px;
}

.module-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
}

.module-filter .field {
  flex: 1 1 180px;
}

.table-area-overview {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.table-area-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.table-area-overview-head div {
  display: grid;
  gap: 4px;
}

.table-area-overview-head strong {
  color: var(--text);
  font-size: 16px;
}

.table-area-overview-head span,
.table-area-overview-head em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.table-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.table-area-card {
  display: grid;
  gap: 8px;
  min-height: 106px;
  border: 1px solid #d8e1e7;
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  padding: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.table-area-card:hover,
.table-area-card:focus {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 12px 28px rgba(23, 48, 42, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.table-area-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.table-area-card strong {
  font-size: 22px;
}

.table-area-card small {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.detail-modal .table-area-dialog {
  width: min(1320px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  gap: 10px;
  padding: 14px;
}

.table-area-dialog .detail-dialog-head p {
  display: none;
}

.table-area-modal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.table-area-modal-summary div {
  display: grid;
  gap: 3px;
  border: 1px solid #d8e1e7;
  border-radius: 8px;
  background: #f9fbfc;
  padding: 8px 10px;
}

.table-area-modal-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.table-area-modal-summary strong {
  color: var(--text);
  font-size: 18px;
}

.table-area-room-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  max-height: calc(100vh - 188px);
  overflow: auto;
  padding: 2px;
}

.table-area-room-card {
  align-content: start;
  gap: 7px;
  min-height: 0;
  padding: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.table-area-room-card .reservation-room-top {
  gap: 8px;
}

.table-area-room-card .reservation-room-top h3 {
  gap: 5px;
  font-size: 15px;
  line-height: 1.25;
}

.table-area-room-card .reservation-room-top strong {
  min-height: 24px;
  padding: 0 8px;
  font-size: 12px;
}

.table-area-room-card .reservation-room-meta {
  gap: 4px;
}

.table-area-room-card .reservation-room-meta span {
  min-height: 22px;
  padding: 0 6px;
  font-size: 11px;
}

.table-area-room-card .reservation-empty-room {
  min-height: 36px;
  font-size: 12px;
}

.table-area-room-card .reservation-booking-list {
  gap: 5px;
}

.table-area-room-card .reservation-booking-item {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  padding: 7px;
}

.table-area-room-card .reservation-booking-item div {
  gap: 2px;
}

.table-area-room-card .reservation-booking-item strong {
  font-size: 13px;
}

.table-area-room-card .reservation-booking-item span,
.table-area-room-card .reservation-booking-item small {
  font-size: 11px;
}

.table-area-room-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16), 0 12px 28px rgba(23, 48, 42, 0.12);
}

.table-area-room-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.table-area-select-button.is-selected {
  border-color: rgba(15, 118, 110, 0.36);
  background: #e9f7f5;
  color: var(--primary-dark);
}

.reservation-room-top .table-area-count-bubble {
  color: #ffffff;
  pointer-events: none;
}

.batch-setting-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #f3fbf9;
  padding: 14px;
}

.batch-setting-panel > div {
  display: grid;
  gap: 4px;
  min-width: 160px;
}

.batch-setting-panel strong {
  color: #184e49;
  font-size: 15px;
}

.batch-setting-panel span {
  color: var(--muted);
  font-size: 13px;
}

.batch-setting-panel .compact-field {
  flex: 0 1 220px;
}

.selection-cell {
  width: 72px;
  text-align: center;
}

.data-table .selection-cell {
  text-align: center;
}

.table-check-control {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.table-check-control input,
.batch-record-check {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.management-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.table-panel,
.operation-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.table-head span {
  color: var(--muted);
  font-size: 13px;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  color: #344054;
  background: #f9fbfc;
  font-size: 13px;
}

.data-table td {
  color: #1f2937;
}

.data-table tr.selected td {
  background: rgba(15, 118, 110, 0.08);
}

.member-log-table {
  min-width: 1080px;
}

.member-log-text {
  max-width: 220px;
  white-space: normal;
  line-height: 1.7;
}

.member-log-summary {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-action-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
}

.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.pagination-info {
  color: var(--muted);
  font-size: 13px;
}

.pagination-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 32px;
  border: 1px solid #b8c4cc;
  border-radius: 6px;
  background: #ffffff;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  padding: 0 10px;
  text-decoration: none;
}

.pagination-button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.pagination-button.disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
}

.sort-button::after {
  color: var(--muted);
  content: "↕";
  font-size: 12px;
}

.sort-button[data-direction="asc"]::after {
  content: "↑";
}

.sort-button[data-direction="desc"]::after {
  content: "↓";
}

.operation-panel {
  padding: 16px;
}

.operation-panel h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.detail-modal[hidden] {
  display: none;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.detail-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.detail-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 22px;
}

.member-log-dialog {
  width: min(820px, 100%);
}

.member-log-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-log-detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f9fbfc;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  padding: 0 10px;
}

.member-log-detail-json {
  max-height: min(520px, calc(100vh - 260px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
  color: #e5edf4;
  font-size: 13px;
  line-height: 1.7;
  padding: 14px;
  white-space: pre-wrap;
}

.detail-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.detail-dialog-head h2 {
  margin-top: 2px;
}

.detail-dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-close-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: #344054;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.detail-close-button:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fbfc;
  color: var(--muted);
  font-size: 13px;
  padding: 0 10px;
}

.detail-list {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
}

.detail-list dt,
.detail-list dd {
  min-height: 44px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 800;
}

.order-detail-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  background: #f8fafc;
  gap: 10px;
  padding: 14px;
}

.order-detail-head {
  align-items: center;
}

.order-detail-head .eyebrow {
  display: none;
}

.order-detail-head h2 {
  font-size: 18px;
}

.order-sheet {
  display: grid;
  border: 1px solid #667085;
  background: #ffffff;
  color: #1f2933;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.order-sheet h3 {
  margin: 0;
  border-bottom: 1px solid #667085;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  padding: 10px 12px;
}

.order-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #667085;
}

.order-sheet-grid div {
  display: flex;
  align-items: center;
  min-height: 40px;
  border-right: 1px solid #667085;
  border-bottom: 1px solid #667085;
  gap: 6px;
  overflow: hidden;
  padding: 6px 10px;
}

.order-sheet-grid div:nth-child(3n) {
  border-right: 0;
}

.order-sheet-grid div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.order-sheet span {
  flex: 0 0 auto;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.order-sheet strong {
  min-width: 0;
  color: #7f1d1d;
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.order-sheet-menu {
  display: grid;
  gap: 14px;
  min-height: 0;
  border-bottom: 1px solid #667085;
  padding: 14px 36px 18px;
}

.order-sheet-price {
  color: #111827;
  font-size: 21px;
  font-weight: 900;
  text-align: center;
}

.order-sheet-menu-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.order-sheet-menu-row > span {
  padding-top: 4px;
  text-align: right;
}

.order-sheet-menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 34px;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.28;
}

.order-sheet-menu-list span,
.order-sheet-menu-list em {
  min-width: 0;
  color: #111827;
  font-style: normal;
  overflow-wrap: anywhere;
}

.order-sheet-bottom {
  display: grid;
}

.order-sheet-line {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 110px minmax(0, 1fr);
  min-height: 38px;
  border-bottom: 1px solid #667085;
}

.order-sheet-line:last-child {
  border-bottom: 0;
}

.order-sheet-line span,
.order-sheet-line strong {
  display: flex;
  align-items: center;
  min-width: 0;
  border-right: 1px solid #667085;
  padding: 6px 10px;
}

.order-sheet-line strong:last-child {
  border-right: 0;
}

.order-sheet-full {
  grid-template-columns: 110px minmax(0, 1fr);
}

.order-sheet footer {
  border-top: 1px solid #667085;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  padding: 6px 10px;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  body.order-detail-printing {
    background: #ffffff;
  }

  body.order-detail-printing * {
    visibility: hidden !important;
  }

  body.order-detail-printing .order-detail-modal,
  body.order-detail-printing .order-detail-modal * {
    visibility: visible !important;
  }

  body.order-detail-printing .order-detail-modal {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    display: block !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body.order-detail-printing .detail-modal-backdrop,
  body.order-detail-printing .order-detail-head {
    display: none !important;
  }

  body.order-detail-printing .order-detail-dialog {
    display: block !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  body.order-detail-printing .order-sheet {
    width: 100% !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.order-detail-printing .order-sheet h3 {
    font-size: 16pt;
    padding: 4mm 3mm;
  }

  body.order-detail-printing .order-sheet-grid div {
    min-height: 10mm;
    padding: 2.4mm 3mm;
  }

  body.order-detail-printing .order-sheet span,
  body.order-detail-printing .order-sheet strong {
    font-size: 10pt;
  }

  body.order-detail-printing .order-sheet-menu {
    gap: 5mm;
    min-height: 82mm;
    padding: 5mm 10mm 7mm;
  }

  body.order-detail-printing .order-sheet-price {
    font-size: 15pt;
  }

  body.order-detail-printing .order-sheet-menu-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2mm 7mm;
    font-size: 10pt;
    line-height: 1.25;
  }

  body.order-detail-printing .order-sheet-line {
    min-height: 9mm;
  }

  body.order-detail-printing .order-sheet-line span,
  body.order-detail-printing .order-sheet-line strong {
    padding: 2.2mm 3mm;
  }

  body.order-detail-printing .order-sheet footer {
    font-size: 10pt;
    padding: 2.4mm 3mm;
  }
}

.operation-form {
  display: grid;
  gap: 14px;
}

.product-menu-field,
.room-picker-field {
  gap: 9px;
}

.product-menu-open,
.room-picker-open {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5dc;
  border-radius: 6px;
  background: var(--field);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  padding: 0 12px;
}

.product-menu-open:hover,
.product-menu-open:focus,
.room-picker-open:hover,
.room-picker-open:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
  outline: none;
}

.product-menu-open:disabled,
.room-picker-open:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.product-menu-summary,
.room-picker-summary {
  min-height: 38px;
  border: 1px dashed #b8c4cc;
  border-radius: 6px;
  background: #f9fbfc;
  color: #475467;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  padding: 8px 10px;
}

.product-menu-dialog {
  width: min(960px, 100%);
}

.room-picker-dialog {
  width: min(1120px, 100%);
}

.product-menu-dialog .detail-dialog-head p,
.room-picker-dialog .detail-dialog-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.product-menu-search,
.room-picker-search {
  display: grid;
  gap: 7px;
}

.product-menu-search span,
.room-picker-search span {
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.product-menu-search input,
.room-picker-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5dc;
  border-radius: 6px;
  background: var(--field);
  color: var(--text);
  outline: none;
  padding: 0 12px;
}

.product-menu-search input:focus,
.room-picker-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.room-picker-grid {
  max-height: min(540px, calc(100vh - 260px));
  overflow: auto;
  padding: 2px;
}

.room-picker-card {
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.room-picker-card:hover,
.room-picker-card:focus {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(23, 48, 42, 0.12);
  transform: translateY(-1px);
}

.room-picker-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16), 0 12px 28px rgba(23, 48, 42, 0.12);
}

.room-picker-card[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.72;
}

.room-picker-card[aria-disabled="true"]:hover,
.room-picker-card[aria-disabled="true"]:focus {
  border-color: #d8e1e7;
  box-shadow: none;
  transform: none;
}

.room-picker-count-bubble {
  pointer-events: none;
}

.product-menu-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding: 2px;
}

.product-menu-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  padding: 9px 10px;
}

.product-menu-option:hover {
  border-color: var(--primary);
  background: #f2fbf9;
}

.product-menu-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  accent-color: var(--primary);
  padding: 0;
}

.product-menu-option-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.product-menu-option-main strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-menu-option-main em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.product-menu-price {
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.product-menu-qty {
  display: inline-grid;
  grid-template-columns: auto 58px;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.product-menu-qty b {
  color: var(--muted);
  font-size: 12px;
}

.product-menu-qty input {
  width: 58px;
  min-height: 32px;
  border: 1px solid #cbd5dc;
  border-radius: 6px;
  background: var(--field);
  color: var(--text);
  font-weight: 900;
  padding: 0 8px;
}

.product-menu-empty {
  border: 1px dashed #b8c4cc;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 900;
  padding: 14px;
  text-align: center;
}

.product-menu-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.product-menu-actions .primary-button,
.product-menu-actions .secondary-button {
  min-width: 112px;
  padding: 0 16px;
}

.rich-editor {
  display: grid;
  gap: 0;
  border: 1px solid #cbd5dc;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #f9fbfc;
}

.rich-editor-toolbar button {
  min-height: 30px;
  border: 1px solid #b8c4cc;
  border-radius: 6px;
  background: #ffffff;
  color: #344054;
  cursor: pointer;
  font-weight: 800;
  padding: 0 9px;
}

.rich-editor-toolbar button:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.rich-editor-input {
  min-height: 220px;
  max-height: 460px;
  overflow: auto;
  background: #ffffff;
  color: var(--text);
  line-height: 1.75;
  outline: none;
  padding: 14px;
}

.rich-editor-input:focus {
  box-shadow: inset 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.rich-editor-input p,
.rich-editor-input h2,
.rich-editor-input h3,
.rich-editor-input ul,
.rich-editor-input ol,
.rich-editor-input blockquote {
  margin: 0 0 10px;
}

.rich-editor-value {
  display: none;
}

.image-picker {
  display: block;
  width: 100%;
  min-height: 180px;
  border: 1px solid #cbd5dc;
  border-radius: 6px;
  background: #f3f6fa;
  cursor: pointer;
  overflow: hidden;
  padding: 14px;
}

.image-picker-file {
  display: none;
}

.image-picker-preview {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 150px;
  background: #eef2f6;
  color: #98a2b3;
  gap: 10px;
}

.image-picker-preview strong {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #cbd5e1;
  color: #ffffff;
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
}

.image-picker-preview em {
  font-style: normal;
  font-size: 16px;
}

.image-picker-preview img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.info-publish-panel {
  padding: 20px;
}

.info-publish-form {
  gap: 18px;
}

.info-publish-form .field > span {
  font-size: 15px;
  font-weight: 500;
}

.info-publish-top {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.info-cover-field .field > span,
.info-title-fields .field > span,
.info-editor-field .field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.info-cover-field .image-picker {
  height: 268px;
  padding: 14px;
}

.info-cover-field .image-picker-preview {
  min-height: 238px;
}

.mini-program-settings-grid {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}

.mini-program-preview,
.mini-program-upload-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
}

.mini-program-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mini-program-preview-head strong {
  color: #172c25;
  font-size: 16px;
}

.mini-program-preview-head span,
.mini-program-image-url {
  color: var(--muted);
  font-size: 13px;
}

.mini-program-phone {
  max-width: 330px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 24px;
  background: #f6f6f4;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
}

.mini-program-hero {
  position: relative;
  height: 190px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(212, 176, 104, 0.22), transparent 30%),
    linear-gradient(145deg, #173b31 0%, #034f39 56%, #062f24 100%);
}

.mini-program-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mini-program-hero span {
  position: absolute;
  right: -28px;
  bottom: -44px;
  left: -28px;
  height: 92px;
  background: linear-gradient(180deg, rgba(246, 246, 244, 0), #f6f6f4 76%);
}

.mini-program-card {
  display: grid;
  gap: 6px;
  margin: -34px 18px 22px;
  position: relative;
  z-index: 1;
  border-radius: 14px;
  background: #ffffff;
  padding: 16px 18px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.1);
}

.mini-program-card strong {
  color: #1f2937;
  font-size: 16px;
}

.mini-program-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.mini-program-image-url {
  margin-top: 14px;
  word-break: break-all;
}

.mini-program-upload-form {
  display: grid;
  gap: 16px;
}

.mini-program-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mini-program-section-title strong {
  color: #172c25;
  font-size: 15px;
}

.mini-program-section-title span {
  color: var(--muted);
  font-size: 12px;
}

.mini-program-image-list,
.mini-program-new-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

.mini-program-new-images {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.mini-program-image-item {
  display: grid;
  gap: 10px;
  position: relative;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.mini-program-image-item img {
  width: 100%;
  aspect-ratio: 750 / 430;
  display: block;
  border-radius: 6px;
  background: #eef2f7;
  object-fit: cover;
}

.mini-program-image-item label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #425466;
  font-size: 12px;
  font-weight: 800;
}

.mini-program-image-item input[type="number"] {
  width: 76px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  text-align: center;
}

.mini-program-image-item em {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 999px;
  background: rgba(23, 44, 37, 0.82);
  color: #ffffff;
  padding: 4px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.mini-program-remove-check {
  justify-content: flex-start !important;
}

.mini-program-remove-check input {
  width: 16px;
  height: 16px;
}

.mini-program-image-item.is-removing {
  border-color: rgba(185, 28, 28, 0.35);
  opacity: 0.55;
}

.mini-program-file-field input[type="file"] {
  cursor: pointer;
}

.mini-program-upload-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mini-program-upload-status.success {
  color: var(--primary-dark);
}

.mini-program-upload-status.error {
  color: var(--danger);
}

.mini-program-upload-status.loading {
  color: #9a3412;
}

.info-title-fields {
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr);
  gap: 22px;
}

.info-title-fields .field textarea {
  min-height: 192px;
}

.info-title-fields .field input,
.info-title-fields .field textarea,
.info-keyword-field .field input,
.info-meta-grid .field input,
.info-meta-grid .field select {
  background: #ffffff;
  font-size: 17px;
}

.info-title-fields .field input::placeholder,
.info-title-fields .field textarea::placeholder,
.info-keyword-field .field input::placeholder {
  color: #aab4c0;
}

.info-editor-field .rich-editor {
  border-color: #c7d0d8;
  border-radius: 6px;
}

.info-editor-field .rich-editor-toolbar {
  gap: 0;
  padding: 10px 14px;
  background: #ffffff;
}

.info-editor-field .rich-editor-toolbar button {
  min-width: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #344054;
  padding: 0 8px;
}

.info-editor-field .rich-editor-toolbar button:hover {
  background: #eef4f7;
}

.info-editor-field .rich-editor-input {
  min-height: 560px;
  max-height: none;
  margin: 22px auto;
  width: min(100%, 1230px);
  border: 1px solid #e3e9ee;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(18, 38, 48, 0.08);
}

.info-editor-field .rich-editor {
  background: #e6ebf1;
}

.info-keyword-field .field {
  gap: 8px;
}

.info-keyword-field .field > span {
  color: #344054;
  font-size: 16px;
}

.info-keyword-field .field > span::after {
  content: " i";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border: 1px solid #aab4c0;
  border-radius: 999px;
  color: #8a98a8;
  font-size: 12px;
  font-weight: 800;
}

.info-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 44px;
}

.info-meta-grid .field:nth-child(3) {
  grid-column: 1 / 2;
}

.info-meta-grid .field > span::after {
  content: " *";
  color: var(--danger);
}

.info-meta-grid .field:nth-child(3) > span::after {
  content: "";
}

.info-publish-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.info-publish-actions .primary-button,
.info-publish-actions .secondary-button {
  min-width: 112px;
  padding: 0 18px;
}

.operation-hint {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
}

.operation-hint.success {
  color: #027a48;
}

.operation-hint.error {
  color: var(--danger);
}

.operation-hint.loading {
  color: var(--primary-dark);
}

.operation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-edit-form {
  display: grid;
  gap: 18px;
}

.profile-avatar-section {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line);
}

.profile-avatar-preview {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #0f766e, #9a3412);
  color: #ffffff;
  cursor: pointer;
  font-size: 48px;
  font-weight: 900;
  padding: 0;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-preview:hover,
.profile-avatar-preview:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
  transform: translateY(-1px);
  outline: none;
}

.avatar-file-input {
  display: none;
}

.avatar-upload-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.avatar-upload-status.success {
  color: #027a48;
}

.avatar-upload-status.error {
  color: var(--danger);
}

.avatar-upload-status.loading {
  color: var(--primary-dark);
}

.readonly-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.readonly-summary div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.readonly-summary span {
  color: var(--muted);
  font-size: 13px;
}

.readonly-summary strong {
  overflow-wrap: anywhere;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.form-actions .primary-button {
  min-width: 120px;
  padding: 0 18px;
}

.admin-profile-list {
  margin: 0;
}

.password-panel {
  max-width: 560px;
}

.password-form {
  display: grid;
  gap: 16px;
}

.merchant-website-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.6fr);
  gap: 18px;
  align-items: start;
}

.merchant-website-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.merchant-website-list-panel {
  position: sticky;
  top: 88px;
}

.merchant-website-table {
  min-width: 620px;
}

.merchant-website-form {
  display: grid;
  gap: 18px;
}

.merchant-website-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.merchant-website-wide {
  grid-column: 1 / -1;
}

.merchant-website-file-field input[type="file"] {
  padding: 10px;
}

.merchant-website-section-editor {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.merchant-website-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.merchant-website-section-head strong {
  font-size: 16px;
}

.merchant-website-section-head span {
  color: var(--muted);
  font-size: 13px;
}

.merchant-website-gallery-grid {
  display: grid;
  gap: 12px;
}

.merchant-website-gallery-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(180px, 1.3fr) minmax(140px, 0.9fr);
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid #e3e9ed;
  border-radius: 8px;
  background: #f9fbfc;
}

.merchant-website-gallery-row .field:nth-child(2),
.merchant-website-gallery-row .field:nth-child(4) {
  grid-column: span 2;
}

.merchant-website-thumb {
  width: 96px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
}

.merchant-website-actions {
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  .merchant-website-layout,
  .merchant-website-form-grid,
  .merchant-website-gallery-row {
    grid-template-columns: 1fr;
  }

  .merchant-website-list-panel {
    position: static;
  }

  .merchant-website-gallery-row .field:nth-child(2),
  .merchant-website-gallery-row .field:nth-child(4) {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: auto;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
  }

  .side-menu a {
    justify-content: center;
  }

  .menu-group {
    gap: 4px;
  }

  .menu-group-title {
    justify-content: center;
  }

  .submenu {
    margin-left: 0;
  }

  .submenu a {
    justify-content: center;
    min-height: 32px;
  }

  .sidebar-user {
    display: none;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-board {
    grid-template-columns: 1fr;
  }

  .reservation-schedule-head {
    align-items: stretch;
    flex-direction: column;
  }

  .reservation-date-form {
    justify-content: flex-start;
  }

  .reservation-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .module-filter,
  .management-grid,
  .mini-program-settings-grid {
    grid-template-columns: 1fr;
  }

  .module-filter {
    align-items: stretch;
  }

  .form-grid,
  .readonly-summary {
    grid-template-columns: 1fr;
  }

  .order-sheet-grid {
    grid-template-columns: 1fr;
  }

  .order-sheet-grid div,
  .order-sheet-grid div:nth-child(3n),
  .order-sheet-grid div:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid #667085;
  }

  .order-sheet-grid div:last-child {
    border-bottom: 0;
  }

  .order-sheet-menu {
    min-height: 320px;
    padding: 24px 20px 30px;
  }

  .order-sheet-menu-row,
  .order-sheet-line,
  .order-sheet-full {
    grid-template-columns: 1fr;
  }

  .order-sheet-menu-row > span {
    text-align: left;
  }

  .order-sheet-menu-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .order-sheet-line span,
  .order-sheet-line strong {
    border-right: 0;
    border-bottom: 1px solid #667085;
  }

  .order-sheet-line strong:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .login-shell {
    width: min(100% - 20px, 1120px);
    padding: 14px 0;
  }

  .brand-panel,
  .login-panel,
  .dashboard-panel {
    padding: 18px;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .reservation-date-form {
    align-items: stretch;
    flex-direction: column;
  }

  .reservation-date-form input {
    width: 100%;
  }

  .reservation-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reservation-room-grid {
    grid-template-columns: 1fr;
  }

  .reservation-booking-item {
    grid-template-columns: 1fr;
  }

  .panel-head,
  .dashboard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .admin-main {
    padding: 14px 10px;
  }

  .admin-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .side-menu {
    grid-template-columns: 1fr 1fr;
  }

  .side-menu a {
    justify-content: flex-start;
  }

  .menu-group-title,
  .submenu a {
    justify-content: flex-start;
  }

  .form-actions {
    justify-content: stretch;
  }

  .module-actions,
  .operation-actions {
    grid-template-columns: 1fr;
  }

  .order-sheet h3 {
    font-size: 20px;
    padding: 14px 10px;
  }

  .order-sheet-price {
    font-size: 22px;
  }

  .order-sheet-menu-list {
    font-size: 18px;
  }

  .row-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-modal {
    padding: 12px;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .detail-list dt {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .detail-list dd {
    padding-top: 0;
  }

  .pagination-bar {
    align-items: stretch;
    flex-direction: column;
  }


  .pagination-actions {
    justify-content: flex-start;
  }

  .module-actions .primary-button,
  .module-actions .secondary-button,
  .module-filter .secondary-button {
    width: 100%;
  }

  .form-actions .primary-button {
    width: 100%;
  }
}
