:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #343a40;
  background: #f4f6f9;
  --primary: #007bff;
  --sidebar-width: 232px;
  --header-height: 57px;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { text-decoration: none; color: inherit; }
button:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  background: #343a40;
  color: #c2c7d0;
  z-index: 20;
  transition: transform 160ms ease;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--header-height);
  padding: 0 20px;
  color: #fff;
  border-bottom: 1px solid #4b5055;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .3px;
}
.brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 4px;
  background: var(--primary);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -2px;
}
.brand-symbol span { font-size: 17px; margin-left: 1px; }
.sidebar nav { padding: 16px 8px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 4px;
  font-size: 14px;
}
.nav-link.active { background: var(--primary); color: #fff; }
.nav-link + .nav-link { margin-top: 5px; }
.nav-link:not(.active):hover { background: #ffffff0d; color: #fff; }
.nav-link svg, .menu-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workspace {
  display: flex;
  flex-direction: column;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  min-height: 100dvh;
  transition: margin-left 160ms ease;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-height);
  padding: 0 25px 0 16px;
  background: #fff;
  border-bottom: 1px solid #dee2e6;
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: #7b8187;
  flex-shrink: 0;
}
.menu-button:hover { background: #f4f6f9; }
.clinic-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-switcher { display: flex; align-items: center; gap: 7px; color: #94999f; font-size: 12px; flex-shrink: 0; }
.view-switcher select {
  max-width: 220px;
  padding: 6px 5px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #fff;
  color: #71777d;
  font-size: 12px;
}
.view-switcher select:hover { border-color: #dee2e6; }
.view-switcher select:disabled { opacity: .6; cursor: default; }
.doctor-identity select { max-width: 190px; }
.topbar:has(.doctor-identity:not([hidden])) { flex-wrap: wrap; padding-top: 5px; padding-bottom: 5px; }
.catalog-toolbar { display: flex; justify-content: flex-end; padding: 18px; }
.doctors-grid { min-width: 1080px; }
.doctors-grid td { max-width: 220px; overflow-wrap: anywhere; }
.clinical-dialog { width: min(790px,calc(100% - 32px)); max-height: calc(100dvh - 35px); border: 1px solid #dce2e8; border-radius: 4px; padding: 0; color: #343a40; overflow-y: auto; box-shadow: 0 15px 60px #0003; }
.clinical-dialog::backdrop { background: #20283380; }
.clinical-dialog-body { padding: 18px 23px; font-size: 13px; line-height: 1.7; }
.clinical-dialog-body a { overflow-wrap: anywhere; }
.doctor-form { padding: 20px 23px; }
.clinical-form-grid,.report-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.clinical-field { display: block; min-width: 0; font-size: 12px; color: #7c8791; }
.clinical-field>span { display: block; margin-bottom: 7px; }
.clinical-field input,.clinical-field textarea,.clinical-field select { width: 100%; min-width: 0; border: 1px solid #d4dce3; border-radius: 3px; background: #fff; padding: 9px 10px; color: #343a40; font: inherit; }
.clinical-field input[type=file] { padding: 7px; font-size: 11px; }
.clinical-field textarea { resize: vertical; line-height: 1.6; }
.clinical-field input:focus-visible,.clinical-field textarea:focus-visible { outline: 2px solid #007bff; outline-offset: 2px; }
.report-mode:not(.menu-collapsed) .sidebar { width: 58px; }
.report-mode:not(.menu-collapsed) .workspace { margin-left: 58px; }
.report-mode .sidebar .brand { padding: 0; justify-content: center; }
.report-mode .sidebar .brand>span:last-child,.report-mode .sidebar .nav-link>span { display: none; }
.report-mode .sidebar .nav-link { justify-content: center; padding: 11px 3px; }
.report-mode .panel-content { padding: 0; }
.report-heading { padding: 18px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e6ebf0; }
.report-heading strong { font-size: 15px; font-weight: 500; }
.report-heading div>span { display: block; font-size: 11px; color: #9099a2; margin-top: 7px; }
.report-state { padding: 5px 9px; border-radius: 3px; font-size: 11px; line-height: 1.5; flex-shrink: 0; }
.report-state.draft { background: #fff6e5; color: #986b2e; }
.report-state.final { background: #edf5ff; color: #3475b0; }
.report-form { padding: 20px 22px 10px; }
.report-field-grid { gap: 20px; margin: 24px 0; }
.wide-field { grid-column: 1/-1; }
.dictation-panel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 13px; border: 1px solid #e2e8ee; border-radius: 3px; background: #fafcff; }
.dictation-panel>strong { font-size: 12px; font-weight: 500; margin-right: 5px; }
.dictation-panel select { padding: 6px; max-width: 190px; border: 1px solid #d7dfe7; border-radius: 3px; background: #fff; color: #6e7d89; font-size: 11px; }
.dictation-status { font-size: 11px; color: #7a8793; }
.dictation-note,.dictation-interim { width: 100%; margin: 3px 0 0; font-size: 10px; line-height: 1.6; color: #9ba4ad; }
.dictation-interim { color: #5087b6; font-size: 12px; }
.report-toolbar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 14px 0; border-top: 1px solid #e7edf2; position: sticky; bottom: 0; background: #fff; }
.report-toolbar button:disabled,.dictation-panel button:disabled { opacity: .45; cursor: default; }
@media(max-width:850px) { .report-mode:not(.menu-collapsed) .workspace { margin-left: 0; } }
@media(max-width:600px) {
  .clinical-form-grid,.report-field-grid { grid-template-columns: 1fr; }
  .report-heading { flex-direction: column; gap: 12px; padding: 16px; }
  .report-form,.doctor-form { padding: 16px; }
  .doctor-identity { width: 100%; justify-content: flex-end; }
  .doctor-identity>span { display: inline; }
  .topbar:has(.doctor-identity:not([hidden])) { padding-bottom: 8px; }
  .report-toolbar { justify-content: flex-start; }
}
main { flex: 1; padding: 28px 25px; min-width: 0; }
.content-panel {
  background: #fff;
  border: 1px solid #e3e7eb;
  border-radius: 3px;
  box-shadow: 0 1px 3px #00000008;
}
.panel-header { padding: 14px 18px; border-bottom: 1px solid #e7eaed; }
h1 { margin: 0; font-size: 16px; font-weight: 400; }
.panel-content { min-height: 190px; padding: 24px 22px 30px; }
.view-heading { font-size: 18px; font-weight: 400; margin: 0 0 24px; }
.profile-details { display: flex; flex-wrap: wrap; gap: 22px 65px; margin: 0; }
.profile-details > div { min-width: 180px; }
.profile-details dt { margin: 0 0 7px; font-size: 12px; color: #92989e; }
.profile-details dd { margin: 0; font-size: 13px; line-height: 1.5; }
.loading-message { color: #92989e; margin: 0; font-size: 13px; }
.error-message { color: #a34b4b; font-size: 13px; line-height: 1.6; }
.panel-content.studies-content { padding: 0; min-width: 0; }
.studies-grid-scroll { width: 100%; overflow-x: auto; padding: 0 18px; }
.studies-grid-scroll:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.studies-grid { width: 100%; min-width: 1270px; border-collapse: collapse; text-align: left; font-size: 12px; }
.studies-grid th { padding: 16px 10px 13px; border-bottom: 2px solid #dee2e6; font-weight: 600; font-size: 12px; line-height: 1.4; vertical-align: bottom; }
.studies-grid td { padding: 17px 10px; border-bottom: 1px solid #edf0f2; line-height: 1.5; vertical-align: middle; }
.studies-grid tbody tr:last-child td { border-bottom: 0; }
.studies-grid .date-cell, .studies-grid .age-cell, .studies-grid .modality-cell, .studies-grid .id-cell { white-space: nowrap; }
.studies-grid .pacs-id-cell { min-width: 135px; max-width: 145px; overflow-wrap: anywhere; font-family: Consolas, monospace; font-size: 11px; }
.studies-grid .pacs-id-cell { min-width: 48px; max-width: none; white-space: nowrap; font: inherit; }
.studies-grid .action-cell { width: 42px; min-width: 42px; }
.action-button { width: 28px; height: 29px; border: 1px solid #dce1e6; border-radius: 3px; background: #fff; color: #727b84; font-size: 21px; line-height: 1; cursor: pointer; }
.row-actions { position: fixed; z-index: 45; min-width: 180px; padding: 5px 0; background: #fff; border: 1px solid #dde2e7; border-radius: 4px; box-shadow: 0 4px 15px #0002; }
.row-actions button { display: block; width: 100%; padding: 10px 15px; text-align: left; border: 0; background: #fff; color: #495057; font-size: 12px; }
.row-actions button:hover,.row-actions button:focus-visible { background: #f0f6ff; color: #007bff; }
.study-link { color: #1479d9; }
.study-link:hover { text-decoration: underline; }
.study-row { cursor: pointer; }
.study-row:hover { background: #fafcff; }
.doctor-select { max-width: 170px; width: 100%; min-width: 145px; padding: 6px 5px; border: 1px solid #d8dfe5; border-radius: 3px; background: #fff; color: #495057; font-size: 11px; }
.doctor-select:disabled { opacity: .6; }
.send-dialog { width: min(850px,calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid #dce2e8; border-radius: 5px; padding: 0; box-shadow: 0 15px 60px #0003; color: #343a40; }
.send-dialog::backdrop { background: #20283380; }
.dialog-header { padding: 20px 23px 17px; border-bottom: 1px solid #e7eaed; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.dialog-header h2 { font-size: 19px; font-weight: 500; margin: 0; }
.dialog-header p { font-size: 12px; color: #899199; margin: 7px 0 0; line-height: 1.5; }
.icon-button { border: 0; background: transparent; color: #8b939b; font-size: 26px; line-height: 1; padding: 0 3px; }
.send-blocks { display: grid; grid-template-columns: 1fr 1fr; }
.send-block { padding: 22px 23px; min-width: 0; }
.send-block + .send-block { border-left: 1px solid #e7eaed; }
.send-block h3 { font-size: 15px; font-weight: 500; margin: 0 0 8px; }
.send-block label { display: block; margin: 16px 0; font-size: 12px; color: #69737c; }
.send-block input,.send-block textarea,.send-block select { display: block; margin-top: 7px; width: 100%; border: 1px solid #d4dce3; border-radius: 3px; padding: 9px 10px; color: #343a40; background: #fff; font: inherit; }
.send-block textarea { resize: vertical; line-height: 1.6; min-height: 140px; }
.primary-button { border: 1px solid #007bff; background: #007bff; color: #fff; padding: 9px 14px; border-radius: 3px; font-size: 12px; }
.form-note { color: #929aa2; font-size: 11px; line-height: 1.6; margin: 8px 0 12px; }
.form-result { color: #577264; font-size: 12px; line-height: 1.5; }
.link-preview { margin: 20px 0; font-size: 11px; line-height: 1.6; }
.link-preview span { display: block; color: #929aa2; margin-bottom: 5px; }
.link-preview a { color: #1479d9; overflow-wrap: anywhere; }
.notice { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: min(500px,90vw); z-index: 60; background: #343a40; color: #fff; border-radius: 4px; padding: 12px 17px; font-size: 12px; box-shadow: 0 3px 12px #0002; }
.viewer-mode:not(.menu-collapsed) .sidebar { width: 58px; }
.viewer-mode:not(.menu-collapsed) .workspace { margin-left: 58px; }
.viewer-mode .sidebar .brand { padding: 0; justify-content: center; }
.viewer-mode .sidebar .brand>span:last-child,.viewer-mode .sidebar .nav-link>span { display: none; }
.viewer-mode .sidebar .nav-link { justify-content: center; padding: 11px 3px; }
.viewer-mode main { padding: 15px 18px; }
.viewer-mode .panel-header { display: none; }
.panel-content.viewer-content { padding: 0; }
.viewer-heading { padding: 13px 16px; border-bottom: 1px solid #e1e6eb; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.viewer-heading strong { display: block; font-size: 14px; font-weight: 500; }
.viewer-heading span { display: block; margin-top: 5px; font-size: 11px; color: #89939c; }
.quiet-button { color: #747f89; background: #fff; border: 1px solid #d9e0e6; border-radius: 3px; padding: 7px 10px; font-size: 12px; white-space: nowrap; }
.viewer-grid { display: grid; grid-template-columns: 155px minmax(0,1fr) 180px; height: calc(100dvh - 215px); min-height: 460px; }
.series-column { overflow-y: auto; border-right: 1px solid #dfe5eb; background: #f9fafc; }
.column-label { font-size: 11px; font-weight: 500; color: #7b8792; padding: 17px 13px; }
.series-group { padding: 0 9px 10px; }
.series-group summary { cursor: pointer; font-size: 11px; color: #687580; padding: 7px 2px; }
.thumbnail-list { display: flex; flex-direction: column; gap: 8px; margin-top: 7px; }
.thumbnail-button { width: 100%; padding: 5px; border: 1px solid #dce2e9; border-radius: 3px; background: #fff; cursor: pointer; }
.thumbnail-button img { display: block; width: 100%; height: 85px; object-fit: contain; background: #0b0d10; }
.thumbnail-button span { display: block; padding: 6px 0 1px; font-size: 10px; color: #7a8791; }
.thumbnail-button.selected { border-color: #007bff; background: #f0f7ff; }
.image-column { background: #0b0d11; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.image-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 20px; }
.scan-image { display: block; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.dummy-watermark { position: absolute; bottom: 12px; left: 13px; color: #77838c; font-size: 9px; pointer-events: none; }
.image-error { color: #bbc4cd; font-size: 12px; text-align: center; position: absolute; inset: 45% 20px auto; }
.image-controls { display: flex; align-items: center; justify-content: center; gap: 20px; height: 49px; flex-shrink: 0; border-top: 1px solid #283039; color: #b3bdc8; font-size: 11px; }
.image-step { width: 28px; height: 28px; background: #1c2530; border: 1px solid #354251; border-radius: 3px; color: #d4dde5; font-size: 20px; }
.image-step:disabled { opacity: .35; cursor: default; }
.viewer-tools { border-left: 1px solid #dfe5eb; background: #fff; padding: 0 13px 16px; }
.viewer-tools { overflow-y: auto; min-height: 0; }
.output-section { margin-top: 21px; padding-top: 16px; border-top: 1px solid #e8edf1; }
.output-section h3 { margin: 0 0 13px; color: #6f7b87; font-size: 12px; font-weight: 500; }
.output-field { display: block; margin: 11px 0; color: #8a949d; font-size: 11px; }
.output-field>span { display: block; margin-bottom: 6px; }
.output-field select { display: block; width: 100%; min-width: 0; background: #fff; color: #596875; border: 1px solid #d9e0e6; border-radius: 3px; padding: 7px 4px; font-size: 11px; }
.output-field select:disabled { background: #f8f9fb; opacity: .7; cursor: default; }
.output-button { width: 100%; padding: 8px 5px; border: 1px solid #d5e1ee; border-radius: 3px; background: #f4f8fd; color: #2375bd; font-size: 11px; }
.output-button:disabled { opacity: .45; cursor: default; }
.output-note,.output-result { margin: 9px 0 0; font-size: 10px; color: #99a3ac; line-height: 1.6; overflow-wrap: anywhere; }
.output-result:empty { display: none; }
.viewer-tools .column-label { padding-left: 0; }
.image-adjustment { display: block; margin: 13px 0 26px; }
.adjustment-heading { display: flex; justify-content: space-between; gap: 5px; font-size: 12px; color: #7e8a95; margin-bottom: 12px; }
.adjustment-heading output { color: #9ca5ad; font-size: 11px; }
.image-adjustment input { width: 100%; accent-color: #007bff; }
.reset-adjustments { width: 100%; border: 1px solid #d9e0e6; border-radius: 3px; padding: 8px 5px; font-size: 11px; background: #fff; color: #7e8993; }
.public-study .sidebar,.public-study .footer { display: none; }
.public-study .workspace { margin-left: 0 !important; }
.public-study .viewer-grid { height: calc(100dvh - 160px); }
@media(max-width:850px) {
  .viewer-mode:not(.menu-collapsed) .workspace { margin-left: 0; }
  .viewer-mode .sidebar { width: 58px; }
  .viewer-mode main { padding: 12px; }
  .viewer-grid { grid-template-columns: 125px minmax(0,1fr) 150px; }
}
@media(max-width:600px) {
  .send-blocks { grid-template-columns: 1fr; }
  .send-block + .send-block { border-left: 0; border-top: 1px solid #e7eaed; }
  .send-block { padding: 20px; }
  .viewer-mode main { padding: 9px; }
  .viewer-grid { grid-template-columns: 84px minmax(0,1fr); height: auto; min-height: 0; }
  .series-column { grid-column: 1; grid-row: 1; max-height: 55dvh; }
  .image-column { grid-column: 2; grid-row: 1; height: 55dvh; min-height: 290px; }
  .viewer-tools { grid-column: 1/-1; border-left: 0; border-top: 1px solid #dfe5eb; display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; padding: 0 14px 14px; }
  .viewer-tools .column-label { grid-column: 1/-1; padding: 13px 0 4px; }
  .viewer-tools { overflow-y: visible; }
  .output-section { min-width: 0; grid-column: 1/-1; }
  .image-adjustment { margin: 13px 0; }
  .reset-adjustments { grid-column: 1/-1; width: auto; justify-self: end; padding: 7px 14px; }
  .thumbnail-button img { height: 55px; }
  .series-group { padding: 0 5px 8px; }
  .series-group summary { font-size: 10px; }
  .column-label { padding: 13px 9px; }
  .image-stage { padding: 9px; }
  .image-controls { gap: 8px; font-size: 9px; }
  .viewer-heading { padding: 12px; }
  .viewer-heading strong { font-size: 12px; }
  .viewer-heading span { font-size: 10px; }
  .public-study .viewer-grid { height: auto; }
}
.studies-grid .description-cell { min-width: 150px; max-width: 220px; }
.studies-grid .doctor-cell { min-width: 145px; max-width: 180px; }
.studies-grid .description-cell, .studies-grid .doctor-cell { overflow-wrap: anywhere; }
.grid-status { display: inline-block; max-width: 145px; font-size: 11px; line-height: 1.5; border-radius: 3px; padding: 3px 7px; color: #6c757d; background: #f1f3f5; }
.grid-status.assigned { color: #8e6a20; background: #fff7e3; }
.grid-status.interpreted { color: #36715c; background: #ecf5ef; }
.grid-status.delivered { color: #486b8a; background: #edf4fc; }
.studies-empty { padding: 38px 18px !important; text-align: center; color: #92989e; }
.grid-footer { padding: 13px 28px; border-top: 1px solid #edf0f2; color: #92989e; font-size: 11px; }
.footer { display: flex; justify-content: space-between; gap: 15px; padding: 15px 25px; background: #fff; border-top: 1px solid #dee2e6; color: #959ba1; font-size: 11px; }
.menu-collapsed .sidebar { transform: translateX(-100%); }
.menu-collapsed .workspace { margin-left: 0; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 19; border: 0; background: #0005; }
@media (min-width: 851px) { .sidebar-backdrop { display: none !important; } }
@media (max-width: 850px) {
  .sidebar { transform: translateX(-100%); }
  .workspace { margin-left: 0; }
  .menu-open .sidebar { transform: translateX(0); }
  .topbar { padding-right: 15px; gap: 12px; }
  main { padding: 22px 16px; }
}
@media (max-width: 540px) {
  .topbar { padding: 0 10px; gap: 6px; }
  .topbar-left { gap: 5px; }
  .clinic-name { font-size: 11px; }
  .view-switcher { gap: 0; }
  .view-switcher > span { display: none; }
  .view-switcher select { max-width: 175px; font-size: 11px; }
  main { padding: 18px 12px; }
  .panel-content { padding: 22px 18px; }
  .view-heading { font-size: 17px; }
  .profile-details { flex-direction: column; gap: 22px; }
  .footer { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.patient-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0 18px}
.patient-actions a{text-decoration:none}.patient-report{max-width:850px;margin:auto;padding:24px;background:white;border:1px solid #e4e9ee;border-radius:6px}
.patient-report h2{margin-top:0}.patient-report h3{font-size:15px;margin-top:24px;color:#365369}.patient-report p{white-space:pre-wrap;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:600px){.patient-report{padding:16px}.patient-actions{gap:8px}.patient-actions button,.patient-actions a{font-size:13px}}

.catalog-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:12px}.grid-config{position:relative;margin-left:auto}.grid-gear{border:0;background:transparent;color:#7d8792;cursor:pointer;font-size:21px;padding:5px 9px}.grid-config-panel{position:absolute;right:0;top:100%;z-index:40;min-width:230px;background:white;border:1px solid #dfe5eb;border-radius:4px;padding:14px;box-shadow:0 4px 16px #0002;font-size:12px}.grid-config-panel label{display:flex;align-items:center;gap:9px;margin-top:13px;white-space:nowrap}.grid-config-panel input{accent-color:#007bff}.doctor-row-menu{position:relative}.doctor-row-menu .doctor-actions{position:absolute;top:32px;left:0;z-index:35;min-width:125px;background:white;border:1px solid #dde2e7;box-shadow:0 4px 15px #0002;border-radius:4px;padding:4px}.doctor-actions button{display:block;width:100%;border:0;background:white;padding:9px 12px;text-align:left;color:#495057;cursor:pointer}.doctor-actions button:hover{background:#f0f6ff;color:#007bff}.doctor-details{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:0}.doctor-details dt{font-size:12px;color:#92989e;margin-bottom:5px}.doctor-details dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.clinic-settings{max-width:1000px}.clinic-contact{border:1px solid #e1e6eb;margin:24px 0;padding:18px}.clinic-contact legend{font-size:14px;color:#687582;padding:0 8px}.clinic-logo-preview{max-width:180px;max-height:80px;object-fit:contain;margin-top:12px}.clinical-field small{color:#92989e;font-size:11px}.studies-grid [hidden]{display:none!important}.doctor-form input:disabled,.doctor-form textarea:disabled,.doctor-form select:disabled{opacity:1;background:#fafbfc;color:#495057}

.topbar:has(#patientSwitcher:not([hidden])){flex-wrap:wrap;padding-top:5px;padding-bottom:5px}.grid-gear:focus-visible{outline:2px solid #007bff;border-radius:3px}.doctor-documents{font-size:12px;padding:0 4px 12px}.doctor-documents p{overflow-wrap:anywhere}

.brand-logo{display:block;max-width:130px;height:36px;object-fit:contain}.brand.has-institution-logo>span:last-child{display:none}.viewer-mode .brand-logo,.report-mode .brand-logo{max-width:42px;height:32px}
.report-field-grid{gap:12px;margin:10px 0 16px}.dictation-panel{padding:9px 11px;gap:6px;margin-bottom:-4px}.dictation-note,.dictation-interim{margin:0;line-height:1.35}.dictation-interim:empty{display:none}.report-form{padding-top:12px}

.study-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;flex:1;min-width:0}.study-filter{display:block;min-width:125px;font-size:11px;color:#82909b}.study-filter>span{display:block;margin-bottom:6px}.study-filter input,.study-filter select{width:100%;height:33px;border:1px solid #d9e0e6;border-radius:3px;background:white;padding:6px 8px;color:#596875;font:inherit}.study-filter select[name=doctor]{max-width:190px}.studies-toolbar{align-items:flex-end}.studies-toolbar .grid-config{align-self:flex-start;margin-top:16px}.filter-error{flex-basis:100%;color:#a34b4b;margin:0;font-size:12px}.grid-settings{max-width:760px}.grid-settings-section{border:1px solid #e0e6ec;padding:18px;margin:0 0 22px;border-radius:4px}.grid-settings-section legend{font-size:13px;color:#6f7c88;padding:0 8px}.grid-settings-section label{display:flex;align-items:center;gap:10px;margin:12px 0;font-size:13px;color:#5b6874}.grid-settings-section input{accent-color:#007bff}.grid-settings-actions{display:flex;justify-content:space-between;gap:12px}.viewer-navigation{display:flex;flex-direction:column;gap:9px;margin:0 0 18px}.zoom-controls{display:flex;align-items:center;justify-content:space-between;gap:8px}.zoom-button{width:34px;height:30px;background:white;color:#2375bd;border:1px solid #d5e1ee;border-radius:3px;font-size:20px;cursor:pointer}.zoom-button:disabled{opacity:.4;cursor:default}.zoom-value{font-size:12px;color:#7e8a95}.scan-image{transform-origin:center center;user-select:none}.image-zoomed{cursor:grab;touch-action:none}.image-zoomed:active{cursor:grabbing}.viewer-grid:fullscreen,.viewer-grid.viewer-expanded{width:100vw;height:100dvh!important;min-height:0;margin:0;background:white;box-sizing:border-box;overflow:auto}.viewer-grid.viewer-expanded{position:fixed;inset:0;z-index:100}.viewer-expanded-body{overflow:hidden}
@media(max-width:600px){.study-filter{flex:1 1 130px}.viewer-navigation{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:12px}.viewer-navigation>.zoom-controls{grid-row:2;grid-column:1/-1}.viewer-grid:fullscreen,.viewer-grid.viewer-expanded{grid-template-columns:84px minmax(0,1fr);grid-template-rows:minmax(290px,62dvh) auto}.viewer-grid:fullscreen .image-column,.viewer-grid.viewer-expanded .image-column{height:100%;min-height:0}.viewer-grid:fullscreen .series-column,.viewer-grid.viewer-expanded .series-column{max-height:none}.viewer-grid:fullscreen .viewer-tools,.viewer-grid.viewer-expanded .viewer-tools{overflow-y:auto}}

.dictation-tips-button{border:0;background:transparent;color:#2375bd;font-size:11px;text-decoration:underline;padding:6px;cursor:pointer}.dictation-tips{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 18px;font-size:12px}.dictation-tips dt{font-weight:600}.dictation-tips dd{margin:0}.studies-grid th.action-cell{padding-left:5px;padding-right:5px;width:38px;min-width:38px}.studies-grid td.action-cell{padding-left:5px;padding-right:5px;width:38px;min-width:38px}

.report-heading{flex-wrap:wrap;align-items:center}.report-heading>div{flex:1;min-width:190px}.account-reset{margin-top:32px;padding-top:22px;border-top:1px solid #e1e6eb}.account-reset h2{font-size:16px;font-weight:500;margin:0 0 12px}.account-reset button{margin:10px 0;white-space:normal}

.topbar:has(#institutionSwitcher:not([hidden])){flex-wrap:wrap;padding-top:5px;padding-bottom:5px}.institutions-grid{min-width:1050px}.modalities-grid{min-width:850px}.superadmin-checkbox{display:flex;align-items:center;gap:9px;font-size:12px;color:#6b7884}.superadmin-checkbox input{accent-color:#007bff}.state-toggle{border:1px solid #e0d7ce;background:#fff7ed;color:#946430;border-radius:4px;padding:6px 10px;white-space:nowrap;font-size:11px;cursor:pointer}.state-toggle.is-active{background:#edf7f1;color:#307651;border-color:#cce6d6}.catalog-note{padding:0 18px 18px;color:#8d99a4;font-size:11px}
