/* AertaOne booking platform. One stylesheet, no build step, no web fonts. */

:root {
  color-scheme: light;

  --paper: #eceef2;
  --card: #ffffff;
  --sunk: #f3f5f8;
  --raised: #e6eaf0;
  --line: #d4d9e2;
  --line-soft: #e5e8ee;
  --ink: #171c24;
  --muted: #545e6c;
  --faint: #838d9c;
  --accent: #2b5480;
  --accent-ink: #ffffff;
  --accent-soft: #dde7f3;
  --danger: #a5342a;

  --unconfirmed: #a9660b;
  --unconfirmed-bg: #faecd8;
  --unconfirmed-ink: #6f430a;
  --confirmed: #2c6e4c;
  --confirmed-bg: #dcede3;
  --confirmed-ink: #1c4b33;
  --cancelled: #a5342a;
  --cancelled-bg: #f7e2df;
  --cancelled-ink: #6f231c;
  --now: #b4341f;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(23, 28, 36, 0.06), 0 8px 26px rgba(23, 28, 36, 0.09);
  --lane-head: 156px;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #10131a;
    --card: #191d25;
    --sunk: #1f242d;
    --raised: #262c36;
    --line: #2d3440;
    --line-soft: #242a34;
    --ink: #e6eaf0;
    --muted: #a0aab9;
    --faint: #6e7886;
    --accent: #6c9fd4;
    --accent-ink: #0e1219;
    --accent-soft: #1e2a38;
    --danger: #e08076;

    --unconfirmed: #d89a3e;
    --unconfirmed-bg: #332715;
    --unconfirmed-ink: #efc585;
    --confirmed: #5ca37c;
    --confirmed-bg: #182b21;
    --confirmed-ink: #9bd1b3;
    --cancelled: #d9776b;
    --cancelled-bg: #2f1c19;
    --cancelled-ink: #efa79b;
    --now: #e2694f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 15px/1.45 "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.brand, .kicker {
  margin: 0;
  padding: 0.9rem 1.25rem 0;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  padding: 0.45rem 1.25rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  font-size: 0.9rem;
}
nav a:hover { color: var(--ink); }
nav form { margin-left: auto; }
nav button {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
nav button:hover { color: var(--ink); }

main { max-width: 62rem; margin: 0 auto; padding: 1.25rem; }
main.layout-wide { max-width: 84rem; }

.card, .card-link {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0.75rem 0;
  color: inherit;
  text-decoration: none;
}
.cards { display: grid; gap: 0.6rem; }
.card-link span { display: block; color: var(--faint); font-size: 0.85rem; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0 0 1rem;
}
.card-title { margin: 0; font-weight: 700; }
.card-head .choice-set { margin: 0 0 0 auto; padding: 0; border: 0; min-width: 0; }

.type-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--raised);
  border-radius: 999px;
}
.type-switch-opt { position: relative; display: block; margin: 0; font-weight: 600; cursor: pointer; }
.type-switch-opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  min-height: 0;
  opacity: 0;
  cursor: pointer;
}
.type-switch-opt span {
  display: block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.2;
  white-space: nowrap;
}
.type-switch-opt input:checked + span,
a.type-switch-opt.is-active span { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.type-switch-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
a.type-switch-opt { text-decoration: none; }

.field { margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-top: 0.7rem; }
.field-row .field label { margin-top: 0; }
.location-fields { display: none; }
form:has(input[name="visit_mode"][data-needs-location="1"]:checked) .location-fields,
form.is-mobile .location-fields { display: block; }

.meeting-link-fields { display: none; }
form:has(input[name="visit_mode"][data-needs-meeting-link="1"]:checked) .meeting-link-fields,
form.is-consult .meeting-link-fields { display: block; }
.meeting-link-fields .help { margin-top: 0.25rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

label, .label { display: block; margin: 0.7rem 0 0.25rem; font-weight: 600; font-size: 0.85rem; }
input, select, textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sunk);
  color: var(--ink);
  font: inherit;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
textarea { min-height: 5rem; resize: vertical; }

.primary, .secondary, .danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.primary { background: var(--accent); color: var(--accent-ink) !important; }
.secondary { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.danger { background: var(--danger); color: #fff !important; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.85rem; }
.actions .primary, .actions .danger, .actions .secondary { margin-top: 0; }
.actions form { margin: 0; }

.summary { display: grid; grid-template-columns: 7rem 1fr; gap: 0.3rem 0.75rem; margin: 0 0 1rem; }
.summary dt { color: var(--faint); font-weight: 600; font-size: 0.82rem; }
.summary dd { margin: 0; }

.help, .muted { color: var(--faint); font-size: 0.85rem; }
.banner { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 0.65rem 0.8rem; }
.banner.error, .field-error { color: var(--danger); }
.field-error { font-size: 0.82rem; }

.banner.demo-trial {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0.75rem 1.25rem 0;
}
.banner.demo-trial .demo-trial-copy {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}
.banner.demo-trial .demo-trial-cta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.65rem;
  margin-left: auto;
  text-align: right;
}
.banner.demo-trial .demo-trial-invite {
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 600;
}
.banner.demo-trial .demo-trial-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.banner.demo-trial .demo-trial-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
}
.banner.demo-trial .demo-trial-link:hover { border-color: var(--muted); }
.banner.demo-trial .demo-trial-icon {
  width: 1rem;
  height: 1rem;
  display: block;
}

/* ------------------------------------------------------------------ diary */

.toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.diary-nav {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.nav-btn:hover { background: var(--raised); color: var(--ink); }
.today-btn { min-width: 3.9rem; font-size: 0.85rem; }

.diary-title { font-size: 1.02rem; line-height: 1.2; }
.diary-title span { display: block; font-weight: 400; font-size: 0.76rem; color: var(--faint); }
.diary-switch { margin: 0 0 0 auto; }
.diary-note { margin: 0.7rem 0 0; }

.capstrip {
  display: flex;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.cap {
  flex: 1 1 8rem;
  padding: 0.6rem 0.95rem;
  border-right: 1px solid var(--line-soft);
}
.cap:last-child { border-right: 0; }
.cap-key {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--faint);
}
.cap-value { display: block; font-size: 1.22rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cap-value small { font-size: 0.68rem; font-weight: 400; color: var(--faint); margin-left: 1px; }
.cap.is-warn .cap-value { color: var(--unconfirmed); }
.cap-bar { display: block; width: 5.2rem; height: 3px; margin-top: 5px; border-radius: 2px; background: var(--raised); overflow: hidden; }
.cap-bar i { display: block; height: 100%; background: var(--accent); }

.board {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.capstrip + .board { border-top: 1px solid var(--line); }
.board-scroll { overflow-x: auto; }
.board-inner { min-width: 58rem; }

.lane-row { display: flex; border-bottom: 1px solid var(--line-soft); }
.lane-row:last-child { border-bottom: 0; }
.lane-row.is-ruler { background: var(--sunk); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; }

.lane-head {
  flex: 0 0 var(--lane-head);
  position: sticky;
  left: 0;
  z-index: 2;
  padding: 0.5rem 0.75rem;
  background: var(--card);
  border-right: 1px solid var(--line);
}
.lane-row.is-ruler .lane-head { background: var(--sunk); display: flex; align-items: center; }
.lane-row.is-ruler .lane-name {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--faint);
}
.lane-name { display: block; font-weight: 600; font-size: 0.88rem; }
.lane-meta { display: block; font-size: 0.72rem; color: var(--faint); margin-top: 1px; }
.lane-bar { display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: var(--raised); overflow: hidden; }
.lane-bar i { display: block; height: 100%; background: var(--accent); opacity: 0.85; }
.lane-head.is-full .lane-bar i { background: var(--unconfirmed); }

.ruler { position: relative; flex: 1 1 auto; height: 30px; }
.tick { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.tick b { position: absolute; top: 8px; left: 5px; font-size: 0.7rem; font-weight: 500; color: var(--faint); white-space: nowrap; }

.lane {
  position: relative;
  flex: 1 1 auto;
  height: 76px;
  touch-action: pan-y;
  background-image:
    linear-gradient(to right, var(--line) 0 1px, transparent 1px),
    linear-gradient(to right, var(--line-soft) 0 1px, transparent 1px);
  background-size:
    calc(100% / var(--hours, 10)) 100%,
    calc(100% / (var(--hours, 10) * 2)) 100%;
  background-repeat: repeat-x;
}
.lane[data-lane]:hover { background-color: color-mix(in srgb, var(--accent) 4%, transparent); }

.now-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--now); z-index: 1; pointer-events: none; }
.now-flag {
  position: absolute;
  top: 5px;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 9px;
  background: var(--now);
  color: #fff;
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.event-wrap { margin: 0.2rem 0; }
.event-wrap.job { position: absolute; top: 6px; bottom: 6px; margin: 0; z-index: 2; touch-action: none; }

.event-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  margin: 0;
  padding: 0.25rem 0.45rem;
  border: 1px solid transparent;
  border-left-width: 3px;
  border-radius: 4px;
  background: var(--unconfirmed-bg);
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 0.78rem;
  color: var(--ink);
}
.job .event-line {
  height: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1px;
  overflow: hidden;
  cursor: grab;
}
.job .event-line:active { cursor: grabbing; }
.event-who { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.event-sub { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.82; font-size: 0.72rem; }
.event-time { flex: 0 0 auto; font-family: var(--mono); font-size: 0.7rem; opacity: 0.75; white-space: nowrap; }

.job.is-mid .event-time { display: none; }
.job.is-tight .event-sub, .job.is-tight .event-time { display: none; }
.job.is-tight .event-line { padding-inline: 0.3rem; }

.tone-unconfirmed { background: var(--unconfirmed-bg); border-color: var(--unconfirmed); color: var(--unconfirmed-ink); }
.tone-confirmed { background: var(--confirmed-bg); border-color: var(--confirmed); color: var(--confirmed-ink); }
.tone-cancelled { background: var(--cancelled-bg); border-color: var(--cancelled); color: var(--cancelled-ink); }

.job-grab { position: absolute; top: 0; right: 0; bottom: 0; width: 9px; cursor: ew-resize; touch-action: none; }
.job.is-dragging { z-index: 20; box-shadow: var(--shadow); }
.job.is-invalid .event-line { outline: 2px solid var(--now); outline-offset: 1px; }
.job.is-saving { opacity: 0.6; }

.legend {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.6rem 0.95rem;
  border-top: 1px solid var(--line-soft);
  background: var(--sunk);
  font-size: 0.75rem;
  color: var(--muted);
}
.lg { display: inline-flex; align-items: center; gap: 0.35rem; }
.lg i { width: 11px; height: 11px; border-radius: 2px; border-left: 3px solid; }
.legend-hint { margin-left: auto; color: var(--faint); }

/* week matrix */
.wk .wk-row { display: flex; border-bottom: 1px solid var(--line-soft); }
.wk .wk-row:last-child { border-bottom: 0; }
.wk .is-head { background: var(--sunk); border-bottom: 1px solid var(--line); }
.wk .is-foot { background: var(--sunk); border-top: 1px solid var(--line); }
.wk-label {
  flex: 0 0 var(--lane-head);
  position: sticky;
  left: 0;
  z-index: 2;
  padding: 0.55rem 0.75rem;
  background: var(--card);
  border-right: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.88rem;
}
.wk .is-head .wk-label, .wk .is-foot .wk-label {
  background: var(--sunk);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--faint);
}
.wk-cell {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border-right: 1px solid var(--line-soft);
  font-size: 0.8rem;
  color: var(--muted);
}
.wk-cell:last-child { border-right: 0; }
.wk .is-head .wk-cell { font-weight: 600; color: var(--ink); }
.wk .is-head .wk-cell b { font-weight: 400; color: var(--faint); }
.wk .is-head .wk-cell.is-today, .wk .is-head .wk-cell.is-today b { color: var(--accent); }
a.wk-day { display: block; text-decoration: none; color: inherit; }
a.wk-day:hover { background: var(--sunk); }
.wk-bar { position: relative; display: block; height: 22px; border-radius: 3px; background: var(--raised); overflow: hidden; }
.wk-bar i { position: absolute; top: 0; bottom: 0; background: var(--unconfirmed); }
.wk-bar i.tone-confirmed { background: var(--confirmed); }
.wk-bar i.tone-cancelled { background: var(--cancelled); }
.wk-count { display: flex; justify-content: space-between; gap: 0.4rem; margin-top: 4px; font-size: 0.7rem; color: var(--faint); }
.wk-count b { color: var(--muted); }
.wk-count em { font-style: normal; }

/* list */
.diary-list { display: grid; }
.list-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-bottom: 1px solid var(--line-soft);
}
.list-row:last-child { border-bottom: 0; }
.list-day { margin: 0; font-weight: 600; color: var(--faint); font-size: 0.8rem; }
.diary-list .event-line { font-size: 0.85rem; background: none; border-color: transparent; color: var(--ink); }
.diary-list .event-line.tone-unconfirmed { border-left-color: var(--unconfirmed); }
.diary-list .event-line.tone-confirmed { border-left-color: var(--confirmed); }
.diary-list .event-line.tone-cancelled { border-left-color: var(--cancelled); }
.diary-list .event-line:hover { background: var(--sunk); }
.diary-list .event-time { order: -1; margin-right: 0.2rem; }
.diary-list .event-sub { margin-left: auto; flex: 0 1 auto; }
.empty { padding: 2rem 1rem; text-align: center; }

.event-pop {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1rem;
  width: min(26rem, calc(100vw - 1.5rem));
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.event-pop::backdrop { background: rgba(10, 14, 20, 0.45); }
.event-pop .card-title { margin-bottom: 0.75rem; }
.event-pop .secondary { width: 100%; margin-top: 0.75rem; }

.diary-toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 60;
  max-width: calc(100vw - 2rem);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.82rem;
  box-shadow: var(--shadow);
}

/* setup */
.setup-form h1 { margin: 0 0 0.35rem; font-size: 1.4rem; }
.setup-row { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: center; margin-top: 0.55rem; }
.setup-row.is-service { grid-template-columns: 1fr 6.2rem auto; }
.setup-row .secondary { width: auto; min-width: 5.4rem; margin-top: 0; min-height: 38px; }
.setup-mins { width: 6.2rem; }

@media (max-width: 900px) {
  .diary-switch { margin-left: 0; }
  .list-row { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (max-width: 640px) {
  :root { --lane-head: 116px; }
  main { padding: 0.9rem; }
  .card-head { flex-wrap: wrap; }
  .field-row { grid-template-columns: 1fr; }
  .actions { grid-template-columns: 1fr; }
  .setup-row, .setup-row.is-service { grid-template-columns: 1fr; }
  .setup-mins { width: 100%; }
  .legend-hint { display: none; }
  .cap { flex: 1 1 45%; }
  .banner.demo-trial { margin: 0.65rem 0.9rem 0; }
  .banner.demo-trial .demo-trial-cta { width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------------------
   Reports, and the list of things waiting on somebody.

   Deliberately plain. These screens get read standing up, and printed: the print
   rules below drop the navigation and the buttons so a day sheet comes out as a
   day sheet and not a screenshot of a website.
   --------------------------------------------------------------------------- */

.nav-count {
  display: inline-block;
  min-width: 1.15rem;
  margin-left: 0.35rem;
  padding: 0 0.32rem;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  vertical-align: 1px;
}

main.report { max-width: 72rem; }

.report-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.report-head h1 { margin: 0 0 0.2rem; font-size: 1.4rem; }
.report-moves { display: flex; gap: 0.4rem; }
.report-moves .secondary { width: auto; min-width: 4.5rem; margin-top: 0; }

.report-tabs {
  display: flex;
  gap: 0.15rem;
  margin: 0.6rem 0 1rem;
  border-bottom: 1px solid var(--line);
}
.report-tab {
  padding: 0.45rem 0.8rem;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.report-tab:hover { color: var(--ink); background: var(--sunk); }
.report-tab.is-active {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
  font-weight: 600;
  margin-bottom: -1px;
}

.report-table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.report-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.report-table th,
.report-table td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.report-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.report-table tbody tr:last-child td { border-bottom: 0; }
.report-table td:first-child { white-space: nowrap; }

/* Light status washes: same palette the diary blocks already use. */
.report-table tr.is-confirmed { background: var(--confirmed-bg); }
.report-table tr.is-awaiting { background: var(--unconfirmed-bg); }
.report-table tr.is-cancelled { background: var(--cancelled-bg); }
.report-table tr.is-cancelled td { color: var(--cancelled-ink); text-decoration: line-through; }
.report-table tr.is-attention { background: var(--unconfirmed-bg); }
.report-table tr.is-alert { background: #ede7f6; }

.card.match.tone-confirmed,
.card.match.tone-unconfirmed,
.card.match.tone-cancelled {
  border-color: transparent;
}

/* The same mark the waiting list uses, so a day sheet and the count are visibly
   about the same work. Red, because it is the one thing on the row that is not
   just information. */
.sheet-alert {
  display: inline-block;
  width: 1.05rem;
  height: 1.05rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
}

.fix-cell { min-width: 13rem; }
.fix-cell form { margin: 0 0 0.3rem; }
.fix-cell button,
.fix-cell .secondary {
  width: 100%;
  margin-top: 0;
  min-height: 34px;
  font-size: 0.86rem;
}

.fix-handled { margin-top: 0.3rem; }
.fix-handled > summary {
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--unconfirmed);
  border-radius: 8px;
  background: var(--unconfirmed-bg);
  color: var(--unconfirmed-ink);
  font-size: 0.86rem;
  font-weight: 600;
  list-style: none;
  text-align: center;
}
.fix-handled > summary::-webkit-details-marker { display: none; }
.fix-handled[open] > summary { border-radius: 8px 8px 0 0; }
.fix-handled form {
  padding: 0.6rem;
  border: 1px solid var(--unconfirmed);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: var(--card);
}
.fix-handled label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.fix-handled input { width: 100%; margin-bottom: 0.45rem; }
.fix-handled .muted { font-size: 0.76rem; margin: 0.4rem 0 0; }

@media print {
  nav, .report-tabs, .report-moves, .no-print, .fix-cell { display: none !important; }
  body { background: #fff; }
  main.report { max-width: none; padding: 0; }
  .report-table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .report-table { font-size: 10pt; }
  .report-table tr.is-confirmed,
  .report-table tr.is-awaiting,
  .report-table tr.is-cancelled,
  .report-table tr.is-attention,
  .report-table tr.is-alert { background: transparent; }
  .report-table tr { break-inside: avoid; }
  .sheet-alert { background: #fff; color: #000; border: 1px solid #000; }
}
