﻿.hub-tooth {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ui-border, #d9ecea);
}
.hub-heading,
.hub-shortcuts,
.hub-review-header,
.hub-toolbar,
.hub-file,
.hub-file-actions,
.hub-associated button,
.hub-study,
.hub-marker-form {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hub-heading,
.hub-review-header {
  justify-content: space-between;
}
.hub-heading h3 {
  font-size: 20px;
  margin: 6px 0 15px;
}
.hub-count {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--ui-accent-soft, #e8f7f5);
  color: var(--ui-accent-text, #0e7b6e);
  font-weight: 700;
}
.hub-shortcuts {
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hub-shortcuts .btn {
  font-size: 12px;
  padding: 9px 11px;
  gap: 6px;
}
.hub-shortcuts svg {
  width: 16px;
}
.hub-file {
  background: var(--ui-inset, #f5f8fa);
  border: 1px solid var(--ui-border, #d9ecea);
  padding: 13px;
  border-radius: 14px;
  min-width: 0;
  margin-bottom: 10px;
}
.hub-file-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  border-radius: 11px;
  color: var(--ui-accent-text, #0e7b6e);
  background: var(--ui-accent-soft, #e8f7f5);
  flex-shrink: 0;
}
.hub-file > div:first-of-type {
  flex: 1;
  min-width: 0;
}
.hub-file b {
  font-size: 13px;
  display: block;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}
.hub-file small {
  display: block;
  font-size: 12px;
  color: var(--ui-muted, #526b7b);
  margin-top: 5px;
}
.hub-file-actions {
  gap: 5px;
  flex-shrink: 0;
}
.hub-file-actions .btn {
  padding: 8px;
  min-width: 32px;
  min-height: 34px;
  gap: 0;
}
.hub-file-actions svg {
  width: 15px;
}
.hub-file-teeth {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.hub-file-teeth i {
  font-style: normal;
  font-size: 11px;
  background: var(--ui-card, #fff);
  border: 1px solid var(--ui-border, #d9ecea);
  padding: 2px 5px;
  border-radius: 5px;
}
.hub-empty,
.hub-caption {
  color: var(--ui-muted, #526b7b);
  line-height: 1.8;
  font-size: 13px;
}
.hub-empty {
  padding: 20px 12px;
  text-align: center;
}
.hub-associated button {
  background: var(--ui-inset, #f5f8fa);
  padding: 11px;
  border-radius: 10px;
  margin-top: 8px;
  width: 100%;
  text-align: start;
}
.hub-associated b {
  flex: 1;
  font-size: 13px;
}
.hub-associated small {
  font-size: 11px;
}
.hub-dialog {
  width: min(1120px, 96vw) !important;
  max-width: 1120px !important;
  padding: 26px !important;
  background: var(--ui-card, #fff);
  color: var(--ui-text, #173549);
}
.hub-dialog h2 {
  padding-inline-end: 36px;
}
.hub-toolbar {
  align-items: end;
  margin: 15px 0 24px;
  flex-wrap: wrap;
}
.hub-toolbar label {
  flex: 1;
  min-width: 160px;
}
.hub-toolbar select {
  max-width: 200px;
  padding: 12px;
  border: 1px solid var(--ui-border, #d9ecea);
  border-radius: 10px;
  background: var(--ui-inset, #f5f8fa);
  color: inherit;
}
.hub-file-grid,
.hub-study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hub-study-grid {
  margin-bottom: 20px;
}
.hub-study {
  border: 1px solid var(--ui-border, #d9ecea);
  background: linear-gradient(
    130deg,
    var(--ui-accent-soft, #e8f7f5),
    var(--ui-inset, #f5f8fa)
  );
  padding: 18px;
  border-radius: 16px;
}
.hub-study > div {
  flex: 1;
  min-width: 0;
}
.hub-study p {
  margin: 7px 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.hub-study small {
  font-size: 12px;
  color: var(--ui-muted, #526b7b);
}
.hub-review-header {
  align-items: start;
}
.hub-review-header h3 {
  font-size: 20px;
  overflow-wrap: anywhere;
  max-width: 650px;
  margin: 12px 0;
}
.hub-review-header p {
  font-size: 13px;
  color: var(--ui-muted, #526b7b);
}
.hub-image-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 15px;
  border: 1px solid var(--ui-border, #d9ecea);
  border-radius: 13px;
  background: var(--ui-inset, #f5f8fa);
  margin: 10px 0 18px;
}
.hub-image-controls label {
  flex: 1;
  min-width: 110px;
  font-size: 12px;
}
.hub-image-controls .btn {
  padding: 10px 12px;
  font-size: 12px;
}
.hub-image-controls input[type="range"] {
  width: 100%;
  accent-color: var(--ui-accent, #0e9f8e);
}
.hub-image-controls select {
  width: 100%;
  max-width: 220px;
}
.hub-review-viewports {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.hub-review-viewports.has-comparison {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hub-image-pane {
  background: #101e29;
  position: relative;
  max-height: 510px;
  overflow: auto;
  border-radius: 14px;
  min-width: 0;
  min-height: 180px;
}
.hub-image-pane[hidden] {
  display: none;
}
.hub-image-pane > span {
  color: #f4f7fa;
  padding: 10px;
  font-size: 12px;
  display: block;
}
.hub-image-pane img {
  width: 100%;
  height: auto;
  display: block;
}
.hub-image-surface {
  position: relative;
  transform-origin: center;
}
.hub-image-surface.is-placing {
  cursor: crosshair;
}
.hub-image-surface #hub-marker-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hub-marker-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  background: #0b8c7e;
  color: white;
  border: 2px solid white;
  box-shadow: 0 2px 9px #0007;
}
.hub-review-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.hub-review-bottom > section {
  min-width: 0;
}
.hub-marker-form {
  align-items: end;
  flex-wrap: wrap;
  margin: 15px 0;
}
.hub-marker-form label:first-child {
  flex: 1;
  min-width: 150px;
}
.hub-marker-form label:nth-child(2) {
  width: 120px;
}
.hub-marker-form .btn {
  font-size: 12px;
  padding: 11px;
}
.hub-marker-item {
  padding: 14px;
  border: 1px solid var(--ui-border, #d9ecea);
  border-radius: 12px;
  margin-bottom: 9px;
  background: var(--ui-inset, #f5f8fa);
}
.hub-marker-item p {
  font-size: 13px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.hub-marker-item .btn {
  font-size: 11px;
  padding: 6px 9px;
}
.hub-history-pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--ui-inset, #f5f8fa);
  border: 1px solid var(--ui-border, #d9ecea);
  margin: 5px;
  font-size: 13px;
}
.hub-dialog #hub-history-model {
  height: 450px;
  margin-block: 20px;
}
html[data-dently-theme="dark"] .hub-dialog input,
html[data-dently-theme="dark"] .hub-dialog select,
html[data-dently-theme="dark"] .hub-dialog textarea {
  background: var(--ui-inset);
  color: var(--ui-text);
  border-color: var(--ui-border);
}
@media (max-width: 760px) {
  .hub-dialog {
    padding: 18px !important;
  }
  .hub-review-header {
    flex-wrap: wrap;
  }
  .hub-review-header h3 {
    max-width: 100%;
    font-size: 17px;
  }
  .hub-file-grid,
  .hub-study-grid,
  .hub-review-bottom,
  .hub-review-viewports.has-comparison {
    grid-template-columns: minmax(0, 1fr);
  }
  .hub-image-pane {
    max-height: 390px;
  }
  .hub-file {
    gap: 9px;
    padding: 11px;
  }
  .hub-file-symbol {
    width: 28px;
  }
  .hub-file b {
    font-size: 12px;
  }
  .hub-file-actions {
    flex-direction: column;
  }
  .hub-image-controls {
    gap: 8px;
    padding: 12px;
  }
  .hub-image-controls label {
    min-width: 100px;
  }
  .hub-dialog #hub-history-model {
    height: 340px;
  }
  .hub-marker-form label:nth-child(2) {
    width: 95px;
  }
}
.labops-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--ui-border);
  border-radius: 20px;
  background: linear-gradient(125deg, var(--ui-card), var(--ui-accent-soft));
  padding: 28px;
  margin-bottom: 22px;
}
.labops-hero h2 {
  font-size: 27px;
  margin: 14px 0;
}
.labops-hero p {
  font-size: 14px;
  color: var(--ui-muted);
  max-width: 650px;
  margin: 0;
}
.labops-hero > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.labops-hero .btn {
  font-size: 13px;
  gap: 7px;
}
.labops-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 22px;
}
.labops-metrics article {
  padding: 22px;
  border: 1px solid var(--ui-border);
  border-radius: 15px;
  background: var(--ui-card);
  border-inline-start: 3px solid var(--ui-accent);
}
.labops-metrics span {
  display: block;
  font-size: 13px;
  color: var(--ui-muted);
}
.labops-metrics strong {
  display: block;
  font-size: 25px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.labops-page > .panel {
  margin-bottom: 20px;
}
.labops-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--ui-border);
  font-size: 13px;
  min-width: 0;
}
.labops-row > div:first-child {
  flex: 1;
  min-width: 0;
}
.labops-row strong {
  display: block;
  overflow-wrap: anywhere;
}
.labops-row small {
  display: block;
  color: var(--ui-muted);
  margin-top: 7px;
}
.labops-row .btn {
  font-size: 12px;
  padding: 9px 12px;
}
.labops-quote,
.labops-production,
.labops-invoice {
  padding: 20px;
  border: 1px solid var(--ui-border);
  background: var(--ui-inset);
  border-radius: 14px;
  margin-bottom: 18px;
}
.labops-quote strong {
  font-size: 26px;
}
.labops-quote .btn {
  margin-inline-end: 7px;
}
.labops-invoice p {
  font-size: 13px;
}
.labops-history article {
  padding: 15px;
  border-inline-start: 2px solid var(--ui-accent);
  margin-bottom: 10px;
  background: var(--ui-inset);
  border-radius: 8px;
}
.labops-history article small {
  display: block;
  margin-top: 6px;
  color: var(--ui-muted);
}
.labops-history article p {
  font-size: 13px;
  white-space: pre-wrap;
}
.labops-slip {
  text-align: center;
  padding: 25px;
}
.labops-slip .labops-qr {
  width: 185px;
  margin: 25px auto;
  background: white;
  padding: 10px;
}
.labops-slip .labops-qr svg {
  width: 100%;
  height: auto;
  fill: #0a2342;
  stroke: none;
}
.labops-slip small {
  font-size: 12px;
  color: var(--ui-muted);
}
@media (max-width: 760px) {
  .labops-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 18px;
  }
  .labops-hero h2 {
    font-size: 22px;
  }
  .labops-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .labops-metrics article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px;
  }
  .labops-metrics strong {
    font-size: 21px;
    margin: 0;
  }
  .labops-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .labops-row > div:first-child {
    flex-basis: 100%;
  }
  .labops-row > .btn {
    margin-inline-start: auto;
  }
}
@media print {
  body.labops-printing > * {
    visibility: hidden !important;
  }
  body.labops-printing #record-dialog {
    visibility: visible !important;
    position: absolute !important;
    inset: 0 !important;
    max-height: none !important;
    border: 0 !important;
    background: #fff !important;
    color: #173549 !important;
  }
  body.labops-printing #record-dialog form > *:not(.labops-slip) {
    display: none !important;
  }
  body.labops-printing .labops-slip,
  body.labops-printing .labops-slip * {
    visibility: visible !important;
  }
  body.labops-printing .labops-slip {
    width: 90mm;
    padding: 8mm;
  }
}
.patient-staff-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 7px;
  border-bottom: 1px solid var(--ui-border);
  font-size: 13px;
}
.patient-staff-row > div {
  flex: 1;
  min-width: 0;
}
.patient-staff-row strong {
  display: block;
  overflow-wrap: anywhere;
}
.patient-staff-row small {
  display: block;
  color: var(--ui-muted);
  margin-top: 7px;
}
.patient-staff-row .btn {
  font-size: 12px;
  padding: 9px 13px;
}
.patient-share-files {
  max-height: 230px;
  overflow: auto;
  border: 1px solid var(--ui-border);
  background: var(--ui-inset);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.patient-share-files label {
  overflow-wrap: anywhere;
}
.patient-share-result {
  padding: 20px;
  border: 1px solid var(--ui-border);
  background: var(--ui-accent-soft);
  border-radius: 14px;
  margin-top: 20px;
}
.patient-share-result input {
  background: var(--ui-card) !important;
}
.patient-share-result .btn {
  margin: 5px;
}
.patient-submitted {
  padding: 20px;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: var(--ui-inset);
  margin-bottom: 20px;
}
.patient-submitted > span {
  font-size: 12px;
  color: var(--ui-muted);
}
.patient-submitted p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.9;
}
@media (max-width: 760px) {
  .patient-staff-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .patient-staff-row > div {
    flex-basis: 100%;
  }
  .patient-staff-row .btn {
    margin-inline-start: auto;
  }
}
.patient-scan-heading h3 {
  font-size: 23px;
  overflow-wrap: anywhere;
  margin: 15px 0;
}
.patient-scan-heading p {
  font-size: 14px;
  color: var(--ui-muted);
  line-height: 1.8;
}
.patient-scan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr);
  gap: 22px;
  margin-top: 23px;
}
.patient-scan-layout > div {
  min-width: 0;
}
.patient-scan-layout .scan-canvas-host {
  height: 470px;
  position: relative;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  background: var(--ui-inset);
  overflow: hidden;
}
.patient-scan-layout canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.patient-scan-layout aside {
  padding: 20px;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  background: var(--ui-inset);
}
.patient-scan-layout #patient-scan-save {
  margin-top: 18px;
  width: 100%;
}
.patient-scan-anchor {
  padding: 12px;
  background: var(--ui-card);
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  margin-top: 12px;
}
.patient-scan-anchor > button:first-child {
  display: grid;
  gap: 9px;
  background: none;
  color: var(--ui-text);
  text-align: start;
  padding: 0;
  width: 100%;
}
.patient-scan-anchor span {
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.patient-scan-anchor .btn {
  padding: 5px 9px;
  font-size: 11px;
  margin-top: 10px;
}
.scan-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.scan-pins button {
  position: absolute;
  pointer-events: auto;
  border: 2px solid white;
  background: var(--ui-accent, #0b8277);
  color: white;
  border-radius: 50%;
  height: 27px;
  width: 27px;
  font-size: 12px;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.patient-scan-layout canvas.marking {
  cursor: crosshair;
}
@media (max-width: 760px) {
  .patient-scan-layout {
    grid-template-columns: 1fr;
  }
  .patient-scan-layout .scan-canvas-host {
    height: 360px;
  }
  .patient-scan-heading h3 {
    font-size: 18px;
  }
}
.dicom-heading h3 {
  font-size: 23px;
  margin: 15px 0;
  overflow-wrap: anywhere;
}
.dicom-heading p {
  font-size: 13px;
  color: var(--ui-muted);
  line-height: 1.9;
}
.dicom-controls {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px;
  border: 1px solid var(--ui-border);
  border-radius: 13px;
  background: var(--ui-inset);
  margin: 18px 0;
}
.dicom-controls label {
  width: 135px;
  max-width: 100%;
  font-size: 12px;
}
.dicom-controls .btn {
  font-size: 12px;
  padding: 11px 12px;
}
.dicom-native-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 670px;
  margin: auto;
}
.dicom-mpr-view {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dicom-plane {
  padding: 12px;
  background: #101b24;
  border: 1px solid #273e50;
  border-radius: 14px;
  min-width: 0;
  color: #e3ecef;
}
.dicom-plane > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 12px;
}
.dicom-plane output {
  font: 500 11px Manrope;
}
.dicom-canvas {
  position: relative;
  width: 100%;
  max-height: 65vh;
  margin: auto;
  overflow: hidden;
  background: #000;
  aspect-ratio: 1;
}
.dicom-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  image-rendering: auto;
}
.dicom-direction {
  position: absolute;
  color: #a0e1d6;
  font: 600 11px Manrope;
  pointer-events: none;
  text-shadow: 0 1px 4px #000;
}
.dicom-direction.top {
  top: 7px;
  left: 50%;
}
.dicom-direction.bottom {
  bottom: 7px;
  left: 50%;
}
.dicom-direction.left {
  left: 7px;
  top: 50%;
}
.dicom-direction.right {
  right: 7px;
  top: 50%;
}
.dicom-plane > input[type="range"] {
  width: 100%;
  accent-color: var(--ui-accent, #0b8277);
  margin-block: 15px 4px;
}
.dicom-files {
  border: 1px solid var(--ui-border);
  border-radius: 13px;
  background: var(--ui-inset);
  padding: 18px;
  margin-top: 20px;
}
.dicom-files p {
  font-size: 13px;
  color: var(--ui-muted);
  line-height: 1.8;
}
.dicom-files label {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.dicom-files .btn {
  margin-top: 15px;
}
@media (max-width: 760px) {
  .dicom-mpr-view {
    grid-template-columns: 1fr;
  }
  .dicom-controls {
    padding: 13px;
  }
  .dicom-controls label {
    width: calc(50% - 8px);
  }
  .dicom-heading h3 {
    font-size: 18px;
  }
  .dicom-canvas {
    max-height: 460px;
  }
  .dicom-controls .btn {
    font-size: 11px;
    padding: 10px;
  }
}
.hub-tooth-plans article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--ui-border);
  border-radius: 11px;
  margin: 12px 0;
  background: var(--ui-inset);
}
.hub-tooth-plans b {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.hub-tooth-plans small {
  font-size: 11px;
  color: var(--ui-muted);
}
.hub-tooth-plans .btn {
  font-size: 11px;
  padding: 6px 9px;
}
.hub-tooth > [data-hub-plan] {
  font-size: 12px;
  margin-bottom: 10px;
  padding: 9px 12px;
}

#hub-history-scrub {
  width: 100%;
  accent-color: var(--ui-accent);
  margin-block: 15px;
}
.dicom-plane output {
  direction: ltr;
  unicode-bidi: isolate;
}
.hub-dialog :is(.hub-caption, .hub-empty) {
  font-size: 13px;
  line-height: 1.8;
}
