:root {
  --background: #f8fafc;
  --foreground: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --card: rgba(255, 255, 255, 0.92);
  --card-strong: #ffffff;
  --primary: #00599d;
  --primary-foreground: #f8fafc;
  --secondary: #eef6fb;
  --secondary-foreground: #0b3d66;
  --accent: #d8ebf8;
  --accent-foreground: #00599d;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --ring: rgba(0, 89, 157, 0.16);
  --shadow: 0 18px 40px rgba(0, 89, 157, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--foreground);
  background:
    radial-gradient(circle at top, rgba(0, 89, 157, 0.14), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #edf5fb 100%);
}

a {
  color: inherit;
}

.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.app-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 252, 0.8);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.5rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.app-brand {
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 89, 157, 0.06);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--secondary-foreground);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.nav-link:hover {
  background: rgba(0, 89, 157, 0.08);
  border-color: rgba(0, 89, 157, 0.12);
}

.nav-link-active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(0, 89, 157, 0.22);
}

.nav-spacer {
  margin-left: auto;
}

.page-shell {
  padding: 1.5rem 0 2rem;
}

.card {
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.card-strong {
  background: var(--card-strong);
}

.card-pad {
  padding: 1.25rem;
}

.page-title {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
}

.section-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
}

.page-subtitle {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-foreground);
}

.hero-grid,
.account-grid,
.auth-grid {
  display: grid;
  gap: 1rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
}

.account-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 10px 24px rgba(0, 89, 157, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--secondary-foreground);
  border-color: var(--border);
}

.btn-destructive {
  background: rgba(220, 38, 38, 0.08);
  color: var(--destructive);
  border-color: rgba(220, 38, 38, 0.15);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  min-height: 2rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 0.65rem;
}

.field,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  color: var(--foreground);
  border-radius: 0.8rem;
  padding: 0.72rem 0.9rem;
  font-size: 0.92rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.field:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(0, 89, 157, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 89, 157, 0.12);
}

