@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/playfair-600.ttf") format("truetype");
}
/* Clínica Obstétrica · Paleta inspirada en MyN Ginecólogas. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/nunito-400.ttf") format("truetype");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/nunito-500.ttf") format("truetype");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/nunito-600.ttf") format("truetype");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/nunito-700.ttf") format("truetype");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/playfair-500.ttf") format("truetype");
}
:root {
  --primary: #b93e6f;
  --primary-hover: #9e315d;
  --primary-soft: #faedef;
  --rose: #dc8c8c;
  --rose-deep: #a0454e;
  --rose-border: #edc9cc;
  --peach: #d8ae96;
  --peach-soft: #fff2ed;
  --burgundy: #4a1817;
  --ink: #462e38;
  --text: #4e4e4e;
  --muted: #76666e;
  --line: #f0e3e7;
  --background: #fcf8f9;
  --surface-subtle: #fdfafb;
  --surface-hover: #fbf2f5;
  --white: #ffffff;
  --mauve: #7d618b;
  --mauve-soft: #f3edf6;
  --success: #21756f;
  --success-soft: #eaf5f2;
  --warning: #86632e;
  --warning-soft: #fcf4e6;
  --danger: #a83c50;
  --danger-soft: #fbeef0;
  --radius: 10px;
  --sidebar: 242px;
  --shadow: 0 3px 18px rgba(117, 48, 73, 0.035);
  font-family:
    "Nunito",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  color: var(--text);
  font-size: 13px;
  background: var(--background);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  flex-shrink: 0;
}
small {
  font-size: 11px;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  flex-shrink: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 260px;
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: var(--white);
  border-right: 1px solid var(--line);
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 31px 18px 0;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 28px;
  color: var(--primary);
}
.brand-mark {
  width: 36px;
  height: 50px;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
}
.brand strong {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -1.4px;
  line-height: 1.2;
}
.brand strong > span {
  color: var(--rose);
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.5px;
  margin-top: 4px;
  color: var(--rose-deep);
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 0 4px 28px;
  background: var(--surface-subtle);
}
.workspace-icon {
  background: var(--primary-soft);
  color: var(--primary);
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 7px;
}
.workspace-label strong {
  font-size: 11.5px;
  font-weight: 600;
  display: block;
}
.workspace-label > div > span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.workspace-label > .icon {
  width: 13px;
  margin-left: auto;
  color: var(--muted);
}
.nav-section-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  padding: 0 15px;
  margin-bottom: 11px;
}
.finance-label {
  margin-top: 31px;
}
.nav-link {
  height: 43px;
  display: flex;
  gap: 13px;
  align-items: center;
  border-radius: 7px;
  padding: 0 15px;
  margin: 4px 0;
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-link > .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.65;
}
.nav-link:hover {
  background: var(--surface-hover);
  color: var(--primary);
}
.nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}
.nav-link.active:before {
  content: "";
  height: 17px;
  width: 3px;
  position: absolute;
  left: 0;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  background: var(--rose-border);
  color: var(--burgundy);
  min-width: 22px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 5px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 38px;
}
.care-note {
  background: var(--peach-soft);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  padding: 17px 14px;
  margin: 0 4px 23px;
}
.care-note > span {
  color: var(--rose-deep);
}
.care-note > span > .icon {
  width: 22px;
  height: 22px;
}
.care-note p {
  font-size: 11px;
  color: var(--rose-deep);
  font-weight: 600;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}
.care-note small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
}
.care-line {
  width: 100px;
  height: 100px;
  border: 1px solid var(--rose-border);
  border-radius: 100% 0;
  position: absolute;
  right: -42px;
  top: 3px;
  transform: rotate(-10deg);
}
.care-line:after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid var(--rose-border);
  border-radius: 100% 0;
  top: 40px;
  left: -30px;
  transform: rotate(45deg);
}
.sidebar-profile {
  border-top: 1px solid var(--line);
  margin-top: 17px;
  width: calc(100% + 36px);
  margin-left: -18px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: var(--surface-subtle);
}
.sidebar-profile strong {
  display: block;
  color: var(--rose-deep);
  font-weight: 600;
  font-size: 11px;
}
.sidebar-profile small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.sidebar-profile > .icon {
  width: 13px;
  margin-left: auto;
  color: var(--muted);
}
.avatar.doctor {
  background: var(--primary-soft);
  color: var(--primary);
  border: 3px solid var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  width: 37px;
  height: 37px;
}
.app-shell {
  margin-left: var(--sidebar);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 76px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 33px;
  gap: 24px;
  border-top: 3px solid var(--rose);
  box-shadow: 0 3px 12px rgba(160, 69, 78, 0.035);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.breadcrumb > span {
  color: var(--muted);
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--muted);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}
.global-search .icon {
  width: 16px;
  height: 16px;
}
.global-search kbd {
  font-family: inherit;
  font-size: 10px;
  border: 1px solid var(--rose-border);
  background: var(--surface-subtle);
  border-radius: 4px;
  padding: 3px 5px;
  margin-left: 30px;
  color: var(--muted);
}
.topbar-divider {
  height: 22px;
  width: 1px;
  background: var(--line);
  margin-left: 1px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 7px;
  color: var(--muted);
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.icon-button.tiny {
  width: 24px;
  height: 26px;
}
.icon-button.tiny .icon {
  width: 14px;
  height: 14px;
}
.icon-button.subtle {
  width: 29px;
  height: 29px;
}
.icon-button.subtle .icon {
  width: 16px;
  height: 16px;
}
.notification-button {
  position: relative;
  width: 25px;
}
.notification-button i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  top: 7px;
  right: 5px;
  box-shadow: 0 0 0 2px white;
}
.doctor-avatar {
  width: 32px;
  height: 32px;
  background: var(--primary-soft);
  border-radius: 50%;
  color: var(--primary);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  border: 3px solid var(--primary-soft);
}
.mobile-menu {
  display: none;
}
#main-content {
  padding: 29px 33px 26px;
  width: 100%;
  max-width: 1660px;
  margin: 0 auto;
  outline: none;
  flex: 1;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
  min-height: 54px;
}
.page-heading h1 {
  font-weight: 700;
  letter-spacing: -0.6px;
  font-size: 26px;
  color: var(--rose-deep);
  line-height: 1.25;
}
.page-heading p {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid transparent;
  line-height: 1.3;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button > .icon {
  width: 16px;
  height: 16px;
}
.button.primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 3px 8px rgba(185, 62, 111, 0.12);
  border-color: var(--primary);
}
.button.primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.button.secondary {
  background: white;
  color: var(--rose-deep);
  border-color: var(--rose-border);
  box-shadow: 0 1px 2px rgba(185, 62, 111, 0.012);
}
.button.secondary:hover {
  background: var(--primary-soft);
  border-color: var(--rose);
}
.button.ghost {
  color: var(--primary);
}
.button.ghost:hover {
  background: var(--primary-soft);
}
.button.small {
  min-height: 30px;
  padding: 7px 11px;
  font-size: 10.5px;
  gap: 6px;
}
.button.small > .icon {
  width: 13px;
  height: 13px;
}
.date-chip {
  display: flex;
  gap: 8px;
  align-items: center;
  background: white;
  color: var(--muted);
  font-size: 10.5px;
  padding: 10px 12px;
  border: 1px solid var(--rose-border);
  border-radius: 7px;
  white-space: nowrap;
}
.date-chip > .icon {
  width: 14px;
  height: 14px;
}
.welcome-banner {
  display: flex;
  position: relative;
  overflow: hidden;
  justify-content: space-between;
  background: var(--primary-soft);
  border: 1px solid var(--rose-border);
  border-radius: 12px;
  margin-bottom: 23px;
  min-height: 172px;
}
.welcome-copy {
  position: relative;
  z-index: 2;
  padding: 24px 27px;
}
.welcome-eyebrow {
  font-size: 10px;
  color: var(--rose-deep);
  letter-spacing: 0.1px;
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
}
.welcome-copy h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--rose-deep);
}
.welcome-copy p {
  font-size: 10.5px;
  color: var(--text);
  margin-top: 7px;
  line-height: 1.6;
}
.welcome-copy p strong {
  font-weight: 700;
  color: var(--primary);
}
.welcome-link {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 10px;
  margin-top: 14px;
}
.welcome-link > .icon {
  width: 15px;
  height: 15px;
}
.welcome-art {
  width: 330px;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
}
.welcome-art > svg {
  width: 100%;
  height: 100%;
  position: absolute;
  right: 0;
  bottom: 0;
}
.welcome-seal {
  position: absolute;
  right: 54px;
  top: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 133px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 5px 15px rgba(160, 69, 78, 0.05);
  transform: none;
  color: var(--rose-deep);
}
.welcome-seal > .icon {
  width: 28px;
  height: 28px;
}
.welcome-seal > span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 11px;
  line-height: 1.6;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 23px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 20px 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
  font-size: 10.5px;
  font-weight: 600;
}
.metric-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}
.metric-icon > .icon {
  width: 16px;
  height: 16px;
}
.blush {
  background: var(--primary-soft);
  color: var(--primary);
}
.peach {
  background: var(--peach-soft);
  color: var(--rose-deep);
}
.mauve {
  background: var(--mauve-soft);
  color: var(--mauve);
}
.rose {
  background: var(--primary-soft);
  color: var(--primary);
}
.lavender {
  background: var(--mauve-soft);
  color: var(--mauve);
}
.metric-value {
  display: block;
  color: var(--rose-deep);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -1.1px;
  line-height: 1.2;
  margin-top: 6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.metric-detail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 13px;
  min-height: 15px;
}
.metric-trend {
  color: var(--primary);
  display: flex;
  gap: 3px;
  align-items: center;
}
.metric-trend > .icon {
  width: 11px;
  height: 11px;
}
.mini-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rose);
}
.expense-detail {
  color: var(--muted);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.63fr) minmax(310px, 1fr);
  gap: 22px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 18px;
  min-height: 74px;
}
.panel-header h2 {
  font-size: 13px;
  letter-spacing: -0.2px;
  color: var(--rose-deep);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}
.panel-header p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  padding: 0;
}
.text-link:hover {
  color: var(--primary);
}
.text-link .icon {
  width: 13px;
  height: 13px;
}
.count-pill {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--rose-border);
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: 0;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: 11px;
}
th {
  text-align: left;
  background: var(--surface-subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 11px 19px;
  font-size: 10px;
  font-weight: 700;
  color: var(--rose-deep);
}
td {
  padding: 14px 19px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--surface-subtle);
}
.agenda-table th,
.agenda-table td {
  padding-left: 21px;
  padding-right: 14px;
}
.agenda-table td {
  padding-top: 13px;
  padding-bottom: 13px;
}
.agenda-table th:last-child,
.agenda-table td:last-child {
  text-align: right;
  padding-left: 0;
  padding-right: 18px;
}
.agenda-table th:first-child {
  width: 77px;
}
.time-label {
  font-weight: 700;
  color: var(--rose-deep);
  font-size: 11px;
  display: block;
}
.duration-label {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.avatar {
  display: inline-flex;
  flex-shrink: 0;
  width: 33px;
  height: 33px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1px;
}
.person small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.name-button {
  font-weight: 700;
  color: var(--ink);
  font-size: 10.5px;
  padding: 0;
  text-align: left;
  line-height: 1.5;
}
.name-button:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 9px;
  font-weight: 400;
  white-space: nowrap;
  background: var(--primary-soft);
  color: var(--primary);
  line-height: 1.3;
}
.status i {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.status.completed {
  background: var(--success-soft);
  color: var(--success);
}
.status.confirmed {
  background: var(--primary-soft);
  color: var(--primary);
}
.status.waiting {
  background: var(--warning-soft);
  color: var(--warning);
}
.status.pending {
  background: var(--mauve-soft);
  color: var(--mauve);
}
.status.cancelled {
  background: var(--danger-soft);
  color: var(--danger);
}
.row-action {
  width: 27px;
  height: 27px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.row-action > .icon {
  width: 14px;
  height: 14px;
}
.row-action.highlight {
  width: auto;
  background: var(--primary);
  color: white;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 10px;
}
.panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 14px 21px;
  min-height: 46px;
}
.panel-footer > span {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
}
.capitalize::first-letter {
  text-transform: uppercase;
}
.balance-value {
  padding: 3px 23px 0;
}
.balance-value > span:first-child {
  font-size: 10px;
  display: block;
  color: var(--muted);
}
.balance-value strong {
  font-size: 29px;
  display: block;
  color: var(--rose-deep);
  font-weight: 700;
  letter-spacing: -1px;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.balance-note {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 9px;
  color: var(--muted);
}
.chart-legend > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.chart-legend i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
}
.legend-income {
  background: var(--primary);
}
.legend-expense {
  background: var(--peach);
}
.finance-panel > .chart-legend {
  padding: 19px 24px 0;
}
.bar-chart {
  display: flex;
  gap: 12px;
  padding: 17px 25px 0 20px;
  height: 165px;
}
.chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 9px;
  padding-bottom: 25px;
}
.chart-plot {
  position: relative;
  flex: 1;
  min-width: 0;
}
.chart-grid {
  position: absolute;
  inset: 0 0 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.chart-grid i {
  border-top: 1px dashed var(--line);
  width: 100%;
}
.chart-columns {
  height: 100%;
  display: flex;
  justify-content: space-around;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.chart-column {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
  max-width: 46px;
}
.bar-group {
  height: calc(100% - 25px);
  width: 100%;
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: flex-end;
}
.chart-bar {
  max-width: 15px;
  min-width: 7px;
  width: 40%;
  border-radius: 3px 3px 0 0;
  min-height: 0;
}
.income-bar {
  background: var(--rose);
}
.current .income-bar {
  background: var(--primary);
}
.expense-bar {
  background: var(--peach);
}
.chart-column > span {
  height: 25px;
  padding-top: 9px;
  font-size: 9px;
  color: var(--muted);
  text-transform: capitalize;
}
.finance-report-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin: 15px 22px 0;
  padding: 14px 0;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
}
.finance-report-link > .icon {
  width: 14px;
  height: 14px;
}
.recent-panel .panel-header {
  padding-top: 21px;
  padding-bottom: 17px;
}
.recent-panel td {
  padding: 13px 19px;
}
.recent-panel .avatar {
  width: 30px;
  height: 30px;
  font-size: 9px;
}
.recent-panel table {
  font-size: 10px;
}
.recent-panel .name-button {
  font-size: 10px;
}
.recent-panel .person small {
  font-size: 9px;
}
.recent-panel th {
  font-size: 10px;
}
.shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  padding: 0 22px 17px;
}
.shortcut {
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  padding: 14px 13px;
  background: var(--surface-subtle);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.shortcut:hover {
  background: var(--primary-soft);
  border-color: var(--rose-border);
}
.shortcut-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 10px;
}
.shortcut-icon > .icon {
  width: 15px;
  height: 15px;
}
.shortcut:nth-child(2) .shortcut-icon {
  background: var(--mauve-soft);
  color: var(--mauve);
}
.shortcut:nth-child(3) .shortcut-icon {
  background: var(--primary-soft);
  color: var(--primary);
}
.shortcut:nth-child(4) .shortcut-icon {
  background: var(--peach-soft);
  color: var(--rose-deep);
}
.shortcut strong {
  font-size: 10px;
  color: var(--rose-deep);
  font-weight: 700;
}
.shortcut small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.care-footer {
  border-top: 1px solid var(--line);
  padding: 13px 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--muted);
}
.care-footer > .icon {
  width: 13px;
  height: 13px;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 3px 33px 23px;
  max-width: 1660px;
  width: 100%;
  margin: 0 auto;
  font-size: 10px;
  color: var(--rose-deep);
  background: var(--primary-soft);
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.footer-dot {
  margin: 0 5px;
  color: var(--muted);
}
.demo-label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.demo-label > i {
  width: 4px;
  height: 4px;
  background: var(--rose);
  display: inline-block;
  border-radius: 50%;
}
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  align-self: stretch;
}
.tabs > button {
  font-size: 11px;
  font-weight: 500;
  position: relative;
  padding: 10px 0;
  color: var(--muted);
  white-space: nowrap;
}
.tabs > button.active {
  color: var(--primary);
}
.tabs > button.active:after {
  content: "";
  height: 2px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  background: var(--primary);
  border-radius: 2px;
}
.tabs > button > span {
  font-size: 10px;
  display: inline-block;
  background: var(--primary-soft);
  padding: 3px 6px;
  border-radius: 4px;
  margin-left: 4px;
  color: var(--primary);
}
.search-field {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  border-radius: 7px;
  min-width: 250px;
}
.search-field > .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.search-field input {
  border: 0;
  outline: none;
  min-width: 0;
  width: 100%;
  font-size: 10.5px;
  color: var(--text);
  background: transparent;
}
.search-field input::placeholder {
  color: var(--muted);
}
.search-field:focus-within {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.search-field input:focus-visible {
  outline: none;
}
.list-footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 22px;
  color: var(--muted);
  font-size: 10px;
}
.list-footer span {
  font-size: 10px;
  color: var(--muted);
}
.list-footer strong {
  color: var(--muted);
  font-weight: 500;
}
.muted {
  color: var(--muted);
}
.cell-title {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 11px;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cell-subtitle {
  color: var(--muted);
  display: block;
  margin-top: 4px;
  font-size: 10px;
  max-width: 330px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.section-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
}
.section-summary strong {
  font-weight: 500;
}
.section-summary > .icon {
  width: 17px;
  height: 17px;
}
.segmented {
  display: inline-flex;
  background: var(--primary-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.segmented button {
  padding: 7px 13px;
  font-size: 10px;
  border-radius: 5px;
  color: var(--muted);
}
.segmented button.active {
  background: white;
  box-shadow: 0 1px 4px rgba(185, 62, 111, 0.043);
  color: var(--primary);
}
.segmented button:hover {
  color: var(--primary);
}
.standalone-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 23px;
}
.procedures-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.procedure-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 0;
  background: white;
  box-shadow: var(--shadow);
}
.procedure-card.inactive {
  background: var(--surface-subtle);
}
.procedure-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 21px;
  gap: 10px;
}
.procedure-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}
.procedure-icon .icon {
  width: 23px;
  height: 23px;
}
.category-pill {
  font-size: 10px;
  font-weight: 400;
  padding: 5px 8px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--line);
  border-radius: 5px;
  white-space: nowrap;
}
.procedure-card h2 {
  font-weight: 700;
  font-size: 15px;
  color: var(--rose-deep);
  letter-spacing: -0.3px;
}
.procedure-card > p {
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 8px;
  min-height: 38px;
}
.procedure-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 23px;
  margin-bottom: 20px;
}
.procedure-meta > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.procedure-meta .icon {
  width: 14px;
  height: 14px;
}
.procedure-meta strong {
  font-size: 19px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.4px;
}
.procedure-bottom {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}
.toggle-button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  color: var(--muted);
  font-size: 10px;
}
.toggle {
  width: 27px;
  height: 15px;
  background: var(--rose-border);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  padding: 2px;
}
.toggle:before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px rgba(185, 62, 111, 0.067);
  transition: transform 0.15s;
}
.toggle.on {
  background: var(--primary);
}
.toggle.on:before {
  transform: translateX(12px);
}
.page-note {
  margin: 22px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}
.page-note > .icon {
  width: 15px;
  height: 15px;
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.select-control {
  height: 36px;
  border: 1px solid var(--rose-border);
  background: white;
  border-radius: 7px;
  color: var(--muted);
  font-size: 10.5px;
  padding: 0 30px 0 12px;
  text-transform: capitalize;
  max-width: 100%;
}
.transaction-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.transaction-cell small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.transaction-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.transaction-icon .icon {
  width: 16px;
  height: 16px;
}
.transaction-icon.income {
  color: var(--primary);
  background: var(--primary-soft);
}
.transaction-icon.expense {
  color: var(--rose-deep);
  background: var(--peach-soft);
}
.align-right {
  text-align: right;
}
.amount {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.amount.income {
  color: var(--primary);
}
.amount.expense {
  color: var(--rose-deep);
}
.row-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
}
.danger-hover:hover {
  background: var(--primary-soft);
  color: var(--muted);
}
.reports-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}
.reports-grid .bar-chart {
  height: 260px;
  padding: 20px 30px 25px;
}
.reports-grid .chart-y {
  padding-bottom: 25px;
}
.report-procedures {
  grid-column: 1/-1;
}
.distribution-list {
  padding: 7px 25px 25px;
}
.distribution-item {
  margin-bottom: 20px;
}
.distribution-item:last-child {
  margin-bottom: 0;
}
.distribution-item > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  gap: 15px;
  font-size: 10px;
}
.distribution-item > div:first-child > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.distribution-item strong {
  color: var(--muted);
  font-weight: 500;
}
.distribution-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
}
.distribution-track {
  height: 5px;
  border-radius: 5px;
  background: var(--primary-soft);
  overflow: hidden;
}
.distribution-track > span {
  display: block;
  height: 100%;
  border-radius: 5px;
}
.tone-0 {
  background: var(--primary);
}
.tone-1 {
  background: var(--rose);
}
.tone-2 {
  background: var(--peach);
}
.tone-3 {
  background: var(--mauve);
}
.distribution-item small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.inline-progress {
  width: 100px;
  height: 5px;
  border-radius: 4px;
  background: var(--surface-subtle);
  display: inline-block;
  vertical-align: middle;
  margin-right: 15px;
}
.inline-progress > span {
  height: 100%;
  display: block;
  background: var(--rose);
  border-radius: 4px;
}
.agenda-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.agenda-sidebar {
  padding: 22px 19px;
}
.mini-calendar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 18px;
}
.mini-calendar-heading strong {
  font-weight: 500;
  font-size: 11px;
  color: var(--rose-deep);
}
.mini-calendar-heading > div {
  display: flex;
}
.mini-weekdays,
.mini-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.mini-weekdays {
  margin-bottom: 9px;
}
.mini-weekdays span {
  font-size: 10px;
  text-align: center;
  color: var(--muted);
}
.mini-days > button,
.mini-days > span {
  height: 27px;
  min-width: 0;
  position: relative;
  font-size: 10px;
  border-radius: 6px;
  padding: 0;
  color: var(--muted);
}
.mini-days > button:hover {
  background: var(--surface-subtle);
}
.mini-days > .selected {
  background: var(--primary) !important;
  color: white !important;
}
.mini-days > .is-today {
  font-weight: 700;
  color: var(--primary);
}
.mini-days > .has-events:after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: calc(50% - 1.5px);
  width: 3px;
  height: 3px;
  background: var(--rose);
  border-radius: 50%;
}
.mini-days > .selected:after {
  background: var(--white);
}
.calendar-key {
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 22px;
}
.calendar-key h3 {
  font-weight: 500;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 15px;
}
.calendar-key > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  margin: 13px 0;
}
.calendar-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.calendar-dot.confirmed {
  background: var(--primary);
}
.calendar-dot.pending {
  background: var(--mauve);
}
.calendar-dot.waiting {
  background: var(--warning);
}
.calendar-dot.completed {
  background: var(--success);
}
.calendar-dot.cancelled {
  background: var(--danger);
}
.agenda-reminder {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 19px;
  display: flex;
  gap: 8px;
  color: var(--muted);
}
.agenda-reminder > .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
}
.agenda-reminder p {
  font-size: 10px;
  line-height: 1.9;
}
.calendar-toolbar {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  border-bottom: 1px solid var(--line);
}
.calendar-date-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.calendar-date-nav > .icon-button {
  width: 24px;
}
.calendar-date-nav strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 12px;
}
.calendar-toolbar .segmented button {
  font-size: 10px;
  padding: 6px 11px;
}
.day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 24px;
  border-bottom: 1px solid var(--line);
}
.day-heading > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.day-number {
  font-size: 32px;
  letter-spacing: -1.3px;
  color: var(--primary);
  font-weight: 500;
}
.day-heading strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
  color: var(--rose-deep);
}
.day-heading > div > div > span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.day-timeline {
  padding: 17px 22px 20px;
}
.time-slot {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  min-height: 72px;
}
.time-slot > span {
  font-size: 10px;
  color: var(--muted);
  transform: translateY(-5px);
  font-variant-numeric: tabular-nums;
}
.time-slot > div {
  border-top: 1px solid var(--line);
  padding: 7px 0 12px;
  position: relative;
}
.time-slot .add-slot {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  opacity: 0;
  position: absolute;
  top: 5px;
  right: 0;
}
.time-slot .add-slot > .icon {
  width: 12px;
  height: 12px;
}
.time-slot:hover .add-slot,
.time-slot .add-slot:focus-visible {
  opacity: 1;
}
.appointment-card {
  display: block;
  position: relative;
  width: 100%;
  text-align: left;
  padding: 12px 15px;
  border-radius: 6px;
  border-left: 3px solid var(--rose);
  background: var(--success-soft);
  margin-bottom: 5px;
  color: var(--success);
  border-left-color: var(--success);
}
.appointment-card.confirmed {
  border-left-color: var(--rose);
  background: var(--primary-soft);
  color: var(--primary);
}
.appointment-card.waiting {
  border-left-color: var(--warning);
  background: var(--warning-soft);
  color: var(--warning);
}
.appointment-card.pending {
  border-left-color: var(--mauve);
  background: var(--mauve-soft);
  color: var(--mauve);
}
.appointment-card.cancelled {
  border-left-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
  opacity: 0.7;
}
.appointment-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  margin-bottom: 5px;
}
.appointment-time .icon {
  width: 12px;
  height: 12px;
}
.appointment-time span {
  margin-left: 4px;
  opacity: 0.75;
}
.appointment-card > strong {
  font-size: 12px;
  display: block;
  font-weight: 700;
  color: var(--success);
}
.appointment-card.confirmed > strong {
  color: var(--primary);
}
.appointment-card.waiting > strong {
  color: var(--warning);
}
.appointment-card.pending > strong {
  color: var(--mauve);
}
.appointment-card.cancelled > strong {
  color: var(--danger);
}
.appointment-service {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  opacity: 0.9;
  color: inherit;
}
.appointment-card > .status {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.appointment-card:hover {
  filter: brightness(0.985);
}
.week-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(103px, 1fr));
  overflow-x: auto;
}
.week-day {
  border-right: 1px solid var(--line);
  min-height: 540px;
}
.week-day:last-child {
  border-right: 0;
}
.week-day-heading {
  width: 100%;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.week-day-heading > span {
  font-size: 10px;
  text-transform: capitalize;
}
.week-day-heading > strong {
  font-size: 20px;
  font-weight: 500;
}
.week-day-heading.today > strong {
  background: var(--primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: -4px;
}
.week-appointments {
  padding: 11px 6px;
}
.appointment-card.compact {
  padding: 10px 6px;
  border-left-width: 2px;
  overflow: hidden;
}
.compact .appointment-time {
  font-size: 9px;
  gap: 3px;
  flex-wrap: wrap;
}
.compact .appointment-time > span {
  font-size: 8.5px;
  margin: 0;
}
.compact .appointment-time .icon {
  display: none;
}
.compact > strong {
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.compact .appointment-service {
  font-size: 9px;
  line-height: 1.6;
}
.week-add {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 30px;
  border: 1px dashed var(--rose-border);
  border-radius: 5px;
  color: var(--muted);
  margin-top: 10px;
}
.week-add:hover {
  background: var(--surface-subtle);
}
.week-add .icon {
  width: 13px;
  height: 13px;
}
.month-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(75px, 1fr));
  overflow-x: auto;
}
.month-weekday {
  text-align: center;
  padding: 16px 3px;
  background: var(--surface-subtle);
  font-size: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.month-cell {
  min-height: 107px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 5px;
}
.month-cell.off {
  background: var(--white);
}
.month-date {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
  border-radius: 50%;
  margin-bottom: 6px;
}
.month-cell.today .month-date {
  background: var(--primary);
  color: var(--white);
}
.month-event {
  padding: 5px 4px;
  display: block;
  width: 100%;
  font-size: 9px;
  background: var(--success-soft);
  color: var(--success);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 3px;
  margin-top: 3px;
  text-align: left;
}
.month-event.confirmed {
  background: var(--primary-soft);
  color: var(--primary);
}
.month-event.waiting {
  background: var(--warning-soft);
  color: var(--warning);
}
.month-event.pending {
  background: var(--mauve-soft);
  color: var(--mauve);
}
.app-dialog {
  border: 1px solid var(--rose-border);
  padding: 0;
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: 90dvh;
  border-radius: 15px;
  box-shadow: 0 25px 100px rgba(185, 62, 111, 0.149);
  color: var(--text);
  background: white;
}
.app-dialog.wide {
  width: 780px;
}
.app-dialog::backdrop {
  background: rgba(74, 24, 23, 0.32);
  backdrop-filter: blur(4px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 25px 27px 22px;
  border-bottom: 1px solid var(--line);
}
.dialog-header h2 {
  font-size: 20px;
  color: var(--rose-deep);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.5;
}
.dialog-header p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 5px;
}
.dialog-header > .icon-button {
  margin-top: -3px;
  margin-right: -7px;
}
.dialog-body {
  padding: 24px 27px;
}
.dialog-footer {
  background: var(--surface-subtle);
  border-top: 1px solid var(--line);
  padding: 18px 27px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-radius: 0 0 15px 15px;
}
.dialog-footer > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.form-field > span {
  font-size: 10.5px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.6;
}
.required {
  color: var(--muted);
  font-size: 10px;
}
.full {
  grid-column: 1/-1;
}
.form-field > input,
.form-field > select,
.form-field > textarea {
  min-width: 0;
  border: 1px solid var(--rose-border);
  background: var(--white);
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--text);
  outline: none;
  width: 100%;
  font-size: 11px;
  min-height: 39px;
}
.form-field > input:focus,
.form-field > select:focus,
.form-field > textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}
.form-field > textarea {
  resize: vertical;
  min-height: 78px;
  line-height: 1.8;
}
.required-hint {
  font-size: 10px;
  color: var(--muted);
}
.form-divider {
  padding-top: 11px;
  border-top: 1px solid var(--line);
  margin-top: 5px;
}
.form-divider h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--rose-deep);
}
.form-divider p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.7;
}
.form-error {
  color: var(--danger);
  font-size: 11px;
  line-height: 1.8;
  background: var(--danger-soft);
  border: 1px solid var(--rose-border);
  border-radius: 7px;
  padding: 12px 14px;
  margin-top: 18px;
}
.form-error:empty {
  display: none;
}
.field-help {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: -10px;
}
.payment-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.checkbox-label {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}
.checkbox-label input {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  margin: 0;
}
.payment-section > .form-grid {
  padding-top: 20px;
}
.info-box {
  font-size: 10px;
  color: var(--rose-deep);
  background: var(--primary-soft);
  border: 1px solid var(--line);
  padding: 12px 15px;
  border-radius: 7px;
  line-height: 1.8;
}
.confirm-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.danger {
  color: var(--muted) !important;
}
.button.danger-solid {
  background: var(--danger);
  color: white;
  border: 1px solid var(--rose);
  border-color: var(--danger);
}
.button.danger-solid:hover {
  background: var(--rose-deep);
}
.patient-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}
.avatar.large {
  width: 64px;
  height: 64px;
  font-size: 20px;
}
.patient-profile h3 {
  font-size: 21px;
  color: var(--rose-deep);
  font-weight: 700;
  letter-spacing: -0.4px;
}
.patient-profile p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.patient-profile p > span {
  margin: 0 7px;
  color: var(--muted);
}
.patient-profile > .button {
  margin-left: auto;
}
.profile-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 23px 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.profile-contact > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.profile-contact .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.clinical-summary {
  background: var(--primary-soft);
  border: 1px solid var(--line);
  padding: 17px 19px;
  display: flex;
  gap: 28px;
  border-radius: 8px;
  margin-top: 23px;
}
.clinical-summary > div {
  flex: 1;
  min-width: 0;
}
.clinical-summary small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.clinical-summary strong {
  font-size: 11px;
  color: var(--rose-deep);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.detail-block {
  margin-top: 22px;
}
.detail-block h3 {
  font-size: 11px;
  color: var(--rose-deep);
  font-weight: 700;
  margin-bottom: 9px;
}
.detail-block p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 28px 0 17px;
}
.detail-section-heading > h3 {
  font-weight: 700;
  font-size: 12px;
  color: var(--rose-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.timeline-item:hover {
  background: var(--surface-subtle);
}
.timeline-marker {
  width: 30px;
  height: 30px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.timeline-marker .icon {
  width: 14px;
  height: 14px;
}
.timeline-item > div {
  flex: 1;
}
.timeline-item small {
  color: var(--muted);
  font-size: 10px;
}
.timeline-item strong {
  display: block;
  color: var(--rose-deep);
  font-size: 11px;
  font-weight: 700;
  margin-top: 5px;
}
.timeline-item p {
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
  line-height: 1.8;
}
.timeline-item > .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
  align-self: center;
}
.inline-empty {
  padding: 16px 0;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.patient-upcoming {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.patient-upcoming > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.patient-upcoming .icon {
  width: 14px;
  height: 14px;
}
.patient-upcoming strong {
  font-weight: 500;
}
.appointment-detail-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}
.appointment-detail-meta > div {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 22px 0;
}
.appointment-detail-meta > div > .icon {
  width: 19px;
  height: 19px;
  color: var(--muted);
}
.appointment-detail-meta small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}
.appointment-detail-meta strong {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.appointment-status-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
}
.visit-profile {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.payment-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px;
  margin-top: 23px;
  border: 1px solid #cce4de;
  border-radius: 6px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 10px;
  flex-wrap: wrap;
}
.payment-summary .icon {
  width: 16px;
  height: 16px;
}
.payment-summary strong {
  font-weight: 500;
}
.payment-summary > span {
  margin-left: auto;
  font-size: 10px;
}
.detail-signature {
  margin-top: 30px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  color: var(--rose-deep);
}
.detail-signature > span {
  font-family: "Nunito", sans-serif;
  display: block;
  font-size: 10px;
  margin-top: 6px;
  color: var(--muted);
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(285px, 1fr);
  gap: 24px;
  align-items: start;
}
.settings-form {
  padding: 8px 25px 24px;
}
.settings-layout .panel-header {
  padding: 24px 25px;
}
.settings-layout .panel-header > .icon {
  width: 30px;
  height: 30px;
  color: var(--muted);
}
.settings-save {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.settings-save > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.settings-save > span .icon {
  width: 15px;
  height: 15px;
}
.settings-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.backup-panel {
  padding: 27px 25px;
}
.backup-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 11px;
  margin-bottom: 20px;
}
.backup-icon > .icon {
  width: 24px;
  height: 24px;
}
.backup-panel h2,
.data-info h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--rose-deep);
  margin-bottom: 13px;
}
.backup-panel p,
.data-info p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 20px;
}
.backup-panel > .button {
  width: 100%;
  margin-top: 7px;
}
.backup-panel small {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  display: block;
  margin-top: 13px;
}
.import-label {
  cursor: pointer;
}
.import-label input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.import-label:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.data-info {
  padding: 25px;
}
.data-info p {
  font-size: 10px;
}
.data-info .text-link {
  font-size: 10px;
}
.large-search {
  height: 44px;
  margin-bottom: 15px;
}
.large-search > input {
  font-size: 12px;
}
.search-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 40px 10px;
  color: var(--muted);
  font-size: 11px;
}
.search-hint > .icon {
  width: 18px;
  height: 18px;
}
.search-group-title {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  margin: 23px 0 11px;
}
.search-result {
  display: flex;
  width: 100%;
  text-align: left;
  align-items: center;
  gap: 12px;
  padding: 13px 9px;
  border-radius: 7px;
}
.search-result:hover {
  background: var(--surface-subtle);
}
.search-result > span:not(.avatar):not(.notification-icon) {
  flex: 1;
}
.search-result strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--rose-deep);
}
.search-result small {
  display: block;
  font-size: 10px;
  line-height: 1.8;
  margin-top: 4px;
  color: var(--muted);
}
.search-result > .icon:first-child {
  color: var(--muted);
}
.search-result > .icon:last-child {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.notification-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
}
.notification-icon .icon {
  width: 17px;
  height: 17px;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  white-space: normal;
}
.empty-state > .icon {
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  color: var(--muted);
}
.empty-state h3 {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.7;
}
.empty-state p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.8;
}
.empty-state .button {
  margin-top: 20px;
}
.toasts {
  position: fixed;
  bottom: 25px;
  left: calc(var(--sidebar) + 30px);
  right: 30px;
  z-index: 100;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 9px;
  padding: 14px 20px;
  color: var(--white);
  font-size: 11px;
  box-shadow: 0 6px 25px rgba(185, 62, 111, 0.15);
  max-width: 550px;
  line-height: 1.7;
  animation: toast-in 0.2s ease-out;
}
.toast.error {
  background: var(--danger);
  border-color: var(--danger);
}
.toast .icon {
  width: 17px;
  height: 17px;
}
.sidebar-scrim {
  display: none;
  background: rgba(74, 24, 23, 0.28);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.welcome-copy p {
  color: var(--text);
}
.metric-detail {
  font-size: 10px;
}
@media (min-width: 1600px) {
  :root {
    --sidebar: 260px;
    font-size: 14px;
  }
  .sidebar {
    padding-top: 36px;
  }
  .topbar {
    height: 82px;
    padding: 0 42px;
    box-shadow: 0 3px 12px rgba(160, 69, 78, 0.035);
  }
  #main-content {
    padding: 34px 42px 30px;
  }
  .app-footer {
    padding-left: 42px;
    padding-right: 42px;
    background: var(--primary-soft);
    color: var(--rose-deep);
  }
  .page-heading h1 {
    font-size: 29px;
    color: var(--rose-deep);
  }
  .page-heading p {
    font-size: 12px;
  }
  .welcome-banner {
    min-height: 177px;
    background: var(--primary-soft);
  }
  .welcome-copy {
    padding: 27px 30px;
  }
  .welcome-copy h2 {
    font-size: 27px;
    color: var(--rose-deep);
  }
  .welcome-copy p {
    font-size: 12px;
    color: var(--text);
  }
  .welcome-eyebrow {
    font-size: 10px;
    color: var(--rose-deep);
  }
  .welcome-link {
    font-size: 11px;
    color: var(--primary);
  }
  .metrics-grid {
    gap: 22px;
  }
  .metric {
    padding: 21px 23px;
  }
  .metric-label {
    font-size: 12px;
    color: var(--text);
  }
  .metric-value {
    font-size: 34px;
    color: var(--rose-deep);
  }
  .metric-detail {
    font-size: 10px;
  }
  .dashboard-grid {
    gap: 25px;
  }
  .panel-header h2 {
    font-size: 15px;
    color: var(--rose-deep);
  }
  .panel-header p {
    font-size: 11px;
  }
  .agenda-table td {
    padding-top: 17px;
    padding-bottom: 17px;
  }
  .name-button {
    font-size: 12px;
    color: var(--ink);
  }
  .person small {
    font-size: 10px;
  }
  .status {
    font-size: 10px;
    background: var(--primary-soft);
    color: var(--primary);
  }
  .agenda-table th {
    font-size: 10px;
  }
  .time-label {
    font-size: 12px;
    color: var(--rose-deep);
  }
  .balance-value strong {
    font-size: 34px;
    color: var(--rose-deep);
  }
  .finance-panel .bar-chart {
    height: 191px;
  }
  .shortcut {
    padding: 18px 16px;
    background: var(--surface-subtle);
  }
  .shortcut strong {
    font-size: 12px;
    color: var(--rose-deep);
  }
  .shortcut small {
    font-size: 10px;
  }
  .recent-panel .name-button {
    font-size: 11px;
  }
  .recent-panel .person small {
    font-size: 10px;
  }
  .recent-panel td {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .recent-panel table {
    font-size: 11px;
  }
  .recent-panel th {
    font-size: 10px;
  }
  .text-link {
    font-size: 11px;
    color: var(--primary);
  }
  .shortcuts-grid {
    gap: 14px;
  }
  .care-footer {
    font-size: 10px;
  }
  .brand {
    padding-bottom: 35px;
    color: var(--primary);
  }
  .nav-link {
    height: 47px;
    font-size: 13px;
    color: var(--text);
  }
  .sidebar-profile strong {
    font-size: 12px;
    color: var(--rose-deep);
  }
  .sidebar-profile small {
    font-size: 10px;
  }
  .care-note p {
    font-size: 12px;
    color: var(--rose-deep);
  }
  .care-note small {
    font-size: 10px;
  }
  .workspace-label {
    margin-bottom: 33px;
    background: var(--surface-subtle);
  }
  .button {
    font-size: 12px;
    min-height: 40px;
  }
  .app-footer {
    font-size: 10px;
    background: var(--primary-soft);
    color: var(--rose-deep);
  }
}
@media (max-width: 1190px) {
  :root {
    --sidebar: 213px;
  }
  .sidebar {
    padding-left: 13px;
    padding-right: 13px;
  }
  .brand {
    padding-left: 10px;
    gap: 7px;
    color: var(--primary);
  }
  .brand strong {
    font-size: 29px;
  }
  .brand small {
    font-size: 9px;
    color: var(--rose-deep);
  }
  .brand-mark {
    width: 33px;
  }
  .workspace-label {
    padding: 10px 8px;
    background: var(--surface-subtle);
  }
  .workspace-label strong {
    font-size: 10.5px;
  }
  .workspace-label > div > span {
    font-size: 10px;
  }
  .workspace-icon {
    width: 28px;
    height: 30px;
  }
  .sidebar-profile {
    width: calc(100% + 26px);
    margin-left: -13px;
    padding: 18px 14px;
    background: var(--surface-subtle);
  }
  .sidebar-profile small {
    font-size: 9px;
  }
  .sidebar-profile > .icon {
    width: 11px;
  }
  .topbar {
    padding: 0 24px;
    box-shadow: 0 3px 12px rgba(160, 69, 78, 0.035);
  }
  .topbar-actions {
    gap: 14px;
  }
  .global-search kbd {
    margin-left: 5px;
  }
  .global-search > span:nth-child(2) {
    font-size: 10px;
  }
  #main-content {
    padding: 24px;
  }
  .page-heading h1 {
    font-size: 24px;
    color: var(--rose-deep);
  }
  .page-heading p {
    font-size: 10.5px;
  }
  .heading-actions {
    gap: 8px;
  }
  .date-chip {
    font-size: 10px;
    padding: 9px;
  }
  .button {
    padding: 10px 12px;
    font-size: 10px;
  }
  .welcome-art {
    width: 280px;
  }
  .welcome-copy h2 {
    font-size: 23px;
    color: var(--rose-deep);
  }
  .welcome-copy {
    padding: 23px;
  }
  .welcome-copy p {
    font-size: 10px;
    color: var(--text);
  }
  .metric {
    padding: 16px;
  }
  .metric-label {
    font-size: 10px;
    color: var(--text);
  }
  .metric-value {
    font-size: 26px;
    color: var(--rose-deep);
  }
  .metric-detail {
    font-size: 9px;
    gap: 4px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    gap: 17px;
  }
  .panel-header {
    padding: 20px 17px 16px;
  }
  .panel-header h2 {
    font-size: 12px;
    color: var(--rose-deep);
  }
  .panel-header p {
    font-size: 10px;
  }
  .text-link {
    font-size: 10px;
    color: var(--primary);
  }
  .agenda-table th,
  .agenda-table td {
    padding-left: 14px;
    padding-right: 10px;
  }
  .agenda-table th:first-child {
    width: 61px;
  }
  .agenda-table td:last-child {
    padding-right: 11px;
  }
  .agenda-table .person {
    gap: 7px;
  }
  .agenda-table .avatar {
    width: 27px;
    height: 27px;
    font-size: 9px;
  }
  .agenda-table .name-button {
    font-size: 10px;
  }
  .agenda-table .person small {
    font-size: 9px;
  }
  .status {
    font-size: 9px;
    padding: 4px 5px;
    gap: 4px;
    background: var(--primary-soft);
    color: var(--primary);
  }
  .agenda-table .time-label {
    font-size: 10px;
  }
  .count-pill {
    font-size: 9px;
    background: var(--primary-soft);
    color: var(--primary);
  }
  .panel-footer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .shortcuts-grid {
    padding-left: 17px;
    padding-right: 17px;
    gap: 9px;
  }
  .shortcut {
    padding: 12px 10px;
    background: var(--surface-subtle);
  }
  .shortcut strong {
    font-size: 10px;
    color: var(--rose-deep);
  }
  .shortcut small {
    font-size: 9px;
  }
  .care-footer {
    padding-left: 17px;
    font-size: 9px;
  }
  .balance-value {
    padding-left: 19px;
  }
  .finance-panel > .chart-legend {
    padding-left: 20px;
  }
  .bar-chart {
    padding-left: 16px;
    padding-right: 20px;
    gap: 7px;
  }
  .finance-report-link {
    margin-left: 18px;
    margin-right: 18px;
    color: var(--primary);
  }
  .recent-panel td,
  .recent-panel th {
    padding-left: 15px;
    padding-right: 12px;
  }
  .recent-panel td:nth-child(3),
  .recent-panel th:nth-child(3) {
    display: none;
  }
  .procedures-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .standalone-toolbar {
    flex-wrap: wrap;
  }
  .agenda-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 17px;
  }
  .agenda-sidebar {
    padding: 19px 14px;
  }
  .calendar-toolbar {
    padding: 15px 14px;
    flex-wrap: wrap;
  }
  .calendar-date-nav strong {
    font-size: 11px;
    margin-left: 8px;
  }
  .app-footer {
    padding-left: 24px;
    padding-right: 24px;
    background: var(--primary-soft);
    color: var(--rose-deep);
  }
  .global-search > span:nth-child(2) {
    display: none;
  }
  .global-search kbd {
    margin-left: 0;
  }
  .settings-layout {
    grid-template-columns: 1.4fr 1fr;
    gap: 17px;
  }
  .settings-form {
    padding: 6px 19px 23px;
  }
  .settings-layout .panel-header {
    padding: 22px 19px;
  }
  .form-grid {
    gap: 17px 15px;
  }
}
@media (max-width: 980px) {
  .date-chip {
    display: none;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(235px, 1fr);
  }
  .metrics-grid {
    gap: 11px;
  }
  .metric {
    padding: 14px 13px;
  }
  .metric-label {
    font-size: 10px;
    color: var(--text);
  }
  .metric-icon {
    width: 25px;
    height: 25px;
    border-radius: 6px;
  }
  .metric-icon .icon {
    width: 14px;
    height: 14px;
  }
  .metric-value {
    font-size: 24px;
    margin-top: 8px;
    color: var(--rose-deep);
  }
  .metric-detail {
    font-size: 8.5px;
    gap: 3px;
  }
  .welcome-art {
    opacity: 0.8;
    width: 235px;
  }
  .welcome-seal {
    right: 34px;
    width: 116px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--rose-deep);
    box-shadow: 0 5px 15px rgba(160, 69, 78, 0.05);
  }
  .welcome-copy {
    max-width: 75%;
  }
  .welcome-copy h2 {
    font-size: 21px;
    color: var(--rose-deep);
  }
  .welcome-copy p {
    max-width: 290px;
    font-size: 10px;
    color: var(--text);
  }
  .panel-header h2 {
    font-size: 11px;
    color: var(--rose-deep);
  }
  .agenda-table .avatar {
    display: none;
  }
  .agenda-table .name-button {
    font-size: 10px;
  }
  .agenda-table .person small {
    font-size: 8.5px;
  }
  .row-action.highlight {
    font-size: 9px;
    padding: 6px 7px;
    background: var(--primary);
  }
  .agenda-table th,
  .agenda-table td {
    padding-left: 13px;
    padding-right: 9px;
  }
  .agenda-table th {
    font-size: 9px;
  }
  .agenda-table td {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .agenda-table th:nth-child(3) {
    width: 82px;
  }
  .panel-header p {
    font-size: 9px;
  }
  .panel-footer > span {
    font-size: 9px;
  }
  .panel-footer .text-link {
    font-size: 9px;
  }
  .shortcuts-panel .panel-header {
    padding-bottom: 18px;
  }
  .shortcuts-grid {
    gap: 8px;
  }
  .shortcut {
    padding: 15px 9px;
    background: var(--surface-subtle);
  }
  .shortcut-icon {
    margin-bottom: 9px;
    background: var(--primary-soft);
    color: var(--primary);
  }
  .shortcut strong {
    font-size: 9px;
    color: var(--rose-deep);
  }
  .shortcut small {
    font-size: 8.5px;
  }
  .care-footer {
    font-size: 8.5px;
    padding: 12px 13px;
  }
  .recent-panel th,
  .recent-panel td {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .reports-grid {
    grid-template-columns: 1fr;
  }
  .report-procedures {
    grid-column: auto;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .list-toolbar {
    padding: 18px;
    flex-wrap: wrap;
  }
  .tabs > button.active:after {
    bottom: -18px;
  }
  .list-toolbar .search-field {
    min-width: 220px;
    flex: 1;
  }
  .tabs {
    gap: 15px;
  }
  .agenda-layout {
    grid-template-columns: 1fr;
  }
  .agenda-sidebar {
    display: none;
  }
  .calendar-toolbar {
    flex-wrap: nowrap;
  }
  .app-footer {
    font-size: 9px;
    background: var(--primary-soft);
    color: var(--rose-deep);
  }
  .demo-label {
    gap: 3px;
  }
  .footer-dot {
    margin: 0 3px;
  }
}
@media (max-width: 760px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    width: 242px;
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 8px 0 30px rgba(185, 62, 111, 0.063);
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .sidebar-scrim {
    position: fixed;
    inset: 0;
    background: rgba(74, 24, 23, 0.28);
    z-index: 29;
  }
  .menu-open .sidebar-scrim {
    display: block;
  }
  .menu-open {
    overflow: hidden;
  }
  .sidebar .brand {
    padding-left: 15px;
  }
  .sidebar .brand strong {
    font-size: 32px;
  }
  .sidebar .brand small {
    font-size: 10px;
  }
  .sidebar .brand-mark {
    width: 37px;
  }
  .sidebar .nav-link {
    font-size: 12px;
  }
  .sidebar .workspace-label {
    margin-left: 8px;
    margin-right: 8px;
    padding: 11px;
  }
  .sidebar-profile {
    padding: 20px 24px;
    background: var(--surface-subtle);
  }
  .sidebar-profile small {
    font-size: 10px;
  }
  .mobile-menu {
    display: flex;
  }
  .topbar {
    height: 65px;
    padding: 0 17px;
    gap: 10px;
    box-shadow: 0 3px 12px rgba(160, 69, 78, 0.035);
  }
  .topbar-left {
    gap: 8px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 9px;
  }
  .topbar-actions {
    gap: 12px;
  }
  .global-search kbd {
    display: none;
  }
  .topbar-divider {
    display: none;
  }
  .notification-button {
    width: 23px;
  }
  .doctor-avatar {
    width: 30px;
    height: 30px;
    background: var(--primary-soft);
    color: var(--primary);
  }
  .global-search {
    padding: 0;
  }
  .global-search .icon {
    width: 17px;
    height: 17px;
  }
  .topbar .mobile-menu {
    width: 29px;
  }
  .app-shell {
    margin: 0;
  }
  #main-content {
    padding: 22px 19px;
  }
  .page-heading {
    gap: 12px;
    margin-bottom: 21px;
    align-items: center;
  }
  .page-heading h1 {
    font-size: 24px;
    color: var(--rose-deep);
  }
  .page-heading p {
    font-size: 10px;
    max-width: 330px;
  }
  .heading-actions {
    gap: 7px;
  }
  .heading-actions > .button {
    min-height: 35px;
    padding: 9px 12px;
    font-size: 10px;
  }
  .heading-actions > .button .icon {
    width: 14px;
    height: 14px;
  }
  .welcome-banner {
    min-height: 155px;
    background: var(--primary-soft);
  }
  .welcome-copy {
    padding: 22px;
    max-width: 75%;
  }
  .welcome-copy h2 {
    font-size: 23px;
    color: var(--rose-deep);
  }
  .welcome-eyebrow {
    font-size: 10px;
    color: var(--rose-deep);
  }
  .welcome-copy p {
    font-size: 10px;
    max-width: 330px;
    color: var(--text);
  }
  .welcome-link {
    font-size: 10px;
    color: var(--primary);
  }
  .welcome-art {
    width: 260px;
  }
  .welcome-seal {
    right: 40px;
    width: 125px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--rose-deep);
    box-shadow: 0 5px 15px rgba(160, 69, 78, 0.05);
  }
  .metrics-grid {
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
  }
  .metric-label {
    font-size: 10px;
    color: var(--text);
  }
  .metric-value {
    font-size: 25px;
    color: var(--rose-deep);
  }
  .metric-icon {
    width: 26px;
    height: 26px;
  }
  .metric-detail {
    font-size: 9px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
    gap: 15px;
  }
  .panel-header h2 {
    font-size: 12px;
    color: var(--rose-deep);
  }
  .agenda-table .avatar {
    display: flex;
    width: 27px;
    height: 27px;
  }
  .agenda-table .name-button {
    font-size: 10px;
  }
  .agenda-table .person small {
    font-size: 9px;
  }
  .agenda-table td {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .agenda-table th:nth-child(3),
  .agenda-table td:nth-child(3) {
    display: none;
  }
  .recent-panel .person {
    gap: 8px;
  }
  .recent-panel .name-button {
    font-size: 10px;
  }
  .recent-panel td,
  .recent-panel th {
    padding-left: 14px;
    padding-right: 10px;
  }
  .recent-panel .avatar {
    width: 27px;
    height: 27px;
  }
  .app-footer {
    padding: 0 19px 20px;
    font-size: 9px;
    background: var(--primary-soft);
    color: var(--rose-deep);
  }
  .procedures-grid {
    gap: 16px;
  }
  .procedure-card {
    padding: 20px 20px 0;
  }
  .procedure-card h2 {
    font-size: 14px;
    color: var(--rose-deep);
  }
  .list-toolbar {
    gap: 15px;
  }
  .tabs > button.active:after {
    bottom: -18px;
  }
  .page-heading .select-control {
    font-size: 10px;
    max-width: 145px;
  }
  .finance-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .standalone-toolbar {
    gap: 15px;
  }
  .categories {
    max-width: 100%;
    overflow-x: auto;
  }
  .categories button {
    font-size: 10px;
    padding: 7px 11px;
  }
  .list-footer > span {
    display: none;
  }
  .table-wrap table {
    font-size: 10px;
  }
  .table-wrap td {
    padding: 14px 16px;
  }
  .table-wrap th {
    padding: 11px 16px;
  }
  .list-toolbar > .search-field {
    width: 100%;
    min-width: 0;
  }
  .section-summary {
    font-size: 11px;
  }
  .toasts {
    left: 17px;
    right: 17px;
    bottom: 17px;
  }
  .toast {
    font-size: 11px;
    max-width: 100%;
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 6px 25px rgba(185, 62, 111, 0.15);
  }
  .reports-grid .panel-header {
    flex-wrap: wrap;
  }
  .report-procedures .panel-header {
    flex-wrap: nowrap;
  }
  .settings-side {
    gap: 17px;
  }
}
@media (max-width: 580px) {
  .breadcrumb > span,
  .breadcrumb > strong {
    display: none;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .topbar {
    padding: 0 14px;
    box-shadow: 0 3px 12px rgba(160, 69, 78, 0.035);
  }
  .topbar-actions {
    gap: 16px;
  }
  #main-content {
    padding: 22px 16px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 14px;
  }
  .page-heading h1 {
    font-size: 25px;
    color: var(--rose-deep);
  }
  .page-heading p {
    font-size: 10px;
    max-width: none;
  }
  .page-heading .heading-actions {
    margin-top: 1px;
  }
  .page-heading:has(.heading-actions:empty) {
    row-gap: 0;
  }
  .page-heading .heading-actions:empty {
    display: none;
  }
  .page-heading .heading-actions > .button {
    font-size: 10px;
  }
  .page-heading .heading-actions > .button > .icon {
    width: 14px;
    height: 14px;
  }
  .welcome-banner {
    min-height: 161px;
    margin-bottom: 18px;
    background: var(--primary-soft);
  }
  .welcome-copy {
    padding: 20px 18px;
    max-width: 90%;
  }
  .welcome-copy h2 {
    font-size: 21px;
    max-width: 270px;
    color: var(--rose-deep);
  }
  .welcome-copy p {
    font-size: 10px;
    max-width: 230px;
    line-height: 1.8;
    color: var(--text);
  }
  .welcome-eyebrow {
    font-size: 9px;
    margin-bottom: 9px;
    color: var(--rose-deep);
  }
  .welcome-link {
    font-size: 10px;
    margin-top: 13px;
    color: var(--primary);
  }
  .welcome-art {
    right: -80px;
    width: 260px;
    opacity: 0.65;
  }
  .welcome-seal {
    display: none;
    background: rgba(255, 255, 255, 0.86);
    color: var(--rose-deep);
    box-shadow: 0 5px 15px rgba(160, 69, 78, 0.05);
  }
  .metrics-grid,
  .finance-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .metric {
    padding: 16px;
  }
  .metric-label {
    font-size: 10px;
    color: var(--text);
  }
  .metric-value {
    font-size: 29px;
    margin-top: 8px;
    color: var(--rose-deep);
  }
  .metric-detail {
    font-size: 9px;
    margin-top: 12px;
    min-height: 14px;
  }
  .metric-icon {
    width: 28px;
    height: 28px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .panel-header {
    padding: 20px 18px 18px;
  }
  .panel-header h2 {
    font-size: 13px;
    color: var(--rose-deep);
  }
  .panel-header p {
    font-size: 10px;
  }
  .panel-header .text-link {
    font-size: 10px;
  }
  .count-pill {
    font-size: 9px;
    background: var(--primary-soft);
    color: var(--primary);
  }
  .agenda-table .avatar {
    display: flex;
    width: 31px;
    height: 31px;
  }
  .agenda-table .name-button {
    font-size: 10px;
  }
  .agenda-table .person small {
    font-size: 9px;
  }
  .table-wrap .agenda-table td {
    padding: 15px 12px;
  }
  .table-wrap .agenda-table th {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 10px;
  }
  .agenda-table td:nth-child(3),
  .agenda-table th:nth-child(3) {
    display: table-cell;
  }
  .agenda-table td:first-child,
  .agenda-table th:first-child {
    padding-left: 18px;
  }
  .agenda-table .person {
    gap: 8px;
  }
  .agenda-table .status {
    font-size: 8.5px;
    padding: 4px 5px;
  }
  .agenda-table th:first-child {
    width: 63px;
  }
  .agenda-table .time-label {
    font-size: 10px;
  }
  .duration-label {
    font-size: 8.5px;
  }
  .table-wrap .agenda-table td:last-child {
    padding-left: 0;
    padding-right: 10px;
  }
  .row-action.highlight {
    font-size: 9px;
    padding: 6px 7px;
    background: var(--primary);
  }
  .panel-footer {
    padding: 15px 18px;
  }
  .panel-footer > span,
  .panel-footer .text-link {
    font-size: 10px;
  }
  .finance-panel {
    grid-row: 3;
  }
  .finance-panel .balance-value {
    padding-left: 23px;
  }
  .finance-panel .balance-value strong {
    font-size: 31px;
  }
  .finance-panel .bar-chart {
    height: 196px;
    padding-left: 23px;
    padding-right: 24px;
  }
  .finance-panel > .chart-legend {
    padding-left: 24px;
    padding-top: 22px;
    font-size: 10px;
  }
  .chart-y {
    font-size: 10px;
  }
  .chart-column > span {
    font-size: 10px;
  }
  .finance-report-link {
    margin-left: 23px;
    margin-right: 23px;
    padding: 17px 0;
    font-size: 11px;
    color: var(--primary);
  }
  .recent-panel {
    grid-row: 2;
  }
  .recent-panel .person {
    gap: 10px;
  }
  .recent-panel .name-button {
    font-size: 10px;
  }
  .recent-panel .person small {
    font-size: 9px;
  }
  .recent-panel .avatar {
    width: 31px;
    height: 31px;
  }
  .table-wrap .recent-panel td {
    padding: 14px 18px;
  }
  .recent-panel td,
  .recent-panel th {
    font-size: 10px;
  }
  .shortcuts-grid {
    gap: 12px;
    padding: 0 19px 20px;
  }
  .shortcut {
    padding: 17px 15px;
    background: var(--surface-subtle);
  }
  .shortcut strong {
    font-size: 11px;
    color: var(--rose-deep);
  }
  .shortcut small {
    font-size: 10px;
  }
  .shortcut-icon {
    width: 31px;
    height: 31px;
    background: var(--primary-soft);
    color: var(--primary);
  }
  .care-footer {
    font-size: 10px;
    padding: 15px 19px;
  }
  .app-footer {
    padding: 1px 16px 20px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    background: var(--primary-soft);
    color: var(--rose-deep);
  }
  .list-toolbar {
    padding: 18px 16px;
    gap: 16px;
  }
  .tabs {
    gap: 21px;
    min-height: 33px;
  }
  .tabs > button {
    font-size: 10px;
    padding: 8px 0;
  }
  .tabs > button.active:after {
    bottom: -8px;
  }
  .tabs > button > span {
    font-size: 9px;
    background: var(--primary-soft);
    color: var(--primary);
  }
  .list-toolbar:has(.search-field) .tabs > button.active:after {
    bottom: -8px;
  }
  .search-field {
    min-width: 0;
    width: 100%;
    background: var(--surface-subtle);
  }
  .table-wrap table {
    font-size: 10px;
  }
  .table-wrap td,
  .table-wrap th {
    padding-left: 16px;
    padding-right: 16px;
  }
  .list-footer {
    padding: 16px;
    font-size: 10px;
  }
  .procedures-grid {
    grid-template-columns: 1fr;
  }
  .procedure-card {
    padding: 23px 23px 0;
  }
  .procedure-card h2 {
    font-size: 17px;
    color: var(--rose-deep);
  }
  .procedure-card > p {
    min-height: 0;
    font-size: 11px;
  }
  .procedure-top {
    margin-bottom: 19px;
  }
  .procedure-meta {
    margin-top: 22px;
  }
  .procedure-meta strong {
    font-size: 22px;
    color: var(--primary);
  }
  .procedure-meta > span {
    font-size: 11px;
  }
  .procedure-bottom {
    padding: 18px 0;
  }
  .toggle-button {
    font-size: 10px;
  }
  .procedure-bottom .text-link {
    font-size: 11px;
  }
  .standalone-toolbar {
    gap: 14px;
    margin-bottom: 19px;
  }
  .categories {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }
  .categories button {
    font-size: 10px;
    padding: 8px 6px;
  }
  .page-note {
    font-size: 10px;
    align-items: flex-start;
  }
  .page-note > .icon {
    margin-top: 2px;
  }
  .transaction-cell .cell-title {
    max-width: 220px;
  }
  .toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .toolbar-actions .select-control {
    flex: 1;
    max-width: 230px;
  }
  .toolbar-actions .button {
    min-height: 35px;
    font-size: 10px;
  }
  .reports-grid .bar-chart {
    height: 235px;
    padding: 15px 23px 20px;
  }
  .reports-grid .panel-header .chart-legend {
    font-size: 10px;
  }
  .reports-grid .panel-header {
    row-gap: 15px;
  }
  .report-procedures .panel-header {
    align-items: flex-start;
  }
  .settings-side {
    display: flex;
    flex-direction: column;
  }
  .settings-side > .panel {
    width: 100%;
  }
  .settings-form {
    padding: 6px 20px 23px;
  }
  .settings-layout .panel-header {
    padding: 22px 20px;
  }
  .settings-save {
    flex-wrap: wrap;
    row-gap: 20px;
  }
  .settings-save > .button {
    width: 100%;
  }
  .form-grid {
    gap: 17px;
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: 1;
  }
  .form-grid > div:empty {
    display: none;
  }
  .form-field > span {
    font-size: 11px;
    color: var(--text);
  }
  .form-field > input,
  .form-field > select,
  .form-field > textarea {
    font-size: 12px;
    padding: 12px;
    min-height: 42px;
    color: var(--text);
  }
  .app-dialog {
    max-width: calc(100vw - 20px);
    max-height: 92dvh;
    border-radius: 12px;
  }
  .dialog-header {
    padding: 21px 20px 18px;
    gap: 12px;
  }
  .dialog-header h2 {
    font-size: 19px;
    color: var(--rose-deep);
  }
  .dialog-header p {
    font-size: 10px;
    max-width: 290px;
  }
  .dialog-body {
    padding: 21px 20px;
  }
  .dialog-footer {
    padding: 16px 20px;
    gap: 10px;
    background: var(--surface-subtle);
  }
  .dialog-footer .button {
    padding: 10px 12px;
    font-size: 10px;
    gap: 6px;
  }
  .dialog-footer > div {
    gap: 7px;
  }
  .required-hint {
    font-size: 9px;
  }
  .dialog-footer .muted {
    font-size: 10px;
  }
  .patient-profile {
    gap: 12px;
    flex-wrap: wrap;
  }
  .avatar.large {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }
  .patient-profile h3 {
    font-size: 18px;
    color: var(--rose-deep);
  }
  .patient-profile p {
    font-size: 10px;
  }
  .patient-profile > .button {
    margin-left: 60px;
    margin-top: 2px;
    font-size: 10px;
    padding: 7px 10px;
  }
  .profile-contact {
    gap: 14px;
    flex-direction: column;
    margin-top: 18px;
    padding: 19px 0;
  }
  .clinical-summary {
    gap: 15px;
    padding: 16px;
    flex-wrap: wrap;
    background: var(--primary-soft);
  }
  .clinical-summary > div {
    min-width: 100px;
  }
  .detail-section-heading {
    gap: 10px;
  }
  .detail-section-heading > h3 {
    font-size: 11px;
    color: var(--rose-deep);
  }
  .detail-section-heading .text-link {
    font-size: 10px;
    gap: 3px;
  }
  .detail-section-heading .count-pill {
    font-size: 9px;
  }
  .patient-upcoming {
    flex-wrap: wrap;
    gap: 11px;
  }
  .patient-upcoming > span:first-child {
    flex: 1 0 75%;
  }
  .visit-profile {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
  }
  .visit-profile .category-pill {
    margin-left: 43px;
  }
  .clinical-summary small {
    font-size: 9px;
  }
  .clinical-summary strong {
    font-size: 10px;
    color: var(--rose-deep);
  }
  .appointment-detail-meta strong {
    font-size: 11px;
  }
  .appointment-detail-person .name-button {
    font-size: 11px;
  }
  .appointment-detail-person .person small {
    font-size: 10px;
  }
  .appointment-detail-person .status {
    font-size: 9px;
  }
  .appointment-status-actions .button {
    font-size: 10px;
  }
  .appointment-status-actions {
    gap: 7px;
  }
  .large-search {
    padding: 0 10px;
  }
  .large-search > input {
    font-size: 11px;
  }
  .search-result strong {
    font-size: 11px;
    color: var(--rose-deep);
  }
  .search-result small {
    font-size: 10px;
  }
  .calendar-toolbar {
    padding: 13px 12px;
    flex-wrap: wrap;
    gap: 13px;
  }
  .calendar-date-nav {
    gap: 4px;
    flex: 1;
    justify-content: flex-start;
  }
  .calendar-date-nav strong {
    font-size: 12px;
    margin-left: 10px;
  }
  .calendar-toolbar > .segmented {
    width: 100%;
    justify-content: space-between;
  }
  .calendar-toolbar > .segmented > button {
    flex: 1;
    padding: 8px 12px;
    font-size: 10px;
  }
  .day-heading {
    padding: 16px 19px;
  }
  .day-timeline {
    padding: 17px 13px;
  }
  .time-slot {
    grid-template-columns: 38px 1fr;
    gap: 8px;
  }
  .time-slot > span {
    font-size: 9px;
  }
  .appointment-card {
    padding: 12px 11px;
    background: var(--success-soft);
    border-left-color: var(--success);
    color: var(--success);
  }
  .appointment-card > .status {
    position: static;
    transform: none;
    margin-top: 9px;
    font-size: 9px;
  }
  .appointment-card > strong {
    font-size: 11px;
    color: var(--success);
  }
  .time-slot .add-slot {
    font-size: 9px;
    opacity: 1;
  }
  .time-slot .add-slot > span {
    display: none;
  }
  .week-board {
    grid-template-columns: repeat(7, minmax(105px, 1fr));
  }
  .month-board {
    grid-template-columns: repeat(7, minmax(75px, 1fr));
  }
  .appointment-time {
    font-size: 10px;
  }
  .day-heading strong {
    font-size: 11px;
    color: var(--rose-deep);
  }
  .day-heading > div > div > span {
    font-size: 10px;
  }
  .month-weekday {
    font-size: 9px;
  }
  .month-cell {
    min-height: 100px;
  }
  .week-board,
  .month-board {
    overflow: visible;
  }
  .agenda-board {
    overflow-x: auto;
  }
  .agenda-board > .calendar-toolbar {
    position: sticky;
    left: 0;
    min-width: 0;
  }
  .agenda-board > .day-heading,
  .agenda-board > .day-timeline {
    min-width: 0;
  }
  .toasts {
    bottom: 15px;
    left: 15px;
    right: 15px;
  }
  .toast {
    padding: 12px 16px;
    font-size: 10px;
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 6px 25px rgba(185, 62, 111, 0.15);
  }
  .large-search {
    width: 100%;
  }
  .empty-state {
    padding: 35px 15px;
  }
  .empty-state h3 {
    font-size: 14px;
  }
  .empty-state p {
    font-size: 10px;
  }
}
@media (max-width: 370px) {
  .agenda-table .avatar {
    display: none;
  }
  .metrics-grid {
    gap: 9px;
  }
  .metric {
    padding: 14px;
  }
  .metric-value {
    font-size: 26px;
    color: var(--rose-deep);
  }
  .metric-label {
    font-size: 10px;
    color: var(--text);
  }
  .welcome-copy h2 {
    font-size: 19px;
    color: var(--rose-deep);
  }
  .category-pill {
    font-size: 9px;
    background: var(--primary-soft);
    color: var(--primary);
  }
  .categories button {
    font-size: 9px;
  }
  .page-heading h1 {
    font-size: 23px;
    color: var(--rose-deep);
  }
  .dialog-footer {
    padding: 15px;
    background: var(--surface-subtle);
  }
  .required-hint {
    display: none;
  }
  .dialog-footer > div {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: white;
    color: var(--ink);
  }
  .sidebar,
  .topbar,
  .app-footer,
  .page-heading .heading-actions,
  .toasts,
  .sidebar-scrim,
  .dialog-footer,
  .dialog-header > .icon-button {
    display: none !important;
  }
  .app-shell {
    margin: 0;
  }
  #main-content {
    padding: 0;
    max-width: none;
  }
  .page-heading {
    padding: 10px 0 20px;
  }
  .metrics-grid {
    gap: 10px;
  }
  .metric,
  .panel {
    border: 1px solid var(--rose-border);
    break-inside: avoid;
    box-shadow: none;
  }
  .reports-grid {
    display: block;
  }
  .reports-grid > .panel {
    margin: 20px 0;
  }
  .chart-bar,
  .distribution-track > span,
  .inline-progress > span {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .reports-grid .bar-chart {
    height: 200px;
  }
  .bar-chart {
    height: 200px;
  }
  body:has(dialog[open]) > .app-shell,
  body:has(dialog[open]) > .sidebar {
    display: none !important;
  }
  .app-dialog[open] {
    position: static;
    display: block;
    max-width: none;
    max-height: none;
    width: 100%;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }
  .app-dialog::backdrop {
    background: rgba(74, 24, 23, 0.32);
  }
  .dialog-header {
    padding: 15px 0 20px;
  }
  .dialog-body {
    padding: 15px 0;
  }
  .detail-block p {
    color: var(--muted);
  }
  .clinical-summary {
    background: var(--primary-soft);
  }
  .status {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    background: var(--primary-soft);
    color: var(--primary);
  }
}
.gyne-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  background: var(--primary-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  margin: 13px 0;
}
.gyne-grid small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.gyne-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--rose-deep);
  font-weight: 500;
}
.start-empty-button {
  width: 100%;
  margin-bottom: 20px;
}
@media (max-width: 580px) {
  .gyne-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: var(--primary-soft);
  }
}
::selection {
  background: var(--rose-border);
  color: var(--burgundy);
}
.welcome-art .art-wash-rose {
  fill: var(--rose);
  opacity: 0.24;
}
.welcome-art .art-wash-peach {
  fill: var(--peach);
  opacity: 0.24;
}
.welcome-art .art-wash-light {
  fill: var(--white);
  opacity: 0.55;
}
.welcome-art .art-flower {
  fill: none;
  stroke: var(--rose-deep);
  stroke-width: 1.2;
  opacity: 0.4;
}
.welcome-art .art-flower-center {
  fill: var(--rose);
  opacity: 0.55;
}
.welcome-art .art-wave {
  fill: var(--rose-border);
  opacity: 0.4;
}
@media (prefers-reduced-motion: no-preference) {
  .button,
  .nav-link {
    transition:
      background 0.18s,
      border-color 0.18s,
      color 0.18s;
  }
}

/* Navegación por áreas y módulos de atención integral. */
.sidebar .brand,
.sidebar .workspace-label,
.sidebar-bottom {
  flex-shrink: 0;
}
.sidebar .brand {
  padding-bottom: 22px;
}
.sidebar .workspace-label {
  margin-bottom: 18px;
}
.module-navigation {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--rose-border) transparent;
  padding-right: 2px;
  padding-bottom: 12px;
}
.nav-group {
  margin-bottom: 12px;
}
.nav-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 700;
  color: var(--rose-deep);
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
}
.nav-group > summary::-webkit-details-marker {
  display: none;
}
.nav-group > summary:hover {
  background: var(--surface-subtle);
}
.nav-group > summary > .icon {
  height: 12px;
  width: 12px;
  transition: transform 0.15s;
}
.nav-group:not([open]) > summary > .icon {
  transform: rotate(-90deg);
}
.nav-group .nav-link {
  height: 39px;
  font-size: 11px;
  gap: 10px;
  margin: 3px 0;
}
.nav-group .nav-link > span:not(.nav-count) {
  white-space: normal;
  line-height: 1.4;
}
.sidebar-bottom {
  padding-top: 9px;
  margin-top: 0;
  border-top: 1px solid var(--line);
}
.sidebar-profile {
  margin-top: 8px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.clinical-pulse {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr));
  margin-bottom: 23px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
}
.clinical-pulse > div {
  padding: 19px 20px;
  background: var(--primary-soft);
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.clinical-pulse-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.clinical-pulse > div > strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--rose-deep);
  line-height: 1.5;
}
.clinical-pulse > a {
  display: flex;
  align-items: center;
  padding: 18px 14px;
  gap: 10px;
  border-left: 1px solid var(--line);
}
.clinical-pulse > a:hover {
  background: var(--surface-hover);
}
.clinical-pulse > a > .icon:first-child {
  width: 20px;
  height: 20px;
  color: var(--primary);
}
.clinical-pulse > a > .icon:last-child {
  width: 12px;
  height: 12px;
  color: var(--muted);
  margin-left: auto;
}
.clinical-pulse > a > span {
  min-width: 0;
}
.clinical-pulse > a strong {
  font-size: 23px;
  font-weight: 700;
  display: block;
  color: var(--rose-deep);
  line-height: 1.2;
}
.clinical-pulse > a small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  line-height: 1.5;
  margin-top: 5px;
}
.clinical-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 23px;
  background: var(--white);
}
.clinical-stat-strip > div {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px;
  border-right: 1px solid var(--line);
}
.clinical-stat-strip > div:last-child {
  border-right: 0;
}
.clinical-stat-strip > div > .icon {
  width: 32px;
  height: 32px;
  padding: 7px;
  background: var(--primary-soft);
  border-radius: 9px;
  color: var(--primary);
}
.clinical-stat-strip strong {
  display: block;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  color: var(--rose-deep);
  font-weight: 700;
}
.clinical-stat-strip small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.clinical-list-controls {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
  flex-wrap: wrap;
}
.clinical-list-controls .select-control {
  max-width: 200px;
}
.clinical-tabs {
  margin-bottom: 22px;
  max-width: 100%;
  overflow-x: auto;
}
.clinical-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 600;
  padding: 9px 17px;
}
.clinical-tabs button > span {
  border-radius: 4px;
  padding: 2px 5px;
  background: var(--white);
  color: var(--primary);
  font-size: 9px;
}
.clinical-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10px;
  white-space: nowrap;
}
.clinical-status i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.clinical-status.state-draft,
.clinical-status.state-requested,
.clinical-status.state-planned {
  background: var(--mauve-soft);
  color: var(--mauve);
}
.clinical-status.state-ready,
.clinical-status.state-reviewed,
.clinical-status.state-done,
.clinical-status.state-administered,
.clinical-status.state-signed,
.clinical-status.state-active {
  background: var(--success-soft);
  color: var(--success);
}
.clinical-status.state-cancelled,
.clinical-status.state-removed {
  background: var(--danger-soft);
  color: var(--danger);
}
.clinical-status.state-received,
.clinical-status.state-pending,
.clinical-status.state-preop {
  background: var(--warning-soft);
  color: var(--warning);
}
.clinical-table td {
  padding-top: 17px;
  padding-bottom: 17px;
}
.clinical-table .cell-title {
  max-width: 285px;
  font-size: 11px;
}
.clinical-table .button.small {
  font-size: 10px;
}
.record-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.record-details-grid .detail-block > p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--text);
}
.record-details-grid .detail-block > h3 {
  font-size: 11px;
  font-weight: 700;
}
.clinical-checklist {
  display: grid;
  gap: 12px;
  margin: 23px 0;
  padding: 18px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.clinical-checklist > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.clinical-checklist .icon {
  height: 15px;
  width: 15px;
}
.clinical-checklist .checked {
  color: var(--success);
}
.clinical-allergy {
  border: 1px solid var(--rose-border);
  border-radius: 7px;
  background: var(--peach-soft);
  padding: 12px 15px;
  color: var(--rose-deep);
  font-size: 11px;
  line-height: 1.8;
}
.medicine-list {
  display: grid;
  gap: 18px;
}
.medicine-row {
  padding: 18px;
  border: 1px solid var(--rose-border);
  border-radius: 10px;
  background: var(--surface-subtle);
}
.medicine-row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.medicine-row-heading > strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 11px;
}
.medicine-row-heading .icon {
  width: 16px;
  height: 16px;
}
.medicine-row .form-grid {
  gap: 14px;
}
.medicine-row .form-field > input {
  background: var(--white);
}
.record-shortcuts,
.patient-module-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.patient-module-actions {
  margin-top: 0;
}
.patient-module-actions .button {
  font-size: 10px;
}
.rx-letterhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid var(--rose);
  padding: 0 0 21px;
  margin-bottom: 23px;
}
.rx-letterhead > div > strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 23px;
  font-weight: 500;
  color: var(--rose-deep);
  display: block;
}
.rx-letterhead > div > span {
  font-size: 13px;
  display: block;
  color: var(--ink);
  margin: 10px 0 4px;
}
.rx-letterhead > div > small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.rx-letterhead > .icon {
  width: 42px;
  height: 42px;
  color: var(--rose);
}
.rx-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}
.rx-heading > h3 {
  font-size: 19px;
  color: var(--rose-deep);
  font-weight: 700;
}
.rx-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.clinical-print-document .clinical-allergy {
  margin: 20px 0;
}
.rx-diagnosis {
  margin: 23px 0;
}
.rx-diagnosis > strong {
  font-size: 11px;
  color: var(--rose-deep);
}
.rx-diagnosis > p {
  font-size: 12px;
  color: var(--text);
  line-height: 1.8;
  margin-top: 8px;
  white-space: pre-wrap;
}
.rx-medicines > article {
  display: flex;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  break-inside: avoid;
}
.rx-number {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 11px;
  font-weight: 700;
}
.rx-medicines h3 {
  font-size: 13px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.rx-medicines p {
  font-size: 11px;
  color: var(--text);
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rx-signature {
  margin: 50px auto 8px;
  text-align: center;
  color: var(--text);
  max-width: 280px;
  break-inside: avoid;
}
.rx-signature > span {
  display: block;
  border-top: 1px solid var(--muted);
  margin-bottom: 12px;
}
.rx-signature > strong {
  font-size: 12px;
  font-weight: 600;
}
.rx-signature > small {
  display: block;
  font-size: 9px;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.6;
}
.history-section-title {
  margin: 30px 0 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
  color: var(--rose-deep);
}
.history-entry {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin: 17px 0;
  background: var(--white);
}
.history-entry > header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.history-entry > header > span {
  font-size: 10px;
  color: var(--muted);
}
.history-entry > header > strong {
  font-size: 12px;
  color: var(--rose-deep);
  font-weight: 700;
  flex: 1;
}
.history-entry .detail-block {
  margin-top: 15px;
}
.history-entry .rx-medicines > article {
  padding: 14px 0;
}
.document-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 8px;
  margin-top: 23px;
}
.document-attachment > span {
  font-size: 11px;
  color: var(--rose-deep);
  overflow-wrap: anywhere;
  flex: 1;
}
.document-attachment > .icon {
  color: var(--primary);
}
.teleconsultation-link {
  border: 1px solid var(--rose-border);
  border-radius: 9px;
  background: var(--primary-soft);
  padding: 19px;
  margin: 23px 0;
}
.teleconsultation-link > div {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--primary);
  font-size: 12px;
}
.teleconsultation-link > p {
  font-size: 10px;
  color: var(--text);
  line-height: 1.8;
  margin-top: 10px;
}
.teleconsultation-link .button {
  margin-top: 14px;
}
.clinical-report {
  margin-bottom: 23px;
}
.clinical-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 0 22px 23px;
}
.clinical-report-grid > div {
  border-left: 2px solid var(--rose-border);
  padding-left: 14px;
}
.clinical-report-grid strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--rose-deep);
}
.clinical-report-grid span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.6;
}
.surgical-agenda {
  padding: 17px 22px 0;
  display: grid;
  gap: 10px;
}
.surgical-agenda > button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 16px;
  border: 1px solid var(--rose-border);
  border-left: 3px solid var(--primary);
  background: var(--primary-soft);
  border-radius: 7px;
  color: var(--primary);
}
.surgical-agenda > button > span {
  flex: 1;
  min-width: 0;
}
.surgical-agenda strong {
  font-size: 11px;
  display: block;
  font-weight: 700;
}
.surgical-agenda small {
  font-size: 10px;
  display: block;
  color: var(--text);
  line-height: 1.7;
  margin-top: 5px;
}
.surgical-agenda .icon:last-child {
  height: 14px;
  width: 14px;
}
.categories {
  max-width: 100%;
  flex-wrap: wrap;
}
.standalone-toolbar > .categories {
  flex: 1;
  min-width: 0;
}
.standalone-toolbar > .search-field {
  flex: 0 0 240px;
}
@media (min-width: 1600px) {
  .nav-group .nav-link {
    height: 42px;
    font-size: 12px;
  }
  .nav-group > summary {
    font-size: 11px;
  }
  .clinical-pulse > a small {
    font-size: 10px;
  }
  .clinical-pulse > div > strong {
    font-size: 17px;
  }
}
@media (max-width: 1190px) {
  .clinical-pulse {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .clinical-pulse > div {
    grid-column: 1/-1;
    padding: 14px 18px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .clinical-pulse-label {
    margin: 0;
  }
  .clinical-pulse > div > strong {
    font-size: 14px;
  }
  .clinical-pulse > a {
    padding: 17px 12px;
    gap: 7px;
  }
  .clinical-pulse > a > .icon:last-child {
    display: none;
  }
  .clinical-stat-strip > div {
    padding: 20px 15px;
    gap: 10px;
  }
  .clinical-stat-strip small {
    font-size: 9px;
  }
  .clinical-stat-strip strong {
    font-size: 25px;
  }
  .clinical-stat-strip > div > .icon {
    width: 29px;
    height: 29px;
  }
  .clinical-pulse > a small {
    font-size: 9px;
  }
  .clinical-list-controls .search-field {
    min-width: 220px;
  }
  .module-navigation .nav-link {
    font-size: 10.5px;
    padding-left: 13px;
    gap: 9px;
  }
}
@media (max-width: 760px) {
  .clinical-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .clinical-stat-strip > div {
    padding: 20px;
    border-bottom: 1px solid var(--line);
  }
  .clinical-stat-strip > div:nth-child(2) {
    border-right: 0;
  }
  .clinical-stat-strip > div:nth-child(n + 3) {
    border-bottom: 0;
  }
  .module-navigation .nav-link {
    font-size: 12px;
    height: 42px;
  }
  .nav-group > summary {
    font-size: 11px;
  }
  .clinical-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .clinical-pulse > a {
    padding: 17px 13px;
  }
  .clinical-list-controls {
    width: 100%;
  }
  .clinical-list-controls .search-field {
    flex: 1;
    min-width: 0;
  }
  .clinical-list-controls .select-control {
    min-width: 145px;
  }
  .standalone-toolbar > .search-field {
    flex: 1 0 100%;
  }
}
@media (max-width: 580px) {
  .clinical-pulse {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 20px;
  }
  .clinical-pulse > div {
    padding: 16px;
  }
  .clinical-pulse > div > strong {
    font-size: 13px;
  }
  .clinical-pulse > a {
    padding: 17px 16px;
    border-top: 1px solid var(--line);
  }
  .clinical-pulse > a > span > strong {
    font-size: 25px;
  }
  .clinical-pulse > a small {
    font-size: 10px;
  }
  .clinical-pulse > a > .icon:first-child {
    width: 23px;
    height: 23px;
  }
  .clinical-stat-strip {
    margin-bottom: 20px;
  }
  .clinical-stat-strip > div {
    padding: 18px 15px;
    gap: 12px;
  }
  .clinical-stat-strip strong {
    font-size: 27px;
  }
  .clinical-stat-strip small {
    font-size: 10px;
  }
  .clinical-stat-strip > div > .icon {
    width: 32px;
    height: 32px;
  }
  .clinical-list-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .clinical-list-controls .select-control {
    max-width: none;
    width: 100%;
  }
  .clinical-list-controls .search-field {
    min-height: 38px;
  }
  .clinical-tabs {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .clinical-tabs button {
    padding: 9px 11px;
    font-size: 10px;
    gap: 5px;
  }
  .record-details-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .medicine-row {
    padding: 15px;
  }
  .medicine-row .form-grid {
    gap: 16px;
  }
  .rx-letterhead > div > strong {
    font-size: 20px;
  }
  .rx-letterhead > div > span {
    font-size: 12px;
  }
  .rx-letterhead > div > small {
    font-size: 9px;
  }
  .rx-letterhead > .icon {
    width: 31px;
    height: 31px;
  }
  .rx-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .rx-heading > span {
    font-size: 10px;
  }
  .clinical-allergy {
    font-size: 10px;
    padding: 11px 13px;
  }
  .rx-medicines > article {
    gap: 10px;
  }
  .rx-medicines h3 {
    font-size: 12px;
  }
  .rx-medicines p {
    font-size: 10.5px;
  }
  .rx-number {
    width: 23px;
    height: 23px;
    font-size: 10px;
  }
  .record-shortcuts .button {
    flex: 1 0 42%;
    font-size: 10px;
  }
  .history-entry {
    padding: 15px;
  }
  .history-entry > header > strong {
    flex-basis: 60%;
    font-size: 11px;
  }
  .history-entry > header > span {
    font-size: 9px;
  }
  .clinical-print-document .dialog-footer {
    flex-wrap: wrap;
  }
  .app-dialog:has(.clinical-print-document) .dialog-footer {
    flex-wrap: wrap;
  }
  .app-dialog:has(.clinical-print-document) .dialog-footer > div {
    flex-wrap: wrap;
  }
  .document-attachment {
    flex-wrap: wrap;
  }
  .document-attachment > .button {
    margin-left: auto;
  }
  .clinical-report-grid {
    gap: 18px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .clinical-report-grid span {
    font-size: 9px;
  }
  .clinical-report-grid strong {
    font-size: 23px;
  }
  .categories {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 3px;
  }
  .categories button {
    font-size: 10px;
    padding: 7px 9px;
  }
}
@media print {
  .no-print,
  .record-shortcuts,
  .patient-module-actions,
  .clinical-print-document .history-entry header > button {
    display: none !important;
  }
  .clinical-print-document {
    font-size: 11pt;
  }
  .clinical-print-document .detail-block p,
  .clinical-print-document .rx-medicines p {
    font-size: 10pt;
    color: #222;
  }
  .clinical-print-document .history-entry {
    break-inside: auto;
    margin: 15px 0;
    padding: 14px;
  }
  .clinical-print-document .rx-letterhead {
    break-after: avoid;
  }
  .clinical-print-document .rx-heading {
    break-after: avoid;
  }
  .clinical-print-document .rx-medicines article {
    break-inside: avoid;
  }
  .clinical-print-document .rx-signature {
    margin-top: 55px;
  }
  .clinical-print-document .record-details-grid {
    display: block;
  }
  .clinical-report-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
