/* Trial Tracker ? custom layer over Tailwind */

:root {
  --cream: #f5f0e6;
  --cream-deep: #ebe3d4;
  --sage: #5f7f5a;
  --sage-soft: #e0e8de;
  --slate: #1f2e3f;
  --overlap: #d9896a;
}

body {
  background-color: var(--cream);
}

.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(95, 127, 90, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(31, 46, 63, 0.08), transparent 50%),
    linear-gradient(180deg, #fbf8f1 0%, #f5f0e6 45%, #ebe3d4 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.nav-tab {
  position: relative;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  padding: 0.2rem 0.85rem 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: #7a91a8;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-tab:hover {
  color: #2b3d52;
}

.nav-tab.active {
  border-bottom-color: #5f7f5a;
  color: #1f2e3f;
}

.app-layout {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.45rem 1rem 2rem;
  overflow: visible;
  transition: max-width 0.15s ease;
}

@media (min-width: 640px) {
  .app-layout {
    padding: 0.45rem 1.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .app-layout {
    padding: 0.45rem 2rem 2rem;
  }
}

/* Database / Case Tracker / Calendar: full-bleed monitor width */
.app-layout[data-view="database"],
.app-layout[data-view="case-tracker"],
.app-layout[data-view="calendar"] {
  max-width: 100%;
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Pin the page shell so Database can consume the full window */
body:has(.app-layout[data-view="database"]) {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body:has(.app-layout[data-view="database"]) > .relative.z-10 {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Database: fill remaining viewport height, kill bottom dead space */
.app-layout[data-view="database"] {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  padding-top: 0.25rem;
  padding-bottom: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-layout[data-view="database"] .content-stack {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  gap: 0.25rem;
}

.app-layout[data-view="database"] .app-nav {
  flex: 0 0 auto;
}

.app-layout[data-view="database"] #view-database.database-flow,
.app-layout[data-view="database"] .database-main,
.app-layout[data-view="database"] .sheet-wrap,
.app-layout[data-view="database"] .sheet-split {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.app-layout[data-view="database"] .sheet-split {
  flex-direction: row;
  align-items: stretch;
}

/* Trial Calendar: compact dual-month workspace */
.app-layout[data-view="calendar"] {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  padding-top: 0.25rem;
  padding-bottom: 0.75rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.app-layout[data-view="calendar"] .content-stack {
  flex: 1 1 auto;
  min-height: 0;
  gap: 0.25rem;
}

.app-layout[data-view="calendar"] .app-nav {
  flex: 0 0 auto;
}

.app-layout[data-view="calendar"] #view-calendar.calendar-flow,
.app-layout[data-view="calendar"] .calendar-main {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body:has(.app-layout[data-view="calendar"]) {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: auto;
}

body:has(.app-layout[data-view="calendar"]) > .relative.z-10 {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: block;
  overflow: visible;
}

.database-flow,
.database-main,
.database-flow .sheet-wrap,
.database-flow .sheet-split {
  width: 100%;
  max-width: 100%;
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  width: 100%;
}

.app-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  width: 100%;
}

.nav-tablist {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem;
}

.app-nav .trial-count-pill {
  flex-shrink: 0;
  margin-left: 0;
  align-self: baseline;
}

.nav-metrics {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  margin-left: auto;
  align-self: baseline;
}

.nav-metrics[hidden] {
  display: none;
}

.btn-view-archived {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #9bb396;
  border-radius: 0.4rem;
  background: #f5f0e6;
  padding: 0.28rem 0.75rem;
  color: #1f2e3f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-view-archived:hover {
  background: #e0e8de;
  border-color: #5f7f5a;
  color: #1f2e3f;
}

.btn-view-archived:focus-visible {
  outline: 2px solid #5f7f5a;
  outline-offset: 2px;
}

.intake-flow,
.database-flow,
.calendar-flow {
  position: relative;
  width: 100%;
  min-width: 0;
}

.intake-flow-form,
.database-main,
.calendar-main {
  width: 100%;
  min-width: 0;
}

.sheet-stage,
.calendar-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

/* Shared left-margin title ? out of flow, content stays full width */
.brand-rail {
  position: absolute;
  right: 100%;
  left: auto;
  margin: 0 20px 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  pointer-events: none;
}

.brand-rail-intake {
  top: calc(0.8rem + 0.96rem + 0.28rem);
}

.brand-rail-calendar {
  top: 0.7rem;
}

.brand-line {
  display: block;
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #1f2e3f;
  line-height: 0.92;
  font-size: clamp(1.85rem, 2.4vw, 2.35rem);
  white-space: nowrap;
  text-align: right;
}

.brand-line + .brand-line {
  margin-top: 0.08rem;
}

.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1rem;
  margin-bottom: 0.55rem;
  width: 100%;
  flex: 0 0 auto;
}

.calendar-range-label {
  min-width: 14rem;
  text-align: center;
  white-space: nowrap;
}

.calendar-dual {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  min-width: 1716px;
  transform: none;
}

.calendar-board {
  display: flex;
  flex-direction: column;
  flex: 0 0 850px;
  box-sizing: border-box;
  width: 850px;
  max-width: 850px;
  min-width: 850px;
  height: auto;
  max-height: none;
  overflow: visible;
  transform: none;
  border: 1px solid #d9ceb8;
  border-radius: 16px;
  background: #fbf8f1;
  box-shadow: 0 10px 30px -16px rgba(17, 27, 39, 0.22);
}

.calendar-board-head {
  flex: 0 0 auto;
  padding: 12px 14px;
  border-bottom: 1px solid #d9ceb8;
  background: #e8edf1;
}

.calendar-board-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
  color: #1f2e3f;
  letter-spacing: -0.01em;
}

.calendar-weekday-row {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid #c5cad0;
  background: #1f2e3f;
  color: #f5f0e6;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-weekday-row > div {
  padding: 10px 4px;
  font-size: 12px;
}

.calendar-grid {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 115px;
  transform: none;
}

.day-detail-panel {
  flex: 0 1 auto;
  max-height: 26vh;
  margin-top: 12px;
  overflow: auto;
}

@media (max-width: 960px) {
  .calendar-dual {
    justify-content: center;
  }

  .calendar-board {
    flex: 0 0 850px;
    width: 850px;
    max-width: 850px;
    min-width: 0;
  }
}

.call-list-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2e3f;
}

.call-list-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.call-list-toggle-ui {
  position: relative;
  width: 2.6rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #c5cad0;
  border: 1px solid #9aa3ab;
  transition: background 0.15s ease, border-color 0.15s ease;
  flex: 0 0 auto;
}

.call-list-toggle-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: #fbf8f1;
  box-shadow: 0 1px 2px rgba(17, 27, 39, 0.2);
  transition: transform 0.15s ease;
}

.call-list-toggle input:checked + .call-list-toggle-ui {
  background: #4a7c9b;
  border-color: #3a657e;
}

.call-list-toggle input:checked + .call-list-toggle-ui::after {
  transform: translateX(1.1rem);
}

.call-list-toggle input:focus-visible + .call-list-toggle-ui {
  outline: 2px solid #6f8570;
  outline-offset: 2px;
}

.trial-count-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 0.4rem;
  background: #e0e8de;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #3b5139;
}

.trial-count-pill[hidden] {
  display: none;
}

.intake-row-identity {
  margin-top: 0;
}

@media (max-width: 900px) {
  .brand-rail {
    position: static;
    right: auto;
    top: auto;
    margin: 0 0 0.4rem;
    flex-direction: row;
    align-items: baseline;
    gap: 0.45rem;
    text-align: left;
    pointer-events: auto;
  }

  .brand-line {
    text-align: left;
  }

  .brand-line + .brand-line {
    margin-top: 0;
  }

  .calendar-toolbar {
    justify-content: flex-start;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #3a5168;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid #d9ceb8;
  background: #fbf8f1;
  padding: 0.55rem 0.8rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: #1f2e3f;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a8b8c9;
  opacity: 1;
}

.combobox-wrap {
  position: relative;
}

.combobox-wrap .combobox-input {
  padding-right: 2.6rem;
}

.combobox-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  display: inline-flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: #5f7f5a;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.combobox-toggle:hover {
  background: #e0e8de;
  color: #3b5139;
}

.combobox-toggle svg {
  width: 1rem;
  height: 1rem;
}

.combobox-toggle.is-open {
  color: #1f2e3f;
}

.combobox-menu {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  z-index: 45;
  overflow: hidden;
  border: 1px solid #9bb396;
  border-radius: 0.7rem;
  background: #fbf8f1;
  box-shadow: 0 14px 28px -16px rgba(31, 46, 63, 0.35);
}

.combobox-menu[hidden] {
  display: none;
}

.combobox-options {
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  max-height: 14rem;
  overflow-y: auto;
}

.combobox-add-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: 0;
  border-top: 1px solid #d9ceb8;
  background: #e0e8de;
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #3b5139;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.combobox-add-btn:hover {
  background: #5f7f5a;
  color: #fbf8f1;
}

.combobox-add-panel {
  display: flex;
  gap: 0.45rem;
  border-top: 1px solid #d9ceb8;
  background: #f2f5f1;
  padding: 0.55rem;
}

.combobox-add-panel[hidden] {
  display: none;
}

.combobox-add-input {
  flex: 1;
  min-width: 0;
  border-radius: 0.5rem;
  border: 1px solid #c2d1be;
  background: #fbf8f1;
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1f2e3f;
  outline: none;
}

.combobox-add-input:focus {
  border-color: #5f7f5a;
  box-shadow: 0 0 0 3px rgba(95, 127, 90, 0.22);
}

.btn-add-status-confirm {
  border-radius: 0.5rem;
  border: 1px solid #5f7f5a;
  background: #1f2e3f;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f5f0e6;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cr-status-field > .cr-status-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cr-status-label-row label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #3a5168;
}

.btn-manage-status {
  display: inline-flex;
  height: 1.7rem;
  width: 1.7rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9ceb8;
  border-radius: 0.45rem;
  background: #fbf8f1;
  color: #516a84;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-manage-status:hover {
  border-color: #7a9a74;
  background: #e0e8de;
  color: #1f2e3f;
}

.btn-manage-status svg {
  width: 0.95rem;
  height: 0.95rem;
}

.status-manager {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.status-manager[hidden] {
  display: none;
}

.status-manager-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 27, 39, 0.42);
}

