:root {
  --ink: #243c37;
  --muted: #7b8984;
  --accent: #286454;
  --line: #e2e8e3;
  --canvas: #f5f7f4;
  --sidebar: 216px;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--canvas) !important;
  color: var(--ink) !important;
  font-size: 14px;
  letter-spacing: -0.015em;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  transition:
    background 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
button:active {
  transform: translateY(1px);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #559a83;
  outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #87b6a4 !important;
  outline-offset: 1px;
}
input,
select,
textarea {
  min-height: 36px;
}
textarea {
  line-height: 1.65 !important;
  resize: vertical;
}
h1,
h2,
h3,
.brand {
  font-family: "Manrope", sans-serif;
}
h2 {
  letter-spacing: -0.035em;
}
.hidden {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 80;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: #edf1eb;
  border-right: 1px solid #dfe5dc;
  display: flex;
  flex-direction: column;
  padding: 32px 16px 18px;
  z-index: 35;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #254d40;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -1px;
  padding: 0 6px;
}
.brand-symbol {
  display: grid;
  place-items: center;
  background: #2e6150;
  color: #fff;
  width: 34px;
  height: 36px;
  border-radius: 11px;
  font-size: 25px;
  font-weight: 500;
}
.brand-caption {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #788a7d;
  margin-top: 1px;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #7a897c;
  margin: 44px 8px 16px;
  font-weight: 600;
}
.workspace-label span {
  float: right;
  font-size: 8px;
  border: 1px solid #b9c8bc;
  border-radius: 3px;
  padding: 0 3px;
}
.main-navigation {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.main-navigation button,
.sidebar-bottom button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border-radius: 7px;
  padding: 11px 12px;
  background: transparent;
  color: #697a6e;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
.main-navigation button[aria-current="page"] {
  background: #dce7dc;
  color: #244d3d;
  font-weight: 700;
}
.main-navigation button:hover,
.sidebar-bottom button:hover {
  background: #e0e8dc;
}
.nav-icon {
  font-size: 18px;
  width: 18px;
  line-height: 1;
}
.nav-revenue {
  font-size: 9px;
  margin-left: auto;
  color: #47705b;
  background: #dfe8dd;
  padding: 3px 5px;
  border-radius: 4px;
}
.sidebar-note {
  margin: 44px 8px 0;
  padding: 18px 12px;
  border-top: 1px solid #d7e0d3;
}
.note-mark {
  font-size: 24px;
  color: #82a18b;
}
.sidebar-note h3 {
  font-size: 12px;
  font-weight: 700;
  margin: 9px 0 6px;
}
.sidebar-note p {
  font-size: 11px;
  color: #839084;
  line-height: 1.7;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-bottom button {
  font-size: 11px;
  padding: 10px 12px;
}
.local-status {
  font-size: 9px;
  color: #7b897e;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 19px 7px 0;
  border-top: 1px solid #dbe3d7;
  margin-top: 12px;
}
.local-status span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #659579;
}
.app-topbar {
  margin-left: var(--sidebar);
  height: 76px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fcfdfa;
}
.breadcrumb {
  font-size: 11px;
  color: #8a958e;
  display: flex;
  gap: 12px;
}
.breadcrumb strong {
  font-weight: 500;
  color: #495f53;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.clinic-control {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.clinic-control > span {
  font-size: 9px;
  color: #8a958e;
}
.clinic-control select {
  background: transparent;
  max-width: 250px;
  min-height: 23px;
  color: #40564a;
  font-size: 11px;
  font-weight: 600;
  border: 0;
}
.doctor-avatar {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  background: #e7decb;
  font-size: 10px;
  color: #665b3d;
  box-shadow: 0 0 0 1px #e2e7dc;
}
.page-intro {
  margin-left: var(--sidebar);
  padding: 32px 36px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #879487;
}
.page-intro h1 {
  font-size: 27px;
  letter-spacing: -1.2px;
  font-weight: 700;
  margin: 7px 0 6px;
  line-height: 1.3;
}
.page-intro p {
  font-size: 12px;
  color: #8a958b;
}
.primary-button {
  background: #2d6552;
  color: #fff;
  padding: 11px 17px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 3px 6px #294c3410;
}
.primary-button:hover {
  background: #224d3e;
}
#view-cockpit,
#view-finance {
  margin-left: var(--sidebar);
  width: calc(100% - var(--sidebar));
  max-width: none;
  padding: 0 36px 36px;
}
#view-cockpit {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.patient-column,
.consultation-workspace {
  min-width: 0;
}
.patient-column > div,
.soap-card,
#go-obstetric-panel,
#documents-panel > div:first-child {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 3px #294c3403;
  background: #fff;
}
.patient-column > div:first-child {
  padding: 18px 14px 12px;
}
.patient-column h2 {
  font-size: 13px;
  text-transform: none;
  letter-spacing: -0.3px;
  color: #384f41;
}
.patient-column > div:first-child button[onclick="openNewPatientModal()"] {
  background: transparent;
  border: 0;
  font-size: 10px;
  padding: 0;
  color: #54765d;
}
.patient-column #patient-search-input {
  font-size: 11px;
  background: #f6f8f4;
  border-color: #e4e9e1;
  min-height: 36px;
  border-radius: 6px;
  padding-left: 12px;
  margin: 4px 0 6px;
}
#patient-list-container {
  max-height: 290px;
  padding: 0;
}
.patient-row {
  width: 100%;
  gap: 9px;
  text-align: left;
  border: 0;
  border-radius: 7px;
  padding: 12px 8px;
  background: #fff !important;
}
.patient-row[aria-pressed="true"] {
  background: #edf3ec !important;
  box-shadow: inset 3px 0 #638e71;
}
.patient-row:hover {
  background: #f5f8f2 !important;
}
.patient-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 35px;
  background: #e7e4d8;
  color: #7a785b;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
}
.patient-row-info {
  flex: 1;
  min-width: 0;
}
.patient-row-info .text-xs {
  font-size: 11px;
  line-height: 1.5;
}
.patient-row-info .text-xs span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.patient-row-info > span {
  font-size: 10px;
}
.patient-row > span:last-child:not(.patient-avatar) {
  font-size: 8px;
  padding: 3px 4px;
  border: 0;
  background: #f0e8e2;
  color: #866b58;
  white-space: nowrap;
}
.patient-column > div:nth-child(2) {
  padding: 18px 16px;
}
#pt-name {
  font-size: 16px;
  margin: 4px 0 8px;
}
#pt-meta {
  font-size: 10px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
