﻿/* Admin register: dense, tabular, app-like. Same palette as the site, used
   harder. Scoped under .admin so nothing leaks into the marketing pages. */

.admin {
  --a-panel: #fffdfa;
  --a-panel-alt: #f7f2ea;
  --a-line: #e4dbcd;
  --a-line-strong: #d3c7b6;
  --a-ink: #12263f;
  --a-ink-soft: #5a6b7e;
  --a-ink-faint: #8b99a8;
  --a-accent: #b3262e;
  --a-amber: #d98a2b;

  --a-ok-bg: #eaf4ee;
  --a-ok-ink: #1f5c41;
  --a-warn-bg: #fdf1e0;
  --a-warn-ink: #8a5a12;
  --a-bad-bg: #fbeceb;
  --a-bad-ink: #8d1b22;
  --a-neutral-bg: #eef1f4;
  --a-neutral-ink: #3f5165;

  --a-radius: 6px;
  --a-radius-sm: 4px;
  --a-row: 36px;

  min-height: 100dvh;
  background: var(--surface);
  color: var(--a-ink);
  font-size: 13.5px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.admin h1,
.admin h2,
.admin h3 {
  font-family: var(--font-text);
  letter-spacing: -0.005em;
  font-weight: 600;
}

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

.a-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding-inline: 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--a-line);
}

.a-topbar__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--a-ink);
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}

.a-topbar__brand img {
  width: 26px;
  height: 26px;
}

.a-topbar__brand span {
  color: var(--a-ink-soft);
  font-weight: 500;
}

.a-topbar__spacer {
  flex: 1;
}

.a-burger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--a-line-strong);
  border-radius: var(--a-radius-sm);
  background: var(--a-panel);
  color: var(--a-ink);
  cursor: pointer;
}

.a-office {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding-inline: 8px;
  border: 1px solid var(--a-line-strong);
  border-radius: var(--a-radius-sm);
  background: var(--a-panel);
  font-size: 12.5px;
  color: var(--a-ink);
}

.a-seg {
  display: inline-flex;
  border: 1px solid var(--a-line-strong);
  border-radius: var(--a-radius-sm);
  overflow: hidden;
  background: var(--a-panel);
}

.a-seg button {
  height: 30px;
  padding-inline: 10px;
  border: 0;
  border-right: 1px solid var(--a-line);
  background: none;
  font: inherit;
  font-size: 12px;
  color: var(--a-ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease;
}

.a-seg button:last-child {
  border-right: 0;
}

.a-seg button:hover {
  background: var(--a-panel-alt);
  color: var(--a-ink);
}

.a-seg button[aria-pressed='true'] {
  background: var(--a-ink);
  color: var(--paper);
}

.a-head__title:focus {
  outline: none;
}

.a-office select {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  height: 30px;
  padding-right: 4px;
  cursor: pointer;
}

.a-body {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 100dvh;
  padding-top: 56px;
}

.a-side {
  position: sticky;
  top: 56px;
  height: calc(100dvh - 56px);
  overflow-y: auto;
  padding: 12px 10px 24px;
  background: var(--paper);
  border-right: 1px solid var(--a-line);
}

.a-side__group {
  padding: 14px 10px 6px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a-ink-faint);
  font-weight: 600;
}

.a-side a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding-inline: 10px;
  border-radius: var(--a-radius-sm);
  color: var(--a-ink);
  text-decoration: none;
  font-size: 13.5px;
}

.a-side a:hover {
  background: var(--a-panel-alt);
}

.a-side a[aria-current='page'] {
  background: var(--a-ink);
  color: var(--paper);
}

.a-side a[aria-current='page'] svg {
  opacity: 0.9;
}

.a-side svg {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: 0.65;
}

.a-side a[aria-current='page'] svg {
  opacity: 1;
}

.a-main {
  min-width: 0;
  padding: 22px clamp(16px, 2.4vw, 30px) 72px;
}

.a-scrim {
  display: none;
}

/* ------------------------------------------------------------ page header */

.a-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.a-head__title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}

.a-head__sub {
  margin: 4px 0 0;
  color: var(--a-ink-soft);
  font-size: 12.5px;
}

.a-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding-inline: 11px;
  border: 1px solid var(--a-line-strong);
  border-radius: var(--a-radius-sm);
  background: var(--a-panel);
  color: var(--a-ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.a-btn:hover {
  background: var(--a-panel-alt);
}

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

.a-btn svg {
  width: 15px;
  height: 15px;
}

.a-btn--primary {
  background: var(--a-ink);
  border-color: var(--a-ink);
  color: var(--paper);
}

.a-btn--primary:hover {
  background: #1c3550;
}

.a-btn--danger {
  background: var(--a-bad-bg);
  border-color: #f0cfcc;
  color: var(--a-bad-ink);
}

.a-btn--danger:hover {
  background: #f7dedc;
}

.a-btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--a-ink-soft);
}