.status-manager-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: min(84vh, 34rem);
  display: flex;
  flex-direction: column;
  border: 1px solid #d9ceb8;
  border-radius: 1rem;
  background: #fbf8f1;
  box-shadow: 0 24px 48px -24px rgba(17, 27, 39, 0.45);
  animation: rise-in 0.28s ease both;
}

.status-manager-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.55rem;
}

.status-manager-head h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 650;
  color: #1f2e3f;
}

.btn-manager-close {
  display: inline-flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9ceb8;
  border-radius: 0.5rem;
  background: transparent;
  color: #516a84;
  cursor: pointer;
}

.btn-manager-close:hover {
  background: #e0e8de;
  color: #1f2e3f;
}

.btn-manager-close svg {
  width: 0.95rem;
  height: 0.95rem;
}

.status-manager-note {
  margin: 0;
  padding: 0 1.1rem 0.85rem;
  font-size: 0.8rem;
  color: #7a91a8;
}

.status-manager-create {
  padding: 0 1.1rem 0.9rem;
}

.status-manager-create-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.status-manager-create-row input {
  flex: 1;
  min-width: 0;
}

.status-manager-create .btn-add-attorney {
  white-space: nowrap;
  padding-inline: 0.95rem;
}

.status-manager-list {
  margin: 0;
  padding: 0 0.75rem 0.75rem;
  list-style: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.status-manager-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #ebe3d4;
  border-radius: 0.7rem;
  background: #f5f0e6;
  padding: 0.45rem 0.5rem;
}

.status-manager-item.is-editing {
  border-color: #9bb396;
  background: #f2f5f1;
}

.status-manager-value {
  flex: 1;
  min-width: 0;
  padding: 0.35rem 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2e3f;
}

.status-manager-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #9bb396;
  border-radius: 0.45rem;
  background: #fbf8f1;
  padding: 0.4rem 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2e3f;
  outline: none;
}

.status-manager-input:focus {
  box-shadow: 0 0 0 3px rgba(95, 127, 90, 0.22);
}

.status-manager-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-status-action {
  display: inline-flex;
  height: 1.85rem;
  min-width: 1.85rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9ceb8;
  border-radius: 0.45rem;
  background: #fbf8f1;
  padding: 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #3a5168;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-status-action:hover {
  border-color: #7a9a74;
  background: #e0e8de;
  color: #1f2e3f;
}

.btn-status-action.is-save {
  border-color: #5f7f5a;
  background: #1f2e3f;
  color: #f5f0e6;
}

.btn-status-action.is-save:hover {
  background: #2b3d52;
}

.btn-status-action.is-danger:hover {
  border-color: #d9896a;
  background: #f3e0d4;
  color: #a85a3c;
}

.btn-status-action svg {
  width: 0.85rem;
  height: 0.85rem;
}

.status-manager-foot {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #ebe3d4;
  padding: 0.85rem 1.1rem 1rem;
}

.status-manager-empty {
  padding: 1.25rem 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: #7a91a8;
}

.combobox-empty {
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #7a91a8;
}

.field textarea {
  resize: vertical;
  min-height: 3rem;
}

.field textarea.notes-auto {
  resize: none;
  overflow: hidden;
  min-height: 3rem;
  field-sizing: content;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #7a9a74;
  box-shadow: 0 0 0 3px rgba(122, 154, 116, 0.25);
}

.field input[readonly] {
  background: #ebe3d4;
  color: #3a5168;
  cursor: default;
}

.field-autocomplete {
  position: relative;
  z-index: 5;
}

.autocomplete-wrap {
  position: relative;
}

.autocomplete-menu {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  max-height: 14rem;
  overflow-y: auto;
  border: 1px solid #9bb396;
  border-radius: 0.65rem;
  background: #fbf8f1;
  box-shadow: 0 14px 28px -16px rgba(31, 46, 63, 0.35);
}

.autocomplete-menu[hidden] {
  display: none;
}

.autocomplete-option {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  padding: 0.55rem 0.7rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 550;
  color: #1f2e3f;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.autocomplete-option:hover,
.autocomplete-option.is-active {
  background: #5f7f5a;
  color: #fbf8f1;
}

.autocomplete-option mark {
  background: transparent;
  color: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(251, 248, 241, 0.45);
  text-underline-offset: 2px;
}

.intake-shell {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border: 1px solid #d9ceb8;
  border-radius: 1rem;
  background: rgba(251, 248, 241, 0.88);
  padding: 0.8rem 1.25rem 0.95rem;
  box-shadow: 0 8px 24px -18px rgba(17, 27, 39, 0.25);
}

#view-intake.view-panel {
  padding-top: 0;
}

.intake-rows {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.intake-mid-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: center;
  width: 100%;
}

.intake-mid-fields {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

.intake-actions-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem;
  min-width: 14rem;
  max-width: 22rem;
  padding-top: 0;
  justify-self: end;
}

.intake-save-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  width: 100%;
}

.send-to-partner-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
  min-width: 0;
  flex: 1 1 auto;
}

.send-to-partner-flag input {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  accent-color: #b54a3c;
  cursor: pointer;
}

.send-to-partner-label {
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
  color: #8a4330;
}

.weekly-days-field,
.dark-days-field {
  flex: 1 0 100%;
  width: 100%;
  margin: 0.2rem 0 0.35rem;
}

.dark-days-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.35rem 0.15rem;
  border: 0;
  background: transparent;
  color: #3a5168;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.dark-days-toggle:hover {
  color: #1f2e3f;
  text-decoration: underline;
  text-underline-offset: 0.15rem;
}

