:root {
  --ink: #16283a;
  --muted: #708197;
  --line: #e5ebf1;
  --surface: #ffffff;
  --canvas: #f4f7fa;
  --teal: #087d7b;
  --teal-dark: #075d60;
  --navy: #0a2631;
  --blue: #346de7;
  --gold: #c77b0c;
  --violet: #7564cb;
  --shadow: 0 12px 32px rgba(20, 45, 68, .07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 15px; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 20px; background: radial-gradient(circle at 20% 10%, #1c6570 0, #0b2d39 42%, #061d28 100%); }.login-card { width: min(100%, 410px); border-radius: 20px; padding: 35px; color: var(--ink); background: #fff; box-shadow: 0 24px 60px rgba(2, 16, 24, .33); }.login-mark { display: grid; width: 45px; height: 45px; place-items: center; margin-bottom: 22px; border: 2px solid #23b9b2; border-radius: 14px 14px 14px 3px; color: #148f89; font-family: Georgia, serif; font-size: 28px; font-weight: 800; }.login-card h1 { margin: 0 0 7px; font-size: 27px; letter-spacing: -.04em; }.login-card > p:not(.eyebrow) { margin: 0 0 23px; color: var(--muted); line-height: 1.45; font-size: 13px; }.login-card form { display: grid; gap: 14px; }.login-card label { display: grid; gap: 6px; color: #375267; font-size: 12px; font-weight: 800; }.login-card input { min-height: 45px; border: 1px solid #dce6eb; border-radius: 10px; padding: 0 12px; outline-color: #5db8b2; }.login-card form .primary-button { width: 100%; margin-top: 4px; }.login-card small { display: block; margin-top: 19px; color: #8090a0; text-align: center; font-size: 10px; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 256px; flex: 0 0 256px; min-height: 100vh; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 16px 18px; color: #d8e7e9; background: radial-gradient(circle at 20% 5%, #135a65 0, var(--navy) 37%, #061c28 100%); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; color: #fff; font-size: 18px; letter-spacing: .03em; text-transform: uppercase; }
.brand strong { color: #58d5cf; font-weight: 700; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border: 2px solid #5ce2dc; border-radius: 12px 12px 12px 2px; color: #5ce2dc; font-size: 25px; font-family: Georgia, serif; font-weight: bold; }
.workspace-label { margin: 52px 10px 12px; color: #84a6ae; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.navigation { display: grid; gap: 5px; }
.nav-item { display: flex; min-height: 48px; align-items: center; gap: 14px; border-radius: 12px; padding: 0 12px; color: #b7ccd1; font-weight: 600; transition: .18s ease; }
.nav-item > span { display: inline-grid; width: 19px; place-items: center; color: #9fbac0; font-size: 21px; }
.nav-item:hover, .nav-item.is-active { background: rgba(72, 203, 195, .14); color: #fff; }
.nav-item.is-active { box-shadow: inset 3px 0 #48ddd4; }
.nav-item.is-active > span { color: #52ddd5; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 18px; padding: 18px 10px 0; border-top: 1px solid rgba(199, 229, 231, .13); }
.role-chip { display: flex; align-items: center; gap: 10px; color: #deeaec; font-size: 12px; }
.role-chip small { display: block; margin-top: 3px; color: #94b0b7; }
.presence { width: 9px; height: 9px; border-radius: 50%; background: #4fd9a5; box-shadow: 0 0 0 4px rgba(79, 217, 165, .12); }
.help-link { color: #9ab8be; font-size: 13px; font-weight: 600; }

.main-content { width: min(100%, calc(100% - 256px)); }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); backdrop-filter: blur(12px); }
.crumb { display: flex; gap: 9px; color: var(--muted); font-size: 14px; }.crumb b { color: #b4c0cc; }.crumb strong { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .mobile-menu { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: #527085; background: #fff; cursor: pointer; }
.has-notice { position: relative; }.has-notice::after { content: ''; position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #d5525b; }
.user-avatar { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #129c96, #086c79); font-size: 13px; font-weight: 800; }
.mobile-menu { display: none; }

.page { max-width: 1500px; margin: 0 auto; padding: 32px clamp(20px, 4vw, 58px) 56px; }
.preview-banner { display: flex; gap: 9px; align-items: center; margin-bottom: 24px; border: 1px solid #bee6df; border-radius: 12px; padding: 13px 16px; color: #286764; background: #effaf8; font-size: 13px; }.preview-banner span { color: #0f9d8d; }
.heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }.heading-row h1 { margin: 3px 0 4px; font-size: clamp(27px, 3vw, 36px); letter-spacing: -.04em; }.subtle { margin: 0; color: var(--muted); }.eyebrow { margin: 0 0 7px; color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .13em; }.heading-actions { display: flex; gap: 10px; }
.primary-button, .secondary-button, .mini-button { min-height: 43px; border: 0; border-radius: 10px; padding: 0 16px; cursor: pointer; font-weight: 750; }.primary-button { display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--teal); box-shadow: 0 7px 14px rgba(8, 125, 123, .16); }.primary-button:hover { background: var(--teal-dark); }.secondary-button { border: 1px solid #dbe5eb; color: #355368; background: #fff; }.mini-button { min-height: 33px; padding: 0 11px; color: var(--teal); background: #e8f7f5; font-size: 12px; }.wide { width: 100%; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }.metrics-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card, .panel { border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }.metric-card { display: flex; min-height: 139px; gap: 13px; align-items: flex-start; padding: 20px; }.metric-card > div { display: grid; gap: 3px; }.metric-card span:not(.metric-icon) { color: var(--muted); font-size: 13px; }.metric-card strong { font-size: 23px; letter-spacing: -.03em; }.metric-card strong small { color: #718195; font-size: 12px; font-weight: 600; letter-spacing: 0; }.metric-card em { color: #8290a1; font-size: 11px; font-style: normal; }.metric-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 11px; font-size: 19px; }.teal { color: #0a867e; background: #e6f7f4; }.blue { color: #306dde; background: #edf3ff; }.gold { color: #b67710; background: #fff5df; }.violet { color: #735fc5; background: #f0edff; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(330px, .9fr); gap: 20px; }.panel { padding: 22px; }.panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }.panel-title h2, .agenda-side h2, .record-timeline h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }.panel-title a { color: var(--teal); font-size: 12px; font-weight: 750; }
.appointment-list { display: grid; }.appointment-row { display: grid; grid-template-columns: 54px 35px minmax(140px, 1fr) auto auto; align-items: center; gap: 10px; min-height: 65px; border-top: 1px solid #edf1f4; }.appointment-row time { color: #586c80; font-size: 13px; font-weight: 750; }.appointment-avatar { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: #2d7879; background: #e5f5f3; font-size: 10px; font-weight: 800; }.appointment-row strong { display: block; font-size: 13px; }.appointment-row small { color: var(--muted); font-size: 11px; }.row-action { color: var(--teal); font-size: 12px; font-weight: 750; }
.status { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 800; white-space: nowrap; }.status-confirmed { color: #3869b3; background: #edf4ff; }.status-checked_in { color: #0b7974; background: #e4f7f3; }.status-triage { color: #9d6410; background: #fff3d8; }.status-in_consultation { color: #6549b6; background: #f0edff; }.status-awaiting_payment { color: #a15c1b; background: #fff1df; }.status-completed { color: #258359; background: #e5f7eb; }
.flow-step { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; min-height: 81px; border-top: 1px solid #edf1f4; }.flow-step > span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: var(--teal); background: #e7f6f4; font-size: 11px; font-weight: 800; }.flow-step strong { font-size: 13px; }.flow-step p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }.flow-step a { color: var(--teal); font-size: 12px; font-weight: 800; }

.agenda-layout, .encounter-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .55fr); gap: 20px; }.agenda-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }.agenda-filters button { border: 0; border-radius: 999px; padding: 7px 11px; color: #687b8e; background: #f2f5f7; cursor: pointer; font-size: 11px; font-weight: 750; }.agenda-filters .filter-selected { color: #fff; background: var(--teal); }.agenda-slot { display: grid; grid-template-columns: 55px 17px minmax(120px,1fr) auto 12px; align-items: center; gap: 9px; min-height: 81px; border-top: 1px solid #edf1f4; }.agenda-slot time { color: #516b80; font-weight: 800; }.timeline-dot { width: 9px; height: 9px; border-radius: 50%; background: #4cc8c1; box-shadow: 0 0 0 5px #e9f8f6; }.agenda-slot strong { font-size: 14px; }.agenda-slot p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }.chevron { color: #8fa1af; font-size: 22px; }.agenda-side dl { display: grid; gap: 9px; margin: 20px 0 25px; }.agenda-side dl div { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid #edf1f4; }.agenda-side dt { color: #748599; font-size: 13px; }.agenda-side dd { margin: 0; font-weight: 800; }

.search-row { display: flex; gap: 10px; }.search-box { display: flex; min-height: 45px; flex: 1; align-items: center; gap: 10px; border: 1px solid #dce6eb; border-radius: 10px; padding: 0 13px; color: #8294a4; }.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; }th { padding: 17px 12px; border-bottom: 1px solid #e9eff2; color: #7d8c9b; text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }td { padding: 15px 12px; border-bottom: 1px solid #edf1f4; color: #53677b; font-size: 13px; }td strong { color: var(--ink); }td small { color: var(--muted); }td a { color: var(--teal); font-weight: 800; font-size: 12px; }.empty-state { max-width: 620px; margin: 45px auto 28px; padding: 20px; text-align: center; }.empty-icon { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto 15px; border-radius: 18px; color: var(--teal); background: #e7f8f5; font-size: 28px; }.empty-state h2 { margin: 0 0 9px; }.empty-state p { color: var(--muted); line-height: 1.6; }.empty-state code { display: inline-block; margin-top: 11px; border-radius: 8px; padding: 8px 11px; color: #27736f; background: #eff9f7; font-size: 12px; }

.patient-summary { display: flex; align-items: center; gap: 12px; padding-bottom: 19px; border-bottom: 1px solid #e9eff2; }.patient-summary > div { flex: 1; }.patient-summary strong { font-size: 15px; }.patient-summary p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }.patient-initial { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: var(--teal); background: #dff5f2; font-weight: 850; }.workflow { display: flex; gap: 2px; overflow-x: auto; padding: 22px 0; }.workflow span { min-width: 112px; flex: 1; border-bottom: 3px solid #dfe7ed; padding-bottom: 9px; color: #7a8b9b; font-size: 10px; font-weight: 800; white-space: nowrap; }.workflow span.done { border-color: #5dcabc; color: #168479; }.workflow span.active { border-color: var(--teal); color: var(--teal); }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.form-grid label { display: grid; gap: 7px; color: #375267; font-size: 12px; font-weight: 800; }.form-grid textarea { min-height: 126px; resize: vertical; border: 1px solid #dce6eb; border-radius: 10px; padding: 12px; outline-color: #5db8b2; color: var(--ink); line-height: 1.4; }.form-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }.record-timeline { height: max-content; }.timeline-entry { display: grid; grid-template-columns: 22px 1fr; gap: 9px; padding: 17px 0; border-bottom: 1px solid #edf1f4; }.timeline-entry span { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #e5f6f4; }.timeline-entry strong { font-size: 13px; }.timeline-entry p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }

/* Agenda em grade: recepção e equipe veem o mesmo dia, por profissional. */
.agenda-command { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 13px 17px; }.calendar-nav { display: flex; gap: 5px; }.day-chip { min-width: 49px; border: 0; border-radius: 9px; padding: 6px 8px; color: #728397; background: transparent; cursor: pointer; font-size: 10px; line-height: 1.25; }.day-chip strong { display: block; margin-top: 3px; color: var(--ink); font-size: 15px; }.day-chip.is-current { color: #fff; background: var(--teal); }.day-chip.is-current strong { color: #fff; }.agenda-tools { display: flex; gap: 9px; }.agenda-tools .search-box { min-width: 210px; }.innova-agenda-layout { grid-template-columns: minmax(0, 1fr); }.agenda-board { padding: 0; overflow: hidden; }.agenda-minibar { display: flex; min-height: 61px; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 14px 9px 18px; border-bottom: 1px solid #e9eff2; background: #fff; }.agenda-date, .agenda-quick-actions { display: flex; align-items: center; gap: 7px; }.agenda-date > button:not(.today-link) { display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 7px; color: #557085; background: #f2f6f7; cursor: pointer; font-size: 20px; }.agenda-date strong { margin: 0 5px; color: #263f50; font-size: 14px; }.today-link { border: 0; padding: 6px 8px; color: var(--teal); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }.agenda-quick-actions .primary-button, .agenda-quick-actions .secondary-button { min-height: 37px; padding: 0 12px; font-size: 12px; }.agenda-legend { display: flex; flex-wrap: wrap; gap: 13px; padding: 15px 20px; border-bottom: 1px solid #e9eff2; color: #657a8c; font-size: 11px; font-weight: 700; }.agenda-legend span { display: inline-flex; align-items: center; gap: 5px; }.agenda-legend i { display: block; width: 8px; height: 8px; border-radius: 50%; }.legend-confirmed { background: #6a9cf4; }.legend-arrived { background: #4fc1b0; }.legend-triage { background: #dfaa40; }.legend-live { background: #997adc; }.calendar-scroll { overflow-x: auto; }.agenda-grid { display: grid; min-width: 760px; grid-template-columns: 76px repeat(3, minmax(210px, 1fr)); }.grid-corner, .professional-header { min-height: 76px; display: flex; align-items: center; border-bottom: 1px solid #e4ebf0; background: #fbfcfd; }.grid-corner { padding-left: 16px; color: #7e90a0; font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }.professional-header { position: relative; gap: 9px; padding: 0 13px; border-left: 1px solid #e4ebf0; }.professional-header strong { display: block; font-size: 12px; }.professional-header small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }.professional-avatar { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; font-size: 9px; font-weight: 900; }.online-dot { position: absolute; top: 22px; left: 37px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #31c68c; }.grid-time { min-height: 83px; padding: 13px 0 0 16px; border-bottom: 1px solid #e9eff3; color: #7e8d9d; font-size: 11px; font-weight: 800; }.calendar-cell { position: relative; min-height: 83px; border-bottom: 1px solid #e9eff3; border-left: 1px solid #e9eff3; padding: 5px; }.calendar-event { display: block; min-height: 70px; border-left: 3px solid; border-radius: 7px; padding: 8px 9px; }.calendar-event strong { display: block; color: #263e53; font-size: 11px; }.calendar-event small, .calendar-event em { display: block; margin-top: 3px; color: #5b7084; font-size: 10px; font-style: normal; }.event-confirmed { border-color: #5c8fec; background: #edf4ff; }.event-arrived { border-color: #2ba890; background: #e7f8f3; }.event-triage { border-color: #dca441; background: #fff5df; }.event-live { border-color: #8068c5; background: #f0edff; }.queue-card { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; min-height: 66px; border-bottom: 1px solid #edf1f4; }.queue-card > span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; color: var(--teal); background: #e7f8f5; font-size: 9px; font-weight: 900; }.queue-card strong { display: block; font-size: 12px; }.queue-card p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }.agenda-side dl { margin-top: 21px; }

/* Atendimento: cada etapa fica acessível sem transformar o prontuário em formulário infinito. */
.clinical-alert { display: flex; align-items: center; gap: 10px; margin-top: 16px; border: 1px solid #dceaf5; border-radius: 11px; padding: 11px 13px; background: #f4f9fe; }.clinical-alert > span { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border-radius: 50%; color: #fff; background: #4280c9; font-size: 11px; font-weight: 900; }.clinical-alert p { flex: 1; margin: 0; color: #557087; font-size: 11px; line-height: 1.45; }.clinical-alert strong { color: #2a526e; }.clinical-alert button { border: 0; color: #3177a9; background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; white-space: nowrap; }.workflow button { min-width: 114px; flex: 1; border: 0; border-bottom: 3px solid #dfe7ed; padding: 0 5px 10px; color: #7a8b9b; background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; white-space: nowrap; }.workflow button.done { border-color: #5dcabc; color: #168479; }.workflow button.active { border-color: var(--teal); color: var(--teal); }.clinical-stage { display: none; }.clinical-stage.is-visible { display: block; }.stage-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin: 2px 0 18px; }.stage-heading h2 { margin: 0 0 5px; font-size: 19px; letter-spacing: -.025em; }.stage-heading p { margin: 0; color: var(--muted); font-size: 12px; }.autosave { color: #28826e; font-size: 10px; font-weight: 800; white-space: nowrap; }.form-grid input, .form-grid select, .vitals-grid input, .full-label textarea, .report-toolbar select { min-height: 43px; width: 100%; border: 1px solid #dce6eb; border-radius: 10px; padding: 10px 11px; outline-color: #5db8b2; color: var(--ink); background: #fff; }.form-grid .span-two { grid-column: 1 / -1; }.exam-grid textarea { min-height: 220px; }.vitals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }.vitals-grid label, .full-label { display: grid; gap: 7px; color: #375267; font-size: 12px; font-weight: 800; }.full-label { margin-top: 14px; }.full-label textarea { min-height: 100px; resize: vertical; }.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }.plan-actions button { border: 1px solid #cfe6e3; border-radius: 8px; padding: 8px 10px; color: #187a76; background: #f2fbfa; cursor: pointer; font-size: 11px; font-weight: 800; }.report-toolbar { display: grid; grid-template-columns: minmax(230px, .8fr) 1.2fr; gap: 14px; align-items: end; margin: 2px 0 16px; border: 1px solid #dbeae8; border-radius: 11px; padding: 13px; background: #f6fbfa; }.report-toolbar label { display: grid; gap: 6px; color: #286f6c; font-size: 11px; font-weight: 850; }.report-toolbar span { padding-bottom: 10px; color: #678084; font-size: 11px; line-height: 1.35; }.clinical-report { min-height: 280px !important; }.finish-card { display: grid; max-width: 720px; margin: 8px auto; place-items: center; text-align: center; }.finish-card > span { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; color: #18836a; background: #e3f8ed; font-size: 23px; }.finish-card h2 { margin: 13px 0 5px; font-size: 21px; }.finish-card p { margin: 0 0 13px; color: var(--muted); line-height: 1.5; font-size: 12px; }.review-panel { width: 100%; margin: 18px 0 15px; border: 1px solid #dce9e8; border-radius: 13px; padding: 16px; text-align: left; background: #fbfdfd; }.review-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e5eeee; padding-bottom: 11px; }.review-heading .eyebrow { margin-bottom: 3px; }.review-heading h3 { margin: 0; color: #1e4250; font-size: 16px; }.review-heading .secondary-button { min-height: 34px; padding: 0 10px; font-size: 11px; }.review-content { display: grid; gap: 12px; padding-top: 13px; }.review-empty { color: #7a8d9b; text-align: center; }.review-group { border-left: 3px solid #4bb8b0; padding-left: 11px; }.review-group h4 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 9px; color: #1e4c58; font-size: 13px; }.review-group h4 button { border: 0; padding: 0; color: var(--teal); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }.review-group > div { margin-top: 7px; }.review-group strong { display: block; color: #536a79; font-size: 10px; text-transform: uppercase; letter-spacing: .035em; }.review-group p { margin: 2px 0 0; white-space: pre-wrap; color: #344e60; font-size: 12px; line-height: 1.45; }.checkline { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; color: #435e70; font-size: 12px; }.checkline input { width: 16px; height: 16px; }

.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(6, 27, 39, .52); opacity: 0; transition: opacity .16s ease; }.modal-backdrop.is-open { opacity: 1; }.modal-backdrop[hidden] { display: none; }.appointment-modal { width: min(100%, 520px); border-radius: 18px; padding: 23px; background: #fff; box-shadow: 0 24px 60px rgba(5, 26, 40, .28); transform: translateY(8px); transition: transform .16s ease; }.modal-backdrop.is-open .appointment-modal { transform: translateY(0); }.modal-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 19px; }.modal-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; }.modal-close { display: grid; width: 31px; height: 31px; place-items: center; border: 0; border-radius: 8px; color: #688093; background: #f2f5f7; cursor: pointer; font-size: 23px; }.appointment-modal form { display: grid; gap: 14px; }.appointment-modal label { display: grid; gap: 7px; color: #36546a; font-size: 12px; font-weight: 800; }.appointment-modal input, .appointment-modal select { min-height: 44px; width: 100%; border: 1px solid #dce6eb; border-radius: 10px; padding: 0 11px; outline-color: #5db8b2; color: var(--ink); background: #fff; }.modal-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 3px; }.toast { position: fixed; z-index: 35; right: 24px; bottom: 24px; max-width: min(390px, calc(100vw - 40px)); border-radius: 11px; padding: 13px 16px; color: #fff; background: #163d46; box-shadow: 0 10px 28px rgba(6, 25, 35, .25); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s ease; font-size: 13px; font-weight: 650; }.toast.is-visible { opacity: 1; transform: translateY(0); }

.professional-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }.professional-card { padding: 19px; }.professional-card-heading { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid #e9eff2; }.professional-card-heading > div { flex: 1; }.professional-card-heading strong { display: block; font-size: 14px; }.professional-card-heading small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }.professional-card-body { display: grid; grid-template-columns: 1fr auto; gap: 11px; padding: 17px 0; }.professional-card-body span { color: var(--muted); font-size: 11px; }.professional-card-body strong { color: #294457; text-align: right; font-size: 11px; }.professional-card-actions { display: flex; gap: 8px; }.professional-card-actions button { flex: 1; min-height: 37px; padding: 0 8px; font-size: 11px; }.professional-add { display: grid; min-height: 260px; place-items: center; align-content: center; border-style: dashed; text-align: center; }.professional-add > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: var(--teal); background: #e8f8f6; font-size: 22px; }.professional-add h2 { margin: 11px 0 4px; font-size: 16px; }.professional-add p { max-width: 235px; margin: 0 0 15px; color: var(--muted); font-size: 11px; line-height: 1.5; }.catalog-panel { padding: 20px; }.catalog-panel .search-row { margin-bottom: 12px; }

/* O prontuário pertence à ficha: histórico e financeiro são abas, não distrações laterais. */
.encounter-layout { grid-template-columns: minmax(0, 1fr); }.patient-actions { display: flex; gap: 8px; margin-left: 8px; }.patient-actions .primary-button, .patient-actions .secondary-button { min-height: 36px; padding: 0 11px; font-size: 12px; }.patient-record-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 -22px 18px; padding: 14px 22px 0; border-bottom: 1px solid #e9eff2; }.patient-record-tabs button { border: 0; border-bottom: 3px solid transparent; padding: 0 11px 11px; color: #718598; background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; white-space: nowrap; }.patient-record-tabs button.active { border-color: var(--teal); color: var(--teal); }.clinical-form.is-patient-subview .clinical-alert, .clinical-form.is-patient-subview .workflow, .clinical-form.is-patient-subview .clinical-stage, .clinical-form.is-patient-subview .form-footer { display: none; }.patient-subview { padding-top: 3px; }.patient-subview[hidden] { display: none; }.subview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }.subview-heading h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.03em; }.subview-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; }.history-item { border-top: 1px solid #e9eff2; }.history-item > button { display: grid; width: 100%; grid-template-columns: 44px minmax(150px, 1fr) auto 17px; align-items: center; gap: 13px; border: 0; padding: 13px 0; color: var(--ink); text-align: left; background: transparent; cursor: pointer; }.history-date { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 10px; color: #117e79; background: #e9f8f6; font-size: 14px; font-weight: 900; line-height: .9; }.history-date small { margin-top: 2px; font-size: 8px; }.history-item strong { display: block; font-size: 13px; }.history-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }.history-item b { border-radius: 999px; padding: 5px 8px; color: #247e6c; background: #e7f8f1; font-size: 10px; }.history-item i { color: #7b8c9a; font-style: normal; font-size: 17px; }.history-detail { margin: -2px 0 13px 57px; border-left: 2px solid #dcefed; padding: 3px 0 4px 13px; }.history-detail p { margin: 0 0 7px; color: #667d8e; font-size: 12px; }.history-detail a { color: var(--teal); font-size: 11px; font-weight: 800; }.patient-finance-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 19px; }.patient-finance-metrics > div { border: 1px solid #e4ecef; border-radius: 11px; padding: 13px; background: #fbfdfd; }.patient-finance-metrics span, .patient-finance-metrics small { display: block; color: var(--muted); font-size: 10px; }.patient-finance-metrics strong { display: block; margin: 6px 0 3px; color: #203d50; font-size: 17px; }

@media (max-width: 1120px) { .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.content-grid, .agenda-layout, .encounter-layout { grid-template-columns: 1fr; }.professional-grid { grid-template-columns: 1fr 1fr; }.agenda-side { display: none; } }
@media (max-width: 760px) { .app-shell { display: block; }.sidebar { z-index: 10; width: min(82vw, 290px); position: fixed; left: -310px; transition: left .2s ease; box-shadow: 14px 0 36px rgba(4,22,33,.28); }.sidebar.is-open { left: 0; }.main-content { width: 100%; }.topbar { height: 62px; padding: 0 16px; }.mobile-menu { display: grid; }.crumb { font-size: 12px; }.crumb span, .crumb b { display: none; }.page { padding: 20px 16px 38px; }.preview-banner { align-items: flex-start; line-height: 1.4; }.heading-row { align-items: flex-start; flex-direction: column; margin-bottom: 21px; }.heading-row h1 { font-size: 28px; }.heading-actions { width: 100%; }.heading-actions > * { flex: 1; }.primary-button { min-height: 46px; }.metrics-grid, .metrics-grid.compact, .professional-grid, .patient-finance-metrics { grid-template-columns: 1fr; gap: 11px; }.metric-card { min-height: 100px; padding: 16px; }.content-grid { gap: 14px; }.panel { padding: 16px; border-radius: 14px; }.appointment-row { grid-template-columns: 45px 32px minmax(0,1fr) auto; gap: 7px; }.appointment-row .row-action { display: none; }.appointment-row .status { display: none; }.flow-step { grid-template-columns: 28px 1fr auto; }.agenda-slot { grid-template-columns: 45px 14px minmax(0,1fr) 12px; }.agenda-slot .status { display: none; }.search-row { flex-direction: column; }.form-grid { grid-template-columns: 1fr; }.form-grid .span-two { grid-column: auto; }.vitals-grid { grid-template-columns: 1fr 1fr; }.form-footer { flex-direction: column-reverse; }.form-footer button { width: 100%; }.patient-summary { align-items: flex-start; flex-wrap: wrap; }.patient-summary .status { margin-left: 52px; }.workflow { margin-right: -16px; }.record-timeline { display: none; }.agenda-command { align-items: stretch; flex-direction: column; }.calendar-nav { overflow-x: auto; }.agenda-tools .search-box { min-width: 0; }.agenda-tools { width: 100%; }.agenda-tools .search-box { flex: 1; }.agenda-minibar { align-items: flex-start; flex-direction: column; }.agenda-quick-actions { width: 100%; }.agenda-quick-actions > * { flex: 1; }.modal-form-grid { grid-template-columns: 1fr; }.modal-actions { flex-direction: column-reverse; }.modal-actions button { width: 100%; }.toast { right: 16px; bottom: 16px; } th:nth-child(2), td:nth-child(2) { display: none; } }
