:root {
  --bg: #f3f6f8;
  --panel: #ffffff;
  --line: #d7dee8;
  --text: #132033;
  --muted: #637083;
  --primary: #176b87;
  --primary-dark: #104d61;
  --accent: #c06014;
  --green: #188754;
  --red: #b42318;
  --yellow: #c69214;
  --service: #b45309;
  --blue-soft: #dff1f6;
  --green-soft: #e2f5e9;
  --red-soft: #fde8e5;
  --yellow-soft: #fff3cc;
  --service-soft: #ffedd5;
  --shadow: 0 14px 35px rgba(19, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body.auth-loading .login-screen,
body.auth-loading .sidebar,
body.auth-loading .app-shell,
body.login-mode .sidebar,
body.login-mode .app-shell,
body.authenticated .login-screen {
  display: none;
}

body.login-mode .login-screen,
body.authenticated .sidebar {
  display: flex;
}

body.authenticated .app-shell {
  display: block;
}

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

button {
  cursor: pointer;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 264px;
  background: #102536;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f4f7f9;
  color: #102536;
  font-weight: 800;
  font-size: 22px;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #bbcad6;
  font-size: 13px;
}

.login-screen {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(rgba(243, 246, 248, 0.86), rgba(243, 246, 248, 0.92)),
    url("assets/service/bedding.png") center / cover no-repeat;
}

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

.login-brand {
  color: var(--text);
}

.login-brand span {
  color: var(--muted);
}

.login-card h1 {
  margin: 0 0 5px;
  font-size: 28px;
}

.login-card p {
  margin: 0;
  color: var(--muted);
}

.login-error {
  border: 1px solid #f1ada4;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  border: 1px solid transparent;
  background: transparent;
  color: #dce8ef;
  text-align: left;
  padding: 11px 12px;
  border-radius: 7px;
}

.nav-item:hover,
.nav-item.active {
  background: #193a52;
  border-color: #2a5874;
  color: #fff;
}

.connection-box {
  margin-top: auto;
  display: grid;
  gap: 10px;
  color: #c9d7df;
  font-size: 13px;
  padding: 12px;
  border: 1px solid #28485e;
  border-radius: 8px;
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 9px;
}

.account-summary {
  border-top: 1px solid #28485e;
  padding-top: 10px;
  display: grid;
  gap: 6px;
}

.account-summary span {
  color: #98b5c5;
  font-size: 12px;
  font-weight: 800;
}

.account-summary strong {
  color: #fff;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.account-summary .secondary-button {
  width: 100%;
  margin-top: 2px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--yellow);
}

.status-dot.ok {
  background: var(--green);
}

.status-dot.error {
  background: var(--red);
}

.app-shell {
  margin-left: 264px;
  padding: 26px;
}

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

.topbar h1 {
  margin: 0 0 5px;
  font-size: 30px;
}

.topbar p {
  margin: 0;
  color: var(--muted);
}

.topbar-actions,
.panel-header,
.toolbar,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.danger-button,
.month-button,
.icon-button {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 14px;
  min-height: 40px;
  font-weight: 700;
}

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

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

.secondary-button,
.month-button {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.danger-button {
  background: #fff;
  border-color: #f3b3aa;
  color: var(--red);
}

.small-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.icon-button {
  width: 38px;
  padding: 0;
  background: #eef2f6;
  color: var(--text);
}

.notice {
  margin-bottom: 18px;
  padding: 13px 15px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.notice.error {
  border-color: #f1ada4;
  background: var(--red-soft);
}

.notice.success {
  border-color: #a9dfbf;
  background: var(--green-soft);
}

.selection-menu,
.reservation-day-menu,
.date-range-menu {
  position: fixed;
  z-index: 50;
  width: 210px;
  padding: 8px;
  border: 1px solid #9bb8c7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.selection-menu strong,
.reservation-day-menu strong,
.date-range-menu strong {
  display: block;
  padding: 7px 8px 9px;
  color: var(--muted);
  font-size: 12px;
}

.selection-menu button,
.reservation-day-menu button,
.date-range-menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 7px 8px;
  font-weight: 800;
}

.selection-menu button:hover,
.reservation-day-menu button:hover,
.date-range-menu button:hover {
  background: #eef7fa;
}

.hidden {
  display: none !important;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

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

.operations-panel {
  margin-bottom: 18px;
}

.section-gap {
  margin-top: 18px;
}

.availability-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.panel {
  padding: 18px;
}

.panel-header {
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-header h2 {
  margin: 0;
  font-size: 20px;
}

.toolbar {
  margin-bottom: 14px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto auto auto minmax(260px, 1fr) minmax(170px, 230px) auto auto;
  align-items: center;
}

.calendar-toolbar > * {
  min-width: 0;
}

.calendar-toolbar button,
.calendar-toolbar select {
  white-space: nowrap;
}

.calendar-toolbar input,
.calendar-toolbar select {
  width: 100%;
}

.toolbar input,
.toolbar select,
.list-search input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 9px 11px;
}

.toolbar input {
  min-width: min(360px, 100%);
}

.calendar-toolbar input {
  min-width: 0;
}

.list-search {
  margin-bottom: 14px;
}

.list-search input {
  width: 100%;
}

.calendar-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.calendar-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.calendar-table th,
.calendar-table td {
  border-bottom: 1px solid #e7ebf0;
  border-right: 1px solid #edf0f4;
  height: 42px;
  padding: 5px;
  text-align: center;
  font-size: 12px;
}

.calendar-table th:first-child,
.calendar-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 180px;
  width: 180px;
  text-align: left;
  background: #fff;
}

.calendar-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
}

.calendar-day-header {
  cursor: pointer;
  user-select: none;
}

.calendar-day-header:hover {
  background: #eef7fa;
}

.calendar-day-header.selected-header-range {
  background: #dff1f6;
  box-shadow: inset 0 0 0 2px var(--primary);
}

.calendar-day-header.selected-header-start,
.calendar-day-header.selected-header-end {
  background: #bfe4ee;
}

.calendar-add-room {
  width: 100%;
  min-height: 32px;
  border: 1px solid #9bb8c7;
  border-radius: 7px;
  background: #eef7fa;
  color: var(--primary-dark);
  font-weight: 800;
  text-align: center;
  padding: 6px 8px;
}

.calendar-add-room:hover {
  background: #dff1f6;
}

.room-cell strong,
.room-cell span {
  display: block;
}

.room-cell {
  cursor: pointer;
}

.room-cell:hover {
  background: #eef7fa !important;
}

.room-cell span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.day-cell {
  min-width: 36px;
  background: #fff;
  user-select: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.day-cell.today {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.day-cell.selected-range {
  background: #cfeef6;
  box-shadow: inset 0 0 0 2px var(--primary);
}

.day-cell.selected-start,
.day-cell.selected-end {
  background: #afddea;
}

.day-cell.reserved {
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px #8bc4d6;
}

.day-cell.reserved.has-service {
  background: var(--service-soft);
  box-shadow: inset 0 0 0 2px var(--service);
}

.day-cell.checked_in {
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px #91d2aa;
}

.day-cell.checked_in.has-service {
  background: #fce7c8;
  box-shadow: inset 0 0 0 2px var(--service);
}

.day-cell.completed {
  background: #e9edf5;
  box-shadow: inset 0 0 0 1px #cbd5e1;
}

.day-cell.completed.has-service {
  background: #f7dfbd;
  box-shadow: inset 0 0 0 2px var(--service);
}

.day-cell.cancelled {
  background: #f4f4f5;
  color: #94a3b8;
}

.day-cell.blocked {
  background: var(--yellow-soft);
  box-shadow: inset 0 0 0 1px #e0bd62;
}

.day-cell.split-cell {
  background: #fff;
  padding: 0;
}

.day-cell.split-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(71, 85, 105, 0.7) 50%, transparent calc(50% + 1px));
}

.day-half {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.day-half.departure {
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.day-half.arrival {
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.day-half.reserved {
  background: var(--blue-soft);
}

.day-half.reserved.has-service {
  background: var(--service-soft);
}

.day-half.checked_in {
  background: var(--green-soft);
}

.day-half.checked_in.has-service {
  background: #fce7c8;
}

.day-half.completed {
  background: #e9edf5;
}

.day-half.completed.has-service {
  background: #f7dfbd;
}

.day-half.cancelled {
  background: #f4f4f5;
}

.day-half.has-service::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--service);
  box-shadow: 0 0 0 2px #fff;
}

.day-half.departure.has-service::after {
  top: 6px;
  left: 6px;
}

.day-half.arrival.has-service::after {
  right: 6px;
  bottom: 6px;
}

.day-half.empty-half:hover {
  background: rgba(23, 107, 135, 0.16);
}

.cell-chip {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}

.legend i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: -2px;
}

.legend-free {
  background: #fff;
  border: 1px solid var(--line);
}

.legend-reserved {
  background: var(--blue-soft);
}

.legend-checked-in {
  background: var(--green-soft);
}

.legend-completed {
  background: #e9edf5;
}

.legend-service {
  background: var(--service-soft);
  border: 2px solid var(--service);
}

.legend-block {
  background: var(--yellow-soft);
}

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

.compact-list {
  gap: 8px;
}

.list-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  display: grid;
  gap: 8px;
}

.list-card.clickable:hover {
  border-color: #9bb8c7;
}

.list-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.list-card h3 {
  margin: 0;
  font-size: 16px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 13px;
}

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

.action-button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  color: var(--text);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
}