.dark-days-toggle:focus-visible {
  outline: 2px solid #7a9a74;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.dark-days-panel {
  margin-top: 0.45rem;
  padding-top: 0.15rem;
}

.dark-days-panel[hidden] {
  display: none;
}

.weekly-days-heading,
.dark-days-heading {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #3a5168;
}

.weekly-days-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
}

.weekly-day-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
  font-size: 0.8125rem;
  font-weight: 650;
  color: #1f2e3f;
}

.weekly-day-check input {
  width: 1rem;
  height: 1rem;
  accent-color: #5f7f5a;
  cursor: pointer;
}

.dark-days-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.dark-days-add-row input {
  width: 9.5rem;
  max-width: 100%;
  border-radius: 0.65rem;
  border: 1px solid #d9ceb8;
  background: #fbf8f1;
  padding: 0.45rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2e3f;
}

.dark-days-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
  min-height: 1.5rem;
}

.dark-days-empty {
  font-size: 0.75rem;
  font-weight: 500;
  color: #8a97a6;
}

.dark-day-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.25rem 0.5rem;
  border: 1px solid #c5cad0;
  border-radius: 999px;
  background: #e8edf1;
  color: #1f2e3f;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.dark-day-chip:hover {
  background: #f8e8df;
  border-color: #d9896a;
  color: #8a4330;
}

.edit-trial-portal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: flex-end;
}

.edit-trial-portal[hidden] {
  display: none;
}

.edit-trial-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 27, 39, 0.4);
}

.edit-trial-drawer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 26.5rem);
  height: 100%;
  max-height: 100dvh;
  border-left: 1px solid #d9ceb8;
  background: #fbf8f1;
  box-shadow: -18px 0 40px -28px rgba(17, 27, 39, 0.45);
  animation: edit-drawer-in 0.28s ease both;
}

@keyframes edit-drawer-in {
  from {
    transform: translateX(100%);
    opacity: 0.6;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.edit-trial-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem 0.75rem;
  border-bottom: 1px solid #ebe3d4;
}

.edit-trial-head h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 650;
  color: #1f2e3f;
}

.edit-trial-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7a91a8;
}

.edit-trial-body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-trial-meta {
  padding: 0.75rem 0.85rem;
  border: 1px solid #e0e8de;
  border-radius: 0.75rem;
  background: #f2f5f1;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #3a5168;
}

.edit-trial-meta strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2e3f;
}

.edit-trial-portal .weekly-days-field,
.edit-trial-portal .dark-days-field {
  flex: none;
  margin: 0;
}

.dark-picker-hint {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 550;
  line-height: 1.35;
  color: #7a91a8;
}

.dark-mini-cal {
  border: 1px solid #d9ceb8;
  border-radius: 0.85rem;
  background: #fffdf8;
  padding: 0.65rem 0.7rem 0.75rem;
}

.dark-mini-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.dark-mini-cal-label {
  margin: 0;
  flex: 1;
  text-align: center;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  font-weight: 650;
  color: #1f2e3f;
}

.dark-mini-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid #d9ceb8;
  border-radius: 0.5rem;
  background: #f5f0e6;
  color: #3a5168;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.dark-mini-nav:hover {
  background: #e0e8de;
  color: #1f2e3f;
}

.dark-mini-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
  margin-bottom: 0.25rem;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a97a6;
}

.dark-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
}

.dark-mini-day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  background: transparent;
  color: #1f2e3f;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}

.dark-mini-day:hover:not(:disabled) {
  border-color: #c2d1be;
  background: #f2f5f1;
}

.dark-mini-day.is-muted {
  color: #b0b8c0;
  cursor: default;
}

.dark-mini-day.is-in-range {
  background: #eef3ec;
  border-color: #d5e0d2;
}

.dark-mini-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #5a6d80;
}

.dark-mini-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dark-mini-legend-item::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.25rem;
  border: 1px solid transparent;
}

.dark-mini-legend-item.is-dark::before {
  background: #5c6670;
  border-color: #4a535c;
}

.dark-mini-legend-item.is-extra::before {
  background: #7a9a74;
  border-color: #5f7f5a;
}

.dark-mini-day.is-off-day:not(.is-extra):not(.is-dark) {
  color: #8a97a6;
}

.dark-mini-day.is-today:not(.is-dark):not(.is-extra) {
  box-shadow: inset 0 0 0 1.5px #7a9a74;
}

.dark-mini-day.is-dark {
  background: #5c6670;
  border-color: #4a535c;
  color: #f8fafb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.dark-mini-day.is-dark::after {
  content: "";
  position: absolute;
  bottom: 0.22rem;
  left: 50%;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: #f0a090;
  transform: translateX(-50%);
}

.dark-mini-day.is-dark:hover {
  background: #6d7882;
  border-color: #5c6670;
  color: #fff;
}

.dark-mini-day.is-extra {
  background: #e4efe1;
  border-color: #5f7f5a;
  color: #1f2e3f;
  box-shadow: inset 0 0 0 1.5px #7a9a74;
}

.dark-mini-day.is-extra::after {
  content: "";
  position: absolute;
  bottom: 0.22rem;
  left: 50%;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: #5f7f5a;
  transform: translateX(-50%);
}

.dark-mini-day.is-extra:hover {
  background: #d3e4cf;
  border-color: #5f7f5a;
}

.dark-day-chip.is-extra-chip {
  background: #e4efe1;
  border-color: #9bb396;
  color: #2f4a2c;
}

.edit-trial-message {
  margin: 0;
  min-height: 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5f7f5a;
}

.edit-trial-message.is-error {
  color: #8a4330;
}

.edit-trial-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 0.9rem 1.15rem 1.1rem;
  border-top: 1px solid #ebe3d4;
  background: #f5f0e6;
}

.contact-sheets-portal {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: flex;
  justify-content: flex-end;
}

.contact-sheets-portal[hidden] {
  display: none;
}

.contact-sheets-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 27, 39, 0.4);
}

.contact-sheets-drawer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 42rem);
  height: 100%;
  max-height: 100dvh;
  border-left: 1px solid #e0e0e0;
  background: #fbf8f1;
  box-shadow: -18px 0 40px -28px rgba(17, 27, 39, 0.45);
  animation: edit-drawer-in 0.28s ease both;
}

.case-details-body {
  gap: 0.85rem;
}

.case-details-intake {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.case-details-intake .field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin: 0;
}

.case-details-intake .field > span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #3a5168;
}

.case-details-value {
  min-height: 2.35rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.65rem;
  background: #fffdf8;
  color: #1f2e3f;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.35;
  word-break: break-word;
}

.case-details-value.is-empty {
  color: #9aa3ab;
  font-weight: 500;
}

.case-details-value.is-multiline {
  min-height: 3.5rem;
  white-space: pre-wrap;
}

.case-details-value a {
  color: #3a657e;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12rem;
}

.case-details-row {
  display: grid;
  gap: 0.65rem;
}

.case-details-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-details-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-details-row-dates {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-details-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.case-details-check {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: #f5f0e6;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8a97a6;
}

.case-details-check.is-on {
  background: #e4efe1;
  border-color: #9bb396;
  color: #2f4a2c;
}

.case-details-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.55rem;
  background: #fffdf8;
  font-size: 0.8125rem;
  font-weight: 650;
  color: #3a5168;
}

.case-details-flag.is-on {
  background: #f8e8df;
  border-color: #e0c4b4;
  color: #8a4330;
}

.case-details-attorneys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.case-details-attorney-col {
  border: 1px solid #e0e0e0;
  border-radius: 0.75rem;
  background: #fffdf8;
  padding: 0.75rem;
}

.case-details-attorney-col h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2e3f;
}

.case-details-attorney-card {
  padding: 0.55rem 0;
  border-top: 1px solid #ebe3d4;
}

.case-details-attorney-card:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.case-details-attorney-card h4 {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2e3f;
}

@media (max-width: 720px) {
  .case-details-row-3,
  .case-details-row-2,
  .case-details-row-dates,
  .case-details-attorneys {
    grid-template-columns: 1fr;
  }
}