.a-btn--ghost:hover {
  background: var(--a-panel-alt);
  color: var(--a-ink);
}

.a-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.a-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--a-line-strong);
  border-radius: var(--a-radius-sm);
  background: var(--a-panel);
  color: var(--a-ink);
  cursor: pointer;
}

.a-icon-btn:hover:not(:disabled) {
  background: var(--a-panel-alt);
}

.a-icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.a-icon-btn svg {
  width: 15px;
  height: 15px;
}

.a-field {
  display: grid;
  gap: 4px;
}

.a-field label,
.a-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--a-ink-soft);
}

.a-field input,
.a-field select,
.a-field textarea,
.a-select {
  height: 32px;
  padding-inline: 8px;
  border: 1px solid var(--a-line-strong);
  border-radius: var(--a-radius-sm);
  background: var(--a-panel);
  color: var(--a-ink);
  font: inherit;
  font-size: 13px;
}

.a-field textarea {
  height: auto;
  min-height: 72px;
  padding-block: 6px;
  resize: vertical;
}

.a-field input:focus,
.a-field select:focus,
.a-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.a-hint {
  font-size: 11.5px;
  color: var(--a-ink-faint);
}

/* ------------------------------------------------------------------ panels */

.a-card {
  background: var(--a-panel);
  border: 1px solid var(--a-line);
  border-radius: 8px;
}

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

.a-card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.a-card__body {
  padding: 14px;
}

.a-cols {
  display: grid;
  gap: 16px;
}

@media (min-width: 1180px) {
  .a-cols--calendar {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
  }
}

/* ----------------------------------------------------------------- KPIs */

.a-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.a-kpi {
  padding: 12px 14px;
  background: var(--a-panel);
  border: 1px solid var(--a-line);
  border-radius: 8px;
}

.a-kpi__label {
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--a-ink-faint);
  font-weight: 600;
}

.a-kpi__value {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.a-kpi__meta {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--a-ink-soft);
}

.a-chart {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 52px;
}

.a-chart__bar {
  flex: 1;
  display: grid;
  align-content: end;
  gap: 3px;
  text-align: center;
}

.a-chart__fill {
  width: 100%;
  background: var(--a-ink);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
}

.a-chart__label {
  font-size: 9.5px;
  color: var(--a-ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- calendar */

.a-cal {
  padding: 12px 14px 14px;
}

.a-cal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.a-cal__month {
  font-size: 14px;
  font-weight: 600;
  min-width: 140px;
}

.a-cal__spacer {
  flex: 1;
}

.a-cal__legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--a-ink-soft);
}

.a-cal__legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.a-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.a-dot--1 {
  background: var(--a-ink);
}

.a-dot--2 {
  background: var(--a-amber);
}

.a-cal table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
}

.a-cal th {
  padding: 2px 0 4px;
  border: 0;
  background: none;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a-ink-faint);
  font-weight: 600;
  text-align: center;
}

.a-cal td {
  padding: 0;
  border: 0;
}

