@font-face {
  font-family: Geist;
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --navy: #102b48;
  --rail: #102943;
  --text: #172a40;
  --muted: #5d6e80;
  --line: #dae3eb;
  --soft: #f4f7fa;
  --blue: #214d70;
  --accent: #228b86;
  --radius: 12px;
  font-family:
    Geist,
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  color: var(--text);
  background: #f5f7fa;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #4daebc;
  outline-offset: 2px;
}
button {
  border: 0;
  background: none;
}
svg {
  flex-shrink: 0;
  stroke-width: 1.7;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 224px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, #122d4a 0%, #102842 60%, #0e253d 100%);
  color: #e5edf5;
}
.brand {
  height: 99px;
  display: flex;
  align-items: center;
  padding: 0 26px;
  border-bottom: 1px solid #ffffff18;
}
.brand img {
  display: block;
  width: 123px;
  height: auto;
}
.side-nav {
  padding: 29px 14px 14px;
}
.nav-label {
  margin: 0 14px 11px;
  font-size: 0.73rem;
  line-height: 1.2;
  letter-spacing: 0.13em;
  font-weight: 680;
  color: #a2b4c9;
}
.nav-link {
  display: flex;
  gap: 13px;
  align-items: center;
  position: relative;
  min-height: 45px;
  padding: 11px 14px;
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #ccdae7;
  margin: 3px 0;
  transition:
    background 0.16s,
    color 0.16s;
}
.nav-link svg {
  color: #9db3c8;
}
.nav-link:hover {
  background: #ffffff0c;
  color: #fff;
}
.nav-link.active {
  background: #244461;
  color: white;
  font-weight: 620;
  box-shadow: inset 0 0 0 1px #5c77952e;
}
.nav-link.active:before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  background: #76dacc;
  border-radius: 0 2px 2px 0;
  width: 3px;
}
.nav-link.active svg {
  color: #9ce4dc;
}
.nav-rule {
  height: 1px;
  background: #ffffff19;
  margin: 25px 9px 24px;
}
.side-bottom {
  margin-top: auto;
  padding: 17px 18px 22px;
}
.contact-link {
  display: flex;
  gap: 9px;
  padding: 0 5px 16px;
  font-size: 0.88rem;
}
.profile {
  border-top: 1px solid #ffffff20;
  padding: 21px 5px 0;
  display: flex;
  gap: 11px;
  align-items: center;
}
.profile > span {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  color: #d3ecec;
  background: #2a4c61;
  border: 1px solid #547181;
  font-size: 0.86rem;
  font-weight: 650;
}
.profile strong,
.profile small {
  display: block;
}
.profile strong {
  font-size: 0.89rem;
  font-weight: 600;
  color: white;
}
.profile small {
  font-size: 0.77rem;
  color: #b0bfd0;
  margin-top: 1px;
}
.mobile-close,
.mobile-toggle.icon-button,
.nav-scrim {
  display: none;
}
.main {
  width: calc(100% - 224px);
  margin-left: 224px;
  min-width: 0;
}
.topbar {
  height: 61px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(20px, 2.55vw, 44px);
}
.crumb,
.top-meta,
.crumb-icon,
.sample-pill,
.time-tag {
  display: flex;
  align-items: center;
}
.crumb {
  gap: 11px;
  color: #617487;
  font-size: 0.84rem;
  font-weight: 450;
}
.crumb > svg {
  color: #90a0af;
}
.crumb strong {
  font-weight: 590;
  color: #273d52;
}
.crumb-icon {
  color: #708397;
  margin-right: 1px;
}
.top-meta {
  gap: 16px;
  font-size: 0.78rem;
  color: #607286;
  white-space: nowrap;
}
.time-tag {
  gap: 7px;
}
.sample-pill {
  color: #48647a;
  background: #f1f5f8;
  border: 1px solid #dce5eb;
  padding: 4px 9px;
  border-radius: 5px;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 570;
}
.content {
  width: 100%;
  max-width: 1780px;
  margin: 0 auto;
  padding: 31px clamp(20px, 2.55vw, 44px) 44px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(1.9rem, 2.55vw, 2.52rem);
  line-height: 1.13;
  letter-spacing: -0.053em;
  font-weight: 660;
}
.page-heading p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}
.button,
.text-button,
.inline-link,
.icon-button,
.page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button {
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #cfd9e2;
  border-radius: 7px;
  color: #33485e;
  background: white;
  font-size: 0.865rem;
  font-weight: 570;
  line-height: 1.2;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.button:hover,
.page-button:not(:disabled):hover {
  background: #f2f6fa;
  border-color: #a9bac7;
}
.button.primary {
  background: #153b59;
  border-color: #153b59;
  color: white;
  box-shadow: 0 2px 3px #10263c12;
}
.button.primary:hover {
  background: #204e6b;
  border-color: #204e6b;
}
.button.main-cta {
  font-size: 0.92rem;
  min-height: 42px;
  padding: 9px 17px;
  gap: 8px;
}
.text-button,
.inline-link {
  gap: 6px;
  color: #236a76;
  font-weight: 620;
  font-size: 0.85rem;
  padding: 4px 0;
}
.text-button:hover,
.inline-link:hover {
  text-decoration: underline;
}
.inline-link {
  display: inline;
  padding: 0;
  font-size: inherit;
}
.icon-button,
.page-button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  color: #61768a;
  padding: 0;
}
.icon-button:hover {
  background: #eef3f6;
}
.metrics {
  display: grid;
  grid-template-columns: 1.12fr 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 25px;
}
.metric {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-height: 142px;
  padding: 17px 19px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 4px #13223a04;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.metric:hover {
  box-shadow: 0 3px 10px #1c384711;
  border-color: #a7bdcc;
}
.metric-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #465b6e;
  font-size: 0.875rem;
  font-weight: 565;
  line-height: 1.25;
}
.metric-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #e4f1f1;
  color: #286a73;
}
.metric-icon.lilac {
  background: #eae8f8;
  color: #6955a4;
}
.metric-icon.amber {
  background: #fcf0d7;
  color: #9b6a19;
}
.metric-icon.mint {
  background: #dff1ec;
  color: #287b63;
}
.metric-value {
  font-size: clamp(2rem, 2.6vw, 2.55rem);
  line-height: 1;
  letter-spacing: -0.065em;
  font-weight: 645;
  margin: 13px 0 8px;
  font-variant-numeric: tabular-nums;
}
.metric-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.77rem;
  line-height: 1.23;
  color: #627588;
}
.feature-metric {
  background: linear-gradient(115deg, #153751, #163b55 75%, #1a415b);
  border-color: #163b55;
  color: white;
  isolation: isolate;
}
.feature-metric .metric-heading {
  color: #e2f1f2;
}
.feature-metric .metric-icon {
  color: #a0e5da;
  background: #ffffff13;
  border: 1px solid #ffffff1e;
}
.feature-metric .metric-caption {
  color: #d2e1e7;
}
.feature-metric .metric-value {
  position: relative;
  z-index: 1;
}
.spark {
  position: absolute;
  right: 11px;
  bottom: 30px;
  width: 36%;
  max-width: 125px;
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.tiny-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.lilac-dot {
  background: #8b77c5;
}
.amber-dot {
  background: #c38a32;
}
.mint-dot {
  background: #4b9e86;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 5px #15253a04;
  overflow: hidden;
}
.panel-title {
  min-height: 68px;
  padding: 17px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.title-with-count {
  display: flex;
  align-items: center;
  gap: 10px;
}
h2 {
  font-size: 1.23rem;
  line-height: 1.25;
  font-weight: 640;
  letter-spacing: -0.035em;
}
.count-badge,
.group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  font-weight: 570;
  line-height: 1.2;
}
.count-badge {
  background: #eff3f7;
  color: #586e81;
  border: 1px solid #dfe7ed;
  padding: 3px 7px;
}
.segmented {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  background: #eef2f5;
  border: 1px solid #e1e7ed;
  border-radius: 7px;
  padding: 3px;
}
.segmented button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  font-size: 0.81rem;
  font-weight: 530;
  color: #627386;
  border-radius: 4px;
  padding: 5px 10px;
  line-height: 1.3;
  min-height: 27px;
}
.segmented button.on {
  background: white;
  box-shadow: 0 1px 3px #1c344b21;
  color: #243c52;
}
.table-tools {
  padding: 0 21px 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.search-field,
.office-filter,
.range-select select {
  background: white;
  border: 1px solid #d7e0e7;
  border-radius: 7px;
}
.search-field {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 11px;
  gap: 8px;
  color: #778a9b;
  height: 38px;
  flex: 1;
}
.search-field:focus-within {
  outline: 2px solid #82b9bc;
  outline-offset: 1px;
}
.search-field input {
  border: 0;
  outline: none;
  width: 100%;
  height: 100%;
  min-width: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.865rem;
}
.search-field input:focus-visible {
  outline: 0;
}
input::placeholder,
textarea::placeholder {
  color: #768798;
  opacity: 1;
}
.office-filter {
  flex: 0 1 176px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: #51677a;
  min-width: 126px;
}
.select-wrap {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
}
.select-wrap > svg {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b7f90;
}
.select-wrap select {
  width: 100%;
  appearance: none;
  padding: 8px 32px 8px 11px;
  text-overflow: ellipsis;
}
.office-filter select {
  background: transparent;
  border: 0;
  font-size: 0.86rem;
  color: #33495d;
  height: 36px;
  padding: 7px 19px 7px 0;
  cursor: pointer;
}
.office-filter .select-wrap > svg {
  right: 0;
}
.filters-button {
  min-width: 90px;
  border-color: #d7e0e7;
}
.filters-button.selected {
  background: #eaf4f2;
  border-color: #a0c6c1;
  color: #225e64;
}
.filters-button span {
  font-size: 0.7rem;
  background: #cfe6e2;
  padding: 2px 5px;
  border-radius: 4px;
}
.filters-panel {
  border-top: 1px solid #e6edf1;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  background: #f8fafb;
  padding: 14px 21px;
}
.filters-panel label {
  flex: 0 1 190px;
}
.filters-panel .text-button {
  margin-bottom: 7px;
}
.filter-chips {
  display: flex;
  gap: 6px;
  padding: 0 21px 12px;
}
.filter-chips button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #edf5f4;
  color: #286a68;
  font-size: 0.76rem;
  border-radius: 4px;
  padding: 4px 7px;
}
.table-scroll {
  overflow-x: auto;
  scrollbar-color: #c4d1dc #f2f5f7;
}
.case-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
  line-height: 1.3;
  text-align: left;
}
.case-table thead th {
  background: #f5f7f9;
  border-block: 1px solid var(--line);
  color: #566c7f;
  font-size: 0.76rem;
  font-weight: 620;
  white-space: nowrap;
  padding: 10px 12px;
}
.case-table th:first-child,
.case-table td:first-child {
  padding-left: 22px;
}
.case-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #e5eaef;
  vertical-align: middle;
}
.case-table td:first-child {
  width: 23%;
}
.case-table td:nth-child(2) {
  width: 27%;
}
.sort-button {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
}
.office-band th {
  padding: 0 !important;
  background: #edf3f6;
  border-bottom: 1px solid #dce5eb;
}
.office-band button {
  width: 100%;
  padding: 8px 21px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  color: #35516a;
  font-size: 0.875rem;
  line-height: 1.3;
  font-weight: 620;
}
.office-band button:hover {
  background: #e6eef3;
}
.office-icon {
  display: inline-flex;
  color: #50728c;
}
.group-count {
  min-width: 19px;
  height: 18px;
  padding: 1px 4px;
  background: #e1e9ee;
  color: #536d80;
  font-size: 0.69rem;
}
.office-band button > svg:last-child {
  margin-left: auto;
  color: #718698;
  transition: transform 0.15s;
}
.office-band .turn {
  transform: rotate(-90deg);
}
.case-row {
  cursor: pointer;
}
.case-row:hover {
  background: #f8fbfc;
}
.patient-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.patient-cell > div {
  min-width: 0;
}
.avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 0.73rem;
  font-weight: 640;
  letter-spacing: 0.012em;
  border: 1px solid #122b4310;
}
.color-0 {
  background: #e6e9f5;
  color: #53649a;
}
.color-1 {
  background: #ddeeed;
  color: #397974;
}
.color-2 {
  background: #f5e7e3;
  color: #9b6153;
}
.color-3 {
  background: #e4ebf5;
  color: #4d6f92;
}
.color-4 {
  background: #ede7f4;
  color: #775c97;
}
.row-link {
  font-size: 0.89rem;
  line-height: 1.3;
  font-weight: 605;
  text-align: left;
  padding: 0;
  letter-spacing: -0.014em;
  color: #1f384e;
  overflow-wrap: anywhere;
}
.row-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sub {
  display: block;
  color: #687d8e;
  font-size: 0.75rem;
  font-weight: 430;
  line-height: 1.45;
  margin-top: 2px;
}
.mono {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.706rem;
  letter-spacing: 0.008em;
}
.restoration-name {
  font-weight: 490;
  font-size: 0.86rem;
  color: #30465a;
}
.restoration-name small {
  color: #467084;
}
.stage-tag,
.intake-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.86rem;
}
.intake-tag {
  color: #476075;
  font-weight: 470;
}
.intake-tag.digital svg {
  color: #497f9e;
}
.intake-tag.pvs svg {
  color: #8b72a5;
}
.stage-tag {
  border-radius: 6px;
  line-height: 1.32;
  padding: 4px 8px;
  font-weight: 550;
  border: 1px solid transparent;
}
.stage-tag i {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.stage-tag.received {
  background: #e9f1fb;
  color: #386894;
  border-color: #d8e6f7;
}
.stage-tag.production {
  background: #efebfa;
  color: #7056a0;
  border-color: #e2d9f4;
}
.stage-tag.ready {
  background: #fcf1d9;
  color: #87601e;
  border-color: #f3e4c1;
}
.stage-tag.shipped {
  background: #e3f2ec;
  color: #347a62;
  border-color: #d3e9df;
}
.date-val {
  white-space: nowrap;
  color: #40576b;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.date-val.late {
  color: #a45b3b;
}
.chev-col {
  width: 22px;
  padding-left: 0 !important;
  padding-right: 15px !important;
  color: #8193a2;
}
.table-footer {
  padding: 13px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #65798a;
  font-size: 0.78rem;
}
.table-footer > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-button {
  background: white;
  border-color: #dae2e8;
  width: 27px;
  height: 27px;
}
.empty {
  text-align: center;
  color: #617485;
  padding: 50px 18px;
}
.empty > span {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #edf3f7;
  color: #54778e;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}
.empty h3 {
  color: var(--text);
  font-size: 1.04rem;
  margin: 0 0 6px;
}
.empty > div {
  font-size: 0.92rem;
}
.directory {
  padding: 0 20px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 14px;
}
.office-search {
  max-width: 258px;
}
.office-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  padding: 17px;
}
.office-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.office-card-icon,
.ship-icon,
.head-symbol {
  background: #e7eff4;
  color: #476b83;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
}
.office-card-icon {
  width: 37px;
  height: 37px;
}
h3 {
  font-size: 1.02rem;
  letter-spacing: -0.018em;
  font-weight: 620;
}
.office-card dl {
  display: flex;
  gap: 36px;
  margin: 19px 0;
}
.office-card dt {
  font-size: 0.78rem;
  color: var(--muted);
}
.office-card dd {
  font-weight: 620;
  font-size: 1.42rem;
  margin: 3px 0 0;
}
.office-actions {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
}
.range-select select {
  font-size: 0.85rem;
  min-height: 36px;
}
.date-band,
.ship-icon,
.ship-box,
.portal-picker > span,
.portal-metric,
.portal-picker {
  display: flex;
  align-items: center;
}
.date-band {
  gap: 9px;
  background: #edf3f6;
  border-block: 1px solid #dce5eb;
  padding: 10px 21px;
  font-size: 0.84rem;
  color: #3b576c;
}
.date-band strong {
  font-weight: 590;
}
.date-band span {
  font-size: 0.72rem;
  background: #d7eae7;
  padding: 2px 6px;
  color: #2e746d;
  border-radius: 4px;
}
.date-band span.overdue {
  background: #f9e7db;
  color: #9a5833;
}
.shipment-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #e7ecf0;
}
.shipment-row:hover {
  background: #f6fafb;
}
.ship-icon {
  width: 33px;
  height: 33px;
  justify-content: center;
}
.shipment-row strong,
.shipment-row small {
  display: block;
}
.shipment-row strong {
  font-size: 0.9rem;
  font-weight: 600;
}
.shipment-row small {
  font-size: 0.77rem;
  color: var(--muted);
  margin-top: 2px;
}
.ship-office {
  margin-left: auto;
  font-size: 0.83rem;
  color: var(--muted);
}
.shipment-row > svg:last-child {
  color: #8497a6;
}
.portal-picker {
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: #eaf2f5;
  border: 1px solid #d4e3e9;
  border-radius: 9px;
  margin-bottom: 17px;
}
.portal-picker > span {
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 570;
  color: #36586d;
}
.portal-picker .select-wrap {
  max-width: 310px;
}
.portal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.portal-metric {
  gap: 14px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.portal-metric span:not(.metric-icon) {
  font-size: 0.82rem;
  color: var(--muted);
}
.portal-metric strong {
  display: block;
  font-size: 1.58rem;
  line-height: 1.3;
  font-weight: 630;
  letter-spacing: -0.04em;
  margin-top: 3px;
}
.portal-table td:first-child {
  width: 17%;
}
.portal-table td:nth-child(2) {
  width: 24%;
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(560px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid #d4dfe7;
  background: white;
  color: var(--text);
  box-shadow: -15px 0 55px #0e284529;
  outline: none;
  overflow: hidden;
}
.drawer::backdrop {
  background: #0d203e55;
}
.drawer[open] {
  animation: drawer-in 0.17s ease-out;
}
@keyframes drawer-in {
  from {
    transform: translateX(20px);
    opacity: 0.6;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.drawer-inner,
.panel-form {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.panel-form {
  flex: 1;
}
.drawer-head {
  padding: 20px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.head-symbol {
  width: 39px;
  height: 39px;
}
.drawer-head h2 {
  font-size: 1.24rem;
}
.drawer-head p {
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 3px;
}
.drawer-head .close {
  margin-left: auto;
}
.drawer-scroll {
  overflow: auto;
  min-height: 0;
  flex: 1;
  padding: 20px 24px 24px;
  overscroll-behavior: contain;
}
.test-note {
  color: #496c80;
  background: #eff5f8;
  border: 1px solid #dae6ed;
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 9px 11px;
  border-radius: 6px;
  margin-bottom: 17px;
}
fieldset {
  margin: 0 0 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 21px;
}
fieldset:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
legend {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  font-weight: 640;
  padding: 0;
  margin-bottom: 12px;
}
label,
.field-label,
.line-label {
  display: block;
  font-size: 0.84rem;
  color: #3b5266;
  font-weight: 550;
}
label b {
  font-weight: 600;
  color: #538183;
}
label input:not([type="radio"]),
label textarea,
.select-wrap select:not(.office-filter select) {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid #cfdbe4;
  border-radius: 6px;
  background: #fff;
  color: #223a50;
  font-size: 0.89rem;
  font-weight: 440;
}
label input:not([type="radio"]),
label textarea {
  padding: 8px 10px;
}
label > .select-wrap,
label > input:not([type="radio"]),
label > textarea {
  margin-top: 5px;
}
label select {
  cursor: pointer;
}
label + label,
fieldset > .form-grid,
fieldset > .select-wrap + label,
.order-line > label,
.order-line > .form-grid {
  margin-top: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-grid.three {
  grid-template-columns: 1.5fr 1fr 0.75fr;
}
.form-grid > label + label,
.filters-panel label + label {
  margin-top: 0;
}
.form-help {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: #62778a;
  font-size: 0.79rem;
  line-height: 1.55;
  margin: 8px 0 0;
}
.form-help svg {
  margin-top: 2px;
}
.method-grid {
  display: flex;
  gap: 8px;
  margin: 6px 0 14px;
}
.method-choice {
  display: flex;
  position: relative;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d5dfe7;
  background: #fff;
  border-radius: 7px;
  min-height: 40px;
  text-align: center;
  color: #566c7f;
  cursor: pointer;
}
.method-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.method-choice:focus-within {
  outline: 2px solid #4daebc;
  outline-offset: 1px;
}
.method-choice + .method-choice {
  margin: 0;
}
.method-choice.chosen {
  border-color: #76a8ac;
  background: #ebf5f3;
  color: #255e66;
}
.order-line {
  padding: 12px;
  border: 1px solid #dce5eb;
  border-radius: 7px;
  background: #f8fafb;
  margin-bottom: 8px;
}
.line-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.line-label .icon-button {
  height: 22px;
  width: 24px;
}
label textarea {
  resize: vertical;
  min-height: 75px;
}
.drawer-footer {
  background: white;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.drawer-footer > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.form-error {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #9d413d;
  background: #fcf0ec;
  border: 1px solid #efd4c9;
  border-radius: 6px;
  padding: 8px 11px;
  margin: 0 0 9px;
}
.detail-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.detail-title h3 {
  margin-top: 4px;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  margin: 17px 0 24px;
}
.info-grid .wide {
  grid-column: 1/-1;
}
.info-grid div > span:first-child:not(.intake-tag),
.ship-box div > span,
.detail-title .field-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 3px;
}
.info-grid strong,
.ship-box strong {
  display: block;
  font-size: 0.91rem;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.detail-scroll > h3 {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 20px 0 12px;
}
.stage-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.stage-track > div {
  position: relative;
  font-size: 0.74rem;
  color: #76899a;
}
.stage-track i {
  display: block;
  height: 4px;
  background: #e0e7ed;
  margin: 0 0 6px;
  border-radius: 3px;
}
.stage-track .done {
  color: #376e72;
}
.stage-track .done i {
  background: #5d9e9a;
}
.rest-list > div {
  border: 1px solid #dae3ea;
  border-radius: 6px;
  padding: 11px 13px;
  margin-bottom: 6px;
}
.rest-list strong,
.rest-list span {
  display: block;
}
.rest-list strong {
  font-size: 0.9rem;
  font-weight: 550;
}
.rest-list span {
  font-size: 0.81rem;
  color: var(--muted);
  margin-top: 3px;
}
.ship-box {
  gap: 12px;
  background: #edf4f6;
  border-radius: 7px;
  padding: 13px;
  color: #345b6d;
}
.note-body {
  line-height: 1.6;
  font-size: 0.9rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.access-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.access-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.88rem;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.access-list li > div {
  display: flex;
  gap: 8px;
  font-size: 0.77rem;
}
.danger {
  color: #a23d3b;
}
.no-access {
  background: #f2f5f8;
  border-radius: 6px;
  padding: 13px;
  font-size: 0.86rem;
  margin: 15px 0;
  color: #5d7284;
}
.office-form label {
  margin: 0 0 13px;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #183d48;
  color: #fff;
  border-radius: 8px;
  padding: 12px 17px;
  box-shadow: 0 6px 20px #10283b24;
  font-size: 0.88rem;
}
.access-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.access-screen > div {
  max-width: 460px;
  padding: 30px;
  background: white;
  border-radius: 15px;
  border: 1px solid var(--line);
}
.sign-logo {
  display: inline-flex;
  background: var(--navy);
  padding: 10px 14px;
  border-radius: 5px;
  margin: 0 0 22px;
}
.sign-logo img {
  width: 99px;
}
.access-screen h1 {
  font-size: 1.8rem;
  margin: 8px 0;
}
.access-screen p {
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 16px;
}
.entry-card {
  width: 100%;
  box-shadow: 0 8px 32px #102b480a;
}
.entry-card .entry-account {
  margin-top: 14px;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}
.entry-account strong {
  color: var(--text);
  font-weight: 580;
}
.entry-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.entry-choice {
  width: 100%;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--navy);
}
.entry-choice:hover {
  border-color: #8ba9b6;
  background: #f4f9fa;
}
.entry-choice small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}
.profile-email {
  margin: 8px 5px 0;
  overflow-wrap: anywhere;
  color: #d4e1ec;
  font-size: 0.84rem;
}
.switch-account {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 5px;
  margin-top: 4px;
  font-size: 0.875rem;
}
.switch-account:hover {
  text-decoration: underline;
}
@media (min-width: 1550px) {
  .sidebar {
    width: 244px;
  }
  .main {
    margin-left: 244px;
    width: calc(100% - 244px);
  }
  .metric {
    min-height: 154px;
  }
  .case-table td {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .brand {
    padding-left: 31px;
  }
  .side-nav {
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (max-width: 1190px) {
  .sidebar {
    width: 196px;
  }
  .main {
    margin-left: 196px;
    width: calc(100% - 196px);
  }
  .side-nav {
    padding-left: 10px;
    padding-right: 10px;
  }
  .brand {
    padding-left: 23px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 14px;
    min-height: 132px;
  }
  .case-table td,
  .case-table thead th {
    padding-left: 8px;
    padding-right: 8px;
  }
  .case-table th:first-child,
  .case-table td:first-child {
    padding-left: 15px;
  }
  .office-band button {
    padding-left: 15px;
  }
  .patient-cell {
    gap: 8px;
  }
  .panel-title {
    padding: 15px 17px;
  }
  .table-tools {
    padding-left: 17px;
    padding-right: 17px;
  }
  .stage-tag {
    font-size: 0.82rem;
  }
  .feature-metric .spark {
    width: 31%;
  }
}
@media (max-width: 990px) {
  .sidebar {
    width: 172px;
  }
  .main {
    margin-left: 172px;
    width: calc(100% - 172px);
  }
  .nav-link {
    gap: 9px;
    font-size: 0.86rem;
    padding: 11px 10px;
  }
  .side-nav {
    padding-left: 9px;
    padding-right: 9px;
  }
  .metric-heading {
    gap: 6px;
    font-size: 0.82rem;
  }
  .metric-icon {
    width: 26px;
    height: 26px;
  }
  .metrics {
    grid-template-columns: 1.07fr 1fr 1fr 1fr;
    gap: 8px;
  }
  .metric {
    padding: 12px;
    min-height: 124px;
  }
  .metric-caption {
    font-size: 0.72rem;
  }
  .spark {
    bottom: 33px;
  }
  .content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .topbar {
    padding-inline: 16px;
  }
  .avatar {
    display: none;
  }
  .case-table {
    min-width: 680px;
  }
  .chev-col {
    padding-right: 8px !important;
  }
  .date-val {
    font-size: 0.79rem;
  }
  .panel-title {
    min-height: 60px;
  }
  .page-heading {
    margin-bottom: 17px;
  }
  .portal-table {
    min-width: 760px;
  }
}
@media (max-width: 790px) {
  .sidebar {
    width: 215px;
    transform: translateX(-100%);
    transition: transform 0.18s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-close {
    display: block;
    margin-left: auto;
    color: #c6d7e3;
    padding: 4px;
  }
  .main {
    width: 100%;
    margin: 0;
  }
  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 18;
    display: block;
    background: #10294566;
  }
  .mobile-toggle.icon-button {
    display: inline-flex;
    width: 27px;
    height: 30px;
  }
  .crumb-icon {
    display: none;
  }
  .topbar {
    height: 49px;
  }
  .content {
    padding: 22px 17px 30px;
  }
  .brand {
    height: 78px;
  }
  .side-nav {
    padding: 24px 13px;
  }
  .nav-link {
    font-size: 0.94rem;
  }
  .metrics {
    gap: 9px;
  }
  .metric-heading {
    font-size: 0.85rem;
  }
  .table-scroll {
    max-width: 100%;
  }
  .portal-table {
    min-width: 765px;
  }
  .feature-metric .spark {
    width: 30%;
  }
  .crumb {
    gap: 8px;
  }
  .top-meta {
    gap: 7px;
  }
  .time-tag {
    display: none;
  }
}
@media (max-width: 600px) {
  .content {
    padding: 20px 13px 28px;
  }
  .page-heading {
    align-items: center;
    gap: 8px;
    margin-bottom: 17px;
  }
  .page-heading h1 {
    font-size: 1.9rem;
  }
  .page-heading p {
    font-size: 0.85rem;
    margin-top: 4px;
  }
  .main-cta.button {
    min-height: 38px;
    font-size: 0.85rem;
    padding: 8px 11px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 17px;
  }
  .metric {
    min-height: 110px;
    padding: 12px 13px;
  }
  .metric-heading {
    font-size: 0.82rem;
  }
  .metric-value {
    margin: 9px 0 5px;
    font-size: 1.9rem;
  }
  .feature-metric .spark {
    width: 32%;
  }
  .metric-caption {
    font-size: 0.73rem;
  }
  .panel-title {
    padding: 13px 12px;
    min-height: 52px;
  }
  .panel-title h2 {
    font-size: 1.08rem;
  }
  .table-tools {
    flex-wrap: wrap;
    padding: 0 12px 12px;
    gap: 7px;
  }
  .search-field {
    flex: 1 0 100%;
  }
  .office-filter {
    flex: 1;
  }
  .filters-button {
    flex: 0 0 auto;
  }
  .view-switch button {
    padding: 4px 7px;
    font-size: 0.74rem;
  }
  .title-with-count {
    gap: 6px;
  }
  .filters-panel {
    padding: 10px;
    gap: 6px;
    align-items: end;
  }
  .filters-panel label {
    flex: 1;
    min-width: 0;
  }
  .table-footer {
    padding: 10px 12px;
  }
  .case-table {
    min-width: 640px;
  }
  .case-table.portal-table {
    min-width: 660px;
  }
  .office-search {
    max-width: 46%;
    font-size: 0.78rem;
    flex-basis: auto;
  }
  .directory {
    padding: 0 12px 12px;
  }
  .portal-metrics {
    gap: 6px;
    margin-bottom: 15px;
  }
  .portal-metric {
    padding: 10px;
    gap: 5px;
    display: block;
  }
  .portal-metric .metric-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
  }
  .portal-metric .metric-icon svg {
    width: 15px;
  }
  .portal-metric span:not(.metric-icon) {
    font-size: 0.72rem;
  }
  .portal-metric strong {
    font-size: 1.18rem;
  }
  .portal-picker {
    padding: 9px 10px;
    gap: 8px;
  }
  .portal-picker > span {
    white-space: nowrap;
    font-size: 0.79rem;
  }
  .portal-picker .select-wrap {
    max-width: 65%;
  }
  .portal-picker .select-wrap select {
    font-size: 0.82rem;
  }
  .shipment-row {
    gap: 7px;
    padding: 12px 10px;
  }
  .ship-office {
    display: none;
  }
  .shipment-row .stage-tag {
    margin-left: auto;
  }
  .ship-icon {
    display: none;
  }
  .date-band {
    padding: 9px 12px;
  }
  .drawer-head {
    padding: 15px;
  }
  .drawer-scroll {
    padding: 15px;
  }
  .drawer-footer {
    padding: 12px 15px;
  }
  .form-grid {
    gap: 9px;
  }
  .toast {
    right: 13px;
    bottom: 13px;
  }
  .brand img {
    width: 111px;
  }
}
@media (max-width: 380px) {
  .crumb > span:not(.crumb-icon) {
    display: none;
  }
  .crumb > svg {
    display: none;
  }
  .metric-heading {
    font-size: 0.77rem;
  }
  .page-heading h1 {
    font-size: 1.65rem;
  }
  .view-switch button svg {
    display: none;
  }
  .title-with-count {
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 600px) {
  .table-scroll {
    overflow: visible;
  }
  .case-table,
  .case-table.portal-table {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .case-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .case-table tbody,
  .case-table .office-band,
  .case-table .office-band th {
    display: block;
    width: 100%;
  }
  .office-band button {
    padding: 9px 12px;
  }
  .case-table .case-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 8px;
    padding: 12px;
    border-bottom: 1px solid #e4eaf0;
    align-items: center;
  }
  .case-table .case-row td {
    display: block;
    padding: 0 !important;
    border: 0;
    width: auto;
    min-width: 0;
  }
  .case-table .case-row td:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .case-table .case-row td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .case-table .case-row td:nth-child(3) {
    display: none;
  }
  .case-table .case-row td:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .case-table .case-row td:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }
  .case-table .case-row td.chev-col {
    display: none;
  }
  .case-table .case-row .sub {
    font-size: 0.71rem;
  }
  .case-table .case-row .restoration-name {
    font-size: 0.81rem;
  }
  .case-table .case-row td:nth-child(2) .sub {
    display: none;
  }
  .case-table .case-row .date-val {
    font-size: 0.75rem;
  }
  .case-table .case-row .ship-qualifier {
    display: block;
    color: #687d8e;
    font-size: 0.67rem;
    margin-top: 0;
  }
  .portal-table .case-row td:nth-child(6) {
    display: none;
  }
  .portal-table .case-row .sub {
    display: block;
  }
}

.work-options {
  padding: 0;
  border: 0;
  margin: 0 0 17px;
}
.work-options legend {
  font-size: 0.85rem;
  color: #3b5266;
  font-weight: 570;
  margin-bottom: 7px;
}
.work-checks {
  display: flex;
  gap: 8px;
}
.work-checks .work-check {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d3dee6;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  background: white;
}
.work-checks .work-check.checked {
  background: #eaf3f3;
  border-color: #78a4a8;
  color: #2b6768;
}
.work-check input[type="checkbox"] {
  appearance: auto;
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  accent-color: #326f73;
}
.case-kind,
.work-label {
  display: inline-block;
  font-size: 0.7rem;
  border-radius: 4px;
  line-height: 1.4;
  font-weight: 570;
  padding: 1px 5px;
  background: #edf2f5;
  color: #526978;
}
.case-kind {
  margin-left: 6px;
  vertical-align: middle;
}
.remake.case-kind,
.remake.work-label {
  background: #fae7e3;
  color: #964c40;
}
.adjustment.case-kind,
.adjustment.work-label {
  background: #f7efd9;
  color: #866628;
}
.quick-status { display:inline-flex; flex-direction:column; gap:3px; width:8.8rem; }
.lead-status-select { width:10.25rem; }
.quick-status .select-wrap .case-stage-select { background:var(--stage-bg); color:var(--stage-color); font-weight:550; cursor:pointer; }
.case-stage-select option { background:#fff; color:#223a50; }
.case-stage-select.received { --stage-bg:#e4effb; --stage-color:#386894; }
.case-stage-select.production { --stage-bg:#eee8fb; --stage-color:#67498e; }
.case-stage-select.ready { --stage-bg:#faf0d5; --stage-color:#775119; }
.case-stage-select.shipped { --stage-bg:#e0f1e8; --stage-color:#27634e; }
.case-stage-select.hold { --stage-bg:#fff0e6; --stage-color:#8a4427; }
.stage-error {
  font-size: 0.76rem;
  color: #994635;
  max-width: 150px;
  line-height: 1.35;
}
.history-tools {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  background: #f8fafb;
  border-bottom: 1px solid #e0e7ec;
}
.history-tools label {
  min-width: 135px;
  flex: 1;
  max-width: 265px;
  margin: 0;
}
.history-total {
  font-size: 0.82rem;
  color: #637a8c;
  white-space: nowrap;
}
.history-scroll {
  overflow-x: auto;
}
.item-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.item-table th,
.item-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e1e8ed;
  text-align: right;
}
.item-table th:first-child {
  text-align: left;
  padding-left: 20px;
}
.item-table thead th {
  background: #f3f6f8;
  color: #526b7c;
  font-size: 0.82rem;
  font-weight: 620;
  border-block: 1px solid #dce5eb;
}
.item-table td.remake-col,
.item-table th.remake-col {
  background: #fcf3ef;
  color: #884f42;
}
.item-table .item-expander {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 3px 0;
  font-size: 0.9rem;
  font-weight: 560;
  text-align: left;
}
.item-expander:hover {
  color: #25706f;
}
.item-table tfoot th,
.item-table tfoot td {
  background: #edf4f5;
  color: #2f5264;
  font-weight: 620;
  border-bottom: 0;
}
.item-table .history-drill {
  padding: 0;
  background: #f7fafb;
}
.history-drill ul {
  margin: 0;
  padding: 6px 14px 6px 32px;
  list-style: none;
}
.history-drill li + li {
  border-top: 1px solid #e0e7eb;
}
.history-drill button,
.remake-list > button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 10px 4px;
}
.history-drill button > span:first-child,
.remake-list > button > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.history-drill small,
.remake-list small {
  display: block;
  color: #657889;
  font-size: 0.78rem;
  margin-top: 3px;
}
.history-drill b,
.remake-list b {
  font-weight: 580;
  white-space: nowrap;
}
.remake-list > button {
  padding: 13px 20px;
  border-top: 1px solid #e0e7eb;
  font-size: 0.91rem;
}
.remake-list > button:hover,
.history-drill li:hover {
  background: #eef4f6;
}
.remake-symbol {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #f8e9e3;
  color: #955845;
}
.remake-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 3px;
  color: #486575;
  font-size: 0.78rem;
}
.history .form-error {
  margin: 15px 20px;
}
@media (max-width: 990px) {
  .case-table:not(.portal-table) {
    min-width: 710px;
  }
}
@media (max-width: 600px) {
  .case-table:not(.portal-table) {
    min-width: 0;
  }
  .history-tools {
    padding: 12px;
    gap: 8px;
  }
  .history-tools label {
    min-width: 40%;
    max-width: none;
  }
  .history .panel-title {
    flex-wrap: wrap;
  }
  .item-table {
    min-width: 480px;
  }
  .item-table th,
  .item-table td {
    padding: 9px 6px;
  }
  .item-table th:first-child {
    padding-left: 10px;
  }
  .history-drill ul {
    padding-inline: 10px;
  }
  .case-kind {
    margin-left: 4px;
  }
  .history-total {
    font-size: 0.75rem;
  }
  .remake-list > button {
    padding-inline: 12px;
  }
}

.case-actions-col {
  width: 1%;
  white-space: nowrap;
}
.case-actions,
.office-edit-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.action-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 34px;
  padding: 0;
  color: #49677b;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
}
.action-icon:hover,
.action-icon:focus-visible {
  background: #edf4f6;
  color: #174963;
  border-color: #d7e4e9;
}
.action-icon.destructive {
  color: #9c5961;
}
.action-icon.destructive:hover,
.action-icon.destructive:focus-visible {
  background: #fbeff0;
  border-color: #eed4d7;
  color: #a13041;
}
.office-edit-actions {
  margin-left: auto;
}
.office-card-head h3 {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.office-card-icon {
  flex: none;
}
.office-doctors {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.doctor-editor {
  margin-top: 24px;
}
.doctor-edit-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}
.doctor-edit-row label {
  flex: 1;
  min-width: 0;
}
.doctor-edit-row .action-icon {
  margin-bottom: 4px;
}
.doctor-field {
  min-width: 0;
}
.doctor-help {
  display: block;
  line-height: 1.45;
  font-size: 0.79rem;
  margin-top: 6px;
  color: var(--muted);
}
.doctor-field .inline-link {
  margin-top: 6px;
  line-height: 1.4;
}
.portal-contacts {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.portal-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #244b63;
  text-decoration: none;
  font-size: 0.875rem;
  min-height: 40px;
}
.portal-contacts a:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.portal-contacts .portal-text strong,
.portal-contacts .portal-text small {
  display: block;
}
.portal-text strong {
  color: #163c54;
  font-variant-numeric: tabular-nums;
  font-weight: 620;
}
.portal-text small {
  color: #267063;
  font-size: 0.75rem;
  margin-top: 1px;
}
.portal-email {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.portal-sample {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #526e80;
  margin: 0 0 12px;
  font-size: 0.8rem;
}
.drawer.confirm-dialog {
  inset: 0;
  margin: auto;
  height: fit-content;
  width: min(435px, calc(100vw - 32px));
  max-height: calc(100dvh - 24px);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 18px 80px #0822373d;
  overflow-y: auto;
}
.confirm-dialog .drawer-inner {
  height: auto;
}
.confirm-dialog .head-symbol {
  background: #f8e8eb;
  color: #a33646;
}
.confirm-body {
  padding: 20px 24px;
}
.confirm-body strong {
  display: block;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.confirm-body p {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #506478;
}
.button.destructive-fill {
  background: #a23c4a;
  border-color: #a23c4a;
  color: white;
}
.button.destructive-fill:hover {
  background: #872d3b;
}
.case-print {
  display: none;
}
@media (max-width: 880px) {
  .portal-topbar .crumb > span,
  .portal-topbar .crumb > svg {
    display: none;
  }
  .portal-contacts {
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .case-table .case-row td.case-actions-col {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
  }
  .case-table:not(.portal-table) .case-row td:nth-child(3) {
    display: block;
    grid-column: 1;
    grid-row: 3;
  }
  .action-icon {
    width: 36px;
    height: 36px;
  }
  .portal-topbar {
    height: auto;
    min-height: 68px;
    padding-block: 6px;
    align-items: center;
  }
  .portal-topbar .crumb {
    gap: 6px;
  }
  .portal-topbar .crumb strong {
    display: none;
  }
  .portal-contacts {
    align-items: flex-end;
    flex-direction: column;
    gap: 1px;
  }
  .portal-contacts a {
    min-height: 27px;
    font-size: 0.82rem;
    gap: 6px;
  }
  .portal-contacts .portal-text span {
    display: flex;
    gap: 6px;
    align-items: baseline;
  }
  .portal-text small {
    font-size: 0.72rem;
  }
  .portal-email {
    border: 0;
    padding: 0;
  }
}
@media print {
  @page {
    size: letter;
    margin: 0.55in 0.65in;
  }
  body:has(.case-print) {
    background: white !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
  }
  body:has(.case-print) .shell {
    display: none !important;
  }
  .case-print {
    display: block;
    background: white;
    color: #152d3b;
    font:
      11pt/1.45 Arial,
      sans-serif;
    overflow-wrap: anywhere;
  }
  .case-print header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #263e50;
    padding-bottom: 12pt;
    margin-bottom: 13pt;
    break-inside: avoid;
  }
  .case-print header > div:last-child {
    text-align: right;
  }
  .case-print header strong {
    font-size: 18pt;
  }
  .case-print h1 {
    font-size: 20pt;
    line-height: 1.2;
    margin: 0;
  }
  .case-print header p {
    margin-top: 2pt;
  }
  .case-print h2 {
    font-size: 13pt;
    margin: 15pt 0 6pt;
    break-after: avoid;
  }
  .case-print dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9pt 18pt;
    margin: 0;
  }
  .case-print dl div,
  .case-print tr {
    break-inside: avoid;
  }
  .case-print dt {
    font-size: 9pt;
    color: #425967;
  }
  .case-print dd {
    margin: 1pt 0 0;
    font-weight: bold;
  }
  .case-print table {
    width: 100%;
    border-collapse: collapse;
  }
  .case-print thead {
    display: table-header-group;
  }
  .case-print td,
  .case-print th {
    border-bottom: 1px solid #c5cdd0;
    padding: 5pt 4pt;
    text-align: left;
  }
  .case-print td:last-child,
  .case-print th:last-child {
    text-align: right;
  }
  .case-print table small {
    display: block;
  }
  .print-notes {
    white-space: pre-wrap;
  }
}

.case-doctor { display:inline-block; margin-inline-start:.45rem; font-size:.875rem; color:#496172; overflow-wrap:anywhere; }
.stage-tag.hold,.hold-message { color:#8a4427; background:#fff0e6; }
.hold-message { padding:.7rem 1rem; border-radius:.45rem; }
.office-actions, .sales-toolbar, .sales-filters { flex-wrap:wrap; }
.sales-jump { margin-bottom:1rem; }
.doctor-contact-edit { background:#f7f9fc; border:1px solid #dce4eb; border-radius:.65rem; padding:.8rem; margin-bottom:.75rem; }
.sales-workspace { display:grid; gap:1.3rem; }
.sales-toolbar { gap:.8rem; }
.sales-toolbar h2 + .select-wrap { margin-top:.6rem; }
.sales-filters { display:flex; align-items:center; gap:.5rem; }
.sales-table-wrap { overflow-x:auto; }
.sales-table { width:100%; border-collapse:collapse; text-align:left; font-size:.9rem; }
.sales-table th,.sales-table td { padding:.85rem 1rem; border-top:1px solid #e1e8ee; }
.sales-table th { background:#f5f8fa; font-weight:550; color:#536679; white-space:nowrap; }
.sales-table tr.selected td { background:#f1f7fa; }
.sales-table small,.sales-doctor small { display:block; color:#597081; margin-top:.22rem; font-size:.83rem; }
#sales-office { scroll-margin-top:4.5rem; }
.sales-record { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:1.8rem; border-top:1px solid #dce5ec; padding:1.25rem; }
.sales-profile { display:grid; align-content:start; gap:1.15rem; }
.sales-facts h3,.sales-activity h3 { font-size:1rem; margin:0 0 .7rem; }
.sales-facts dl { margin:0; }
.sales-facts dl div { display:grid; grid-template-columns:minmax(6.6rem,35%) 1fr; gap:.6rem; margin:.35rem 0; }
.sales-facts dt,.sales-activity time { color:#546879; font-size:.87rem; }
.sales-facts dd,.sales-doctor,.sales-activity li p { margin:0; overflow-wrap:anywhere; white-space:pre-wrap; font-size:.94rem; }
.sales-doctor + .sales-doctor { margin-top:.65rem; }
.sales-log-form { display:grid; gap:.8rem; margin-bottom:1.3rem; }
.sales-log-form label { display:flex; flex-direction:column; gap:.3rem; font-size:.9rem; }
.sales-log-form .button { justify-self:start; }.sales-log-form textarea { min-height:5.5rem; }
.sales-activity ol { padding:0; list-style:none; }
.sales-activity li { padding:.75rem 0; border-top:1px solid #dce5ec; }
.sales-activity li>div { display:flex; justify-content:space-between; gap:.6rem; margin-bottom:.35rem; }
@media(max-width:850px){.sales-record{grid-template-columns:minmax(0,1fr)}.sales-toolbar{align-items:flex-start}}

.sales-lock { max-width:28rem;padding:1.5rem; }
.sales-lock h2 { margin:.65rem 0 1rem; }
.sales-lock form,.next-actions form {display:grid;gap:.7rem}
.sales-lock .button {justify-self:start}
.next-actions {padding-bottom:1.25rem;border-bottom:1px solid var(--line);margin-bottom:1.25rem}
.next-actions form>div,.next-actions li {display:flex;align-items:end;gap:.65rem;flex-wrap:wrap}
.next-actions ul {padding:0;list-style:none}
.next-actions li {align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:.6rem 0}
.next-actions li label {display:flex;align-items:center;gap:.55rem;overflow-wrap:anywhere;min-width:0}
.next-actions li input {width:1rem;height:1rem;flex-shrink:0}
.next-actions input:checked+span {text-decoration:line-through;color:var(--muted)}

.form-error, .stage-error { text-transform: capitalize; }

.report-head,.report-views,.report-actions,.report-compare { display:flex; align-items:center; gap:.7rem; flex-wrap:wrap; }
.report-head,.report-views {justify-content:space-between}
.report-head p,.report-compare small {color:var(--muted);font-size:.87rem}
.report-head p {margin:.3rem 0 0}
.report-compare {padding:.75rem 1.25rem;border-bottom:1px solid var(--line)}
.report-compare label {display:flex;align-items:center;gap:.5rem;font-size:.9rem}
.report-compare input {width:1rem;height:1rem}
.report-metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:1.1rem 0;border-bottom:1px solid var(--line)}
.report-metrics>div {padding:0 1.25rem;border-inline-end:1px solid var(--line)}
.report-metrics>div:last-child {border:0}
.report-metrics span,.report-metrics small {display:block;color:var(--muted);font-size:.875rem}
.report-metrics strong {display:block;font-size:1.6rem;line-height:1.4;font-variant-numeric:tabular-nums}
.report-views .segmented {flex-wrap:wrap}
.order-report .item-expander:disabled {color:inherit;cursor:default}
@media(max-width:680px){.report-metrics{grid-template-columns:1fr 1fr;row-gap:.8rem}.report-compare{align-items:flex-start;flex-direction:column}.report-metrics>div:nth-child(2){border:0}}
@media print {
  body:has(.order-report):not(:has(.case-print)),body:has(.order-report) :is(.shell,.main,.content,.order-report,.history-scroll){display:block!important;overflow:visible!important;height:auto!important;min-height:0!important;max-height:none!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;background:white!important;box-shadow:none!important}
  body:has(.order-report) :is(.sidebar,.topbar,.page-heading,.history-tools,.report-actions,.report-views,.toast,.report-compare label,.sort-button svg,.item-expander svg){display:none!important}
  body:has(.order-report) .report-head::before {content:"JUMBO Dental Lab";display:block;width:100%;font-weight:600}
  .order-report .report-head,.order-report .report-compare,.order-report .report-metrics{break-inside:avoid}
  .order-report .report-compare:not(:has(input:checked)){display:none}
  .order-report .item-table {min-width:0!important;width:100%;font-size:9pt}
  .order-report .item-table :is(th,td){padding:5pt}
  .order-report .item-table tr,.order-report .remake-list>button{break-inside:avoid}
}

.drawer-footer .case-contact-actions { justify-content:flex-start; flex-wrap:wrap; }
.case-contact-actions > button { margin-inline-start:auto; }
@media(max-width:380px) { .case-contact-actions .button { padding-inline:.55rem; gap:.3rem; } }

.pdf-action {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.sales-summary-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start; }
.sales-summary-grid .panel-title { justify-content:flex-start;gap:.6rem; }
.sales-summary-grid .sales-items { padding:0 1rem 1rem; }
.sales-items ul { list-style:none;margin:0;padding:0; }
.sales-items .sales-item { display:flex;align-items:flex-start;gap:.55rem;border-top:1px solid var(--line);padding:.7rem 0; }
.sales-items .sales-item>input { width:1rem;height:1rem;flex:none;margin:.25rem 0;accent-color:#174963; }
.sales-items .sales-item-copy { display:block;min-width:0;flex:1;margin:0; }
.sales-item-meta { display:flex;align-items:baseline;flex-wrap:wrap;gap:.2rem .55rem;font-size:.87rem;color:#546879; }
.sales-item-meta strong { color:#24445d; }
.sales-item-copy p { margin:.2rem 0 0;white-space:pre-wrap;overflow-wrap:anywhere; }
.sales-items .sales-item-buttons { display:flex;gap:0;margin:0; }
.sales-item-copy .task-finished { text-decoration:line-through;color:var(--muted); }
.sales-item-editor { padding:1rem;overflow:auto; }
.sales-item-editor .next-actions { border:0;margin:0;padding:0; }
.sales-activity .sales-items { margin-bottom:1rem; }
@media(max-width:850px) { .sales-summary-grid { grid-template-columns:minmax(0,1fr); } }

.sales-date-range {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.8rem 1.5rem;padding:1rem 1.2rem;}
.sales-date-range h2 {margin:0;font-size:1.1rem;}
.sales-date-range p {margin:.3rem 0 0;color:#546879;font-size:.875rem;}
.sales-date-fields {display:flex;align-items:flex-end;flex-wrap:wrap;gap:.7rem;}
.sales-date-fields label {display:grid;gap:.25rem;min-width:0;font-size:.875rem;}
.sales-date-fields label input {min-width:0;width:100%;}
.sales-date-range .form-error {flex-basis:100%;color:#994635;}
@media(max-width:600px){.sales-date-fields{width:100%;}.sales-date-fields label{flex:1 1 8rem;}}

@media screen {
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
  }
  body > .shell,
  body > .access-screen {
    flex: 1 0 auto;
    min-height: 0;
  }
  .site-credit {
    margin-top: auto;
    padding: 0 clamp(16px, 2.55vw, 44px) max(12px, env(safe-area-inset-bottom));
    color: var(--muted);
    font-size: .8125rem;
    line-height: 1.4;
    text-align: right;
  }
}
@media screen and (min-width: 48rem) {
  .site-credit { padding-bottom: max(3.5rem, env(safe-area-inset-bottom)); }
}
@media print {
  .site-credit { display: none; }
}

.design-files { min-width:0; }
.design-files .design-drop { width:100%;display:grid;justify-items:center;gap:.35rem;padding:1rem;border:1px dashed #91aebc;border-radius:.6rem;background:#f5fafb;color:#254b62; }
.design-drop.over,.design-drop:hover {background:#e5f2f3;border-color:#327579;}
.design-files p,.design-files small,.design-feedback {font-size:.85rem;color:#536c7d;}
.design-files p {margin:.6rem 0;}
.design-files ul {list-style:none;margin:.4rem 0;padding:0;}
.design-files li,.design-preview header {display:flex;align-items:center;gap:.5rem;padding:.55rem 0;border-bottom:1px solid var(--line);}
.design-files li>div,.design-preview header strong {flex:1;min-width:0;overflow-wrap:anywhere;}
.design-files li small {display:block;}
.design-files .button {padding:.3rem .65rem;min-height:32px;}
.design-preview {padding:.4rem .65rem .65rem;border:1px solid var(--line);border-radius:.5rem;}
.design-preview img {display:block;max-width:100%;max-height:60vh;object-fit:contain;margin:auto;}
.design-preview iframe {width:100%;height:55vh;border:0;}
.design-model {height:clamp(190px,32vh,320px);display:grid;place-items:center;position:relative;background:#edf4f6;}
.design-model span {position:absolute;padding:.8rem;font-size:.875rem;}
.design-model canvas,.design-model > svg {width:100%;height:100%;display:block;touch-action:none;}
.design-files .form-error {color:#934432;white-space:pre-line;}

.portal-form,.portal-auth-links,.setup-email { width:100%; min-width:0; }
.portal-form { display:grid; gap:16px; }
.portal-form label,.setup-email label { display:grid; gap:6px; color:var(--text); font-size:.94rem; font-weight:580; }
.portal-form input,.setup-email input,.portal-request-list select {
  width:100%; min-height:42px; padding:8px 11px; color:var(--text);
  border:1px solid #b9c9d5; border-radius:7px; background:white; font:inherit;
}
.portal-form small,.account-state,.portal-request-list small { display:block; color:var(--muted); font-weight:450; }
.portal-auth-links,.portal-button-row,.portal-request-heading { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.portal-auth-links { justify-content:space-between; margin-top:6px; }
.portal-auth-links a { color:var(--blue); font-size:.9rem; text-decoration:underline; text-underline-offset:3px; }
.portal-form .button { min-height:42px; font-size:1rem; }
.portal-requests,.setup-email { padding:18px; background:white; border:1px solid var(--line); border-radius:10px; margin-bottom:16px; }
.setup-email { background:#edf6f5; overflow-wrap:anywhere; }
.setup-email p,.portal-requests>p { margin:8px 0; font-size:.92rem; color:var(--muted); line-height:1.5; }
.portal-request-heading { justify-content:space-between; }
.portal-request-heading h2 { margin:0; font-size:1.2rem; }
.portal-requests .setup-email { margin:12px 0 0; }
.portal-requests .awaiting-links h3 { margin:16px 0 0; font-size:1rem; }
.portal-button-row .resend-error,.access-list .resend-error { flex-basis:100%; color:#9d413d; }
.portal-request-list { list-style:none; padding:0; margin:8px 0 0; }
.portal-request-list li { display:flex; gap:12px; justify-content:space-between; align-items:center; flex-wrap:wrap; padding:12px 0; border-top:1px solid var(--line); }
.portal-request-list li strong,.access-list li span { overflow-wrap:anywhere; }
.portal-request-list select { width:auto; max-width:100%; min-height:38px; font-size:.9rem; }
.access-screen > .entry-card:has(.registration-form) { max-width:620px; }
.registration-form { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.registration-form label + label,.registration-form label > input:not([type="radio"]),.registration-texting legend { margin:0; }
.registration-wide,.registration-form > .form-error,.registration-form > button { grid-column:1/-1; }
.registration-location { display:grid; grid-template-columns:2fr 1fr 1fr; gap:12px; }
.registration-location label,.registration-form > label { min-width:0; }
.registration-texting { margin:0; padding:0; border:0; min-width:0; }
.registration-texting legend { padding:0; color:var(--text); font-size:.94rem; font-weight:580; }
.registration-texting > div { display:flex; align-items:center; gap:16px; min-height:42px; margin-top:6px; }
.registration-texting label,.contact-import { display:flex; align-items:center; gap:6px; cursor:pointer; }
.registration-texting input,.contact-import input { width:16px; height:16px; min-height:0; padding:0; margin:0; accent-color:var(--navy); }
.registration-summary { margin:5px 0; overflow-wrap:anywhere; }
.portal-request-list .contact-import { font-size:.85rem; }
@media (max-width:560px) {
  .registration-form { grid-template-columns:minmax(0,1fr); }
  .registration-location { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .registration-location label:first-child { grid-column:1/-1; }
  .access-screen > .entry-card:has(.registration-form) { padding:22px; }
}