.form-stack {
  display: grid;
  gap: 0.85rem;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.muted {
  color: var(--muted);
}

.notice,
.error,
.success {
  border-radius: 0.85rem;
  padding: 0.8rem 0.95rem;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.notice {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.error {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.success {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.stat-list {
  display: grid;
  gap: 0.75rem;
}

.stat-item {
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid var(--border);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.stat-value {
  font-size: 1rem;
  font-weight: 600;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.85);
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  vertical-align: top;
  text-align: left;
}

.data-table thead th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(248, 250, 252, 0.92);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge-confirmed {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.badge-cancelled {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.badge-finished {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.action-stack {
  display: grid;
  gap: 0.5rem;
}

.schedule-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.slot-card {
  display: grid;
  gap: 0.6rem;
}

.slot-meta {
  display: grid;
  gap: 0.15rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.schedule-slot {
  width: 100%;
  display: grid;
  gap: 0.25rem;
  text-align: left;
  padding: 0.75rem 0.8rem;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

button.schedule-slot {
  cursor: pointer;
}

button.schedule-slot:hover {
  transform: translateY(-1px);
}

.schedule-slot-state {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule-slot-label {
  font-size: 0.88rem;
  font-weight: 600;
}

.schedule-slot-available {
  background: #effaf3;
  border-color: #b7e4c7;
  box-shadow: 0 10px 20px rgba(22, 101, 52, 0.08);
}

.schedule-slot-available .schedule-slot-state {
  color: #166534;
}

.schedule-slot-available .schedule-slot-label {
  color: #166534;
}

.schedule-slot-booked {
  background: #fef2f2;
  border-color: #fecaca;
  box-shadow: 0 10px 20px rgba(153, 27, 27, 0.08);
}

.schedule-slot-booked .schedule-slot-state,
.schedule-slot-booked .schedule-slot-label {
  color: #991b1b;
}

.schedule-slot-booked-self {
  background: #dcfce7;
  border-color: #86efac;
  box-shadow: 0 10px 20px rgba(22, 101, 52, 0.1);
}

.schedule-slot-booked-self .schedule-slot-state,
.schedule-slot-booked-self .schedule-slot-label {
  color: #166534;
}

.schedule-slot-booked-other {
  background: #fef2f2;
  border-color: #fecaca;
  box-shadow: 0 10px 20px rgba(153, 27, 27, 0.08);
}

.schedule-slot-booked-other .schedule-slot-state,
.schedule-slot-booked-other .schedule-slot-label {
  color: #991b1b;
}

.schedule-slot-blocked {
  background: #fffbeb;
  border-color: #fde68a;
}

.schedule-slot-blocked .schedule-slot-state,
.schedule-slot-blocked .schedule-slot-label {
  color: #92400e;
}

.schedule-slot-muted {
  background: rgba(248, 250, 252, 0.85);
  border-color: var(--border);
}

.schedule-slot-muted .schedule-slot-state,
.schedule-slot-muted .schedule-slot-label {
  color: var(--muted);
}

.schedule-detail-card {
  display: grid;
  gap: 0.85rem;
}

.schedule-detail-header {
  display: grid;
  gap: 0.45rem;
}

.schedule-detail-header .section-title {
  margin-bottom: 0;
}

.schedule-detail-list {
  display: grid;
  gap: 0.75rem;
}

.schedule-detail-list dt {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.schedule-detail-list dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.schedule-modal-open {
  overflow: hidden;
}

.schedule-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.schedule-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.schedule-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  margin: 1rem auto;
}

.schedule-modal-header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.schedule-modal-close {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  color: var(--secondary-foreground);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.booking-picker-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.45rem;
  max-height: 16rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(248, 250, 252, 0.7);
}

.booking-picker-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  font-size: 0.9rem;
  border-radius: 0.6rem;
  padding: 0.35rem 0.4rem;
  cursor: pointer;
}

.booking-picker-item:hover {
  background: rgba(0, 89, 157, 0.07);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  gap: 1rem;
  align-items: stretch;
}

.dashboard-main-card {
  display: grid;
  gap: 0.75rem;
  min-height: 0;
}

.dashboard-main-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.dashboard-action-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  min-height: 0;
}

.dashboard-overview-panel {
  display: grid;
  align-content: start;
  min-height: 0;
}

.table-shell-compact {
  background: rgba(248, 250, 252, 0.88);
}

.data-table-compact {
  min-width: 390px;
  font-size: 0.74rem;
}

.data-table-compact th,
.data-table-compact td {
  padding: 0.3rem 0.38rem;
}

.dashboard-overview-table th:not(:first-child),
.dashboard-overview-table td:not(:first-child) {
  text-align: center;
}

.dashboard-overview-table th:first-child,
.dashboard-overview-table td:first-child {
  white-space: nowrap;
}

.dashboard-overview-table thead th {
  font-weight: 600;
}

.dashboard-mini-slot {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  text-decoration: none;
  border-radius: 0.24rem;
  border: 1px solid transparent;
  vertical-align: middle;
}

.dashboard-mini-slot:hover {
  transform: translateY(-1px);
}

.dashboard-mini-slot-open {
  background: #effaf3;
  border-color: #b7e4c7;
  color: #166534;
}

.dashboard-mini-slot-booked {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.dashboard-mini-slot-booked-self {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.dashboard-mini-slot-blocked {
  background: rgba(248, 250, 252, 0.92);
  border-color: #cbd5e1;
  color: #475569;
}

.dashboard-date-field {
  font-size: 1rem;
  min-height: 3rem;
}

.dashboard-calendar-panel {
  display: grid;
  gap: 0.75rem;
  min-height: 0;
}

.dashboard-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dashboard-calendar-title {
  margin: 0;
  font-size: 1.2rem;
  text-align: center;
}

.dashboard-calendar-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--secondary-foreground);
  font-weight: 700;
}

.dashboard-calendar-weekdays,
.dashboard-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.dashboard-calendar-weekdays span {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.dashboard-calendar-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  border-radius: 0.8rem;
  text-decoration: none;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.95);
  color: var(--foreground);
  font-weight: 500;
}

.dashboard-calendar-day-muted {
  color: #94a3b8;
  background: rgba(248, 250, 252, 0.7);
}

.dashboard-calendar-day-selected {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 10px 20px rgba(0, 89, 157, 0.2);
}

.dashboard-calendar-day-today {
  border-color: rgba(0, 89, 157, 0.35);
}

.dashboard-legend {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  padding-top: 0.15rem;
}

.dashboard-legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--secondary-foreground);
  font-size: 0.9rem;
}

.dashboard-legend-swatch {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.dashboard-legend-open {
  background: #effaf3;
  border-color: #b7e4c7;
}

.dashboard-legend-booked {
  background: #fff7ed;
  border-color: #fdba74;
}

.dashboard-legend-booked-self {
  background: #dbeafe;
  border-color: #93c5fd;
}

.dashboard-legend-blocked {
  background: rgba(248, 250, 252, 0.92);
  border-color: #cbd5e1;
}

.dashboard-side-column {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-content: stretch;
  min-height: 0;
}

.dashboard-content-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.25rem;
  min-height: 0;
  overflow: hidden;
}

.dashboard-content-body {
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.dashboard-content-list {
  display: grid;
  gap: 0.75rem;
}

.dashboard-content-link {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: rgba(248, 250, 252, 0.88);
  text-decoration: none;
}

.dashboard-content-link:hover {
  border-color: rgba(0, 89, 157, 0.25);
  background: rgba(239, 246, 251, 0.92);
}

.dashboard-content-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.content-detail-card {
  max-width: 900px;
}

.content-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.content-markdown {
  color: var(--foreground);
  line-height: 1.7;
  font-size: 1rem;
  max-width: 72ch;
}

.content-markdown > :first-child {
  margin-top: 0;
}

.content-markdown > :last-child {
  margin-bottom: 0;
}

.content-markdown p,
.content-markdown ul,
.content-markdown ol,
.content-markdown blockquote,
.content-markdown pre,
.content-markdown table,
.content-markdown hr {
  margin: 0 0 1rem;
}

.content-markdown h1,
.content-markdown h2,
.content-markdown h3,
.content-markdown h4 {
  line-height: 1.25;
  margin: 1.75rem 0 0.75rem;
  font-weight: 700;
}

.content-markdown h1 { font-size: 1.9rem; }
.content-markdown h2 { font-size: 1.55rem; }
.content-markdown h3 { font-size: 1.25rem; }
.content-markdown h4 { font-size: 1.08rem; }

.content-markdown ul,
.content-markdown ol {
  padding-left: 1.4rem;
}

.content-markdown ul {
  list-style-type: disc;
}

.content-markdown ol {
  list-style-type: decimal;
}

.content-markdown ul ul {
  list-style-type: circle;
}

.content-markdown ol ol {
  list-style-type: lower-alpha;
}

.content-markdown li + li {
  margin-top: 0.35rem;
}

.content-markdown li > ul,
.content-markdown li > ol {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.content-markdown blockquote {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--border);
  background: rgba(248, 250, 252, 0.88);
  color: var(--muted);
}

.content-markdown code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 0.25rem;
  padding: 0.1rem 0.35rem;
}

.content-markdown pre {
  overflow-x: auto;
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.06);
}

.content-markdown pre code {
  background: transparent;
  padding: 0;
}

.content-markdown hr {
  border: 0;
  border-top: 1px solid var(--border);
}

.content-markdown img {
  max-width: 100%;
  height: auto;
}

.content-markdown table {
  width: 100%;
  border-collapse: collapse;
}

.content-markdown th,
.content-markdown td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.content-markdown th {
  background: rgba(248, 250, 252, 0.88);
}

.content-markdown a {
  color: var(--accent-foreground);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.content-preview-panel {
  min-height: 28rem;
  max-height: 36rem;
  overflow: auto;
}

.content-preview-panel.content-markdown {
  max-width: none;
}

.content-preview-warning {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 0.6rem;
  background: rgba(254, 243, 199, 0.75);
  color: #92400e;
  font-size: 0.9rem;
}

.content-preview-warning p {
  margin: 0;
}

.content-last-modified {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.helper-link {
  color: var(--accent-foreground);
  text-decoration: none;
  font-weight: 500;
}

.helper-link:hover {
  text-decoration: underline;
}

.schedule-table th,
.schedule-table td {
  padding: 0.65rem 0.7rem;
}

.schedule-table .schedule-slot {
  padding: 0.55rem 0.65rem;
}

.schedule-table .schedule-slot-label {
  font-size: 0.82rem;
}

.weekly-schedule-shell,
.weekly-overview-shell {
  overflow: auto;
}

.weekly-schedule-table {
  min-width: 1500px;
}

.weekly-overview-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.weekly-overview-table .dashboard-mini-slot {
  display: block;
  width: 100%;
  height: 1.35rem;
  min-height: 1.35rem;
  border-radius: 0.3rem;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.weekly-schedule-table .schedule-slot {
  min-height: 5.1rem;
}

.weekly-day-today {
  color: var(--secondary-foreground);
  background: #eff6ff !important;
}

@media (max-width: 900px) {
  .hero-grid,
  .account-grid,
  .dashboard-shell,
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-side-column {
    grid-template-rows: auto;
  }
}

@media (min-width: 901px) {
  .dashboard-shell {
    min-height: calc(100vh - 8rem);
  }

  .dashboard-main-card,
  .dashboard-side-column {
    max-height: calc(100vh - 8rem);
  }

  .dashboard-main-card {
    overflow: hidden;
  }

  .dashboard-overview-panel .table-shell,
  .dashboard-calendar-panel {
    overflow: auto;
  }
}

@media (max-width: 640px) {
  .app-nav {
    align-items: stretch;
  }

  .nav-spacer {
    margin-left: 0;
    width: 100%;
  }

  .nav-spacer form,
  .nav-spacer a,
  .nav-spacer button {
    width: 100%;
  }

  .page-title {
    font-size: 1.45rem;
  }

  .card-pad {
    padding: 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .data-table:not(.weekly-overview-table) {
    min-width: 560px;
  }

  .weekly-overview-table {
    min-width: 0 !important;
  }

  .dashboard-main-header,
  .dashboard-overview-header {
    flex-direction: column;
  }

  .dashboard-action-row {
    width: 100%;
    justify-content: stretch;
  }

  .dashboard-action-row .btn {
    width: 100%;
  }

  .dashboard-calendar-day {
    min-height: 2rem;
  }

  .schedule-modal-dialog {
    width: calc(100% - 1rem);
    margin: 0.5rem auto;
    max-height: calc(100vh - 1rem);
  }
}