.contact-sheets-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem 0.75rem;
  border-bottom: 1px solid #ebe3d4;
}

.contact-sheets-head h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 650;
  color: #1f2e3f;
}

.contact-sheets-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7a91a8;
}

.contact-sheets-body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-sheet-section {
  margin: 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.75rem;
  background: #fffdf8;
}

.contact-sheet-section h3 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a6d80;
}

.contact-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.85rem;
}

.contact-sheet-field dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #8a97a6;
}

.contact-sheet-field dd {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  font-weight: 650;
  color: #1f2e3f;
  word-break: break-word;
}

.contact-sheet-field.span-2 {
  grid-column: 1 / -1;
}

.contact-attorney-card {
  padding: 0.65rem 0;
  border-top: 1px solid #ebe3d4;
}

.contact-attorney-card:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.contact-attorney-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2e3f;
}

.contact-attorney-meta {
  margin: 0.15rem 0;
  font-size: 0.8125rem;
  color: #3a5168;
  line-height: 1.4;
}

.contact-attorney-meta a {
  color: #3a657e;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.12rem;
}

.contact-sheets-empty {
  margin: 0;
  font-size: 0.85rem;
  color: #7a91a8;
}

.contact-sheets-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.15rem 1.1rem;
  border-top: 1px solid #ebe3d4;
  background: #f5f0e6;
}

.contact-sheets-message {
  margin: 0;
  margin-right: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5f7f5a;
  min-height: 1.2rem;
}

.contact-sheets-message.is-error {
  color: #8a4330;
}

.case-details-intake input[type="text"],
.case-details-intake input[type="tel"],
.case-details-intake input[type="email"],
.case-details-intake input[type="number"],
.case-details-intake textarea {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.65rem;
  background: #fffdf8;
  color: #1f2e3f;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.35;
}

.case-details-intake textarea {
  min-height: 4rem;
  resize: vertical;
  font-weight: 600;
}

.case-details-intake input:focus,
.case-details-intake textarea:focus {
  outline: none;
  border-color: #7a9a74;
  box-shadow: 0 0 0 3px rgba(95, 127, 90, 0.2);
}

.case-details-intake input[readonly] {
  background: #f0f2f4;
  color: #5a6570;
  cursor: default;
}

.case-details-check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.28rem 0.55rem;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: #f5f0e6;
  font-size: 0.75rem;
  font-weight: 700;
  color: #3a5168;
  cursor: pointer;
  user-select: none;
}

.case-details-check-label:has(input:checked) {
  background: #e4efe1;
  border-color: #9bb396;
  color: #2f4a2c;
}

.case-details-check-label input {
  width: 0.9rem;
  height: 0.9rem;
  accent-color: #5f7f5a;
}

.case-details-assign {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.65rem;
  background: #fffdf8;
  font-size: 0.8125rem;
  font-weight: 650;
  color: #3a5168;
  cursor: pointer;
}

.case-details-assign input {
  width: 1rem;
  height: 1rem;
  accent-color: #8a4330;
}

.case-tracker-table tbody tr {
  cursor: pointer;
}

.case-tracker-table .task-case-name {
  cursor: pointer;
}

.case-tracker-table .task-case-name:hover {
  color: #3a657e;
  text-decoration: underline;
  text-underline-offset: 0.12rem;
}

.task-mini-card {
  cursor: pointer;
}

.task-mini-card:hover {
  outline: 1.5px solid #9bb396;
  outline-offset: 1px;
}

.case-name-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
}

.case-edit-btn {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  height: 1.65rem;
  padding: 0 0.45rem;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  background: transparent;
  color: #5f7f5a;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.case-edit-btn:hover {
  border-color: #c2d1be;
  background: #e0e8de;
  color: #1f2e3f;
}

.intake-actions-stack .btn-primary,
.intake-actions-stack .btn-ghost {
  width: auto;
  white-space: nowrap;
  flex: 0 0 auto;
}

.intake-actions-stack .btn-ghost {
  width: 100%;
}

.form-message-inline {
  margin: 0;
  max-width: none;
  line-height: 1.3;
  text-align: right;
}

@media (max-width: 900px) {
  .intake-mid-block {
    grid-template-columns: 1fr;
  }

  .intake-actions-stack {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding-top: 0;
    min-width: 0;
    max-width: none;
  }

  .intake-save-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .intake-actions-stack .btn-primary,
  .intake-actions-stack .btn-ghost {
    width: auto;
  }

  .form-message-inline {
    max-width: none;
    text-align: left;
    flex: 1 1 100%;
  }
}

.intake-row {
  display: grid;
  gap: 0.7rem 1rem;
  width: 100%;
}

.intake-row-1 {
  grid-template-columns: 1fr;
}

.intake-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intake-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.intake-row-setting,
.intake-row-trial-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-start;
  gap: 0.7rem 1rem;
  width: auto;
  max-width: 100%;
}

.intake-row-trial-dates .row-spacer {
  flex: 0 0 4rem;
  width: 4rem;
  min-height: 1px;
}

.intake-row-setting .field-setting {
  flex: 0 1 16rem;
  width: 16rem;
  max-width: 100%;
}

.field-compact-date {
  flex: 0 0 auto;
  width: auto;
}

.field-compact-date input[type="text"] {
  width: 10.25rem;
  max-width: 100%;
  padding-right: 0.55rem;
  font-variant-numeric: tabular-nums;
}

.field-trial-dates-count {
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
}

.field-trial-dates-count input {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.field-cr-status-compact {
  flex: 0 0 auto;
  width: 15.5rem;
  max-width: 100%;
  z-index: 6;
}

.field-cr-status-compact .combobox-wrap,
.field-cr-status-compact .combobox-input {
  width: 100%;
}

.field-cr-status-compact .combobox-input {
  padding-right: 2.35rem;
}

.field-cr-status-compact .combobox-menu {
  min-width: 100%;
  width: max(100%, 16rem);
}

@media (max-width: 767px) {
  .intake-row-2,
  .intake-row-3 {
    grid-template-columns: 1fr;
  }

  .intake-row-setting,
  .intake-row-trial-dates {
    flex-direction: column;
    align-items: stretch;
  }

  .intake-row-trial-dates .row-spacer {
    display: none;
  }

  .intake-row-setting .field-setting,
  .field-compact-date,
  .field-compact-date input[type="text"],
  .field-trial-dates-count,
  .field-cr-status-compact {
    width: 100%;
  }

  .field-cr-status-compact .combobox-menu {
    min-width: 0;
    width: 100%;
  }
}

.attorney-column {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.attorney-column-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.attorney-column-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #3a5168;
}

.btn-add-attorney {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  border: 1px solid #7a9a74;
  background: #5f7f5a;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: #fbf8f1;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-add-attorney:hover {
  background: #4a6646;
  border-color: #4a6646;
}

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

.attorney-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.attorney-card {
  border: 1px solid #d9ceb8;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #fbf8f1 0%, #f5f0e6 100%);
  padding: 0.65rem 0.8rem 0.75rem;
  box-shadow: 0 6px 18px -14px rgba(17, 27, 39, 0.28);
  animation: rise-in 0.3s ease both;
}

.attorney-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.attorney-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5f7f5a;
}

.btn-remove-attorney {
  border: 1px solid #d9ceb8;
  border-radius: 0.45rem;
  background: transparent;
  padding: 0.25rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 650;
  color: #516a84;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-remove-attorney:hover {
  border-color: #d9896a;
  background: #f3e0d4;
  color: #a85a3c;
}

.attorney-card-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .attorney-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attorney-card-grid .field-span-2 {
    grid-column: 1 / -1;
  }
}

.attorney-address-row {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) 4.25rem 6rem;
  align-items: end;
}

.attorney-address-row .field-state input,
.attorney-address-row .field-zip input {
  text-align: center;
  text-transform: uppercase;
}

.attorney-address-row .field-zip input {
  text-transform: none;
}

