:root {
  color-scheme: light;
  --sidebar-width: 252px;
  --navy: #102f40;
  --navy-deep: #0b2533;
  --teal: #007e83;
  --teal-dark: #006e74;
  --teal-soft: #e8f5f3;
  --ink: #233c4c;
  --muted: #607989;
  --line: #e4ebef;
  --canvas: #f3f6f8;
  --white: #fff;
  --shadow: 0 3px 16px #16354804, 0 1px 2px #16354803;
  font-family: "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .5; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #60b8b5; outline-offset: 3px; }
::selection { background: #c5e8e4; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.65; }
small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }
.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -80px; background: var(--white); color: var(--teal); padding: 12px 20px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 12px; }

/* Application shell */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar-width); height: 100dvh; display: flex; flex-direction: column; padding: 28px 18px 18px; background: var(--navy-deep); color: #cfdee6; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 0 5px; margin-bottom: 38px; }
.brand-mark { flex: 0 0 48px; height: 56px; display: grid; place-items: center; border-radius: 11px; background: #fff; box-shadow: 0 4px 18px #00000014; }
.brand-logo { display: block; object-fit: contain; width: 43px; height: 49px; }
.brand-name { white-space: nowrap; font-size: 16px; font-weight: 650; letter-spacing: -.45px; color: #f3f8fb; }
.brand-name small { margin-top: 5px; color: #8da8b8; font-size: 10px; letter-spacing: .25px; }
.nav-label { font-size: 10px; letter-spacing: 1.35px; text-transform: uppercase; color: #678697; font-weight: 600; padding: 0 14px; margin: 0 0 12px; }
.sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item { position: relative; display: flex; align-items: center; width: 100%; min-height: 46px; gap: 13px; padding: 11px 14px; background: transparent; border: 1px solid transparent; border-radius: 8px; text-align: left; color: #9fb5c3; font-size: 13px; line-height: 20px; white-space: nowrap; }
.nav-item .icon { width: 19px; height: 19px; opacity: .85; }
.nav-item:hover { background: #ffffff07; color: #e1ebef; }
.nav-item.active { background: #143f4b; border-color: #1d5059; color: #8bd2c7; font-weight: 600; }
.nav-item.active .icon { color: #76c9bd; opacity: 1; }
.nav-count { display: grid; place-items: center; min-width: 23px; height: 22px; padding: 0 6px; margin-left: auto; border-radius: 6px; color: #a6dfd3; background: #23535b; font-size: 10px; font-weight: 650; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.sidebar-user { display: flex; align-items: center; gap: 3px; border-top: 1px solid #ffffff0c; padding: 8px 0; }
.user { display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; border: 0; padding: 8px 12px; min-height: 59px; background: transparent; text-align: left; border-radius: 10px; cursor: pointer; }
.sidebar-logout { flex-shrink: 0; color: #8aa7b7; }
.sidebar-logout:hover { color: #fff; background: #ffffff10; }
.user:hover { background: #ffffff08; }
.avatar { display: grid; place-items: center; flex: 0 0 33px; width: 33px; height: 33px; background: #284859; color: #bbd0dc; border: 1px solid #375767; border-radius: 50%; font-size: 11px; font-weight: 600; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-trigger { display: grid; place-items: center; padding: 2px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; }
.profile-trigger:hover { box-shadow: 0 0 0 3px #007e8318; }
.profile-dialog { width: min(540px, calc(100vw - 32px)); }
.profile-body { padding: 24px; overflow-y: auto; max-height: calc(100dvh - 220px); }
.profile-identity { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.profile-avatar { width: 56px; height: 56px; flex-basis: 56px; font-size: 19px; }
.profile-identity strong { display: block; font-size: 16px; overflow-wrap: anywhere; }
.profile-identity #profileUsername { display: block; margin-top: 5px; font-size: 12px; color: #758592; overflow-wrap: anywhere; }
.profile-menu { display: flex; padding: 4px; gap: 4px; border-radius: 10px; background: #eef3f5; margin-bottom: 24px; }
.profile-menu button { display: flex; flex: 1; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 7px; padding: 10px 8px; color: #677784; background: transparent; cursor: pointer; font: inherit; font-size: 12px; }
.profile-menu button[aria-pressed="true"] { background: white; color: #007e83; box-shadow: 0 1px 4px #0b253310; font-weight: 600; }
.profile-menu .icon { width: 15px; height: 15px; }
.profile-photo-editor { display: flex; gap: 18px; align-items: center; padding: 4px 0 24px; }
.profile-preview { width: 86px; height: 86px; flex-basis: 86px; font-size: 26px; background: #e8f3f3; border-color: #d1e7e7; color: #007e83; }
.profile-photo-editor strong { font-size: 13px; }
.profile-photo-editor p, .profile-password-note { font-size: 11px; color: #758592; line-height: 1.6; }
.profile-photo-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.profile-photo-buttons .button { padding: 8px 11px; font-size: 11px; }
.profile-save { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 12px; }
#profilePhotoStatus { color: #758592; font-size: 11px; }
.profile-footer { display: flex; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid #e6ecef; background: #f8fafb; }
#profilePasswordForm { display: grid; gap: 16px; }
#profilePasswordForm label { display: grid; gap: 7px; font-size: 12px; font-weight: 500; }
#profilePasswordForm small { color: #758592; font-size: 11px; font-weight: 400; }
#profilePasswordForm input { width: 100%; }
#profilePasswordForm .profile-save, #profilePasswordForm p { margin: 0; }
.profile-dialog [hidden] { display: none !important; }
@media (max-width: 420px) { .profile-body { padding: 20px 16px; } .profile-photo-editor { gap: 12px; } .profile-preview { width: 64px; height: 64px; flex-basis: 64px; } .profile-footer { padding: 16px; } }
.user-copy { overflow: hidden; }
#userName { display: block; font-size: 11px; font-weight: 600; color: #dce8ef; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.user small { color: #6f8c9d; font-size: 10px; margin-top: 3px; }
.shell { margin-left: var(--sidebar-width); min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 20; height: 72px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fffffffa; }
.topbar-left, .top-right { display: flex; align-items: center; gap: 18px; }
.breadcrumbs { display: flex; align-items: center; gap: 15px; font-size: 12px; color: #8b99a3; }
.breadcrumbs strong { font-weight: 550; color: #4d6473; }
.slash { color: #cad3d9; }
.header-date { display: flex; align-items: center; gap: 9px; color: #8595a0; font-size: 11px; }
.header-date .icon { width: 16px; height: 16px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #8395a2; padding: 0; }
.icon-button .icon { width: 18px; height: 18px; }
.icon-button:hover { background: #f2f6f7; border-color: #e4ebee; color: var(--ink); }
.account-button { border: 1px solid var(--line); }
main { max-width: 1560px; padding: 32px 36px 50px; margin: 0 auto; }
main:focus { outline: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
h1 { font-size: 27px; line-height: 1.25; letter-spacing: -.9px; font-weight: 650; color: #19384b; }
.page-heading p { color: #607989; font-size: 12px; margin-top: 7px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border: 1px solid #dfe7ec; border-radius: 7px; padding: 9px 13px; background: #fff; color: #536b7a; font-size: 11.5px; font-weight: 550; line-height: 18px; white-space: nowrap; box-shadow: 0 1px 2px #102f4003; }
.button .icon { width: 16px; height: 16px; }
.button:hover { background: #f9fbfc; border-color: #c5d3db; color: #294e63; }
.button.primary { background: var(--teal); color: white; border-color: var(--teal); box-shadow: 0 3px 8px #00878b12; }
.button.primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.button.danger { color: #fff; background: #b85d50; border-color: #b85d50; }
.button.danger:hover { background: #a54b40; }
.page-heading > .button { min-height: 42px; padding: 10px 16px; }
.muted-button { border: 0; background: none; color: #7d939f; font-size: 11px; padding: 6px; }
.muted-button:hover { color: var(--teal); }
.danger-text { color: #ba8279; }
.danger-text:hover { color: #a34a3e; }
.ui-ready .shell, .ui-ready .sidebar { transition: width .2s ease, margin-left .2s ease, transform .2s ease; }
.auth-pending .sidebar, .auth-pending .shell, .auth-pending dialog { visibility: hidden; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 40; border: 0; background: #0b25336b; backdrop-filter: blur(2px); }

/* Overview and workspace */
.summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-bottom: 26px; }
.summary-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 21px 23px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.summary-number { font-size: 29px; font-weight: 600; line-height: 1.15; letter-spacing: -1px; color: #26485b; font-variant-numeric: tabular-nums; }
.summary-label { margin-bottom: 10px; color: #607989; font-size: 12px; }
.summary-icon { width: 44px; height: 44px; display: grid; place-items: center; background: #eaf5f3; color: #529b91; border: 1px solid #e1efeb; border-radius: 12px; }
.summary-icon .icon { width: 22px; height: 22px; }
.summary-card:nth-child(2) .summary-icon { color: #6d96b4; background: #eef3f8; border-color: #e5ecf3; }
.summary-card:nth-child(3) .summary-icon { color: #b19b72; background: #f8f4ec; border-color: #f1ecdf; }
.list-toolbar, .directory-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.segmented { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid #e3e9ed; border-radius: 8px; background: #eaf0f3; max-width: 100%; overflow-x: auto; }
.segmented button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; min-height: 32px; border: 1px solid transparent; background: transparent; border-radius: 5px; color: #83939f; font-size: 11px; white-space: nowrap; }
.segmented button.active { background: white; color: #365a6b; border-color: #e2e8ec; box-shadow: 0 1px 3px #19384b05; font-weight: 600; }
.filter-count { font-size: 10px; color: #9ba8b1; }
.segmented .active .filter-count { color: var(--teal); }
.panel { background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 0; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 19px 21px; border-bottom: 1px solid #edf1f4; }
.panel-header h2 { font-size: 12px; font-weight: 600; color: #496474; }
.count { display: inline-flex; justify-content: center; min-width: 21px; padding: 2px 6px; margin-left: 7px; background: #eef4f5; color: #7d9ba4; border-radius: 4px; font-size: 10px; }
.workspace-grid { display: grid; grid-template-columns: 274px minmax(0,1fr); gap: 20px; align-items: start; }
.patient-list-panel { overflow: hidden; }
.search { padding: 14px; position: relative; }
.search > .icon { position: absolute; top: 26px; left: 27px; width: 16px; height: 16px; color: #9eacb5; pointer-events: none; }
.search input { width: 100%; min-height: 39px; background: #f7f9fa; color: #526d7b; border: 1px solid #e7edf0; border-radius: 6px; padding: 9px 11px 9px 37px; font-size: 11px; }
input::placeholder, textarea::placeholder { color: #a2aeb5; }
.patient-list { padding: 0 8px 8px; max-height: calc(100dvh - 370px); min-height: 110px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #dce6e9 transparent; }
.patient-item { position: relative; display: flex; align-items: flex-start; gap: 11px; width: 100%; margin: 0 0 5px; padding: 14px 11px; border: 1px solid transparent; background: white; border-radius: 7px; text-align: left; }
.patient-item:hover { background: #f7fafb; }
.patient-item.selected { border-color: #d6e9e7; background: #eff8f6; }
.patient-item.selected::before { content: ''; position: absolute; left: -1px; top: 15px; bottom: 15px; width: 3px; border-radius: 0 4px 4px 0; background: #4faea1; }
.animal-avatar { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; background: #edf2f7; color: #7893aa; border: 1px solid #e5edf3; border-radius: 11px; font-size: 17px; font-weight: 550; }
.animal-avatar.cat { color: #aa93ad; background: #f4eef4; border-color: #eee5ef; }
.patient-item.selected .animal-avatar { color: #54998d; background: #dfeee8; border-color: #d6e8df; }
.patient-item strong { display: block; font-size: 12px; font-weight: 650; color: #365567; margin: 1px 0 4px; }
.patient-item small { font-size: 10px; margin-top: 4px; }
.patient-item .status { font-size: 9px; margin-top: 9px; padding: 3px 6px; }
.patient-item-copy { min-width: 0; }
.patient-item-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.patient-list-bed { display: inline-flex; align-items: center; gap: 5px; color: #77909e; font-size: 10px; margin-top: 6px; }
.patient-list-bed .icon { width: 12px; height: 12px; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; background: #eaf5ef; color: #47745d; font-size: 10px; line-height: 1.4; font-weight: 500; white-space: nowrap; }
.status::before, .bed-status::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status.warning { background: #fff4df; color: #916614; }
.patient-top { padding: 25px 26px 22px; }
.patient-title { display: flex; align-items: center; gap: 13px; }
.patient-title > .animal-avatar { width: 50px; height: 50px; flex-basis: 50px; font-size: 23px; border-radius: 13px; }
.patient-heading { flex: 1; min-width: 0; }
.patient-heading h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -.7px; color: #23485d; }
.patient-heading h2 .status { letter-spacing: 0; }
.patient-heading > small { font-size: 10.5px; margin-top: 5px; }
.patient-actions { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.patient-actions .icon-button { border-color: var(--line); }
.patient-meta { display: grid; grid-template-columns: 1.2fr .9fr 1fr 1.2fr; gap: 15px; margin-top: 24px; padding: 17px 0 0; border-top: 1px solid #edf1f3; }
.patient-meta > div { min-width: 0; }
.patient-meta dt { font-size: 9px; text-transform: uppercase; letter-spacing: .6px; color: #607989; margin-bottom: 5px; }
.patient-meta dd { margin: 0; font-size: 11.5px; font-weight: 500; line-height: 1.6; color: #557182; overflow-wrap: anywhere; }
.admission-actions { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.admission-actions .button { min-height: 32px; font-size: 10px; padding: 6px 10px; }
.discharge-button { background: #f0f8f5; border-color: #d9e9e1; color: #628c77; margin-left: auto; }
.discharge-button:hover { background: #e9f4ed; border-color: #b9d4c5; }
.closed-banner { display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid #e4ebee; background: #f5f8fa; border-radius: 6px; color: #8a9da9; font-size: 10px; margin-top: 18px; line-height: 1.6; }
.closed-banner .icon { width: 15px; height: 15px; }
.closed-banner strong { color: #668391; font-weight: 550; }
.alert { display: flex; align-items: flex-start; gap: 9px; margin: 0 26px 20px; padding: 11px 13px; color: #926c27; border: 1px solid #f1e6d0; border-radius: 6px; font-size: 11px; background: #fffbf2; line-height: 1.6; }
.alert .icon { width: 15px; height: 15px; margin-top: 1px; }
.alert strong { font-weight: 600; }
.tabs { display: flex; align-items: center; gap: 25px; padding: 0 26px; border-top: 1px solid #edf1f4; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 7px; min-height: 49px; padding: 13px 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: #94a3ad; font-size: 11px; white-space: nowrap; }
.tab.active { color: var(--teal); border-bottom-color: var(--teal); font-weight: 600; }
.tab .icon { width: 15px; height: 15px; }
.tab:hover { color: var(--teal); }
.tab-content { padding: 24px 26px 26px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.section-heading h3 { font-size: 13px; font-weight: 600; color: #496778; }
.section-heading p { font-size: 10px; color: #a1aeb6; margin-top: 5px; }
.section-heading .button { font-size: 10px; min-height: 32px; padding: 6px 9px; }
.section-heading .button .icon { width: 13px; height: 13px; }
.vitals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.vital { padding: 17px; border: 1px solid #e8eef1; border-radius: 8px; background: #fbfcfd; }
.vital-label { display: flex; justify-content: space-between; align-items: center; gap: 7px; color: #95a5b0; font-size: 10px; }
.vital-label .icon { width: 16px; height: 16px; color: #aec0cb; }
.vital .value { margin-top: 13px; color: #3c5b6f; font-size: 25px; font-weight: 550; letter-spacing: -.65px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.unit { margin-left: 5px; color: #99aab4; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.two-col { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin-top: 22px; }
.info-box { padding: 16px 17px; background: #fafcfc; border: 1px solid #eaf0f2; border-radius: 7px; }
.subtle-label { font-size: 9px; text-transform: uppercase; letter-spacing: .75px; color: #9aaab4; font-weight: 550; }
.info-box p { color: #557182; font-size: 12px; line-height: 1.8; margin-top: 9px; white-space: pre-wrap; overflow-wrap: anywhere; }
.section-divider { height: 1px; background: #edf1f4; margin: 24px 0; }
.record-card { margin-bottom: 11px; border: 1px solid #e9eff2; border-radius: 7px; overflow: hidden; }
.record-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; background: #fafcfc; border-bottom: 1px solid #eff3f5; }
.record-top strong { color: #91a2ad; font-size: 10px; font-weight: 450; }
.record-top .author-name { color: #607e8e; font-weight: 550; }
.record-top .icon-button { width: 25px; height: 25px; }
.record-top .icon { width: 13px; height: 13px; }
.record-card > p, .record-content { padding: 13px 15px; white-space: pre-wrap; overflow-wrap: anywhere; color: #557182; font-size: 12.5px; line-height: 1.85; }
.record-card p strong { color: #526f81; font-weight: 550; }
.history-block { margin-top: 22px; padding-top: 19px; border-top: 1px solid #edf1f4; }
.history-block > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; color: #7b929f; font-size: 11px; }
.history-block > summary::-webkit-details-marker { display: none; }
.history-block > summary .icon { width: 14px; height: 14px; transition: transform .2s; }
.history-block[open] > summary .icon { transform: rotate(90deg); }
.timeline { display: flex; flex-direction: column; gap: 17px; padding: 20px 0 1px; }
.timeline-item { display: flex; gap: 12px; }
.timeline-dot { flex: 0 0 8px; width: 8px; height: 8px; border: 2px solid #d9eae5; background: #8cbaac; border-radius: 50%; margin-top: 5px; }
.timeline-item strong { font-weight: 550; font-size: 10.5px; color: #678393; }
.timeline-item p { color: #9babb5; font-size: 10px; margin-top: 4px; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.monitoring-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 20px; margin-top: 24px; }
.monitor-block { min-width: 0; }
.monitor-block:first-child { grid-column: 1/-1; }
.monitor-block > .section-heading { padding-bottom: 12px; border-bottom: 1px solid #edf1f4; }
.monitor-block .record-card { margin-top: 11px; }

/* Tables and prescriptions */
.table-wrap { overflow-x: auto; border: 1px solid #e8eef1; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }
th { padding: 13px 15px; background: #f8fafb; color: #5a7383; font-size: 9px; letter-spacing: .45px; font-weight: 550; white-space: nowrap; }
td { padding: 17px 15px; border-top: 1px solid #eaf0f3; color: #557182; font-size: 12px; vertical-align: middle; line-height: 1.7; }
td strong { color: #46687c; font-weight: 550; }
td small { font-size: 9px; color: #9aacb6; margin-top: 4px; }
tbody tr:hover { background: #fcfdfd; }
td .button { font-size: 10px; padding: 6px 10px; min-height: 32px; }
.schedule-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.schedule-toolbar .field { display: flex; flex-direction: row; align-items: center; color: #8499a5; font-size: 11px; }
.schedule-toolbar input { max-width: 155px; min-height: 35px; font-size: 11px; }
.schedule-legend { display: flex; gap: 15px; align-items: center; color: #99aab3; font-size: 10px; }
.schedule-legend span { display: inline-flex; align-items: center; gap: 5px; }
.schedule-legend .icon { width: 12px; height: 12px; }
.schedule-legend .done-key { color: #6aa794; }
.prescription-table { min-width: 580px; }
.check-hours { display: flex; align-items: flex-start; gap: 10px; }
.check-hour { text-align: center; }
.check { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid #e1e9ed; border-radius: 6px; background: white; color: #b6c4cb; }
.check .icon { width: 14px; height: 14px; }
.check:hover:not(:disabled) { color: var(--teal); border-color: #96c7c1; background: #f1f9f7; }
.check.done { background: #e7f4eb; color: #6b9d79; border-color: #d9e9da; }
.check:disabled { opacity: .65; }
.check-hour small { font-size: 8px; color: #9fb0bb; margin-top: 5px; }
.prescription-note { max-width: 230px; white-space: pre-wrap; font-size: 11.5px; color: #607989; line-height: 1.6; }

/* Patient directory and bed occupancy */
.directory-toolbar .search-box { width: min(370px,100%); }
.search-box { position: relative; }
.search-box > .icon { position: absolute; left: 13px; top: 12px; color: #9baeb8; width: 17px; height: 17px; pointer-events: none; }
.search-box input { width: 100%; min-height: 41px; border: 1px solid #dfe7ec; padding: 10px 12px 10px 39px; background: white; border-radius: 7px; font-size: 11px; color: #5e7b8d; }
.directory-count { margin: 3px 0 18px; color: #a0afb9; font-size: 10px; }
.patient-directory, .beds-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.directory-card, .bed-card { padding: 22px; }
.directory-card-top { display: flex; align-items: center; gap: 12px; }
.directory-card-top .animal-avatar { width: 46px; height: 46px; flex-basis: 46px; font-size: 20px; }
.directory-card h3 { color: #365a71; font-size: 15px; font-weight: 600; letter-spacing: -.3px; }
.directory-card-top small { font-size: 10px; margin-top: 4px; }
.directory-card > .status { margin-top: 17px; }
.directory-card .patient-facts { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid #edf2f4; margin-top: 18px; padding-top: 16px; }
.patient-facts > div { display: flex; align-items: center; gap: 9px; color: #8198a6; font-size: 11px; }
.patient-facts .icon { color: #acbec9; width: 14px; height: 14px; }
.patient-facts a:hover { color: var(--teal); }
.card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding-top: 18px; margin-top: 18px; border-top: 1px solid #edf1f4; }
.card-actions .button { font-size: 10px; min-height: 33px; padding: 7px 10px; }
.card-actions .muted-button { margin-left: auto; font-size: 10px; }
.bed-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bed-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bed-identity > div { min-width: 0; }
.bed-symbol { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: #f2f6f8; color: #91a8b5; }
.bed-symbol .icon { width: 21px; height: 21px; }
.bed-top h2 { font-size: 20px; letter-spacing: -.5px; color: #3b6176; font-weight: 600; margin-top: 3px; overflow-wrap: anywhere; }
.bed-top .subtle-label { font-size: 8px; }
.bed-status { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 4px 7px; font-size: 9px; white-space: nowrap; }
.bed-status.disponivel { background: #eaf5ee; color: #47745d; }
.bed-status.ocupado { background: #fff3df; color: #89631e; }
.bed-status.bloqueado { background: #f9eeeb; color: #975f51; }
.bed-status.inativo { background: #edf1f4; color: #557182; }
.bed-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.bed-specs span { padding: 4px 7px; border: 1px solid #eaf0f2; border-radius: 4px; color: #9aadb8; font-size: 9px; background: #fdfefe; }
.bed-occupant { display: flex; align-items: center; gap: 10px; padding: 13px; min-height: 65px; background: #f9faf7; border: 1px solid #edf0e9; border-radius: 7px; }
.bed-occupant .animal-avatar { width: 32px; height: 32px; flex-basis: 32px; border-radius: 8px; font-size: 14px; }
.bed-occupant strong { font-size: 12px; font-weight: 550; color: #71876b; }
.bed-occupant small { font-size: 9px; color: #a4b09d; margin-top: 4px; }
.bed-availability { display: flex; align-items: center; gap: 9px; padding: 15px; min-height: 65px; background: #f5faf8; border: 1px dashed #dfece6; border-radius: 7px; color: #99b5a8; font-size: 10px; line-height: 1.6; }
.bed-availability .icon { width: 16px; height: 16px; }
.bed-availability.unavailable { color: #896c60; border-color: #ede4df; background: #fdfbf9; }
.bed-note { margin-top: 12px; color: #98a8b2; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.empty { padding: 26px 18px; color: #9aaab5; text-align: center; font-size: 11px; line-height: 1.7; }
.compact-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 23px 10px; border: 1px dashed #e5ecef; border-radius: 7px; color: #a0b0b9; font-size: 10px; }
.compact-empty .icon { width: 15px; height: 15px; color: #b4c6ce; }
.large-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; padding: 50px 25px; }
.empty-icon { display: grid; place-items: center; width: 65px; height: 65px; background: #f0f7f5; border: 1px solid #e4efeb; border-radius: 19px; color: #9cbfb3; margin: 0 auto 22px; }
.empty-icon .icon { width: 29px; height: 29px; }
.large-empty h2 { color: #7893a2; font-size: 17px; font-weight: 550; letter-spacing: -.35px; }
.large-empty p { max-width: 290px; margin: 9px 0 22px; font-size: 11px; color: #a2b0b9; }
.directory-empty { grid-column: 1/-1; padding: 48px 24px; }
.directory-empty h2 { font-size: 16px; color: #7993a3; font-weight: 550; }
.directory-empty p { margin-top: 7px; }
.directory-empty .button { margin-top: 19px; }

/* Forms */
dialog { width: min(660px,calc(100% - 32px)); max-height: calc(100dvh - 56px); margin: auto; padding: 0; border: 1px solid #e3eaef; border-radius: 14px; box-shadow: 0 24px 90px #0b253333; color: var(--ink); overflow: hidden; }
dialog::backdrop { background: #0b25334d; backdrop-filter: blur(3px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px 21px; border-bottom: 1px solid #edf2f5; }
.modal-eyebrow { display: block; color: #a0b1bc; text-transform: uppercase; letter-spacing: 1.2px; font-size: 8px; margin-bottom: 6px; }
.modal-header h2 { font-size: 21px; font-weight: 600; letter-spacing: -.6px; color: #33586d; }
#recordForm { display: flex; flex-direction: column; max-height: calc(100dvh - 154px); }
.modal-body { overflow-y: auto; min-height: 0; padding: 22px 28px 27px; scrollbar-width: thin; scrollbar-color: #d8e4e8 transparent; }
.form-hint { font-size: 11px; color: #97a9b5; line-height: 1.7; margin: 0 0 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px 18px; }
.form-section { grid-column: 1/-1; display: flex; align-items: center; gap: 11px; margin: 5px 0 -2px; padding-top: 10px; color: #698b9b; font-size: 10px; text-transform: uppercase; letter-spacing: .7px; font-weight: 550; }
.form-section::after { content: ''; flex: 1; height: 1px; background: #edf2f4; }
.form-section:first-child { margin-top: 0; padding-top: 0; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: #557182; font-size: 12px; font-weight: 500; }
.field.wide { grid-column: 1/-1; }
.field-label { display: flex; align-items: center; gap: 4px; }
.required-mark { color: #96bbb6; }
.field input, .field select, .field textarea { width: 100%; min-height: 41px; padding: 10px 12px; background: #fbfcfd; border: 1px solid #e1e9ee; color: #4e6d80; border-radius: 6px; outline: none; font-size: 12px; font-weight: 400; transition: border-color .15s,box-shadow .15s; }
.field select { padding-right: 25px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cbdbe3; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #79b7b2; background: white; box-shadow: 0 0 0 3px #00878b0a; }
.field textarea { resize: vertical; min-height: 83px; max-height: 230px; line-height: 1.8; }
.field input:disabled { background: #f1f5f6; color: #a8b5bd; }
.field small { color: #a2b2bc; font-size: 10px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 17px 28px; border-top: 1px solid var(--line); background: #fafcfd; }
.modal-actions .button { min-height: 39px; min-width: 95px; font-size: 11px; }
.login-error { border: 1px solid #f0dad5; background: #fff6f3; color: #b17a6e; padding: 12px 14px; border-radius: 7px; font-size: 11px; line-height: 1.75; margin: 18px 0 0; }
#toast { position: fixed; left: 50%; bottom: 25px; z-index: 100; display: flex; align-items: center; gap: 10px; transform: translate(-50%,10px); border: 1px solid #284c5d; border-radius: 9px; padding: 13px 19px; max-width: min(560px,calc(100vw - 30px)); color: #e2edf3; background: #193a4b; box-shadow: 0 7px 24px #0b25332a; font-size: 12px; line-height: 1.6; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s,transform .2s,visibility .2s; }
#toast.visible { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.loading-state { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 300px; color: #96aab7; font-size: 12px; }
.spinner { display: inline-block; width: 17px; height: 17px; border: 2px solid #dcebe8; border-top-color: #77afa6; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Login */
.login-page { display: grid; place-items: center; min-height: 100dvh; background: #eff4f6; padding: 40px; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; width: min(960px,100%); max-width: 960px; min-height: 580px; padding: 0; margin: 0; background: white; border: 1px solid #dde7ec; border-radius: 18px; box-shadow: 0 20px 80px #1e46570a; overflow: hidden; }
.login-welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; padding: 55px 40px; background: #eaf4f2; border-right: 1px solid #e2ece9; }
.login-welcome::after { content: ''; position: absolute; width: 330px; height: 330px; border: 1px solid #d9eae3; border-radius: 50%; left: -200px; bottom: -160px; pointer-events: none; }
.login-logo { width: 185px; height: 210px; object-fit: contain; margin: 0 0 30px; }
.login-clinic-label { text-transform: uppercase; letter-spacing: 2px; font-size: 9px; color: #7ca6a0; margin-bottom: 10px; }
.login-welcome h1 { color: #25546a; font-size: 31px; font-weight: 600; letter-spacing: -1px; }
.login-signature { color: #a0b9b4; font-size: 10px; margin-top: 38px; }
.login-card { align-self: center; padding: 45px 54px; }
.login-lock { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #e3edee; border-radius: 11px; background: #f4f9f8; color: #7baca4; margin-bottom: 23px; }
.login-lock .icon { width: 19px; height: 19px; }
.login-card h2 { font-size: 25px; font-weight: 600; letter-spacing: -.7px; color: #33596f; }
.login-card > p { font-size: 12px; color: #99aab6; margin: 8px 0 28px; }
.login-card .field { margin-bottom: 19px; font-size: 11px; }
.login-card .field input { min-height: 43px; font-size: 13px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 66px; }
.password-field button { position: absolute; right: 9px; top: 10px; padding: 4px; border: 0; background: transparent; font-size: 10px; color: #86a8ad; }
.password-field button:hover { color: var(--teal); }
.login-submit { width: 100%; justify-content: space-between; min-height: 43px; margin-top: 5px; font-size: 12px; }
.login-help { margin-top: 25px; border-top: 1px solid #edf2f4; padding-top: 20px; color: #a2b0b9; font-size: 10px; line-height: 1.7; }
.print-brand, .print-heading { display: none; }

/* Compact navigation */
@media(min-width:901px) {
  .sidebar-collapsed { --sidebar-width: 80px; }
  .sidebar-collapsed .sidebar { padding-left: 11px; padding-right: 11px; }
  .sidebar-collapsed .brand { padding: 0; justify-content: center; }
  .sidebar-collapsed .brand-mark { flex-basis: 44px; height: 51px; border-radius: 10px; }
  .sidebar-collapsed .brand-logo { width: 39px; height: 45px; }
  .sidebar-collapsed .brand-name, .sidebar-collapsed .nav-text, .sidebar-collapsed .user-copy { display: none; }
  .sidebar-collapsed .nav-label { color: transparent; padding: 0; overflow: hidden; font-size: 0; height: 13px; }
  .sidebar-collapsed .nav-item { justify-content: center; padding-left: 10px; padding-right: 10px; min-height: 45px; }
  .sidebar-collapsed .nav-count { position: absolute; right: 2px; top: 2px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 8px; border: 1px solid var(--navy-deep); }
  .sidebar-collapsed .user { justify-content: center; padding-left: 0; padding-right: 0; }
  .sidebar-collapsed .sidebar-user { flex-direction: column; gap: 2px; }
  .sidebar-collapsed .user { width: 100%; }
  .sidebar-collapsed .nav-item::after { content: attr(data-tooltip); position: absolute; left: calc(100% + 15px); top: 50%; transform: translateY(-50%); padding: 9px 12px; border-radius: 6px; background: #183a4b; color: #e2eef4; font-size: 11px; font-weight: 450; box-shadow: 0 3px 12px #0b253320; pointer-events: none; opacity: 0; visibility: hidden; z-index: 90; }
  .sidebar-collapsed .nav-item:hover::after, .sidebar-collapsed .nav-item:focus-visible::after { opacity: 1; visibility: visible; }
}
@media(min-width:1500px) { .workspace-grid { grid-template-columns: 300px minmax(0,1fr); gap: 24px; } main { padding: 38px 42px 55px; } }
@media(max-width:1250px) {
  main { padding: 28px 25px 40px; }
  .topbar { padding-left: 25px; padding-right: 25px; }
  .summary-card { padding: 18px; }
  .workspace-grid { grid-template-columns: 240px minmax(0,1fr); gap: 16px; }
  .patient-top, .tab-content { padding-left: 20px; padding-right: 20px; }
  .tabs { padding-left: 20px; padding-right: 20px; gap: 20px; }
  .tab { font-size: 10px; }
  .patient-meta { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 20px; }
  .patient-title { flex-wrap: wrap; }
  .patient-actions { align-self: flex-start; }
  .patient-directory, .beds-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .vital { padding: 14px 12px; }
  .vital .value { font-size: 22px; }
}
@media(max-width:1050px) and (min-width:901px) {
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .sidebar-collapsed .sidebar { padding-left: 11px; padding-right: 11px; }
  :root { --sidebar-width: 226px; }
  .brand-name { font-size: 15px; }
  .brand { gap: 10px; }
  main { padding-left: 20px; padding-right: 20px; }
  .workspace-grid { grid-template-columns: 205px minmax(0,1fr); }
  .patient-heading h2 { font-size: 21px; }
  .tabs { gap: 17px; }
  .tab .icon { display: none; }
  .two-col, .monitoring-grid { grid-template-columns: 1fr; }
  .summary-icon { width: 35px; height: 35px; border-radius: 10px; }
}
@media(max-width:900px) {
  .sidebar { width: min(280px,calc(100vw - 45px)); padding: 27px 19px 18px; transform: translateX(-100%); visibility: hidden; }
  .sidebar-open .sidebar { transform: translateX(0); visibility: visible; }
  .sidebar-open { overflow: hidden; }
  .shell { margin-left: 0; }
  .topbar { height: 64px; padding-left: 22px; padding-right: 22px; }
  .brand-name { font-size: 16px; }
  main { padding: 28px 24px 40px; }
  .workspace-grid { grid-template-columns: 240px minmax(0,1fr); gap: 16px; }
  .login-page { padding: 25px; }
  .login-card { padding: 35px; }
  .login-welcome { padding-left: 25px; padding-right: 25px; }
  .login-logo { width: 150px; height: 180px; }
  .login-welcome h1 { font-size: 28px; }
}
@media(max-width:700px) {
  .topbar { height: 60px; padding: 0 15px; }
  .topbar-left { gap: 10px; }
  .top-right { gap: 10px; }
  .breadcrumbs { gap: 10px; font-size: 11px; }
  .breadcrumbs > span:first-child, .breadcrumbs .slash { display: none; }
  .header-date { font-size: 10px; gap: 6px; }
  .header-date .icon { display: none; }
  .account-button { width: 33px; height: 33px; }
  main { padding: 24px 16px 35px; }
  .page-heading { margin-bottom: 21px; align-items: flex-start; gap: 12px; }
  h1 { font-size: 24px; }
  .page-heading p { font-size: 10px; margin-top: 5px; }
  .page-heading > .button { padding: 8px 11px; min-height: 37px; font-size: 10px; }
  .page-heading > .button .icon { width: 14px; height: 14px; }
  .summary-grid { gap: 9px; margin-bottom: 19px; }
  .summary-card { padding: 14px 12px; border-radius: 8px; }
  .summary-icon { display: none; }
  .summary-label { font-size: 9px; line-height: 1.6; margin-bottom: 6px; }
  .summary-number { font-size: 24px; }
  .list-toolbar { gap: 12px; margin-bottom: 16px; }
  .segmented { max-width: calc(100vw - 32px); }
  .segmented button { font-size: 10px; padding: 6px 9px; min-height: 31px; }
  .list-toolbar > .button { font-size: 10px; min-height: 34px; padding: 7px 10px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .patient-list-panel .panel-header { padding: 14px 16px; }
  .patient-list { display: flex; overflow-x: auto; max-height: none; min-height: 0; gap: 7px; padding: 0 10px 10px; scroll-snap-type: x proximity; }
  .patient-item { flex: 0 0 190px; width: 190px; padding: 12px 10px; margin-bottom: 0; scroll-snap-align: start; }
  .patient-item .animal-avatar { flex-basis: 34px; width: 34px; height: 34px; border-radius: 9px; font-size: 15px; }
  .patient-item strong { font-size: 11px; }
  .patient-top { padding: 20px 18px 17px; }
  .patient-title { gap: 11px; }
  .patient-title > .animal-avatar { width: 43px; height: 43px; flex-basis: 43px; border-radius: 10px; font-size: 20px; }
  .patient-heading h2 { font-size: 21px; gap: 7px; }
  .patient-heading h2 .status { font-size: 9px; }
  .patient-heading > small { font-size: 9px; }
  .patient-actions .button { min-height: 31px; font-size: 9px; padding: 5px 9px; }
  .patient-actions .button .icon { display: none; }
  .patient-actions .icon-button { width: 31px; height: 31px; }
  .patient-meta { margin-top: 18px; gap: 13px; padding-top: 15px; }
  .patient-meta dt { font-size: 8px; }
  .patient-meta dd { font-size: 10px; }
  .admission-actions { gap: 7px; margin-top: 17px; }
  .admission-actions .button { font-size: 9px; }
  .alert { margin: 0 18px 17px; font-size: 10px; padding: 10px; }
  .tabs { padding: 0 18px; gap: 20px; }
  .tab { min-height: 45px; font-size: 10px; }
  .tab .icon { display: none; }
  .tab-content { padding: 20px 17px; }
  .section-heading h3 { font-size: 11px; }
  .section-heading p { font-size: 9px; }
  .section-heading .button { font-size: 9px; padding: 5px 8px; min-height: 30px; }
  .vitals { gap: 8px; }
  .vital { padding: 13px 10px; }
  .vital-label { font-size: 9px; }
  .vital-label .icon { display: none; }
  .vital .value { font-size: 22px; }
  .unit { font-size: 9px; }
  .two-col { gap: 10px; margin-top: 17px; }
  .info-box { padding: 13px; }
  .info-box p { font-size: 10px; }
  .monitoring-grid { grid-template-columns: 1fr; gap: 23px; }
  .toolbar .button { font-size: 9px; padding: 6px 9px; min-height: 32px; }
  .toolbar .button .icon { width: 13px; height: 13px; }
  .patient-directory, .beds-grid { grid-template-columns: 1fr; }
  .directory-toolbar { gap: 14px; }
  .directory-toolbar .search-box { width: 100%; }
  .directory-toolbar > .toolbar { width: 100%; justify-content: space-between; }
  .large-empty { min-height: 300px; padding: 40px 25px; }
  dialog { width: calc(100% - 20px); max-height: calc(100dvh - 25px); border-radius: 11px; }
  .modal-header { padding: 20px; }
  .modal-header h2 { font-size: 20px; }
  #recordForm { max-height: calc(100dvh - 117px); }
  .modal-body { padding: 19px 20px 24px; }
  .form-grid { gap: 17px 13px; }
  .field { font-size: 10px; }
  .field input, .field select, .field textarea { font-size: 13px; min-height: 43px; padding: 10px; }
  .modal-actions { padding: 14px 20px; }
  .modal-actions .button { min-height: 41px; }
  .login-page { padding: 18px; }
  .login-layout { grid-template-columns: 1fr; max-width: 430px; min-height: 0; border-radius: 13px; }
  .login-welcome { flex-direction: row; flex-wrap: wrap; gap: 0 13px; padding: 24px; border-right: 0; border-bottom: 1px solid #e2ece9; justify-content: flex-start; }
  .login-logo { width: 52px; height: 63px; margin: 0; }
  .login-clinic-label { position: absolute; left: 89px; top: 32px; font-size: 7px; letter-spacing: 1.3px; margin: 0; }
  .login-welcome h1 { margin-top: 15px; font-size: 22px; }
  .login-signature { display: none; }
  .login-card { padding: 30px 28px; }
  .login-lock { display: none; }
  .login-card h2 { font-size: 23px; }
  .login-card .field input { font-size: 16px; }
}
@media(max-width:380px) { .page-heading { flex-wrap: wrap; } .page-heading > .button { width: 100%; } .two-col { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } .field.wide { grid-column: 1; } .patient-actions { width: 100%; justify-content: flex-end; } .modal-actions .button { min-width: 0; flex: 1; padding: 9px 8px; white-space: normal; } }
@media(max-height:620px) { .sidebar { overflow-y: auto; } .sidebar-bottom { padding-top: 20px; } }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media print {
  body { background: white; color: #203c4d; font-size: 11px; }
  .sidebar, .sidebar-backdrop, .topbar, .page-heading, .summary-grid, .list-toolbar, .directory-toolbar, .patient-list-panel, .tabs, .button, .icon-button, .muted-button, .admission-actions, .toolbar, #toast, dialog, .skip-link { display: none !important; }
  .shell { margin: 0; }
  main { max-width: none; padding: 0; }
  .workspace-grid { display: block; }
  .panel { border: 0; box-shadow: none; }
  .patient-top { padding: 0 0 15px; }
  .patient-meta { grid-template-columns: repeat(4,1fr); }
  .tab-content { padding: 10px 0; }
  .print-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 23px; border-bottom: 2px solid #00878b; }
  .print-brand img { object-fit: contain; }
  .print-brand strong { font-size: 20px; font-weight: 600; }
  .print-brand small { font-size: 10px; }
  .print-heading { display: block; font-size: 16px; margin: 20px 0 13px; }
  .alert { margin: 0 0 15px; }
  .record-card, .info-box, .vital { break-inside: avoid; }
  .closed-banner { border: 1px solid #d8e4e9; }
  .check { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .monitoring-grid { display: block; }
  .monitor-block { margin-top: 22px; }
  .table-wrap { overflow: visible; }
  .prescription-table { min-width: 0; }
  .schedule-toolbar .field, .schedule-legend { font-size: 9px; }
}
