:root {
  color-scheme: light;
  --bg: #f5f7f5;
  --panel: #ffffff;
  --ink: #1f2933;
  --muted: #687782;
  --line: #d8e0dc;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --ok: #17803d;
  --bad: #b42318;
  --warn: #946200;
  --shadow: 0 10px 24px rgba(31, 41, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 42%),
    var(--bg);
  color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 700;
  min-height: 40px;
  padding: 0 14px;
}

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

button.secondary {
  background: #e7eeeb;
  color: var(--ink);
}

button.secondary:hover {
  background: #d7e2de;
}

button.about-button {
  min-height: 36px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 0 8px;
}

button.about-button:hover {
  background: #e7eeeb;
  color: var(--ink);
}

.about-dialog {
  width: min(360px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: 20px;
}

.about-dialog::backdrop {
  background: rgba(31, 41, 51, 0.42);
}

.about-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.about-dialog p + p,
.about-dialog p + a {
  margin-top: 6px;
}

.about-dialog a {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
}

.about-dialog .dialog-close {
  min-height: 34px;
  padding: 0 10px;
}

.release-info {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.release-info div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.release-info dt {
  color: var(--muted);
  font-weight: 700;
}

.release-info dd {
  margin: 0;
  font-weight: 700;
}

.password-dialog {
  width: min(420px, calc(100vw - 32px));
}

.help-dialog {
  width: min(620px, calc(100vw - 32px));
}

.help-priority {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-left: 4px solid var(--ok);
  background: #f1fbf4;
}

.help-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.help-support {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.support-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.message.success {
  color: var(--ok);
}

.person-details-button {
  display: inline;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 400;
  text-align: left;
}

.person-details-button:hover {
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
}

.person-details-dialog {
  width: min(620px, calc(100vw - 32px));
}

.person-details-dialog .about-dialog-header h2,
.person-details-dialog .about-dialog-header p {
  margin: 0;
}

.person-detail-days {
  display: grid;
}

.person-detail-day {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(150px, auto);
  align-items: center;
  gap: 8px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.person-detail-day:first-child {
  border-top: 0;
}

.person-detail-day > div span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.person-detail-day .status-pill {
  justify-self: end;
  white-space: nowrap;
}

.person-detail-note {
  grid-column: 1 / -1;
  margin: 0;
  overflow-wrap: anywhere;
}

.person-detail-note strong {
  color: var(--ink);
}

.crew-all-available {
  padding-top: 8px;
  border-top: 1px solid rgba(31, 41, 51, 0.14);
}

.location-details-dialog {
  width: min(680px, calc(100vw - 32px));
}

.location-details-dialog .about-dialog-header h2,
.location-details-dialog .about-dialog-header p {
  margin: 0;
}

.location-detail-list {
  display: grid;
}

.location-detail-person {
  display: grid;
  grid-template-columns: 72px minmax(110px, 1fr) minmax(100px, auto) minmax(110px, auto);
  align-items: center;
  gap: 6px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.location-detail-person:first-child {
  border-top: 0;
}

.location-detail-person > strong {
  color: var(--accent);
  font-size: 16px;
}

.location-detail-time {
  justify-self: end;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.location-detail-person p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

button.danger {
  background: var(--bad);
}

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 8px 10px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.shell {
  width: min(1500px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

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

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

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 900;
}

.brand-logo {
  display: block;
  width: auto;
  height: 60px;
  object-fit: contain;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 15px;
}

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

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

.login {
  display: grid;
  gap: 18px;
  width: min(420px, calc(100vw - 28px));
  margin: 12vh auto;
  padding: 24px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
}

.toolbar-control {
  min-width: 150px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  background: #e7eeeb;
  color: var(--ink);
}

.tab.active {
  background: var(--accent);
  color: white;
}

.status-strip {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  margin-bottom: 16px;
}

.direct-strip {
  border-width: 2px;
}

.direct-green {
  border-color: rgba(23, 128, 61, 0.42);
}

.direct-yellow {
  border-color: rgba(148, 98, 0, 0.48);
}

.direct-red {
  border-color: rgba(180, 35, 24, 0.3);
}

.direct-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(135px, 1fr));
  gap: 10px;
  align-items: center;
}

.availability-toggle {
  min-height: 74px;
  border-radius: 8px;
  font-size: 16px;
  opacity: 0.62;
  padding: 0 16px;
}

.availability-toggle.green,
.day-status-green {
  background: var(--ok);
}

.availability-toggle.yellow,
.day-status-yellow {
  background: #d69600;
  color: #1f2933;
}

.availability-toggle.red,
.day-status-red {
  background: var(--bad);
}

.availability-toggle.active {
  box-shadow: 0 0 0 3px rgba(31, 41, 51, 0.22);
  opacity: 1;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 8px;
}

.segmented button {
  background: #e7eeeb;
  color: var(--ink);
}

.segmented button.active.ok {
  background: var(--ok);
  color: white;
}

.segmented button.active.bad {
  background: var(--bad);
  color: white;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
}

.crew-readiness {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.crew-location {
  display: grid;
  gap: 10px;
}

.crew-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
}

.crew-card {
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 14px;
  cursor: pointer;
}

.crew-day {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  min-width: 0;
}

.location-note {
  min-width: 0;
}

.crew-card:hover {
  box-shadow: 0 8px 20px rgba(31, 41, 51, 0.12);
}

.crew-card:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.38);
  outline-offset: 2px;
}

.crew-card p {
  font-size: 13px;
}

.crew-green {
  border-color: rgba(23, 128, 61, 0.45);
  background: #f1fbf4;
}

.crew-urgent-border {
  border: 3px solid #d69600;
}

.crew-dual-border {
  border: 3px dashed #d69600;
}

.crew-time-windows {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 11px;
}

.crew-time-range {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.crew-time-green {
  color: var(--ok);
}

.crew-time-urgent {
  color: var(--warn);
}

.crew-partial {
  border-color: rgba(148, 98, 0, 0.35);
  background: #fff9eb;
}

.crew-missing {
  border-color: rgba(180, 35, 24, 0.28);
  background: #fff8f7;
}

.day {
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 14px;
}

.date {
  color: var(--muted);
  font-weight: 800;
  text-transform: capitalize;
}

.day-missing-roles {
  min-height: 1.35em;
  margin-top: 4px;
  color: var(--bad);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

button.day-details-header {
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-size: inherit;
  text-align: left;
}

button.day-details-header:hover {
  background: rgba(0, 0, 0, 0.04);
}

button.day-details-header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.day-date {
  font-size: 15px;
}

.location-detail-person.schedule-detail-period {
  grid-template-columns: minmax(40px, 1fr) auto auto;
}

.availability-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.time-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.hour-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  user-select: none;
  touch-action: none;
}

.hour-slot {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8faf9;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  padding: 0;
}

.hour-slot:hover {
  background: #d7e2de;
}

.hour-slot.selected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
  background: #e7eeeb;
  color: var(--ink);
}

.hour-slot.saved-green {
  border-color: var(--ok);
  background: var(--ok);
  color: white;
}

.hour-slot.saved-yellow {
  border-color: #d69600;
  background: #d69600;
  color: #1f2933;
}

.hour-slot.selected.saved-green,
.hour-slot.selected.saved-yellow {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.available,
.green {
  border-color: rgba(23, 128, 61, 0.35);
  background: #f1fbf4;
}

.yellow {
  border-color: rgba(148, 98, 0, 0.42);
  background: #fff9eb;
}

.mixed {
  border-color: #d69600;
  background: #f1fbf4;
}

.unavailable,
.red {
  border-color: rgba(180, 35, 24, 0.35);
  background: #fff4f2;
}

.unknown,
.none {
  border-color: var(--line);
  background: var(--panel);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: normal;
}

.status-pill.ok {
  background: #dff6e7;
  color: var(--ok);
}

.status-pill.bad {
  background: #ffe0dc;
  color: var(--bad);
}

.status-pill.warn {
  background: #fff0c2;
  color: var(--warn);
}

.status-pill.unset {
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
}

.availability-intervals,
.saved-intervals {
  display: grid;
  gap: 6px;
}

.saved-interval {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-left: 4px solid var(--ok);
  padding-left: 8px;
  font-size: 12px;
}

.saved-interval.saved-yellow {
  border-left-color: #d69600;
}

.saved-interval .remove-interval {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 12px;
}

.saved-intervals-empty {
  font-size: 12px;
}

.location-detail-person.status-green {
  border-left: 4px solid var(--ok);
  padding-left: 10px;
}

.location-detail-person.status-yellow {
  border-left: 4px solid #d69600;
  padding-left: 10px;
}

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

.availability-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
}

.availability-table-scroll {
  height: calc(100vh - 190px);
  height: clamp(320px, calc(100dvh - 190px), 760px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.availability-table th,
.availability-table td {
  white-space: nowrap;
}

.availability-table {
  border-collapse: separate;
  border-spacing: 0;
}

.availability-table thead th {
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 4;
}

.availability-table th:nth-child(1),
.availability-table td:nth-child(1) {
  left: 0;
  min-width: 230px;
  width: 230px;
}

.availability-table th:nth-child(2),
.availability-table td:nth-child(2) {
  left: 230px;
  min-width: 115px;
  width: 115px;
}

.availability-table th:nth-child(3),
.availability-table td:nth-child(3) {
  left: 345px;
  min-width: 120px;
  width: 120px;
}

.availability-table th:nth-child(-n + 3),
.availability-table td:nth-child(-n + 3) {
  position: sticky;
  background: var(--panel);
  z-index: 2;
}

.availability-table th:nth-child(-n + 3) {
  z-index: 5;
}

.availability-table th:nth-child(3),
.availability-table td:nth-child(3) {
  box-shadow: 8px 0 12px rgba(31, 41, 51, 0.08);
}

.availability-table .status-pill {
  white-space: nowrap;
}

.availability-note {
  max-width: 180px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.day-note {
  gap: 5px;
  font-size: 12px;
}

.day-note input {
  min-height: 34px;
  text-transform: none;
}

.note-save-status {
  min-height: 16px;
  font-size: 11px;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  padding: 0 14px;
  text-decoration: none;
}

.download-link:hover {
  background: var(--accent-dark);
}

.download-link.secondary {
  background: #e7eeeb;
  color: var(--ink);
}

.download-link.secondary:hover {
  background: #d7e2de;
}

.statistics-list {
  display: grid;
  gap: 26px;
}

.statistics-month {
  display: grid;
  gap: 10px;
}

.statistics-month-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.statistics-month-heading h3 {
  color: var(--ink);
  font-size: 18px;
  text-transform: capitalize;
}

.statistics-table {
  min-width: 900px;
}

.statistics-table th:nth-child(n + 4),
.statistics-table td:nth-child(n + 4) {
  text-align: right;
}

.statistics-table th:nth-child(1) {
  width: 14%;
}

.statistics-table th:nth-child(2) {
  width: 14%;
}

.statistics-table th:nth-child(3) {
  width: 25%;
}

.statistics-group-row:hover td {
  background: #f8faf9;
}

.statistics-role-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

button.statistics-expand {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 18px;
  line-height: 1;
}

.statistics-user-detail[hidden] {
  display: none;
}

.statistics-detail-cell {
  padding: 0 0 0 42px;
  background: #f8faf9;
  text-align: left;
}

.statistics-user-table {
  min-width: 760px;
  background: var(--panel);
}

.statistics-user-table th {
  background: #eef3f1;
  font-size: 12px;
}

.statistics-user-table th:nth-child(n + 4),
.statistics-user-table td:nth-child(n + 4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.statistics-user-table tr:last-child td {
  border-bottom: 0;
}

.statistics-user-no-data td {
  background: #fff8ed;
}

.statistics-user-state {
  color: var(--ok);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.statistics-user-state.no-data {
  color: var(--warn);
}

.statistics-empty {
  padding: 22px;
}

.usage-value {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 150px;
}

.usage-value span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.usage-meter {
  width: 100%;
  height: 5px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #e7eeeb;
}

.usage-meter span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.statistics-total td {
  border-top: 2px solid var(--line);
  background: #f1f6f3;
  font-weight: 800;
}

.statistics-table td:nth-child(n + 4),
.statistics-total td {
  font-variant-numeric: tabular-nums;
}

.users-table-wrap {
  overflow-x: visible;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.user-form {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.user-form button {
  min-width: 120px;
}

.user-form input,
.user-form select {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
}

.user-form label {
  align-content: end;
}

.user-form input[name="username"] {
  text-transform: uppercase;
}

.users-table {
  min-width: 0;
  table-layout: fixed;
}

.users-table th,
.users-table td {
  padding: 8px 7px;
  white-space: nowrap;
}

.users-table th:nth-child(1),
.users-table td:nth-child(1) {
  width: 8%;
}

.users-table th:nth-child(2),
.users-table td:nth-child(2),
.users-table th:nth-child(3),
.users-table td:nth-child(3),
.users-table th:nth-child(9),
.users-table td:nth-child(9) {
  width: 12%;
}

.users-table th:nth-child(4),
.users-table td:nth-child(4) {
  width: 6%;
}

.users-table th:nth-child(5),
.users-table td:nth-child(5),
.users-table th:nth-child(6),
.users-table td:nth-child(6) {
  width: 11%;
}

.users-table th:nth-child(7),
.users-table td:nth-child(7),
.users-table th:nth-child(8),
.users-table td:nth-child(8) {
  width: 8%;
}

.users-table th:nth-child(10),
.users-table td:nth-child(10) {
  width: 12%;
}

.users-table.has-statistics-access th:nth-child(1),
.users-table.has-statistics-access td:nth-child(1) {
  width: 7%;
}

.users-table.has-statistics-access th:nth-child(2),
.users-table.has-statistics-access td:nth-child(2),
.users-table.has-statistics-access th:nth-child(3),
.users-table.has-statistics-access td:nth-child(3) {
  width: 10%;
}

.users-table.has-statistics-access th:nth-child(4),
.users-table.has-statistics-access td:nth-child(4) {
  width: 5%;
}

.users-table.has-statistics-access th:nth-child(5),
.users-table.has-statistics-access td:nth-child(5),
.users-table.has-statistics-access th:nth-child(6),
.users-table.has-statistics-access td:nth-child(6) {
  width: 9%;
}

.users-table.has-statistics-access th:nth-child(7),
.users-table.has-statistics-access td:nth-child(7),
.users-table.has-statistics-access th:nth-child(8),
.users-table.has-statistics-access td:nth-child(8) {
  width: 7%;
}

.users-table.has-statistics-access th:nth-child(9),
.users-table.has-statistics-access td:nth-child(9) {
  width: 10%;
}

.users-table.has-statistics-access th:nth-child(10),
.users-table.has-statistics-access td:nth-child(10) {
  width: 9%;
}

.users-table.has-statistics-access th:nth-child(11),
.users-table.has-statistics-access td:nth-child(11) {
  width: 12%;
}

.users-table input,
.users-table select {
  min-width: 0;
  width: 100%;
  padding-left: 7px;
  padding-right: 7px;
}

.users-table input[name="username"] {
  text-transform: uppercase;
}

.statistics-access-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.users-table .statistics-access-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  padding: 0;
}

.users-table input:disabled,
.users-table select:disabled,
.users-table button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.users-table .actions {
  flex-wrap: nowrap;
  gap: 6px;
}

.users-table .actions button {
  min-height: 36px;
  padding: 0 10px;
}

.message {
  min-height: 24px;
  color: var(--bad);
  font-weight: 700;
}

@media (max-width: 760px) {
  .topbar,
  .toolbar,
  .status-strip {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  .segmented,
  .direct-actions,
  .calendar-grid,
  .crew-days,
  .inline-form,
  .user-form {
    grid-template-columns: 1fr;
  }

  .actions,
  .download-actions {
    width: 100%;
  }

  .actions button,
  .download-link {
    flex: 1;
  }

  .statistics-month-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .person-detail-day {
    grid-template-columns: 1fr;
  }

  .person-detail-day .status-pill {
    justify-self: start;
  }

  .location-detail-person,
  .location-detail-person.schedule-detail-period {
    grid-template-columns: 70px 1fr;
  }

  .location-detail-time {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