@media (max-width: 639px) {
  .attorney-address-row {
    grid-template-columns: 1fr;
  }
}

.attorney-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 11rem;
}

.attorney-mini {
  border-left: 3px solid #7a9a74;
  padding-left: 0.55rem;
  line-height: 1.35;
}

.attorney-mini-name {
  font-weight: 650;
  color: #1f2e3f;
}

.attorney-mini-meta {
  font-size: 0.72rem;
  color: #516a84;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: #1f2e3f;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f5f0e6;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: #2b3d52;
}

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  border: 1px solid #d9ceb8;
  background: transparent;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #3a5168;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-ghost:hover {
  border-color: #9bb396;
  background: #e0e8de;
}

.btn-icon {
  display: inline-flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  border: 1px solid #d9ceb8;
  background: #fbf8f1;
  color: #1f2e3f;
  transition: background 0.15s ease;
}

.btn-icon:hover {
  background: #e0e8de;
}

.trial-card {
  border: 1px solid #d9ceb8;
  border-radius: 1rem;
  background: rgba(251, 248, 241, 0.92);
  padding: 1rem 1.15rem;
  transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease;
  animation: rise-in 0.35s ease both;
}

.trial-card:hover {
  border-color: #9bb396;
  box-shadow: 0 10px 28px -14px rgba(17, 27, 39, 0.2);
  transform: translateY(-1px);
}

.trial-card.overlap-card {
  border-color: #d9896a;
  background: linear-gradient(135deg, #fbf8f1 0%, #f3e0d4 100%);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.status-pill.overlap-flag {
  background: #f3e0d4;
  color: #a85a3c;
}

.cr-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 0.4rem;
  background: #e0e8de;
  padding: 0.2rem 0.55rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #3b5139;
  white-space: nowrap;
}

.sheet-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #A0AAB2;
  border-radius: 0.65rem;
  background: #ffffff;
  box-shadow: 0 10px 30px -16px rgba(17, 27, 39, 0.22);
  /* Height is controlled by the Database flex chain (100% of remaining viewport). */
  height: 100%;
  max-height: none;
  min-height: 0;
}

.sheet-split {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.sheet-frozen {
  flex: 0 0 auto;
  z-index: 5;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fbf8f1;
  box-shadow: 6px 0 10px -6px rgba(17, 27, 39, 0.28);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sheet-frozen::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.sheet-scroll {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: auto;
}

.sheet-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 16px;
  table-layout: auto;
  border: 1px solid #A0AAB2;
}

.sheet-table-frozen {
  width: auto;
  min-width: 0;
}

.sheet-table-scroll {
  width: max-content;
  min-width: 100%;
}

.sheet-table thead th,
.sheet-table tbody td {
  border: 1px solid #A0AAB2 !important;
  box-sizing: border-box;
  box-shadow: none !important;
}

/* Kill any legacy overlap / accent edge marks on Database rows */
.sheet-table tbody tr.row-overlap td,
.sheet-table tbody tr.row-overlap:hover td,
.sheet-table tbody tr.row-overlap.is-hover td {
  box-shadow: none !important;
  border-color: #A0AAB2 !important;
}

.sheet-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #1f2e3f;
  background: #1f2e3f;
  color: #f5f0e6;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  padding: 12px 0.85rem;
  /* Keep the pane edge visible while sticky headers overlay scrolling rows */
  box-shadow: 0 1px 0 0 #c5cad0;
}

.sheet-table thead th.is-sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sheet-table thead th.is-sortable:hover {
  background-color: #2a3d52;
  background: #2a3d52;
}

.sheet-table thead th.is-sortable.is-sorted {
  color: #ffffff;
}

.sheet-table thead th.is-sortable .sort-label {
  margin-right: 0.35rem;
}

.sheet-table thead th.is-sortable .sort-indicator {
  display: inline-block;
  font-size: 0.85em;
  font-weight: 700;
  opacity: 0.95;
  vertical-align: baseline;
}

.sheet-table-frozen thead th {
  z-index: 20;
  font-size: 18px;
}

/* Row backgrounds come from inline styles (full-row ATR green or zebra). */
.sheet-table tbody td {
  padding: 12px 0.85rem;
  color: #1f2e3f;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  vertical-align: top;
  background-clip: padding-box;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  box-shadow: none;
}

.sheet-table tbody td:has(.sheet-input),
.sheet-table tbody td:has(.sheet-textarea),
.sheet-table tbody td:has(.sheet-select),
.sheet-table tbody td:has(.sheet-checkbox) {
  padding: 0;
  position: relative;
  cursor: text;
}

.sheet-table tbody td:has(.sheet-select),
.sheet-table tbody td:has(.sheet-checkbox) {
  cursor: pointer;
}

.sheet-table tbody td:focus-within {
  outline: 1.5px solid rgba(95, 127, 90, 0.45);
  outline-offset: -1.5px;
  z-index: 2;
  box-shadow: none;
}

/* Full-row ATR covering green */
.sheet-table tbody tr.row-atr-covering td,
.sheet-table tbody tr.row-atr-covering td.is-atr-status {
  background-color: #d4edda !important;
  color: #155724 !important;
}

.sheet-table .sheet-select.sheet-cr-pill.cr-tone-atr-force,
.sheet-table tbody tr.row-atr-covering td.col-cr-status .sheet-select.sheet-cr-pill {
  background-color: #d4edda !important;
  color: #155724 !important;
  font-weight: 700 !important;
  border-color: #A0AAB2 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23155724' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.sheet-table-frozen tbody td,
.sheet-table-scroll tbody td,
.sheet-table tbody tr.row-atr-covering td {
  border-color: #A0AAB2 !important;
}

.sheet-table-frozen tbody td {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  padding-top: 10px;
  padding-bottom: 10px;
}

.sheet-table-scroll tbody td {
  max-width: none;
}

.sheet-table .col-route-flag,
.sheet-table .col-route-star {
  width: 2.5rem;
  min-width: 2.5rem;
  max-width: 2.5rem;
  text-align: center;
  vertical-align: middle;
  padding: 0;
}

.sheet-table thead th.col-route-flag,
.sheet-table thead th.col-route-star {
  padding: 10px 0.15rem;
  font-size: 0.85rem;
  text-align: center;
}

.sheet-table tbody td.col-route-flag,
.sheet-table tbody td.col-route-star {
  padding: 0;
}

.sheet-table-frozen .col-freeze-judge,
.sheet-table-frozen thead th.col-freeze-judge {
  min-width: 8.5rem;
  width: 8.5rem;
  max-width: 10rem;
}

.sheet-table-frozen .col-freeze-case-number,
.sheet-table-frozen thead th.col-freeze-case-number {
  min-width: 8rem;
  width: 8rem;
  max-width: 9.5rem;
}

.sheet-table-frozen .col-freeze-case-name,
.sheet-table-frozen thead th.col-freeze-case-name {
  min-width: 14rem;
  width: 14rem;
  max-width: 16rem;
}

.sheet-table-scroll .col-setting,
.sheet-table-scroll thead th.col-setting {
  min-width: 9rem;
  width: 10rem;
  max-width: 12rem;
}

.sheet-table-scroll .col-notes,
.sheet-table-scroll .col-partner-notes,
.sheet-table-scroll thead th.col-notes,
.sheet-table-scroll thead th.col-partner-notes {
  min-width: 16rem;
  width: 18rem;
  max-width: none;
}

.sheet-table-scroll .col-attorney,
.sheet-table-scroll thead th.col-attorney {
  min-width: 14rem;
  width: 16rem;
  max-width: none;
}

.sheet-table .route-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.5rem;
  margin: 0;
  padding: 0.35rem 0.1rem;
  border: 0;
  background: transparent;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 0;
}

.sheet-table .route-toggle.is-off {
  color: #9aa3ab;
  opacity: 0.55;
  filter: grayscale(1);
}

.sheet-table .route-toggle.is-on {
  opacity: 1;
  filter: none;
}

.sheet-table .route-toggle.route-flag.is-on {
  color: #b54a3c;
}