.a-day {
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  width: 100%;
  min-height: 62px;
  padding: 5px 6px;
  border: 1px solid transparent;
  border-radius: var(--a-radius);
  background: var(--a-panel-alt);
  font: inherit;
  font-size: 12.5px;
  color: var(--a-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.a-day:hover:not([aria-disabled='true']) {
  border-color: var(--a-ink);
}

.a-day[aria-disabled='true'] {
  background: transparent;
  color: var(--a-ink-faint);
  cursor: default;
}

.a-day.is-outside {
  visibility: hidden;
}

.a-day.is-past {
  opacity: 0.55;
}

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

.a-day.is-selected {
  background: var(--a-ink);
  border-color: var(--a-ink);
  color: var(--paper);
}

.a-day.is-selected .a-day__count {
  background: rgba(255, 255, 255, 0.16);
  color: var(--paper);
}

.a-day__num {
  font-weight: 600;
}

.a-day__count {
  justify-self: start;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--a-panel);
  color: var(--a-ink-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.a-day__dots {
  display: flex;
  gap: 3px;
}

/* ----------------------------------------------------------------- agenda */

.a-agenda__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--a-line);
}

.a-agenda__date {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.a-agenda__list {
  max-height: min(58vh, 520px);
  overflow-y: auto;
}

.a-slot-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 7px 14px;
  border: 0;
  border-bottom: 1px solid var(--a-line);
  background: none;
  font: inherit;
  font-size: 12.5px;
  color: var(--a-ink);
  text-align: left;
  cursor: pointer;
}

.a-slot-row:hover:not(:disabled) {
  background: var(--a-panel-alt);
}

.a-slot-row:disabled {
  cursor: default;
  color: var(--a-ink-faint);
}

.a-slot-row__time {
  font-variant-numeric: tabular-nums;
  color: var(--a-ink-soft);
}

.a-slot-row__name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a-slot-row__service {
  display: block;
  font-weight: 400;
  color: var(--a-ink-soft);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a-slot-row__marker {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.a-empty {
  padding: 20px 14px;
  color: var(--a-ink-soft);
  font-size: 12.5px;
}

/* ------------------------------------------------------------------- pill */

.a-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.a-pill--booked {
  background: var(--a-warn-bg);
  color: var(--a-warn-ink);
}

.a-pill--confirmed,
.a-pill--completed {
  background: var(--a-ok-bg);
  color: var(--a-ok-ink);
}

.a-pill--no_show {
  background: var(--a-bad-bg);
  color: var(--a-bad-ink);
}

.a-pill--cancelled {
  background: var(--a-neutral-bg);
  color: var(--a-neutral-ink);
}

/* ----------------------------------------------------------------- drawer */

/* Login page hides the card while it checks for an existing session. */
html[data-auth-check='pending'] .a-card[data-login] {
  visibility: hidden;
}

.a-drawer {
  width: min(440px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--a-line);
  background: var(--a-panel);
  color: var(--a-ink);
  font-size: 13px;
}

.a-drawer::backdrop {
  background: rgba(18, 38, 63, 0.35);
}

.a-drawer__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.a-drawer__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.a-drawer__ref {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--a-ink-faint);
}

.a-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
}

.a-drawer__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--a-line);
  background: var(--a-panel-alt);
}

.a-dl {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 7px 12px;
  margin: 0;
}

.a-dl dt {
  color: var(--a-ink-faint);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.a-dl dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.a-dl a {
  color: var(--a-ink);
}

.a-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--a-amber);
  background: var(--a-panel-alt);
  font-size: 12.5px;
}

@media (max-width: 720px) {
  /* Login page hides the card while it checks for an existing session. */
html[data-auth-check='pending'] .a-card[data-login] {
  visibility: hidden;
}

.a-drawer {
    width: 100vw;
    height: auto;
    max-height: 88dvh;
    margin: auto 0 0;
    border-left: 0;
    border-top: 1px solid var(--a-line);
    border-radius: 12px 12px 0 0;
  }
}

/* ------------------------------------------------------------------ table */

.a-table-wrap {
  overflow-x: auto;
}

.a-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}

.a-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 12px;
  background: var(--a-panel-alt);
  border-bottom: 1px solid var(--a-line);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a-ink-faint);
  text-align: left;
  white-space: nowrap;
}

.a-table td {
  height: var(--a-row);
  padding: 6px 12px;
  border-bottom: 1px solid var(--a-line);
  white-space: nowrap;
}

.a-table tbody tr:hover {
  background: var(--a-panel-alt);
}

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

.a-table select {
  height: 28px;
  font-size: 12.5px;
}

/* ------------------------------------------------------------------ toasts */

.a-toasts {
  position: fixed;
  top: 66px;
  right: 16px;
  z-index: 120;
  display: grid;
  gap: 8px;
  max-width: 340px;
}

.a-toast {
  padding: 9px 12px;
  border: 1px solid var(--a-line);
  border-left: 3px solid var(--a-ok-ink);
  border-radius: var(--a-radius-sm);
  background: var(--a-panel);
  box-shadow: 0 6px 18px rgba(18, 38, 63, 0.12);
  font-size: 12.5px;
  animation: a-toast-in 180ms ease both;
}

.a-toast--error {
  border-left-color: var(--a-bad-ink);
}

@keyframes a-toast-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* ------------------------------------------------------------------- week */

.a-week {
  display: grid;
  grid-template-columns: 56px repeat(7, minmax(0, 1fr));
  border: 1px solid var(--a-line);
  border-radius: 8px;
  background: var(--a-panel);
  overflow: hidden;
}

.a-week__head {
  display: contents;
}

.a-week__dayhead {
  padding: 6px 4px;
  text-align: center;
  border-bottom: 1px solid var(--a-line);
  border-left: 1px solid var(--a-line);
  font-size: 11px;
  color: var(--a-ink-soft);
  line-height: 1.2;
}

