:root {
  font-family: Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #183528;
  background: #f2f6f3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.shell {
  min-height: 100vh;
}
.brand {
  margin: 4px 8px 28px;
  color: #176b46;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}
.venue-select {
  margin-bottom: 18px;
  padding: 9px 12px;
  border: 1px solid #789486;
  border-radius: 8px;
  background: #fff;
  color: #183528;
}
.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
}
.sidebar,
.content {
  border: 1px solid #dce7df;
  background: white;
  min-height: 700px;
}
.sidebar {
  padding: 16px 14px;
}
.nav {
  width: 100%;
  min-height: 52px;
  margin-bottom: 8px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: #375448;
  text-align: left;
}
.nav.active {
  background: #e7f2eb;
  color: #176b46;
  font-weight: 700;
}
.content {
  min-width: 0;
  padding: 24px;
}
.content h2 {
  font-size: 24px;
}
.heading {
  margin: 0 0 6px;
  font-size: 28px;
}
.lead {
  margin: 0 0 22px;
  color: #607066;
}
.notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #e9f4ed;
  color: #176b46;
}
.notice.error {
  background: #fff0ec;
  color: #9a392d;
}
.card {
  margin-bottom: 22px;
}
.card-head,
.row,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.card h2,
.card h3 {
  margin: 0;
}
.muted {
  color: #6b7b72;
  font-size: 13px;
}
.tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e5f2e9;
  color: #176b46;
  font-size: 12px;
}
.tag.retired {
  background: #f2ece9;
  color: #8a493d;
}
.fields {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
label {
  display: grid;
  gap: 6px;
  color: #50635a;
  font-size: 13px;
}
input,
select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #ccd9d0;
  border-radius: 8px;
  background: white;
  color: #183528;
}
.court-row,
.period-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 110px 120px;
  gap: 10px;
  align-items: center;
}
.court-summary-row {
  margin-top: 10px;
  padding: 18px 20px;
  border: 1px solid #dce7df;
  color: #183528;
}
.courts-group {
  margin: 34px 0 0;
}
.courts-group .card-head {
  padding: 18px 20px;
  border: 1px solid #dce7df;
  background: #eef7f1;
}
.group-maintenance {
  margin-left: 20px;
}
.court-add-action {
  display: flex;
  justify-content: flex-end;
  margin: 76px 0 0;
}
.court-add-action > details {
  min-width: 246px;
}
.court-add-action > details > summary {
  padding: 14px 20px;
  background: #176b46;
  color: white;
}
.setting-details {
  margin-top: 16px;
}
.setting-details > summary {
  padding: 10px 0;
  color: #176b46;
  font-weight: 600;
  cursor: pointer;
}
.setting-details[open] > summary {
  margin-bottom: 12px;
}
.setting-details > .button {
  margin-top: 14px;
}
.period-row {
  grid-template-columns: 90px 120px 120px repeat(var(--groups, 1), minmax(120px, 1fr)) 76px;
  overflow-x: auto;
}
.button {
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: #176b46;
  color: white;
}
.button.secondary {
  border: 1px solid #176b46;
  background: white;
  color: #176b46;
}
.button.danger {
  background: #8c493c;
}
.button:disabled {
  opacity: 0.5;
  cursor: default;
}
.divider {
  height: 1px;
  margin: 18px 0;
  background: #e5ebe7;
}
.empty {
  padding: 46px;
  text-align: center;
  color: #6b7b72;
}
.cancellation-card {
  min-height: 630px;
  display: flex;
  flex-direction: column;
}
.cancellation-card > .muted:first-of-type {
  margin-bottom: 36px;
}
.cancellation-timeline {
  padding: 19px 20px;
  border: 1px solid #dce7df;
  background: #eef7f1;
  font-size: 13px;
}
.cancellation-outcomes {
  display: grid;
  gap: 9px;
  margin-top: 9px;
}
.cancellation-outcomes > div {
  padding: 18px 20px;
  border: 1px solid #dce7df;
  font-size: 13px;
}
.cancellation-fields {
  display: grid;
  gap: 9px;
  margin-top: 9px;
}
.cancellation-fields label {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid #dce7df;
  color: #183528;
}
.cancellation-fields input {
  width: 68px;
  margin-left: 10px;
  padding: 6px;
  border: 0;
  border-bottom: 1px solid #ccd9d0;
  border-radius: 0;
  text-align: right;
}
.cancellation-unit {
  margin-left: 3px;
}
.cancellation-action {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}
.cancellation-action .button {
  min-width: 246px;
  border-radius: 0;
  text-align: left;
}
.weekly-summary {
  margin-top: 18px;
  border: 1px solid #dce7df;
  border-radius: 12px;
  overflow: hidden;
}
.weekly-summary-row {
  display: grid;
  grid-template-columns: 64px minmax(180px, 1fr) minmax(110px, auto) 16px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #e5ebe7;
  background: white;
  color: #183528;
  text-align: left;
}
.weekly-summary-row:last-child {
  border-bottom: 0;
}
.weekly-summary-row.selected {
  background: #e7f2eb;
}
.weekly-summary-row:disabled {
  cursor: default;
}
.weekly-summary-price,
.weekly-summary-arrow {
  color: #176b46;
  font-weight: 700;
}
.weekly-note {
  margin: 18px 0;
  padding: 14px;
  border-radius: 10px;
  background: #fff5df;
  color: #805d1e;
  font-size: 13px;
}
.weekly-editor {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5ebe7;
}
.weekly-editor > label {
  max-width: 320px;
  margin: 16px 0;
}
.special-group {
  max-width: 320px;
  margin-top: 16px;
}
.special-workspace {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}
.special-month-summary {
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid #dce7df;
  background: #eef7f1;
}
.special-date-rows {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.special-date-row {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid #dce7df;
  background: white;
  color: #183528;
  text-align: left;
}
.special-date-row.selected {
  border-color: #176b46;
}
.special-detail {
  margin-top: 10px;
  border-radius: 0;
}
.special-detail > summary {
  cursor: pointer;
}
.special-calendar-disclosure {
  margin-top: 14px;
}
.special-calendar-disclosure .special-calendar {
  max-width: 500px;
}
.special-calendar,
.special-detail {
  padding: 16px;
  border: 1px solid #dce7df;
  border-radius: 12px;
}
.special-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.special-calendar-head .button {
  padding: 7px 9px;
}
.special-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
}
.special-weekday {
  color: #607066;
  font-size: 12px;
}
.special-day {
  min-height: 48px;
  padding: 5px 2px;
  border: 0;
  border-radius: 9px;
  background: #f5f8f6;
  color: #183528;
}
.special-day small {
  display: block;
  font-size: 10px;
}
.special-day.saved {
  background: #fff1d6;
  color: #805d1e;
}
.special-day.selected {
  background: #176b46;
  color: white;
}
.special-day:disabled {
  cursor: default;
}
.special-detail .muted {
  margin: 10px 0 16px;
}
.special-detail > .button {
  width: 100%;
  margin-top: 18px;
}
.special-period-row {
  display: grid;
  grid-template-columns: 40px minmax(120px, 1fr) minmax(110px, 1fr);
  align-items: end;
  gap: 12px;
  margin-top: 12px;
}
.special-period-time {
  padding-bottom: 10px;
  white-space: nowrap;
}
.section-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
.section-actions > .button {
  min-width: 240px;
}
@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .sidebar {
    display: flex;
    overflow-x: auto;
    min-height: auto;
  }
  .sidebar .brand,
  .sidebar .venue-select {
    display: none;
  }
  .content {
    min-height: auto;
  }
  .nav {
    white-space: nowrap;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .court-row {
    grid-template-columns: 1fr;
  }
  .special-workspace {
    grid-template-columns: 1fr;
  }
  .special-period-row {
    grid-template-columns: 40px minmax(115px, 1fr) minmax(110px, 1fr);
  }
  .weekly-summary-row {
    grid-template-columns: 42px minmax(0, 1fr) 16px;
  }
  .weekly-summary-price {
    grid-column: 2;
  }
  .weekly-summary-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}