.sheet-table .route-toggle.route-star.is-on {
  color: #c4a01a;
}

.sheet-table .route-toggle:hover {
  background: rgba(197, 202, 208, 0.28);
  opacity: 1;
  filter: none;
}

.sheet-table .route-toggle:focus-visible {
  outline: 2px solid #6f8570;
  outline-offset: -2px;
}

.sheet-table tbody td.cell-case-name {
  padding: 0;
  position: relative;
  overflow: visible;
}

.sheet-table .case-name-cell .sheet-textarea {
  width: 100%;
  min-width: 0;
  padding-right: 0.35rem;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.sheet-table .partner-notes-readonly {
  display: block;
  width: 100%;
  min-height: 2.5rem;
  padding: 8px 12px;
  box-sizing: border-box;
  color: #1f2e3f;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: visible;
  user-select: text;
  cursor: default;
}

.sheet-table .partner-notes-empty {
  color: #9aa3ab;
  font-weight: 500;
}

.sheet-table .case-name-cell,
.case-tracker-table .case-name-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.case-tracker-table .case-name-cell {
  grid-template-columns: minmax(0, 1fr) auto;
}

.sheet-table .case-row-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem;
  align-self: stretch;
  padding: 0.35rem 0.3rem;
  border-left: 1px solid #A0AAB2;
  box-sizing: border-box;
}

.sheet-table .case-row-actions .case-edit-btn {
  margin-top: 0;
  width: 100%;
  min-width: 2.4rem;
  height: auto;
  padding: 0.2rem 0.35rem;
  font-size: 0.68rem;
  line-height: 1.2;
}

.sheet-table .case-row-actions .case-menu-btn {
  align-self: center;
  width: 1.6rem;
  min-width: 1.6rem;
  border-left: 0;
  padding: 0.15rem 0;
}

.sheet-table .case-menu-btn,
.case-tracker-table .case-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 1.6rem;
  min-width: 1.6rem;
  margin: 0;
  padding: 0.35rem 0.15rem;
  border: 0;
  border-left: 1px solid #A0AAB2;
  background: transparent;
  color: #7a8490;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 0;
}

.sheet-table .case-menu-btn:hover,
.sheet-table .case-menu-btn[aria-expanded="true"],
.case-tracker-table .case-menu-btn:hover,
.case-tracker-table .case-menu-btn[aria-expanded="true"] {
  background: rgba(197, 202, 208, 0.35);
  color: #3a424a;
}

.sheet-table .case-menu-btn:focus-visible,
.case-tracker-table .case-menu-btn:focus-visible {
  outline: 2px solid #6f8570;
  outline-offset: -2px;
}

.case-context-menu {
  position: fixed;
  z-index: 120;
  min-width: 15.5rem;
  max-width: min(20rem, calc(100vw - 16px));
  padding: 0.3rem;
  border: 1px solid #c5cad0;
  border-radius: 0.45rem;
  background: #fbf8f1;
  box-shadow: 0 10px 28px -14px rgba(17, 27, 39, 0.4);
}

.case-context-menu[hidden] {
  display: none !important;
}

.case-context-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 0.3rem;
  background: transparent;
  color: #1f2e3f;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.case-context-item:hover {
  background: #e8edf1;
}

.case-context-item.is-danger {
  color: #8a4330;
}

.case-context-item.is-danger:hover {
  background: #f8e8df;
}

.case-context-icon {
  width: 1.1rem;
  flex: 0 0 auto;
  text-align: center;
}

.case-context-confirm-text {
  margin: 0.2rem 0.65rem 0.45rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1f2e3f;
}

.case-context-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sheet-table .cell-strong {
  font-weight: 600;
  color: #1f2e3f;
}

