:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --line: #dbe3ef;
  --text: #1f2a44;
  --muted: #6b7890;
  --primary: #2f6df6;
  --primary-dark: #1746ad;
  --accent: #0f9f8f;
  --warning: #b7791f;
  --danger: #c2413a;
  --nav: #1f2335;
  --nav-soft: #2a2f45;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(18, 30, 56, 0.08);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

body.admin-auth-booting .admin-login-shell,
body.admin-auth-booting .topbar,
body.admin-auth-booting .app-shell {
  display: none;
}

body:not(.admin-authenticated) .topbar,
body:not(.admin-authenticated) .app-shell {
  display: none;
}

body.admin-authenticated .admin-login-shell {
  display: none;
}

body[data-console-mode="platform"] .attraction-picker,
body[data-section="onboarding"] .attraction-picker {
  display: none;
}

.tenant-onboarding {
  display: grid;
  gap: 18px;
  max-width: 920px;
}

.tenant-onboarding h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.tenant-onboarding p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tenant-setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tenant-setup-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.tenant-setup-steps > div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}

.tenant-setup-steps span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-login-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 247, 251, 0.96)),
    var(--bg);
}

.admin-login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.admin-login-brand,
.admin-session {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-login-brand {
  margin-bottom: 4px;
}

.admin-login-brand img {
  width: auto;
  max-width: 132px;
  height: 44px;
  object-fit: contain;
}

.admin-login-brand div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-login-brand strong {
  font-size: 18px;
}

.admin-login-brand span,
.permission-summary {
  color: var(--muted);
  font-size: 12px;
}

.admin-login-card label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.admin-login-card input {
  width: 100%;
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  line-height: 1.4;
}

.admin-session {
  padding: 0 10px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

button, input, select {
  font: inherit;
}

textarea {
  font: inherit;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  padding: 10px;
  resize: vertical;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(47, 109, 246, 0.55);
  outline-offset: 2px;
}

.topbar {
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand, .top-meta, .language {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  min-width: 0;
}

.brand strong {
  white-space: nowrap;
}

.brand-logo-picker {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 3px 8px 3px 3px;
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
}

.brand-logo-picker:hover,
.brand-logo-picker:focus-within {
  border-color: var(--line);
  background: #f8fafc;
}

.brand-logo {
  width: auto;
  height: 40px;
  max-width: 128px;
  max-height: 40px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-logo-action {
  font-size: 12px;
  line-height: 1;
}

.brand-logo-action {
  color: var(--muted);
}

.top-meta {
  color: var(--muted);
  font-size: 13px;
}

.language select,
.attraction-picker select,
input,
select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  padding: 0 10px;
}

select:not([multiple]) {
  appearance: none;
  padding-right: 34px;
  background:
    linear-gradient(45deg, transparent 50%, #6b7890 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, #6b7890 50%, transparent 50%) calc(100% - 14px) 50% / 6px 6px no-repeat,
    #fff;
}

select:not([multiple]):hover {
  border-color: rgba(47, 109, 246, .45);
}

select:not([multiple]):focus-visible {
  outline: 0;
  border-color: rgba(47, 109, 246, .8);
  box-shadow: 0 0 0 3px rgba(47, 109, 246, .12);
}

select:disabled {
  color: #9aa6b8;
  background-color: #f4f6fa;
  cursor: not-allowed;
}

.select-control {
  position: relative;
  min-width: 0;
  width: 100%;
}

.select-control > select.native-select-hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.select-trigger {
  min-height: 36px;
  width: 100%;
  border: 1px solid #cfd9e8;
  border-radius: 5px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  color: var(--text);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.select-trigger:hover,
.select-control.open .select-trigger,
.select-control:focus-within .select-trigger {
  border-color: rgba(47, 109, 246, .75);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, .1);
}

.select-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-trigger b {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  justify-self: center;
  transition: transform .16s ease;
}

.select-control.open .select-trigger b {
  transform: rotate(225deg) translate(-2px, -2px);
}

.select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 80;
  min-width: 100%;
  max-height: 300px;
  overflow: auto;
  border: 1px solid #c9d7ec;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(18, 30, 56, .16);
  padding: 6px;
}

.select-option {
  min-height: 38px;
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #10284d;
  display: block;
  padding: 0 10px;
  text-align: left;
  white-space: nowrap;
}

.select-option:hover,
.select-option:focus-visible {
  background: #edf4ff;
  outline: 0;
}

.select-option.active {
  background: var(--primary);
  color: #fff;
}

.select-option:disabled {
  color: #9aa6b8;
  cursor: not-allowed;
}

.smart-control-label {
  position: relative;
}

.smart-control-input {
  width: 100%;
  padding-right: 40px;
  cursor: pointer;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border-color: #cfd9e8;
  font-weight: 700;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.smart-control-input:hover {
  border-color: rgba(47, 109, 246, .45);
  background: #fff;
}

.smart-control-input:focus-visible {
  outline: 0;
  border-color: rgba(47, 109, 246, .8);
  box-shadow: 0 0 0 3px rgba(47, 109, 246, .12);
}

.smart-control-label::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.has-smart-date::after {
  border: 1px solid #6b7890;
  border-radius: 4px;
  background:
    linear-gradient(#6b7890, #6b7890) 3px 5px / 10px 1px no-repeat,
    linear-gradient(#dce8fb, #dce8fb) 0 0 / 100% 5px no-repeat,
    #fff;
}

.has-smart-time::after {
  border: 2px solid #6b7890;
  border-radius: 50%;
  background:
    linear-gradient(#6b7890, #6b7890) 7px 3px / 2px 6px no-repeat,
    linear-gradient(#6b7890, #6b7890) 7px 7px / 5px 2px no-repeat,
    #fff;
}

.smart-picker-popover {
  position: fixed;
  z-index: 60;
  padding: 12px;
  border: 1px solid #d7e1ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(18, 30, 56, .2);
  color: var(--text);
}

.smart-picker-popover[hidden] {
  display: none;
}

.smart-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.smart-picker-head > div:first-child {
  display: grid;
  gap: 3px;
}

.smart-picker-head span,
.smart-time-column > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.smart-picker-head strong {
  color: var(--text);
  font-size: 16px;
}

.smart-picker-nav {
  display: flex;
  gap: 6px;
}

.smart-picker-nav button,
.smart-calendar-grid button,
.smart-time-column button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  padding: 0;
}

.smart-picker-nav button {
  width: 34px;
  height: 34px;
  font-size: 18px;
  background: #f5f8fd;
}

.smart-picker-nav button:hover,
.smart-calendar-grid button:hover,
.smart-time-column button:hover {
  border-color: rgba(47, 109, 246, .38);
  background: #edf4ff;
  color: var(--primary-dark);
}

.smart-calendar-week,
.smart-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.smart-calendar-week {
  margin-bottom: 6px;
}

.smart-calendar-week span {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.smart-calendar-grid button {
  height: 36px;
  font-weight: 700;
}

.smart-calendar-grid button.muted {
  color: #9aa6b8;
}

.smart-calendar-grid button.today {
  border-color: rgba(15, 159, 143, .45);
  color: #08796d;
  background: #effaf8;
}

.smart-calendar-grid button.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 109, 246, .25);
}

.smart-picker-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #edf1f6;
}

.smart-picker-time .smart-picker-actions {
  justify-content: space-between;
}

.smart-picker-actions-left,
.smart-picker-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.smart-picker-actions button,
.smart-picker-head > .ghost-btn {
  min-height: 36px;
  min-width: 58px;
  border-radius: 6px;
}

.smart-time-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 10px;
}

.smart-time-column {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.smart-time-column > div {
  max-height: 230px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid #e5ebf4;
  border-radius: 8px;
  background: #f8fbff;
  padding: 6px;
}

.smart-time-column:last-child > div {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.smart-time-column button {
  height: 32px;
  font-weight: 700;
  background: #fff;
}

.smart-time-column button.selected {
  border-color: var(--primary);
  background: #eaf1ff;
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 1px rgba(47, 109, 246, .18);
}

.app-shell {
  display: grid;
  grid-template-columns: 118px 148px minmax(0, 1fr);
  min-height: calc(100dvh - 64px);
}

.sidebar {
  background: var(--nav);
  color: #fff;
  padding: 12px 0;
}

.nav-item {
  width: 100%;
  min-height: 44px;
  border: 0;
  color: #dfe6f7;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: var(--nav-soft);
  color: #fff;
}

.nav-mark {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 3px;
  flex: 0 0 auto;
}

.subnav {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 14px;
}

.subnav h2 {
  font-size: 16px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.subnav-list {
  display: grid;
  gap: 6px;
}

.subnav-item {
  width: 100%;
  min-height: 40px;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--text);
  padding: 0 8px;
  border-radius: 4px;
}

.subnav-item:hover,
.subnav-item.active {
  background: #e9edf3;
  color: var(--primary-dark);
  font-weight: 600;
}

.content {
  min-width: 0;
  padding: 20px 22px 32px;
}

.page-head {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: flex-end;
  justify-content: flex-start;
  gap: 14px 18px;
  margin-bottom: 18px;
}

.page-head > div:first-child {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.page-head .attraction-picker {
  grid-column: 1;
  grid-row: 1;
  min-width: 220px;
  max-width: 280px;
  border: 1px solid #d8e3f4;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 20px rgba(18, 30, 56, .06);
  padding: 10px 12px;
}

.page-head .attraction-picker span {
  color: var(--primary-dark);
  font-weight: 800;
}

.page-head .attraction-picker select {
  width: 100%;
  min-height: 42px;
  border-color: #c9d8f2;
  font-weight: 700;
}

.breadcrumb {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

h1 {
  margin: 0;
  font-size: 22px;
}

h2 {
  font-size: 16px;
  margin: 0;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

.filter-band {
  background: var(--surface-soft);
  border: 1px solid #e6ebf2;
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 16px 24px;
  padding: 20px;
  margin-bottom: 14px;
}

.filter-band.compact {
  grid-template-columns: repeat(3, minmax(180px, 240px));
}

#section-workbench .filter-band.compact {
  grid-template-columns: minmax(280px, 340px) minmax(180px, 240px) minmax(220px, 300px);
}

.workbench-resource-multi-field .multi-select-panel {
  width: 320px;
}

.product-filter-band {
  grid-template-columns: minmax(260px, 1.2fr) minmax(160px, .65fr) minmax(190px, .75fr) auto;
  align-items: end;
}

.product-filter-band .filter-actions {
  align-self: end;
  justify-content: flex-start;
}

#section-reports .filter-band.compact {
  grid-template-columns: repeat(4, minmax(150px, 220px));
  align-items: end;
}

#section-daily-report .daily-report-filter,
#section-daily-visitor-report .daily-report-filter {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: end;
}

#section-daily-report > .panel + .panel,
#section-daily-visitor-report > .panel + .panel {
  margin-top: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

label span {
  color: var(--text);
  font-weight: 600;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
  padding: 12px;
}

legend {
  color: var(--text);
  font-weight: 700;
  padding: 0 4px;
}

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

.choice-field legend {
  grid-column: 1 / -1;
}

.choice-field label,
.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.choice-field input,
.inline-check input {
  min-height: auto;
}

.wide-field {
  grid-column: 1 / -1;
}

.filter-actions,
.toolbar,
.dialog-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar {
  margin: 12px 0;
}

.primary-btn,
.outline-btn,
.ghost-btn,
.icon-btn {
  min-height: 36px;
  border-radius: 4px;
  border: 1px solid transparent;
  padding: 0 14px;
  background: #fff;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
}

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

.outline-btn {
  border-color: var(--primary);
  color: var(--primary);
}

.small-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.ghost-btn {
  border-color: var(--line);
  color: var(--muted);
}

.icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

th, td {
  border-bottom: 1px solid #e8edf4;
  border-right: 1px solid #edf1f6;
  padding: 11px 12px;
  vertical-align: middle;
}

th {
  background: #f8fafc;
  font-weight: 700;
  color: #33415c;
  white-space: nowrap;
}

td {
  color: #4a5871;
}

.report-agency-filter[hidden] {
  display: none;
}

.report-pager {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.report-pager label {
  display: grid;
  grid-template-columns: auto minmax(90px, 120px);
  align-items: center;
  gap: 8px;
}

.report-pager label span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.report-page-text {
  min-width: 150px;
  text-align: right;
  white-space: nowrap;
}

.report-page-btn {
  min-height: 32px;
  padding: 0 10px;
}

.report-page-btn:disabled {
  border-color: var(--line);
  color: #9aa6b8;
  background: #f4f6fa;
  cursor: not-allowed;
}

.table-subtext {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.right {
  text-align: right;
}

.action-row {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  min-height: 28px;
  padding: 0 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e8f7f4;
  color: #08796d;
  font-weight: 600;
}

.badge.off {
  background: #f3f5f8;
  color: #6b7890;
}

.badge.danger {
  background: #fdecea;
  color: var(--danger);
}

.danger-link {
  color: var(--danger);
}

.blacklisted-row {
  background: #fff7f6;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.metric span {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.metric strong {
  font-size: 24px;
}

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

.sales-layout {
  display: grid;
  grid-template-columns: minmax(520px, .95fr) minmax(420px, 1.05fr);
  gap: 20px;
  align-items: start;
}

.sales-order-form {
  border-top: 4px solid var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.sales-order-form .panel-title {
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.sales-order-form label {
  display: grid;
  gap: 7px;
}

.sales-order-form label span {
  color: var(--text);
  font-weight: 700;
}

.sales-order-form .order-hidden-field {
  display: none;
}

.sales-order-form input,
.sales-order-form select {
  min-height: 42px;
  border-radius: 6px;
}

.sales-order-form input[readonly] {
  background: #f3f6fb;
  color: var(--muted);
}

.sales-order-form .immediate-checkin {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid #c9d8f2;
  border-radius: 6px;
  background: #f8fbff;
}

.sales-order-form .immediate-checkin input {
  width: 18px;
  height: 18px;
  min-height: auto;
  margin: 0;
  accent-color: var(--primary);
}

.sales-order-form .immediate-checkin span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sales-order-form .immediate-checkin strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
}

.sales-order-form .immediate-checkin small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.sales-order-form .immediate-checkin:has(input:checked) {
  border-color: rgba(47, 109, 246, 0.48);
  background: #f2f7ff;
  box-shadow: inset 0 0 0 1px rgba(47, 109, 246, 0.16);
}

.sales-order-form > .primary-btn {
  min-height: 48px;
  font-size: 16px;
  font-weight: 800;
}

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

.sales-product-card {
  min-height: 136px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 7px;
  text-align: left;
}

.sales-product-card:hover,
.sales-product-card.selected {
  border-color: rgba(47, 109, 246, .65);
  box-shadow: inset 0 0 0 1px rgba(47, 109, 246, .35);
  background: #f7fbff;
}

.sales-product-card strong,
.sales-product-card span,
.sales-product-card small {
  overflow-wrap: anywhere;
}

.sales-product-card span {
  color: var(--primary-dark);
  font-weight: 700;
}

.sales-product-card small {
  color: var(--muted);
  line-height: 1.35;
}

.sales-product-card b {
  margin-top: 4px;
  color: var(--primary);
}

.sales-product-status {
  margin-top: 4px;
  color: var(--primary);
  font-style: normal;
  font-weight: 800;
}

.sales-product-status.unavailable {
  color: #7c8798;
}

.sales-product-card.unavailable {
  border-color: #d8e2ef;
  background: #f8fafc;
  color: #64748b;
}

.sales-product-card.unavailable:hover {
  border-color: #94a3b8;
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .22);
  background: #f3f6fa;
}

.sales-product-card.unavailable span {
  color: #64748b;
}

.sales-product-card:disabled {
  opacity: .62;
  cursor: not-allowed;
}

.sales-product-card:disabled b {
  color: var(--muted);
}

.checkin-layout {
  display: grid;
  grid-template-columns: minmax(520px, 860px);
  margin-bottom: 16px;
}

.checkin-search-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 4px solid var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.checkin-search-form .wide-field {
  grid-column: span 2;
}

.checkin-search-form .checkin-device-field {
  grid-column: span 2;
}

.checkin-search-form > .primary-btn {
  min-height: 44px;
}

.checkin-selected-panel {
  scroll-margin-top: 88px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.checkin-selected-panel.checkin-focus {
  border-color: rgba(47, 109, 246, .62);
  box-shadow: 0 0 0 3px rgba(47, 109, 246, .13), var(--shadow);
  animation: checkin-panel-pulse 1.2s ease-out;
}

.checkin-selected-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid #b7e8c7;
  border-radius: var(--radius);
  background: #f0fff6;
  color: #14532d;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.checkin-selected-notice strong {
  font-size: 15px;
}

.checkin-selected-notice span {
  color: #315f43;
}

.checkin-completed-notice {
  display: grid;
  gap: 4px;
  border: 1px solid #f0b9b5;
  border-radius: var(--radius);
  background: #fff7f6;
  color: var(--danger);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.checkin-completed-notice strong {
  font-size: 15px;
}

.checkin-completed-notice span {
  color: #9f2f28;
}

@keyframes checkin-panel-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 109, 246, .28), var(--shadow);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(47, 109, 246, 0), var(--shadow);
  }
}

.blacklist-layout {
  display: grid;
  grid-template-columns: minmax(360px, 480px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.blacklist-filter {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title span {
  color: var(--muted);
}

.selected-order-row td {
  background: #f3f7ff;
}

.selected-order-row td:first-child {
  box-shadow: inset 4px 0 0 var(--primary);
}

.attraction-time-slot-panel {
  margin-top: 16px;
}

.slot-config-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, .6fr) minmax(130px, .6fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.slot-config-form button {
  min-width: 132px;
}

.compact-table {
  max-height: 260px;
  overflow: auto;
}

.compact-table table th,
.compact-table table td {
  padding: 10px 12px;
}

.list-stack {
  display: grid;
  gap: 10px;
}

.list-item,
.calendar-card,
.setting-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

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

.brand-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.brand-settings-form .panel-title,
.brand-settings-form .dialog-actions {
  grid-column: 1 / -1;
}

.brand-settings-form label {
  display: grid;
  gap: 7px;
}

.calendar-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 12px;
}

.calendar-card {
  display: grid;
  gap: 10px;
}

.calendar-filter {
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr) minmax(160px, .7fr) auto;
}

.calendar-toolbar,
.calendar-option-bar,
.calendar-batch-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  margin-bottom: 10px;
}

.calendar-toolbar label {
  min-width: 150px;
}

.product-multi-field {
  flex: 1 1 480px;
  min-width: 320px;
}

.product-search-select {
  width: min(560px, 100%);
}

.product-multi-field .multi-select-panel {
  width: 100%;
  min-width: 280px;
}

.time-slot-multi-field .multi-select-panel {
  width: 100%;
  min-width: 260px;
  right: 0;
}

.multi-select {
  position: relative;
}

.multi-select-trigger {
  min-height: 36px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  text-align: left;
}

.product-search-trigger {
  min-height: 38px;
  grid-template-columns: auto minmax(120px, 1fr) 18px;
  padding: 0 10px;
}

.product-search-trigger span {
  max-width: 180px;
  border-radius: 4px;
  background: #edf4ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  padding: 0 8px;
}

.product-search-trigger input {
  min-height: 30px;
  width: 100%;
  min-width: 0;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.product-search-trigger input:focus-visible {
  outline: none;
  box-shadow: none;
}

.multi-select-trigger:hover,
.multi-select:focus-within .multi-select-trigger {
  border-color: rgba(47, 109, 246, .75);
  box-shadow: 0 0 0 3px rgba(47, 109, 246, .1);
}

.multi-select-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-select-trigger b {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  justify-self: center;
}

.multi-select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: 260px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid #c9d7ec;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 30, 56, .14);
  padding: 6px;
}

.multi-select-option {
  min-height: 38px;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: #10284d;
  cursor: pointer;
}

.multi-select-option:hover {
  background: #f3f8ff;
}

.multi-select-option input {
  min-height: 16px;
  width: 16px;
  accent-color: var(--primary);
}

.multi-select-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-select-empty {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.calendar-option-bar {
  justify-content: flex-end;
}

.calendar-quick-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.calendar-batch-bar {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(520px, 1.6fr);
  align-items: stretch;
}

.price-inventory-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 12px;
  align-items: start;
}

.calendar-product-mode .price-inventory-workspace {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.inventory-flow-bar {
  min-height: 46px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inventory-flow-bar strong {
  color: var(--text);
  font-size: 15px;
}

.inventory-flow-bar > span {
  color: var(--muted);
  font-weight: 600;
}

.inventory-flow-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.price-inventory-board {
  min-width: 0;
}

.price-edit-panel {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.price-edit-panel .side-card {
  min-height: auto;
  margin: 0;
}

.price-edit-form {
  grid-template-columns: 1fr;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px;
}

.price-edit-form .batch-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.optional-price-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.optional-price-head {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.optional-price-head > span {
  color: var(--text);
  font-weight: 600;
}

.optional-price-head .inline-check {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  gap: 5px;
  white-space: nowrap;
}

.optional-price-head .inline-check span {
  color: var(--muted);
  font-weight: 600;
}

.optional-price-head input[type="checkbox"] {
  min-height: auto;
  width: 14px;
  height: 14px;
}

.compact-batch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}

.compact-batch button {
  min-width: 120px;
}

.inventory-product-grid,
.date-inventory-grid,
.slot-inventory-grid {
  display: grid;
  gap: 12px;
}

.inventory-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.inventory-product-card,
.date-inventory-card,
.slot-inventory-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  min-width: 0;
}

.inventory-product-card,
.slot-inventory-card {
  min-height: 148px;
  padding: 14px;
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.inventory-product-card:hover,
.slot-inventory-card:hover,
.date-inventory-card:hover {
  border-color: rgba(47, 109, 246, .55);
  box-shadow: 0 8px 22px rgba(18, 30, 56, .08);
}

.inventory-product-card strong,
.slot-inventory-card strong {
  font-size: 16px;
}

.inventory-product-card span,
.inventory-product-card small,
.slot-inventory-card span,
.slot-inventory-card small,
.date-inventory-card small {
  color: var(--muted);
}

.inventory-product-card em,
.date-inventory-card em {
  color: #10284d;
  font-style: normal;
  font-weight: 700;
}

.inventory-product-card i {
  width: max-content;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--primary);
  font-style: normal;
  font-weight: 700;
  padding: 4px 9px;
}

.date-inventory-header {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.date-inventory-header div {
  display: grid;
  gap: 4px;
}

.date-inventory-header span,
.date-inventory-header small {
  color: var(--muted);
}

.date-inventory-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.calendar-month-stack {
  display: grid;
  gap: 16px;
}

.calendar-month-panel {
  border: 1px solid #d6e0ee;
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}

.calendar-month-panel h3 {
  margin: 0;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #dce6f3;
  background: #f8fbff;
  color: #63728a;
  font-size: 16px;
  font-weight: 700;
}

.calendar-weekday-row,
.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
}

.calendar-weekday-row {
  border-bottom: 1px solid #dce6f3;
  background: #f8fbff;
}

.calendar-weekday-row span {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: #2e3b4e;
  font-weight: 800;
}

.calendar-day-cell {
  min-height: 156px;
  border-right: 1px solid #e0e8f3;
  border-bottom: 1px solid #e0e8f3;
  padding: 10px 12px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  background: #fff;
}

button.calendar-day-cell {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.calendar-day-cell:hover:not(:disabled) {
  border-color: rgba(47, 109, 246, .55);
  box-shadow: inset 0 0 0 1px rgba(47, 109, 246, .3);
}

button.calendar-day-cell:disabled {
  cursor: not-allowed;
}

.calendar-day-cell:nth-child(7n) {
  border-right: 0;
}

.calendar-day-cell.selected {
  box-shadow: inset 0 0 0 2px rgba(47, 109, 246, .55);
  background: #f4f8ff;
}

.calendar-day-cell.closed {
  background: #fff8f7;
}

.calendar-day-cell.muted {
  background: #f7f9fc;
}

.calendar-day-cell.disabled {
  color: #9aa8ba;
}

.calendar-day-top {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-day-top input {
  min-height: 16px;
  width: 16px;
  flex: 0 0 auto;
}

.calendar-day-number {
  margin-left: auto;
  color: #0f2035;
  font-size: 17px;
  font-weight: 800;
  text-align: right;
}

.calendar-day-cell.muted .calendar-day-number,
.calendar-day-cell.disabled .calendar-day-number {
  color: #b3bfce;
}

.calendar-day-number strong {
  color: #0f2035;
  font-size: 18px;
  font-weight: 900;
}

.calendar-day-meta {
  display: grid;
  gap: 7px;
  align-content: start;
}

.calendar-day-meta b {
  width: max-content;
  border-radius: 4px;
  background: #c8f4de;
  color: #04724d;
  padding: 3px 7px;
}

.calendar-day-cell.closed .calendar-day-meta b {
  background: #ffe0dd;
  color: #ba352e;
}

.calendar-day-meta em {
  color: #10284d;
  font-style: normal;
  font-weight: 700;
}

.calendar-day-muted-text {
  color: #9aa8ba;
  font-weight: 700;
}

.calendar-day-action-hint {
  color: #2f6df6;
  font-weight: 800;
}

.date-inventory-card {
  min-height: 172px;
  padding: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.date-inventory-card.selected,
.slot-inventory-card.selected {
  border-color: rgba(47, 109, 246, .78);
  box-shadow: 0 0 0 2px rgba(47, 109, 246, .16);
}

.date-inventory-card.closed,
.slot-inventory-card.closed {
  background: #fff8f7;
}

.date-card-select {
  min-height: 34px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.date-card-select input {
  min-height: 16px;
  width: 16px;
}

.date-card-select span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.date-inventory-card > b,
.slot-inventory-card > b {
  width: max-content;
  border-radius: 4px;
  background: #c8f4de;
  color: #04724d;
  padding: 4px 8px;
}

.date-inventory-card.closed > b,
.slot-inventory-card.closed > b {
  background: #ffe0dd;
  color: #ba352e;
}

.slot-inventory-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.batch-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.batch-actions button {
  flex: 1;
}

.danger-btn {
  min-height: 36px;
  border: 1px solid rgba(194, 65, 58, .38);
  border-radius: 4px;
  background: #fff5f3;
  color: var(--danger);
  padding: 0 14px;
  font-weight: 700;
}

.danger-btn:hover {
  border-color: rgba(194, 65, 58, .7);
  background: #ffe9e5;
}

.time-field {
  min-width: 160px;
}

.time-field input[type="hidden"] {
  display: none;
}

.time-picker {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.time-picker:focus-within {
  border-color: rgba(47, 109, 246, .75);
  box-shadow: 0 0 0 3px rgba(47, 109, 246, .12);
  background: #fff;
}

.time-picker select {
  min-height: 34px;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #10284d;
  font-weight: 700;
  text-align: center;
  text-align-last: center;
  padding: 0 8px;
  cursor: pointer;
}

.time-picker select:focus-visible {
  outline: 0;
  background: #edf4ff;
}

.time-picker em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
  padding: 0 2px;
}

.inventory-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 12px;
}

.inventory-summary > div {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 14px;
  border-right: 1px solid var(--line);
}

.inventory-summary span {
  color: var(--muted);
}

.inventory-summary strong {
  color: var(--text);
}

.inventory-summary button {
  align-self: center;
  margin: 8px 14px;
}

.hotel-calendar-wrap {
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: auto;
  max-height: calc(100dvh - 240px);
}

.hotel-calendar-grid {
  display: grid;
  min-width: max-content;
}

.hotel-left,
.hotel-date-head,
.hotel-switch-cell,
.hotel-inventory-cell {
  border-right: 1px solid #dfe6ef;
  border-bottom: 1px solid #dfe6ef;
}

.hotel-left {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}

button.hotel-left {
  width: 100%;
  border-top: 0;
  border-left: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.calendar-corner,
.hotel-date-head {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 64px;
  background: #fff;
}

.calendar-corner {
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
}

.calendar-corner span {
  color: var(--text);
  font-weight: 700;
}

.hotel-date-head {
  display: grid;
  place-items: center;
  color: var(--text);
  padding: 8px;
}

button.hotel-date-head {
  border-top: 0;
  border-left: 0;
  background: #fff;
  cursor: pointer;
}

button.hotel-date-head:hover,
button.hotel-date-head.selected {
  background: #f3f8ff;
}

.hotel-date-head strong {
  font-size: 13px;
}

.hotel-date-head span {
  color: var(--muted);
}

.hotel-room-group {
  min-height: 74px;
  background: #f6f7f9;
  padding: 12px 16px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.hotel-room-group strong {
  color: #10284d;
  font-size: 16px;
}

.hotel-room-group span,
.hotel-room-detail span,
.hotel-room-detail small {
  color: var(--muted);
}

.hotel-room-detail {
  min-height: 168px;
  padding: 12px 16px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.hotel-room-detail strong {
  color: #10284d;
}

.product-select-cell:hover,
.product-select-cell.selected {
  background: #f3f8ff;
}

.product-select-cell.selected {
  box-shadow: inset 3px 0 0 var(--primary);
}

.hotel-switch-cell {
  min-height: 74px;
  background: #f6f7f9;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 8px;
}

.hotel-switch-cell small {
  color: #10284d;
}

.hotel-switch-cell.empty {
  color: var(--muted);
  background: #fbfcfe;
}

.status-switch-btn {
  width: 48px;
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
}

.status-switch-btn:hover {
  background: #eaf2ff;
}

.status-switch {
  width: 38px;
  height: 8px;
  border-radius: 999px;
  display: block;
  position: relative;
}

.status-switch i {
  position: absolute;
  top: -6px;
  left: 17px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 1px 5px rgba(15, 23, 42, .25);
  font-size: 13px;
  font-style: normal;
}

.status-switch.on {
  background: #0fba83;
}

.status-switch.on i {
  color: #0f9f8f;
}

.status-switch.off {
  background: #ff4d45;
}

.status-switch.off i {
  left: 0;
  color: #ff4d45;
}

.hotel-inventory-cell {
  width: 100%;
  border-top: 0;
  border-left: 0;
  min-height: 168px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 0;
  background: #fff;
  cursor: pointer;
  position: relative;
  text-align: left;
}

.hotel-inventory-cell input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hotel-inventory-cell strong {
  min-height: 32px;
  display: grid;
  place-items: center;
  color: #008d66;
  background: #c9f2e2;
  font-weight: 700;
}

.hotel-inventory-cell.closed strong {
  color: #fff;
  background: #ff5548;
}

.hotel-inventory-cell span,
.hotel-inventory-cell em,
.hotel-inventory-cell small {
  padding: 0 12px;
}

.hotel-inventory-cell span {
  color: #10284d;
  font-weight: 700;
}

.hotel-inventory-cell span b {
  color: #ff7b00;
}

.hotel-inventory-cell.closed span b {
  color: #10284d;
}

.hotel-inventory-cell em {
  color: #10284d;
  font-size: 16px;
  font-style: normal;
  margin-top: 12px;
}

.hotel-inventory-cell small {
  color: var(--muted);
}

.hotel-inventory-cell.empty {
  place-items: center;
  color: var(--muted);
  background: #fbfcfe;
  cursor: default;
}

.hotel-inventory-cell.empty span {
  color: var(--muted);
  font-weight: 500;
  padding: 0;
}

.time-slot-list {
  display: grid;
  gap: 6px;
  padding: 0 10px 8px;
}

.time-slot-row {
  border: 1px solid #dbe8f5;
  border-radius: 4px;
  background: #f8fbff;
  display: grid;
  gap: 3px;
  padding: 7px;
}

.time-slot-row strong,
.time-slot-row span,
.time-slot-row small {
  padding: 0;
}

.time-slot-row strong {
  color: #10284d;
  font-size: 13px;
}

.time-slot-row span {
  color: var(--primary-dark);
  font-weight: 700;
}

.hotel-inventory-cell.closed {
  background: #ffebe4;
}

.hotel-inventory-cell.selected {
  box-shadow: inset 0 0 0 2px rgba(47, 109, 246, .65);
  background: #f4f8ff;
}

.calendar-workspace {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) 260px;
  gap: 16px;
  align-items: start;
}

.month-board {
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}

.month-head {
  min-height: 58px;
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 12px;
  text-align: center;
}

.month-head strong {
  font-size: 18px;
}

.month-all {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  color: var(--muted);
}

.month-all span {
  font-weight: 400;
}

.week-grid,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(108px, 1fr));
}

.week-grid div {
  height: 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
  font-weight: 700;
}

.day-cell {
  min-height: 150px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  background: #fff;
}

.day-cell.empty {
  background: #fafcff;
}

.day-cell.expired {
  color: #9aa6b8;
  background: #fbfcfe;
}

.day-cell.selected {
  box-shadow: inset 0 0 0 2px rgba(47, 109, 246, .35);
  background: #f8fbff;
}

.day-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.day-top input {
  width: 16px;
  height: 16px;
  min-height: auto;
}

.day-top strong {
  font-size: 14px;
  color: #1d2433;
}

.day-info {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: #617089;
}

.day-cell:not(.expired) .day-info span:nth-child(1),
.day-cell:not(.expired) .day-info span:nth-child(2),
.day-cell:not(.expired) .day-info span:nth-child(3) {
  color: #172033;
  font-weight: 700;
}

.calendar-side {
  display: grid;
  gap: 12px;
}

.calendar-side > .primary-btn {
  min-height: 40px;
}

.side-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px;
  min-height: 96px;
  display: grid;
  gap: 10px;
}

.side-card strong {
  color: var(--text);
}

.side-card span,
.side-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.side-form {
  gap: 12px;
}

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

.resource-config {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.resource-config .panel-title {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.resource-config button {
  align-self: end;
}

.form-grid .panel-title,
.form-grid .availability-panel,
.form-grid button,
.form-grid .result-box {
  grid-column: 1 / -1;
}

.result-box {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.result-box.success {
  border-color: #86d7a5;
  background: #f0fff6;
  color: #14532d;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, .12);
}

.blacklist-alert {
  border: 1px solid #f0b9b5;
  border-radius: var(--radius);
  background: #fff7f6;
  color: var(--danger);
  padding: 10px 12px;
  margin-bottom: 12px;
  display: grid;
  gap: 4px;
}

.blacklist-alert span,
.blacklist-alert small {
  color: #7f1d1d;
  line-height: 1.4;
}

.qr-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.qr-ticket {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
}

.qr-ticket span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.qr-code {
  width: 145px;
  height: 145px;
  display: grid;
  grid-template-columns: repeat(29, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid #cbd5e1;
}

.qr-code i {
  display: block;
  background: #fff;
}

.qr-code i.on {
  background: #172033;
}

.empty-state {
  min-height: 56px;
  display: flex;
  align-items: center;
  color: var(--muted);
}

.checkin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.checkin-summary > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 10px;
}

.checkin-summary span {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

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

.checkin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.checkin-recent-panel {
  display: grid;
  gap: 8px;
  border: 1px solid #dbe5f3;
  border-radius: var(--radius);
  background: #f8fbff;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.checkin-recent-panel > strong {
  color: var(--text);
}

.checkin-recent-list {
  display: grid;
  gap: 6px;
}

.checkin-recent-list > div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #33415c;
  font-weight: 700;
  line-height: 1.45;
  padding: 8px 10px;
  overflow-wrap: anywhere;
}

.ticket-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.ticket-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
}

.ticket-row input {
  min-height: auto;
}

.ticket-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.ticket-row.used {
  background: #f8fafc;
  opacity: .72;
}

.availability-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 12px;
  display: grid;
  gap: 12px;
}

.availability-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.availability-head span {
  color: var(--muted);
}

.availability-head strong {
  color: var(--text);
}

.selected-position {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 9px 12px;
  color: var(--muted);
}

.selected-position.has-selection {
  border-color: rgba(47, 109, 246, .45);
  background: #eef4ff;
  box-shadow: inset 3px 0 0 var(--primary);
  color: var(--primary-dark);
}

.selected-position.has-selection span {
  color: var(--primary-dark);
  font-weight: 700;
}

.selected-position strong {
  color: var(--primary-dark);
}

.position-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.form-grid .position-grid > button.position-tile {
  grid-column: auto;
}

.order-position-panel {
  padding: 10px;
  gap: 8px;
}

.order-position-panel .availability-head {
  gap: 8px 12px;
}

.order-position-panel .selected-position {
  min-height: 38px;
  padding: 7px 10px;
}

.order-position-panel .position-grid {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.position-tile {
  position: relative;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 5px;
  text-align: left;
  color: var(--text);
  font: inherit;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

button.position-tile {
  width: 100%;
  appearance: none;
  cursor: pointer;
}

button.position-tile:disabled {
  cursor: not-allowed;
}

button.position-tile.available:hover:not(:disabled) {
  border-color: rgba(47, 109, 246, .45);
  box-shadow: 0 8px 18px rgba(47, 109, 246, .12);
  transform: translateY(-1px);
}

button.position-tile.available:active:not(:disabled) {
  transform: translateY(0);
}

button.position-tile:focus-visible {
  outline: 3px solid rgba(47, 109, 246, .3);
  outline-offset: 2px;
}

.position-tile strong {
  font-size: 15px;
}

.order-position-panel .position-tile {
  min-height: 74px;
  padding: 8px 9px;
  gap: 2px;
  align-content: start;
}

.order-position-panel .position-tile strong {
  font-size: 14px;
  line-height: 1.25;
}

.order-position-panel .position-tile span,
.order-position-panel .position-tile small {
  line-height: 1.25;
}

.position-tile em {
  color: var(--primary-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
}

.position-tile span,
.position-tile small {
  color: var(--muted);
}

.position-tile.available {
  border-color: rgba(15, 159, 143, .35);
  background: #f2fbf9;
}

.position-tile.available span {
  color: #08796d;
  font-weight: 700;
}

.position-tile.occupied {
  border-color: #efc7c4;
  background: #fff7f6;
}

.position-tile.occupied span {
  color: var(--danger);
  font-weight: 700;
}

.position-tile.state-in-use {
  border-color: #b7a2f5;
  background: #f7f3ff;
}

.position-tile.state-in-use span {
  color: #5b3ea6;
  font-weight: 700;
}

.position-tile.state-arriving-soon {
  border-color: #f3d17b;
  background: #fff9e8;
}

.position-tile.state-arriving-soon span {
  color: #9a6700;
  font-weight: 700;
}

.position-tile.available.selected,
.position-tile.selected {
  border-color: var(--primary);
  background: #eef4ff;
  box-shadow: inset 0 0 0 2px rgba(47, 109, 246, .55), 0 10px 22px rgba(47, 109, 246, .16);
}

.order-position-panel .position-tile.available.selected,
.order-position-panel .position-tile.selected {
  box-shadow: inset 0 0 0 2px rgba(47, 109, 246, .55);
}

.position-tile.selected strong {
  color: var(--primary-dark);
}

.position-tile.available.selected span {
  color: var(--primary-dark);
}

.position-selected-badge {
  width: fit-content;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.order-position-panel .position-selected-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  font-size: 11px;
}

.order-position-panel .position-tile.selected strong {
  padding-right: 44px;
}

.position-selection-hint {
  color: var(--primary-dark);
  font-weight: 700;
}

.order-position-panel .position-selection-hint {
  margin-top: 2px;
  font-size: 12px;
}

.position-tile.selected .position-selection-hint {
  color: var(--primary-dark);
}

.position-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.position-actions .link-btn {
  min-height: 30px;
}

.checkin-position-panel {
  margin-bottom: 12px;
}

.status-chip {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.status-chip.active,
.status-chip:disabled {
  color: var(--primary-dark);
  border-color: rgba(47, 109, 246, .38);
  background: #eef4ff;
  cursor: default;
}

dialog {
  border: 0;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(18, 30, 56, 0.28);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
}

.dialog-card {
  width: min(560px, calc(100vw - 32px));
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 14px;
}

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

.password-field > label {
  color: var(--text);
  font-weight: 700;
}

.password-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: center;
}

.password-input-row input {
  min-width: 0;
}

.password-toggle-btn {
  min-height: 42px;
  padding: 0 10px;
}

.dialog-card.wide {
  width: min(980px, calc(100vw - 32px));
}

.product-dialog-card {
  width: min(720px, calc(100vw - 32px));
}

.ttc-config-dialog-card {
  width: min(960px, calc(100vw - 32px));
}

.ttc-config-note {
  border: 1px dashed #b9cbe5;
  border-radius: var(--radius);
  background: #f8fbff;
  color: var(--muted);
  line-height: 1.6;
  padding: 14px 16px;
}

.settings-note {
  border: 1px solid #d9e4f3;
  border-radius: 6px;
  background: #f8fbff;
  color: var(--muted);
  line-height: 1.55;
  padding: 10px 12px;
}

.ttc-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.ttc-config-grid label {
  display: grid;
  gap: 7px;
}

.ttc-config-wide {
  grid-column: 1 / -1;
}

.ttc-config-grid input[readonly] {
  background: #f3f6fb;
  color: var(--muted);
}

.ttc-quick-config {
  display: grid;
  gap: 10px;
  border: 1px solid #c9d8f2;
  border-radius: var(--radius);
  background: #f8fbff;
  padding: 12px;
}

.quick-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
}

.quick-config-grid {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(260px, 1fr);
  gap: 12px;
}

.quick-config-grid label {
  display: grid;
  gap: 7px;
}

.quick-config-grid input[readonly] {
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.api-key-block {
  display: grid;
  gap: 8px;
  border: 1px solid #f0d28a;
  border-radius: var(--radius);
  background: #fffaf0;
  padding: 12px;
}

.api-key-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
}

.api-key-block input {
  background: #fff;
}

.ttc-config-grid .api-key-warning {
  color: #8a5a00;
  font-weight: 700;
}

.ttc-config-grid small {
  color: var(--muted);
  line-height: 1.45;
}

.notice-url-block {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.notice-url-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
}

.notice-url-list {
  display: grid;
  gap: 8px;
}

.notice-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.ttc-config-summary {
  display: grid;
  gap: 3px;
  min-width: 240px;
}

.ttc-config-summary span,
.table-subtext {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.product-order-config {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, .8fr);
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
  padding: 12px;
}

.product-position-config {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.product-position-config .inline-check {
  min-height: 34px;
  align-items: center;
  font-weight: 700;
}

.policy-config {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  background: #f8fbff;
}

.policy-config legend {
  margin-bottom: 4px;
}

.policy-config .inline-check {
  min-height: 38px;
  align-items: center;
}

.policy-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.refund-rule-editor {
  display: grid;
  gap: 10px;
}

.refund-rule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.refund-rule-list {
  display: grid;
  gap: 8px;
}

.refund-rule-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.refund-rule-row label {
  min-width: 0;
}

.refund-rule-row input,
.refund-rule-row select {
  width: 100%;
}

.refund-mode-options {
  display: flex;
  gap: 24px;
  align-items: center;
  padding-bottom: 6px;
}

.simple-refund-editor {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.simple-refund-row {
  display: grid;
  grid-template-columns: minmax(96px, 150px) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.simple-refund-label {
  justify-self: end;
  color: var(--text);
  font-weight: 700;
}

.refund-duration-inputs,
.refund-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.refund-duration-inputs input {
  width: 78px;
}

.simple-refund-row > select,
.simple-refund-row > input {
  width: 100%;
}

.required-mark {
  color: var(--danger);
  margin-right: 2px;
}

.policy-summary {
  min-height: 20px;
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.product-order-config label {
  display: grid;
  gap: 7px;
}

.product-order-config small,
.product-position-config small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.5;
}

.confirm-dialog-card {
  width: min(720px, calc(100vw - 32px));
}

.alert-dialog-card {
  width: min(520px, calc(100vw - 32px));
  border-top: 4px solid var(--primary);
}

.alert-message {
  min-height: 68px;
  display: flex;
  align-items: center;
  border: 1px solid #c9d7f0;
  border-radius: var(--radius);
  background: #f6f9ff;
  color: var(--text);
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.alert-message-success {
  border-color: #86d7a5;
  background: #f0fff6;
  color: #14532d;
}

.alert-message-danger {
  border-color: #f0b9b5;
  background: #fff7f6;
  color: var(--danger);
}

.position-dialog-card {
  width: min(620px, calc(100vw - 32px));
}

.staff-dialog-card {
  width: min(640px, calc(100vw - 32px));
}

.tenant-create-dialog-card {
  width: min(560px, calc(100vw - 32px));
}

.staff-dialog-card .permission-field {
  order: 8;
}

.staff-dialog-card .dialog-actions {
  order: 12;
}

.permission-field {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.permission-field legend {
  padding: 0 4px;
  font-weight: 700;
}

.permission-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.permission-option {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e4ebf5;
  border-radius: 5px;
  padding: 8px 10px;
  background: #f8fafc;
}

.permission-option input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.position-dialog-meta {
  min-height: 36px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--text);
  font-weight: 700;
  padding: 8px 10px;
}

.position-row-head,
.position-config-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 74px;
  gap: 10px;
  align-items: center;
}

.position-row-head {
  color: var(--text);
  font-weight: 700;
}

.position-config-row {
  min-height: 44px;
}

.position-config-row input {
  width: 100%;
}

.position-row-list {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding-right: 2px;
}

.position-add-btn {
  justify-self: start;
}

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

.notice-message {
  display: grid;
  gap: 12px;
}

.notice-copy {
  border: 1px solid #c9d7f0;
  border-radius: var(--radius);
  background: #f6f9ff;
  color: var(--text);
  padding: 10px 12px;
  line-height: 1.5;
}

.notice-copy.notice-danger {
  border-color: #f0b9b5;
  background: #fff7f6;
  color: var(--danger);
}

.notice-copy.notice-success {
  border-color: #86d7a5;
  background: #f0fff6;
  color: #14532d;
}

.notice-detail-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.notice-detail-grid > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 10px;
}

.notice-detail-grid dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.notice-detail-grid dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.notice-message-success .notice-detail-grid > div {
  border-color: #b7e8c7;
  background: #fbfffd;
}

.notice-message-success .notice-copy {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-color: #86d7a5;
  background: linear-gradient(180deg, #f0fff6 0%, #f8fffb 100%);
  color: #14532d;
  font-weight: 700;
}

.notice-message-success .notice-detail-grid {
  gap: 12px;
}

.notice-message-success .notice-detail-grid dd {
  font-size: 15px;
}

.schedule-field {
  display: grid;
  gap: 14px;
  background: #f8fbff;
}

.schedule-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.schedule-mode {
  min-height: 68px;
  border: 1px solid #d8e3f4;
  border-radius: 6px;
  background: #fff;
  color: #25436d;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 10px 12px;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.schedule-mode span {
  color: var(--text);
  font-weight: 700;
}

.schedule-mode small {
  color: var(--muted);
  line-height: 1.35;
}

.schedule-mode:hover,
.schedule-mode.active {
  border-color: var(--primary);
  background: #f3f7ff;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, .1);
}

.schedule-mode.active span {
  color: var(--primary-dark);
}

.schedule-mode.target-active {
  box-shadow: 0 0 0 3px rgba(47, 109, 246, .12), inset 3px 0 0 var(--primary);
}

.schedule-picker-panel {
  display: grid;
  gap: 12px;
  border: 1px solid #dbe6f5;
  border-radius: 6px;
  background: #fff;
  padding: 12px;
}

.schedule-picker-panel[hidden] {
  display: none;
}

.schedule-row {
  display: grid;
  gap: 8px;
}

.schedule-row > span {
  color: var(--text);
  font-weight: 700;
}

.schedule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-chip {
  min-height: 36px;
  border: 1px solid #d8e3f4;
  border-radius: 4px;
  background: #fff;
  color: #25436d;
  padding: 0 12px;
}

.schedule-chip:hover,
.schedule-chip.active {
  border-color: var(--primary);
  background: #edf4ff;
  color: var(--primary-dark);
  font-weight: 700;
}

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

.schedule-input-grid input {
  width: 100%;
}

.schedule-shortcuts {
  padding-top: 2px;
}

.schedule-summary {
  min-height: 36px;
  display: flex;
  align-items: center;
  border: 1px dashed #cbd8ea;
  border-radius: 4px;
  background: #fff;
  color: #33415c;
  font-weight: 700;
  padding: 8px 10px;
}

.confirm-message {
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.calendar-editor {
  display: grid;
  gap: 10px;
}

.calendar-row {
  display: grid;
  grid-template-columns: 120px repeat(4, minmax(110px, 1fr)) 88px;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

#toast {
  display: none;
}

#toast.show {
  display: none;
}

.tenant-account-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.7fr);
  gap: 16px;
  align-items: start;
}

.tenant-row.active {
  background: #eef4ff;
}

.tenant-row.active td:first-child {
  border-left: 3px solid var(--primary);
}

.tenant-db-target {
  display: block;
  max-width: 280px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .subnav {
    display: none;
  }
  .filter-band,
  .slot-config-form,
  .metric-grid,
  .split-layout,
  .sales-layout,
  .calendar-list,
  .calendar-filter,
  .inventory-summary,
  .calendar-workspace,
  .price-inventory-workspace {
    grid-template-columns: 1fr;
  }
  .tenant-account-layout {
    grid-template-columns: 1fr;
  }
  .week-grid,
  .calendar-grid {
    grid-template-columns: repeat(7, minmax(96px, 1fr));
  }
  .calendar-workspace {
    overflow-x: auto;
  }
  .price-edit-panel {
    position: static;
  }
  .calendar-quick-actions {
    justify-content: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .permission-grid {
    grid-template-columns: 1fr;
  }

  .admin-login-card {
    padding: 18px;
  }

  .smart-picker-popover {
    width: calc(100vw - 24px) !important;
    left: 12px !important;
  }

  .smart-time-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    padding: 10px;
    gap: 8px;
  }
  .top-meta {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: flex;
    overflow-x: auto;
    padding: 8px;
    position: sticky;
    top: 64px;
    z-index: 9;
  }
  .nav-item {
    width: auto;
    min-width: 86px;
    padding: 0 12px;
  }
  .content {
    padding: 14px;
  }
  .page-head {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
  .page-head > div:first-child {
    grid-column: 1;
    grid-row: 2;
  }
  .page-head .attraction-picker {
    grid-column: 1;
    max-width: none;
  }
  .form-grid,
  .blacklist-layout,
  .slot-config-form,
  .brand-settings-form,
  .product-order-config,
  .ttc-config-grid,
  .resource-config,
  .checkin-summary,
  .schedule-mode-tabs,
  .schedule-input-grid,
  .quick-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .calendar-row {
    grid-template-columns: 1fr;
  }
  .product-multi-field {
    min-width: 0;
    width: 100%;
  }
  .product-search-select {
    width: 100%;
  }
  .product-search-trigger {
    grid-template-columns: minmax(0, auto) minmax(120px, 1fr) 18px;
  }
  .position-row-head,
  .position-config-row {
    grid-template-columns: 1fr;
  }
  .notice-detail-grid {
    grid-template-columns: 1fr;
  }
  .notice-url-row {
    grid-template-columns: 1fr;
  }
  .quick-config-grid {
    grid-template-columns: 1fr;
  }
}