.action-button:hover {
  border-color: #8fb2c1;
  background: #eef7fa;
}

.danger-action {
  border-color: #f3b3aa;
  color: var(--red);
}

.danger-action:hover {
  border-color: #e27b6d;
  background: var(--red-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 9px;
  background: #eef2f6;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.badge.reserved {
  background: var(--blue-soft);
  color: #155e75;
}

.badge.checked_in {
  background: var(--green-soft);
  color: #166534;
}

.badge.completed {
  background: #e9edf5;
  color: #475569;
}

.badge.cancelled {
  background: var(--red-soft);
  color: var(--red);
}

.modal {
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  border: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

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

.wide-modal {
  width: min(680px, calc(100vw - 24px));
}

.schedule-modal {
  width: min(1180px, calc(100vw - 24px));
}

.month-picker-modal {
  width: min(520px, calc(100vw - 24px));
}

.modal-card {
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.modal-card > label,
.modal-card > .form-grid,
.modal-card > .checkbox-row {
  margin-left: 18px;
  margin-right: 18px;
}

.month-picker-controls {
  margin: 0 18px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
}

.month-picker-controls strong {
  text-align: center;
  font-size: 16px;
}

.icon-nav-button {
  padding-left: 0;
  padding-right: 0;
}

.month-picker-grid {
  margin: 0 18px 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.month-picker-option {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 58px;
  font-weight: 900;
  color: var(--text);
}

.month-picker-option:hover {
  border-color: #85abc0;
  background: #eef7fa;
}

.month-picker-option.active {
  border-color: var(--primary);
  background: #e6f6fb;
  color: #155e75;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.modal-header h2 {
  margin: 0;
}

.modal-context {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.modal-card *,
.form-grid,
label {
  min-width: 0;
}

label {
  display: grid;
  gap: 6px;
  color: #314156;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 9px 10px;
  min-height: 40px;
}

textarea {
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
}

.modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  justify-content: flex-end;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 12px 18px;
  margin-top: auto;
  box-shadow: 0 -10px 25px rgba(15, 23, 42, 0.06);
}

.modal-actions .danger-button {
  margin-right: auto;
}

.empty-state {
  color: var(--muted);
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.settings-form {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.settings-subsection {
  display: grid;
  gap: 12px;
}

.settings-subsection h3 {
  margin: 0;
  font-size: 16px;
}

.settings-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  padding: 12px;
  line-height: 1.45;
}

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

.weekday-options {
  margin: 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.weekday-options legend {
  color: #314156;
  font-size: 13px;
  font-weight: 800;
  padding: 0 4px;
}

.weekday-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.weekday-options input {
  width: auto;
  min-height: auto;
}

.service-options {
  margin: 0 18px;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-options legend {
  margin-bottom: 9px;
  color: #314156;
  font-size: 13px;
  font-weight: 800;
}

.service-option {
  display: block;
}

.service-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-option span {
  min-height: 154px;
  display: grid;
  grid-template-rows: 112px minmax(32px, auto);
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text);
  padding: 8px;
  overflow: hidden;
}

.service-option img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 7px;
  background: #eef2f6;
}

.service-option em {
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  text-align: center;
}

.service-option input:checked + span {
  border-color: var(--service);
  background: var(--service-soft);
  box-shadow: inset 0 0 0 1px var(--service);
}

.service-option input:checked + span img {
  box-shadow: 0 0 0 3px var(--service);
}

.service-option:hover span {
  border-color: #9bb8c7;
  background: #eef7fa;
}

.service-assignment {
  margin: 0 18px;
}

.staff-picker-button {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  text-align: left;
  gap: 10px;
}

.staff-picker-icon {
  width: 38px;
  height: 38px;
  position: relative;
  display: block;
  border-radius: 999px;
  background: #eef7fa;
  color: var(--primary-dark);
}

.staff-picker-icon::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--primary-dark);
}

.staff-picker-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 8px;
  width: 20px;
  height: 12px;
  border-radius: 999px 999px 7px 7px;
  background: var(--primary-dark);
}

.staff-picker-button strong,
.staff-picker-button small {
  display: block;
}

.staff-picker-button small {
  margin-top: 2px;
  color: var(--muted);
}

.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.schedule-legend i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: -2px;
}

.slot-free {
  background: var(--green-soft);
  border: 1px solid #91d2aa;
}

.slot-busy {
  background: var(--red-soft);
  border: 1px solid #eaa39a;
}

.slot-off {
  background: #eef2f6;
  border: 1px solid #cbd5e1;
}

.staff-schedule-wrap {
  margin: 0 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.staff-schedule-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  font-size: 12px;
}

.staff-schedule-table th,
.staff-schedule-table td {
  border-right: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
  padding: 5px;
  text-align: center;
}

.staff-schedule-table th:first-child,
.staff-schedule-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 170px;
  width: 170px;
  background: #fff;
  text-align: left;
}