#pt-badge-specialty {
  font-size: 8px;
  letter-spacing: 0.4px;
  background: #f4eee8;
  border: 0;
  color: #927358;
}
#btn-toggle-pregnancy {
  font-size: 9px;
  padding: 5px;
  max-width: 76px;
  line-height: 1.5;
  background: #faf7f2;
  border-color: #ece4d9;
  color: #957960;
}
.patient-column .bg-rose-50 {
  background: #fcf4ed;
  border-color: #f2e1d0;
}
.patient-column .text-rose-700,
.patient-column .text-rose-900 {
  color: #a66b48;
}
.patient-column .bg-slate-50 {
  background: #f8f9f6;
  border-color: #e7ebe2;
}
#pt-history-list {
  max-height: 260px;
}
#pt-history-list > div {
  background: transparent;
  border: 0;
  border-left: 2px solid #e3e9df;
  border-radius: 0;
  margin-left: 3px;
  padding: 4px 0 12px 12px;
}
#pt-history-list p {
  line-height: 1.65;
}
.empty-state {
  padding: 30px 12px;
  text-align: center;
  font-size: 12px;
  color: #819181;
  line-height: 1.8;
}
.consultation-workspace {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.consultation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 23px 26px 16px;
}
.consultation-heading h2 {
  font-size: 21px;
  font-weight: 700;
  margin-top: 5px;
  letter-spacing: -0.7px;
}
#draft-status {
  font-size: 9px;
  color: #70866e;
  padding: 5px 9px;
  background: #f1f5ed;
  border-radius: 4px;
}
.workspace-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  padding: 0 26px;
}
.workspace-tabs button {
  background: transparent;
  padding: 12px 0 14px;
  font-size: 12px;
  color: #9aa298;
  border-bottom: 2px solid transparent;
}
.workspace-tabs button[aria-selected="true"] {
  color: #2d6552;
  border-color: #2d6552;
  font-weight: 700;
}
.workspace-tabs button span {
  margin-left: 10px;
  color: #9ca698;
}
#evolution-panel,
#documents-panel {
  padding: 22px 26px;
  gap: 22px;
}
#go-obstetric-panel {
  padding: 0 !important;
  background: #fafbf7 !important;
  border-color: #e4e9dc !important;
}
.ob-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  list-style: none;
  padding: 15px 16px;
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ob-summary::-webkit-details-marker {
  display: none;
}
.ob-summary > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-number {
  font-size: 9px;
  background: #e8efdf;
  color: #728460;
  border-radius: 5px;
  padding: 4px 5px;
}
.summary-hint {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  color: #909c86;
  font-weight: 400;
}
.summary-hint > span {
  margin-left: 12px;
}
#go-obstetric-panel > div {
  margin-left: 16px;
  margin-right: 16px;
}
#go-obstetric-panel > div:last-child {
  margin-bottom: 16px;
}
#go-obstetric-panel > div:first-of-type {
  display: none;
}
#go-obstetric-panel .bg-pink-600 {
  background: #628063;
}
#go-obstetric-panel [class*="text-pink"] {
  color: #657c5a;
}
#go-obstetric-panel [class*="border-pink"] {
  border-color: #e0e7d5;
}
#go-obstetric-panel [class*="bg-pink-50"],
#go-obstetric-panel [class*="bg-pink-600\/"] {
  background: #edf1e4;
}
#go-obstetric-panel .text-\[11px\] {
  font-size: 10px;
}
.soap-card {
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.soap-card > div:first-child {
  align-items: center;
  padding-bottom: 16px;
}
.soap-card h2 {
  font-size: 15px;
}
.soap-card textarea,
.soap-card input {
  font-size: 12px !important;
  background: #fcfdfa !important;
  border-color: #e3e8df !important;
  border-radius: 6px !important;
}
.soap-card textarea {
  padding: 12px !important;
}
.soap-card label {
  font-size: 11px;
}
.soap-card .text-teal-600 {
  color: #527e60;
}
.soap-card > .space-y-2\.5 {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.soap-card .grid-cols-5 {
  padding: 12px;
  gap: 12px;
  background: #f7f9f3;
  border-color: #e4e9dc;
  border-radius: 8px;
}
#btn-voice-dictation {
  background: #f3f5ef !important;
  color: #697d60 !important;
  border: 1px solid #e2e7da;
  border-radius: 6px;
  box-shadow: none;
  font-size: 10px;
}
#btn-voice-dictation.animate-pulse {
  color: #b64b46 !important;
  background: #fff0ed !important;
}
.soap-card > div:last-child {
  margin: 20px -26px -22px;
  padding: 18px 26px;
  border-radius: 0;
  background: #fafbf7;
  gap: 12px;
}
.soap-card > div:last-child > div {
  flex-wrap: wrap;
}
.soap-card > div:last-child > button {
  background: #2d6552;
  font-size: 11px;
  border-radius: 6px;
}
.soap-card .template-menu > div button {
  border-color: #dfe7d7 !important;
  background: #f6f8f2 !important;
  color: #60745b !important;
  min-height: 25px;
  font-size: 10px;
}
.soap-card .template-menu > div > span {
  font-size: 9px;
  color: #8b9b80;
}
.soap-card .text-\[10px\] {
  font-size: 9px;
}
#documents-panel > div:first-child {
  padding: 0;
  border: 0;
  box-shadow: none;
}
#documents-panel > div:first-child h2 {
  font-size: 13px;
  text-transform: none;
  letter-spacing: -0.2px;
  color: #3c5445;
}
#documents-panel .grid-cols-2 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#documents-panel > div:first-child button.text-left {
  padding: 14px;
  border-radius: 7px;
}
#documents-panel > div:first-child button.text-left span:first-child {
  color: #7c9575;
  font-size: 9px;
  margin-bottom: 6px;
}
#printable-document-area {
  border-radius: 4px;
  padding: 32px;
  box-shadow: 0 4px 12px #31472e06;
  border-color: #e3e7de;
  min-height: 600px;
}
#pdf-doc-body {
  min-height: 260px;
}
#documents-panel > div:last-child {
  grid-template-columns: 1fr 1fr;
}
#documents-panel > div:last-child button {
  border-radius: 6px;
  font-size: 11px;
  background: #2d6552;
}
#documents-panel > div:last-child button:first-child {
  background: #f0f3ec;
  color: #476340;
  border: 1px solid #dce4d4;
}
#view-finance h1 {
  font-size: 22px;
  letter-spacing: -0.7px;
}
#view-finance .rounded-2xl {
  border-radius: 9px;
}
#view-finance .text-2xl {
  font-family: Manrope, sans-serif;
  font-size: 27px;
  font-variant-numeric: tabular-nums;
  margin: 14px 0;
}
#view-finance th {
  white-space: nowrap;
}
#view-finance td {
  padding-top: 16px;
  padding-bottom: 16px;
}
#view-finance [class*="bg-emerald-50"] {
  background: #edf4e9;
  border-color: #dce8d5;
}
#view-finance [class*="bg-amber-50"] {
  background: #f7f3e8;
  border-color: #eae2cb;
}
#toast-notification {
  background: #2b5140;
  border-color: #719478;
  max-width: min(420px, calc(100vw - 32px));
  line-height: 1.6;
}
#modal-new-patient,
#modal-doctor {
  backdrop-filter: blur(5px);
}
[role="dialog"] {
  max-height: 92dvh;
  overflow-y: auto;
}
input[type="checkbox"] {
  min-height: 0;
  accent-color: #2d6552;
}
label {
  line-height: 1.5;
}
.text-slate-400 {
  color: #889487;
}
.text-slate-500 {
  color: #788676;
}
.text-slate-900 {
  color: #283f33;
}
.text-xs {
  line-height: 1.6;
}
@media (min-width: 1700px) {
  #view-cockpit,
  #view-finance,
  .page-intro {
    padding-left: 56px;
    padding-right: 56px;
  }
  #view-cockpit {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .consultation-workspace {
    max-width: 1100px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 184px;
  }
  .app-sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .brand {
    font-size: 19px;
  }
  .app-topbar {
    padding: 0 24px;
  }
  .page-intro {
    padding: 24px;
  }
  #view-cockpit,
  #view-finance {
    padding: 0 24px 24px;
  }
  #view-cockpit {
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 18px;
  }
  .consultation-heading {
    padding: 20px;
  }
  .workspace-tabs {
    padding: 0 20px;
  }
  #evolution-panel,
  #documents-panel {
    padding: 20px;
  }
  .soap-card > div:last-child {
    margin: 20px -20px -20px;
    padding: 18px 20px;
  }
  .soap-card .grid-cols-5 {
    gap: 6px;
  }
  .patient-avatar {
    display: none;
  }
  .sidebar-note {
    margin-top: 24px;
  }
}
@media (max-width: 950px) {
  :root {
    --sidebar: 0px;
  }
  .app-sidebar {
    position: static;
    width: 100%;
    padding: 14px 22px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
  .brand-caption,
  .workspace-label,
  .sidebar-note,
  .sidebar-bottom {
    display: none;
  }
  .main-navigation {
    flex-direction: row;
    gap: 6px;
  }
  .main-navigation button {
    font-size: 11px;
    padding: 9px;
  }
  .nav-revenue {
    display: none;
  }
  .app-topbar {
    height: 65px;
  }
  .page-intro h1 {
    font-size: 24px;
  }
  #view-cockpit {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .summary-hint {
    display: none;
  }
  .soap-card .grid-cols-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .soap-card .flex.items-center.justify-between {
    flex-wrap: wrap;
    gap: 6px;
  }
}
@media (max-width: 650px) {
  .app-sidebar {
    padding: 13px 16px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-symbol {
    width: 28px;
    height: 30px;
    font-size: 21px;
  }
  .main-navigation .nav-icon {
    display: none;
  }
  .app-topbar {
    padding: 0 16px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 6px;
  }
  .clinic-control select {
    max-width: 155px;
    font-size: 10px;
  }
  .topbar-actions {
    gap: 10px;
  }
  .doctor-avatar {
    width: 29px;
    height: 29px;
  }
  .page-intro {
    padding: 24px 16px 20px;
    align-items: flex-start;
  }
  .page-intro h1 {
    font-size: 23px;
    max-width: 240px;
  }
  .page-intro p {
    font-size: 11px;
    max-width: 220px;
    line-height: 1.7;
  }
  .primary-button {
    font-size: 10px;
    padding: 10px;
    white-space: nowrap;
    margin-top: 12px;
  }
  .primary-button span {
    display: none;
  }
  .eyebrow {
    font-size: 8px;
  }
  #view-cockpit {
    display: flex;
    flex-direction: column;
    padding: 0 12px 24px;
    gap: 16px;
  }
  .patient-column,
  .consultation-workspace {
    width: 100%;
  }
  .patient-column {
    gap: 12px;
  }
  .patient-column > div:first-child {
    padding: 14px;
  }
  #patient-list-container {
    max-height: 160px;
  }
  .patient-avatar {
    display: grid;
  }
  .patient-column > div:nth-child(2) {
    padding: 14px;
  }
  .patient-column > div:nth-child(2) > div > .mt-4 {
    display: none;
  }
  .patient-column > div:nth-child(2) .mt-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .patient-column > div:nth-child(2) .mt-3 > div {
    margin: 0;
  }
  .patient-column > div:nth-child(2) .mt-3 p {
    font-size: 10px;
  }
  .consultation-heading {
    padding: 18px 16px 12px;
  }
  .consultation-heading h2 {
    font-size: 19px;
  }
  #evolution-panel,
  #documents-panel {
    padding: 16px;
  }
  .workspace-tabs {
    padding: 0 16px;
  }
  .soap-card > div:last-child {
    margin: 18px -16px -16px;
    padding: 16px;
  }
  .soap-card > div:last-child > button {
    width: 100%;
    padding: 12px;
  }
  .soap-card > div:last-child > div {
    width: 100%;
  }
  .soap-card > div:last-child select {
    max-width: 190px;
    font-size: 10px;
  }
  .soap-card .grid-cols-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .soap-card label {
    font-size: 10px;
  }
  .soap-card .template-menu > div {
    flex-wrap: wrap;
    overflow: visible;
  }
  #go-obstetric-panel .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  #documents-panel .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #printable-document-area {
    padding: 18px;
    min-height: 560px;
  }
  #printable-document-area > div:last-child {
    flex-wrap: wrap;
  }
  #pdf-doctor-credentials {
    font-size: 9px;
  }
  #documents-panel > div:last-child {
    grid-template-columns: 1fr;
  }
  #view-finance {
    padding: 0 16px 24px;
  }
  #view-finance > .grid {
    grid-template-columns: 1fr 1fr;
  }
  #view-finance .text-2xl {
    font-size: 22px;
  }
  #view-finance .text-xs {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .app-sidebar,
  .app-topbar,
  .page-intro,
  .workspace-tabs,
  .consultation-heading,
  .skip-link {
    display: none !important;
  }
  #view-cockpit,
  #documents-panel,
  .consultation-workspace {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible !important;
  }
  #printable-document-area {
    position: absolute !important;
    min-height: 0 !important;
    height: auto !important;
  }
  #pdf-doc-body {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  #print-body-text {
    white-space: pre-wrap;
    font-size: 12px;
    line-height: 1.7;
  }
  #pdf-doc-body {
    display: none !important;
  }
  #print-title-text {
    font-weight: 700;
    margin-top: 16px;
  }
  #pdf-doc-title {
    display: none !important;
  }
}
.doctor-info {
  display: block;
  white-space: normal;
  font-size: 8px;
  color: #8a9788;
  line-height: 1.5;
  margin-top: 5px;
  max-width: 140px;
}
.sidebar-bottom button:has(.doctor-info) {
  align-items: flex-start;
}
/* Keep the reference switch reachable while avoiding a duplicate heading. */
#go-obstetric-panel > div:first-of-type {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 10px;
  border-color: #e2e8da;
}
#go-obstetric-panel > div:first-of-type > div:first-child {
  display: none;
}
@media (max-width: 650px) {
  .patient-column > div:nth-child(2) > div > .mt-4 {
    display: block;
  }
  #pt-history-list {
    max-height: 150px;
  }
}
.mobile-tools {
  display: none;
}
@media (max-width: 950px) {
  .mobile-tools {
    display: block;
    position: relative;
  }
  .mobile-tools > summary {
    list-style: none;
    cursor: pointer;
    padding: 8px;
    color: #56705c;
    font-size: 18px;
  }
  .mobile-tools > div {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px;
    z-index: 40;
    width: 185px;
    box-shadow: 0 6px 20px #294c3415;
  }
  .mobile-tools button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px;
    font-size: 12px;
  }
  .topbar-actions {
    gap: 6px;
  }
}
@media (max-width: 650px) {
  .breadcrumb {
    white-space: nowrap;
  }
  .breadcrumb > span {
    display: none;
  }
  .breadcrumb {
    font-size: 0;
  }
  .breadcrumb strong {
    font-size: 10px;
  }
  .clinic-control select {
    max-width: 150px;
  }
  .clinic-control > span {
    font-size: 8px;
  }
}
#print-title-text,
#print-body-text {
  display: none;
}
@media print {
  #print-title-text,
  #print-body-text {
    display: block;
  }
}