.sheet-table .cell-center {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.sheet-table .col-date,
.sheet-table thead th.col-date {
  text-align: right;
  padding-right: 0.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sheet-table .col-trial-days {
  width: 120px;
  min-width: 120px;
  max-width: 160px;
  text-align: center;
  white-space: normal;
  overflow: visible;
  font-variant-numeric: tabular-nums;
  vertical-align: top;
}

.sheet-table thead th.col-trial-days {
  width: 120px;
  min-width: 120px;
  max-width: 160px;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  white-space: normal;
}

.sheet-table .col-cr-status,
.sheet-table thead th.col-cr-status {
  width: 220px;
  min-width: 220px;
  max-width: 280px;
  white-space: normal;
  vertical-align: top;
}

.sheet-table .col-setting,
.sheet-table thead th.col-setting {
  width: 160px;
  min-width: 160px;
  max-width: 200px;
  white-space: normal;
  vertical-align: top;
}

.sheet-table .cell-notes {
  min-width: 18rem;
  width: 22%;
  max-width: none;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
  vertical-align: top;
  overflow: visible;
}

.sheet-table .sheet-input,
.sheet-table .sheet-textarea {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  padding: 10px 14px;
  outline: none;
  border-radius: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

.sheet-table .sheet-textarea {
  resize: none;
  min-height: 100%;
  height: 100%;
  max-height: none;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: hidden;
  field-sizing: content;
}

.sheet-table .cell-notes .sheet-textarea {
  resize: none;
  min-height: 100%;
  height: 100%;
  max-height: none;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  field-sizing: content;
  padding: 8px 12px;
}

.sheet-table .sheet-input:focus,
.sheet-table .sheet-textarea:focus {
  outline: none;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 8px 12px;
  position: relative;
  z-index: 1;
}

.sheet-table .sheet-input:focus-visible,
.sheet-table .sheet-textarea:focus-visible {
  outline: none;
  box-shadow: none;
}

.sheet-table tbody td:focus-within .sheet-input,
.sheet-table tbody td:focus-within .sheet-textarea {
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 8px 12px;
}

.sheet-table .col-date .sheet-input {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  word-break: normal;
}

.sheet-table .col-trial-days .sheet-input,
.sheet-table .col-trial-days .sheet-textarea {
  text-align: center;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: hidden;
  text-overflow: clip;
  font-variant-numeric: tabular-nums;
  resize: none;
  min-height: 1.4em;
  height: auto;
  field-sizing: content;
}

.sheet-table .col-cr-status .sheet-input,
.sheet-table .col-cr-status .sheet-textarea,
.sheet-table .col-cr-status .sheet-select {
  width: 100%;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

.sheet-table .sheet-cr-pill-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 6px 8px;
  box-sizing: border-box;
}

.sheet-table .sheet-select {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  padding: 10px 30px 10px 14px;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231f2e3f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
}

.sheet-table .sheet-select.sheet-cr-pill,
.case-tracker-table .sheet-select.sheet-cr-pill {
  display: inline-block;
  width: 100%;
  height: auto;
  min-height: 0;
  border-radius: 12px;
  padding: 4px 28px 4px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  border: 1px solid transparent;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 7px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.sheet-table .sheet-select.sheet-cr-pill {
  font-size: 15px;
  padding: 6px 30px 6px 14px;
  line-height: 1.4;
}

.sheet-table .sheet-select.sheet-cr-pill.cr-tone-empty,
.case-tracker-table .sheet-select.sheet-cr-pill.cr-tone-empty {
  background-color: #e8ecef;
  color: #5a6570;
  border-color: #c5cad0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a6570' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sheet-table .sheet-select.sheet-cr-pill.cr-tone-sage,
.case-tracker-table .sheet-select.sheet-cr-pill.cr-tone-sage {
  background-color: #d5e3d2;
  color: #2f4a2e;
  border-color: #9bb396;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%232f4a2e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sheet-table .sheet-select.sheet-cr-pill.cr-tone-slate,
.case-tracker-table .sheet-select.sheet-cr-pill.cr-tone-slate {
  background-color: #d5dee8;
  color: #243447;
  border-color: #9aafc2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23243447' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sheet-table .sheet-select.sheet-cr-pill.cr-tone-gold,
.case-tracker-table .sheet-select.sheet-cr-pill.cr-tone-gold {
  background-color: #ead9b0;
  color: #5c4a1f;
  border-color: #c4a86a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235c4a1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sheet-table .sheet-select.sheet-cr-pill.cr-tone-sky,
.case-tracker-table .sheet-select.sheet-cr-pill.cr-tone-sky {
  background-color: #d3e5f0;
  color: #2a4d63;
  border-color: #8fb4c9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%232a4d63' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sheet-table .sheet-select.sheet-cr-pill.cr-tone-moss,
.case-tracker-table .sheet-select.sheet-cr-pill.cr-tone-moss {
  background-color: #cfe0c8;
  color: #2b4528;
  border-color: #86a67d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%232b4528' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sheet-table .sheet-select.sheet-cr-pill.cr-tone-mist,
.case-tracker-table .sheet-select.sheet-cr-pill.cr-tone-mist {
  background-color: #dde3ea;
  color: #3a4654;
  border-color: #a8b2bd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%233a4654' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sheet-table .sheet-select.sheet-cr-pill.cr-tone-clay,
.case-tracker-table .sheet-select.sheet-cr-pill.cr-tone-clay {
  background-color: #edd7cb;
  color: #6b3a2a;
  border-color: #d0a08c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b3a2a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sheet-table .sheet-select:focus,
.sheet-table .sheet-select:focus-visible {
  outline: none;
  box-shadow: none;
}

.sheet-table .sheet-select:not(.sheet-cr-pill):focus,
.sheet-table .sheet-select:not(.sheet-cr-pill):focus-visible {
  border: 0;
  background-color: transparent;
}

.sheet-table .sheet-select.sheet-cr-pill:focus,
.sheet-table .sheet-select.sheet-cr-pill:focus-visible {
  border-width: 1px;
  border-style: solid;
  box-shadow: 0 0 0 2px rgba(31, 46, 63, 0.18);
  filter: brightness(1.03);
}

.sheet-table tbody td:focus-within .sheet-select {
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 8px 28px 8px 12px;
}

.sheet-table tbody td:focus-within .sheet-select.sheet-cr-pill {
  height: auto;
  min-height: 0;
  padding: 4px 28px 4px 12px;
}

.sheet-table .col-setting .sheet-input,
.sheet-table .col-setting .sheet-textarea {
  width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: hidden;
  text-overflow: clip;
  field-sizing: content;
}

.sheet-table td.col-case-name,
.sheet-table td.col-freeze-case-name {
  overflow: visible;
  white-space: normal;
  word-break: break-word;
}

.sheet-table td.col-date {
  overflow: visible;
  white-space: nowrap;
  word-break: normal;
}

.sheet-table .col-call-list,
.sheet-table thead th.col-call-list {
  width: 5.5rem;
  min-width: 5.5rem;
  max-width: 6.5rem;
  text-align: center;
  vertical-align: middle;
}

.sheet-table tbody td.col-call-list {
  padding: 0;
  cursor: pointer;
}

.sheet-table .sheet-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 2.5rem;
  padding: 8px 12px;
  margin: 0;
  cursor: pointer;
}

.sheet-table .sheet-checkbox {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #4a7c9b;
  cursor: pointer;
}

.sheet-table .col-follow-up,
.sheet-table thead th.col-follow-up {
  width: 7.5rem;
  min-width: 7.5rem;
  max-width: 9rem;
}

.detail-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a8b8c9;
}

.cal-cell {
  box-sizing: border-box;
  min-height: 115px;
  height: 115px;
  border-right: 1px solid #ebe3d4;
  border-bottom: 1px solid #ebe3d4;
  padding: 10px 8px;
  background: #fbf8f1;
  text-align: left;
  vertical-align: top;
  overflow: hidden;
  transform: none;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cal-cell:nth-child(7n) {
  border-right: none;
}

.cal-cell.muted {
  background: #f5f0e6;
  color: #a8b8c9;
}

.cal-cell.has-trial {
  background: linear-gradient(180deg, #f2f5f1 0%, #fbf8f1 100%);
}

.cal-cell.has-overlap {
  background: linear-gradient(180deg, #f8e8df 0%, #fbf8f1 70%);
  box-shadow: inset 0 0 0 2px rgba(217, 137, 106, 0.55);
}

.cal-cell.is-today .day-num {
  background: #1f2e3f;
  color: #f5f0e6;
}

.cal-cell:not(.muted):hover {
  background: #e0e8de;
  cursor: pointer;
}

.cal-cell.has-overlap:not(.muted):hover {
  background: linear-gradient(180deg, #f3e0d4 0%, #fbf8f1 70%);
}

.cal-cell.selected {
  outline: 2px solid #5f7f5a;
  outline-offset: -2px;
  z-index: 1;
}

.day-num {
  display: inline-flex;
  height: 24px;
  min-width: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.cal-chip {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  border: 1px solid rgba(31, 46, 63, 0.08);
  transform: none;
}

.cal-chip-case {
  background: #d5e4f0;
  color: #1e3348;
  cursor: pointer;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.cal-chip-case:hover {
  border-color: rgba(31, 46, 63, 0.35);
  box-shadow: 0 2px 6px rgba(17, 27, 39, 0.18);
  transform: translateY(-1px);
}

.cal-chip-case:focus-visible {
  outline: 2px solid #1f2e3f;
  outline-offset: 1px;
}

.sheet-table tbody tr.is-flash td {
  background-color: #fff4c2 !important;
  box-shadow: inset 0 0 0 2px rgba(133, 100, 4, 0.45);
}

.cal-chip-more {
  background: #e8edf1;
  color: #4a5d72;
  font-weight: 600;
}

.cal-chip.call-chip {
  display: block;
  width: 100%;
  border: 0;
  text-align: left;
  background: #4a7c9b;
  color: #f4f8fb;
  cursor: pointer;
}

.cal-cell.has-call:not(.has-trial) {
  background: linear-gradient(180deg, #edf3f7 0%, #fbf8f1 100%);
}

.status-pill.call-flag {
  background: #d7e6ef;
  color: #2f5368;
}

.trial-card.call-card {
  border-color: #9bb7c9;
  box-shadow: 0 0 0 1px rgba(74, 124, 155, 0.18);
}

.trial-card.is-call-selected {
  box-shadow: 0 0 0 2px rgba(74, 124, 155, 0.55);
}

.day-call-section,
.day-trial-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.day-call-section + .day-trial-section {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #ebe3d4;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-slide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-panel {
  animation: fade-slide 0.3s ease both;
}

.case-tracker-flow,
.case-tracker-split {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.case-tracker-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1rem;
  align-items: start;
  min-height: calc(100vh - 140px);
}

.case-tracker-list-pane,
.case-tracker-cal-pane {
  min-width: 0;
  border: 1px solid #c5cad0;
  border-radius: 1rem;
  background: #fbf8f1;
  box-shadow: 0 10px 30px -16px rgba(17, 27, 39, 0.22);
  overflow: hidden;
}

.case-tracker-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #c5cad0;
  background: #1f2e3f;
  color: #f5f0e6;
}

.case-tracker-title,
.case-tracker-cal-month {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.case-tracker-count {
  font-size: 0.8rem;
  font-weight: 650;
  color: #d5dee8;
}

.case-tracker-list-wrap {
  overflow: auto;
  max-height: calc(100vh - 200px);
}

.case-tracker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.case-tracker-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #243447;
  color: #f5f0e6;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  padding: 0.65rem 0.7rem;
  border: 1px solid #c5cad0;
  white-space: nowrap;
}

.case-tracker-table tbody td {
  border: 1px solid #c5cad0;
  padding: 0;
  vertical-align: top;
  background: #fbf8f1;
  color: #1f2e3f;
  font-weight: 600;
}

.case-tracker-table tbody tr:nth-child(even) td {
  background: #d5dee8;
}

.case-tracker-table tbody tr.is-flash td {
  background: #e6eee4;
}

.case-tracker-table .col-source {
  width: 4.5rem;
  text-align: center;
  padding: 0.65rem 0.4rem;
}

.case-tracker-table .source-marks {
  display: inline-flex;
  gap: 0.2rem;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.case-tracker-table .col-task-case {
  min-width: 12rem;
  width: 22%;
}

.case-tracker-table .task-case-name {
  padding: 0.55rem 0.35rem 0.15rem 0.7rem;
  font-weight: 700;
  line-height: 1.3;
}

.case-tracker-table .task-case-meta {
  padding: 0 0.7rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #516a84;
}

.case-tracker-table .col-follow-up {
  width: 7.5rem;
  min-width: 7.5rem;
}

.case-tracker-table .col-action-status {
  width: 9.5rem;
  min-width: 9rem;
}

.case-tracker-table .col-task-notes {
  min-width: 14rem;
  width: 36%;
}

.case-tracker-table .sheet-input,
.case-tracker-table .sheet-textarea,
.case-tracker-table .sheet-select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  padding: 8px 12px;
  outline: none;
}

.case-tracker-table .sheet-textarea {
  min-height: 4rem;
  resize: vertical;
  white-space: pre-wrap;
  word-break: break-word;
}

.case-tracker-table .col-date .sheet-input {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.case-tracker-empty {
  margin: 0;
  padding: 2rem 1.25rem;
  text-align: center;
  color: #7a8694;
  font-size: 0.875rem;
}

.case-tracker-cal-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.case-tracker-cal-head .btn-icon,
.case-tracker-cal-head .btn-ghost {
  color: #f5f0e6;
  border-color: rgba(245, 240, 230, 0.28);
  background: transparent;
}

.case-tracker-cal-head .btn-ghost:hover,
.case-tracker-cal-head .btn-icon:hover {
  background: rgba(245, 240, 230, 0.12);
}

.task-calendar-board {
  padding: 0.65rem;
}

.task-calendar-weekdays,
.task-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.task-calendar-weekdays {
  border-bottom: 1px solid #c5cad0;
  margin-bottom: 0.35rem;
}

.task-calendar-weekdays > div {
  padding: 0.4rem 0.2rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #516a84;
}

.task-cal-cell {
  min-height: 5.5rem;
  border: 1px solid #c5cad0;
  background: #fbf8f1;
  padding: 0.35rem;
  text-align: left;
  vertical-align: top;
  cursor: pointer;
}

.task-cal-cell.muted {
  background: #f1ece3;
  color: #a8b8c9;
  cursor: default;
}

.task-cal-cell.has-call {
  background: linear-gradient(180deg, #edf3f7 0%, #fbf8f1 100%);
}

.task-cal-cell.is-today {
  box-shadow: inset 0 0 0 1.5px #5f7f5a;
}

.task-cal-cell.selected {
  box-shadow: inset 0 0 0 2px #4a7c9b;
}

.task-cal-cell .day-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1f2e3f;
  margin-bottom: 0.15rem;
}

.task-day-detail {
  border-top: 1px solid #c5cad0;
  padding: 0.85rem 1rem 1rem;
}

.task-day-detail-title {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2e3f;
}

.task-day-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.task-mini-card {
  border: 1px solid #9bb7c9;
  border-radius: 0.55rem;
  padding: 0.65rem 0.75rem;
  background: #f4f8fb;
}

.task-mini-card h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #243447;
}

.task-mini-card p {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #516a84;
}

.task-mini-notes {
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 1100px) {
  .case-tracker-split {
    grid-template-columns: 1fr;
  }

  .case-tracker-list-wrap {
    max-height: none;
  }
}

@media (max-width: 640px) {
  #view-calendar .calendar-board {
    flex: 0 0 auto;
    width: 100%;
    max-width: 850px;
    min-width: 0;
  }

  #view-calendar .cal-cell {
    min-height: 115px;
    height: 115px;
    padding: 10px 8px;
    font-size: 14px;
  }

  #view-calendar .day-num {
    font-size: 14px;
  }

  #view-calendar .cal-chip {
    font-size: 12px;
    padding: 6px 8px;
    margin-top: 8px;
  }
}

/* ===== Trial Calendar FORCE LAYOUT (wins cascade) ===== */
#view-calendar,
#view-calendar .calendar-main,
#view-calendar .calendar-stage,
#view-calendar .calendar-dual,
#view-calendar .calendar-board,
#view-calendar .calendar-grid {
  transform: none !important;
  zoom: normal !important;
}

#view-calendar .calendar-dual {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 16px !important;
  min-width: 1716px !important;
}

#view-calendar .calendar-board {
  flex: 0 0 850px !important;
  width: 850px !important;
  max-width: 850px !important;
  min-width: 850px !important;
  height: auto !important;
  max-height: none !important;
}

#view-calendar .calendar-board-title {
  font-size: 18px !important;
  line-height: 1.3 !important;
}

#view-calendar .calendar-weekday-row,
#view-calendar .calendar-weekday-row > div {
  font-size: 12px !important;
}

#view-calendar .calendar-weekday-row,
#view-calendar .calendar-grid {
  width: 100% !important;
  box-sizing: border-box !important;
}

#view-calendar .calendar-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  grid-auto-rows: 115px !important;
}

#view-calendar .cal-cell {
  min-height: 115px !important;
  height: 115px !important;
  padding: 10px 8px !important;
  font-size: 14px !important;
  transform: none !important;
}

#view-calendar .day-num {
  font-size: 14px !important;
  height: 24px !important;
  min-width: 24px !important;
}

#view-calendar .cal-chip {
  width: 100% !important;
  box-sizing: border-box !important;
  font-size: 12px !important;
  padding: 6px 8px !important;
  margin-top: 8px !important;
  transform: none !important;
}

/* ?? Archived cases modal ?? */
.archived-cases-portal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.archived-cases-portal[hidden] {
  display: none !important;
}

.archived-cases-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 27, 39, 0.45);
}