.staff-schedule-table th {
  background: #f8fafc;
  color: #475569;
}

.schedule-person strong,
.schedule-person span {
  display: block;
}

.schedule-person span {
  color: var(--muted);
  margin-top: 3px;
}

.slot-parts {
  display: grid;
  grid-template-columns: repeat(6, minmax(9px, 1fr));
  gap: 2px;
}

.slot-button {
  min-width: 0;
  width: 100%;
  height: 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0;
}

.slot-button.free {
  background: var(--green-soft);
  border-color: #91d2aa;
}

.slot-button.free:hover {
  background: #bde8cc;
  border-color: var(--green);
}

.slot-button.busy {
  background: var(--red-soft);
  border-color: #eaa39a;
  cursor: not-allowed;
}

.slot-button.off {
  background: #eef2f6;
  border-color: #d7dee8;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: auto;
    min-height: auto;
  }

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

  .app-shell {
    margin-left: 0;
    padding: 18px;
  }

  .topbar,
  .two-column {
    display: block;
  }

  .topbar-actions {
    margin-top: 14px;
  }

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

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

  .service-options {
    grid-template-columns: 1fr;
  }

  .two-column .panel + .panel {
    margin-top: 18px;
  }
}

@media (max-width: 620px) {
  .nav,
  .stats-grid,
  .availability-form,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar h1 {
    font-size: 25px;
  }
}
