.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid #b9ccd9;
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.radiologist-panel {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(170px, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #e5ebf0;
  background: #f8fbfd;
}

.radiologist-title {
  align-self: center;
}

.radiologist-title strong,
.radiologist-title span {
  display: block;
}

.radiologist-title span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.radiologist-panel .field {
  gap: 4px;
  font-size: 12px;
}

.radiologist-panel input,
.location-field select {
  width: 100%;
  border: 1px solid #bccdda;
  border-radius: 6px;
  background: #fff;
  padding: 9px 10px;
  color: var(--ink);
  font: inherit;
}

.MISC {
  --mod: #b65f24;
  --tint: #fff1e7;
  --edge: #f0c8aa;
}

.column-heads,
.time-row {
  grid-template-columns: 65px repeat(4, minmax(0, 1fr));
}

.event.complete {
  border-color: #98cbb8;
  border-left-color: #23815f;
  background: #dff3eb;
  color: #15543e;
}

.event-details {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.event-name,
.event-location {
  overflow-wrap: anywhere;
}

.prior-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.prior-indicator.available { color: #176b4e; }
.prior-indicator.missing { color: #a43c22; }

.prior-image-icon {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 11px;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.prior-image-icon::before {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}

.prior-image-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 1px;
  width: 7px;
  height: 5px;
  background: currentColor;
  clip-path: polygon(0 100%, 38% 30%, 58% 65%, 75% 42%, 100% 100%);
}

.event-location {
  color: var(--mod);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.location-field {
  margin-top: 14px;
}

.complete-badge {
  margin-left: auto;
  padding: 1px 5px;
  border-radius: 9px;
  background: #fff;
  color: #176b4e;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.complete-action {
  border-color: #8dc5b0 !important;
  background: #e5f5ee;
  color: #176b4e;
}

@media (max-width: 900px) {
  .radiologist-panel {
    grid-template-columns: 1fr 1fr;
  }

  .radiologist-title,
  .radiologist-panel button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .heading-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .heading-actions button {
    padding: 10px;
    font-size: 13px;
  }

  .column-heads,
  .time-row {
    grid-template-columns: 47px repeat(4, minmax(0, 1fr));
  }

  .complete-badge {
    display: none;
  }

  .radiologist-panel { padding: 12px; }
}

@page {
  size: letter landscape;
  margin: 0.2in;
}

@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: #fff;
    color: #142c40;
    font-size: 8pt;
    overflow: visible;
  }

  .topbar,
  .procedure-panel,
  .heading-actions,
  .toolbar,
  .selection,
  .error,
  footer {
    display: none !important;
  }

  .radiologist-panel {
    grid-template-columns: auto 1fr 1fr;
    gap: 8px;
    padding: 0 0 4px;
    border: 0;
    background: #fff;
  }

  .radiologist-panel button,
  .radiologist-title span {
    display: none;
  }

  .radiologist-panel input {
    border: 0;
    border-bottom: 1px solid #9cafbc;
    border-radius: 0;
    padding: 1px 3px;
    font-size: 8pt;
    font-weight: 700;
  }

  .radiologist-panel .field,
  .radiologist-title {
    font-size: 8pt;
  }

  .heading {
    display: flex;
    align-items: center;
    max-width: none;
    padding: 0 0 4px;
    border-bottom: 2px solid var(--navy);
  }

  .heading h1 {
    font-size: 15pt;
  }

  .heading .eyebrow,
  .heading .subtitle {
    display: none;
  }

  .workspace {
    display: block;
    max-width: none;
    padding: 4px 0 0;
  }

  .schedule {
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .board-caption {
    padding: 1px 0 4px;
    font-size: 9pt;
  }

  .board-caption span {
    font-size: 7pt;
  }

  .board {
    border: 1px solid #9cafbc;
  }

  .column-heads,
  .time-row {
    grid-template-columns: 52px repeat(4, minmax(0, 1fr));
  }

  .column-heads {
    break-after: avoid;
  }

  .column-head {
    height: 30px;
    padding: 2px 6px;
    overflow: hidden;
  }

  .column-head strong {
    font-size: 9pt;
  }

  .column-head small,
  .time-label {
    font-size: 6.5pt;
  }

  .time-row {
    height: 28px;
    min-height: 0;
    overflow: hidden;
    break-inside: avoid;
  }

  .time-label {
    padding: 7px 2px 0;
  }

  .slot {
    padding: 1px;
    overflow: hidden;
  }

  .empty-slot,
  .event {
    min-height: 0;
    height: 25px;
  }

  .event {
    gap: 3px;
    padding: 1px 4px;
    overflow: hidden;
    font-size: 7.5pt;
  }

  .event-details {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    white-space: nowrap;
  }

  .event-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .event-location,
  .prior-indicator,
  .complete-badge {
    flex: 0 0 auto;
    font-size: 6.5pt;
  }

  .complete-badge {
    padding: 0 3px;
  }

  .event .grip {
    display: none;
  }
}
