/* ============================================================
   2026 Alpine Editorial redesign
   暖象牙纸感 + 墨绿侧栏 + 琥珀点缀
   ============================================================ */

/* ---------- shell ---------- */

.sidebar {
  inset: 16px auto 16px 16px;
  width: 250px;
  gap: 20px;
  padding: 24px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 26px;
  background: radial-gradient(120% 52% at 100% 0%, rgba(85, 179, 189, 0.18) 0%, transparent 58%),
    linear-gradient(180deg, #0a1a22 0%, #0d2831 52%, #0a1d25 100%);
  box-shadow: 0 34px 70px -46px rgba(5, 16, 22, 0.95);
}

.brand {
  padding: 6px 8px 20px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #14232b;
  background: linear-gradient(145deg, #f0cd94, #c1843e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 14px 28px -18px rgba(193, 132, 62, 0.85);
}

.brand-mark--logo {
  width: 88px;
  height: 52px;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.brand-mark--logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-text small {
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8ea3aa;
}

.brand-text .brand-version {
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #e2b878;
  font-variant-numeric: tabular-nums;
}

.nav {
  gap: 20px;
}

.nav__group-label {
  margin: 0 13px 8px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: #718992;
}

.nav__link {
  gap: 11px;
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 13px;
  color: #b6c7cd;
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.nav__link.is-active {
  color: #16242c;
  background: #f4f1ea;
  box-shadow: 0 12px 24px -18px rgba(0, 0, 0, 0.75);
}

.nav__link.is-active::before {
  display: none;
}

.nav__link.is-active .nav__icon {
  color: var(--brand);
}

.nav__icon {
  color: #7f99a3;
}

.sidebar-foot {
  border-top-color: rgba(255, 255, 255, 0.09);
}

.sidebar-user__info strong {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.sidebar-user__info small {
  color: #8ea6af;
}

.sidebar-version {
  color: #5f7882;
}

.sidebar {
  transition: width 0.22s ease, padding 0.22s ease, transform 0.22s ease;
}

.sidebar-toggle {
  position: absolute;
  top: 50%;
  right: -14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(18, 51, 66, 0.18);
  border-radius: 50%;
  background: #fff;
  color: #123342;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.55);
  transform: translateY(-50%);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-toggle:hover {
  background: #f4f1ea;
  color: #0f5f68;
  border-color: rgba(18, 51, 66, 0.32);
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.6);
}

.sidebar-toggle .icon {
  width: 14px;
  height: 14px;
  transform: rotate(90deg);
  transition: transform 0.22s ease;
}

.app-main {
  margin-left: 282px;
  transition: margin-left 0.22s ease;
}

@media (min-width: 981px) {
  body.sidebar-collapsed .sidebar {
    width: 84px;
    padding: 24px 10px 16px;
  }

  body.sidebar-collapsed .app-main {
    margin-left: 116px;
  }

  body.sidebar-collapsed .brand {
    justify-content: center;
    padding: 0 0 14px;
  }

  body.sidebar-collapsed .brand-mark--logo {
    width: 56px;
    height: 34px;
  }

  body.sidebar-collapsed .brand-mark--logo img {
    object-position: center;
  }

  body.sidebar-collapsed .brand-text,
  body.sidebar-collapsed .nav__group-label,
  body.sidebar-collapsed .nav__label,
  body.sidebar-collapsed .sidebar-user__info,
  body.sidebar-collapsed .sidebar-version {
    display: none;
  }

  body.sidebar-collapsed .nav {
    width: 100%;
    gap: 16px;
    padding-right: 0;
  }

  body.sidebar-collapsed .nav__group {
    gap: 6px;
  }

  body.sidebar-collapsed .nav__link {
    justify-content: center;
    padding: 11px 0;
    border-radius: 14px;
  }

  body.sidebar-collapsed .sidebar-foot {
    width: 100%;
  }

  body.sidebar-collapsed .sidebar-user {
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }

  body.sidebar-collapsed .sidebar-toggle .icon {
    transform: rotate(-90deg);
  }
}

@media (max-width: 980px) {
  .sidebar-toggle {
    display: none;
  }
}

.topbar {
  padding: 14px 34px;
  background: rgba(244, 241, 234, 0.82);
  border-bottom-color: rgba(22, 36, 44, 0.08);
}

.topbar__title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.01em;
}

.topbar__sub {
  margin-top: 3px;
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.topbar__today {
  padding: 7px 13px;
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.topbar__today .icon {
  color: var(--accent);
}

.topbar__user {
  border-color: var(--line);
  background: #fffdf9;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__actions:empty {
  display: none;
}

.topbar__actions .topbar-action {
  border-color: var(--line-strong);
  background: #fffdf9;
  white-space: nowrap;
}

.avatar {
  background: linear-gradient(135deg, #2b8d97, #0f5f68);
}

.content {
  max-width: 1560px;
  padding: 34px 34px 80px;
}

/* ---------- page heading ---------- */

.page-head {
  align-items: center;
  margin-bottom: 26px;
}

.page-head > div:first-child::before {
  content: "SNOWTRIP · 26—27";
  display: block;
  margin-bottom: 9px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.page-head__sub {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.page-head__actions {
  gap: 10px;
}

/* ---------- buttons ---------- */

.btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: linear-gradient(135deg, #12747e, #0a4f57);
  box-shadow: 0 16px 28px -18px rgba(10, 79, 87, 0.8);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #0f6b74, #083f46);
  box-shadow: 0 20px 32px -18px rgba(10, 79, 87, 0.9);
}

.btn--soft {
  background: #e4eeeb;
  border-color: #c9ded9;
  color: var(--brand-dark);
}

.btn--soft:hover {
  background: #d8e8e4;
  border-color: #b3d2cb;
}

.btn--ghost {
  background: #fffdf9;
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

.btn--ghost:hover {
  border-color: #bcae99;
  background: #fff;
}

.btn--lg {
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 13px;
}

.btn--sm {
  padding: 7px 12px;
  border-radius: 999px;
}

.btn--xs {
  padding: 5px 10px;
  border-radius: 999px;
}

.btn:focus-visible,
.icon-btn:focus-visible {
  outline: 2px solid var(--brand-ice);
  outline-offset: 2px;
}

.icon-btn {
  border-radius: 999px;
}

/* ---------- forms ---------- */

.input,
.select,
.textarea,
.multi-select__summary {
  min-height: 42px;
  padding: 9px 12px;
  border-color: var(--line-strong);
  border-radius: 12px;
  background: #fffdf9;
  font-size: 12.5px;
}

.input::placeholder,
.textarea::placeholder {
  color: #a6adaa;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand-ice);
  box-shadow: 0 0 0 4px rgba(85, 179, 189, 0.16);
}

.input:disabled,
.select:disabled {
  background: #f3efe7;
  color: #8c9694;
}

.field__label,
.filter-field__label,
.login-field__label {
  color: #5f7077;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.filter-field__hint {
  margin-left: 2px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  color: #8b969a;
}

.multi-select__summary {
  color: var(--ink-soft);
}

.multi-select__menu {
  border-color: var(--line);
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: 0 26px 55px -30px rgba(22, 36, 44, 0.45);
}

.multi-select__option:hover {
  background: #f3f7f5;
}

.multi-select__option input {
  accent-color: var(--brand);
}

.date-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-control .input {
  flex: 1;
  min-width: 0;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.intent-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7a7061;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.intent-check.is-active {
  color: var(--brand);
}

.intent-check.is-disabled {
  opacity: 0.45;
  cursor: default;
}

.intent-check__box {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.intent-check__box:disabled {
  cursor: default;
}

.course-confirm__intent {
  display: inline-flex;
  align-items: center;
  margin: 6px 0 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fbeadb;
  color: #9a531b;
  font-size: 10.5px;
  font-weight: 600;
}

.course-confirm__intent[hidden] {
  display: none;
}

.date-picker {
  position: relative;
  flex: 1;
  min-width: 0;
}

.date-picker__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.date-picker__trigger:hover {
  border-color: #c9b89e;
}

.date-picker__trigger.is-open {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 107, 116, 0.12);
}

.date-picker__icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: #8a7f6f;
}

.date-picker__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-picker__caret {
  width: 14px;
  height: 14px;
  flex: none;
  color: #8a7f6f;
  transition: transform 0.15s ease;
}

.date-picker__trigger.is-open .date-picker__caret {
  transform: rotate(180deg);
}

.date-picker__panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  width: 310px;
  max-width: min(310px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fbf8f2;
  box-shadow: 0 18px 40px rgba(20, 40, 35, 0.18);
}

.date-picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.date-picker__month {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.date-picker__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: #5d5347;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.date-picker__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.date-picker__week,
.date-picker__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.date-picker__week span {
  padding: 4px 0;
  color: #8a7f6f;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.date-picker__day {
  position: relative;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #2c3a34;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.date-picker__day:hover {
  background: #eef3f0;
}

.date-picker__day.is-muted {
  color: #b3aa9c;
}

.date-picker__day.is-today {
  box-shadow: inset 0 0 0 1px #b48a5a;
}

.date-picker__day.is-in-range {
  border-radius: 0;
  background: #e8f0ec;
}

.date-picker__day.is-start,
.date-picker__day.is-end {
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
}

.date-picker__day.is-start {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.date-picker__day.is-end {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.date-picker__day.is-start.is-end {
  border-radius: 8px;
}

.date-picker__day:disabled {
  color: #d5cec2;
  cursor: default;
}

.date-picker__hint {
  margin-top: 8px;
  color: #8a7f6f;
  font-size: 10.5px;
  text-align: center;
}

.date-tbd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #f6f1e8;
  color: #7a7061;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.date-tbd:hover {
  border-color: #c9b89e;
  background: #f1e9da;
}

.date-tbd.is-active {
  border-color: #e0b48a;
  background: #fbeadb;
  color: #9a531b;
}

.date-tbd__box {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.transfer-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.transfer-head__field,
.transfer-head__check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6f6a5e;
  font-size: 11px;
  white-space: nowrap;
}

.transfer-head__check {
  cursor: pointer;
}

.transfer-head__input {
  width: 64px;
  height: 32px;
  padding: 0 8px;
  font-size: 12px;
  text-align: center;
}

.transfer-head__input:disabled {
  background: #f2ede4;
  color: #8d8477;
}

.transfer-head__box {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-section__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  flex-wrap: nowrap;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
}

.no-coach-toggle {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbf8f2;
  color: #6f6a5e;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.no-coach-toggle:hover {
  border-color: #c9b89e;
  background: #f1e9da;
}

.no-coach-toggle.is-active {
  border-color: #e0b48a;
  background: #fbeadb;
  color: #9a531b;
}

.no-coach-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.date-line,
.resort-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.date-tbd-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fbe3dd;
  color: #a13a28;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- cards / filters ---------- */

.card {
  padding: 24px;
  border-color: var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.95);
  box-shadow: var(--shadow-soft);
}

.scroll-anchor {
  scroll-margin-top: 92px;
}

.card-head h2 {
  font-family: var(--font-display);
  font-size: 16px;
}

.card-head > .segmented {
  margin-left: auto;
  flex-shrink: 0;
}

.filter-bar {
  padding: 18px 20px;
  border-color: var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: var(--shadow-soft);
}

.filter-field {
  gap: 7px;
}

.filter-actions {
  gap: 9px;
}

/* ---------- summary strip ---------- */

.stat-strip {
  gap: 12px;
}

.stat-strip__item {
  padding: 14px;
  border-color: var(--line);
  border-radius: 16px;
  background: #fffdf9;
}

.stat-strip__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eaf3f3;
  color: var(--brand);
}

.stat-strip__label {
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.stat-strip__text strong {
  font-family: var(--font-display);
  font-size: 15px;
  white-space: nowrap;
}

.stat-strip__sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}

.stat-strip__item--brand {
  border-color: transparent;
  background: linear-gradient(135deg, #102a33, #0b1d26);
}

.stat-strip__item--brand .stat-strip__label {
  color: #9fb5bc;
}

.stat-strip__item--brand .stat-strip__text strong,
.stat-strip__item--brand .stat-strip__text .is-big {
  color: #fff;
}

.stat-strip__item--brand .stat-strip__sub {
  color: #9fb5bc;
}

.stat-strip__item--brand .stat-strip__icon {
  background: rgba(226, 184, 120, 0.14);
  color: #e2b878;
}

.stat-strip__item--accent .stat-strip__icon {
  background: #f7ead9;
  color: #a86b28;
}

.stat-strip__item--accent strong {
  color: #a86b28;
}

/* ---------- orders ---------- */

.order-list {
  gap: 16px;
}

.order-card {
  border-color: var(--line);
  border-left: 3px solid #d8b078;
  border-radius: 20px;
  background: #fffdf9;
  box-shadow: var(--shadow-card);
}

.order-card__head {
  padding: 16px 20px;
  border-bottom-color: var(--line);
  background: linear-gradient(90deg, #faf6ef, #fffdf9);
}

.order-no__label {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.order-no strong {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: -0.03em;
}

.order-no__legacy {
  background: #f1ece3;
  color: #8a7a66;
}

.order-head-meta {
  color: #7a878b;
}

.order-head-meta .icon {
  color: var(--accent);
}

.order-card__amount strong {
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: -0.035em;
}

.data-table th {
  padding: 10px 14px;
  border-bottom: 0;
  background: #102a33;
  color: #d7e3e5;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.data-table td {
  border-bottom-color: #efe9df;
}

.data-table tbody tr:nth-child(even) {
  background: #fbf8f2;
}

.data-table tbody tr:hover {
  background: #f1f7f7;
}

.data-table tfoot td {
  background: #f7f3eb;
  border-top-color: var(--line);
}

.cell-main {
  color: var(--ink);
}

.cell-sub {
  color: #8b9697;
}

.cell-profit .cell-main {
  color: var(--success);
}

.order-card__foot {
  border-top-color: var(--line);
  background: #fbf8f2;
}

.order-foot-item span {
  color: #8b9697;
}

.row-actions .btn--xs {
  background: #fffdf9;
}

.order-list--ledger {
  gap: 0;
}

/* ---------- order ledger (Excel-style detail) ---------- */

.ledger-toolbar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px 8px;
  background: linear-gradient(90deg, #faf6ef, #fffdf9);
}

.ledger-toolbar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding-bottom: 3px;
}

.ledger-toolbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
}

.ledger-toolbar__badge {
  padding-right: 2px;
  font-size: 10px;
  color: #a6adae;
  white-space: nowrap;
}

.ledger-toolbar__badge.is-active {
  color: #b45309;
  font-weight: 700;
}

.ledger-toolbar__actions .btn {
  white-space: nowrap;
}

.ledger-toolbar__title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8b9697;
}

.ledger-toolbar__hint {
  font-size: 10px;
  color: #a6adae;
}

.ledger-toolbar__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ledger-toolbar__body[hidden] {
  display: none;
}

.ledger-toolbar__toggle {
  padding: 1px 9px;
  font-size: 10px;
  line-height: 1.5;
}

.ledger-toolbar__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 11px;
  padding: 3px 0;
}

.ledger-toolbar__group + .ledger-toolbar__group {
  border-top: 1px dashed #ece4d6;
}

.ledger-toolbar__group-label {
  flex: 0 0 auto;
  min-width: 58px;
  padding-left: 5px;
  border-left: 3px solid #c9bda6;
  font-size: 10px;
  font-weight: 700;
  color: #5d6b6e;
}

.ledger-toolbar__group--no .ledger-toolbar__group-label,
.ledger-toolbar__group--base .ledger-toolbar__group-label {
  border-left-color: #3f7fae;
}

.ledger-toolbar__group--coach .ledger-toolbar__group-label {
  border-left-color: #de7b35;
}

.ledger-toolbar__group--transfer .ledger-toolbar__group-label {
  border-left-color: #d8b04a;
}

.ledger-toolbar__group--gear .ledger-toolbar__group-label {
  border-left-color: #6aa84f;
}

.ledger-toolbar__group--pay .ledger-toolbar__group-label {
  border-left-color: #7fa3bb;
}

.ledger-toolbar__group--customer .ledger-toolbar__group-label {
  border-left-color: #3f7fae;
}

.ledger-toolbar__group--finance .ledger-toolbar__group-label {
  border-left-color: #7ba967;
}

.ledger-toolbar__group--charter .ledger-toolbar__group-label {
  border-left-color: #e08a4e;
}

.ledger-toolbar__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: #45565a;
  white-space: nowrap;
  cursor: pointer;
}

.ledger-toolbar__item:hover {
  color: #0d5b60;
}

.ledger-toolbar__item input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: #0d5b60;
  cursor: pointer;
}

.ledger-wrap {
  overflow: auto;
  max-height: min(72vh, 760px);
  border-top: 1px solid var(--line);
  background: #fffdf9;
  -webkit-overflow-scrolling: touch;
}

.ledger-wrap::-webkit-scrollbar {
  width: 10px;
  height: 0;
}

.ledger-wrap::-webkit-scrollbar-track {
  background: #f5efe3;
}

.ledger-wrap::-webkit-scrollbar-thumb {
  background: #c9bda6;
  border-radius: 5px;
}

/* always-visible horizontal scroller pinned to the window bottom */
.ledger-scrollbar {
  position: fixed;
  left: 0;
  bottom: env(safe-area-inset-bottom, 0px);
  z-index: 34;
  display: none;
  width: 100%;
  height: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  background: #f5efe3;
  border-top: 1px solid #d7cfbe;
  box-shadow: 0 -8px 16px -12px rgba(16, 42, 51, 0.6);
}

.ledger-scrollbar.is-visible {
  display: block;
}

.ledger-scrollbar__spacer {
  width: 0;
  height: 1px;
}

.ledger-scrollbar::-webkit-scrollbar {
  height: 12px;
}

.ledger-scrollbar::-webkit-scrollbar-track {
  background: #efe7d8;
}

.ledger-scrollbar::-webkit-scrollbar-thumb {
  border: 2px solid #efe7d8;
  border-radius: 6px;
  background: #b9ac93;
}

.ledger-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #8f8065;
}

.ledger {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 10.5px;
  line-height: 1.3;
}

.ledger th,
.ledger td {
  padding: 2px 7px;
  border-right: 1px solid #e6dfd2;
  border-bottom: 1px solid #e6dfd2;
  vertical-align: top;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger thead th {
  position: sticky;
  border-bottom: 1px solid #d7cfbe;
}

.ledger .ledger__group {
  top: 0;
  z-index: 4;
  padding: 5px 8px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 18px;
  white-space: nowrap;
}

.ledger__group--no {
  background: #dbe7f1;
  color: #24465c;
}

.ledger__group--base,
.ledger__group--customer {
  background: #3f7fae;
  color: #f4f9fc;
}

.ledger__group--coach {
  background: #de7b35;
  color: #fff7ef;
}

.ledger__group--transfer {
  background: #f5d06a;
  color: #4d3b00;
}

.ledger__group--gear {
  background: #6aa84f;
  color: #f6fbf2;
}

.ledger__group--pay {
  background: #dbe7f1;
  color: #24465c;
}

.ledger__group--finance {
  background: #b6d7a8;
  color: #213d15;
}

.ledger__group--charter {
  background: #f4b183;
  color: #4f2d17;
}

.ledger__head {
  top: 29px;
  z-index: 3;
  background: #f5efe3;
  color: #5d6b6e;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.15;
  white-space: normal;
}

.ledger th.ledger__head {
  white-space: normal;
  overflow: visible;
}

.ledger__head-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-width: 0;
}

.ledger__sort {
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  white-space: normal;
  cursor: pointer;
}

.ledger__sort .ledger__head-text {
  flex: 1 1 auto;
}

.ledger__head-inner {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.ledger__head-inner .ledger__head-text {
  flex: 1 1 auto;
}

.ledger-filter {
  position: relative;
  flex: 0 0 auto;
}

.ledger-filter__toggle {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 0 2px;
  border-radius: 3px;
  list-style: none;
  color: #97a3a8;
  cursor: pointer;
}

.ledger-filter__toggle::-webkit-details-marker {
  display: none;
}

.ledger-filter__toggle:hover {
  color: #2f6b96;
  background: #e7eef0;
}

.ledger-filter.is-active .ledger-filter__toggle,
.ledger-filter[open] .ledger-filter__toggle {
  color: #fff;
  background: #3d7f86;
}

.ledger-filter__icon {
  width: 10px;
  height: 10px;
}

.ledger-filter__count {
  font-size: 8px;
  line-height: 1;
  font-weight: 700;
}

.ledger-filter__menu {
  position: absolute;
  top: calc(100% + 3px);
  right: 0;
  z-index: 30;
  min-width: 150px;
  max-width: 240px;
  padding: 4px;
  border: 1px solid #ddd3c1;
  border-radius: 6px;
  background: #fffdf9;
  box-shadow: 0 10px 24px rgba(38, 52, 58, 0.2);
  color: #33454b;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
}

.ledger-filter__options {
  max-height: 220px;
  overflow-y: auto;
}

.ledger-filter__option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 5px;
  border-radius: 4px;
  cursor: pointer;
}

.ledger-filter__option:hover {
  background: #f4efe3;
}

.ledger-filter__option input {
  margin: 0;
}

.ledger-filter__label {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-filter__option small {
  color: #9aa6ab;
  font-size: 9px;
}

.ledger-filter__empty {
  margin: 4px 5px;
  color: #9aa6ab;
}

.ledger-filter__actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 3px;
  padding-top: 4px;
  border-top: 1px solid #efe7d8;
}

.ledger-filter__actions button {
  padding: 3px 9px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.ledger-filter__clear {
  color: #8a97a0;
}

.ledger-filter__clear:hover {
  background: #f0eadd;
}

.ledger-filter__apply {
  background: #3d7f86;
  color: #fff;
}

.ledger-filter__apply:hover {
  background: #336d73;
}

.ledger-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-bottom: 1px solid #e6ddcb;
  background: #faf6ec;
  color: #33454b;
  font-size: 11px;
  line-height: 1.25;
}

.ledger-active-filters__label {
  flex: 0 0 auto;
  color: #7d8b90;
  font-weight: 600;
}

.ledger-active-filter {
  display: inline-flex;
  align-items: stretch;
  max-width: 320px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c9dbd8;
  border-radius: 999px;
  background: #e8f2f0;
  color: #2b565a;
}

.ledger-active-filter__main {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 3px 6px 3px 9px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}

button.ledger-active-filter__main {
  cursor: pointer;
}

button.ledger-active-filter__main:hover {
  background: #d9ebe7;
}

.ledger-active-filter__name {
  flex: 0 0 auto;
  font-weight: 600;
}

.ledger-active-filter__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-active-filter__icon {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  opacity: 0.7;
}

.ledger-active-filter__remove {
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border: 0;
  border-left: 1px solid #c9dbd8;
  background: none;
  color: #4d7a7e;
  cursor: pointer;
}

.ledger-active-filter__remove:hover {
  background: #d3e6e2;
  color: #a3462f;
}

.ledger-active-filter__remove-icon {
  width: 9px;
  height: 9px;
}

.ledger-active-filters__clear {
  margin-left: auto;
  padding: 3px 8px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: #8a6a3a;
  font: inherit;
  cursor: pointer;
}

.ledger-active-filters__clear:hover {
  background: #f0e3cd;
}

.result-slot.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

.ledger__sort:hover,
.ledger__sort.is-asc,
.ledger__sort.is-desc {
  color: #2f6b96;
}

.ledger__sort-caret {
  font-size: 7px;
  line-height: 1;
  opacity: 0.45;
}

.ledger__sort.is-asc .ledger__sort-caret,
.ledger__sort.is-desc .ledger__sort-caret {
  opacity: 1;
}

.ledger td {
  background: #fffdf9;
  color: var(--ink);
}

.ledger__row--a td {
  background: #fffaf4;
}

.ledger__row--b td {
  background: #f4f9fd;
}

.ledger__row--start td {
  border-top: 2px solid #cbbfa8;
}

.ledger td.ledger__cell--order {
  border-bottom: 0;
}

.ledger td.ledger__cell--order-end {
  border-bottom: 1px solid #e6dfd2;
}

.ledger td.ledger__cell--order-cont {
  padding-top: 0;
  padding-bottom: 0;
}

.ledger thead tr:first-child th {
  border-top: 0;
}

.ledger__main {
  display: inline;
  font-size: 10.5px;
  font-weight: 600;
}

.ledger__sub {
  display: inline;
  font-size: 9px;
  font-weight: 400;
  color: #8b9697;
}

.ledger__sub::before {
  content: " · ";
}

.ledger__sub--block {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger__sub--block::before {
  content: "";
}

.ledger__coach-select,
.ledger__gender-select,
.ledger__transfer-select,
.ledger__timeslot-select,
.ledger__skilevel-select,
.ledger__language-select {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 20px;
  padding: 0 2px;
  border: 1px solid #d8e4ee;
  border-radius: 4px;
  background: #fff;
  color: #2f4a4d;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
}

.ledger__coach-select:hover,
.ledger__gender-select:hover,
.ledger__transfer-select:hover,
.ledger__timeslot-select:hover,
.ledger__skilevel-select:hover,
.ledger__language-select:hover {
  border-color: #8ec6dc;
}

.ledger__coach-select:focus,
.ledger__gender-select:focus,
.ledger__transfer-select:focus,
.ledger__timeslot-select:focus,
.ledger__skilevel-select:focus,
.ledger__language-select:focus {
  outline: 2px solid #8ec6dc;
  outline-offset: -1px;
}

.ledger__coach-select:disabled,
.ledger__gender-select:disabled,
.ledger__transfer-select:disabled,
.ledger__timeslot-select:disabled,
.ledger__skilevel-select:disabled,
.ledger__language-select:disabled {
  background: #f3efe7;
  color: #8c9694;
}

.ledger__coach-select.is-pending,
.ledger__gender-select.is-pending,
.ledger__transfer-select.is-pending,
.ledger__timeslot-select.is-pending,
.ledger__skilevel-select.is-pending,
.ledger__language-select.is-pending {
  border-color: #e4a44a;
  background: #fff6e5;
  color: #8a5300;
  box-shadow: 0 0 0 2px rgba(228, 164, 74, 0.2);
}

.ledger__inline-input,
.ledger__inline-select {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 20px;
  padding: 0 3px;
  border: 1px solid #d8e4ee;
  border-radius: 4px;
  background: #fff;
  color: #2f4a4d;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
}

.ledger__inline-input:hover,
.ledger__inline-select:hover {
  border-color: #8ec6dc;
}

.ledger__inline-input:focus,
.ledger__inline-select:focus {
  outline: 2px solid #8ec6dc;
  outline-offset: -1px;
}

.ledger__inline-input--num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ledger__inline-input[type='date'],
.ledger__inline-input[type='time'] {
  padding: 0 1px;
}

.ledger__inline-input.is-pending,
.ledger__inline-select.is-pending {
  border-color: #e4a44a;
  background: #fff6e5;
  color: #8a5300;
  box-shadow: 0 0 0 2px rgba(228, 164, 74, 0.2);
}

.ledger__date-range {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 20px;
  padding: 0 3px;
  border: 1px dashed #b9cdd0;
  border-radius: 4px;
  background: #fff;
  color: #2f4a4d;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.ledger__date-range:hover {
  border-color: #8ec6dc;
}

.ledger__date-range.is-pending {
  border-color: #e4a44a;
  background: #fff6e5;
  color: #8a5300;
}

.ledger-date-popover {
  position: fixed;
  z-index: 1200;
  width: 330px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(23, 44, 46, 0.22);
}

.ledger-date-popover .date-picker__panel {
  position: static;
  width: 100%;
  max-width: 100%;
  box-shadow: none;
  margin-top: 6px;
}


.ledger__num {
  text-align: right;
}

.ledger__num .ledger__main,
.ledger__num .ledger__sub {
  font-variant-numeric: tabular-nums;
}

.ledger__negative {
  color: #b3403a;
}

.ledger__link {
  padding: 0;
  border: 0;
  background: none;
  color: #0d5b60;
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.ledger__link:hover {
  color: #08454a;
}

.ledger__cell--gear-toggle {
  cursor: pointer;
}

.ledger__cell--gear-toggle:hover {
  background: #eef5e8;
}

.ledger__gear-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ledger__gear-toggle .ledger__main {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger__gear-toggle.is-open {
  color: #3f6d2e;
}

.ledger__gear-caret {
  flex: 0 0 auto;
  color: #6aa84f;
  font-size: 7px;
  line-height: 1;
}

.ledger .ledger__detail-row td {
  padding: 6px 10px;
  border-top: 0;
  background: #f5f2e8;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.ledger__detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}

.ledger__detail-title {
  color: #3f6d2e;
  font-size: 10.5px;
  font-weight: 700;
}

.ledger__detail-hint {
  color: #8b9697;
  font-size: 9px;
}

.ledger__cell--notes-toggle {
  cursor: pointer;
}

.ledger__cell--notes-toggle:hover {
  background: #eef5e8;
}

.ledger__notes-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: 100%;
  min-width: 0;
}

.ledger__notes-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger__notes-toggle.is-open {
  color: #0d5b60;
  font-weight: 600;
}

.ledger__notes-editor {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ledger__notes-input {
  flex: 1 1 auto;
  min-height: 56px;
  padding: 6px 8px;
  border: 1px solid #d8e4ee;
  border-radius: 6px;
  background: #faf7f0;
  color: #2f4a4d;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  resize: vertical;
  cursor: text;
}

.ledger__notes-input.is-editing,
.ledger__notes-input:not([readonly]) {
  border-color: #8ec6dc;
  background: #fff;
  outline: 2px solid #b9dcea;
  outline-offset: -2px;
}

.ledger__notes-toggle.is-pending .ledger__notes-text {
  color: #b45309;
  font-weight: 600;
}

.ledger__gear-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  justify-items: start;
}

.ledger__gear-list--editable {
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
}

.ledger__gear-item {
  padding: 4px 10px;
  border-left: 3px solid #6aa84f;
  border-radius: 4px;
  background: #fffdf9;
  font-size: 10.5px;
  line-height: 1.55;
  white-space: normal;
}

.ledger__gear-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.ledger__gear-name {
  color: #3f6d2e;
  font-weight: 700;
}

.ledger__gear-types {
  font-weight: 600;
}

.ledger__gear-profile {
  color: #5d6b6e;
}

.ledger__gear-extra {
  color: #8b6b2f;
}

.ledger__gear-empty {
  color: #8b9697;
  font-size: 10.5px;
}

.ledger__gear-item--editable {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 3px 8px 4px;
}

.ledger__gear-main {
  flex: 1 1 auto;
  min-width: 0;
}

.ledger__gear-item--editable .ledger__gear-head {
  align-items: center;
  gap: 4px 6px;
  margin-bottom: 2px;
}

.ledger__gear-item--editable .ledger__gear-chips {
  flex-wrap: wrap;
  gap: 3px;
}

.ledger__gear-item--editable .ledger__gear-chip {
  padding: 0 2px 0 5px;
  font-size: 9.5px;
  line-height: 1.55;
}

.ledger__gear-item--editable .ledger__gear-chip-remove {
  width: 12px;
  height: 12px;
  font-size: 11px;
}

.ledger__gear-item--editable .ledger__gear-add-btn {
  width: 16px;
  height: 16px;
  font-size: 12px;
}

.ledger__gear-item--editable .ledger__gear-extra {
  margin-top: 1px;
  font-size: 9.5px;
}

.ledger__gear-chips {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.ledger__gear-chip {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 1px 3px 1px 7px;
  border: 1px solid #a9cf92;
  border-radius: 999px;
  background: #eef7e6;
  color: #3f6d2e;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
}

.ledger__gear-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #6f8f5f;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.ledger__gear-chip-remove:hover {
  background: #d9ebcb;
  color: #a33b2f;
}

.ledger__gear-add {
  position: relative;
  flex: 0 0 auto;
}

.ledger__gear-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px dashed #8bb972;
  border-radius: 50%;
  background: #fff;
  color: #4d7a36;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}

.ledger__gear-add-btn::-webkit-details-marker {
  display: none;
}

.ledger__gear-add-btn:hover {
  background: #eef7e6;
}

.ledger__gear-add-menu {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  z-index: 6;
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  width: max-content;
  max-width: 180px;
  padding: 4px;
  border: 1px solid #d8e4ee;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(38, 58, 55, 0.14);
}

.ledger__gear-add[open] .ledger__gear-add-menu {
  display: flex;
}

.ledger__gear-add-option {
  padding: 2px 8px;
  border: 1px solid #d8e4ee;
  border-radius: 6px;
  background: #fff;
  color: #577186;
  font-size: 10px;
  line-height: 1.5;
  cursor: pointer;
}

.ledger__gear-add-option:hover:not(:disabled) {
  border-color: #8ec6dc;
  color: #0d6488;
}

.ledger__gear-add-option:disabled {
  background: #f2f5f3;
  color: #a4b1b0;
  cursor: default;
}

.ledger__gear-fields {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  margin-top: 1px;
}

.ledger__gear-field {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.ledger__gear-field-label {
  color: #7d8b84;
  font-size: 9.5px;
  line-height: 1.3;
  white-space: nowrap;
}

.ledger__gear-field-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.ledger__gear-input,
.ledger__gear-select {
  width: 32px;
  min-width: 0;
  height: 20px;
  padding: 0 3px;
  border: 1px solid #d8e4ee;
  border-radius: 4px;
  background: #fff;
  color: #2f4a4d;
  font: inherit;
  font-size: 10px;
  text-align: center;
}

.ledger__gear-input {
  appearance: textfield;
  -moz-appearance: textfield;
}

.ledger__gear-input::-webkit-outer-spin-button,
.ledger__gear-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.ledger__gear-input--age,
.ledger__gear-input--weight {
  width: 28px;
}

.ledger__gear-input--height {
  width: 36px;
}

.ledger__gear-input--shoe {
  width: 31px;
}

.ledger__gear-select--gender {
  width: 40px;
  padding: 0 1px;
  font-size: 9.5px;
}

.ledger__gear-input:focus,
.ledger__gear-select:focus {
  outline: 2px solid #8ec6dc;
  outline-offset: -1px;
}

.ledger__gear-field-unit {
  flex: 0 0 auto;
  color: #88928e;
  font-size: 8.5px;
}

.ledger__gear-shoe {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.ledger__gear-shoe .ledger__gear-input {
  flex: 0 0 auto;
}

.ledger__gear-select--system {
  flex: 0 0 40px;
  width: 40px;
  padding: 0 1px;
  font-size: 9.5px;
}

.ledger__gear-item--editable.is-pending {
  box-shadow: inset 0 0 0 2px rgba(228, 164, 74, 0.55);
}

.ledger__gear-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 4px;
}

.ledger__gear-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 26px;
  padding: 0;
  border: 1px solid #d8e4ee;
  border-radius: 6px;
  background: #fff;
  color: #2f4a4d;
  cursor: pointer;
}

.ledger__gear-icon .icon {
  width: 13px;
  height: 13px;
}

.ledger__gear-icon:hover {
  background: #eef5e8;
}

.ledger__gear-icon:disabled {
  opacity: 0.5;
  cursor: default;
}

.ledger__gear-icon--danger {
  color: #b5342f;
  border-color: #eab6b3;
}

.ledger__gear-icon--danger:hover {
  background: #fdecec;
}

.ledger__actions-col {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fffdf9;
  box-shadow: -8px 0 10px -9px rgba(16, 42, 51, 0.45);
}

.ledger__row--a .ledger__actions-col {
  background: #fffaf4;
}

.ledger__row--b .ledger__actions-col {
  background: #f4f9fd;
}

.ledger__actions {
  white-space: nowrap;
  text-align: center;
}

.ledger__actions-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ledger__delete {
  border-color: #e6cccc;
  background: #fff8f8;
  color: #a54040;
}

.ledger__delete:hover {
  border-color: #d9a9a9;
  background: #fdeeee;
}

.ledger__actions .btn--xs {
  vertical-align: middle;
  height: 16px;
  padding: 0 7px;
  font-size: 10px;
  line-height: 14px;
  gap: 3px;
}

.ledger__actions .btn--xs .icon {
  width: 11px;
  height: 11px;
}

.ledger tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- pager / empty / toast ---------- */

.pager__btn,
.pager__nav {
  height: 34px;
  border-color: var(--line);
  border-radius: 999px;
  background: #fffdf9;
}

.pager__btn.is-active {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.empty__icon {
  background: #eaf3f3;
  color: var(--brand);
}

.spinner {
  border-color: #e3ded3;
  border-top-color: var(--brand);
}

.toast {
  border-radius: 14px;
  background: #102a33;
}

.toast--error {
  background: #8c3232;
}

.toast--info {
  background: var(--brand-dark);
}

/* ---------- modal / course editor ---------- */

.modal {
  border-radius: 22px;
  background: #f6f2ea;
}

.modal__head,
.modal__footer {
  background: #fffdf9;
}

.modal__titles h2 {
  font-family: var(--font-display);
  font-size: 17px;
}

.course-card {
  border-color: var(--line);
  border-radius: 18px;
  background: #fffdf9;
}

.course-card__head {
  background: linear-gradient(90deg, #fbf7f0, #fffdf9);
}

.course-card__index {
  background: #e7f1f1;
  color: var(--brand-dark);
}

.course-card__summary {
  color: #7a888d;
}

.course-card__body {
  border-top-color: var(--line);
}

.course-confirm__grid {
  border-color: var(--line);
  background: #fbf8f2;
}

.course-confirm__item span,
.course-confirm__fees span {
  color: #7a888d;
}

.course-confirm__item b,
.course-confirm__fees b {
  color: var(--ink);
}

.course-confirm__fees .is-strong b {
  color: var(--brand-dark);
}

.course-confirm__block {
  border-top-color: var(--line);
}

.course-confirm__block-head h5 {
  color: var(--ink);
}

.course-confirm__sets {
  color: #5d6c70;
}

.course-confirm__empty {
  color: #7a888d;
}

.form-section {
  border-top-color: #e9e2d7;
}

.form-section--module {
  margin-top: 14px;
  padding: 14px 16px 16px;
  border: 1px solid transparent;
  border-radius: 16px;
}

.form-section--coach {
  border-color: rgba(15, 107, 116, 0.1);
  background: rgba(15, 107, 116, 0.05);
}

.form-section--equipment {
  border-color: rgba(193, 132, 62, 0.13);
  background: rgba(193, 132, 62, 0.06);
}

.form-section--transfer {
  border-color: rgba(85, 179, 189, 0.16);
  background: rgba(85, 179, 189, 0.08);
}

.form-section--module .sub-panel,
.form-section--module .fee-panel {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.66);
}

.form-section__actions--breakdown {
  flex-wrap: wrap;
  justify-content: flex-end;
  width: auto;
}

.sub-panel,
.equipment-set,
.rate-box,
.empty-inline,
.detail-section,
.detail-set {
  border-color: var(--line);
  background: #fbf8f2;
}

.equipment-set,
.detail-section {
  background: #fffdf9;
}

.equipment-set__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.equipment-set .segmented {
  min-height: 42px;
}

.equipment-set .segmented__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.equipment-fee {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(0, 0.7fr)
    minmax(0, 1.35fr)
    minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.equipment-fee .field__label,
.transfer-fee .field__label {
  min-height: 16px;
  justify-content: center;
  text-align: center;
}

.fee-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 42px;
  padding: 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: #0d6488;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transfer-fee {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.equipment-add-set {
  align-self: center;
  margin-top: 2px;
}

.course-breakdown--head {
  padding-top: 0;
  border-top: 0;
  gap: 10px;
  align-items: center;
}

.equipment-profile {
  display: grid;
  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(0, 0.8fr)
    minmax(0, 0.95fr)
    minmax(0, 0.95fr)
    minmax(0, 1.25fr);
  gap: 8px;
  align-items: end;
}

.equipment-type-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.equipment-set__types {
  gap: 6px;
}

.equipment-set__types .field__label {
  min-height: 16px;
  font-size: 11px;
  line-height: 16px;
}

.equipment-set__extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.32fr);
  gap: 10px;
  align-items: end;
}

.equipment-profile .field__label {
  min-height: 16px;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

.equipment-profile .input,
.equipment-profile .select {
  height: 42px;
  min-height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 12px;
}

.equipment-profile .segmented {
  align-items: stretch;
  flex-wrap: nowrap;
  height: 42px;
  min-height: 42px;
}

.equipment-profile .segmented__btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.equipment-profile .inline-group {
  gap: 6px;
}

.equipment-profile .inline-group .input {
  min-width: 0;
}

.equipment-profile .inline-group .select {
  width: 58px;
}

.equipment-set__actions {
  display: flex;
  justify-content: flex-end;
}

.equipment-type-tools__details.is-active,
.equipment-type-tools__details.is-active:hover {
  background: #0d6488;
  border-color: #0d6488;
  color: #fff;
}

.equipment-summary__text {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .equipment-fee {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .equipment-profile .field:last-child {
    grid-column: span 2;
  }

  .equipment-set__extra {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .transfer-fee__total {
    grid-column: span 2;
  }

  .form-section--module {
    margin-top: 12px;
    padding: 12px 12px 14px;
    border-radius: 14px;
  }

  .course-breakdown--head {
    justify-content: flex-start;
    gap: 8px;
  }
}

.fee-panel {
  border-color: #d8e5e2;
  background: linear-gradient(135deg, #eef6f4, #f8fbf9);
}

.fee-panel__total b,
.course-breakdown strong,
.rate-value {
  color: var(--brand-dark);
}

.count-chip {
  background: #f1ece3;
  color: #6f7d80;
}

.count-chip b {
  color: var(--brand-dark);
}

.count-chip--action:hover:not(:disabled) {
  border-color: #d9c8ab;
  background: #ece2d4;
}

.count-chip__meta {
  color: #8a9294;
}

.profit-line,
.supplement {
  border-color: #ecd9b9;
  background: #fff9ef;
}

/* ---------- summary card / metrics ---------- */

.summary-card {
  border-radius: 22px;
  background: radial-gradient(110% 70% at 100% 0%, rgba(85, 179, 189, 0.22) 0%, transparent 58%),
    linear-gradient(180deg, #102a33, #0a1d25);
  box-shadow: 0 30px 60px -34px rgba(8, 30, 36, 0.85);
}

.summary-card__eyebrow {
  color: #8fb7b6;
  letter-spacing: 0.2em;
}

.summary-total {
  font-family: var(--font-display);
  font-size: 32px;
}

.summary-rows {
  color: #a7c0c0;
}

.summary-rows b {
  color: #edf4f2;
}

.summary-card .btn--primary {
  background: linear-gradient(135deg, #f0cd94, #c1843e);
  color: #1c2b2e;
}

.summary-note {
  color: #7f9a9b;
}

.summary-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.summary-card__head .summary-card__eyebrow {
  margin: 0;
}

.copy-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(240, 205, 148, 0.55);
  border-radius: 999px;
  background: rgba(240, 205, 148, 0.12);
  color: #f0cd94;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.copy-order-btn .icon {
  width: 13px;
  height: 13px;
}

.copy-order-btn:hover {
  background: rgba(240, 205, 148, 0.22);
  border-color: rgba(240, 205, 148, 0.85);
}

.copy-order-btn:active {
  transform: translateY(1px);
}

.copy-order-btn:focus-visible {
  outline: 2px solid rgba(240, 205, 148, 0.8);
  outline-offset: 2px;
}

.copy-order-text {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf9;
  color: var(--ink);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
}

.copy-order-title {
  display: block;
  font-weight: 700;
  color: var(--brand-dark);
}

.copy-order-line {
  white-space: pre-wrap;
}

.copy-order-sep {
  margin: 14px 0;
  color: #c2b6a4;
  letter-spacing: 0.2em;
  user-select: none;
}

.quote-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.quote-preview__frame {
  width: min(100%, 560px);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #efe9dd;
  box-shadow: 0 18px 40px -28px rgba(10, 26, 34, 0.45);
}

.quote-preview__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.quote-preview__hint {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
  line-height: 1.7;
}

.metric-card {
  padding: 17px;
  border-color: var(--line);
  border-radius: 18px;
  background: #fffdf9;
}

.metric-card__icon {
  background: #eaf3f3;
  color: var(--brand);
}

.metric-card strong {
  font-family: var(--font-display);
  font-size: 21px;
}

.metric-card--brand {
  border-color: transparent;
  background: linear-gradient(135deg, #102a33, #0b1d26);
}

.metric-card--brand .metric-card__head,
.metric-card--brand p {
  color: #a7bfbf;
}

.metric-card--brand strong {
  color: #fff;
}

.metric-card--brand .metric-card__icon {
  background: rgba(226, 184, 120, 0.14);
  color: #e2b878;
}

.metric-card--accent strong {
  color: #a86b28;
}

.metric-card--ice {
  background: #f4f8f6;
}

.rank-bar i {
  background: linear-gradient(90deg, #6fc3c9, #0f6b74);
}

.stats-daily {
  margin-bottom: 18px;
}

.stats-daily__table td:first-child {
  white-space: nowrap;
}

.stats-daily__date {
  font-variant-numeric: tabular-nums;
}

.stats-daily__weekday {
  margin-left: 6px;
  font-size: 10px;
  color: #8ba0b1;
}

.stats-daily__bar-cell {
  width: 150px;
  padding-right: 14px;
}

.stats-daily .rank-bar {
  width: 120px;
  margin-top: 0;
  vertical-align: middle;
}

.stats-daily__row--empty td,
.stats-daily__row--empty .is-strong {
  color: #a6b0b6;
}

.stats-row {
  cursor: pointer;
}

.stats-row:hover td {
  background: #f7fbfa;
}

.stats-row:focus-visible {
  outline: 2px solid var(--brand-ice);
  outline-offset: -2px;
}

.deal-range-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -6px 0 14px;
  padding: 10px 14px;
  border: 1px dashed #cdbda6;
  border-radius: 14px;
  background: #fffaf1;
  color: #6d5a3e;
  font-size: 12px;
}

.deal-range-note[hidden] {
  display: none;
}

.deal-range-note .icon {
  width: 15px;
  height: 15px;
  color: #a86b28;
}

.deal-range-note .btn {
  margin-left: auto;
}

/* ---------- coach settings / excel ---------- */

.coach-card {
  border-color: var(--line);
  border-radius: 20px;
  background: #fffdf9;
}

.coach-avatar {
  background: linear-gradient(135deg, #efe0c8, #f8f2e7);
  color: #9a6224;
  font-family: var(--font-display);
}

.upload-zone {
  border-color: #cdbda6;
  border-radius: 18px;
  background: #fbf8f2;
}

.upload-zone:hover,
.upload-zone.is-over {
  border-color: var(--brand-ice);
  background: #f2f8f6;
}

.upload-zone > .icon {
  color: var(--brand);
}

.import-metrics > div {
  border-color: var(--line);
  border-radius: 12px;
  background: #fbf8f2;
}

/* ---------- badges ---------- */

.badge {
  background: #f1ece3;
  color: #5f6f74;
}

.badge--amount {
  background: #e2eeeb;
  color: #0d5b60;
}

.badge--busy,
.badge--admin {
  background: #f8ecda;
  color: #9a6224;
}

.badge--regular {
  background: #e8f3ec;
  color: #2f7d5d;
}

.badge--season {
  background: #f0ebdf;
  color: #7b6a4e;
}

.badge--employment {
  background: #e2eeeb;
  color: #0d5b60;
}

.badge--employment.is-external {
  background: #f8ecda;
  color: #9a6224;
}

.badge--muted,
.badge--type {
  background: #f1efe9;
  color: #758184;
}

/* ---------- login ---------- */

.login-page {
  background: var(--page);
}

.login-visual {
  padding: 46px 56px;
  background: radial-gradient(90% 80% at 18% 0%, #174b53 0%, #0b242b 52%, #07181e 100%);
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: repeating-radial-gradient(circle at 82% 18%, rgba(244, 241, 234, 0.08) 0 1px, transparent 1px 54px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

.login-visual::after {
  content: "26/27";
  position: absolute;
  right: 40px;
  bottom: 42px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 132px;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: rgba(244, 241, 234, 0.055);
  pointer-events: none;
}

.login-brand {
  gap: 12px;
}

.login-brand .brand-mark {
  width: 40px;
  height: 40px;
}

.login-brand .brand-mark--logo {
  width: 88px;
  height: 52px;
}

.login-brand strong {
  font-family: var(--font-display);
  font-size: 18px;
}

.login-brand small {
  color: #89a9ab;
}

.login-visual__content {
  max-width: 540px;
}

.login-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  font-size: 10px;
  letter-spacing: 0.26em;
  color: #e2b878;
}

.login-eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: #c1843e;
}

.login-visual h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.05em;
}

.login-lead {
  margin: 20px 0 30px;
  font-size: 12.5px;
  color: #a9c2c3;
}

.login-features li {
  color: #b9cdce;
}

.login-feature__icon {
  border-radius: 9px;
  background: rgba(226, 184, 120, 0.12);
  color: #e2b878;
}

.login-visual__foot {
  color: #6d8a8d;
}

.snow-scene__moon {
  background: radial-gradient(circle at 35% 35%, #fff0d4, #d9a765);
  box-shadow: 0 0 70px rgba(226, 184, 120, 0.4);
}

.snow-scene__ridge {
  background: linear-gradient(180deg, rgba(120, 170, 165, 0.2), rgba(10, 40, 45, 0.06));
}

.snow-scene__ridge--front {
  background: linear-gradient(180deg, rgba(226, 235, 230, 0.16), rgba(255, 255, 255, 0.02));
}

.snow-scene__flake {
  background: #f4e6cf;
  box-shadow: 0 0 8px rgba(244, 230, 207, 0.8);
}

.login-panel {
  gap: 22px;
  background: linear-gradient(180deg, #f8f5ee 0%, #f2eee5 100%);
}

.login-card {
  position: relative;
  max-width: 420px;
  padding: 38px 36px 32px;
  border-color: var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 26px;
  background: #fffdf9;
  box-shadow: 0 42px 85px -55px rgba(22, 36, 44, 0.6);
}

.login-card::before {
  content: "STAFF ACCESS · 26—27";
  display: block;
  margin-bottom: 15px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.login-card__head h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.login-card__head p {
  margin: 8px 0 24px;
  font-size: 12px;
}

.login-field {
  gap: 7px;
}

.login-field__label {
  color: #5f7077;
}

.input--lg {
  height: 49px;
  border-radius: 13px;
  font-size: 13px;
}

.login-form .btn--primary {
  margin-top: 4px;
  height: 48px;
}

.login-copyright {
  color: #9a917f;
}

/* ---------- segmented controls ---------- */

.segmented {
  gap: 2px;
  padding: 3px;
  border-color: var(--line);
  border-radius: 12px;
  background: #f3eee4;
}

.segmented__btn {
  padding: 6px 11px;
  border-radius: 9px;
  color: #6f6a5e;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.segmented__btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

.segmented__btn.is-active {
  background: #fffdf9;
  color: var(--brand-dark);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(32, 40, 36, 0.14);
}

.duration-segmented {
  display: flex;
  width: 100%;
}

.duration-segmented .segmented__btn {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 6px;
}

/* ---------- responsive reset for the redesign ---------- */

@media (max-width: 1080px) {
  .topbar {
    padding: 12px 20px;
  }

  .content {
    padding: 24px 20px 60px;
  }
}

@media (max-width: 980px) {
  .sidebar {
    inset: 0 auto 0 0;
    width: 270px;
    border: 0;
    border-radius: 0;
  }

  .app-main {
    margin-left: 0;
  }

  .topbar {
    padding: 11px 16px;
  }

  .content {
    padding: 20px 16px 54px;
  }

  .page-head h1 {
    font-size: 30px;
  }

  .page-head > div:first-child::before {
    margin-bottom: 7px;
  }

  .login-visual {
    min-height: 300px;
    padding: 30px 28px;
  }

  .login-visual::after,
  .login-visual::before {
    display: none;
  }

  .login-visual h1 {
    font-size: 34px;
  }

  .login-panel {
    padding: 32px 18px 48px;
  }
}

@media (max-width: 760px) {
  .segmented {
    gap: 1px;
    padding: 2px;
  }

  .segmented__btn {
    padding: 7px 3px;
    font-size: 10.5px;
  }

  .order-card .table-wrap {
    overflow-x: visible;
  }

  .order-table,
  .order-table tbody {
    display: block;
  }

  .order-table thead {
    display: none;
  }

  .order-table tbody tr {
    display: block;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
  }

  .order-table tbody tr:first-child {
    border-top: 0;
  }

  .order-table td {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding: 3px 0;
    border: 0;
    vertical-align: baseline;
  }

  .order-table td .cell-main,
  .order-table td .cell-sub {
    grid-column: 2;
  }

  .order-table td .cell-sub {
    margin-top: 1px;
  }

  .order-table td.cell-profit .cell-sub {
    display: none;
  }

  .order-table td::before {
    grid-column: 1;
    padding-top: 1px;
    color: #8a9499;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
  }

  .order-table td:nth-child(1)::before { content: "课程日期"; }
  .order-table td:nth-child(2)::before { content: "雪场 / 地区"; }
  .order-table td:nth-child(3)::before { content: "人数 / 时长"; }
  .order-table td:nth-child(4)::before { content: "单双板 / 语言"; }
  .order-table td:nth-child(5)::before { content: "教练 / 等级"; }
  .order-table td.cell-fees::before { content: "课程金额"; }
  .order-table td.cell-profit::before { content: "利润"; }

  .order-table td.cell-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
  }

  .order-table td.cell-actions::before {
    content: none;
  }

  .order-table .row-actions {
    flex-direction: row;
    gap: 6px;
  }

  .page-head h1 {
    font-size: 26px;
  }

  .topbar__actions .topbar-action {
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: 11px;
  }

  .topbar__titles {
    overflow: hidden;
  }

  .topbar__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-head > div:first-child::before {
    font-size: 8.5px;
    letter-spacing: 0.2em;
  }

  .login-card {
    padding: 30px 22px 26px;
    border-radius: 22px;
  }

  .login-card__head h2 {
    font-size: 26px;
  }

  .login-visual h1 {
    font-size: 29px;
  }

  .login-visual {
    padding: 26px 22px;
  }
}

/* ---------- order detail ---------- */

.course-thumb {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf9;
}

.course-thumb__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.course-thumb__title {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  min-width: 0;
}

.course-thumb__date {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink);
}

.course-thumb__resort {
  font-size: 11.5px;
  color: #6d7c80;
}

.course-thumb__end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.course-thumb__amount {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--brand-dark);
  white-space: nowrap;
}

.course-thumb__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  font-size: 11px;
  color: #5d6c70;
}

.course-thumb__item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.course-thumb__item b {
  font-weight: 600;
  color: var(--ink);
}

.course-thumb__label {
  font-size: 10px;
  color: #93a0a3;
}

.course-thumb__note {
  margin: 0;
  padding-top: 6px;
  border-top: 1px dashed #ece5d9;
  font-size: 11px;
  color: #7a888d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-detail__legacy {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 10.5px;
  color: #7a888d;
}

.order-detail__legacy p {
  margin: 2px 0;
}

@media (max-width: 760px) {
  .course-thumb__head {
    align-items: flex-start;
  }

  .course-thumb__end {
    width: 100%;
    justify-content: space-between;
  }
}

/* ---------- report settings ---------- */

.stat-strip--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1280px) {
  .stat-strip--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- inline course edit ---------- */

.course-edit {
  display: grid;
  gap: 10px;
}

.course-edit__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 2px 4px;
}

.filter-field .date-picker {
  width: 100%;
}

.filter-field--date {
  flex: 1 1 300px;
  max-width: 360px;
}

.filter-field--date .date-picker__value {
  overflow: visible;
  text-overflow: clip;
}

.filter-field--span {
  flex: 0 1 250px;
  max-width: 280px;
}

.filter-span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-span__input {
  width: 74px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.filter-span__unit {
  color: var(--muted);
  font-size: 12px;
}

.filter-span .btn {
  height: 38px;
  white-space: nowrap;
}

.date-picker__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.date-picker__clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: #5d5347;
  font-size: 12px;
  cursor: pointer;
}

.date-picker__clear .icon {
  width: 13px;
  height: 13px;
}

.date-picker__clear:hover {
  border-color: #bcae99;
}

.date-picker__clear.is-active {
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 600;
}

@media (max-width: 760px) {
  .filter-field--date {
    flex-basis: 100%;
    max-width: none;
  }
}

/* ---------- equipment rental ---------- */

.rental-caption {
  margin: 0 0 10px;
  font-size: 11.5px;
  color: var(--muted);
}

.rental-peaks {
  margin: 0 0 16px;
}

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

.peak-head h2 {
  margin: 0;
  font-size: 15px;
}

.peak-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.peak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}

.peak-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: var(--shadow-soft);
}

.peak-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.peak-card__head h3 {
  margin: 0;
  font-size: 13px;
}

.peak-card__head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.peak-card__hint {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.peak-rows {
  display: flex;
  flex-direction: column;
}

.peak-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px dashed #e6edf3;
  font-size: 11.5px;
}

.peak-row:first-child {
  border-top: 0;
}

.peak-row__type {
  color: #2f4a4d;
  font-weight: 600;
}

.peak-row__date {
  color: var(--muted);
}

.peak-row__value {
  display: flex;
  align-items: baseline;
  justify-self: end;
  gap: 3px;
  color: #0d5b60;
}

.peak-row__count {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.peak-row__count:hover {
  text-decoration: underline;
}

.peak-card__titles {
  min-width: 0;
  flex: 1;
}

.peak-select {
  width: auto;
  min-width: 128px;
  max-width: 210px;
  flex: none;
}

.peak-select .multi-select__summary {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 9px;
  font-size: 11.5px;
}

.peak-select .multi-select__menu {
  right: 0;
  left: auto;
  min-width: 220px;
}

.rental-peak-orders {
  margin-top: 12px;
}

.rental-peak-orders__card {
  padding: 0;
  overflow: hidden;
}

.rental-peak-orders__body {
  padding: 0 12px 12px;
}

.rental-query {
  margin-top: 16px;
  padding: 0;
  overflow: hidden;
}

.rental-query .card-head {
  padding: 12px 14px;
}

.rental-query__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.rental-query-results {
  padding: 0 12px 12px;
}

.rental-query-results[hidden] {
  display: none;
}

.peak-row__value small {
  color: var(--muted);
  font-size: 10px;
}

.peak-row.is-empty .peak-row__type,
.peak-row__value.is-empty {
  color: var(--muted);
}

.peak-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 11px;
}

.peak-loading p {
  margin: 0;
}

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

@media (max-width: 560px) {
  .peak-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }

  .peak-card__head {
    flex-wrap: wrap;
  }
}

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

.rental-card {
  --rental-accent: var(--brand);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rental-card.is-open {
  border-color: var(--rental-accent);
  box-shadow: 0 0 0 1px var(--rental-accent) inset, var(--shadow-soft);
}

.rental-card--suit {
  --rental-accent: #4f7fa6;
}

.rental-card--board {
  --rental-accent: #3f7d5d;
}

.rental-card--boot {
  --rental-accent: #a8703d;
}

.rental-card--helmet {
  --rental-accent: #7b6a9e;
}

.rental-card--goggle {
  --rental-accent: #3f8b8b;
}

.rental-card--pad {
  --rental-accent: #b0584a;
}

.rental-card__head {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.rental-card__head:hover {
  background: #f7f5ee;
}

.rental-card__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rental-accent);
}

.rental-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--ink);
  white-space: nowrap;
}

.rental-card__total {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-left: auto;
  color: var(--rental-accent);
  white-space: nowrap;
}

.rental-card__total strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.rental-card__total small {
  font-size: 9.5px;
  color: var(--muted);
}

.rental-card__caret {
  flex: 0 0 auto;
  font-size: 8px;
  color: #9aa5a7;
}

.rental-card__empty {
  margin: 0;
  font-size: 11px;
  color: #a0aaad;
}

.rental-detail {
  --rental-accent: var(--brand);
  margin-bottom: 18px;
  padding: 14px 18px 16px;
  border-top: 3px solid var(--rental-accent);
  border-radius: 14px;
}

.rental-detail__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rental-detail__titles {
  flex: 1 1 auto;
  min-width: 0;
}

.rental-detail__titles h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
}

.rental-detail__titles p {
  margin: 2px 0 0;
  font-size: 10.5px;
  color: var(--muted);
}

.rental-detail__total {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--rental-accent);
  white-space: nowrap;
}

.rental-detail__total strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.rental-detail__total small {
  font-size: 10px;
  color: var(--muted);
}

.rental-detail__body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

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

.rental-genders > .rental-gender:only-child {
  grid-column: 1 / -1;
}

.rental-gender__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--muted);
}

.rental-gender__head b {
  font-size: 12px;
  color: var(--ink);
}

.rental-gender__list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rental-bar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  border-radius: 6px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 10.5px;
}

.rental-bar:hover {
  background: #f3f6f3;
}

.rental-bar__label {
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rental-bar__track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef0ea;
}

.rental-bar__track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--rental-accent);
  opacity: 0.72;
}

.rental-bar:hover .rental-bar__track i {
  opacity: 1;
}

.rental-bar__value {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rental-requests {
  margin-top: 18px;
}

.rental-requests__list {
  display: flex;
  flex-direction: column;
}

.rental-request {
  display: block;
  padding: 11px 4px;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.rental-request:first-child {
  border-top: 0;
}

.rental-request:hover {
  background: #faf8f2;
}

.rental-request__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

.rental-request__types {
  padding: 1px 7px;
  border-radius: 999px;
  background: #eaf3ef;
  color: #2f6b53;
  font-size: 10px;
  font-weight: 600;
}

.rental-request__profile {
  font-size: 10.5px;
  color: var(--muted);
}

.rental-request__text {
  margin: 5px 0 4px;
  font-size: 12.5px;
  color: var(--ink);
}

.rental-request__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #8b9697;
}

.drilldown-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px;
  padding: 9px 14px;
  border: 1px solid #cfe3d8;
  border-radius: 12px;
  background: #f1f8f3;
  color: #2f6b53;
  font-size: 11.5px;
}

.drilldown-note__icon {
  display: inline-flex;
}

.drilldown-note__icon .icon {
  width: 14px;
  height: 14px;
}

.drilldown-note__text {
  flex: 1 1 auto;
}

.drilldown-note__link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.drilldown-note__link:hover {
  text-decoration: underline;
}

.ledger__gear-item--match {
  border-left-color: #c1843e;
  background: #fff8ec;
  box-shadow: inset 0 0 0 1px rgba(193, 132, 62, 0.35);
}

@media (max-width: 680px) {
  .rental-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rental-genders {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .rental-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- 排课 ---------- */

.scheduling-table {
  min-width: 1060px;
}

.scheduling-table th,
.scheduling-table td {
  text-align: center;
  white-space: nowrap;
}

.scheduling-table__day-head,
.scheduling-table__region-head,
.scheduling-table__total-head,
.scheduling-table__gear-total-head {
  text-align: center;
}

.scheduling-table__total-head {
  background: #eaf3f3;
  color: var(--brand-dark);
}

.scheduling-table__gear-total-head {
  background: #e7f2e2;
  color: #3f6d2e;
}

.scheduling-table__day {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--snow);
  text-align: center;
}

.scheduling-table__date {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.scheduling-table__weekday {
  margin-left: 6px;
  color: var(--muted);
  font-size: 11px;
}

.scheduling-table__region-head + .scheduling-table__region-head {
  border-left: 1px solid var(--line-strong);
}

.scheduling-table th.scheduling-table__region-head--1,
.scheduling-table th.scheduling-table__region-subhead--1 {
  background: #d9e9fa;
  color: #1d4e70;
}

.scheduling-table th.scheduling-table__region-head--2,
.scheduling-table th.scheduling-table__region-subhead--2 {
  background: #def0d2;
  color: #3f6d2e;
}

.scheduling-table th.scheduling-table__region-head--3,
.scheduling-table th.scheduling-table__region-subhead--3 {
  background: #fae6cd;
  color: #8a5520;
}

.scheduling-table td.scheduling-table__region-cell--1 {
  background: #f2f8fe;
}

.scheduling-table td.scheduling-table__region-cell--2 {
  background: #f3faef;
}

.scheduling-table td.scheduling-table__region-cell--3 {
  background: #fef8f0;
}

.scheduling-table tbody tr:hover td.scheduling-table__region-cell--1 {
  background: #e6f1fc;
}

.scheduling-table tbody tr:hover td.scheduling-table__region-cell--2 {
  background: #e9f6e1;
}

.scheduling-table tbody tr:hover td.scheduling-table__region-cell--3 {
  background: #fbeddc;
}

.scheduling-table tfoot td.scheduling-table__region-foot--1 {
  background: #e4effb;
}

.scheduling-table tfoot td.scheduling-table__region-foot--2 {
  background: #e6f3dd;
}

.scheduling-table tfoot td.scheduling-table__region-foot--3 {
  background: #fbeddb;
}

.scheduling-table__value {
  font-variant-numeric: tabular-nums;
}

.scheduling-table__value.is-zero {
  color: var(--muted);
}

.scheduling-table__coach {
  min-width: 34px;
  padding: 2px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(15, 107, 116, 0.1);
  color: var(--brand-dark);
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.scheduling-table__total-course,
.scheduling-table__gear,
.scheduling-table__gear-total {
  min-width: 34px;
  padding: 2px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.scheduling-table__total-course {
  background: rgba(13, 91, 96, 0.16);
  color: #0b4d51;
}

.scheduling-table__gear {
  background: rgba(106, 168, 79, 0.16);
  color: #3f6d2e;
}

.scheduling-table__gear-total {
  background: rgba(106, 168, 79, 0.26);
  color: #2f5a20;
}

.scheduling-table__total-course:hover,
.scheduling-table__gear:hover,
.scheduling-table__gear-total:hover {
  border-color: currentColor;
  background: #fff;
}

.scheduling-table__total-course.is-active {
  background: #0b4d51;
  border-color: #0b4d51;
  color: #fff;
}

.scheduling-table__gear.is-active,
.scheduling-table__gear-total.is-active {
  background: #3f6d2e;
  border-color: #3f6d2e;
  color: #fff;
}

.scheduling-table__coach:hover {
  border-color: var(--brand);
  background: #fff;
}

.scheduling-table__coach.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.scheduling-table tfoot td {
  background: #f8f4ed;
  font-variant-numeric: tabular-nums;
}

.scheduling-table__total-label {
  font-weight: 600;
}

.scheduling-note {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.scheduling-drilldown {
  margin-top: 18px;
}

.scheduling-drilldown__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scheduling-drilldown__body {
  padding: 0 0 4px;
}

.scheduling-drilldown__empty {
  padding: 8px 18px 18px;
}

@media (max-width: 680px) {
  .scheduling-table {
    min-width: 820px;
  }
}

.ledger__band-cell {
  padding: 6px 12px;
  background: #eef4f4;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  color: var(--brand-dark);
  font-weight: 600;
  white-space: nowrap;
}

.ledger__band-icon {
  display: inline-flex;
  margin-right: 6px;
  vertical-align: -3px;
}

.ledger__band-icon .icon {
  width: 14px;
  height: 14px;
}

.ledger__order-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ledger__order-caret {
  flex: 0 0 auto;
  color: #6aa84f;
  font-size: 8px;
  line-height: 1;
}

.ledger__link.is-open {
  color: #3f6d2e;
}

.ledger__gear-toggle {
  flex-wrap: wrap;
}

.ledger__gear-counts {
  flex: 0 0 100%;
  color: #7a8586;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.scheduling-drilldown__intro:empty,
.scheduling-drilldown__detail:empty {
  display: none;
}

.scheduling-gear {
  padding: 14px 18px 4px;
}

.scheduling-gear__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.scheduling-gear__head h3 {
  margin: 0;
  font-size: 14px;
}

.scheduling-gear__head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.scheduling-gear__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.scheduling-gear__card {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.scheduling-gear__card--total {
  border-color: var(--brand);
  background: #f2f8f8;
}

.scheduling-gear__card--global {
  border-color: #c9a227;
  background: #fdf8e8;
}

.scheduling-gear__regions {
  display: grid;
  gap: 12px;
}

.scheduling-gear__region {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.scheduling-gear__region--1 {
  border-color: #cfe2f5;
  background: #edf5fd;
}

.scheduling-gear__region--2 {
  border-color: #cfe6c6;
  background: #eef8ea;
}

.scheduling-gear__region--3 {
  border-color: #f0dbb9;
  background: #fdf4e6;
}

.scheduling-gear__region-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.scheduling-gear__region-head h3 {
  margin: 0;
  font-size: 13px;
}

.scheduling-gear__region-types {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.scheduling-gear__region .scheduling-gear__card {
  background: rgba(255, 255, 255, 0.78);
}

.scheduling-gear__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.scheduling-gear__card-head h3 {
  margin: 0;
  font-size: 12.5px;
}

.scheduling-gear__types {
  display: grid;
  gap: 5px;
  margin: 0;
}

.scheduling-gear__type {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 8px;
  font-size: 11px;
  line-height: 1.5;
}

.scheduling-gear__type dt {
  margin: 0;
  white-space: nowrap;
}

.scheduling-gear__type dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.scheduling-gear__type-total {
  color: var(--brand-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scheduling-gear__people {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scheduling-gear__person {
  position: relative;
  padding-left: 11px;
}

.scheduling-gear__person::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.scheduling-gear__detail {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}

.scheduling-gear-table {
  min-width: 1500px;
}

.scheduling-gear-table th,
.scheduling-gear-table td {
  text-align: center;
  white-space: nowrap;
}

.scheduling-gear-table thead th {
  background: #102a33;
  color: #d7e3e5;
}

.scheduling-gear-table tbody tr.scheduling-gear-table__row--r1 td {
  background: #eaf3fb;
}

.scheduling-gear-table tbody tr.scheduling-gear-table__row--r2 td {
  background: #edf7e9;
}

.scheduling-gear-table tbody tr.scheduling-gear-table__row--r3 td {
  background: #fdf3e4;
}

.scheduling-gear-table__group td {
  background: #eef4f4;
  color: var(--brand-dark);
  font-weight: 600;
}

.scheduling-gear-table__course td,
.scheduling-gear-table__set td {
  font-variant-numeric: tabular-nums;
}

.scheduling-gear-table__set td[rowspan] {
  vertical-align: top;
}

.scheduling-gear-table__sets > td {
  padding: 6px 10px;
  background: #f8f6ef;
  white-space: normal;
}

.scheduling-gear-sets {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.scheduling-gear-sets th,
.scheduling-gear-sets td {
  padding: 3px 8px;
  border-bottom: 1px dashed var(--line);
  text-align: left;
  white-space: nowrap;
}

.scheduling-gear-sets th {
  color: var(--muted);
  font-weight: 600;
}

.scheduling-gear-sets td.num {
  font-variant-numeric: tabular-nums;
}

.scheduling-gear-table__subtotal td {
  background: #f8f4ed;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.scheduling-gear-table__region td {
  background: #e9f4f4;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scheduling-gear-table__global td {
  background: #fdf4df;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scheduling-gear-table__special {
  min-width: 120px;
  white-space: normal;
}

@media (max-width: 680px) {
  .scheduling-gear {
    padding: 12px 12px 4px;
  }

  .scheduling-gear__detail {
    padding: 12px;
  }

  .scheduling-gear__type {
    grid-template-columns: 86px minmax(0, 1fr);
  }
}

.size-chart-card {
  margin-bottom: 16px;
}

.size-chart-table {
  min-width: 680px;
}

.size-chart-table th,
.size-chart-table td {
  white-space: nowrap;
}

.size-chart-table td {
  padding-top: 6px;
  padding-bottom: 6px;
}

.size-chart__input {
  width: 100%;
  min-width: 72px;
  height: 32px;
  padding: 4px 8px;
  font-size: 12px;
}

.size-chart-table td.num .btn {
  margin-left: auto;
}

/* ---------- inventory ---------- */

.inventory-card {
  margin-bottom: 16px;
}

.inventory__table {
  min-width: 1180px;
}

.inventory__table th,
.inventory__table td {
  white-space: nowrap;
  text-align: center;
  padding: 6px 8px;
}

.inventory__table td {
  vertical-align: middle;
}

.inventory__category-head,
.inventory__category {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 72px;
  background: #f7f3eb;
  color: var(--ink);
  font-weight: 600;
}

.inventory__table thead .inventory__category-head {
  background: #102a33;
}

.inventory__category {
  border-right: 1px solid #e6dfd3;
}

.inventory__readonly {
  color: #5d6c70;
  font-weight: 600;
}

.inventory__total {
  color: var(--brand-dark);
  font-weight: 700;
}

.inventory__input {
  width: 100%;
  min-width: 64px;
  height: 30px;
  padding: 2px 6px;
  font-size: 12px;
}

.inventory__input--number {
  width: 64px;
  min-width: 64px;
  text-align: right;
}

.inventory__input--size {
  width: 80px;
  min-width: 80px;
}

.inventory__actions {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.inventory__actions .btn {
  padding: 4px 8px;
  font-size: 11px;
}

.inventory__danger {
  color: #b4483c;
}

.inventory__dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.inventory__status {
  font-size: 12px;
  color: #7a888d;
}

.inventory__status.is-dirty {
  color: #b7791f;
}

.inventory__table tfoot th,
.inventory__table tfoot td {
  font-weight: 700;
  background: #f7f3eb;
}