.archived-cases-drawer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(96vw, 1180px);
  max-width: 100%;
  height: 100%;
  background: #f7f4ee;
  border-left: 1px solid #A0AAB2;
  box-shadow: -18px 0 40px -24px rgba(17, 27, 39, 0.45);
}

.archived-cases-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #A0AAB2;
  background: #1f2e3f;
  color: #f5f0e6;
}

.archived-cases-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.archived-cases-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: rgba(245, 240, 230, 0.75);
}

.archived-cases-head .btn-manager-close {
  color: #f5f0e6;
}

.archived-cases-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
  gap: 0.65rem;
}

.archive-sheet-wrap {
  flex: 1;
  min-height: 0;
  height: 100%;
  max-height: none;
}

#archive-database-table {
  height: 100%;
  min-height: 0;
}

#archive-database-table .sheet-frozen,
#archive-database-table .sheet-scroll {
  height: 100%;
}

#archive-database-table .sheet-table tbody tr {
  vertical-align: top;
}

#archive-database-table .sheet-table tbody td {
  vertical-align: top;
}

.archive-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: #5a6570;
  font-size: 0.9rem;
}

.archive-empty.hidden {
  display: none;
}

.archived-cases-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid #A0AAB2;
  background: #efeae0;
}

.archive-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2rem;
  font-size: 1rem;
  opacity: 0.35;
}

.archive-marker.is-on {
  opacity: 1;
}

.archive-cell-text {
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: #1f2e3f;
  white-space: normal;
  word-break: break-word;
}

.sheet-table .case-row-actions .btn-archive-close {
  margin: 0;
  width: 100%;
  min-width: 2.4rem;
  padding: 0.25rem 0.35rem;
  border: 1px solid #9bb396;
  border-radius: 0.35rem;
  background: #f5f0e6;
  color: #1f2e3f;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.sheet-table .case-row-actions .btn-archive-close:hover {
  background: #e0e8de;
  border-color: #5f7f5a;
}

.sheet-table-scroll .col-internal-notes,
.sheet-table-scroll thead th.col-internal-notes {
  min-width: 16rem;
  width: 18rem;
  max-width: 24rem;
}

.archive-internal-notes {
  white-space: pre-wrap;
  font-weight: 500;
  color: #3a4652;
}