.a-week__dayname {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a-ink-faint);
}

.a-week__dayhead strong {
  display: block;
  font-size: 13px;
  color: var(--a-ink);
}

.a-week__dayhead.is-today strong,
.a-week__dayhead.is-today .a-week__dayname {
  color: var(--a-accent);
}

.a-week__gutter {
  border-bottom: 1px solid var(--a-line);
}

.a-week__hours {
  position: relative;
  border-right: 1px solid var(--a-line);
}

.a-week__hour {
  height: 72px;
  padding-right: 6px;
  text-align: right;
  font-size: 10px;
  color: var(--a-ink-faint);
  transform: translateY(-6px);
}

.a-week__col {
  position: relative;
  border-left: 1px solid var(--a-line);
  min-height: 100%;
}

.a-week__line {
  position: relative;
  height: 72px;
  border-bottom: 1px solid var(--a-line);
}

/* Half-hour guide, so 30-minute appointments have a line to sit on. */
.a-week__line::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px dotted var(--a-line-strong);
  opacity: 0.6;
}

.a-week__event {
  position: absolute;
  z-index: 1;
  left: 3px;
  right: 3px;
  display: grid;
  align-content: start;
  gap: 1px;
  padding: 4px 6px;
  border: 1px solid var(--a-line);
  border-left: 3px solid var(--a-ink);
  border-radius: var(--a-radius-sm);
  background: var(--a-panel-alt);
  font-size: 10.5px;
  line-height: 1.2;
  text-align: left;
  color: var(--a-ink);
  overflow: hidden;
  cursor: pointer;
}

.a-week__event.is-history {
  z-index: 0;
  opacity: 0.5;
  background: var(--a-panel);
  border-left-style: dashed;
}

.a-week__event.is-history:hover {
  opacity: 0.75;
  z-index: 0;
}

.a-week__event:hover {
  z-index: 2;
  background: #efe7da;
}

.a-week__event:focus-visible {
  z-index: 3;
  outline: 2px solid var(--a-accent);
  outline-offset: 1px;
}

.a-week__event strong {
  font-size: 11px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a-week__event span {
  color: var(--a-ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a-week__event__service {
  font-size: 10px;
  color: var(--a-ink-faint);
}

/* A 30-minute visit fits the time and the name, not the service. */
.a-week__event.is-compact .a-week__event__service {
  display: none;
}

/* Legacy 15-minute rows have room for the time only; the tooltip carries the rest. */
.a-week__event.is-short {
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.a-week__event.is-short strong {
  flex: 0 0 auto;
  font-size: 9.5px;
}

.a-week__event.is-short span {
  display: none;
}

.a-week__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--a-ink-soft);
  cursor: pointer;
  white-space: nowrap;
}

.a-week__toggle input {
  accent-color: var(--a-ink);
  margin: 0;
}

.a-week__event[data-status='no_show'] {
  border-left-color: var(--a-bad-ink);
}

.a-week__event[data-status='confirmed'],
.a-week__event[data-status='completed'] {
  border-left-color: var(--a-ok-ink);
}

.a-week__event[data-status='cancelled'] {
  border-left-color: var(--a-neutral-ink);
}

/* --------------------------------------------------------------- responsive */

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

@media (max-width: 900px) {
  .a-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .a-burger {
    display: inline-flex;
  }

  .a-side {
    position: fixed;
    inset: 56px auto 0 0;
    width: 244px;
    height: calc(100dvh - 56px);
    transform: translateX(-100%);
    transition: transform 180ms ease;
    z-index: 70;
    box-shadow: 0 12px 40px rgba(18, 38, 63, 0.18);
  }

  .a-side[data-open='true'] {
    transform: translateX(0);
  }

  .a-scrim {
    display: block;
    position: fixed;
    inset: 56px 0 0;
    z-index: 65;
    background: rgba(18, 38, 63, 0.3);
  }

  .a-scrim[hidden] {
    display: none;
  }

  .a-main {
    padding-top: 16px;
  }

  .a-head__title {
    font-size: 22px;
  }

  .a-week {
    grid-template-columns: 44px repeat(7, minmax(78px, 1fr));
    overflow-x: auto;
  }
}

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

  .a-kpi__value {
    font-size: 22px;
  }

  .a-day {
    min-height: 52px;
    font-size: 11.5px;
    padding: 4px;
  }

  .a-day__count {
    font-size: 9px;
  }

  .a-topbar__brand span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a-toast,
  .a-side {
    animation: none;
    transition: none;
  }
}
