/* ===========================================================================
   schedule-preview.css — Renew Schedule (preview for Steele, 27 Oct 2026).

   The look is the one ChatGPT's preview proposed (v0.2, 24 Oct 2026), kept to
   the value: Steele, "use dist/style.css and dist/index.html as the source of
   truth for exact colors, typography, spacing, and component styling". Navy
   for structure and text, teal for actions and selected states, white
   surfaces on a pale-grey workspace, Inter. Everything down to the line
   "ADDITIONS" is that stylesheet, unchanged apart from layout of the source;
   what this app adds sits below it, in the same tokens.
   =========================================================================== */
:root {
  --navy: #19366a;
  --ink: #192d46;
  --muted: #6b7e94;
  --line: #e0e8ee;
  --teal: #218a96;
  --paper: #f5f7fa;
  --spec: #248b9a;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
}
button:hover:not(:disabled) {
  background: #edf4f7;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #60b9c5;
  outline-offset: 3px;
}
a {
  color: var(--navy);
}
button.primary,
.primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
button.primary:hover {
  background: #24487f;
}
.danger {
  color: #ac4e44;
}
.textbutton {
  border: 0;
  background: none;
  padding: 9px 0;
  color: var(--muted);
  font-size: 12px;
}
.sidebar {
  width: 224px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  padding: 4px 8px;
}
.brand img {
  width: 174px;
  max-width: 100%;
  height: auto;
}
.product-label {
  margin: 34px 12px 17px;
  color: #91a0b1;
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 700;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: none;
  border: 0;
  color: #6d7f94;
  font-size: 13px;
  font-weight: 500;
  padding: 13px;
}
nav button.active {
  background: #eaf4f5;
  color: #1d7b88;
  font-weight: 700;
}
.nav-icon {
  display: inline-flex;
  width: 18px;
  justify-content: center;
}
.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 11px 0;
  font-size: 11px;
  color: var(--muted);
}
.status-dot,
.preview-pill i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #279e99;
  margin-right: 7px;
}
.sidebar-bottom small {
  margin-top: 9px;
}
.workspace {
  margin-left: 224px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 34px;
  gap: 22px;
}
.breadcrumb {
  font-size: 12px;
  color: #718297;
}
.breadcrumb span {
  margin: 0 12px;
  color: #bac5d0;
}
.preview-pill {
  margin-left: auto;
  background: #eef6f5;
  color: #25808a;
  font-size: 10px;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.avatar {
  background: #edf0f6;
  color: var(--navy);
  height: 34px;
  width: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
main {
  padding: 30px 34px 0;
  max-width: 1800px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 10px;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 1.9px;
  margin-bottom: 10px;
}
h1 {
  font-size: 31px;
  letter-spacing: -1.05px;
  margin: 0 0 10px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  margin: 0 0 6px;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 14px;
  margin: 0 0 12px;
}
p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 14px;
}
.page-heading p {
  font-size: 13px;
  margin: 0;
  max-width: 630px;
}
.week-label {
  text-align: right;
  white-space: nowrap;
  font-size: 11px;
  color: #7b8ca0;
  line-height: 1.8;
}
.week-label strong {
  display: block;
  font-size: 14px;
  color: #37516e;
  font-weight: 600;
}
.week-label small {
  font-size: 10px;
  margin: 0;
}
small {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 6px;
}
.filterbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.segmented {
  display: flex;
  gap: 3px;
  background: #e9eef3;
  padding: 4px;
  border-radius: 9px;
  max-width: 100%;
  overflow: auto;
}
.segmented button {
  border: 0;
  background: none;
  white-space: nowrap;
  font-size: 12px;
  padding: 10px 13px;
  color: #6b7d90;
  font-weight: 550;
}
.segmented button.active {
  background: white;
  color: var(--navy);
  box-shadow: 0 1px 4px #1b3a6310;
}
.facility-label {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}
.facility-label select {
  width: 135px;
  margin: 0;
  padding: 9px 10px;
}
select,
input,
textarea {
  padding: 10px 11px;
  border: 1px solid #d6e0e9;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  max-width: 100%;
  width: 100%;
  margin-top: 7px;
  min-height: 40px;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #526780;
  margin-bottom: 14px;
}
input[type='checkbox'] {
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--teal);
}
textarea {
  resize: vertical;
  min-height: 70px;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 20px;
  position: relative;
}
.stat .label {
  font-size: 11px;
  color: #72849a;
}
.stat .value {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 13px 0 3px;
  line-height: 1.15;
}
.stat .value em {
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0;
  color: #8392a3;
  font-weight: 500;
}
.stat small {
  font-size: 10px;
}
.stat .dot {
  position: absolute;
  right: 20px;
  top: 22px;
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #d9e6ed;
}
.stat.warning .dot {
  background: #d7a05a;
}
.stat.teal .dot {
  background: #37a2a8;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  margin-bottom: 22px;
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.panel-head p {
  font-size: 11px;
  margin: 0;
}
.panel-head h2 {
  margin-bottom: 5px;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.pill {
  display: inline-block;
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #eaf5f2;
  color: #27816b;
  font-weight: 600;
  line-height: 1.4;
}
.pill.amber {
  background: #fff4e5;
  color: #ad742a;
}
.pill.blue {
  background: #edf1fa;
  color: #5973a2;
}
.pill.gray {
  background: #f0f2f5;
  color: #758497;
}
.pill.red {
  background: #fbeeea;
  color: #b25b44;
}
.banner {
  padding: 13px 16px;
  background: #edf5f8;
  border: 1px solid #dceaf0;
  border-radius: 8px;
  font-size: 12px;
  color: #56788b;
  line-height: 1.65;
  margin-bottom: 20px;
}
.banner.amber {
  background: #fff9ef;
  border-color: #f0e4d0;
  color: #92713f;
}
.legend {
  display: flex;
  gap: 16px;
  font-size: 10px;
  color: var(--muted);
  align-items: center;
}
.legend i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--spec);
  border-radius: 50%;
  margin-right: 5px;
}
.legend .open {
  background: #d99c4c;
}
.board-wrap {
  overflow-x: auto;
  padding-bottom: 7px;
}
.board {
  display: grid;
  grid-template-columns: repeat(7, minmax(142px, 1fr));
  gap: 9px;
  min-width: 1045px;
}
.day-head {
  padding: 0 3px 14px;
  border-bottom: 1px solid #edf0f4;
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.day-head strong {
  font-size: 18px;
  font-weight: 600;
}
.day-head span {
  font-size: 10px;
  color: #8a9aab;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.day-head .gap {
  margin-left: auto;
  color: #bd8843;
  letter-spacing: 0;
  text-transform: none;
  font-size: 9px;
}
.shift {
  width: 100%;
  text-align: left;
  padding: 12px 9px;
  background: #f2f8f9;
  border: 1px solid #e4eff1;
  border-left: 3px solid var(--spec);
  border-radius: 7px;
  margin-bottom: 9px;
  font-weight: 400;
  min-height: 95px;
}
.shift:hover:not(:disabled) {
  background: #e7f2f3;
}
.shift.open {
  border: 1px dashed #ddc69f;
  border-left: 3px solid #dba457;
  background: #fffaf2;
}
.shift.invalid {
  border-left-color: #c66351;
  background: #fcf2ef;
}
.shift .time {
  font-size: 10px;
  font-weight: 650;
  color: #476476;
  display: block;
  margin-bottom: 10px;
}
.shift b {
  font-size: 11px;
  display: block;
  line-height: 1.4;
}
.shift small {
  font-size: 9px;
  margin-top: 3px;
  line-height: 1.5;
}
.shift .tag {
  font-size: 8px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #2f8790;
  margin-top: 8px;
  display: block;
}
.addshift {
  border: 1px dashed #dce4ec;
  background: none;
  color: #91a2b3;
  width: 100%;
  font-size: 11px;
  padding: 9px;
}
.grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 22px;
}
.grid2.equal {
  grid-template-columns: 1fr 1fr;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f4;
}
.row:last-child {
  border-bottom: 0;
}
.row strong {
  font-size: 12px;
}
.row small {
  font-size: 10px;
  margin-top: 3px;
}
.row .right {
  text-align: right;
  flex-shrink: 0;
}
.progress {
  height: 6px;
  border-radius: 9px;
  background: #edf2f6;
  overflow: hidden;
  margin-top: 11px;
}
.progress i {
  display: block;
  height: 100%;
  background: #38a0a6;
  border-radius: 9px;
}
.coveragebar {
  margin-bottom: 17px;
}
.coveragebar .row {
  border: 0;
  padding: 0;
}
.capacity {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 10px 0;
}
.capacity .big {
  font-size: 30px;
  color: var(--navy);
  font-weight: 600;
}
.caption {
  font-size: 11px;
  line-height: 1.7;
  color: #7c8fa3;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8495a8;
  background: #f7f9fb;
  padding: 12px 10px;
  white-space: nowrap;
}
td {
  padding: 13px 10px;
  border-bottom: 1px solid #edf1f5;
  vertical-align: middle;
}
td small {
  font-size: 10px;
}
td input,
td select {
  min-width: 100px;
  font-size: 12px;
  margin: 0;
}
td input[type='number'] {
  min-width: 65px;
  width: 70px;
}
td input[type='checkbox'] {
  min-width: 16px;
  width: 16px;
}
.table-wrap .btn-sm {
  font-size: 10px;
  white-space: nowrap;
}
.btn-sm {
  padding: 7px 10px;
  font-size: 11px;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.initials {
  width: 34px;
  height: 34px;
  background: #eaf2f6;
  color: #5b7b91;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.person b {
  display: block;
  font-size: 12px;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.full {
  grid-column: 1/-1;
}
.facility-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 17px;
  margin-bottom: 15px;
}
.facility-card .formgrid {
  grid-template-columns: repeat(3, 1fr);
}
.facility-card label {
  font-size: 10px;
}
.empty {
  text-align: center;
  color: #92a1b2;
  padding: 30px 10px;
  line-height: 1.8;
}
.hero-card {
  padding: 28px;
  background: linear-gradient(120deg, #19366a, #246275);
  color: #fff;
  border: 0;
}
.hero-card p,
.hero-card small {
  color: #c4d6e5;
}
.hero-card h2 {
  font-size: 25px;
}
.hero-card .eyebrow {
  color: #8fd1d4;
}
.hero-card button {
  background: #fff;
  color: #1b4969;
  border: 0;
}
.balance {
  font-size: 39px;
  letter-spacing: -1px;
  font-weight: 600;
  padding: 13px 0;
}
.clock-label {
  font-size: 12px;
  letter-spacing: 1px;
  color: #7a91a7;
}
.quote {
  font-size: 14px;
  line-height: 1.8;
  color: #48627c;
}
.notes ol,
.notes ul {
  color: #667e95;
  padding-left: 20px;
  line-height: 1.9;
  font-size: 12px;
}
.toast {
  background: #e8f4f3;
  color: #237b7d;
  border: 1px solid #d1e8e4;
  padding: 13px 18px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.toast.error {
  background: #fcf1ed;
  color: #a05b47;
  border-color: #f0d9cf;
}
.toast[hidden] {
  display: none;
}
footer {
  font-size: 10px;
  color: #8a9bad;
  padding: 8px 0 28px;
  line-height: 1.8;
}
footer span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #6f8b9f;
  margin-right: 12px;
}
dialog {
  padding: 0;
  border: 1px solid #dce5ed;
  border-radius: 16px;
  box-shadow: 0 30px 100px #102a4940;
  width: min(650px, calc(100vw - 30px));
  max-height: 90vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #10273f77;
  backdrop-filter: blur(3px);
}
#dialog-content {
  padding: 26px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
}
.dialog-head h2 {
  font-size: 22px;
}
.dialog-head button {
  border: 0;
  font-size: 23px;
  padding: 0 8px;
  font-weight: 400;
}
.dialog-footer {
  border-top: 1px solid #e7edf2;
  padding-top: 18px;
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.helper {
  padding: 12px 0;
  font-size: 11px;
  color: #8192a3;
  line-height: 1.65;
}
.field-error {
  color: #b15e49;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.number {
  font-variant-numeric: tabular-nums;
}
.activity {
  max-height: 430px;
  overflow: auto;
}
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.checklist label {
  font-size: 11px;
  margin: 0;
}
.statline {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.statline b {
  font-size: 23px;
  display: block;
  margin-bottom: 4px;
}
.statline div {
  font-size: 10px;
  color: #6d849b;
}
.smallmeta {
  font-size: 10px;
  line-height: 1.7;
  color: #8394a7;
}
.alloc {
  max-width: 150px;
}
.queue-count {
  background: #eef3f6;
  border-radius: 30px;
  padding: 3px 8px;
  font-size: 10px;
  margin-left: 5px;
}
@media (min-width: 1600px) {
  .board {
    min-width: 100%;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 195px;
    padding: 25px 12px;
  }
  .workspace {
    margin-left: 195px;
  }
  main {
    padding: 25px 24px 0;
  }
  .topbar {
    padding: 0 24px;
  }
  .filterbar {
    flex-wrap: wrap;
  }
  .grid2 {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 17px;
  }
  .stat .value {
    font-size: 26px;
  }
  .week-label {
    display: none;
  }
}
@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 17px 20px 10px;
  }
  .brand {
    width: 142px;
    padding: 0;
  }
  .brand img {
    width: 142px;
  }
  .product-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    flex-direction: row;
    overflow: auto;
    margin-top: 15px;
    padding-bottom: 4px;
    gap: 4px;
  }
  nav button {
    white-space: nowrap;
    font-size: 11px;
    padding: 10px;
    gap: 7px;
  }
  .nav-icon svg {
    width: 16px;
    height: 16px;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 55px;
    padding: 0 20px;
  }
  .avatar {
    display: none;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .preview-pill {
    font-size: 9px;
    padding: 6px 9px;
  }
  main {
    padding: 23px 20px 0;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat .label {
    font-size: 10px;
  }
  .stat .dot {
    right: 12px;
    top: 19px;
  }
  .filterbar {
    gap: 13px;
  }
  .segmented {
    width: 100%;
  }
  .segmented button {
    flex: 1;
  }
  .grid2,
  .grid2.equal {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 19px;
  }
  .page-heading p {
    max-width: 100%;
  }
  .facility-label {
    margin-left: auto;
  }
  h1 {
    font-size: 29px;
  }
}
@media (max-width: 550px) {
  main {
    padding: 22px 15px 0;
  }
  .sidebar {
    padding-left: 15px;
    padding-right: 15px;
  }
  .topbar {
    padding: 0 15px;
  }
  .breadcrumb span {
    margin: 0 4px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat .value {
    font-size: 26px;
    margin-top: 12px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .panel {
    padding: 17px;
    margin-bottom: 16px;
  }
  .panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .panel-head .actions {
    width: 100%;
    justify-content: space-between;
  }
  .panel-head h2 {
    font-size: 16px;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .facility-card .formgrid {
    grid-template-columns: 1fr 1fr;
  }
  .full {
    grid-column: 1/-1;
  }
  .segmented button {
    font-size: 11px;
    padding: 9px 11px;
  }
  .legend {
    gap: 10px;
  }
  .stat small {
    font-size: 9px;
  }
  .stats {
    margin-bottom: 18px;
  }
  .grid2 {
    gap: 0;
  }
  #dialog-content {
    padding: 20px;
  }
  .dialog-head h2 {
    font-size: 20px;
  }
  .dialog-footer {
    flex-wrap: wrap;
  }
  .preview-pill i {
    display: none;
  }
  .caption {
    font-size: 10px;
  }
  .checklist {
    grid-template-columns: 1fr 1fr;
  }
  .hero-card h2 {
    font-size: 23px;
  }
  .board {
    min-width: 1070px;
  }
  .capacity .big {
    font-size: 27px;
  }
}
.rotation-table {
  min-width: 1000px;
}
.rotation-table td {
  min-width: 137px;
  vertical-align: top;
}
.rotation-table td:first-child {
  min-width: 140px;
}
.rotation-table .shift {
  min-height: 68px;
  margin: 5px 0;
}
.reading-row {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f5;
}
.reading-date {
  width: 60px;
  flex-shrink: 0;
}
.reading-date strong {
  font-size: 14px;
}
.reading-track {
  flex: 1;
}
.reading-label {
  font-size: 8px;
  letter-spacing: 1px;
  color: #9a88ad;
}
.reading-bar {
  margin-top: 8px;
  background: #eee8f6;
  border-radius: 6px;
  color: #8c65ad;
  padding: 10px 13px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.reading-bar span {
  font-size: 9px;
}
.reading-clinician {
  width: 210px;
}
.reading-clinician .shift {
  min-height: 60px;
  margin: 0;
}
.reading-list {
  min-width: 550px;
}
@media (max-width: 550px) {
  .reading-row {
    gap: 15px;
  }
  .reading-clinician {
    width: 170px;
  }
  .reading-track {
    min-width: 200px;
  }
}
