.rx-print-backdrop{position:fixed;inset:0;z-index:10050;background:#081621cc;display:flex;align-items:center;justify-content:center;padding:20px}.rx-print-dialog{width:min(1400px,100%);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;background:#fff;color:#19313e;border-radius:12px;box-shadow:0 18px 80px #0005;outline:none;overflow:hidden}.rx-print-header{display:flex;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid #dce4e9}.rx-print-header h2{margin:0;font-size:20px}.rx-print-header p{margin:4px 0 0;color:#647582;overflow-wrap:anywhere}.rx-print-dialog button{border:1px solid #c2d0d9;background:#fff;color:#19313e;border-radius:7px;padding:9px 12px;cursor:pointer;font:inherit}.rx-print-dialog button:disabled{opacity:.48;cursor:not-allowed}.rx-print-dialog .rx-print-primary{background:#205b7a;color:#fff;border-color:#205b7a}.rx-print-content{display:grid;grid-template-columns:290px 1fr;min-height:320px;overflow:auto;flex:1}.rx-print-options{padding:20px;display:flex;flex-direction:column;gap:13px;border-right:1px solid #dce4e9;overflow:auto}.rx-print-options label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600}.rx-print-options select,.rx-print-options input[type=number]{font:inherit;color:inherit;min-width:0;max-width:100%;padding:8px;border:1px solid #c2d0d9;border-radius:5px;background:#fff}.rx-print-options .rx-print-check{flex-direction:row;align-items:flex-start;gap:8px;font-weight:400;line-height:1.4}.rx-print-check input{margin-top:3px}.rx-print-hint{font-size:12px;line-height:1.45;color:#647582;margin:0}.rx-print-paper{background:#f1f5f7;border-radius:7px;padding:12px;display:flex;flex-direction:column;gap:5px;font-size:13px}.rx-print-paper span{font-size:12px;overflow-wrap:anywhere}.rx-print-preview{background:#dee5eb;min-width:0;min-height:480px;display:flex;align-items:center;justify-content:center;padding:18px;overflow:auto}.rx-print-page{display:block;max-width:100%;width:100%;height:auto;max-height:calc(100dvh - 240px);object-fit:contain;background:#fff;box-shadow:0 2px 12px #20334422}.rx-print-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:35px;color:#4e6576}.rx-print-empty span{font-size:13px}.rx-print-actions{padding:14px 20px;border-top:1px solid #dce4e9;display:flex;gap:10px;justify-content:flex-end}.rx-print-error{margin:10px 20px;padding:10px 14px;background:#fff0ed;border:1px solid #e9b5ab;color:#8d3325;border-radius:6px;font-size:13px}.rx-print-status{margin:8px 20px;padding:10px 14px;background:#eef5fa;color:#244c66;border-radius:6px;font-size:13px;display:flex;flex-direction:column;gap:4px}.rx-print-status-unknown{background:#fff5d7;color:#705214}.rx-print-status-submitted{background:#eaf6ed;color:#2d5c39}.rx-print-repeat{margin:0 20px 10px;display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:12px}.rx-print-repeat label{display:flex;gap:8px;align-items:center}.rx-print-dialog :focus-visible{outline:3px solid #49a7d4;outline-offset:2px}@media(max-width:850px){.rx-print-backdrop{padding:8px}.rx-print-dialog{max-height:calc(100dvh - 16px)}.rx-print-content{grid-template-columns:1fr}.rx-print-options{border-right:0;display:grid;grid-template-columns:1fr 1fr}.rx-print-options .rx-print-hint,.rx-print-paper{grid-column:1 / -1}.rx-print-preview{min-height:300px}.rx-print-page{max-height:70dvh}.rx-print-actions{flex-wrap:wrap}.rx-print-repeat{align-items:flex-start;flex-direction:column}}
.radiology-settings-workspace .account-settings-content { overflow:auto; padding:0; overscroll-behavior:contain; }
.rx-settings { color:#273544; min-width:0; padding:28px 30px; }
.rx-settings h1,.rx-settings h2,.rx-settings h3,.rx-settings h4,.rx-viewer h2,.rx-viewer h3 { margin:0; }
.rx-settings h1 { font-size:25px; font-weight:650; margin:12px 0 6px; }
.rx-settings h3 { font-size:17px; } .rx-settings h4 { font-size:14px; margin:18px 0 10px; }
.rx-settings p { line-height:1.55; } .rx-settings small { line-height:1.5; }
.rx-settings button,.rx-settings input,.rx-settings select,.rx-settings textarea,.rx-confirm button,.rx-viewer button,.rx-viewer select { font:inherit; }
.rx-settings button,.rx-confirm button,.rx-viewer button { cursor:pointer; }
.rx-settings button:disabled,.rx-confirm button:disabled,.rx-viewer button:disabled { cursor:default; opacity:.55; }
.rx-settings button:focus-visible,.rx-settings a:focus-visible,.rx-settings input:focus-visible,.rx-settings select:focus-visible,.rx-settings textarea:focus-visible,.rx-confirm button:focus-visible,.rx-viewer button:focus-visible,.rx-viewer a:focus-visible,.rx-viewer select:focus-visible,.rx-image-stage:focus-visible { outline:3px solid #63abf5; outline-offset:2px; }
.rx-settings button:not(.dentalome-primary-button),.rx-confirm button:not(.dentalome-primary-button) { background:white; border:1px solid #dce4eb; border-radius:6px; color:inherit; min-height:40px; padding:8px 12px; }
.rx-settings .dentalome-primary-button,.rx-confirm .dentalome-primary-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 16px; border:1px solid #227bbf; border-radius:6px; background:#267fc4; color:#fff; font-size:14px; font-weight:600; line-height:1.4; box-shadow:none; }
.rx-settings .dentalome-primary-button:hover:not(:disabled),.rx-confirm .dentalome-primary-button:hover:not(:disabled) { background:#196daa; border-color:#196daa; }
.rx-settings .dentalome-primary-button:disabled,.rx-confirm .dentalome-primary-button:disabled { background:#d6e4ef; border-color:#c6d8e7; color:#637e94; opacity:1; cursor:not-allowed; }
.rx-settings .dentalome-primary-button:focus-visible,.rx-confirm .dentalome-primary-button:focus-visible { outline:3px solid #78b8ed; outline-offset:3px; }
.rx-settings a { color:#2176bb; } .rx-settings label { display:flex; flex-direction:column; gap:7px; font-size:13px; font-weight:600; }
.rx-settings input:not([type=checkbox]),.rx-settings select,.rx-settings textarea { border:1px solid #d3dfe9; border-radius:6px; background:white; color:#263746; min-height:40px; padding:9px 10px; width:100%; font-weight:400; }
.rx-settings textarea { resize:vertical; }
.rx-settings-heading,.rx-detail-heading,.rx-device header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.rx-settings-heading nav { color:#6a7c8c; display:flex; align-items:center; gap:5px; font-size:12px; }
.rx-settings-heading p { color:#667989; margin:0; font-size:14px; }
.rx-settings-heading>button { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.rx-tabs { display:flex; gap:20px; margin:26px 0 18px; border-bottom:1px solid #e0e7ed; }
.rx-settings .rx-tabs button { display:flex; align-items:center; gap:8px; background:none; border:none; border-bottom:3px solid transparent; border-radius:0; padding:11px 2px; color:#596d7d; }
.rx-settings .rx-tabs button[aria-selected=true] { color:#1d73bb; border-bottom-color:#2884cd; font-weight:650; }
.rx-tabs button span { background:#eaf3fc; border-radius:20px; padding:2px 7px; font-size:11px; }
.rx-help,.rx-refresh-time { color:#677b8a; font-size:13px; }
.rx-list-controls { display:grid; grid-template-columns:230px minmax(180px,1fr); gap:14px; margin:18px 0; }
.rx-search-field { display:flex; align-items:center; gap:7px; background:white; border:1px solid #d3dfe9; border-radius:6px; padding-left:10px; }
.rx-settings .rx-search-field input { border:0; min-width:0; background:transparent; }
.rx-search-field svg { color:#7a8c9b; flex-shrink:0; }
.rx-matching-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; align-items:start; }
.rx-matching-layout.with-detail { grid-template-columns:minmax(250px,.85fr) minmax(340px,1.15fr); }
.rx-source-list { min-width:0; border:1px solid #e0e7ed; border-radius:8px; overflow:hidden; }
.rx-settings .rx-source-row { display:flex; width:100%; text-align:left; align-items:center; gap:10px; padding:16px 14px; border:0; border-bottom:1px solid #e6edf2; border-radius:0; }
.rx-source-row:last-child { border-bottom:none; } .rx-source-row>div { flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; }
.rx-source-row strong { font-size:14px; } .rx-source-row span:not(.rx-badge),.rx-source-row small { font-size:12px; color:#627788; }
.rx-settings .rx-source-row.selected { background:#edf6fe; box-shadow:inset 3px 0 #2c8cd8; }
.rx-badge { white-space:nowrap; border-radius:20px; font-size:11px; font-weight:600; padding:5px 8px; background:#edf1f4; color:#566b7d; }
.rx-badge.pending { background:#fff5dc; color:#83590a; } .rx-badge.conflict { background:#fff0e9; color:#a44724; } .rx-badge.matched { background:#e8f5ee; color:#21714e; }
.rx-settings .rx-conflict-shortcut { display:flex; gap:8px; align-items:center; color:#934d18; background:#fff7eb; border-color:#f0dcbc; margin:14px 0; }
.rx-source-detail { border:1px solid #dce6ee; border-radius:8px; padding:18px; min-width:0; background:#fff; }
.rx-source-identity { background:#f7fafc; border-radius:6px; padding:14px; margin:15px 0; }
.rx-source-identity h4 { font-size:17px; margin:12px 0 5px; } .rx-source-identity p { margin:4px 0; font-size:13px; } .rx-source-identity small { display:block; overflow-wrap:anywhere; color:#657a8a; }
.rx-reason { display:flex; gap:9px; color:#815520; padding:12px; background:#fff7e9; font-size:13px; border-radius:6px; }.rx-reason svg { flex-shrink:0; margin-top:2px; }
.rx-identity { display:flex; flex-direction:column; gap:4px; text-align:left; }.rx-identity strong { color:#273d50; font-size:14px; } .rx-identity>span { color:#687d8d; font-size:12px; font-weight:400; }
.rx-existing-mapping { display:flex; flex-direction:column; gap:8px; padding:12px; border:1px solid #dcebe3; border-radius:6px; background:#f7fcf9; }
.rx-existing-mapping>small { color:#477461; }
.rx-exams { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; max-height:380px; overflow:auto; }
.rx-exams article { display:flex; flex-direction:column; gap:5px; border:1px solid #e0e7ee; border-radius:6px; overflow:hidden; padding:8px; font-size:12px; }
.rx-exams img { width:100%; height:94px; object-fit:contain; background:#15212a; border-radius:4px; }
.rx-exams a { display:flex; align-items:center; gap:4px; } .rx-other-identity { background:#fff8ef; } .rx-preview-missing { padding:20px 0; text-align:center; color:#6e7e8b; }
.rx-matching-form { margin-top:20px; border-top:1px solid #e5ebf0; }.rx-matching-form>label { margin:16px 0; }
.rx-matching-form>.dentalome-primary-button { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; }
.rx-candidates { margin-bottom:16px; }.rx-candidates p { font-size:12px; color:#687b8a; }
.rx-candidates button { display:flex; flex-direction:column; gap:7px; width:100%; margin:6px 0; text-align:left; }.rx-candidates button small { color:#587386; font-size:11px; }
.rx-candidates button[aria-pressed=true],.rx-search-results button[aria-pressed=true] { background:#eff7fd; border-color:#6ea8d4; }
.rx-search-results { border:1px solid #dce6ed; max-height:260px; overflow:auto; border-radius:6px; margin:8px 0; }
.rx-settings .rx-search-results button { display:flex; justify-content:space-between; width:100%; border:0; border-bottom:1px solid #e4ecf2; border-radius:0; gap:12px; align-items:center; }
.rx-selected-patient { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; margin-top:10px; border:1px solid #82b6dc; border-radius:6px; background:#f0f8fe; }
.rx-settings .rx-selected-patient button { min-height:32px; padding:6px; }
.rx-settings .rx-checkbox { flex-direction:row; align-items:flex-start; gap:10px; font-weight:400; line-height:1.6; font-size:13px; }.rx-checkbox input { margin:3px 0 0; width:17px; height:17px; flex-shrink:0; }
.rx-notice { padding:12px 14px; border-radius:6px; margin:14px 0; font-size:13px; line-height:1.6; }.rx-notice.error,.rx-inline-error { color:#9b392c; background:#fff2ee; }.rx-notice.success { background:#edf8f1; color:#276e49; }.rx-notice button { margin:8px 0 0 8px; }
.rx-inline-error { padding:10px; border-radius:5px; }.rx-settings .rx-history-toggle { width:100%; margin-top:18px; font-size:12px; color:#5d7283; }
.rx-audit { margin-top:12px; padding:14px; background:#f7f9fb; font-size:12px; color:#526b7e; }.rx-audit>div+div { border-top:1px solid #e1e7ed; padding-top:10px; margin-top:10px; }.rx-audit p { margin:7px 0; }.rx-audit-change { display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.rx-empty { padding:26px 18px; text-align:center; color:#687e8f; }.rx-empty strong { color:#3d566a; }.rx-empty p { font-size:13px; }.rx-readonly { font-size:13px; color:#697f8f; padding:15px 0; }
.rx-actions { display:flex; gap:8px; align-items:center; justify-content:flex-end; }.rx-pagination { display:flex; align-items:center; gap:10px; justify-content:center; padding:14px; font-size:12px; }
.rx-legacy { margin-top:30px; padding-top:24px; border-top:1px solid #dce5ec; }.rx-legacy>p { color:#6a7e8d; font-size:13px; }.rx-legacy-row { display:flex; justify-content:space-between; gap:16px; align-items:center; padding:14px 0; border-bottom:1px solid #e4ebf1; font-size:13px; }.rx-legacy-row>div { display:flex; flex-direction:column; gap:5px; }.rx-legacy-row span,.rx-legacy-row small { color:#677c8d; }.rx-legacy-row button { flex-shrink:0; }.rx-legacy-editor { max-width:600px; margin:20px 0; padding:18px; background:#f7fafc; border-radius:8px; }.rx-legacy-editor .rx-actions { margin-top:16px; }.rx-confirm-legacy { padding:12px; background:#eaf4fb; }
.rx-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:20px 0; }.rx-stat-grid>div { border:1px solid #dfe7ee; border-radius:7px; padding:16px; display:flex; flex-direction:column; gap:8px; }.rx-stat-grid strong { font-size:26px; font-weight:600; color:#2678b7; }.rx-stat-grid span { font-size:12px; color:#607688; }
.rx-device { border:1px solid #dce5ec; border-radius:8px; padding:20px; margin:20px 0; }.rx-device header small { display:block; color:#708594; margin-top:5px; }.rx-device dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; font-size:13px; }.rx-device dt { color:#6c8090; margin-bottom:5px; }.rx-device dd { margin:0; }.rx-device-progress { display:flex; flex-direction:column; gap:6px; margin:20px 0 12px; font-size:13px; }.rx-device-progress span { font-size:12px; color:#62798c; }
.rx-table-scroll { overflow:auto; }.rx-device table { width:100%; border-collapse:collapse; font-size:12px; }.rx-device th,.rx-device td { border-bottom:1px solid #e0e8ef; padding:10px; text-align:left; }.rx-device th { color:#697f8f; font-weight:500; }.rx-sync-errors>div { border-left:3px solid #deb071; padding:10px 14px; margin:12px 0; background:#fffaf3; font-size:12px; }.rx-sync-errors small { overflow-wrap:anywhere; }.rx-archive-counts { padding:16px 0; }.rx-archive-counts p { display:flex; align-items:center; justify-content:space-between; font-size:13px; }
.rx-refresh-time { border-top:1px solid #e5ebf0; padding-top:16px; margin-top:24px; font-size:11px; }
.rx-confirm-backdrop { position:fixed; inset:0; background:#12233770; z-index:1300; display:flex; align-items:center; justify-content:center; padding:20px; }.rx-confirm { background:white; border-radius:12px; width:min(700px,100%); max-height:90dvh; overflow:auto; padding:26px; color:#293e50; box-shadow:0 20px 80px #0f243c35; }.rx-confirm h2 { margin:0 0 14px; font-size:21px; }.rx-confirm p { line-height:1.6; font-size:14px; }.rx-confirm-identities { display:grid; grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr); align-items:center; gap:14px; margin:20px 0; }.rx-confirm-identities>div { background:#f3f7fa; border-radius:7px; padding:14px; display:flex; flex-direction:column; gap:8px; overflow-wrap:anywhere; }.rx-confirm-identities small,.rx-confirm-identities>div>span { color:#677e8e; font-size:12px; }.rx-confirm .rx-actions { margin-top:22px; flex-wrap:wrap; }.rx-confirm .dentalome-primary-button { display:flex; gap:8px; align-items:center; }
.rx-settings-link { padding:12px 0; font-size:13px; }
.rx-viewer-backdrop { position:fixed; inset:0; z-index:1250; background:#10202bdd; display:flex; align-items:center; justify-content:center; padding:18px; }.rx-viewer { display:flex; flex-direction:column; width:min(1600px,100%); height:calc(100dvh - 36px); background:#f7f9fc; border-radius:10px; overflow:hidden; box-shadow:0 18px 70px #0005; color:#273e50; }.rx-viewer:fullscreen { width:100vw; height:100dvh; border-radius:0; }.rx-viewer>header { padding:16px 20px; background:#fff; border-bottom:1px solid #dbe4ec; display:flex; align-items:center; justify-content:space-between; gap:16px; }.rx-viewer h2 { font-size:19px; }.rx-viewer h2 small { font-size:12px; font-weight:400; margin-left:12px; color:#577084; }.rx-viewer header p { margin:6px 0 0; font-size:12px; color:#6a8090; }.rx-viewer button,.rx-viewer .rx-image-tools a { min-height:40px; border:1px solid #d4e0e8; border-radius:5px; display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:8px 10px; background:#fff; color:#2e536c; text-decoration:none; font-size:13px; }.rx-viewer .rx-actions { flex-shrink:0; }.rx-viewer-selectors { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding:12px 20px; }.rx-viewer-selectors label { display:flex; align-items:center; gap:10px; font-size:12px; color:#5e788a; }.rx-viewer select { min-height:40px; border:1px solid #d9e3eb; border-radius:5px; color:#304e64; background:white; min-width:0; flex:1; padding:7px; }
.rx-panes { display:grid; grid-template-columns:minmax(0,1fr); flex:1; min-height:0; gap:12px; padding:0 16px 12px; }.rx-panes.comparing { grid-template-columns:repeat(2,minmax(0,1fr)); }.rx-image-pane { background:#15242f; border-radius:7px; overflow:hidden; display:flex; flex-direction:column; min-height:0; }.rx-pane-title { display:flex; justify-content:space-between; gap:10px; align-items:center; padding:12px 14px; color:#e3ebf1; font-size:13px; }.rx-pane-title span { color:#a7bdcd; font-size:11px; }.rx-image-tools { display:flex; align-items:center; gap:7px; padding:0 12px 10px; }.rx-image-tools output { color:#c8d9e6; font-size:12px; width:48px; text-align:center; }.rx-viewer .rx-image-tools button,.rx-viewer .rx-image-tools a { border-color:#354e60; background:#203543; color:#dbe8f0; }.rx-viewer .rx-image-tools a { margin-left:auto; }.rx-image-stage { flex:1; min-height:120px; position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center; touch-action:none; cursor:grab; background:#101a22; }.rx-image-stage:active { cursor:grabbing; }.rx-image-stage img { max-width:100%; max-height:100%; width:100%; height:100%; object-fit:contain; user-select:none; pointer-events:none; transform-origin:center; }.rx-stage-message { position:absolute; inset:0; padding:18px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#bfd1df; text-align:center; font-size:13px; }.rx-pane-caption { margin:0; padding:9px 12px; color:#9bb1c0; font-size:10px; line-height:1.5; }.rx-viewer-help { padding:5px 16px 12px; text-align:center; color:#6a8190; font-size:11px; }.rx-viewer>.rx-audit { max-height:180px; overflow:auto; margin:0 16px 10px; flex-shrink:0; }
@media (max-width:1200px) { .rx-settings { padding:22px 18px; }.rx-matching-layout.with-detail { grid-template-columns:minmax(0,1fr); }.rx-source-list { max-height:440px; overflow:auto; }.rx-source-detail { border-top:3px solid #75aed7; }.rx-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:850px) { .rx-settings-heading { align-items:flex-start; }.rx-settings-heading>button { font-size:12px; }.rx-list-controls { grid-template-columns:minmax(0,1fr); }.rx-viewer-backdrop { padding:0; }.rx-viewer { height:100dvh; border-radius:0; }.rx-viewer header { padding:12px; }.rx-viewer .rx-actions button { min-width:44px; min-height:44px; }.rx-viewer .rx-actions button:first-child { font-size:0; gap:0; }.rx-viewer h2 { font-size:16px; }.rx-viewer h2 small { display:block; margin:5px 0 0; }.rx-viewer-selectors { padding:10px 12px; gap:10px; }.rx-viewer-selectors label { flex-direction:column; align-items:stretch; gap:5px; }.rx-panes.comparing { grid-template-columns:minmax(0,1fr); grid-template-rows:repeat(2,minmax(0,1fr)); }.rx-image-tools { padding-bottom:5px; }.rx-pane-title { padding:7px 12px; }.rx-pane-caption { display:none; }.rx-panes { padding:0 8px 8px; gap:8px; }.rx-viewer-help { font-size:10px; }.rx-viewer .rx-image-tools button { min-height:40px; min-width:42px; }.rx-legacy-row { align-items:flex-start; flex-direction:column; }.rx-device dl { grid-template-columns:minmax(0,1fr); } }
@media (max-width:540px) { .rx-settings { padding:18px 12px; }.rx-settings-heading { flex-wrap:wrap; }.rx-tabs { gap:14px; }.rx-settings .rx-tabs button { font-size:12px; }.rx-source-row { flex-wrap:wrap; }.rx-source-row>div { flex-basis:100%; }.rx-confirm-identities { grid-template-columns:minmax(0,1fr); }.rx-confirm-identities>svg { transform:rotate(90deg); justify-self:center; }.rx-confirm { padding:18px; }.rx-confirm .rx-actions { justify-content:stretch; }.rx-confirm .rx-actions button { width:100%; justify-content:center; }.rx-viewer-selectors { grid-template-columns:minmax(0,1fr); gap:6px; }.rx-viewer header p { font-size:10px; }.rx-image-tools { gap:4px; }.rx-viewer .rx-image-tools a { font-size:11px; }.rx-pane-title span { display:none; } }
@media (prefers-reduced-motion:reduce) { .rx-settings *, .rx-viewer *, .rx-confirm * { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }
@media (max-width:1100px) {
  .dentalome-settings-workspace.radiology-settings-workspace .dentalome-settings-card { display:flex; flex-direction:column; gap:0; padding:0; overflow:hidden; }
  .dentalome-settings-workspace.radiology-settings-workspace .account-settings-nav { width:100%; height:auto; flex:0 0 auto; border-right:0; border-bottom:1px solid #e1e8ef; padding:12px 16px; }
  .radiology-settings-workspace .account-settings-title { display:none; }
  .dentalome-settings-workspace.radiology-settings-workspace .account-settings-nav nav { flex-direction:row; overflow:auto; gap:5px; margin:0; }
  .dentalome-settings-workspace.radiology-settings-workspace .account-settings-nav nav>a { width:auto; min-width:max-content; min-height:42px; padding:8px 12px; }
  .dentalome-settings-workspace.radiology-settings-workspace .account-settings-content { width:100%; height:auto; padding:0; overflow:auto; flex:1 1 auto; }
}
/* A dedicated viewport workspace. Keep these rules independent of settings dialogs. */
.rxv-workspace { --rxv-bg:#171a1e; --rxv-panel:#20242a; --rxv-border:#343a43; --rxv-muted:#929da9; --rxv-text:#e4e9ee; --rxv-accent:#74a9ff; position:fixed; inset:0; width:100vw; height:100dvh; z-index:1500; display:flex; flex-direction:column; overflow:hidden; background:var(--rxv-bg); color:var(--rxv-text); font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:13px; line-height:1.45; color-scheme:dark; isolation:isolate; }
.rxv-workspace * { box-sizing:border-box; }
.rxv-workspace h2,.rxv-workspace h3,.rxv-workspace p { margin:0; }
.rxv-workspace button,.rxv-workspace input,.rxv-workspace select,.rxv-workspace textarea { font:inherit; }
.rxv-workspace button,.rxv-workspace .rxv-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:34px; border:1px solid transparent; border-radius:5px; padding:7px 10px; background:transparent; color:#c7cfd8; cursor:pointer; text-decoration:none; white-space:nowrap; transition:background .12s,border-color .12s,color .12s; }
.rxv-workspace button:hover:not(:disabled),.rxv-workspace .rxv-button:hover { background:#313740; color:#f3f6f8; }
.rxv-workspace button:disabled { opacity:.35; cursor:default; }
.rxv-workspace button:focus-visible,.rxv-workspace a:focus-visible,.rxv-workspace input:focus-visible,.rxv-workspace select:focus-visible,.rxv-workspace textarea:focus-visible,.rxv-stage:focus-visible { outline:2px solid #74a9ff; outline-offset:2px; }
.rxv-workspace button[aria-pressed=true],.rxv-workspace button.is-on { background:#74a9ff1a; color:#9ac1ff; border-color:#74a9ff4a; }
.rxv-workspace svg { flex-shrink:0; }
.rxv-header { flex-shrink:0; display:flex; align-items:center; gap:18px; min-height:74px; padding:12px 22px; background:#23272d; border-bottom:1px solid #343a43; }
.rxv-workspace .rxv-back { padding-left:0; color:#e3e9ee; font-size:12px; font-weight:550; }
.rxv-header-rule { width:1px; height:32px; background:#3b414a; }
.rxv-patient { min-width:130px; margin-right:auto; }
.rxv-patient h2 { font-size:15px; font-weight:620; line-height:1.5; letter-spacing:.015em; }
.rxv-teeth-label { padding:5px 12px; color:#d5e5e8; background:#1b2936; font-size:12px; line-height:1.4; overflow-wrap:anywhere; flex-shrink:0; }
.rxv-patient p { font-size:11px; color:#9ea9b5; margin-top:3px; }
.rxv-header-actions { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.rxv-save-status { display:flex; align-items:center; gap:6px; font-size:10px; color:#9eadb9; margin-right:4px; }
.rxv-save-status>svg { color:#87aee8; }
.rxv-workspace .rxv-print-button { border-color:#425a7a; color:#c2d9ff; background:#74a9ff0b; }
.rxv-commandbar { display:flex; justify-content:space-between; gap:12px; flex-shrink:0; min-height:57px; padding:9px 19px; border-bottom:1px solid #30363d; background:#1e2227; }
.rxv-drawing-tools,.rxv-workspace-tools { display:flex; align-items:center; gap:3px; }
.rxv-workspace .rxv-tool { min-width:37px; }
.rxv-tool>span { display:none; font-size:11px; }
.rxv-tool[aria-pressed=true]>span { display:inline; }
.rxv-divider { height:20px; width:1px; background:#363d45; margin:0 9px; display:inline-block; }
.rxv-count-badge { display:grid; place-items:center; width:17px; height:17px; border-radius:4px; background:#74a9ff2b; font-size:10px; }
.rxv-workspace-tools { font-size:11px; }
.rxv-main { display:flex; flex:1; min-height:0; min-width:0; position:relative; }
.rxv-panes { display:grid; grid-template-columns:minmax(0,1fr); flex:1; min-width:0; min-height:0; padding:13px 16px 11px; gap:12px; }
.rxv-panes.comparing { grid-template-columns:repeat(2,minmax(0,1fr)); }
.rxv-pane { display:flex; flex-direction:column; min-width:0; min-height:0; background:#111418; border:1px solid #373e46; border-radius:6px; overflow:hidden; }
.rxv-pane.is-active { border-color:#5583c6; box-shadow:0 0 0 1px #5583c618; }
.rxv-pane-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:43px; padding:7px 11px; background:#20242a; border-bottom:1px solid #30363d; font-size:11px; flex-wrap:wrap; flex-shrink:0; }
.rxv-pane-heading>div:first-child { display:flex; align-items:center; gap:8px; }
.rxv-pane-heading strong { font-weight:500; color:#e0e6eb; }
.rxv-pane-heading>div:first-child>span:last-child { color:#8e9ba7; font-size:10px; }
.rxv-live-dot { width:5px; height:5px; border-radius:50%; background:#657180; flex-shrink:0; }
.rxv-pane.is-active .rxv-live-dot { background:#80b1ff; box-shadow:0 0 6px #80b1ff35; }
.rxv-segmented { display:flex; align-items:center; gap:2px; background:#15191e; padding:2px; border:1px solid #323942; border-radius:5px; }
.rxv-workspace .rxv-segmented button { min-height:25px; padding:3px 8px; font-size:10px; border-radius:3px; color:#8f9aa6; }
.rxv-workspace .rxv-segmented button[aria-pressed=true] { background:#293b54; color:#c5d9f8; border-color:#47648b; }
.rxv-stage { position:relative; flex:1; min-width:0; min-height:100px; overflow:hidden; touch-action:none; user-select:none; background:#101215; cursor:grab; }
.rxv-stage.tool-pan:active { cursor:grabbing; }
.rxv-stage.tool-select { cursor:default; }
.rxv-stage.tool-arrow,.rxv-stage.tool-freehand,.rxv-stage.tool-distance,.rxv-stage.tool-angle,.rxv-stage.tool-rectangle { cursor:crosshair; }
.rxv-stage.tool-text { cursor:text; }
.rxv-image-transform { position:absolute; top:50%; left:50%; transform-origin:center; will-change:transform; }
.rxv-image-canvas { position:absolute; inset:0; display:block; width:100%; height:100%; pointer-events:none; }
.rxv-overlays { position:absolute; inset:0; overflow:visible; }
.rxv-annotation { pointer-events:none; }
.rxv-annotation path,.rxv-annotation rect,.rxv-annotation-text { pointer-events:visiblePainted; }
.rxv-annotation .rxv-hit { stroke:transparent; fill:none; pointer-events:stroke; }
.rxv-annotation circle { pointer-events:all; cursor:move; }
.rxv-stage.tool-select .rxv-annotation { cursor:move; }
.rxv-stage:not(.tool-select) .rxv-annotation * { pointer-events:none; }
.rxv-stage-message { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:15px; text-align:center; padding:28px; color:#9daab7; z-index:2; }
.rxv-stage-message p { max-width:420px; line-height:1.6; }
.rxv-stage-message strong { font-weight:450; font-size:12px; }
.rxv-workspace .rxv-stage-message button { background:#2b333b; border-color:#4c5c68; }
.rxv-stage-meta { position:absolute; left:14px; top:13px; display:flex; flex-direction:column; gap:4px; color:#8b979e; font-size:10px; letter-spacing:.015em; pointer-events:none; text-shadow:0 1px 3px #000; }
.rxv-tool-hint { position:absolute; bottom:11px; left:12px; right:12px; text-align:center; font-size:10px; color:#8c99a4; pointer-events:none; text-shadow:0 1px 3px #000; }
.rxv-pane-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-shrink:0; min-height:41px; padding:3px 9px; background:#1b2025; border-top:1px solid #2b323a; }
.rxv-pane-toolbar>div { display:flex; align-items:center; gap:3px; }
.rxv-pane-toolbar output { display:inline-block; min-width:48px; text-align:center; color:#bcc8d1; font-size:11px; font-variant-numeric:tabular-nums; }
.rxv-workspace .rxv-pane-toolbar button { min-height:29px; padding:5px 7px; font-size:10px; }
.rxv-pane-toolbar .rxv-divider { margin:0 5px; height:15px; }
.rxv-source-note { color:#81909c; font-size:9px; white-space:nowrap; }
.rxv-inspector { width:288px; flex-shrink:0; display:flex; flex-direction:column; min-height:0; background:#23282e; border-left:1px solid #363d46; }
.rxv-inspector>header { display:flex; justify-content:space-between; align-items:center; padding:18px 18px 13px; }
.rxv-inspector>header>div { display:flex; flex-direction:column; gap:5px; }
.rxv-eyebrow { font-size:9px; letter-spacing:.13em; font-weight:600; color:#8d9ba8; }
.rxv-inspector>header strong { font-size:15px; font-weight:500; color:#e2e9ee; }
.rxv-inspector-tabs { display:flex; margin:0 15px; border-bottom:1px solid #3b424b; }
.rxv-workspace .rxv-inspector-tabs button { flex:1; border:0; border-bottom:2px solid transparent; border-radius:0; padding:9px 1px 11px; min-height:40px; gap:5px; font-size:10px; color:#9ca7b2; }
.rxv-workspace .rxv-inspector-tabs button[aria-selected=true] { color:#a7c9ff; border-bottom-color:#74a9ff; }
.rxv-inspector-tabs svg { width:14px; }
.rxv-inspector-scroll { flex:1; overflow:auto; padding:23px 18px; scrollbar-width:thin; scrollbar-color:#505a64 #23282e; }
.rxv-section-heading { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-bottom:10px; }
.rxv-workspace h3 { font-size:12px; font-weight:550; color:#dfe6eb; }
.rxv-section-heading h3>span { color:#81909e; font-weight:400; margin-left:5px; }
.rxv-workspace .rxv-text-button { padding:2px; min-height:23px; font-size:9px; color:#a6b3bc; gap:4px; }
.rxv-explainer { color:#909da9; font-size:10px; line-height:1.65; margin:4px 0 18px!important; }
.rxv-adjustment { margin:22px 0 25px; }
.rxv-adjustment-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:13px; }
.rxv-adjustment label { font-size:11px; color:#c5cfd8; margin:0; }
.rxv-adjustment-values { display:flex; align-items:center; gap:4px; }
.rxv-workspace .rxv-adjustment-reset { min-height:27px; min-width:25px; padding:4px; color:#a7c9ff; }
.rxv-workspace input[type=number] { border:1px solid #414b56; border-radius:4px; color:#d1dce4; background:#1b2026; padding:4px 3px 4px 7px; width:59px; font-size:11px; min-height:26px; font-variant-numeric:tabular-nums; }
.rxv-workspace input[type=range] { width:100%; height:4px; margin:0; padding:0; appearance:none; -webkit-appearance:none; background:#4a5560; border:0; border-radius:8px; cursor:pointer; accent-color:#8cb8ff; }
.rxv-workspace input[type=range]::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; background:#bed7ff; width:13px; height:13px; border:2px solid #253a59; border-radius:50%; box-shadow:0 0 0 1px #91baff; }
.rxv-workspace input[type=range]::-moz-range-thumb { background:#bed7ff; width:10px; height:10px; border:2px solid #253a59; border-radius:50%; }
.rxv-workspace input:disabled,.rxv-workspace textarea:disabled,.rxv-workspace select:disabled { opacity:.4; cursor:default; }
.rxv-range-limits { display:flex; justify-content:space-between; color:#798894; font-size:9px; margin-top:7px; }
.rxv-control-row { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:53px; padding:10px 0; border-top:1px solid #343d46; font-size:11px; color:#c1ccd5; }
.rxv-workspace .rxv-switch { min-height:19px; width:34px; border-radius:20px; padding:2px; background:#4c5864; border:0; justify-content:flex-start; }
.rxv-switch span { width:15px; height:15px; border-radius:50%; background:#bec9d1; }
.rxv-workspace .rxv-switch[aria-checked=true] { background:#4b82cf; justify-content:flex-end; }
.rxv-switch[aria-checked=true] span { background:#e0ecff; }
.rxv-rotation { display:flex; align-items:center; gap:3px; }
.rxv-rotation output { width:35px; text-align:center; font-size:11px; }
.rxv-workspace .rxv-rotation button { padding:5px; min-height:29px; }
.rxv-source-card { display:flex; flex-direction:column; gap:8px; margin-top:26px; padding:14px; border:1px solid #3c474f; background:#1c2429; border-radius:5px; }
.rxv-source-card strong { font-size:11px; font-weight:500; color:#bbcbd4; }
.rxv-source-card p { color:#82939f; font-size:10px; line-height:1.65; }
.rxv-inspector>footer { display:flex; align-items:center; gap:7px; color:#99acc5; padding:11px 18px; border-top:1px solid #343c45; font-size:9px; }
.rxv-save-dot { width:5px; height:5px; border-radius:50%; background:#8eb4ec; display:inline-block; flex-shrink:0; }
.rxv-save-dot.error { background:#e5a17c; }
.rxv-save-dot.saving { background:#e5c77c; }
.rxv-undo-tools { display:flex; gap:1px; }
.rxv-workspace .rxv-undo-tools button { padding:4px; min-height:25px; }
.rxv-empty-notes { display:flex; align-items:center; flex-direction:column; gap:11px; text-align:center; padding:20px 5px 25px; color:#7d909e; }
.rxv-empty-notes strong { font-size:12px; font-weight:500; color:#b4c0ca; }
.rxv-empty-notes p { font-size:10px; line-height:1.65; max-width:200px; }
.rxv-annotation-list { display:flex; flex-direction:column; gap:5px; }
.rxv-workspace .rxv-annotation-list button { width:100%; justify-content:flex-start; padding:10px 9px; border:1px solid #37434c; text-align:left; border-radius:5px; }
.rxv-annotation-list i { width:7px; height:7px; border-radius:50%; }
.rxv-annotation-list button>span { flex:1; overflow:hidden; font-size:11px; }
.rxv-annotation-list small { display:block; font-size:10px; color:#98abb7; overflow:hidden; text-overflow:ellipsis; max-width:190px; }
.rxv-annotation-editor { margin:20px 0; padding-top:15px; border-top:1px solid #3c4750; }
.rxv-workspace .rxv-danger-icon { color:#e0a38f; padding:4px; min-height:27px; }
.rxv-field { display:flex; flex-direction:column; gap:8px; color:#c0cdd6; font-size:11px; margin:12px 0; }
.rxv-field input,.rxv-field textarea,.rxv-workspace select { min-width:0; padding:8px 10px; border:1px solid #46535d; background:#1b2228; color:#dce7ef; border-radius:4px; outline-offset:2px; }
.rxv-field textarea { width:100%; resize:vertical; line-height:1.6; }
.rxv-workspace input[type=color] { padding:2px; border:1px solid #46535d; border-radius:5px; background:#1b2228; height:26px; width:37px; cursor:pointer; }
.rxv-control-row select { padding:4px 7px; font-size:11px; }
.rxv-calibration { border-top:1px solid #3c4750; padding-top:18px; margin-top:22px; color:#8e9eaa; font-size:10px; line-height:1.7; }
.rxv-calibration h3 { display:flex; gap:7px; align-items:center; margin-bottom:10px; }
.rxv-calibration>strong { font-size:11px; font-weight:450; color:#b6cdeb; }
.rxv-calibration>small { display:block; margin-top:10px; color:#9cadaf; font-size:10px; }
.rxv-workspace .rxv-calibration>button { font-size:10px; padding:5px 0; min-height:27px; }
.rxv-workspace .rxv-primary { background:#85b2f4; color:#14243b; border:1px solid #a8c9f8; font-size:11px; font-weight:550; }
.rxv-workspace .rxv-primary:hover:not(:disabled) { background:#acd0ff; color:#122039; }
.rxv-workspace .rxv-calibration .rxv-primary { width:100%; font-size:10px; }
.rxv-revision { display:flex; align-items:flex-start; gap:9px; background:#1c252a; border:1px solid #3b4a50; padding:13px 11px; border-radius:5px; margin:16px 0 20px; color:#a4bedf; }
.rxv-revision>div { display:flex; flex-direction:column; gap:6px; }
.rxv-revision strong { font-size:11px; font-weight:500; }
.rxv-revision span { font-size:10px; color:#93a7b1; }
.rxv-history-list { margin:0; padding:0 0 0 8px; list-style:none; }
.rxv-history-list li { display:flex; flex-direction:column; gap:5px; border-left:1px solid #45505c; padding:0 0 24px 18px; position:relative; }
.rxv-history-dot { width:7px; height:7px; background:#7e979f; position:absolute; top:5px; left:-4px; border:2px solid #23282e; border-radius:50%; box-sizing:content-box; }
.rxv-history-list strong { font-weight:450; font-size:11px; color:#bfcbd4; text-transform:capitalize; }
.rxv-history-list time { font-size:10px; color:#8e9fae; }
.rxv-history-list small { font-size:10px; color:#7e929f; }
.rxv-muted { color:#94a5b2; font-size:11px; display:flex; align-items:center; gap:8px; }
.rxv-error-text { color:#e9ae99; font-size:11px; line-height:1.6; }
.rxv-filmstrip { flex-shrink:0; background:#1b2025; border-top:1px solid #333b44; }
.rxv-filmstrip-heading { display:flex; align-items:center; gap:15px; padding:5px 18px 3px; min-height:32px; }
.rxv-workspace .rxv-filmstrip-heading>button { min-height:25px; font-size:10px; padding:2px 0; gap:8px; }
.rxv-filmstrip-heading>span { color:#788b98; font-size:9px; margin-left:auto; }
.rxv-filmstrip-heading>div { display:flex; gap:2px; }
.rxv-workspace .rxv-filmstrip-heading>div button { min-height:25px; padding:3px; }
.rxv-filmstrip-items { display:flex; align-items:stretch; gap:10px; padding:5px 18px 13px; overflow:auto; scrollbar-width:thin; scrollbar-color:#43525e #1b2025; }
.rxv-workspace .rxv-thumbnail { display:flex; flex-direction:column; gap:2px; align-items:stretch; flex:0 0 137px; padding:5px; background:#20262c; border:1px solid #36424d; border-radius:5px; white-space:normal; text-align:left; }
.rxv-workspace .rxv-thumbnail.is-current { background:#293d59; border-color:#80b1ff; box-shadow:inset 0 0 0 1px #80b1ff14; }
.rxv-workspace .rxv-thumbnail.is-comparison { border-color:#799bb6; }
.rxv-thumbnail>div { position:relative; width:100%; height:60px; background:#0d1114; border-radius:3px; margin-bottom:5px; overflow:hidden; }
.rxv-thumbnail img { width:100%; height:100%; object-fit:contain; display:block; }
.rxv-thumb-index { position:absolute; left:4px; top:4px; padding:1px 4px; background:#1b2839aa; border-radius:3px; font-size:8px; color:#c0cfdb; }
.rxv-thumb-comparison { position:absolute; right:3px; bottom:3px; padding:1px 4px; background:#2f4a62e8; border-radius:3px; color:#b9d7ec; font-size:8px; }
.rxv-thumbnail>strong { font-size:9px; color:#c3d3dc; font-weight:500; padding:0 2px; }
.rxv-thumbnail>span { color:#91a3af; font-size:8px; padding:0 2px 2px; }
.rxv-bottom-bar { display:flex; align-items:center; justify-content:space-between; flex-shrink:0; height:28px; padding:2px 20px; background:#20262d; border-top:1px solid #343c44; font-size:9px; color:#8699a7; }
.rxv-bottom-dot { color:#657f8c; padding:0 6px; }
.rxv-bottom-bar>div { display:flex; gap:7px; }
.rxv-workspace .rxv-bottom-bar button { font-size:9px; min-height:22px; padding:2px 5px; color:#97aab7; }
.rxv-compare-picker { position:absolute; z-index:5; top:127px; right:20px; width:min(425px,calc(100vw - 32px)); padding:18px; background:#2b333b; border:1px solid #596974; border-radius:7px; box-shadow:0 14px 40px #0008; }
.rxv-compare-picker>div { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:12px; }
.rxv-compare-picker strong { font-weight:500; }
.rxv-compare-picker label { display:flex; flex-direction:column; gap:8px; font-size:11px; color:#9fb2c0; margin-top:12px; }
.rxv-notice,.rxv-save-error { display:flex; align-items:center; justify-content:space-between; gap:15px; flex-shrink:0; padding:8px 20px; font-size:11px; background:#29384c; color:#c4d6ef; border-bottom:1px solid #465d7b; }
.rxv-save-error { background:#45332c; color:#f1c3ad; border-bottom-color:#6f4e3f; }
.rxv-notice button,.rxv-save-error button { flex-shrink:0; }
.rxv-guard-backdrop { position:absolute; inset:0; z-index:20; background:#091117ad; display:grid; place-items:center; padding:20px; backdrop-filter:blur(4px); }
.rxv-guard { width:min(600px,100%); padding:28px; border:1px solid #53616c; border-radius:9px; background:#263039; box-shadow:0 24px 90px #0008; }
.rxv-guard h2 { font-size:21px; font-weight:500; color:#e3edf3; margin:12px 0 15px; }
.rxv-guard p { font-size:12px; line-height:1.7; color:#aebfc9; margin:12px 0; }
.rxv-guard .rxv-error-text { color:#e2b19a; }
.rxv-guard-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:24px; }
.rxv-workspace .rxv-guard-actions button { font-size:11px; border-color:#53616b; }
.rxv-workspace .rxv-guard-actions .rxv-danger { color:#e8b99f; border-color:#80604d; }
@media (min-width:1500px) { .rxv-tool>span { display:inline; }.rxv-tool>span { font-size:10px; }.rxv-inspector { width:308px; }.rxv-inspector-scroll { padding:24px 22px; }.rxv-thumbnail>div { height:67px; }.rxv-workspace .rxv-thumbnail { flex-basis:149px; } }
@media (max-width:1200px) { .rxv-header { gap:12px; padding:11px 16px; }.rxv-save-status { display:none; }.rxv-header-actions .rxv-button>span { display:none; }.rxv-inspector { width:265px; }.rxv-workspace-tools>button>span:not(.rxv-count-badge) { display:none; }.rxv-pane-toolbar .rxv-source-note { display:none; }.rxv-panes.comparing .rxv-pane-heading { min-height:69px; gap:5px; }.rxv-panes.comparing .rxv-pane-heading>div { width:100%; }.rxv-panes.comparing .rxv-segmented { width:auto!important; }.rxv-pane-heading>div:first-child>span:last-child { display:none; }.rxv-commandbar { padding:8px 12px; }.rxv-tool[aria-pressed=true]>span { display:none; } }
@media (max-width:1000px) { .rxv-inspector { position:absolute; z-index:4; right:0; top:0; bottom:0; width:286px; box-shadow:-15px 0 50px #0006; }.rxv-header { min-height:68px; }.rxv-header .rxv-back { font-size:11px; }.rxv-header-rule { display:none; }.rxv-patient h2 { font-size:13px; }.rxv-patient p { font-size:10px; }.rxv-drawing-tools { gap:1px; }.rxv-commandbar { gap:4px; }.rxv-workspace .rxv-commandbar button { min-width:36px; padding:8px; }.rxv-divider { margin:0 5px; }.rxv-header-actions { gap:2px; }.rxv-header-actions .rxv-print-button span { display:none; }.rxv-panes { padding:10px; gap:9px; }.rxv-thumbnail>div { height:51px; }.rxv-workspace .rxv-thumbnail { flex-basis:127px; } }
@media (pointer:coarse) { .rxv-workspace button,.rxv-workspace .rxv-button { min-height:42px; }.rxv-workspace .rxv-commandbar button { min-height:42px; min-width:41px; }.rxv-workspace .rxv-pane-toolbar button { min-width:37px; min-height:37px; }.rxv-workspace .rxv-segmented button { min-height:32px; }.rxv-adjustment-heading { margin-bottom:18px; }.rxv-workspace .rxv-adjustment-reset { min-height:36px; min-width:34px; }.rxv-workspace input[type=range] { height:6px; }.rxv-workspace input[type=range]::-webkit-slider-thumb { width:20px; height:20px; }.rxv-workspace .rxv-inspector-tabs button { min-height:46px; }.rxv-workspace .rxv-switch { min-height:25px; width:42px; }.rxv-switch span { width:20px; height:20px; } }
@media (max-width:740px) { .rxv-header { padding:9px 11px; gap:8px; flex-wrap:wrap; min-height:80px; }.rxv-header .rxv-back { order:0; flex:1; justify-content:flex-start; min-height:30px; font-size:11px; }.rxv-patient { order:2; flex-basis:100%; display:flex; align-items:baseline; gap:9px; }.rxv-patient p { margin-top:0; }.rxv-patient h2 { font-size:12px; }.rxv-header-actions { order:1; }.rxv-header-actions button,.rxv-header-actions .rxv-button { padding:5px; min-height:32px; }.rxv-commandbar { min-height:54px; padding:5px 6px; overflow-x:auto; gap:10px; scrollbar-width:none; }.rxv-drawing-tools { gap:0; }.rxv-workspace .rxv-commandbar button { min-width:33px; padding:6px; min-height:40px; }.rxv-workspace-tools { gap:0; }.rxv-commandbar .rxv-divider { margin:0 3px; }.rxv-panes.comparing { grid-template-columns:minmax(0,1fr); grid-template-rows:repeat(2,minmax(0,1fr)); }.rxv-panes.comparing .rxv-pane-heading { min-height:34px; flex-wrap:nowrap; }.rxv-panes.comparing .rxv-pane-heading>div { width:auto; }.rxv-pane-heading { padding:5px 8px; font-size:10px; gap:5px; }.rxv-workspace .rxv-segmented button { font-size:9px; padding:3px 6px; min-height:25px; }.rxv-stage-meta { top:8px; left:8px; font-size:8px; }.rxv-tool-hint { display:none; }.rxv-panes { padding:6px; gap:6px; }.rxv-pane-toolbar { min-height:33px; padding:1px 4px; }.rxv-workspace .rxv-pane-toolbar button { padding:4px 5px; min-height:28px; min-width:29px; }.rxv-pane-toolbar output { min-width:44px; font-size:10px; }.rxv-pane-toolbar .rxv-divider { margin:0 3px; }.rxv-filmstrip-heading { padding:3px 11px 0; gap:9px; }.rxv-filmstrip-heading>span { font-size:8px; }.rxv-filmstrip-items { padding:3px 11px 8px; gap:7px; }.rxv-workspace .rxv-thumbnail { flex-basis:112px; padding:4px; }.rxv-thumbnail>div { height:42px; margin-bottom:3px; }.rxv-thumbnail>strong { font-size:8px; }.rxv-thumbnail>span { font-size:7px; }.rxv-inspector { width:min(306px,calc(100vw - 30px)); }.rxv-bottom-bar { height:24px; padding:2px 12px; font-size:8px; }.rxv-workspace .rxv-bottom-bar button { min-height:20px; }.rxv-compare-picker { top:132px; right:11px; }.rxv-guard { padding:22px; }.rxv-guard h2 { font-size:18px; }.rxv-notice,.rxv-save-error { padding:7px 10px; font-size:10px; }.rxv-filmstrip-heading>div button { min-height:24px!important; } }
@media (max-height:650px) { .rxv-filmstrip-items { padding-bottom:7px; }.rxv-thumbnail>div { height:40px; }.rxv-header { min-height:58px; padding-top:8px; padding-bottom:8px; }.rxv-commandbar { min-height:45px; padding-top:4px; padding-bottom:4px; }.rxv-inspector>header { padding-top:12px; padding-bottom:9px; }.rxv-inspector-scroll { padding-top:16px; }.rxv-stage-meta>span:nth-child(2) { display:none; } }
@media (prefers-reduced-motion:reduce) { .rxv-workspace * { transition:none!important; animation:none!important; scroll-behavior:auto!important; } }
.rxv-history-heading { margin:22px 0 16px!important; }
.rxv-history-list .rxv-text-button { align-self:flex-start; color:#a7c8f5; white-space:normal; text-align:left; }
.rxv-unavailable { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:18px; padding:35px; color:#adbdc7; border:1px solid #3c4a53; border-radius:6px; background:#1c242a; }
.rxv-unavailable h2 { font-size:19px; font-weight:500; color:#dae4e9; }
.rxv-unavailable p { max-width:540px; font-size:12px; line-height:1.7; }
.rxv-unavailable button { border-color:#576c77; }
.rxv-thumb-placeholder { display:none; position:absolute; inset:0; align-items:center; justify-content:center; padding:10px; color:#8ba0ae; font-size:9px; }
.rxv-thumbnail img[data-failed=true] { display:none; }
.rxv-thumbnail img[data-failed=true]~.rxv-thumb-placeholder { display:flex; }

.rxv-workspace .rxv-annotation-list button[aria-pressed=true] { background:#74a9ff1a; border-color:#74a9ff6b; color:#c2d9ff; }
/* Touch targets retain their size after every viewport-specific compact rule. */
@media (pointer:coarse) {
  .rxv-workspace button,.rxv-workspace a.rxv-button { min-width:44px!important; min-height:44px!important; }
  .rxv-workspace .rxv-rotation { flex-wrap:wrap; justify-content:flex-end; }
  .rxv-workspace .rxv-control-row:has(.rxv-rotation) { flex-wrap:wrap; }
  .rxv-workspace .rxv-pane-toolbar,.rxv-workspace .rxv-bottom-bar { height:auto; }
}
.act-default-price-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; min-width: 105px; border-radius: 9px;
  border: 1px solid #c7daf8; background: #f4f8ff; color: #154e9a;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.act-default-price-button:hover { background: #e5efff; border-color: #6399e3; }
.act-default-price-button:focus-visible { outline: 3px solid #4c92ec; outline-offset: 3px; }
.act-default-price-modal { max-width: 540px; }
.act-default-price-modal .form-grid { gap: 20px; }
.act-default-price-name { font-weight: 650; font-size: 18px; line-height: 1.45; overflow-wrap: anywhere; margin: 0; }
.act-default-price-modal .muted { line-height: 1.6; margin: 0; }
.act-default-price-modal .form-actions { display: flex; gap: 12px; justify-content: flex-end; }
.act-default-price-modal input { font-size: 20px; }
.operation-form-field > small { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; }
@media (max-width: 600px) { .act-default-price-modal { width: calc(100vw - 28px); } }

/* Long catalogue labels must not push the tariff editor outside the viewport. */
.global-list-workspace.catalog-acts-workspace .dentalome-table-shell {
  min-width: 0;
  container: act-catalog / inline-size;
}
.global-list-workspace.catalog-acts-workspace .dentalome-table-wrap table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}
.global-list-workspace.catalog-acts-workspace .dentalome-table-wrap th,
.global-list-workspace.catalog-acts-workspace .dentalome-table-wrap td {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
.global-list-workspace.catalog-acts-workspace .dentalome-table-wrap th:nth-child(1) { width: 6%; }
.global-list-workspace.catalog-acts-workspace .dentalome-table-wrap th:nth-child(2) { width: 16%; }
.global-list-workspace.catalog-acts-workspace .dentalome-table-wrap th:nth-child(3) { width: 37%; }
.global-list-workspace.catalog-acts-workspace .dentalome-table-wrap th:nth-child(4) { width: 19%; }
.global-list-workspace.catalog-acts-workspace .dentalome-table-wrap th:nth-child(5) { width: 9%; }
.global-list-workspace.catalog-acts-workspace .dentalome-table-wrap th:nth-child(6) { width: 6%; }
.global-list-workspace.catalog-acts-workspace .dentalome-table-wrap th:nth-child(7) { width: 7%; }
.global-list-workspace.catalog-acts-workspace .catalog-act-name-cell {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.global-list-workspace.catalog-acts-workspace .act-default-price-button {
  width: 100%;
  min-width: 0;
  gap: 8px;
  padding: 9px 10px;
}
.global-list-workspace.catalog-acts-workspace .act-default-price-button span {
  white-space: normal;
  overflow-wrap: normal;
  min-width: 0;
  text-align: start;
}
.global-list-workspace.catalog-acts-workspace .act-default-price-button svg { flex-shrink: 0; }
.pricing-baseline-notice { display: grid; gap: 6px; margin: 0 0 20px; padding: 16px 20px; border: 1px solid #badbd7; border-radius: 12px; background: #edf8f6; color: #235a56; line-height: 1.5; }
.pricing-baseline-notice span { font-size: 14px; }
.catalog-act-price-cell > small { display: block; font-size: 12px; line-height: 1.45; margin-top: 5px; color: #475569; white-space: normal; }
.catalog-act-price-cell > .pricing-provisional { color: #88581d; }
.operation-save-error { margin: 0; padding: 12px 16px; border: 1px solid #e7b4ae; border-radius: 8px; background: #fff5f3; color: #922f25; line-height: 1.5; }
.operation-catalogue-message { display: block; margin-top: 8px; font-size: 13px; line-height: 1.5; color: #922f25; }
.operation-catalogue-message button, .operation-save-error button { margin: 8px 0 0; padding: 8px 12px; min-height: 36px; font: inherit; cursor: pointer; }
.operation-pricing-review p { margin: 8px 0; }
.operation-act-variant { display: block; margin-top: 2px; font-size: 12px; color: #566477; }
.act-catalog-combobox .combobox-trigger:disabled { cursor: not-allowed; opacity: .7; }
.pricing-research-details { background: #f5f8fb; border: 1px solid #dbe4ed; border-radius: 10px; padding: 16px; font-size: 14px; line-height: 1.55; }
.pricing-research-details p { margin: 8px 0; }
.pricing-research-details small { color: #475569; }
.pricing-research-details ul { margin: 10px 0 0; padding-left: 20px; }
.act-pricing-note { display: block; line-height: 1.5; color: #805717; padding-top: 5px; }

/* On a narrow workspace each act keeps its name, tariff and codes together. */
@container act-catalog (max-width: 680px) {
  .global-list-workspace.catalog-acts-workspace .dentalome-table-wrap table,
  .global-list-workspace.catalog-acts-workspace .dentalome-table-wrap tbody { display: block; }
  .global-list-workspace.catalog-acts-workspace .dentalome-table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .global-list-workspace.catalog-acts-workspace .dentalome-table-wrap tbody tr {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) minmax(105px, 155px);
    gap: 8px 10px;
    padding: 14px 12px;
    height: auto;
  }
  .global-list-workspace.catalog-acts-workspace .dentalome-table-wrap td {
    display: block;
    padding: 0;
    min-width: 0;
    height: auto;
  }
  .global-list-workspace.catalog-acts-workspace .dentalome-table-wrap td:nth-child(1) { grid-area: 1 / 1; align-self: center; }
  .global-list-workspace.catalog-acts-workspace .dentalome-table-wrap td:nth-child(2) { grid-area: 1 / 2; align-self: center; font-size: 12px; color: #536176; }
  .global-list-workspace.catalog-acts-workspace .dentalome-table-wrap td:nth-child(3) { grid-area: 2 / 1 / 3 / -1; }
  .global-list-workspace.catalog-acts-workspace .dentalome-table-wrap td:nth-child(4) { grid-area: 1 / 3; }
  .global-list-workspace.catalog-acts-workspace .dentalome-table-wrap td:nth-child(5) { grid-area: 3 / 1 / 4 / 3; }
  .global-list-workspace.catalog-acts-workspace .dentalome-table-wrap td:nth-child(6) { grid-area: 4 / 1 / 5 / 3; }
  .global-list-workspace.catalog-acts-workspace .dentalome-table-wrap td:nth-child(7) { grid-area: 3 / 3 / 5 / 4; align-self: center; }
  .global-list-workspace.catalog-acts-workspace .dentalome-table-wrap td:nth-child(5) > div,
  .global-list-workspace.catalog-acts-workspace .dentalome-table-wrap td:nth-child(6) > div { display: inline; }
  .global-list-workspace.catalog-acts-workspace .dentalome-table-wrap td:nth-child(5)::before { content: "Code acte : "; color: #536176; }
  .global-list-workspace.catalog-acts-workspace .dentalome-table-wrap td:nth-child(6)::before { content: "NGPA : "; color: #536176; }
  .global-list-workspace.catalog-acts-workspace .dentalome-table-wrap td.empty-cell { grid-area: 1 / 1 / 2 / -1; }
  .global-list-workspace.catalog-acts-workspace .catalog-color-only i { width: 24px; }
  .global-list-workspace.catalog-acts-workspace .dentalome-table-outside-footer { height: auto; flex-wrap: wrap; gap: 12px; }
  .global-list-workspace.catalog-acts-workspace .catalog-acts-pagination { flex-wrap: wrap; height: auto; min-width: 0; }
}
.radiology-section .radiology-study-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
.radiology-section .radiology-study{border:1px solid #dce3ea;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 3px 10px #14283804}
.radiology-section .radiology-study-header{padding:16px 18px;border-bottom:0;gap:12px}
.radiology-section .radiology-image-grid{display:grid;grid-template-columns:1fr;gap:16px;padding:0 14px 12px}
.radiology-image-tile{min-width:0;border:1px solid transparent;border-radius:8px;overflow:hidden}
.radiology-image-tile.selected{border-color:#2f80e7;box-shadow:0 0 0 2px #2f80e71a}
.radiology-section .radiology-thumbnail{width:100%;height:auto;aspect-ratio:2.25;min-height:170px;max-height:330px;border:0;border-radius:7px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#11161c;padding:14px;cursor:zoom-in}
.radiology-section .radiology-thumbnail img{width:100%;height:100%;object-fit:contain;border-radius:0;filter:none}
.radiology-section .radiology-thumbnail .radiology-open-label{position:absolute;bottom:10px;left:auto;right:10px;background:#161f2bdd;color:#eef4fe;display:flex;align-items:center;gap:6px;padding:7px 10px;font-size:11px;border-radius:5px;opacity:0;transition:opacity .15s ease}
.radiology-section .radiology-thumbnail:hover .radiology-open-label,.radiology-section .radiology-thumbnail:focus-visible .radiology-open-label{opacity:1}
.radiology-section .radiology-thumbnail:focus-visible{outline:3px solid #2f80e7;outline-offset:-3px}
.radiology-image-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 2px 0;color:#647284;font-size:11px}
.radiology-image-actions>div{display:flex;align-items:center;gap:4px}
.radiology-image-actions button,.radiology-image-actions a{min-height:40px;min-width:40px}
.radiology-image-actions .radiology-print-action{display:flex;align-items:center;gap:7px;border:1px solid #d8e3ef;background:#f4f8ff;color:#2466ac;border-radius:6px;padding:8px 11px;font-size:12px;font-weight:600;cursor:pointer}
.radiology-section .radiology-study-footer{padding:8px 18px 12px;background:#fff;border-top:1px solid #f0f3f6;gap:8px}
.radiology-section .radiology-study-meta{font-size:11px;color:#82909e;gap:10px}
.radiology-section .radiology-study-meta span:nth-child(n+3){display:none}
.radiology-section .radiology-match-state{font-size:11px;color:#678274}
@media(min-width:1800px){.radiology-section .radiology-study-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1150px){.radiology-section .radiology-study-list{grid-template-columns:1fr}.radiology-section .radiology-thumbnail{max-height:380px}}
@media(pointer:coarse){.radiology-image-actions button,.radiology-image-actions a{min-height:44px;min-width:44px}.radiology-section .radiology-thumbnail .radiology-open-label{opacity:1}}
@media(prefers-reduced-motion:reduce){.radiology-section *{transition:none!important;scroll-behavior:auto!important}}
@font-face{font-family:"Noto Sans";src:url('/api/courriers/fonts/NotoSans-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Noto Sans";src:url('/api/courriers/fonts/NotoSans-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Noto Sans";src:url('/api/courriers/fonts/NotoSans-Italic.ttf') format('truetype');font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Noto Sans";src:url('/api/courriers/fonts/NotoSans-BoldItalic.ttf') format('truetype');font-weight:700;font-style:italic;font-display:swap}
@font-face{font-family:"Noto Serif";src:url('/api/courriers/fonts/NotoSerif-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:"Noto Serif";src:url('/api/courriers/fonts/NotoSerif-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
@font-face{font-family:"Noto Serif";src:url('/api/courriers/fonts/NotoSerif-Italic.ttf') format('truetype');font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Noto Serif";src:url('/api/courriers/fonts/NotoSerif-BoldItalic.ttf') format('truetype');font-weight:700;font-style:italic;font-display:swap}
@font-face{font-family:"Noto Sans Mono";src:url('/api/courriers/fonts/NotoSansMono-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:"Noto Sans Mono";src:url('/api/courriers/fonts/NotoSansMono-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
@font-face{font-family:"Noto Naskh Arabic";src:url('/api/courriers/fonts/NotoNaskhArabic-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:"Noto Naskh Arabic";src:url('/api/courriers/fonts/NotoNaskhArabic-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
.courriers-workspace,.courrier-modal{--courrier-ink:#233647;--courrier-muted:#74818b;--courrier-line:#e0e6e9;--courrier-blue:#194f8b;--courrier-gold:#a98b49;color:var(--courrier-ink);font-family:inherit;font-size:14px;line-height:1.45}
.courriers-workspace{max-width:1700px;margin:0 auto;padding:8px 4px 40px;min-width:0}
.courriers-workspace *,.courrier-modal *{box-sizing:border-box}
.courrier-workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.courrier-eyebrow{font-size:10px;font-weight:700;letter-spacing:.17em;color:var(--courrier-muted);display:block;margin-bottom:5px}
.courrier-workspace-heading h1{font-size:30px;line-height:1.15;letter-spacing:-.8px;font-weight:600;margin:0;color:var(--courrier-ink)}
.courriers-workspace button,.courrier-modal button,.courriers-workspace a.courrier-primary,.courrier-modal a.courrier-primary{font:inherit;color:var(--courrier-ink);border:1px solid var(--courrier-line);background:#fff;border-radius:7px;padding:8px 12px;min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;text-decoration:none;box-shadow:none;line-height:1.3}
.courriers-workspace button:hover:not(:disabled),.courrier-modal button:hover:not(:disabled){background:#f1f5f8;border-color:#c5d3df}
.courriers-workspace button:disabled,.courrier-modal button:disabled{opacity:.45;cursor:default}
.courriers-workspace button.courrier-primary,.courrier-modal button.courrier-primary,.courrier-modal a.courrier-primary{background:var(--courrier-blue);color:#fff;border-color:var(--courrier-blue);font-weight:600}
.courriers-workspace button.courrier-primary:hover:not(:disabled),.courrier-modal button.courrier-primary:hover:not(:disabled){background:#123d6d}
.courriers-workspace :focus-visible,.courrier-modal :focus-visible{outline:2px solid #4289c9;outline-offset:3px}
.courrier-tabs{display:flex;gap:26px;border-bottom:1px solid var(--courrier-line);margin-bottom:20px}
.courrier-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;border-radius:0;padding:12px 0;color:var(--courrier-muted);font-weight:600;min-height:48px}
.courrier-tabs button[aria-current="page"]{border-bottom-color:var(--courrier-blue);color:var(--courrier-blue)}
.courrier-tabs button span{font-size:10px;font-weight:400;background:#eef1f2;padding:3px 6px;border-radius:3px;color:#697986}
.courrier-layout{display:grid;grid-template-columns:264px minmax(0,1fr);align-items:start;gap:20px;min-width:0}
.courrier-library{border:1px solid var(--courrier-line);background:#fff;border-radius:10px;overflow:hidden;position:sticky;top:16px}
.courrier-search{margin:14px;display:flex;align-items:center;gap:8px;padding:0 10px;background:#f6f8f9;border:1px solid var(--courrier-line);border-radius:6px;height:38px}
.courriers-workspace .courrier-search input{border:0;box-shadow:none;padding:0;background:transparent;width:100%;min-width:0;font-size:12px;height:34px}
.courrier-library-meta{display:flex;align-items:center;justify-content:space-between;margin:0 14px 6px;font-size:11px;color:var(--courrier-muted)}
.courriers-workspace .courrier-icon,.courrier-modal .courrier-icon{border-color:transparent;background:transparent;padding:6px;min-width:32px;min-height:32px;flex-shrink:0}
.courrier-library-items{max-height:60vh;overflow:auto}
.courriers-workspace .courrier-list-item{display:flex;align-items:flex-start;text-align:start;width:100%;border:0;border-left:3px solid transparent;border-radius:0;padding:14px 12px;gap:10px;background:#fff;border-top:1px solid #f0f2f4}
.courriers-workspace .courrier-list-item.is-selected{background:#eef4fa;border-left-color:var(--courrier-blue)}
.courrier-list-icon{background:#f4f6f7;color:#7e8c99;display:flex;padding:7px;border-radius:5px;flex-shrink:0}
.courrier-list-item.is-selected .courrier-list-icon{background:#dae8f5;color:var(--courrier-blue)}
.courrier-list-item>span:last-child{display:grid;gap:4px;min-width:0}
.courrier-list-item strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}
.courrier-list-item small{font-size:10px;color:var(--courrier-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px}
.courrier-empty-list{padding:14px;font-size:12px;color:var(--courrier-muted)}
.courriers-workspace .courrier-load-more{display:flex;margin:10px auto;font-size:12px}
.courrier-legacy-link{padding:14px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--courrier-line);font-size:11px;color:var(--courrier-muted);text-decoration:none}
.courrier-document-area{min-width:0}
.courrier-empty{min-height:460px;background:#fff;border:1px solid var(--courrier-line);border-radius:10px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:40px}
.courrier-empty-symbol{width:86px;height:100px;color:var(--courrier-gold);background:#faf8f2;border:1px solid #e8e0ce;border-radius:4px;display:grid;place-items:center;transform:rotate(-5deg);margin-bottom:30px;box-shadow:7px 8px 0 #f3f4f3}
.courrier-empty h2{font-size:23px;font-weight:500;letter-spacing:-.4px;margin:0 0 10px}
.courrier-empty p{max-width:440px;font-size:13px;line-height:1.8;color:var(--courrier-muted);margin:0 0 22px}
.courrier-document-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:15px 17px;background:#fff;border:1px solid var(--courrier-line);border-radius:10px 10px 0 0}
.courrier-title-field{flex:1;min-width:180px;max-width:420px;display:grid;gap:3px}
.courrier-title-field label{font-size:10px;color:var(--courrier-muted)}
.courriers-workspace .courrier-title-field input{border:0;padding:2px 0;font-size:18px;font-weight:600;width:100%;height:auto;box-shadow:none;border-radius:0;background:transparent;color:var(--courrier-ink)}
.courrier-save-state{font-size:10px;color:var(--courrier-muted);display:flex;align-items:center;gap:4px}
.courrier-save-state.is-saved{color:#36705c}.courrier-save-state.is-conflict,.courrier-save-state.is-uncertain{color:#9c6627}
.courrier-document-actions{display:flex;gap:5px;flex-wrap:wrap}
.courrier-document-actions button{font-size:11px;padding:8px;min-height:35px}
.courrier-metadata{border:1px solid var(--courrier-line);border-top:0;background:#fff;padding:11px 17px}
.courrier-metadata>summary{list-style:none;cursor:pointer;font-size:12px;font-weight:600;display:flex;align-items:center;gap:10px;min-height:30px}
.courrier-metadata>summary:before{content:'›';font-size:20px;line-height:1;color:#8e9ba5;transform:rotate(90deg)}
.courrier-metadata:not([open])>summary:before{transform:none}
.courrier-metadata>summary span{font-size:10px;color:var(--courrier-muted);font-weight:400}
.courrier-metadata-grid{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:12px;margin:10px 0 5px}
.courriers-workspace label,.courrier-modal label{font-size:11px;color:var(--courrier-muted);display:grid;gap:5px;font-weight:500}
.courriers-workspace input,.courriers-workspace select,.courriers-workspace textarea,.courrier-modal input,.courrier-modal select{font:inherit;border:1px solid var(--courrier-line);border-radius:5px;padding:8px;background:#fff;color:var(--courrier-ink);width:100%;min-width:0;line-height:1.4;box-shadow:none}
.courriers-workspace textarea{resize:vertical}
.courriers-workspace input:disabled,.courriers-workspace textarea:disabled,.courriers-workspace select:disabled{background:#f8f9fa;color:#78828b}
.courrier-recipient-field{grid-row:span 2}.courrier-subject-field{grid-column:span 2}
.courrier-patient-picker{position:relative;grid-column:span 2}
.courrier-patient-picker ul{list-style:none;padding:4px;margin:3px 0 0;position:absolute;z-index:15;background:#fff;border:1px solid var(--courrier-line);box-shadow:0 8px 22px #1c39531a;max-height:220px;overflow:auto;width:100%}
.courrier-patient-picker li button{display:flex;width:100%;justify-content:space-between;border:0;text-align:start;font-size:12px}
.courrier-patient-selection{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;margin-top:6px}.courrier-patient-selection button{font-size:11px;border:0;min-height:28px;padding:3px;color:var(--courrier-blue)}
.courrier-paper-stage{padding:18px;background:#e9eef0;border:1px solid var(--courrier-line);border-top:0;border-radius:0 0 10px 10px;min-width:0}
.courrier-paper-caption{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:9px;letter-spacing:.09em;color:#7d8992;margin:0 0 12px}
.courrier-paper-caption>span+span{letter-spacing:0;font-size:10px}
.courrier-letter-paper{background:#fff;max-width:850px;min-height:760px;margin:0 auto;box-shadow:0 4px 16px #263d5120;padding:0 9.52% 35px;position:relative;overflow:hidden}
.is-a5 .courrier-letter-paper{max-width:600px;min-height:660px;padding-left:8.1%;padding-right:8.1%}
.courrier-paper-letterhead{height:165px;overflow:hidden;margin:0 -11.75% 0;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#758fa0;font-size:11px;gap:4px}
.courrier-paper-letterhead img{width:100%;height:auto;position:absolute;left:0;top:0;max-width:none}
.is-a5 .courrier-paper-letterhead{height:150px;margin-left:-9.67%;margin-right:-9.67%}
.courrier-paper-letterhead strong{font-size:20px;color:var(--courrier-gold);font-weight:600}
.courrier-letter-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-family:"Noto Sans",sans-serif;font-size:12px;padding-bottom:15px;white-space:pre-wrap}
.courrier-letter-meta strong{width:100%;font-weight:700}.courrier-letter-meta time{margin-left:auto}
.courrier-paper-footer{padding-top:28px;margin-top:40px;border-top:1px solid #ebe7dd;text-align:center;color:#92999e;font-size:9px;line-height:1.5}
.courrier-paper-footer.has-artwork{position:relative;height:95px;overflow:hidden;margin-left:-11.75%;margin-right:-11.75%;margin-bottom:-35px;border:0;padding:0}.courrier-paper-footer.has-artwork img{position:absolute;left:0;bottom:0;width:100%;height:auto;max-width:none}.is-a5 .courrier-paper-footer.has-artwork{margin-left:-9.67%;margin-right:-9.67%;height:85px}
.courrier-rich-editor{min-width:0}
.courrier-template-insert{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#f8f5ed;border:1px solid #e9e0cd;border-radius:5px;padding:8px;margin-bottom:10px;font-size:11px;color:#998452}.courrier-template-insert button{font-size:11px;padding:5px 8px}
.courrier-editor-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:4px;padding:9px;margin:0 -10px 18px;background:#f9fafb;border:1px solid #e3e9ed;border-radius:6px;position:relative;z-index:2}
.courrier-editor-toolbar button{padding:5px;min-width:29px;min-height:30px;border:0;background:transparent;border-radius:4px;color:#596a78}
.courrier-editor-toolbar button[aria-pressed="true"]{background:#dfeaf4;color:var(--courrier-blue)}
.courrier-tool-group{display:flex;align-items:center;gap:1px;border-right:1px solid #dce3e8;padding-right:5px;margin-right:2px}
.courrier-editor-toolbar select{font-size:11px;padding:4px 6px;width:auto;max-width:130px;height:30px}
.courrier-color{width:28px;height:30px;padding:4px;display:block!important}.courrier-color input{padding:0;width:22px;height:22px;border:0;cursor:pointer}
.courrier-table-tools{display:flex;flex-wrap:wrap;gap:5px;width:100%;border-top:1px solid #e4e8ec;padding-top:5px;font-size:10px}
.courrier-table-tools button{border:1px solid var(--courrier-line);padding:4px 6px}
.courrier-prose{font-family:"Noto Sans","Noto Naskh Arabic",sans-serif;font-size:12pt;line-height:1.65;color:#202e3c;min-height:300px;outline:none!important;overflow-wrap:anywhere}
.courrier-prose p{margin:0 0 12px}.courrier-prose h1{font-size:24pt;margin:20px 0 12px;line-height:1.3}.courrier-prose h2{font-size:18pt;margin:18px 0 10px}.courrier-prose h3{font-size:14pt;margin:16px 0 8px}
.courrier-prose ul,.courrier-prose ol{padding-inline-start:25px;margin:10px 0}.courrier-prose li>p{margin:3px 0}.courrier-prose blockquote{margin:15px 0;border-inline-start:3px solid #c8b06c;padding-inline-start:16px;color:#6c7780}
.courrier-prose a{color:#194f8b;text-decoration:underline}.courrier-prose hr{border:0;border-top:1px solid #c5cdd3;margin:20px 0}
.courrier-prose table{border-collapse:collapse;table-layout:fixed;width:100%;margin:16px 0}.courrier-prose th,.courrier-prose td{border:1px solid #a8b5be;min-width:50px;padding:8px;vertical-align:top;position:relative}.courrier-prose th{background:#f2f5f6;font-weight:700}.courrier-prose .selectedCell:after{position:absolute;inset:0;background:#377bb025;content:'';pointer-events:none}
.courrier-prose .tableWrapper{overflow-x:auto}
.courrier-link-form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px;background:#f1f5f8;padding:12px;margin-bottom:15px}.courrier-link-form label{flex:1;min-width:180px}
.courrier-envelope-paper{aspect-ratio:225/115;background:#fff;position:relative;box-shadow:0 5px 20px #263d5125;max-width:960px;margin:30px auto;overflow:hidden}
.courrier-envelope-paper>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.courrier-paper-identity{position:absolute;top:10%;left:7%;display:grid;gap:5px;max-width:40%;font-size:11px;color:var(--courrier-gold)}
.courrier-envelope-address{position:absolute;left:34.6667%;top:47.826%;width:33.3333%;height:20.8696%;white-space:pre-wrap;overflow-wrap:anywhere;font-family:"Noto Sans","Noto Naskh Arabic",sans-serif;font-size:clamp(10px,1.2vw,15px);line-height:1.45;display:flex;align-items:flex-start}
.courrier-envelope-address>span{color:#9a9a93;font-family:inherit;font-size:11px;font-style:italic;border:1px dashed #d8d6cd;padding:10px;width:100%;height:100%}
.courrier-muted{color:var(--courrier-muted);font-size:12px;line-height:1.6}.courrier-loading{display:flex;gap:10px;align-items:center;padding:30px;color:var(--courrier-muted)}
.courrier-banner{border:1px solid #e6d6b6;background:#fffbf3;border-radius:6px;color:#886b37;padding:12px 15px;margin:10px 0;font-size:12px;line-height:1.6}.courrier-banner p{margin:0 0 8px}.courrier-banner button{margin-right:6px;margin-top:5px;font-size:11px}
.courrier-job-inline{display:flex;align-items:center;gap:12px;padding:14px;background:#eff6f3;border:1px solid #d2e5dc;border-radius:7px;margin-top:12px;font-size:12px}.courrier-job-inline>div{display:grid;gap:4px;flex:1}.courrier-job-inline span{font-size:11px;color:var(--courrier-muted)}
.courrier-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.courrier-modal-layer{position:fixed;inset:0;z-index:10050;background:#10273975;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(4px)}
.courrier-modal{background:#fff;border:1px solid #d5dfe5;border-radius:12px;max-width:700px;width:100%;max-height:calc(100dvh - 48px);overflow:auto;box-shadow:0 24px 90px #10253645;outline:none;min-width:0}
.courrier-modal-wide{max-width:1080px}
.courrier-modal>header{position:sticky;top:0;z-index:4;background:#fff;border-bottom:1px solid var(--courrier-line);display:flex;justify-content:space-between;align-items:center;padding:15px 22px;gap:20px}
.courrier-modal>header h2{font-size:20px;font-weight:600;letter-spacing:-.3px;margin:0}
.courrier-pdf-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 22px;font-size:12px;color:var(--courrier-muted)}
.courrier-pdf-reader{border:0;width:100%;height:calc(100dvh - 215px);min-height:320px;background:#e4e9ed}
.courrier-history-layout{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:450px}.courrier-history-layout>div:first-child{padding:15px;background:#f8fafb;border-right:1px solid var(--courrier-line)}
.courrier-revisions{padding:0;margin:0;list-style:none;display:grid;gap:6px}.courrier-revisions button{display:grid;justify-content:start;text-align:start;width:100%;gap:5px;padding:10px;font-size:12px}.courrier-revisions button[aria-current="true"]{background:#eaf2fa;border-color:#aec7de}.courrier-revisions small{font-size:10px;color:var(--courrier-muted)}
.courrier-history-reader{padding:24px;min-width:0;max-height:65vh;overflow:auto}.courrier-history-reader h3{margin:0;font-size:18px}.courrier-history-reader .courrier-editor-toolbar{display:none}.courrier-history-reader .courrier-prose{min-height:180px}.courrier-preserve-lines{white-space:pre-wrap}
.courrier-print-layout{display:grid;grid-template-columns:1.25fr 1fr;gap:0}.courrier-feed-guide{padding:25px;background:#f5f7f8;border-right:1px solid var(--courrier-line)}
.courrier-guide-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.courrier-guide-title h3{font-size:15px;margin:0;font-weight:600}.courrier-guide-title button{font-size:11px;background:transparent;border:0;padding:5px;white-space:nowrap}
.courrier-feed-scene{height:265px;position:relative;perspective:850px;margin-top:14px;overflow:hidden;background:radial-gradient(ellipse at 50% 76%,#d4dde55c,transparent 67%)}
.courrier-feed-printer{position:absolute;left:50%;top:33px;width:235px;height:128px;border-radius:9px 9px 17px 17px;background:linear-gradient(110deg,#e5e9eb,#c5ced4);transform:translateX(-50%) rotateX(12deg) rotateY(-15deg);box-shadow:15px 21px 27px #203f5820;border:1px solid #aebac4}
.courrier-feed-printer-top{height:63px;border-radius:8px 8px 0 0;background:linear-gradient(140deg,#fcfdfd,#e0e5e8);border-bottom:1px solid #b1bdc7;display:flex;align-items:center;justify-content:space-between;padding:15px;color:#8a9ba7}.courrier-feed-printer-top span{font-size:10px;font-weight:700;font-style:italic;background:#4d6476;border-radius:50%;color:#fff;width:23px;height:23px;display:grid;place-items:center}
.courrier-feed-slot{position:absolute;left:22px;right:22px;bottom:14px;height:12px;background:#405262;border-radius:2px;box-shadow:inset 0 4px 5px #192d40}
.courrier-feed-tray{position:absolute;top:110px;left:10px;right:10px;height:112px;background:linear-gradient(#c6d0d8,#e1e7eb);border:1px solid #b5c2cc;border-top:0;transform-origin:top;transform:rotateX(60deg);border-radius:0 0 7px 7px}
.courrier-feed-paper{position:absolute;left:50%;top:155px;width:146px;height:75px;background:linear-gradient(125deg,#fffefb,#f3efe4);border:1px solid #cdbf9e;box-shadow:5px 10px 15px #40556c25;transform:translateX(-50%) rotateX(34deg) rotateZ(-9deg);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;transition:transform .6s ease,top .6s ease,width .6s ease,height .6s ease}
.courrier-feed-paper span{font-size:8px;font-weight:700;letter-spacing:.05em;color:#9b8146}.courrier-feed-paper b{font-size:9px;color:#7a8995;font-weight:500}.courrier-feed-paper>svg{position:absolute;right:2px;top:27px;color:#3b668d}.courrier-feed-paper.is-letter{width:100px;height:135px;top:120px}
.courrier-feed-step-1 .courrier-feed-paper.is-envelope,.courrier-feed-step-2 .courrier-feed-paper.is-envelope{transform:translateX(-50%) rotateX(35deg) rotateZ(-90deg);top:147px}
.courrier-feed-step-2 .courrier-feed-paper{top:117px!important}.courrier-feed-step-2 .courrier-feed-paper.is-letter{top:95px!important}
.courrier-feed-paper.is-letter>svg{transform:rotate(-90deg);left:calc(50% - 11px);top:3px}
.courrier-feed-direction{position:absolute;bottom:4px;left:0;right:0;text-align:center;font-size:10px;color:#718599;letter-spacing:.08em}
.courrier-feed-steps{list-style:none;padding:0;margin:12px 0;display:grid;gap:7px}.courrier-feed-steps button{background:transparent;border:0;padding:6px 0;justify-content:flex-start;text-align:start;width:100%;font-size:12px}.courrier-feed-steps button>span{display:grid;place-items:center;width:25px;height:25px;flex-shrink:0;border-radius:50%;background:#e3e8ec;color:#7d8d9b;font-size:10px;font-weight:700}.courrier-feed-steps button[aria-current="step"]{color:var(--courrier-blue);font-weight:600}.courrier-feed-steps button[aria-current="step"]>span{background:var(--courrier-blue);color:#fff}
.courrier-guide-caption{font-size:11px;border-top:1px solid #dce4ea;padding-top:12px;color:#627789;line-height:1.6}
.courrier-print-controls{padding:28px}.courrier-print-controls h3{font-size:21px;margin:0 0 6px;font-weight:600}.courrier-print-controls>p{font-size:12px;color:var(--courrier-muted)}
.courrier-print-controls dl{display:grid;gap:10px;margin:22px 0;padding:18px 0;border-top:1px solid var(--courrier-line);border-bottom:1px solid var(--courrier-line);font-size:12px}.courrier-print-controls dl>div{display:flex;gap:15px;justify-content:space-between}.courrier-print-controls dt{color:var(--courrier-muted)}.courrier-print-controls dd{margin:0;text-align:right;max-width:65%;overflow-wrap:anywhere}.courrier-print-controls label{margin-bottom:18px}.courrier-print-controls label input{max-width:100px}.courrier-print-controls>.courrier-primary{width:100%;min-height:43px}.courrier-print-result{background:#eff5f2;border:1px solid #d1e3d9;padding:14px;border-radius:6px;font-size:12px}.courrier-print-result strong{color:#346854}
@media(min-width:1500px){.courrier-layout{grid-template-columns:300px minmax(0,1fr);gap:25px}.courrier-document-actions button{padding:9px 11px;font-size:12px}}
@media(max-width:1100px){.courrier-layout{grid-template-columns:220px minmax(0,1fr);gap:14px}.courrier-document-actions button span{display:none}.courrier-document-actions button{min-width:35px}.courrier-metadata-grid{grid-template-columns:1fr 1fr}.courrier-recipient-field{grid-row:auto;grid-column:span 2}.courrier-paper-stage{padding:12px}.courrier-letter-paper{padding-left:7%;padding-right:7%}.courrier-paper-letterhead{margin-left:-8.14%;margin-right:-8.14%;height:130px}.courrier-prose{font-size:12pt}.courrier-list-item small{max-width:145px}}
@media(max-width:780px){.courriers-workspace{padding:0 0 30px}.courrier-workspace-heading{gap:12px;margin-bottom:12px}.courrier-workspace-heading h1{font-size:26px}.courrier-workspace-heading>.courrier-primary{font-size:12px}.courrier-layout{grid-template-columns:minmax(0,1fr)}.courrier-library{position:static}.courrier-library-items{display:flex;max-height:130px;overflow-x:auto}.courriers-workspace .courrier-list-item{min-width:235px;width:235px;border-left:0;border-bottom:3px solid transparent}.courriers-workspace .courrier-list-item.is-selected{border-bottom-color:var(--courrier-blue)}.courrier-library-meta{margin-top:-4px}.courrier-legacy-link{padding:9px 14px}.courrier-search{margin:10px 14px}.courrier-document-heading{padding:13px}.courrier-document-actions{width:100%;justify-content:flex-end}.courrier-document-actions button span{display:inline}.courrier-document-actions button{font-size:10px;flex:1}.courrier-title-field{max-width:none}.courrier-tabs{gap:20px;margin-bottom:12px}.courrier-tabs button span{display:none}.courrier-metadata{padding:10px 13px}.courrier-paper-stage{padding:10px}.courrier-letter-paper{min-height:660px}.courrier-paper-letterhead{height:125px}.courrier-modal-layer{padding:10px}.courrier-modal{max-height:calc(100dvh - 20px)}.courrier-print-layout{grid-template-columns:1fr}.courrier-feed-guide{border-right:0;border-bottom:1px solid var(--courrier-line);padding:20px}.courrier-feed-scene{height:245px}.courrier-feed-steps{grid-template-columns:1fr}.courrier-print-controls{padding:20px}.courrier-history-layout{grid-template-columns:1fr}.courrier-history-layout>div:first-child{border-right:0;max-height:220px;overflow:auto}.courrier-history-reader{max-height:none;padding:18px}.courrier-pdf-reader{height:calc(100dvh - 180px)}.courrier-empty{min-height:300px;padding:30px 20px}}
@media(pointer:coarse){.courriers-workspace button,.courrier-modal button,.courriers-workspace select,.courriers-workspace input:not([type=color]),.courrier-modal input,.courrier-modal a.courrier-primary{min-height:44px}.courriers-workspace .courrier-icon,.courrier-modal .courrier-icon,.courrier-editor-toolbar button{min-width:44px;min-height:44px}.courrier-editor-toolbar select{height:44px}.courrier-color{width:44px;height:44px;padding:9px}.courrier-color input{width:26px;height:26px}.courrier-metadata>summary{min-height:44px}.courrier-tabs button{min-height:48px}.courrier-search{height:46px}}
@media(prefers-reduced-motion:reduce){.courrier-feed-paper{transition:none}.courriers-workspace *,.courrier-modal *{scroll-behavior:auto!important}}

/* Compact icon actions keep the same touch area as the editor toolbar. */
@media(pointer:coarse){.courriers-workspace .courrier-document-actions button{min-width:44px}}
.v1-statistics {
  --st-bg: #f3f9f6;
  --st-surface: #fff;
  --st-ink: #20332e;
  --st-muted: #65766f;
  --st-border: #e0ebe6;
  --st-teal: #127e70;
  --st-pale: #e5f5ee;
  --st-coral: #d5765e;
  background: var(--st-bg);
  color: var(--st-ink);
  font-family: "Work Sans", ui-sans-serif, system-ui, sans-serif;
  padding: 22px 26px 18px;
  min-width: 0;
  min-height: calc(100vh - 80px);
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
}
.v1-statistics * {
  box-sizing: border-box;
}
.v1-statistics h1,
.v1-statistics h2,
.v1-statistics h3,
.v1-statistics p {
  margin: 0;
}
.v1-statistics button,
.v1-statistics input,
.v1-statistics select {
  font: inherit;
  letter-spacing: inherit;
}
.v1-statistics button,
.v1-statistics a {
  touch-action: manipulation;
}
.v1-statistics button {
  cursor: pointer;
}
.v1-statistics button:disabled {
  cursor: default;
  opacity: 0.5;
}
.v1-statistics button:focus-visible,
.v1-statistics a:focus-visible,
.v1-statistics select:focus-visible,
.v1-statistics input:focus-visible,
.v1-statistics [tabindex]:focus-visible {
  outline: 3px solid #6bc4b3;
  outline-offset: 3px;
}
.v1-statistics a {
  color: var(--st-teal);
  text-decoration: none;
}
.v1-statistics a:hover {
  text-decoration: underline;
}
.st-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.st-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 100px;
  margin-bottom: 8px;
}
.st-heading {
  display: flex;
  align-items: center;
  gap: 23px;
  min-width: 0;
}
.st-heading h1 {
  font-size: 34px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: #20332e;
}
.st-heading img {
  width: 114px;
  height: 104px;
  object-fit: contain;
}
.st-head-tools {
  display: flex;
  gap: 12px;
  align-items: center;
}
.st-practitioner {
  position: relative;
  display: flex;
  align-items: center;
}
.st-practitioner select {
  appearance: none;
  background: #fff;
  border: 1px solid #d7e3dd;
  border-radius: 8px;
  height: 42px;
  width: 240px;
  padding: 0 36px 0 15px;
  color: #34463e;
  font-size: 13px;
  max-width: 100%;
}
.st-practitioner > svg {
  pointer-events: none;
  position: absolute;
  right: 13px;
  color: #668077;
}
.v1-statistics .st-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: transparent;
  color: #678078;
  border: 1px solid transparent;
  flex-shrink: 0;
  padding: 0;
}
.v1-statistics .st-icon-button:hover {
  background: #edf6f1;
  border-color: #dce9e2;
  color: #147b6d;
}
.st-range-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--st-border);
  border-radius: 11px;
  position: relative;
  z-index: 4;
}
.st-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.st-presets button {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid #e6ece8;
  border-radius: 7px;
  padding: 9px 14px;
  background: #f7f9f8;
  color: #53625b;
  min-height: 37px;
}
.st-presets button:hover {
  background: #ebf5ef;
}
.st-presets button.selected {
  background: var(--st-teal);
  color: #fff;
  border-color: var(--st-teal);
  box-shadow: 0 2px 3px #127e7016;
}
.st-date-button {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  background: #fff;
  border: 1px solid #d8e3dd;
  border-radius: 7px;
  min-height: 38px;
  padding: 7px 12px;
  color: #34473e;
  font-size: 12px !important;
  white-space: nowrap;
}
.st-calendar-wrap {
  position: relative;
  flex-shrink: 0;
}
.st-date-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 320px;
  max-width: calc(100vw - 40px);
  padding: 18px;
  background: #fff;
  border: 1px solid var(--st-border);
  box-shadow: 0 10px 36px #173e2720;
  border-radius: 11px;
  z-index: 9;
}
.st-date-popover label {
  display: block;
  font-size: 12px;
  color: #4c6158;
  margin-bottom: 12px;
}
.st-date-popover label span {
  color: #75847c;
}
.st-date-popover input {
  width: 100%;
  display: block;
  height: 39px;
  margin-top: 5px;
  background: #fff;
  border: 1px solid #d9e4de;
  border-radius: 6px;
  padding: 6px 10px;
  color: #263d32;
}
.st-date-popover > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.st-date-popover button {
  border: 1px solid #dce5df;
  border-radius: 7px;
  padding: 7px 13px;
  background: #fff;
  color: #465d51;
}
.st-date-popover p {
  color: #b94130;
  font-size: 12px;
}
.v1-statistics .st-primary {
  background: var(--st-teal);
  border: 1px solid var(--st-teal);
  border-radius: 7px;
  color: #fff;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.v1-statistics .st-primary:hover {
  background: #0c695c;
}
.st-tabs {
  display: flex;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #dce8e1;
  margin: 10px 0 20px;
  overflow-x: auto;
}
.st-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  min-height: 48px;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: #6d7c75;
  position: relative;
}
.st-tabs button.active {
  color: #096957;
  font-weight: 650;
  border-bottom-color: #148474;
}
.st-notice-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ca8a38;
  vertical-align: middle;
  margin-left: 7px;
}
.st-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.v1-statistics .st-kpi {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: 12px;
  padding: 19px 17px;
  min-height: 126px;
  color: var(--st-ink);
  box-shadow: 0 2px 8px #31584003;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.st-kpi:hover {
  border-color: #aad3c2 !important;
  box-shadow: 0 4px 16px #3158400d !important;
}
.st-kpi-icon {
  height: 47px;
  width: 47px;
  border-radius: 50%;
  background: #e7f6ef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #128274;
  flex-shrink: 0;
}
.st-coral .st-kpi-icon {
  background: #fdf0e6;
  color: #d87f44;
}
.st-kpi-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.st-kpi-label {
  color: #617269;
  font-size: 12px;
  line-height: 1.3;
  margin: 3px 0 3px;
}
.st-kpi-content > strong {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.65px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: #1c3027;
  white-space: normal;
  overflow-wrap: anywhere;
}
.st-kpi-content > .st-long-value {
  font-size: 20px;
}
.st-kpi-detail {
  font-size: 10px;
  color: #7b8d81;
  line-height: 1.45;
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.st-kpi-arrow {
  position: absolute;
  right: 9px;
  top: 13px;
  opacity: 0;
  color: #7aaa90;
}
.st-kpi:hover .st-kpi-arrow {
  opacity: 1;
}
.st-change {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  color: #0b9477;
  font-size: 11px;
  font-weight: 550;
}
.st-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.st-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-bottom: 18px;
}
.st-panel {
  min-width: 0;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px #31584003;
}
.v1-statistics > .st-panel {
  margin-bottom: 18px;
}
.st-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.st-panel-head h2 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.25px;
  color: #21372b;
}
.st-panel-head p {
  color: #829087;
  font-size: 10px;
  margin-top: 4px;
  max-width: 600px;
}
.st-chart {
  height: 225px;
  width: 100%;
  min-width: 0;
}
.st-trend .st-panel-head {
  margin-bottom: 3px;
}
.st-chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 17px;
  font-size: 10px;
  color: #7a897f;
  margin: 0 4px 8px;
}
.st-single-day {
  min-height: 275px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  color: var(--st-muted);
}
.st-single-day > button {
  background: none;
  border: 0;
  text-align: left;
  padding: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--st-teal);
}
.st-single-day small {
  max-width: 380px;
  font-size: 12px;
}
.st-single-previous {
  padding-top: 18px;
  font-size: 13px;
}
.st-chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.st-chart-legend i {
  width: 17px;
  height: 2px;
  background: #138273;
  position: relative;
}
.st-chart-legend i:after {
  content: "";
  display: block;
  border-radius: 50%;
  width: 5px;
  height: 5px;
  background: inherit;
  position: absolute;
  left: 6px;
  top: -1.5px;
}
.st-chart-legend i.previous {
  background: repeating-linear-gradient(
    to right,
    #bac7cb 0px,
    #bac7cb 3px,
    transparent 3px,
    transparent 5px
  );
}
.st-chart-note {
  font-size: 9px;
  color: #859287;
  margin: 7px 0 0 70px !important;
}
.st-tooltip {
  background: #fff;
  border: 1px solid #dce7df;
  border-radius: 9px;
  box-shadow: 0 5px 22px #18372716;
  padding: 12px 15px;
  min-width: 205px;
  font-size: 11px;
}
.st-tooltip > strong {
  display: block;
  margin-bottom: 9px;
}
.st-tooltip > span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 5px;
}
.st-tooltip small {
  color: #839085;
  font-size: 10px;
}
.st-tooltip hr {
  border: 0;
  border-top: 1px solid #edf1ee;
  margin: 9px 0;
}
.st-rank-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0 9px;
}
.st-rank-row {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) minmax(60px, 1.2fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  color: #4d6053;
  min-width: 0;
  width: 100%;
  font-size: 11px !important;
}
.st-rank-name {
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.st-rank-row strong {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 550;
  color: #2e4236;
  font-variant-numeric: tabular-nums;
}
.st-rank-track {
  display: block;
  background: #f0f4f1;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
}
.st-rank-track > span {
  display: block;
  height: 100%;
  border-radius: 4px;
  min-width: 0;
}
.st-rank-row:hover .st-rank-name {
  color: #0d8068;
  text-decoration: underline;
}
.st-rank-name small {
  display: block;
  color: var(--st-muted);
  font-size: 10px;
  margin-top: 2px;
}
.st-others {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: none;
  padding: 7px 0;
  margin: 3px 0;
  color: #6b7f70;
  font-size: 11px !important;
  text-align: left;
}
.st-others strong {
  margin-left: auto;
  color: #2f4838;
  font-weight: 500;
}
.st-rank-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #edf2ee;
  padding-top: 13px;
  margin-top: 10px;
  font-size: 11px;
  color: #76877b;
}
.st-rank-total > span strong {
  color: #2b4434;
  font-size: 15px;
  font-weight: 600;
  margin-left: 7px;
  white-space: nowrap;
}
.v1-statistics .st-text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  padding: 0;
  color: #167d64;
  font-size: 12px;
  text-align: left;
}
.v1-statistics .st-text-button:hover {
  text-decoration: underline;
}
.st-negative {
  color: #bd5a47 !important;
}
.st-donut-body {
  display: flex;
  gap: 24px;
  align-items: center;
  min-height: 144px;
}
.st-donut {
  position: relative;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  background: none;
  border: 0;
  padding: 0;
}
.st-donut > span {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.st-donut strong {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
  color: #243d2e;
}
.st-donut small {
  font-size: 9px;
  color: #587160;
  max-width: 70px;
  line-height: 1.4;
  margin-top: 3px;
}
.st-donut-legend {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.st-donut-legend > button {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.st-donut-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}
.st-donut-legend span {
  color: #4e6656;
  font-size: 11px;
  line-height: 1.4;
}
.st-donut-legend strong {
  display: flex;
  align-items: center;
  gap: 19px;
  color: #203b2b;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 600;
}
.st-donut-legend small {
  color: #8d9b91;
  font-size: 10px;
  font-weight: 400;
}
.st-small-note {
  font-size: 10px !important;
  line-height: 1.6 !important;
  color: #7d8d80 !important;
  margin-top: 13px !important;
}
.st-status-bar {
  height: 24px;
  width: 100%;
  display: flex;
  overflow: hidden;
  border-radius: 5px;
  margin: 29px 0 18px;
  gap: 2px;
}
.st-status-bar button {
  border: 0;
  padding: 0;
  min-width: 3px;
  flex-basis: 0;
}
.st-status-legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.st-status-legend button {
  border: 0;
  background: none;
  text-align: left;
  color: #4c6152;
  padding: 0;
  min-width: 0;
}
.st-status-legend button > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  white-space: nowrap;
}
.st-status-legend i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.st-status-legend strong {
  display: block;
  font-size: 21px;
  color: #253d2d;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 5px;
}
.st-status-legend small {
  color: #8b9b8f;
  font-size: 10px;
}
.st-followup .st-panel-head {
  margin-bottom: 13px;
}
.st-followup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.st-followup-grid > button,
.st-followup-grid > a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  background: none;
  border: 0;
  text-align: left;
  padding: 0 17px 0 0;
  color: #365c42;
  font-size: 12px;
  border-right: 1px solid #e3eee6;
}
.st-followup-grid > :last-child {
  border-right: 0;
  padding-right: 0;
}
.st-followup-grid > * > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.st-followup-grid strong {
  font-weight: 500;
  font-size: 11px;
  line-height: 1.5;
}
.st-followup-grid small {
  font-size: 10px;
  color: #7e9284;
  margin-top: 4px;
}
.st-followup-grid > * > svg:last-child {
  color: #2d936c;
  flex-shrink: 0;
}
.st-follow-icon {
  height: 43px;
  width: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9f6ee;
  color: #248969;
  flex-shrink: 0;
}
.st-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 2px;
  font-size: 9px;
  color: #819485;
  flex-wrap: wrap;
}
.st-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.st-fresh-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #57ad8b;
}
.st-loading-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #658171;
  font-size: 13px;
  padding: 24px;
}
.st-loading-label > svg {
  animation: st-spin 1s linear infinite;
}
.st-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.st-skeleton-grid > div,
.st-skeleton-chart {
  background: #e6efea;
  border-radius: 12px;
  animation: st-pulse 1.5s ease-in-out infinite;
}
.st-skeleton-grid > div {
  height: 126px;
}
.st-skeleton-chart {
  height: 315px;
  margin-top: 18px;
}
.st-error {
  background: #fff;
  border: 1px solid #efdcd5;
  border-radius: 12px;
  padding: 35px;
  text-align: center;
  color: #90583e;
}
.st-error svg {
  color: #bc7744;
  margin-bottom: 10px;
}
.st-error h2 {
  font-size: 18px;
  margin-bottom: 7px;
}
.st-error p {
  font-size: 13px;
  margin: 8px 0 18px;
}
.st-empty {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #86988b;
  text-align: center;
  font-size: 12px;
}
.st-empty > span {
  height: 49px;
  width: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0f7f2;
  color: #81a990;
}
.st-definition {
  display: inline-flex;
  position: relative;
  vertical-align: middle;
  margin-left: 4px;
  color: #94a59a;
}
.st-definition > span {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 7px);
  width: 250px;
  background: #234c38;
  color: #fff;
  font-size: 11px;
  padding: 10px;
  border-radius: 6px;
  z-index: 12;
}
.st-definition:hover > span,
.st-definition:focus > span {
  display: block;
}
.st-ledger {
  margin: 4px 0 0;
}
.st-ledger > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid #eef2ee;
  font-size: 12px;
}
.st-ledger dt {
  color: #6b7e70;
}
.st-ledger dd {
  margin: 0;
  color: #2c4633;
  font-weight: 550;
  white-space: nowrap;
}
.st-ledger .st-ledger-total {
  padding: 14px 0;
  border-color: #dce9e0;
}
.st-ledger-total dd {
  font-size: 22px;
  color: #127956;
  font-weight: 600;
}
.st-ledger-total dt {
  color: #214d33;
  font-weight: 550;
  align-self: center;
}
.st-metric-list {
  display: flex;
  flex-direction: column;
}
.st-metric-list > button {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  background: none;
  border: 0;
  border-bottom: 1px solid #edf2ed;
  padding: 17px 0;
  text-align: left;
  font-size: 12px;
  color: #546d5b;
}
.st-metric-list strong {
  font-weight: 600;
  color: #2a4e36;
  white-space: nowrap;
  margin-left: auto;
}
.st-metric-list > button > svg {
  color: #8eb699;
}
.st-segment {
  display: flex;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 7px;
  background: #f0f5f1;
  gap: 2px;
}
.st-segment > button {
  border: 0;
  background: none;
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 5px;
  color: #7c9280;
}
.st-segment > button.active {
  background: #fff;
  box-shadow: 0 1px 4px #1b4e2c0a;
  color: #2b7951;
}
.st-table-scroll {
  max-width: 100%;
  overflow: auto;
}
.v1-statistics table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  color: #536e5c;
}
.v1-statistics th {
  font-size: 10px;
  letter-spacing: 0.01em;
  color: #87958b;
  font-weight: 500;
  background: #f8faf8;
  padding: 11px 12px;
  white-space: nowrap;
  border-bottom: 1px solid #e4ece6;
}
.v1-statistics td {
  padding: 13px 12px;
  border-bottom: 1px solid #edf2ed;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.v1-statistics td:first-child {
  min-width: 100px;
}
.v1-statistics td small {
  display: block;
  font-size: 10px;
  color: #8c9c91;
  margin-top: 5px;
}
.v1-statistics td strong {
  font-weight: 600;
  color: #34533e;
}
.v1-statistics td:not(:first-child) {
  vertical-align: middle;
}
.v1-statistics tfoot td,
.v1-statistics tfoot th {
  background: #f5faf6;
  font-weight: 600;
  color: #335b40;
  padding-top: 13px;
  padding-bottom: 13px;
}
.st-row-rank {
  display: inline-block;
  color: #9dad9e;
  font-size: 10px;
  width: 27px;
}
.st-chart-values {
  height: 235px;
}
.st-chart-values td {
  padding: 8px 10px;
}
.st-count-rows {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 12px 0;
}
.st-count-rows > div {
  display: grid;
  grid-template-columns: 130px 1fr 35px;
  align-items: center;
  gap: 15px;
  font-size: 12px;
}
.st-count-rows > div > div {
  height: 10px;
  background: #edf5ef;
  border-radius: 5px;
  overflow: hidden;
}
.st-count-rows i {
  display: block;
  height: 100%;
  background: #4faa87;
  border-radius: 5px;
}
.st-count-rows strong {
  text-align: right;
  color: #365b43;
  font-weight: 600;
}
.st-registration {
  display: flex;
  align-items: baseline;
  gap: 15px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.st-registration > strong {
  font-size: 35px;
  font-weight: 600;
  color: #21714d;
}
.st-registration > span {
  font-size: 12px;
  color: #798d7e;
}
.st-warning-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.st-warning-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #edf3ef;
}
.st-warning-list svg {
  flex-shrink: 0;
  color: #a99a64;
}
.st-warning-list p {
  flex: 1;
  color: #6d8174;
  font-size: 12px;
}
.st-warning-list strong {
  padding: 2px 8px;
  background: #f3f7f4;
  border-radius: 5px;
  font-weight: 600;
  color: #617d69;
  font-size: 12px;
}
.st-schedule-chart {
  height: 215px;
}
dialog.st-detail-dialog {
  padding: 0;
  border: 1px solid #dce6de;
  border-radius: 15px;
  max-width: min(1100px, calc(100vw - 48px));
  width: 1100px;
  min-height: 0;
  max-height: calc(100vh - 80px);
  background: #fff;
  color: #294932;
  box-shadow: 0 20px 80px #112e2930;
  overflow: hidden;
}
dialog.st-detail-dialog::backdrop {
  background: rgba(25, 45, 37, 0.35);
  backdrop-filter: blur(3px);
}
.st-detail-body {
  padding: 24px;
  max-height: calc(100vh - 82px);
  overflow: auto;
}
.st-detail-body > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e4eee6;
  margin-bottom: 15px;
}
.st-detail-body > header h2 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 650;
}
.st-detail-body > header p {
  font-size: 12px;
  color: #819488;
  margin-top: 5px;
}
.st-detail-body td:nth-child(2) {
  min-width: 180px;
  max-width: 260px;
  overflow-wrap: anywhere;
}
.st-detail-body td:nth-child(3) {
  min-width: 155px;
  max-width: 240px;
  overflow-wrap: anywhere;
}
.st-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 18px;
}
.st-pagination > span {
  font-size: 11px;
  color: #7c9180;
  margin-right: 9px;
}
.st-pagination > button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #dce8df;
  background: #fff;
  border-radius: 6px;
  color: #54725e;
}
.st-brief-health {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 17px;
  background: #f5faf6;
  border: 1px solid #e5eee7;
  border-radius: 9px;
  margin-bottom: 17px;
}
.st-brief-health > div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.st-brief-health svg {
  color: #539c78;
  flex-shrink: 0;
}
.st-brief-health strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: #436e50;
}
.st-brief-health small {
  display: block;
  font-size: 10px;
  color: #809486;
  line-height: 1.6;
  margin-top: 4px;
}
.st-brief-warning,
.st-brief-success {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 !important;
  padding: 11px 14px;
  background: #fff8ec;
  border: 1px solid #efdfbd;
  border-radius: 7px;
  font-size: 11px;
  color: #93713b;
}
.st-brief-warning svg,
.st-brief-success svg {
  flex-shrink: 0;
}
.st-brief-success {
  background: #eef8f0;
  border-color: #cde6d2;
  color: #487b52;
}
.st-brief-prepare {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.st-brief-prepare label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  color: #7d9584;
}
.st-brief-prepare select,
.st-brief-prepare input {
  min-height: 37px;
  padding: 7px 11px;
  background: #fff;
  color: #42694e;
  border: 1px solid #dce7df;
  border-radius: 6px;
  font-size: 12px;
}
.st-brief-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  background: #eff4f0;
  color: #6b8572;
  font-size: 10px;
}
.st-brief-status.recipient_accepted {
  background: #e4f5e8;
  color: #378354;
}
.st-brief-status.smtp_accepted {
  background: #edf4fa;
  color: #54819a;
}
.st-brief-status.failed,
.st-brief-status.uncertain {
  background: #fcf0e7;
  color: #a57347;
}
.st-brief-recipient {
  overflow-wrap: anywhere;
  max-width: 240px;
}
.st-brief-dialog iframe {
  width: 100%;
  height: 55vh;
  border: 1px solid #e1ebe3;
  border-radius: 8px;
  background: #f4f9f5;
}
.st-brief-confirm {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid #e3ede5;
}
.st-brief-confirm > label {
  flex: 1;
  min-width: 220px;
  font-size: 12px;
  color: #6c8875;
  line-height: 1.6;
}
.st-brief-confirm input {
  accent-color: #21845f;
  margin-right: 6px;
}
.st-brief-confirm > p {
  flex-basis: 100%;
}
.st-brief-dialog .st-detail-body > header p {
  overflow-wrap: anywhere;
}
.st-briefs .st-table-scroll {
  max-height: 490px;
}
@media (max-width: 950px) {
  .st-brief-health {
    grid-template-columns: 1fr;
  }
  .st-brief-prepare label {
    flex: 1;
    min-width: 160px;
  }
  .st-brief-prepare .st-primary {
    width: 100%;
  }
}
@keyframes st-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes st-pulse {
  50% {
    opacity: 0.55;
  }
}
@media (prefers-reduced-motion: reduce) {
  .v1-statistics * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1650px) {
  .v1-statistics {
    padding: 24px 34px;
  }
  .st-kpi-content > strong {
    font-size: 32px;
  }
  .st-chart {
    height: 255px;
  }
  .st-panel {
    padding: 22px 24px;
  }
  .st-panel-head h2 {
    font-size: 18px;
  }
  .st-rank-row {
    font-size: 12px !important;
  }
  .st-rank-row strong {
    font-size: 12px;
  }
  .st-rank-list {
    gap: 21px;
  }
  .st-kpi-label {
    font-size: 13px;
  }
  .st-donut {
    width: 165px;
    height: 165px;
  }
}
@media (max-width: 1250px) {
  .v1-statistics {
    padding: 18px;
  }
  .st-range-bar {
    flex-wrap: wrap;
  }
  .st-calendar-wrap {
    margin-left: auto;
  }
  .st-kpi {
    gap: 9px !important;
    padding: 17px 12px !important;
  }
  .st-kpi-icon {
    width: 38px;
    height: 38px;
  }
  .st-kpi-icon svg {
    width: 22px;
    height: 22px;
  }
  .st-kpi-content > strong {
    font-size: 23px;
  }
  .st-kpi-label {
    font-size: 11px;
  }
  .st-main-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
  .st-panel {
    padding: 17px;
  }
  .st-panel-head h2 {
    font-size: 15px;
  }
  .st-donut {
    width: 127px;
    height: 127px;
  }
  .st-donut-body {
    gap: 13px;
  }
  .st-status-legend {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
  .st-status-legend > button {
    min-width: 55px;
  }
  .st-followup-grid {
    gap: 12px;
  }
  .st-followup-grid > button,
  .st-followup-grid > a {
    gap: 8px;
    padding-right: 10px;
  }
  .st-follow-icon {
    width: 34px;
    height: 34px;
  }
  .st-followup-grid strong {
    font-size: 10px;
  }
  .st-rank-row {
    grid-template-columns: minmax(65px, 1fr) minmax(40px, 0.75fr) auto;
    gap: 6px;
  }
}
@media (max-width: 950px) {
  .st-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .st-kpi-content > strong {
    font-size: 29px;
  }
  .st-kpi-icon {
    width: 47px;
    height: 47px;
  }
  .st-kpi {
    min-height: 112px !important;
  }
  .st-main-grid,
  .st-secondary-grid {
    grid-template-columns: 1fr;
  }
  .st-rank-list {
    gap: 14px;
  }
  .st-rank-row {
    grid-template-columns: minmax(130px, 1fr) minmax(70px, 1.6fr) auto;
  }
  .st-rank-track {
    height: 23px;
  }
  .st-rank-row strong {
    min-width: 100px;
    text-align: right;
  }
  .st-donut-body {
    justify-content: flex-start;
    gap: 35px;
  }
  .st-donut-legend {
    max-width: 280px;
  }
  .st-status-legend {
    flex-wrap: nowrap;
  }
  .st-status-legend > button {
    min-width: 0;
  }
  .st-followup-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .st-followup-grid > button,
  .st-followup-grid > a {
    border: 0;
    padding: 0 0 12px;
    border-bottom: 1px solid #e7efe9;
  }
  .st-followup-grid > :last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .st-followup-grid strong {
    font-size: 12px;
  }
  .st-followup-grid small {
    font-size: 11px;
  }
  .st-page-head {
    gap: 15px;
  }
  .st-practitioner select {
    width: 195px;
  }
  .st-heading h1 {
    font-size: 30px;
  }
  .st-heading img {
    width: 86px;
    height: 85px;
  }
  .st-heading {
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .v1-statistics {
    padding: 14px 12px;
  }
  .st-page-head {
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 13px;
    min-height: 0;
  }
  .st-heading h1 {
    font-size: 30px;
  }
  .st-heading img {
    width: 85px;
    height: 78px;
  }
  .st-head-tools {
    width: 100%;
    justify-content: space-between;
  }
  .st-practitioner {
    flex: 1;
  }
  .st-practitioner select {
    width: 100%;
  }
  .st-range-bar {
    padding: 9px;
    gap: 10px;
  }
  .st-presets {
    gap: 5px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .st-presets button {
    font-size: 10px;
    padding: 8px 4px;
    min-height: 35px;
  }
  .st-presets button:last-child {
    grid-column: span 2;
  }
  .st-calendar-wrap {
    width: 100%;
    margin: 0;
  }
  .st-date-button {
    width: 100%;
    font-size: 11px !important;
    justify-content: space-between;
  }
  .st-date-popover {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: auto;
  }
  .st-tabs {
    gap: 0;
    margin: 7px 0 14px;
  }
  .st-tabs button {
    padding: 10px 9px;
    font-size: 11px;
    min-height: 43px;
  }
  .st-kpis {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-bottom: 13px;
  }
  .st-kpi {
    min-height: 93px !important;
    padding: 15px 17px !important;
    align-items: center !important;
    gap: 16px !important;
  }
  .st-kpi-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 10px;
    align-items: center;
  }
  .st-kpi-label {
    font-size: 12px;
  }
  .st-kpi-content > strong {
    font-size: 26px;
    text-align: right;
  }
  .st-kpi-detail {
    grid-column: 1/-1;
    margin-top: 0;
    font-size: 10px;
    justify-content: flex-start;
  }
  .st-kpi-arrow {
    display: none;
  }
  .st-main-grid,
  .st-secondary-grid {
    gap: 13px;
    margin-bottom: 13px;
  }
  .st-panel {
    padding: 16px 14px;
    border-radius: 10px;
  }
  .v1-statistics > .st-panel {
    margin-bottom: 13px;
  }
  .st-panel-head {
    gap: 8px;
    margin-bottom: 13px;
  }
  .st-panel-head h2 {
    font-size: 15px;
  }
  .st-panel-head p {
    font-size: 10px;
  }
  .st-chart {
    height: 215px;
  }
  .st-chart-legend {
    gap: 12px;
    font-size: 9px;
    margin-bottom: 9px;
  }
  .st-chart-note {
    margin-left: 0 !important;
    line-height: 1.5;
  }
  .st-rank-row {
    grid-template-columns: minmax(75px, 1fr) minmax(45px, 0.85fr) auto;
    font-size: 11px !important;
    gap: 8px;
  }
  .st-rank-row strong {
    min-width: 0;
    font-size: 10px;
  }
  .st-rank-total > span strong {
    font-size: 13px;
  }
  .st-donut-body {
    gap: 18px;
  }
  .st-donut {
    width: 126px;
    height: 126px;
  }
  .st-donut-legend span {
    font-size: 10px;
  }
  .st-status-legend {
    gap: 7px;
  }
  .st-status-legend button > span {
    font-size: 8px;
    gap: 3px;
    white-space: normal;
  }
  .st-status-legend strong {
    font-size: 19px;
  }
  .st-status-legend i {
    width: 7px;
    height: 7px;
  }
  .st-status-bar {
    margin-top: 20px;
  }
  .st-segment > button {
    font-size: 9px;
    padding: 6px;
  }
  .st-footer {
    font-size: 8px;
    gap: 7px;
    line-height: 1.6;
  }
  .st-warning-list p {
    font-size: 11px;
  }
  .st-count-rows > div {
    grid-template-columns: 100px 1fr 28px;
    gap: 10px;
    font-size: 11px;
  }
  .st-skeleton-grid {
    grid-template-columns: 1fr;
  }
  .st-skeleton-grid > div {
    height: 90px;
  }
  dialog.st-detail-dialog {
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 35px);
    border-radius: 12px;
  }
  .st-detail-body {
    padding: 17px;
    max-height: calc(100dvh - 37px);
  }
  .st-detail-body > header h2 {
    font-size: 18px;
  }
  .st-detail-body > header p {
    font-size: 10px;
  }
  .st-detail-body > header {
    padding-bottom: 12px;
  }
  .st-error {
    padding: 24px 16px;
  }
}
.clinical-print-backdrop {
  z-index: 1600;
  padding: 24px;
}
.clinical-print-dialog.insurance-workflow { width:min(1480px,97vw); background:#f5f9f9; }
.insurance-workflow { scroll-padding-top:150px; scroll-padding-bottom:105px; }
.insurance-workflow :is(input,select,textarea,article){scroll-margin-top:150px;scroll-margin-bottom:105px;}
.insurance-workflow [hidden] { display:none!important; }
.insurance-workflow .insurance-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; padding:16px 24px; border-bottom:1px solid #d8e6e3; background:#fff; }
.insurance-workflow .insurance-steps button { display:flex; align-items:center; gap:10px; min-width:0; text-align:left; border-color:transparent; padding:12px; }
.insurance-steps button>span:last-child { display:grid; gap:4px; min-width:0; }
.insurance-steps strong { font-size:13px; }
.insurance-steps small { font-size:11px; color:#536e68; }
.insurance-workflow .insurance-steps button[aria-current="step"] { background:#e5f4ef; border-color:#71ab9d; color:#075c50; }
.insurance-step-number { flex:0 0 28px; height:28px; border-radius:50%; display:grid; place-items:center; background:#eef4f2; font-weight:700; }
.insurance-steps [aria-current="step"] .insurance-step-number { background:#08786a; color:#fff; }
.insurance-step-heading h3 { margin:5px 0; font-size:23px; outline-offset:4px; }
.insurance-step-heading>small { color:#49665f; font-size:11px; font-weight:700; letter-spacing:.07em; }
.insurance-step-heading p { color:#536b65; font-size:13px; }
.insurance-selection-summary { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 16px; background:#eaf3f0; border-radius:10px; }
.insurance-selection-summary>div { min-width:0; display:grid; gap:5px; overflow-wrap:anywhere; }
.insurance-selection-summary small { color:#52685f; }
.insurance-selection-summary button { flex-shrink:0; }
.insurance-guidance { background:#eaf5ee; border:1px solid #d4e6dc; border-radius:12px; padding:20px; }
.insurance-guidance strong { color:#166a55; }
.insurance-guidance p { color:#415b53; font-size:13px; }
.insurance-workflow .insurance-field-error { color:#9b3c23; font-weight:600; }
.insurance-document-access{min-width:0;border-top:1px solid #d8e6e3;padding-top:14px;font-size:13px;}
.insurance-document-access p{line-height:1.6;margin:8px 0;overflow-wrap:anywhere;}
.insurance-document-access a{color:#086a5e;font-size:12px;text-decoration:underline;overflow-wrap:anywhere;}
.insurance-document-access summary{cursor:pointer;font-weight:650;color:#155f53;line-height:1.6;}
.insurance-document-access ul{list-style:none;padding:0;margin:14px 0;display:grid;gap:12px;}
.insurance-document-access li{padding:14px;border:1px solid #d8e6e3;border-radius:10px;background:#f8fbfa;min-width:0;}
.insurance-access-title{display:flex;gap:8px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;}
.insurance-access-title strong{font-size:13px;overflow-wrap:anywhere;}
.insurance-access-title span{font-size:11px;padding:3px 7px;border-radius:6px;}
.insurance-access-ready{background:#e5f4ee;color:#126551;}
.insurance-access-pending{background:#fff3da;color:#775111;}
.insurance-access-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;}
.insurance-access-actions button{font-size:12px;}
.insurance-access-notice{margin-bottom:14px;padding:12px;border:1px solid #c5deda;border-radius:10px;background:#ecf6f3;}
.insurance-workflow [aria-invalid="true"] { border-color:#b87b47; }
.insurance-workflow .insurance-act-description { color:#536c66; font-size:12px; }
.insurance-act-money { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:12px 0; padding:12px; border-radius:8px; background:#f1f6f4; gap:10px; }
.insurance-act-money dt { color:#506860; font-size:11px; }
.insurance-act-money dd { margin:4px 0 0; font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.insurance-review-list { display:grid; gap:16px; margin:0; }
.insurance-review-list>div { display:grid; grid-template-columns:minmax(90px,1fr) minmax(0,2fr); gap:15px; }
.insurance-review-list dt { color:#536b65; font-size:13px; }
.insurance-review-list dd { margin:0; font-weight:600; font-size:13px; overflow-wrap:anywhere; }
.insurance-workflow .insurance-navigation { position:sticky; bottom:0; z-index:3; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 24px; background:#fff; border-top:1px solid #d8e6e3; box-shadow:0 -5px 18px #214a3808; }
.insurance-navigation>div:first-child { display:grid; gap:5px; }
.insurance-navigation strong { font-size:13px; }
.insurance-navigation small { color:#546b63; font-size:11px; }
.insurance-navigation>div:last-child { display:flex; gap:8px; flex-shrink:0; }
.insurance-workflow header small { color:#157365; font-size:11px; letter-spacing:.1em; font-weight:700; }
.insurance-workflow header h2 { overflow-wrap:anywhere; }
.insurance-workflow-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(420px,1fr); gap:24px; padding:24px; align-items:start; }
.insurance-workflow fieldset.insurance-form-pane { padding:0; border:0; min-width:0; gap:20px; }
.insurance-workflow .insurance-form-pane[data-read-only] :is(input,textarea):disabled { opacity:1; color:#294541; -webkit-text-fill-color:#294541; background:#f4f8f7; cursor:default; }
.insurance-selector-card, .insurance-workflow fieldset.insurance-section { border:1px solid #d8e6e3; border-radius:14px; padding:20px; background:white; display:grid; gap:14px; min-width:0; }
.insurance-section legend span,.insurance-preview-pane h3>span { color:#117666; margin-right:6px; }
.insurance-field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.insurance-workflow .insurance-field { display:flex; flex-direction:column; align-items:stretch; gap:6px; min-width:0; }
.insurance-field:has(textarea),.insurance-field:has(select),.insurance-field:has(input[id*="Address"]),.insurance-field:has(input[id*="Name"]) { grid-column:1/-1; }
.insurance-workflow textarea { resize:vertical; min-height:80px; width:100%; box-sizing:border-box; border:1px solid #ccdadd; border-radius:7px; padding:9px; font:inherit; color:inherit; }
.insurance-workflow input,.insurance-workflow select { box-sizing:border-box; }
.insurance-workflow :is(input,select,textarea,button,a):focus-visible { outline:3px solid #238f80; outline-offset:2px; }
.insurance-field small,.insurance-help,.insurance-acts-heading small { font-size:11px; color:#586c6a; line-height:1.5; }
.insurance-prefilled { color:#116b53!important; padding:2px 6px; background:#e8f6ef; border-radius:5px; margin-left:4px; white-space:nowrap; }
.insurance-beneficiary { background:#eef7f5; padding:10px; border-radius:7px; overflow-wrap:anywhere; }
.insurance-preview-pane { position:sticky; top:120px; display:grid; gap:14px; min-width:0; }
.insurance-preview-pane h3 { margin:0; font-size:19px; }
.insurance-numbered-card { display:grid; gap:12px; min-width:0; padding:18px; border:1px solid #bcd9d2; border-radius:14px; background:#fff; }
.insurance-numbered-heading { display:flex; align-items:start; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.insurance-numbered-heading small { color:#176a5f; font-size:10px; font-weight:700; letter-spacing:.08em; }
.insurance-numbered-heading h4 { margin:5px 0 0; font-size:15px; color:#193b37; }
.insurance-numbered-heading>span { padding:5px 8px; background:#e9f5f2; border-radius:6px; color:#17594e; font-size:12px; font-weight:600; white-space:nowrap; }
.insurance-numbered-card>p,.insurance-numbered-card details p { margin:0; font-size:13px; line-height:1.6; }
.insurance-numbered-card details p { margin-top:10px; }
.insurance-numbered-card .insurance-numbered-paper { padding-left:10px; border-left:3px solid #79b6a8; color:#365851; }
.insurance-numbered-card .insurance-checklist { margin:0; font-size:12px; }
.insurance-preview-pane iframe { width:100%; height:590px; border:1px solid #cbdeda; border-radius:12px; background:#edf3f2; }
.insurance-preview-pane .clinical-empty { min-height:280px; padding:24px; }
.insurance-workflow .insurance-form-meta { padding:14px; display:grid; gap:5px; background:#e9f5f2; border-radius:10px; }
.insurance-form-meta small { font-size:12px; }
.insurance-workflow .primary-button,.insurance-download { background:#08786a!important; border-color:#08786a!important; color:white!important; text-align:center; border-radius:9px; padding:12px; }
.insurance-missing,.insurance-checklist { padding:14px; border:1px solid #e2e7df; border-radius:10px; background:#fff; }
.insurance-missing { background:#fff9ed; border-color:#e5d5b3; }
.insurance-missing ul { margin:10px 0 0; padding-left:18px; max-height:170px; overflow:auto; }
.insurance-workflow .insurance-missing button { border:0; padding:3px 0; background:none; color:#815a15; text-align:left; text-decoration:underline; }
.insurance-checklist li { font-size:13px; margin:7px 0; }
.insurance-act { border-top:1px solid #dbe6e4; padding:14px 0 2px; overflow-wrap:anywhere; }
.insurance-act .insurance-field-grid { margin-top:12px; }
.insurance-coding-hint { margin:10px 0; padding:10px 12px; border-left:3px solid #258378; background:#edf6f3; color:#234f49; border-radius:0 6px 6px 0; font-size:12px; line-height:1.55; }
.insurance-coding-hint p { margin:0 0 4px; }
.insurance-coding-hint a { color:#205b91; text-decoration:underline; }
.insurance-coding-hint button { display:block; margin-top:8px; }
.insurance-act strong { font-size:14px; }
.insurance-act > .insurance-help { display:block; margin-top:4px; }
.insurance-acts-heading { display:grid; gap:5px; }
.insurance-optional-acts { margin-top:14px; padding:14px; border:1px solid #c8dfd9; border-radius:10px; background:#f6faf9; min-width:0; }
.insurance-optional-acts>summary { cursor:pointer; color:#155f53; font-size:14px; font-weight:650; line-height:1.6; overflow-wrap:anywhere; }
.insurance-optional-acts>summary span { display:inline-block; margin-left:8px; font-size:12px; font-weight:500; }
.insurance-optional-acts>summary:focus-visible { outline:2px solid #08786a; outline-offset:5px; border-radius:4px; }
.insurance-optional-acts[open]>summary { margin-bottom:12px; }
.insurance-workflow .insurance-validation { display:flex; flex-wrap:nowrap; align-items:start; line-height:1.6; font-size:13px; }
.insurance-validation input { margin-top:4px; flex:0 0 16px; }
.insurance-blocked { background:#fff6e6; border:1px solid #e6d8bb; color:#6d501a; border-radius:8px; padding:12px; font-size:13px; }
.insurance-mobile-tabs { display:none; }
.insurance-drafts,.insurance-draft-conflict{margin:16px 24px 0;padding:16px;border:1px solid #c8dfd9;border-radius:12px;background:#fff;min-width:0;}
.insurance-draft-section>.insurance-draft-current{margin:16px 24px 0;font-size:12px;}
.insurance-drafts summary{cursor:pointer;font-weight:650;color:#155f53;}
.insurance-drafts p,.insurance-draft-conflict p{font-size:12px;line-height:1.6;color:#536b65;}
.insurance-drafts ul{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:10px;}
.insurance-drafts li,.insurance-draft-current{display:flex;gap:12px;align-items:center;justify-content:space-between;min-width:0;padding:12px;background:#f1f7f5;border-radius:8px;}
.insurance-drafts li>div{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere;}
.insurance-drafts small{font-size:11px;color:#536b65;}
.insurance-drafts li strong{font-size:13px;}
.insurance-drafts button{flex-shrink:0;}
.insurance-draft-pages{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:12px;margin-top:14px;}
.insurance-draft-conflict{border-color:#d8b975;background:#fff9ed;}
.insurance-draft-conflict button{margin:6px 8px 0 0;}
.insurance-draft-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 24px;border-bottom:1px solid #d8e6e3;}
.insurance-draft-actions>div:first-child{display:grid;gap:5px;min-width:0;}
.insurance-draft-actions strong{font-size:13px;}
.insurance-draft-actions small{font-size:11px;line-height:1.5;color:#536b65;}
.insurance-draft-actions>div:last-child{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.insurance-draft-actions button{font-size:12px;}
@media(max-width:850px){.insurance-draft-actions{align-items:stretch;flex-direction:column;padding:14px 16px}.insurance-draft-actions>div:last-child{justify-content:flex-start}.insurance-drafts,.insurance-draft-conflict,.insurance-draft-section>.insurance-draft-current{margin:12px 16px 0}.insurance-draft-current{flex-wrap:wrap}.insurance-drafts li{align-items:start}.insurance-draft-pages{flex-wrap:wrap}}
@media(max-width:420px){.insurance-drafts li{flex-direction:column}.insurance-draft-actions>div:last-child{display:grid;grid-template-columns:1fr;width:100%}.insurance-draft-actions button{width:100%}}
@media(max-width:1000px){
 .insurance-workflow-grid{grid-template-columns:minmax(0,1fr);padding:16px;}
 .insurance-preview-pane{position:static;}
 .insurance-mobile-tabs{display:flex;padding:12px 16px;gap:8px;border-bottom:1px solid #d8e6e3;}
 .insurance-mobile-tabs button[aria-selected="true"]{background:#08786a;color:white;}
 .insurance-workflow-grid[data-mobile-panel="fields"] .insurance-preview-pane,.insurance-workflow-grid[data-mobile-panel="preview"] .insurance-form-pane{display:none;}
 .insurance-workflow .insurance-steps{padding:12px 16px;gap:4px;}
 .insurance-steps button>span:last-child small{display:none;}
 .insurance-workflow .insurance-steps button{padding:8px;gap:6px;}
}
@media(max-width:560px){.insurance-field-grid{grid-template-columns:minmax(0,1fr)}.insurance-selector-card,.insurance-workflow fieldset.insurance-section{padding:14px}.insurance-workflow header h2{font-size:19px}.insurance-preview-pane iframe{height:480px}
 .clinical-print-backdrop:has(.insurance-workflow){padding:8px;}
 .clinical-print-dialog.insurance-workflow>header{padding:14px 16px;gap:12px;}
 .insurance-workflow>header p{font-size:13px;line-height:1.45;}
 .insurance-workflow>header small{font-size:10px;letter-spacing:.06em;}
 .clinical-print-dialog.insurance-workflow>header>button{flex-basis:44px;height:44px;}
 .insurance-workflow .insurance-steps{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;}
 .insurance-steps strong{font-size:11px;}
 .insurance-workflow .insurance-navigation{padding:12px;align-items:stretch;flex-direction:column;}
 .insurance-navigation>div:last-child{justify-content:space-between;}
 .insurance-act-money{gap:5px;padding:9px;}
 .insurance-act-money dd{font-size:12px;}
 .insurance-review-list>div{grid-template-columns:minmax(0,1fr);gap:5px;}
 .insurance-workflow{scroll-padding-top:200px;scroll-padding-bottom:150px;}
 .insurance-workflow :is(input,select,textarea,article){scroll-margin-top:200px;scroll-margin-bottom:150px;}
}
.clinical-print-dialog {
  width: min(1280px, 96vw);
  max-height: 94vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 22px 80px #18343d38;
  color: #203747;
}
.clinical-print-dialog > header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid #d9e5e9;
}
.clinical-print-dialog h2 {
  margin: 0;
  font-size: 23px;
}
.clinical-print-dialog > header > button {
  flex: 0 0 36px;
  align-self: flex-start;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
}
.clinical-print-dialog p {
  margin: 6px 0;
  line-height: 1.5;
}
.clinical-print-dialog button {
  cursor: pointer;
  border: 1px solid #cbdcde;
  border-radius: 8px;
  padding: 9px 12px;
  background: #fff;
  color: #234957;
}
.clinical-print-dialog button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.clinical-print-dialog button.primary-button {
  background: #0668de;
  color: #fff;
  border-color: #0668de;
}
.clinical-print-body {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}
.clinical-print-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.clinical-print-dialog label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.clinical-print-dialog label:has(select),
.clinical-print-dialog label:has(input:not([type="checkbox"])) {
  display: grid;
  gap: 6px;
}
.clinical-print-dialog input:not([type="checkbox"]),
.clinical-print-dialog select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccdadd;
  border-radius: 7px;
  background: #fff;
  color: inherit;
  min-width: 0;
}
.clinical-print-dialog fieldset {
  border: 1px solid #dce7e9;
  border-radius: 9px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.clinical-print-dialog legend {
  padding: 0 5px;
  font-weight: 600;
}
.clinical-print-inline {
  display: flex;
  gap: 12px;
}
.clinical-print-inline > * {
  flex: 1;
  min-width: 0;
}
.clinical-slots {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.clinical-slots span {
  padding: 6px 9px;
  border-radius: 5px;
  border: 1px solid #b8d5d2;
}
.clinical-slots .occupied {
  background: #ffedce;
  border-color: #deac54;
}
.clinical-acts {
  max-height: 230px;
  overflow: auto;
  display: grid;
  gap: 12px;
}
.clinical-acts label {
  flex-wrap: nowrap;
  align-items: start;
}
.clinical-acts small,
.clinical-initial-option small {
  display: block;
  margin-top: 5px;
  color: #586d78;
}
.clinical-print-preview {
  scroll-margin-top: 135px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.clinical-print-preview iframe {
  width: 100%;
  height: 500px;
  border: 1px solid #dce5e8;
  border-radius: 8px;
  background: #f2f7f7;
}
.clinical-empty {
  display: grid;
  place-content: center;
  min-height: 350px;
  background: #f1f8f7;
  border: 1px dashed #b2d3cd;
  border-radius: 12px;
  color: #52716f;
  text-align: center;
  line-height: 1.8;
}
.clinical-print-note,
.clinical-initial-option {
  font-size: 13px;
  padding: 10px 18px;
  background: #f2f7f8;
}
.clinical-error,
.clinical-notice {
  padding: 12px 24px;
  background: #fff0ef;
  color: #942f29;
}
.clinical-notice {
  background: #e8f6ef;
  color: #176747;
}
.clinical-warning {
  color: #996515;
}
.clinical-history {
  padding: 0 24px 24px;
}
.clinical-history summary {
  font-weight: 700;
  padding: 10px 0;
}
.clinical-history article {
  padding: 15px 0;
  border-bottom: 1px solid #e0e9ec;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.clinical-history-actions {
  display: flex;
  gap: 6px;
  align-items: start;
  flex-wrap: wrap;
  max-width: 420px;
}
.clinical-print-dialog :focus-visible {
  outline: 3px solid #32a9cb;
  outline-offset: 2px;
}
@media (max-width: 800px) {
  .clinical-print-backdrop {
    padding: 6px;
  }
  .clinical-print-body {
    grid-template-columns: 1fr;
    padding: 15px;
  }
  .clinical-print-preview iframe {
    height: 360px;
  }
  .clinical-history article {
    flex-direction: column;
  }
  .clinical-print-dialog {
    width: 98vw;
  }
  .clinical-print-inline {
    flex-wrap: wrap;
  }
}
.insurance-quick-options { display: flex; gap: 8px; margin-bottom: 10px; }
.insurance-quick-options button { flex: 1; padding: 10px; border: 1px solid #c7d5e7; border-radius: 8px; background: white; color: #1c416f; font-weight: 650; }
.insurance-quick-options button[aria-pressed="true"] { background: #e7f0ff; border-color: #005fe7; color: #0050bd; }
.insurance-controls { border: 0; margin: 0; min-width: 0; }
.insurance-patient-details { min-width: 0; border: 1px solid #d9e2ee; border-radius: 12px; padding: 14px; }
.insurance-saved-notice { color: #146c47; background: #edf9f1; padding: 10px; border-radius: 8px; }
.insurance-catalog-select > small {display:block;margin-top:5px;line-height:1.5;}
.insurance-choice { display:block; position:relative; width:100%; min-width:0; text-align:start; }
.insurance-choice-value { display:flex; align-items:center; gap:12px; min-height:42px; box-sizing:border-box; padding:9px 10px; border:1px solid #ccdadd; border-radius:7px; background:#fff; color:#294541; font:inherit; line-height:1.45; }
.insurance-choice-value>span { flex:1; min-width:0; white-space:normal; overflow-wrap:anywhere; }
.insurance-choice-value>svg { flex:0 0 16px; }
.insurance-choice>select.insurance-choice-native { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; font:inherit; }
.insurance-choice:has(select:focus-visible)>.insurance-choice-value { outline:3px solid #238f80; outline-offset:2px; }
.insurance-choice:has(select[aria-invalid="true"])>.insurance-choice-value { border-color:#b87b47; }
.insurance-choice:has(select:disabled)>.insurance-choice-value { background:#f4f8f7; }
.insurance-choice>select.insurance-choice-native:disabled { cursor:default; }
@media(forced-colors:active){
 .insurance-choice-value { color:CanvasText; background:Canvas; border-color:CanvasText; }
 .insurance-choice:has(select:focus-visible)>.insurance-choice-value { outline-color:Highlight; }
}
.insurance-practitioner-editor{margin:12px 0 18px;border:1px solid #c7dedb;border-radius:12px;background:#f5fbf9;min-width:0}
.insurance-practitioner-editor>button{display:flex;width:100%;justify-content:space-between;gap:16px;background:transparent;border:0;text-align:left;padding:14px;color:#12564e;font-weight:650}
.insurance-practitioner-editor>div{padding:0 16px 16px}
.insurance-practitioner-editor p{font-size:13px;color:#49635f;line-height:1.6}
.insurance-practitioner-editor fieldset{border:0;margin:12px 0;padding:0;min-width:0}
.insurance-practitioner-editor .insurance-practitioner-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.insurance-practitioner-field label{display:flex;flex-direction:column;gap:6px;min-width:0}
.insurance-practitioner-editor input:not([type=checkbox]),.insurance-practitioner-editor textarea{width:100%;box-sizing:border-box;min-width:0;background:#fff}
.insurance-practitioner-editor small{display:block;font-size:12px;line-height:1.5;color:#526964;overflow-wrap:anywhere}
.insurance-practitioner-field>button{border:0;background:transparent;color:#126b60;font-size:12px;text-align:left;padding:3px 0;overflow-wrap:anywhere;white-space:normal}
.insurance-practitioner-source{display:flex;flex-direction:column;gap:6px;margin:16px 0}
.insurance-section .insurance-practitioner-editor label.insurance-practitioner-confirm{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5}
.insurance-practitioner-confirm input{flex:0 0 auto;margin-top:3px}
.insurance-practitioner-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
.insurance-practitioner-actions button{white-space:normal;text-align:left}
.insurance-practitioner-error{border-left:3px solid #a9432d;background:#fff5ef;padding:8px 12px;margin-bottom:12px}
.insurance-practitioner-error p{color:#843a27}
@media(max-width:700px){.insurance-practitioner-editor .insurance-field-grid{grid-template-columns:1fr}.insurance-practitioner-actions button{width:100%}}
.patient-insurance-registration{grid-column:1/-1;border:1px solid #cddfdc;border-radius:14px;padding:18px;background:#f5faf9;min-width:0}
.insurance-registration-heading{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;margin-bottom:12px}
.insurance-registration-heading h3,.insurance-registration-parent h4{margin:0 0 6px;color:#143c38;font-size:16px}
.insurance-registration-heading p,.insurance-registration-parent p,.insurance-settings-panel>p{margin:0 0 12px;line-height:1.55;color:#516663;font-size:13px}
.insurance-registration-heading>span{font-size:12px;color:#286159;white-space:nowrap}
.patient-insurance-registration fieldset{border:0;padding:0;margin:0;min-width:0;display:grid;gap:14px}
.insurance-registration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.patient-insurance-registration label,.insurance-settings-practitioner{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px}
.patient-insurance-registration input,.patient-insurance-registration select,.insurance-settings-practitioner select{background:#fff;min-width:0;width:100%;box-sizing:border-box;border:1px solid #cbd6db;border-radius:8px;padding:10px;font:inherit;color:#253846}
.patient-insurance-registration small{font-size:12px;line-height:1.5;color:#536865}
.insurance-registration-note{padding:12px;border-radius:9px;background:#e8f3f0;color:#325a53;font-size:13px;line-height:1.6;margin:0}
.insurance-registration-parent{border-top:1px solid #cddfdc;padding-top:14px}
.insurance-registration-link{justify-self:start;background:none!important;border:0!important;padding:4px 0!important;color:#156e64;text-decoration:underline;text-underline-offset:3px;text-align:left;white-space:normal}
.insurance-settings-panel h1{font-size:24px;color:#183e38;line-height:1.3;margin:8px 0 16px}
.insurance-settings-panel .insurance-settings-eyebrow{letter-spacing:.08em;color:#277c70;font-size:11px;font-weight:700}
.insurance-settings-panel .insurance-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.insurance-settings-panel .insurance-practitioner-field input,.insurance-settings-panel .insurance-practitioner-field textarea,.insurance-settings-panel .insurance-practitioner-source input{width:100%;box-sizing:border-box;border:1px solid #cbd6db;border-radius:8px;padding:10px;background:#fff;color:#253846;font:inherit}
.insurance-settings-panel input:focus-visible,.insurance-settings-panel textarea:focus-visible,.patient-insurance-registration input:focus-visible,.patient-insurance-registration select:focus-visible{outline:2px solid #13776b;outline-offset:2px}
.insurance-settings-panel .insurance-practitioner-confirm{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.6}
.insurance-registration-success{color:#166149;background:#e9f6ee;padding:12px;border-radius:8px}
.insurance-settings-link{grid-column:1/-1;border:1px solid #cddfdc;border-radius:10px;padding:14px;background:#f5faf9;font-size:14px}
.insurance-settings-link a{color:#156e64;text-decoration:underline}
@media(max-width:650px){.insurance-registration-grid,.insurance-settings-panel .insurance-field-grid{grid-template-columns:1fr}.insurance-registration-heading{flex-direction:column}.patient-insurance-registration{padding:14px}.insurance-settings-panel h1{font-size:21px}}
.studio-backdrop{padding:0!important;background:#fff!important;align-items:stretch!important}
.clinical-print-dialog.insurance-studio{width:100vw;max-width:none;height:100dvh;max-height:none;border-radius:0;display:flex;flex-direction:column;background:#fff;overflow:auto;color:#17314d;font-size:14px;line-height:1.5;scroll-padding:30px 0 130px}
.insurance-studio :is(button,a,summary){-webkit-tap-highlight-color:transparent}
.insurance-studio button,.insurance-studio .studio-download{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 15px;border:1px solid #c8d8de;border-radius:8px;background:#fff;color:#17314d;font:inherit;cursor:pointer;line-height:1.35}
.insurance-studio button:hover:not(:disabled){border-color:#168d89;background:#f2f9f8}
.insurance-studio button:disabled{opacity:.5;cursor:not-allowed}
.insurance-studio .primary-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 22px;background:#00888b!important;border-color:#00888b!important;border-radius:9px;font-weight:600;min-height:48px;white-space:normal}
.insurance-studio :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #009893;outline-offset:3px}
.studio-brandbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:12px 32px;border-bottom:1px solid #e6edef;flex-shrink:0}
.studio-brandbar>span{display:flex;align-items:center;gap:7px;text-transform:uppercase;letter-spacing:.09em;font-size:12px;color:#58718a}
.studio-brandbar strong{color:#00888b}.studio-brandbar img{width:25px;height:25px;margin-right:3px}
.studio-brandbar>button{border:0;color:#58718a;min-height:32px;padding:5px 0}
.insurance-studio header.studio-header{position:static;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 32px 20px;background:#fff;border:0;flex-shrink:0}
.insurance-studio .studio-header h2{font-size:34px;line-height:1.15;margin:0 0 5px;letter-spacing:-.035em;color:#112e4e}
.studio-header p{margin:0;color:#647f99;font-size:16px}
.studio-steps{display:flex;align-items:center;gap:10px;color:#88a2b1}
.insurance-studio .studio-steps button{border:0;padding:5px 0;color:#7189a0;background:transparent;font-size:13px;text-align:left}
.studio-steps button>span{width:31px;height:31px;flex-shrink:0;border-radius:50%;border:1px solid #bacbd3;display:grid;place-items:center}
.studio-steps button[aria-current=step]{color:#007d80;font-weight:600}
.studio-steps button[aria-current=step]>span{background:#00898a;border-color:#00898a;color:#fff}
.studio-workspace{display:grid;grid-template-columns:minmax(300px,27.3%) minmax(0,1fr);gap:8px;padding-right:16px;flex:1;align-items:stretch}
.studio-summary{border:1px solid #e0e9ee;border-left:0;border-radius:0 7px 0 0;padding:23px 24px 28px 32px;min-width:0;background:#fff}
.studio-summary section,.studio-summary fieldset{margin:0;padding:22px 0;border:0;border-bottom:1px solid #dfebed;min-width:0;display:block;background:none}
.studio-summary>section:first-child{padding-top:0}
.studio-patient{display:flex!important;align-items:center;gap:13px}
.studio-patient>svg{flex-shrink:0}.studio-summary small{color:#637d93;font-size:11px;letter-spacing:.06em}
.studio-summary h3{font-size:17px;color:#142f4b;line-height:1.4;margin:4px 0;overflow-wrap:anywhere}
.studio-summary p{font-size:13px;color:#637b91;line-height:1.6;margin:5px 0 0;overflow-wrap:anywhere}
.studio-summary .studio-form-title{display:flex;gap:8px;align-items:flex-start}
.studio-form-title svg{flex-shrink:0;margin-top:3px}
.insurance-studio label{font-size:13px;color:#28445a}
.insurance-studio :is(input:not([type=checkbox]),select,textarea){width:100%;min-height:42px;border:1px solid #cadbdd;border-radius:7px;padding:9px 10px;background:white;color:#183d4d;font:inherit;max-width:100%}
.insurance-studio input[type=checkbox]{accent-color:#00888b;width:17px;height:17px;flex:0 0 17px}
.studio-insurer label{display:grid;gap:8px;margin:0 0 12px}.studio-insurer label:last-child{margin-bottom:0}
.studio-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.studio-section-title h3{display:flex;gap:9px;align-items:center;margin:0}
.insurance-studio .studio-section-title>button{border:0;padding:5px;min-height:34px;flex-shrink:0}
.studio-care-summary article{padding:17px 0;border-bottom:1px solid #e4eded;overflow-wrap:anywhere}
.studio-care-summary article>strong{font-weight:600;font-size:14px;line-height:1.5;display:block}
.studio-care-summary article>div{display:flex;justify-content:space-between;gap:16px;margin-top:13px;font-size:13px}
.studio-care-summary article>div>span{color:#637b91}.studio-care-summary article b{white-space:nowrap}
.studio-practitioner{display:flex;gap:12px;align-items:center;margin-top:20px}.studio-practitioner>div{display:grid;gap:4px}.studio-practitioner strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}
.insurance-studio .studio-edit-button{border:0;border-radius:0;background:none;color:#0662d9;text-decoration:underline;justify-content:flex-start;padding:18px 0;font-size:13px}
.studio-completion{border:0;border-radius:8px;margin:10px 0;background:#f7faf9;font-size:12px;padding:14px;color:#385763}
.studio-completion:first-of-type{background:#fcf5e9;color:#795015}
.studio-completion summary{cursor:pointer;font-weight:600;font-size:13px;line-height:1.6}
.studio-completion summary>span{display:inline-flex;align-items:center;justify-content:center;margin-left:5px;width:20px;height:20px;border-radius:50%;background:#f4e4c9;font-size:11px}
.studio-completion ul{padding-left:18px;margin-bottom:0;max-height:260px;overflow:auto}
.studio-completion li{margin:8px 0;overflow-wrap:anywhere}
.insurance-studio .studio-completion button{background:none;border:0;padding:0;min-height:24px;font-size:12px;text-align:left;color:inherit;text-decoration:underline;justify-content:flex-start}
.studio-main{min-width:0;background:#eff5f6;border-radius:8px 8px 0 0;padding:0;display:flex;flex-direction:column}
.studio-pdf{position:relative;width:100%;min-height:600px;flex:1;background:#eff5f6;border-radius:8px;overflow:hidden}
.studio-pdf-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 26px 10px;flex-wrap:wrap}
.studio-pdf-toolbar h3{margin:0;font-size:16px;letter-spacing:-.02em;color:#163753}
.studio-pdf-toolbar>div{display:flex;align-items:center;gap:8px;font-size:12px}
.insurance-studio .studio-pdf-toolbar button{padding:5px;min-height:32px;min-width:32px;border-color:#ccdde4;background:#f8fcfd;border-radius:5px}
.insurance-studio .studio-pdf-toolbar .studio-zoom{border-color:transparent;background:transparent;min-width:48px}
.studio-toolbar-divider{height:24px;width:1px;background:#cadce2;margin:0 8px}
.studio-paper{padding:20px 24px 30px;overflow:auto;min-height:440px;box-sizing:border-box;display:flex;align-items:flex-start;justify-content:safe center}
.studio-paper canvas{display:block;background:white;box-shadow:0 7px 21px #17374620;border-radius:3px;flex-shrink:0;max-width:none}
.studio-paper[aria-busy=true] canvas{visibility:hidden}
.studio-pdf-status{position:absolute;top:105px;left:24px;right:24px;text-align:center;color:#456977;display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px}
.studio-pdf-expanded.studio-print-dialog{width:calc(100vw - 32px);max-width:1500px;height:94dvh;max-height:94dvh;background:#edf4f6}.studio-pdf-expanded .studio-pdf{min-height:calc(94dvh - 76px)}.studio-pdf-expanded .studio-paper{min-height:calc(94dvh - 150px)}
.studio-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:430px;gap:10px;padding:30px;color:#547784}
.studio-empty h3{font-size:20px;color:#214859;margin:6px 0}.studio-empty p{max-width:430px;font-size:14px;line-height:1.7}
.studio-editor{padding:25px;min-width:0}.studio-editor>nav{display:flex;gap:10px;margin:20px 0}.studio-editor>nav button[aria-pressed=true]{background:#deeeeb;border-color:#8dbdb7;color:#006d66}
.studio-editor .insurance-section{margin:15px 0;padding:20px;border-radius:9px}
.studio-editor .insurance-form-pane{border:0;padding:0;margin:0;min-width:0}
.studio-editor .insurance-field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.studio-editor .insurance-field:has(select){grid-column:auto}.studio-editor .insurance-field>small:last-child{display:none}
.studio-editor .insurance-prefilled{font-size:10px}.studio-editor .insurance-coding-hint{font-size:12px}
.studio-footer{position:sticky;bottom:0;z-index:5;border-top:1px solid #dfebed;background:#fff;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:17px 32px;flex-shrink:0;box-shadow:0 -3px 14px #25463d05}
.studio-footer-start{display:flex;gap:15px;align-items:center}.studio-footer-start>button:first-child{min-width:98px}
.insurance-studio .studio-history-link{border:0;color:#0868cd;text-decoration:underline;font-size:12px;padding:5px}
.studio-prepare-actions{display:flex;align-items:center;gap:24px}.studio-prepare-actions .insurance-validation{font-size:12px;max-width:330px;margin:0}
.studio-printbar{display:flex;gap:12px;align-items:center;flex:1;min-width:0;justify-content:flex-end;background:transparent;border:0;margin:0;padding:0}
.studio-printer-status{display:flex;gap:12px;align-items:center;margin-right:auto;margin-left:18px;min-width:0}
.studio-printer-status>div{display:grid;gap:2px;min-width:0}.studio-printer-status strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.studio-printer-status small{font-size:11px;color:#657f95}
.insurance-studio .studio-printer-status>button{padding:4px;min-height:30px;border:0}
.insurance-studio .studio-download{border-color:#00888b;text-decoration:none;font-size:13px;min-height:48px;box-sizing:border-box;color:#183e4c;padding:10px 16px;flex-shrink:0}
.studio-history{margin:0 32px 20px;padding:20px;border:1px solid #d6e4e7;border-radius:9px;background:#fff}
.studio-history .insurance-draft-actions{padding:14px 0;border:0}.studio-history .insurance-drafts{margin:14px 0}.studio-history .insurance-draft-section>.insurance-draft-current{margin:12px 0}
.studio-print-dialog{padding:0;border:1px solid #d2e0e4;border-radius:16px;max-width:min(760px,94vw);width:760px;max-height:90dvh;overflow:auto;color:#173b4e;font-family:inherit;box-shadow:0 24px 100px #09263040}
.studio-print-dialog::backdrop{background:#0d243e55;backdrop-filter:blur(3px)}
.studio-dialog-heading{position:sticky;top:0;z-index:4;background:#fff;border-bottom:1px solid #e0eaeb;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px}
.studio-dialog-heading h2{font-size:20px;margin:0;letter-spacing:-.025em}.insurance-studio .studio-dialog-heading button{border:0;padding:6px;min-height:34px}
.studio-dialog-body{padding:22px 28px;font-size:14px;line-height:1.6}.studio-dialog-body fieldset{border:0;padding:0;min-width:0;display:grid;gap:16px}.studio-dialog-body label{display:grid;gap:8px}.studio-dialog-body p{margin:10px 0}
.studio-dialog-body label.insurance-print-check{display:flex;align-items:start;gap:12px;padding:12px 0;line-height:1.6}.studio-dialog-body .insurance-print-check input{margin-top:5px}
.studio-paper-pending{text-align:center;padding:28px;color:#526b7b}.studio-paper-pending h3{color:#244251;font-size:20px}.studio-paper-summary{background:#f1f7f6;border-radius:9px;padding:18px}
.studio-dialog-links{display:flex;justify-content:flex-end;gap:14px;flex-wrap:wrap;margin-top:22px;border-top:1px solid #e4edee;padding-top:14px}.insurance-studio .studio-dialog-links button{border:0;padding:5px;font-size:12px;min-height:32px;color:#4c6e7e}
.studio-dialog-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:14px}.studio-subtle{font-size:12px;color:#677e8b}
.studio-feed-settings{padding:15px;border-radius:8px;background:#eff6f5;display:grid;gap:12px}
.studio-duplex-heading>span{text-transform:uppercase;letter-spacing:.08em;color:#087d7a;font-size:11px;font-weight:600}.studio-duplex-heading h3{margin:6px 0;font-size:25px;letter-spacing:-.03em;color:#123c4b}.studio-duplex-heading>p{font-size:13px;color:#5d7b8a}
.studio-duplex-guide{border-radius:13px;background:#f0f7f6;padding:12px 18px 15px;margin:16px 0}
.studio-duplex-scene{position:relative;height:280px;width:100%;max-width:520px;margin:auto;perspective:950px;perspective-origin:50% 30%;overflow:hidden}
 .studio-printer-art{z-index:2;position:absolute;width:360px;max-width:95%;height:auto;left:50%;bottom:-4px;transform:translateX(-50%);pointer-events:none}
.studio-sheet-object{position:absolute;width:116px;height:164px;top:43%;left:50%;transform-style:preserve-3d;will-change:transform;pointer-events:none}
.studio-sheet-object>div{width:100%;height:100%;position:absolute;inset:0;backface-visibility:hidden;border-radius:3px;filter:drop-shadow(0 5px 6px #143a2e26);background:#fff;border:1px solid #b8cdca;display:grid;place-items:center;color:#087d74;font-size:10px;font-weight:600;text-align:center}.studio-sheet-front img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.studio-sheet-front span{position:relative;background:#e0f2ee;padding:3px 7px;margin-top:-108px;border-radius:3px}.studio-sheet-back{transform:rotateY(180deg)}
.studio-duplex-instructions{display:grid;gap:6px;list-style:none;padding:0;margin:0}
.studio-duplex-instructions li{display:flex;align-items:center;gap:10px;padding:8px 10px;font-size:13px;line-height:1.55;border-radius:7px;color:#355960}
.studio-duplex-instructions li>span{display:grid;place-items:center;background:#dcebe7;color:#386861;width:23px;height:23px;border-radius:50%;font-weight:600;flex-shrink:0}
.studio-duplex-instructions li[aria-current=step]{background:#fff;color:#006e67}.studio-duplex-instructions li[aria-current=step]>span{background:#087e74;color:#fff}
.studio-animation-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}.insurance-studio .studio-animation-controls button{border:0;padding:5px;font-size:12px;min-height:30px;background:none;color:#087e74}.studio-animation-controls small{font-size:10px;color:#667e7b;margin-left:auto}
.studio-dialog-body .insurance-print-history{margin:0}.studio-dialog-body .insurance-print-history article{margin:12px 0}.studio-dialog-body .insurance-print-actions{flex-wrap:wrap}
.studio-print-error-link{font-size:11px!important;color:#953c26!important}.insurance-studio>.clinical-error,.insurance-studio>.clinical-notice{margin:0 32px 14px;font-size:13px}
@media(min-width:1600px){.studio-workspace{grid-template-columns:360px minmax(0,1fr)}.studio-summary{padding-left:38px;padding-right:30px}.studio-pdf-toolbar{padding:21px 30px 12px}.studio-paper{padding:20px 30px 35px}}
@media(max-width:1100px){.studio-workspace{grid-template-columns:280px minmax(0,1fr)}.studio-summary{padding:18px}.studio-brandbar{padding:10px 22px}.insurance-studio header.studio-header{padding:20px 22px}.studio-header .studio-steps{gap:5px}.studio-header .studio-steps button{font-size:11px}.studio-header .studio-steps button>span{width:27px;height:27px}.studio-pdf-toolbar{padding:16px}.studio-pdf-toolbar h3{font-size:14px}.studio-footer{padding:14px 20px;gap:12px}.studio-footer-start{gap:8px}.studio-history-link svg{display:none}.studio-printer-status{margin-left:0;gap:6px}.studio-printer-status>svg{display:none}.studio-printbar{gap:8px}.insurance-studio .studio-download{padding:10px;font-size:12px}.studio-printbar>.primary-button{padding:12px 15px;font-size:13px}.studio-editor{padding:18px}}
@media(max-width:820px){.insurance-studio header.studio-header{align-items:flex-start;flex-direction:column;gap:17px}.insurance-studio .studio-header h2{font-size:29px}.studio-steps{width:100%;justify-content:space-between;max-width:450px}.studio-header .studio-steps button{font-size:12px}.studio-workspace{grid-template-columns:240px minmax(0,1fr);padding-right:8px}.studio-summary{padding:18px 16px}.studio-summary h3{font-size:15px}.studio-pdf-toolbar>div{gap:4px}.studio-toolbar-divider{margin:0 3px}.studio-footer{flex-wrap:wrap}.studio-printbar{flex-basis:100%;border-top:1px solid #e5edee;padding-top:12px}.studio-printer-status{margin-right:auto}.studio-prepare-actions{flex:1;justify-content:flex-end;gap:12px}.studio-prepare-actions label{font-size:11px!important}.studio-footer-start{justify-content:space-between;flex:1}.studio-workspace[data-editing=true]{grid-template-columns:1fr}.studio-workspace[data-editing=true]>.studio-summary{display:none}.studio-workspace[data-editing=true]>.studio-main{margin:0 12px}.studio-pdf{min-height:500px}.studio-paper{padding:18px 14px;min-height:360px}.studio-history{margin:0 18px 14px;padding:14px}}
@media(max-width:600px){.studio-brandbar{padding:9px 16px}.studio-brandbar>span{font-size:10px;letter-spacing:.03em}.studio-brandbar img{width:22px}.insurance-studio header.studio-header{padding:19px 16px}.studio-workspace{display:flex;flex-direction:column;padding:0;gap:12px}.studio-summary{padding:18px 20px;border-right:0;border-radius:0}.studio-summary .studio-patient{padding-bottom:16px}.studio-summary section,.studio-summary fieldset{padding:16px 0}.studio-summary h3{font-size:17px}.studio-care-summary article{padding:13px 0}.studio-practitioner{margin-top:14px}.studio-summary .studio-edit-button{padding:14px 0}.studio-main{border-radius:0}.studio-pdf-toolbar{padding:16px}.studio-pdf-toolbar h3{width:100%;margin-bottom:4px}.studio-pdf-toolbar>div{width:100%;justify-content:space-between}.studio-paper{padding:16px 12px}.studio-pdf{min-height:440px}.studio-footer{padding:12px 16px;gap:10px}.studio-printbar{display:grid;grid-template-columns:1fr 1fr;gap:10px}.studio-printer-status{grid-column:1/-1;margin-bottom:3px}.insurance-studio .studio-download{font-size:12px;padding:10px 7px}.studio-printbar>.primary-button{font-size:12px;min-height:48px}.studio-prepare-actions{display:grid;grid-template-columns:1fr;width:100%;flex-basis:100%;gap:8px}.studio-prepare-actions .insurance-validation{max-width:none}.studio-prepare-actions .primary-button{width:100%}.studio-editor{padding:16px}.studio-editor .insurance-section{padding:16px}.studio-editor .insurance-field-grid{grid-template-columns:1fr}.studio-editor .studio-section-title h3{font-size:17px}.studio-dialog-body{padding:16px}.studio-dialog-heading{padding:16px}.studio-dialog-heading h2{font-size:18px}.studio-print-dialog{width:calc(100vw - 20px);max-width:none;max-height:94dvh}.studio-duplex-heading h3{font-size:23px}.studio-duplex-guide{padding:8px 10px}.studio-duplex-scene{height:245px}.studio-printer-art{width:310px}.studio-sheet-object{width:100px;height:141px}.studio-dialog-actions{flex-wrap:wrap}.studio-dialog-actions>.primary-button{width:100%}.studio-animation-controls small{width:100%;margin:0}.insurance-studio>.clinical-error,.insurance-studio>.clinical-notice{margin:0 16px 12px}.studio-empty{min-height:320px}}
@media(prefers-reduced-motion:reduce){.insurance-studio *{scroll-behavior:auto!important}.studio-sheet-object{will-change:auto}}
.insurance-print-panel{margin-top:20px;border:1px solid #c7dedb;border-radius:14px;padding:16px;background:#f5fbf9;min-width:0;color:#233e3a;overflow-wrap:anywhere}
.insurance-print-panel *{box-sizing:border-box}
.insurance-print-panel h3{margin:4px 0;font-size:18px;line-height:1.4}
.insurance-print-title{display:flex;justify-content:space-between;align-items:start;gap:10px}
.insurance-print-title small{font-size:10px;letter-spacing:.09em;color:#386e65}
.insurance-print-panel p,.insurance-print-panel li{font-size:13px;line-height:1.6}
.insurance-print-panel small{display:block;line-height:1.6;font-size:12px}
.insurance-print-panel fieldset{border:0;margin:12px 0;padding:0;min-width:0}
.insurance-print-panel label{display:flex!important;flex-direction:column!important;gap:6px;margin:12px 0;font-size:13px;font-weight:550;min-width:0}
.insurance-print-panel select,.insurance-print-panel input:not([type=checkbox]),.insurance-print-panel textarea{min-width:0;width:100%;background:#fff;font-size:13px;padding:9px;border:1px solid #b7cdc9;border-radius:7px}
.insurance-print-panel button{white-space:normal;text-align:left;font-size:13px;padding:9px 12px;line-height:1.5;max-width:100%;border-radius:8px;border:1px solid #b7cdc9;background:#fff;color:#215c52}
.insurance-print-panel button:disabled{opacity:.55;cursor:not-allowed}
.insurance-print-panel .insurance-print-primary{background:#136e61;color:white;border-color:#136e61;width:100%;text-align:center}
.insurance-print-panel .insurance-print-check{flex-direction:row!important;align-items:flex-start;gap:10px;font-weight:450;line-height:1.6}
.insurance-print-check input{margin-top:4px;flex:0 0 auto}
.insurance-print-paper{background:#fff;border:1px solid #d2e3df;border-radius:9px;padding:12px;margin-top:12px}
.insurance-print-paper button{margin-top:10px}
.insurance-print-error,.insurance-print-uncertain{color:#853a26;background:#fff2e9;border:1px solid #efd4be;padding:12px;border-radius:8px;margin:12px 0}
.insurance-print-notice{background:#e0f1e9;color:#185a42;padding:12px;border-radius:8px}
.insurance-print-panel details{margin-top:12px}
.insurance-print-panel summary{font-size:13px;font-weight:650;cursor:pointer;line-height:1.6}
.insurance-print-panel ul,.insurance-print-panel ol{padding-left:20px}
.insurance-print-history h4{font-size:14px;margin:20px 0 10px}
.insurance-print-history article{padding:14px 0;border-top:1px solid #cddeda;min-width:0}
.insurance-print-history article>strong{font-size:14px;display:block;margin-bottom:6px}
.insurance-print-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.insurance-print-actions a{width:100%;font-size:13px}
.insurance-print-calibration{border-top:1px solid #cddeda;padding-top:14px}
.insurance-print-numbers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.insurance-print-panel .insurance-print-calibration iframe{display:block;margin-top:12px;width:100%;height:380px;border:1px solid #cddeda;border-radius:8px}
@media(max-width:600px){.insurance-print-panel{padding:12px}.insurance-print-numbers{grid-template-columns:1fr}.insurance-print-title{flex-wrap:wrap}.insurance-print-actions button{width:100%}}
.insurance-draft-recovery{margin:16px 24px;padding:22px;border:1px solid #d6bc80;border-radius:14px;background:#fffcf5;color:#183f38;min-width:0;overflow-wrap:anywhere;}
.insurance-draft-recovery header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.insurance-draft-recovery h3{font-size:21px;margin:6px 0}.insurance-draft-recovery small{font-size:11px;line-height:1.5}.insurance-draft-recovery p,.insurance-draft-recovery li{font-size:13px;line-height:1.65}.insurance-draft-recovery button{white-space:normal;font-size:13px}.insurance-recovery-explanation{max-width:90ch}.insurance-recovery-issues{padding-left:20px;color:#805016}.insurance-recovery-snapshot{background:#fff;border:1px solid #d9e3de;border-radius:10px;padding:14px}.insurance-recovery-snapshot summary{cursor:pointer;font-weight:650;font-size:13px;line-height:1.6}.insurance-recovery-snapshot details{border-top:1px solid #e1e9e5;margin-top:10px;padding-top:10px}.insurance-recovery-snapshot dl{margin:10px 0;display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.insurance-recovery-snapshot dt{font-size:11px;color:#52675f}.insurance-recovery-snapshot dd{margin:4px 0 0;white-space:pre-wrap;font-size:13px}.insurance-recovery-snapshot article{padding:10px 0;border-top:1px solid #e1e9e5}.insurance-recovery-snapshot h4{margin:4px 0;font-size:14px}.insurance-recovery-unavailable{color:#904626;font-weight:600}.insurance-recovery-target{margin:22px 0 14px;border:0;padding:0;min-width:0}.insurance-recovery-target>legend{font-size:16px;font-weight:700;margin-bottom:14px}.insurance-recovery-grid{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}.insurance-recovery-grid label{display:flex;flex-direction:column;align-items:stretch;gap:7px;font-size:13px;min-width:0}.insurance-recovery-grid select{width:100%;min-width:0;max-width:100%;font-size:13px}.insurance-recovery-acts{min-width:0;border:1px solid #d8e5de;padding:12px;margin:18px 0;border-radius:8px}.insurance-recovery-acts legend{font-size:13px;font-weight:600}.insurance-recovery-acts label,.insurance-draft-recovery .insurance-recovery-check{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;gap:10px;margin:12px 0;line-height:1.6;font-size:13px}.insurance-recovery-acts input,.insurance-recovery-check input{flex:0 0 18px;width:18px;height:18px;margin-top:3px}.insurance-recovery-acts span{min-width:0}.insurance-recovery-acts small{display:block;color:#805016}.insurance-recovery-error{padding:12px;background:#fff1eb;color:#882d21;border:1px solid #dfa798;border-radius:8px;margin:14px 0;font-size:13px;line-height:1.6}.insurance-recovery-error button{margin:8px;display:block}.insurance-draft-recovery :focus-visible{outline:3px solid #148678;outline-offset:3px}.insurance-draft-recovery h3:focus{outline:none}
@media(max-width:850px){.insurance-draft-recovery{margin:12px 16px;padding:16px}.insurance-draft-recovery header{flex-wrap:wrap}}
@media(max-width:600px){.insurance-recovery-grid,.insurance-recovery-snapshot dl{grid-template-columns:minmax(0,1fr)}.insurance-draft-recovery h3{font-size:18px}.insurance-draft-recovery>button,.insurance-recovery-target>button{width:100%}}
.insurance-workflow-grid[hidden],.insurance-draft-actions[hidden],.insurance-navigation[hidden]{display:none!important}
.insurance-draft-recovery h3{scroll-margin-top:205px}
.insurance-designer{background:#f3faf8;border:1px solid #c5e3d9;border-radius:14px;padding:22px;margin-block:20px;color:#183c34;min-width:0}
.mutuelle-admin-workspace .insurance-design-version{display:flex;flex-direction:column;gap:8px;min-width:0;max-width:100%}.mutuelle-admin-workspace .insurance-design-version select{width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px solid #bacfc7;border-radius:8px;background:white;color:#183c34;font:inherit}
.mutuelle-admin-workspace .mutuelle-upload-form{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));align-items:end}.mutuelle-admin-workspace .mutuelle-upload-form label,.mutuelle-admin-workspace .mutuelle-upload-form input,.mutuelle-admin-workspace .mutuelle-upload-form button{min-width:0;max-width:100%;box-sizing:border-box}.mutuelle-admin-workspace .mutuelle-upload-form input{width:100%}.mutuelle-admin-workspace .mutuelle-upload-form button{white-space:normal}
.insurance-designer header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}.insurance-designer h3,.insurance-designer h4{margin:0 0 8px}.insurance-designer p{line-height:1.55;margin:8px 0 16px;max-width:85ch}
.insurance-design-status{border-radius:20px;padding:7px 12px;font-size:13px;font-weight:600;white-space:nowrap}.insurance-design-status.validated{background:#d9eee5;color:#165942}.insurance-design-status.draft{background:#fff0cc;color:#78520c}
.insurance-design-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.insurance-design-facts dt{font-size:12px;color:#526961}.insurance-design-facts dd{margin:5px 0;overflow-wrap:anywhere}
.insurance-designer label:not(.insurance-design-check){display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500;margin:12px 0}.insurance-designer input:not([type=checkbox]),.insurance-designer textarea{font:inherit;color:#17392f;padding:10px;border:1px solid #bacfc7;border-radius:7px;background:white;min-width:0;max-width:100%}.insurance-designer textarea{resize:vertical;width:100%;box-sizing:border-box}.insurance-design-advanced textarea{font-family:ui-monospace,monospace;font-size:12px}.insurance-designer summary{cursor:pointer;padding-block:12px;font-weight:600}
.insurance-designer button{border:1px solid #2b7660;border-radius:8px;background:#1e6a54;color:#fff;font:inherit;padding:10px 15px;cursor:pointer;margin-block:6px}.insurance-designer button:disabled{opacity:.5;cursor:not-allowed}.insurance-designer :focus-visible{outline:3px solid #157a67;outline-offset:3px}.insurance-design-error{color:#8b2626;background:#fff0ee;border-radius:8px;padding:12px;overflow-wrap:anywhere}.insurance-design-error button{margin-left:10px}
.insurance-design-table-scroll{max-height:300px;overflow:auto;border:1px solid #cfdfd9;border-radius:9px;background:white;margin-block:12px}.insurance-design-table-scroll table{border-collapse:collapse;width:100%;min-width:520px;font-size:13px}.insurance-design-table-scroll th,.insurance-design-table-scroll td{padding:10px 12px;border-bottom:1px solid #e5eee9;text-align:left;vertical-align:top}.insurance-design-table-scroll th{background:#e7f2ec;position:sticky;top:0}
.insurance-design-review{border:1px solid #c4dace;border-radius:10px;padding:18px;margin-top:22px;min-width:0}.insurance-design-review legend{padding:0 8px;font-weight:600}.insurance-design-check{display:flex;align-items:flex-start;gap:9px;margin:10px 0;font-size:14px;line-height:1.5}.insurance-design-check input{flex:0 0 auto;margin-top:4px}.insurance-design-pages{display:flex;gap:15px;flex-wrap:wrap}.insurance-design-clone input{max-width:460px!important}
@media(max-width:700px){.insurance-designer{padding:14px}.insurance-design-facts{grid-template-columns:1fr;gap:8px}.insurance-design-review{padding:12px}.insurance-designer button{white-space:normal;max-width:100%}}
.insurance-publication{margin-top:26px;border-top:1px solid #bdd7cd;padding-top:22px;min-width:0;overflow-wrap:anywhere}.insurance-publication header button{flex-shrink:0}.insurance-publication-decision{border:1px solid #bad4c9;border-radius:10px;padding:16px;min-width:0}.insurance-publication-decision legend{font-weight:600;padding:0 6px}.insurance-publication-warning{background:#fff4d9;color:#674609;border:1px solid #ead3a5;border-radius:9px;padding:12px}.insurance-publication-notice{background:#dbeee4;border:1px solid #b3d6c5;padding:12px;border-radius:9px}.insurance-designer .insurance-publication-suspend{background:#873d2e;border-color:#873d2e}.insurance-publication-history ol{padding-left:22px}.insurance-publication-history li{padding:10px 4px;border-bottom:1px solid #caddd4}.insurance-publication-history time,.insurance-publication-history small,.insurance-publication-footnote{color:#526961;font-size:13px}.insurance-publication-history li p{margin:6px 0}.insurance-publication-decision:disabled{opacity:.7}
@media(max-width:480px){.insurance-designer{padding:10px;margin-inline:-8px}.insurance-publication-decision{padding:10px}.insurance-publication-warning{padding:10px}.insurance-publication header button{width:100%}}
/* Variables declaration */
.rdp-root {
  --rdp-accent-color: blue; /* The accent color used for selected days and UI elements. */
  --rdp-accent-background-color: #f0f0ff; /* The accent background color used for selected days and UI elements. */

  --rdp-day-height: 44px; /* The height of the day cells. */
  --rdp-day-width: 44px; /* The width of the day cells. */

  --rdp-day_button-border-radius: 100%; /* The border radius of the day cells. */
  --rdp-day_button-border: 2px solid transparent; /* The border of the day cells. */
  --rdp-day_button-height: 42px; /* The height of the day cells. */
  --rdp-day_button-width: 42px; /* The width of the day cells. */

  --rdp-selected-border: 2px solid var(--rdp-accent-color); /* The border of the selected days. */
  --rdp-disabled-opacity: 0.5; /* The opacity of the disabled days. */
  --rdp-outside-opacity: 0.75; /* The opacity of the days outside the current month. */
  --rdp-today-color: var(--rdp-accent-color); /* The color of the today's date. */

  --rdp-dropdown-gap: 0.5rem; /* The gap between the dropdowns used in the month captons. */

  --rdp-months-gap: 2rem; /* The gap between the months in the multi-month view. */

  --rdp-nav_button-disabled-opacity: 0.5; /* The opacity of the disabled navigation buttons. */
  --rdp-nav_button-height: 2.25rem; /* The height of the navigation buttons. */
  --rdp-nav_button-width: 2.25rem; /* The width of the navigation buttons. */
  --rdp-nav-height: 2.75rem; /* The height of the navigation bar. */

  --rdp-range_middle-background-color: var(--rdp-accent-background-color); /* The color of the background for days in the middle of a range. */
  --rdp-range_middle-color: inherit; /* The color of the range text. */

  --rdp-range_start-color: white; /* The color of the range text. */
  --rdp-range_start-background: linear-gradient(
    var(--rdp-gradient-direction),
    transparent 50%,
    var(--rdp-range_middle-background-color) 50%
  ); /* Used for the background of the start of the selected range. */
  --rdp-range_start-date-background-color: var(--rdp-accent-color); /* The background color of the date when at the start of the selected range. */

  --rdp-range_end-background: linear-gradient(
    var(--rdp-gradient-direction),
    var(--rdp-range_middle-background-color) 50%,
    transparent 50%
  ); /* Used for the background of the end of the selected range. */
  --rdp-range_end-color: white; /* The color of the range text. */
  --rdp-range_end-date-background-color: var(--rdp-accent-color); /* The background color of the date when at the end of the selected range. */

  --rdp-week_number-border-radius: 100%; /* The border radius of the week number. */
  --rdp-week_number-border: 2px solid transparent; /* The border of the week number. */

  --rdp-week_number-height: var(--rdp-day-height); /* The height of the week number cells. */
  --rdp-week_number-opacity: 0.75; /* The opacity of the week number. */
  --rdp-week_number-width: var(--rdp-day-width); /* The width of the week number cells. */
  --rdp-weeknumber-text-align: center; /* The text alignment of the weekday cells. */

  --rdp-weekday-opacity: 0.75; /* The opacity of the weekday. */
  --rdp-weekday-padding: 0.5rem 0rem; /* The padding of the weekday. */
  --rdp-weekday-text-align: center; /* The text alignment of the weekday cells. */

  --rdp-gradient-direction: 90deg;

  --rdp-animation_duration: 0.3s;
  --rdp-animation_timing: cubic-bezier(0.4, 0, 0.2, 1);
}

.rdp-root[dir="rtl"] {
  --rdp-gradient-direction: -90deg;
}

.rdp-root[data-broadcast-calendar="true"] {
  --rdp-outside-opacity: unset;
}

/* Root of the component. */
.rdp-root {
  position: relative; /* Required to position the navigation toolbar. */
  box-sizing: border-box;
}

.rdp-root * {
  box-sizing: border-box;
}

.rdp-day {
  width: var(--rdp-day-width);
  height: var(--rdp-day-height);
  text-align: center;
}

.rdp-day_button {
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  justify-content: center;
  align-items: center;
  display: flex;

  width: var(--rdp-day_button-width);
  height: var(--rdp-day_button-height);
  border: var(--rdp-day_button-border);
  border-radius: var(--rdp-day_button-border-radius);
}

.rdp-day_button:disabled {
  cursor: revert;
}

.rdp-caption_label {
  z-index: 1;

  position: relative;
  display: inline-flex;
  align-items: center;

  white-space: nowrap;
  border: 0;
}

.rdp-dropdown:focus-visible ~ .rdp-caption_label {
  outline: 5px auto Highlight;
  /* biome-ignore lint/suspicious/noDuplicateProperties: backward compatibility */
  outline: 5px auto -webkit-focus-ring-color;
}

.rdp-button_next,
.rdp-button_previous {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -moz-appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  appearance: none;

  width: var(--rdp-nav_button-width);
  height: var(--rdp-nav_button-height);
}

.rdp-button_next:disabled,
.rdp-button_next[aria-disabled="true"],
.rdp-button_previous:disabled,
.rdp-button_previous[aria-disabled="true"] {
  cursor: revert;

  opacity: var(--rdp-nav_button-disabled-opacity);
}

.rdp-chevron {
  display: inline-block;
  fill: var(--rdp-accent-color);
}

.rdp-root[dir="rtl"] .rdp-nav .rdp-chevron {
  transform: rotate(180deg);
  transform-origin: 50%;
}

.rdp-dropdowns {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--rdp-dropdown-gap);
}
.rdp-dropdown {
  z-index: 2;

  /* Reset */
  opacity: 0;
  appearance: none;
  position: absolute;
  inset-block-start: 0;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  cursor: inherit;
  border: none;
  line-height: inherit;
}

.rdp-dropdown_root {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.rdp-dropdown_root[data-disabled="true"] .rdp-chevron {
  opacity: var(--rdp-disabled-opacity);
}

.rdp-month_caption {
  display: flex;
  align-content: center;
  height: var(--rdp-nav-height);
  font-weight: bold;
  font-size: large;
}

.rdp-root[data-nav-layout="around"] .rdp-month,
.rdp-root[data-nav-layout="after"] .rdp-month {
  position: relative;
}

.rdp-root[data-nav-layout="around"] .rdp-month_caption {
  justify-content: center;
  margin-inline-start: var(--rdp-nav_button-width);
  margin-inline-end: var(--rdp-nav_button-width);
  position: relative;
}

.rdp-root[data-nav-layout="around"] .rdp-button_previous {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  height: var(--rdp-nav-height);
  display: inline-flex;
}

.rdp-root[data-nav-layout="around"] .rdp-button_next {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  height: var(--rdp-nav-height);
  display: inline-flex;
  justify-content: center;
}

.rdp-months {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--rdp-months-gap);
  max-width: fit-content;
}

.rdp-month_grid {
  border-collapse: collapse;
}

.rdp-nav {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;

  display: flex;
  align-items: center;

  height: var(--rdp-nav-height);
}

.rdp-weekday {
  opacity: var(--rdp-weekday-opacity);
  padding: var(--rdp-weekday-padding);
  font-weight: 500;
  font-size: smaller;
  text-align: var(--rdp-weekday-text-align);
  text-transform: var(--rdp-weekday-text-transform);
}

.rdp-week_number {
  opacity: var(--rdp-week_number-opacity);
  font-weight: 400;
  font-size: small;
  height: var(--rdp-week_number-height);
  width: var(--rdp-week_number-width);
  border: var(--rdp-week_number-border);
  border-radius: var(--rdp-week_number-border-radius);
  text-align: var(--rdp-weeknumber-text-align);
}

/* DAY MODIFIERS */
.rdp-today:not(.rdp-outside) {
  color: var(--rdp-today-color);
}

.rdp-selected {
  font-weight: bold;
  font-size: large;
}

.rdp-selected .rdp-day_button {
  border: var(--rdp-selected-border);
}

.rdp-outside {
  opacity: var(--rdp-outside-opacity);
}

.rdp-disabled:not(.rdp-selected) {
  opacity: var(--rdp-disabled-opacity);
}

.rdp-hidden {
  visibility: hidden;
  color: var(--rdp-range_start-color);
}

.rdp-range_start {
  background: var(--rdp-range_start-background);
}

.rdp-range_start .rdp-day_button {
  background-color: var(--rdp-range_start-date-background-color);
  color: var(--rdp-range_start-color);
}

.rdp-range_middle {
  background-color: var(--rdp-range_middle-background-color);
}

.rdp-range_middle .rdp-day_button {
  border: unset;
  border-radius: unset;
  color: var(--rdp-range_middle-color);
}

.rdp-range_end {
  background: var(--rdp-range_end-background);
  color: var(--rdp-range_end-color);
}

.rdp-range_end .rdp-day_button {
  color: var(--rdp-range_start-color);
  background-color: var(--rdp-range_end-date-background-color);
}

.rdp-range_start.rdp-range_end {
  background: revert;
}

.rdp-focusable {
  cursor: pointer;
}

@keyframes rdp-slide_in_left {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes rdp-slide_in_right {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes rdp-slide_out_left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes rdp-slide_out_right {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

.rdp-weeks_before_enter {
  animation: rdp-slide_in_left var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-weeks_before_exit {
  animation: rdp-slide_out_left var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-weeks_after_enter {
  animation: rdp-slide_in_right var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-weeks_after_exit {
  animation: rdp-slide_out_right var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-root[dir="rtl"] .rdp-weeks_after_enter {
  animation: rdp-slide_in_left var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-root[dir="rtl"] .rdp-weeks_before_exit {
  animation: rdp-slide_out_right var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-root[dir="rtl"] .rdp-weeks_before_enter {
  animation: rdp-slide_in_right var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-root[dir="rtl"] .rdp-weeks_after_exit {
  animation: rdp-slide_out_left var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

@keyframes rdp-fade_in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rdp-fade_out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.rdp-caption_after_enter {
  animation: rdp-fade_in var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-caption_after_exit {
  animation: rdp-fade_out var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-caption_before_enter {
  animation: rdp-fade_in var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}

.rdp-caption_before_exit {
  animation: rdp-fade_out var(--rdp-animation_duration)
    var(--rdp-animation_timing) forwards;
}
@font-face {
  font-family: "Work Sans";
  src: url("/dentalome-assets/WorkSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Private recruitment workspace */
.hr-dataset-select { display: flex; flex-direction: column; gap: 6px; min-width: 220px; max-width: 100%; font-size: 11px; color: #56677b; }
.hr-dataset-select select { max-width: 100%; padding: 10px 12px; border: 1px solid #ccd8e6; border-radius: 10px; background: #fff; color: #24364b; font: inherit; font-size: 12px; }
.hr-import-status { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; margin: 12px 0; border: 1px solid #d8e1ee; border-radius: 12px; font-size: 12px; }
.hr-import-status > svg { flex-shrink: 0; margin-top: 2px; }
.hr-import-status p { margin: 5px 0 0; line-height: 1.5; }
.hr-import-status.incomplete { background: #fffbf0; color: #765718; border-color: #eddfb6; }
.hr-import-status.complete { background: #effaf5; color: #236647; border-color: #c8e6d7; }
.hr-applications-workspace .hr-tabs { overflow-x: auto; }
.hr-applications-workspace .hr-tabs > button { flex-shrink: 0; }
.hr-category-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; }
.hr-category-panel { background: #fff; border: 1px solid #dde5ee; border-radius: 15px; padding: 17px; min-width: 0; }
.hr-category-panel > header, .hr-assessment-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hr-category-panel h2, .hr-category-intro h2 { font-size: 17px; margin: 4px 0 8px; }
.hr-category-panel header p { margin: 0; color: #566d89; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.hr-category-panel header button, .hr-source-evidence button { display: inline-flex; align-items: center; gap: 4px; border: 0; padding: 4px 0; background: transparent; color: #1d65b8; font-size: 11px; cursor: pointer; }
.hr-category-count, .hr-category-empty, .hr-category-intro p { font-size: 12px; color: #62748a; line-height: 1.5; }
.hr-category-person { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid #edf0f4; background: transparent; text-align: left; cursor: pointer; }
.hr-category-person > span:last-child { min-width: 0; }
.hr-category-person strong, .hr-category-person small { display: block; }
.hr-category-person strong { font-size: 12px; color: #273c55; }
.hr-category-person small { color: #65768b; font-size: 11px; line-height: 1.45; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hr-category-intro { margin: 16px 0; }
.hr-assessment-heading > strong, .hr-assessment-heading > span { font-size: 12px; color: #29627e; }
.hr-category-assessment > small { color: #62748a; }
.hr-source-evidence { margin: 12px 0 0; padding: 10px 12px; background: #f7f9fc; border-left: 3px solid #94b7df; border-radius: 0 6px 6px 0; }
.hr-source-evidence p { font-size: 12px; line-height: 1.55; margin: 0 0 5px; white-space: pre-wrap; }
.hr-applications-workspace .hr-candidate-card-title > small { display: block; margin-top: 5px; font-size: 10px; color: #667386; }
@media (max-width: 640px) {
  .hr-dataset-select { width: 100%; }
  .hr-category-overview { grid-template-columns: minmax(0, 1fr); }
  .hr-import-status { padding: 12px; }
}
.workspace.hr-workspace {
  --hr-blue: #025ce2;
  --hr-ink: #172033;
  --hr-muted: #667085;
  --hr-border: #e5e9f0;
  --hr-soft: #f6f8fb;
  min-width: 0;
  padding: 24px 28px 34px;
  color: var(--hr-ink);
  background:
    radial-gradient(circle at 96% 0%, rgba(2, 92, 226, 0.055), transparent 28%),
    #f6f7f9;
}

.hr-state-page {
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.hr-state-page > span:not(.hr-state-icon) { color: var(--hr-muted); }
.hr-state-page h1 { margin: 4px 0 0; font-size: 26px; }
.hr-state-page p { max-width: 560px; margin: 0 0 8px; color: var(--hr-muted); }
.hr-state-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: #fff; box-shadow: 0 8px 30px rgba(16, 24, 40, 0.09); }
.hr-state-icon.error { color: #c2414b; background: #fff5f5; }

.hr-hero {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border: 1px solid rgba(2, 92, 226, 0.13);
  border-radius: 18px;
  background: linear-gradient(112deg, #fff 0%, #fbfdff 65%, #f2f7ff 100%);
  box-shadow: 0 12px 30px rgba(20, 41, 74, 0.055);
}

.hr-hero-main { display: flex; align-items: center; gap: 17px; min-width: 0; }
.hr-hero-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #0b6df4, #034cac);
  box-shadow: 0 10px 24px rgba(2, 92, 226, 0.24);
}
.hr-eyebrow { margin: 0 0 5px; color: #47709f; font-size: 11px; font-weight: 750; letter-spacing: .085em; text-transform: uppercase; }
.hr-hero h1 { margin: 0; font-size: clamp(24px, 2.1vw, 32px); line-height: 1.15; letter-spacing: -.025em; }
.hr-job-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: #5d6b7f; font-size: 13px; }
.hr-job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hr-status-dot { color: #16794d; font-weight: 650; }
.hr-status-dot i { width: 7px; height: 7px; border-radius: 50%; background: #27a96c; box-shadow: 0 0 0 4px rgba(39, 169, 108, .11); }
.hr-private-pill { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 9px 12px; color: #284d7a; border: 1px solid #dce7f6; border-radius: 999px; background: rgba(255, 255, 255, .86); font-size: 12px; font-weight: 700; }

.hr-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 15px 0; }
.hr-summary-card { min-width: 0; display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--hr-border); border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgba(16, 24, 40, .035); }
.hr-summary-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; }
.hr-summary-card.blue .hr-summary-icon { color: #075fcc; background: #eaf3ff; }
.hr-summary-card.teal .hr-summary-icon { color: #087c75; background: #e6f7f4; }
.hr-summary-card.violet .hr-summary-icon { color: #7450c9; background: #f1ecff; }
.hr-summary-card.gold .hr-summary-icon { color: #a66b0b; background: #fff5df; }
.hr-summary-card > div { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: baseline; }
.hr-summary-card p { min-width: 0; margin: 0; color: #5e6c80; font-size: 12px; font-weight: 650; }
.hr-summary-card strong { grid-row: 1 / span 2; grid-column: 2; font-size: 27px; line-height: 1; letter-spacing: -.035em; }
.hr-summary-card span:not(.hr-summary-icon) { grid-column: 1 / -1; overflow: hidden; color: #98a2b3; font-size: 10.5px; white-space: nowrap; text-overflow: ellipsis; }

.hr-tabs { display: flex; align-items: flex-end; gap: 3px; overflow-x: auto; padding: 0 4px; border-bottom: 1px solid #dfe4eb; scrollbar-width: none; }
.hr-tabs::-webkit-scrollbar { display: none; }
.hr-tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; min-height: 45px; padding: 0 14px; color: #667085; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.hr-tabs button::after { position: absolute; right: 12px; bottom: -1px; left: 12px; height: 2px; border-radius: 2px 2px 0 0; background: transparent; content: ""; }
.hr-tabs button:hover { color: #2f4f77; }
.hr-tabs button.active { color: var(--hr-blue); }
.hr-tabs button.active::after { background: var(--hr-blue); }
.hr-tabs button span { min-width: 20px; padding: 2px 6px; border-radius: 999px; color: #667085; background: #eef1f5; font-size: 10px; }
.hr-tabs button.active span { color: #0759be; background: #e8f2ff; }

.hr-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.hr-overview-panel, .hr-method-panel, .hr-offer-card, .hr-rubric-card { border: 1px solid var(--hr-border); border-radius: 17px; background: #fff; box-shadow: 0 7px 24px rgba(16, 24, 40, .04); }
.hr-overview-panel { min-width: 0; padding: 18px; }
.hr-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.hr-panel-heading > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hr-panel-heading > div > span { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; }
.hr-panel-heading > div > span.teal { color: #087c75; background: #e9f8f5; }
.hr-panel-heading > div > span.violet { color: #7350c4; background: #f2edff; }
.hr-panel-heading h2 { margin: 0; font-size: 15px; }
.hr-panel-heading p { margin: 3px 0 0; color: #8a95a5; font-size: 11px; }
.hr-panel-heading > button { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; padding: 7px 5px; color: var(--hr-blue); border: 0; background: transparent; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.hr-overview-ranking { display: grid; }
.hr-overview-ranking > button { display: grid; grid-template-columns: 26px 36px minmax(0, 1fr) auto 16px; align-items: center; gap: 9px; min-width: 0; padding: 10px 4px; text-align: left; border: 0; border-top: 1px solid #eef1f5; background: transparent; cursor: pointer; }
.hr-overview-ranking > button:hover { background: #f9fbfe; }
.hr-overview-ranking > button > svg { color: #aab2bf; }
.hr-rank-number { display: grid; place-items: center; width: 23px; height: 23px; color: #59687b; border-radius: 8px; background: #f0f3f7; font-size: 10px; font-weight: 800; }
.hr-avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; color: #2d5f9a; border: 1px solid #dce8f6; border-radius: 11px; background: linear-gradient(145deg, #f4f8fd, #e7f0fb); font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.hr-avatar.large { width: 48px; height: 48px; border-radius: 14px; font-size: 14px; }
.hr-overview-person { min-width: 0; }
.hr-overview-person strong, .hr-overview-person small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hr-overview-person strong { color: #26354a; font-size: 12px; }
.hr-overview-person small { margin-top: 3px; color: #8b96a5; font-size: 10px; }
.hr-overview-score { text-align: right; }
.hr-overview-score b { font-size: 14px; }
.hr-overview-score small { margin-left: 2px; color: #98a2b3; font-size: 9px; }
.hr-method-panel { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(240px, .8fr) minmax(480px, 1.2fr); align-items: center; gap: 15px; padding: 18px 20px; background: linear-gradient(105deg, #fafdff, #fff); }
.hr-method-icon { width: 43px; height: 43px; display: grid; place-items: center; color: #1767c4; border-radius: 13px; background: #eaf3ff; }
.hr-method-panel h2 { margin: 0; font-size: 15px; }
.hr-method-panel p { margin: 4px 0 0; color: #758194; font-size: 11px; line-height: 1.45; }
.hr-method-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.hr-method-steps span { display: flex; align-items: center; gap: 7px; padding: 9px; color: #536176; border: 1px solid #e8edf4; border-radius: 10px; background: #fff; font-size: 10.5px; font-weight: 650; }
.hr-method-steps i { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 50%; background: #2d6fbd; font-size: 9px; font-style: normal; }

.hr-filter-bar { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(220px, auto) auto; align-items: end; gap: 10px; margin: 16px 0 12px; }
.hr-search { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #7d8899; border: 1px solid #dfe5ec; border-radius: 11px; background: #fff; box-shadow: 0 3px 12px rgba(16, 24, 40, .025); }
.hr-search:focus-within { border-color: #80afea; box-shadow: 0 0 0 3px rgba(2, 92, 226, .08); }
.hr-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #26354a; font: inherit; font-size: 12px; }
.hr-search button { width: 25px; height: 25px; display: grid; place-items: center; padding: 0; color: #7a8798; border: 0; border-radius: 7px; background: #f0f3f7; cursor: pointer; }
.hr-filter-select { display: grid; gap: 4px; }
.hr-filter-select span { color: #8792a2; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.hr-filter-select select { min-width: 230px; height: 42px; padding: 0 34px 0 11px; color: #3e4c60; border: 1px solid #dfe5ec; border-radius: 11px; background: #fff; font: inherit; font-size: 11px; }
.hr-result-count { align-self: center; min-width: 70px; color: #8390a1; font-size: 11px; text-align: right; }

.hr-candidate-layout { display: grid; grid-template-columns: minmax(330px, .74fr) minmax(520px, 1.26fr); align-items: start; gap: 13px; min-width: 0; }
.hr-candidate-list { max-height: calc(100vh - 285px); min-height: 580px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 1px 5px 20px 1px; scrollbar-color: #cfd7e2 transparent; scrollbar-width: thin; }
.hr-candidate-card { position: relative; display: block; width: 100%; min-width: 0; padding: 14px; overflow: hidden; text-align: left; border: 1px solid #e2e7ee; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(16, 24, 40, .027); cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.hr-candidate-card { flex: 0 0 auto; }
.hr-candidate-card:hover { border-color: #b9cee7; box-shadow: 0 8px 22px rgba(31, 67, 109, .07); transform: translateY(-1px); }
.hr-candidate-card.selected { border-color: #79a9e5; box-shadow: 0 0 0 2px rgba(2, 92, 226, .08), 0 8px 22px rgba(31, 67, 109, .08); }
.hr-candidate-card.selected::before { position: absolute; top: 10px; bottom: 10px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--hr-blue); content: ""; }
.hr-candidate-card-top { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.hr-candidate-card-title { min-width: 0; flex: 1; }
.hr-candidate-card-title > strong { display: block; overflow: hidden; color: #26354a; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.hr-rank-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.hr-rank-badges span { padding: 3px 6px; border-radius: 999px; font-size: 8.5px; font-weight: 750; }
.hr-rank-badges .direct { color: #08766f; background: #e6f7f4; }
.hr-rank-badges .potential { color: #7049b8; background: #f0ebfc; }
.hr-card-score { flex: 0 0 auto; text-align: right; }
.hr-card-score b { font-size: 17px; }
.hr-card-score small { color: #98a2b3; font-size: 8px; }
.hr-candidate-card > p { display: -webkit-box; margin: 10px 0 8px; overflow: hidden; color: #667386; font-size: 10.5px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hr-mini-evidence { display: flex; flex-wrap: wrap; gap: 5px; }
.hr-mini-evidence span { display: inline-flex; align-items: center; gap: 3px; padding: 4px 6px; border-radius: 7px; font-size: 8.5px; font-weight: 650; }
.hr-mini-evidence .strong { color: #157149; background: #eaf8f0; }
.hr-mini-evidence .medium { color: #8a6500; background: #fff7df; }
.hr-mini-evidence .low { color: #a04e59; background: #fff0f1; }
.hr-mini-evidence .unclear { color: #697586; background: #f1f3f6; }
.hr-card-progress { height: 3px; margin-top: 11px; overflow: hidden; border-radius: 999px; background: #edf1f5; }
.hr-card-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1369d4, #53a1ff); }
.hr-card-rank { position: absolute; right: 13px; bottom: 10px; color: #8e99a8; font-size: 8px; }
.hr-empty-list { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 30px; color: #8a95a5; text-align: center; border: 1px dashed #d5dce5; border-radius: 15px; background: rgba(255, 255, 255, .72); }
.hr-empty-list strong { color: #4e5c70; font-size: 13px; }
.hr-empty-list span { font-size: 11px; }

.hr-candidate-detail-shell { min-width: 0; }
.hr-candidate-detail { min-width: 0; padding: 19px; border: 1px solid #e0e6ed; border-radius: 17px; background: #fff; box-shadow: 0 8px 28px rgba(16, 24, 40, .05); }
.hr-empty-detail { display: grid; place-items: center; min-height: 400px; color: #8792a2; }
.hr-detail-header { display: flex; align-items: center; gap: 11px; padding-bottom: 15px; border-bottom: 1px solid #edf0f4; }
.hr-detail-header > div { min-width: 0; flex: 1; }
.hr-detail-header p { margin: 0 0 3px; color: #8792a3; font-size: 9px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.hr-detail-header h2 { margin: 0; overflow: hidden; color: #202e41; font-size: 20px; white-space: nowrap; text-overflow: ellipsis; }
.hr-detail-header div > span { display: block; margin-top: 4px; color: #8994a3; font-size: 10px; }
.hr-resume-button { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 0 11px; color: #075fc9; border: 1px solid #cfe0f5; border-radius: 9px; background: #f7fbff; font: inherit; font-size: 10px; font-weight: 750; cursor: pointer; }
.hr-resume-button:hover { border-color: #8db7e8; background: #edf6ff; }
.hr-score-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 14px 0; }
.hr-score-block { position: relative; min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px; overflow: hidden; border: 1px solid; border-radius: 12px; }
.hr-score-block.teal { border-color: #d7eee9; background: #f4fbf9; }
.hr-score-block.violet { border-color: #e4dcf7; background: #faf8ff; }
.hr-score-block > div:first-child span, .hr-score-block > div:first-child small { display: block; }
.hr-score-block > div:first-child span { color: #405064; font-size: 10px; font-weight: 750; }
.hr-score-block > div:first-child small { margin-top: 3px; color: #8b96a5; font-size: 8.5px; }
.hr-score-block > strong { font-size: 21px; line-height: 1; }
.hr-score-block > strong small { margin-left: 2px; color: #98a2b3; font-size: 8px; }
.hr-score-track { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 999px; background: rgba(91, 112, 136, .12); }
.hr-score-track i { display: block; height: 100%; border-radius: inherit; }
.hr-score-block.teal .hr-score-track i { background: #1a9587; }
.hr-score-block.violet .hr-score-track i { background: #8567ce; }
.hr-detail-section { margin-top: 14px; }
.hr-detail-section > h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: #344054; font-size: 11px; }
.hr-detail-section.highlight { display: flex; gap: 9px; padding: 11px 12px; border: 1px solid #f0e2bc; border-radius: 11px; background: linear-gradient(115deg, #fffcf3, #fff); }
.hr-detail-section.highlight > span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; color: #a66c11; border-radius: 9px; background: #fff2cf; }
.hr-detail-section.highlight h3 { margin: 0 0 3px; color: #7f5c1d; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.hr-detail-section.highlight p { margin: 0; color: #536175; font-size: 10.5px; line-height: 1.45; }
.hr-reason-card { margin-top: 7px; padding: 10px 11px; border-left: 3px solid; border-radius: 4px 10px 10px 4px; background: #f8fafc; }
.hr-reason-card.direct { border-color: #26a091; }
.hr-reason-card.potential { border-color: #8769ce; }
.hr-reason-card span { display: block; margin-bottom: 4px; color: #5f6d7f; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.hr-reason-card p { margin: 0; color: #4c5a6e; font-size: 10.5px; line-height: 1.48; }
.hr-evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.hr-evidence-item { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid #e8ecf1; border-radius: 10px; background: #fbfcfd; }
.hr-evidence-icon { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; color: #61738a; border-radius: 8px; background: #eef2f6; }
.hr-evidence-item div { min-width: 0; }
.hr-evidence-item small, .hr-evidence-item strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hr-evidence-item small { color: #8590a0; font-size: 8px; }
.hr-evidence-item strong { margin-top: 2px; font-size: 9.5px; }
.hr-evidence-item strong.strong { color: #17724a; }
.hr-evidence-item strong.medium { color: #8b6807; }
.hr-evidence-item strong.low { color: #a24c57; }
.hr-evidence-item strong.unclear { color: #667386; }
.hr-interview-checks { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hr-interview-checks li { display: flex; align-items: flex-start; gap: 8px; color: #526074; font-size: 10px; line-height: 1.42; }
.hr-interview-checks li span { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 auto; color: #416a9b; border-radius: 6px; background: #edf4fc; font-size: 8px; font-weight: 800; }
.hr-resume-viewer { margin-top: 16px; overflow: hidden; border: 1px solid #dce3ec; border-radius: 13px; background: #eef2f6; }
.hr-resume-viewer-header { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 11px; border-bottom: 1px solid #dce3ec; background: #fff; }
.hr-resume-viewer-header > div, .hr-resume-viewer-header a { display: flex; align-items: center; gap: 6px; }
.hr-resume-viewer-header strong { font-size: 10px; }
.hr-resume-viewer-header span { color: #8a95a4; font-size: 8.5px; }
.hr-resume-viewer-header a { color: #075fc9; font-size: 9px; font-weight: 700; text-decoration: none; }
.hr-resume-viewer iframe { width: 100%; height: min(720px, 72vh); display: block; border: 0; background: #e7ebf0; }

.hr-offer-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .6fr); align-items: start; gap: 16px; margin-top: 18px; }
.hr-offer-card { padding: 22px; }
.hr-offer-card > header { display: flex; align-items: center; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid #edf0f4; }
.hr-offer-card > header > span { width: 45px; height: 45px; display: grid; place-items: center; color: #fff; border-radius: 13px; background: #075fc9; }
.hr-offer-card header p { margin: 0; color: #188150; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.hr-offer-card header h2 { margin: 3px 0; font-size: 21px; }
.hr-offer-card header small { color: #7c8797; font-size: 10px; }
.hr-offer-intro { margin: 18px 0; color: #4c5a6c; font-size: 12px; line-height: 1.6; }
.hr-offer-list { margin-top: 18px; }
.hr-offer-list h3 { margin: 0 0 9px; font-size: 13px; }
.hr-offer-list ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.hr-offer-list li { display: flex; align-items: flex-start; gap: 8px; color: #526074; font-size: 11px; line-height: 1.45; }
.hr-offer-list li svg { flex: 0 0 auto; margin-top: 1px; color: #249169; }
.hr-offer-location { display: flex; align-items: center; gap: 9px; margin-top: 21px; padding: 13px; color: #346086; border-radius: 11px; background: #f0f6fc; }
.hr-offer-location div { display: grid; gap: 2px; }
.hr-offer-location strong { font-size: 10px; }
.hr-offer-location span { font-size: 9px; }
.hr-rubric-card { padding: 20px; }
.hr-rubric-icon { width: 43px; height: 43px; display: grid; place-items: center; color: #075fc9; border-radius: 13px; background: #eaf3ff; }
.hr-rubric-card h2 { margin: 13px 0 7px; font-size: 17px; }
.hr-rubric-card > p { margin: 0; color: #6d798a; font-size: 10.5px; line-height: 1.52; }
.hr-rubric-card > div { display: grid; gap: 4px; margin-top: 13px; padding: 11px; border: 1px solid #e8ecf2; border-radius: 10px; background: #fafbfd; }
.hr-rubric-card > div strong { color: #35465c; font-size: 10px; }
.hr-rubric-card > div span { color: #768294; font-size: 9px; line-height: 1.45; }
.hr-rubric-card .hr-rubric-foot { display: flex; align-items: flex-start; gap: 6px; margin-top: 15px; padding: 10px; color: #357353; border-radius: 9px; background: #edf8f2; }
.hr-rubric-foot svg { flex: 0 0 auto; }

.hr-screening-notice { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; padding: 11px 13px; color: #6e6250; border: 1px solid #eee4d2; border-radius: 11px; background: #fffaf1; font-size: 9.5px; line-height: 1.48; }
.hr-screening-notice svg { flex: 0 0 auto; margin-top: 1px; color: #a7792f; }

@media (min-width: 1180px) {
  .hr-candidate-detail { position: sticky; top: 12px; }
}

@media (max-width: 1180px) {
  .hr-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hr-candidate-layout { grid-template-columns: minmax(300px, .7fr) minmax(440px, 1.3fr); }
  .hr-evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hr-method-panel { grid-template-columns: auto 1fr; }
  .hr-method-steps { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .workspace.hr-workspace { padding: 18px; }
  .hr-workspace .hr-hero { flex-direction: column; align-items: stretch; gap: 16px; }
  .hr-workspace .hr-dataset-select { min-width: 0; width: 100%; }
  .hr-private-pill { display: none; }
  .hr-overview-grid { grid-template-columns: 1fr; }
  .hr-method-panel { grid-column: auto; }
  .hr-filter-bar { grid-template-columns: 1fr auto; }
  .hr-result-count { display: none; }
  .hr-candidate-layout { grid-template-columns: 1fr; }
  .hr-candidate-list { max-height: 460px; min-height: 0; }
  .hr-offer-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .workspace.hr-workspace { padding: 12px 10px 24px; }
  .hr-hero { min-height: 0; padding: 16px; border-radius: 15px; }
  .hr-hero-icon { width: 44px; height: 44px; border-radius: 13px; }
  .hr-hero h1 { font-size: 21px; }
  .hr-job-meta { gap: 7px 11px; font-size: 10px; }
  .hr-summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hr-summary-card { gap: 8px; padding: 11px; border-radius: 12px; }
  .hr-summary-icon { width: 30px; height: 30px; }
  .hr-summary-card p { font-size: 9.5px; }
  .hr-summary-card strong { font-size: 21px; }
  .hr-summary-card span:not(.hr-summary-icon) { font-size: 8px; }
  .hr-tabs { margin-right: -10px; margin-left: -10px; padding: 0 10px; }
  .hr-tabs button { min-height: 42px; padding: 0 11px; font-size: 11px; }
  .hr-panel-heading { align-items: flex-start; }
  .hr-panel-heading > button { font-size: 9px; }
  .hr-overview-panel { padding: 13px; }
  .hr-overview-ranking > button { grid-template-columns: 23px 32px minmax(0, 1fr) auto; gap: 7px; }
  .hr-overview-ranking > button > svg { display: none; }
  .hr-avatar { width: 32px; height: 32px; border-radius: 9px; font-size: 9px; }
  .hr-overview-person small { max-width: 170px; }
  .hr-method-panel { grid-template-columns: auto 1fr; padding: 14px; }
  .hr-method-steps { grid-template-columns: 1fr; }
  .hr-filter-bar { grid-template-columns: 1fr; }
  .hr-filter-select select { width: 100%; min-width: 0; }
  .hr-candidate-card { padding: 12px; }
  .hr-candidate-detail { padding: 14px; border-radius: 14px; }
  .hr-detail-header { align-items: flex-start; flex-wrap: wrap; }
  .hr-detail-header > div { flex: 1 1 calc(100% - 60px); }
  .hr-resume-button { width: 100%; justify-content: center; }
  .hr-score-pair { grid-template-columns: 1fr; }
  .hr-evidence-grid { grid-template-columns: 1fr 1fr; }
  .hr-resume-viewer-header span { display: none; }
  .hr-resume-viewer iframe { height: 62vh; }
  .hr-offer-card, .hr-rubric-card { padding: 16px; }
}

/* Canonical aging report: overdue non-ODF balances. */
.dashboard-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-summary-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.dashboard-summary-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, .1);
}

.dashboard-summary-link:focus-visible {
  outline: 3px solid color-mix(in srgb, #025ce2 35%, transparent);
  outline-offset: 2px;
}

.dashboard-summary-card.amber {
  border-color: rgba(253, 230, 138, .85);
  background: linear-gradient(to bottom right, rgba(255, 251, 235, .96), rgba(254, 243, 199, .55));
  box-shadow: 0 0 0 1px rgba(254, 240, 138, .55), 0 1px 3px rgba(0, 0, 0, .08);
}

.dashboard-summary-card.amber .dashboard-summary-label {
  color: #92400e;
}

.dashboard-summary-card.amber .dashboard-summary-label::before {
  background: #d97706;
}

.dashboard-summary-subtitle {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.payments-tabs.dentalome-segmented-tabs {
  width: max-content;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.payments-tabs.dentalome-segmented-tabs button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.overdue-unpaid-panel {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.overdue-unpaid-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.overdue-unpaid-summary > div {
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fff;
}

.overdue-unpaid-summary span,
.overdue-unpaid-summary strong {
  display: block;
}

.overdue-unpaid-summary span {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-transform: uppercase;
}

.overdue-unpaid-summary strong {
  margin-top: 5px;
  color: #1e293b;
  font-size: 20px;
  font-weight: 650;
  line-height: 26px;
}

.overdue-unpaid-summary > div:first-child {
  border-color: #fcd34d;
  background: #fffbeb;
}

.overdue-unpaid-summary > div:first-child strong {
  color: #92400e;
}

.overdue-unpaid-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.overdue-unpaid-search {
  position: relative;
  display: flex;
  flex: 1 1 320px;
  min-width: 220px;
  align-items: center;
}

.overdue-unpaid-search svg {
  position: absolute;
  left: 12px;
  color: #71717a;
  pointer-events: none;
}

.overdue-unpaid-search input {
  width: 100%;
  height: 38px;
  padding: 8px 12px 8px 38px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fff;
  color: #18181b;
  font: inherit;
}

.overdue-unpaid-search input:focus {
  border-color: #025ce2;
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, #025ce2 18%, transparent);
}

.overdue-unpaid-sort {
  display: inline-flex;
  height: 38px;
  align-items: center;
  padding: 3px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #f4f4f5;
}

.overdue-unpaid-sort button {
  height: 30px;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #52525b;
  font-size: 13px;
  font-weight: 600;
}

.overdue-unpaid-sort button.active {
  background: #fff;
  color: #18181b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

.overdue-unpaid-sort .overdue-unpaid-direction {
  width: 32px;
  padding: 0;
}

.overdue-unpaid-download {
  flex: 0 0 auto;
  height: 38px;
  text-decoration: none;
}

.overdue-unpaid-filter-result {
  margin: -6px 0 0;
  color: #52525b;
  font-size: 13px;
}

.overdue-unpaid-error,
.overdue-unpaid-empty,
.overdue-unpaid-state {
  margin: 0;
  padding: 18px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fff;
}

.overdue-unpaid-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.overdue-unpaid-error button {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-weight: 700;
}

.overdue-unpaid-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #64748b;
  text-align: center;
}

.overdue-unpaid-empty svg {
  color: #059669;
}

.overdue-unpaid-empty strong {
  color: #1e293b;
}

.overdue-unpaid-list {
  overflow: hidden;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fff;
  transition: opacity 120ms ease;
}

.overdue-unpaid-list.is-refreshing {
  opacity: .62;
}

.overdue-unpaid-list-head,
.overdue-unpaid-patient-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 72px 132px 144px 42px;
  align-items: center;
  gap: 12px;
}

.overdue-unpaid-list-head {
  min-height: 44px;
  padding: 10px 14px;
  background: #eef4ff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.overdue-unpaid-list-head span:nth-child(n+2):not(:last-child) {
  text-align: right;
}

.overdue-unpaid-patient + .overdue-unpaid-patient {
  border-top: 1px solid #e4e4e7;
}

.overdue-unpaid-patient-row {
  min-height: 70px;
  padding: 11px 14px;
}

.overdue-unpaid-identity {
  min-width: 0;
}

.overdue-unpaid-identity a {
  display: block;
  overflow: hidden;
  color: #025ce2;
  font-weight: 650;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overdue-unpaid-identity a:hover {
  text-decoration: underline;
}

.overdue-unpaid-identity span,
.overdue-unpaid-patient-row > span small {
  display: block;
  margin-top: 3px;
  color: #71717a;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.overdue-unpaid-patient-row > strong,
.overdue-unpaid-patient-row > span,
.overdue-unpaid-patient-row > b {
  text-align: right;
}

.overdue-unpaid-patient-row > b {
  color: #b45309;
  font-size: 14px;
}

.overdue-unpaid-expand {
  width: 34px;
  height: 34px;
  transition: transform 150ms ease;
}

.overdue-unpaid-patient.expanded .overdue-unpaid-expand {
  transform: rotate(180deg);
}

.overdue-unpaid-act-scroll {
  overflow-x: auto;
  border-top: 1px solid #e4e4e7;
  background: #fafafa;
}

.overdue-unpaid-acts {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  font-size: 13px;
}

.overdue-unpaid-acts th,
.overdue-unpaid-acts td {
  padding: 10px 12px;
  border-bottom: 1px solid #e4e4e7;
  text-align: left;
  vertical-align: top;
}

.overdue-unpaid-acts th {
  color: #52525b;
  font-size: 12px;
  font-weight: 700;
}

.overdue-unpaid-acts td:last-child {
  color: #b45309;
  font-weight: 700;
  white-space: nowrap;
}

.overdue-unpaid-acts td small {
  color: #71717a;
}

.overdue-unpaid-footer {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .dashboard-summary-grid,
  .overdue-unpaid-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-summary-card:last-child {
    grid-column: auto;
  }

  .overdue-unpaid-toolbar {
    flex-wrap: wrap;
  }

  .overdue-unpaid-search {
    flex-basis: 100%;
  }
}

@media (max-width: 639px) {
  .dashboard-summary-grid,
  .overdue-unpaid-summary {
    grid-template-columns: 1fr;
  }

  .payments-tabs.dentalome-segmented-tabs {
    display: grid;
    width: 100%;
    overflow: visible;
  }

  .payments-tabs.dentalome-segmented-tabs button {
    width: 100%;
  }

  .overdue-unpaid-sort {
    flex: 1 1 auto;
  }

  .overdue-unpaid-download {
    flex: 1 1 100%;
    justify-content: center;
  }

  .overdue-unpaid-list-head {
    display: none;
  }

  .overdue-unpaid-patient-row {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 8px 12px;
  }

  .overdue-unpaid-identity {
    grid-column: 1;
  }

  .overdue-unpaid-patient-row > strong,
  .overdue-unpaid-patient-row > span,
  .overdue-unpaid-patient-row > b {
    text-align: left;
  }

  .overdue-unpaid-patient-row > strong::before {
    content: "Actes : ";
    color: #71717a;
    font-weight: 500;
  }

  .overdue-unpaid-patient-row > span::before {
    content: "Plus ancien : ";
    color: #71717a;
    font-weight: 500;
  }

  .overdue-unpaid-patient-row > b::before {
    content: "Reste : ";
    color: #71717a;
    font-weight: 500;
  }

  .overdue-unpaid-expand {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
  }

  .overdue-unpaid-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

@font-face {
  font-family: "Work Sans";
  src: url("/dentalome-assets/WorkSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("/dentalome-assets/WorkSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans Tight";
  src: url("/dentalome-assets/WorkSans-SemiBold-Tight.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("/dentalome-assets/WorkSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #005fe5;
  --blue-dark: #064eb8;
  --accent: #075fe5;
  --green: #589363;
  --green-bright: #2f8d36;
  --red: #c73535;
  --yellow-soft: #f7f2d7;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --panel: #ffffff;
  --page: #f4f5f7;
  font-family: "Work Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  overflow-wrap: break-word;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: oklch(0.141 0.005 285.823);
  background: oklch(1 0 0);
  line-height: 24px;
  border: 0 solid oklch(0.92 0.004 286.32);
}

* {
  box-sizing: border-box;
  border: 0 solid oklch(0.92 0.004 286.32);
}

body {
  margin: 0;
  min-width: 1280px;
  line-height: 24px;
  background: oklch(1 0 0);
  border: 0 solid oklch(0.92 0.004 286.32);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  grid-template-rows: 60px minmax(0, 1fr);
  background: var(--page);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  grid-column: 2;
  grid-row: 1;
  height: 60px;
  display: grid;
  grid-template-columns: minmax(420px, 500px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 24px 0 64px;
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: none;
}

.brand {
  display: none;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0;
  font-size: 27px;
}

.brand span {
  display: block;
  color: #fff;
}

.shell-logo,
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7ed2bc, #315d91);
  color: #fff;
  font-weight: 900;
  border: 4px solid rgba(255, 255, 255, 0.35);
}

.global-search {
  position: relative;
  display: block;
  width: calc(100% - 1px);
  max-width: 500px;
  justify-self: start;
}

.global-search input {
  width: 100%;
  height: 38px;
  border: 1px solid #dfe3eb;
  border-radius: 9px;
  padding: 0 44px 0 36px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.global-search svg {
  position: absolute;
  left: 12px;
  right: auto;
  color: #6b7280;
  width: 17px;
  height: 17px;
}

.global-search::after {
  display: none;
}

.search-results {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  background: #fff;
  color: var(--ink);
  border-radius: 8.4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  overflow: hidden;
  border: 1px solid #e4e4e7;
  z-index: 60;
}

.search-results-list {
  display: block;
  max-height: min(320px, calc(100dvh - 80px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  color: oklch(0.141 0.005 285.823);
}

.search-result-option {
  display: flex;
  align-items: center;
  width: calc(100% - 8px);
  height: 32px;
  margin: 4px;
  gap: 8px;
  text-align: left;
  padding: 6px 8px;
  background: oklch(0.967 0.001 286.375);
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 6.4px;
  color: oklch(0.21 0.006 285.885);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
}

.search-result-option:hover,
.search-result-option.active {
  background: #f4f4f5;
}

.search-result-option .search-result-meta {
  margin-left: 8px;
  color: oklch(0.552 0.016 285.938);
  font-size: 12px;
  line-height: 16px;
}

.user-zone {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  min-width: 88px;
}

.user-zone span {
  display: inline-block;
  color: #fff;
  white-space: nowrap;
}

.topbar-action {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
  color: #111827;
  box-shadow: none;
}

.topbar-action svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.topbar-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 5px solid #0a0a0a;
  background: #fff;
  color: #0a0a0a;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #111;
  border: 4px solid #111;
}

.app-body {
  grid-column: 1 / -1;
  grid-row: 1 / span 2;
  display: grid;
  min-height: 100vh;
}

.app-body.with-rail {
  grid-template-columns: 256px minmax(0, 1fr);
}

.app-body.no-rail {
  grid-template-columns: 256px minmax(0, 1fr);
}

.app-body.patient-detail-mode {
  grid-template-columns: 256px minmax(0, 1fr);
}

.primary-nav,
.patient-side-nav,
.utility-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: 45;
  border-right: 1px solid #e5e7eb;
}

.patient-side-nav,
.utility-rail {
  right: 0;
  background: #fff;
  border-left: 1px solid var(--line);
  border-right: 0;
  width: 80px;
  top: 60px;
  height: calc(100vh - 60px);
}

.primary-nav {
  padding: 0;
  overflow: hidden;
  width: 256px;
}

.primary-nav-brand {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 26px;
  border-bottom: 1px solid #e5e7eb;
  color: #005fe5;
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.primary-nav-brand .shell-logo {
  width: 34px;
  height: 34px;
  border-width: 0;
  border-radius: 8px;
  font-size: 0;
  background: #005fe5;
}

.primary-nav-brand .shell-logo::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  display: block;
}

.primary-nav-scroll {
  overflow: auto;
  min-height: 0;
  padding: 14px 8px 12px;
  scrollbar-width: none;
}

.primary-nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-section {
  padding: 0 0 18px;
}

.nav-section-label {
  display: block;
  padding: 0 8px 10px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.nav-section + .nav-section {
  border-top: 1px solid transparent;
}

.primary-nav button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #374151;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  font-weight: 500;
  text-align: left;
}

.patient-side-nav button,
.utility-rail button {
  min-height: 82px;
  border: 0;
  background: transparent;
  color: #111;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 8px 5px;
  font-weight: 800;
}

.patient-side-nav button {
  color: #111;
  border-left: 0;
  border-radius: 22px 0 0 22px;
  margin: 3px 0 3px 0;
}

.utility-rail button {
  color: #111;
  border-left: 0;
}

.primary-nav button.active,
.primary-nav button:hover {
  background: #dfe7f0;
  color: #075fe5;
}

.patient-side-nav button.active,
.patient-side-nav button:hover {
  background: var(--green);
  color: #fff;
}

.utility-rail button.active,
.utility-rail button:hover {
  background: transparent;
  color: #111;
}

.primary-nav span {
  display: block;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.025em;
  text-align: left;
}

.patient-side-nav span {
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
}

.primary-nav-user {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  margin: 0 16px 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f5f6f8;
}

.mini-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef2f6;
  color: #344054;
  font-weight: 800;
  font-size: 13px;
}

.primary-nav-user strong,
.primary-nav-user span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-nav-user strong {
  font-size: 13px;
}

.primary-nav-user span {
  color: #667085;
  font-size: 11px;
  font-weight: 500;
}

.nav-logout {
  justify-content: center;
  padding: 0 !important;
  min-height: 28px !important;
}

.main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding-top: 60px;
  background: var(--page);
  overflow: auto;
  min-height: 100vh;
}

.workspace {
  padding: 28px 24px 32px;
}

.workspace h1 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.05;
}

.admin-source-workspace {
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: center;
}

.admin-source-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
  text-align: center;
}

.admin-source-fallback h1 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 650;
}

.admin-source-fallback p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.45;
}

.admin-source-workspace.admin-medecins-workspace,
.admin-source-workspace.admin-demandes-workspace,
.admin-source-workspace.admin-abonnements-statistiques-workspace,
.admin-source-workspace.admin-abonnements-workspace {
  display: block;
  min-height: auto;
}

.admin-source-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-source-header h1 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
}

.admin-source-header p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.admin-medecins-status-filter {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: #667085;
  font-size: 14px;
  font-weight: 500;
}

.admin-medecins-status-filter .secondary-button {
  min-height: 36px;
  border-radius: 8px;
  font-size: 14px;
}

.admin-medecins-status-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 104px;
  z-index: 20;
  min-width: 138px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.admin-medecins-status-filter:focus-within .admin-medecins-status-menu,
.admin-medecins-status-filter:hover .admin-medecins-status-menu,
.admin-medecins-status-menu.open {
  display: grid;
}

.admin-medecins-status-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1f2937;
  font-size: 14px;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}

.admin-medecins-status-menu button:hover,
.admin-medecins-status-menu button.active {
  background: #eff6ff;
  color: #075ee8;
}

.admin-medecins-search {
  width: min(100%, 420px);
  min-height: 40px;
  margin-top: 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  padding: 0 13px;
  outline: none;
}

.admin-medecins-search:focus {
  border-color: #93b5f8;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, 0.12);
}

.admin-medecins-workspace .dentalome-table-wrap {
  border-radius: 6px 6px 0 0;
}

.admin-medecins-workspace table {
  min-width: 1080px;
}

.admin-demandes-workspace table {
  min-width: 720px;
}

.admin-demandes-status-filter {
  display: inline-flex;
  margin-top: 0;
}

.admin-demandes-status-filter .secondary-button {
  min-width: 206px;
  justify-content: space-between;
}

.admin-demandes-status-filter .admin-medecins-status-menu {
  left: 0;
  min-width: 100%;
}

.admin-abonnements-workspace table {
  min-width: 760px;
}

.admin-medecins-workspace th,
.admin-medecins-workspace td,
.admin-demandes-workspace th,
.admin-demandes-workspace td,
.admin-abonnements-workspace th,
.admin-abonnements-workspace td {
  padding: 14px 16px;
  font-size: 14px;
}

.admin-medecin-name,
.admin-medecin-subscription {
  color: #111827;
  font-weight: 600;
}

.admin-source-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 10px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-source-badge.premium {
  background: #eafaf0;
  border-color: #b9ebcb;
  color: #15803d;
}

.admin-source-badge.warning {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.admin-source-badge.destructive {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.admin-source-badge.outline {
  background: #fff;
  border-color: #d0d5dd;
  color: #344054;
  font-weight: 500;
}

.admin-medecin-actions {
  gap: 6px;
}

.admin-demande-actions {
  gap: 8px;
  align-items: center;
}

.admin-demande-actions .plain-icon.success {
  color: #15803d;
}

.admin-demande-actions .plain-icon.success:hover {
  color: #15803d;
  background: rgba(34, 197, 94, 0.1);
}

.admin-demande-actions .plain-icon.destructive {
  color: #b91c1c;
}

.admin-demande-actions .plain-icon.destructive:hover {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.1);
}

.admin-abonnement-actions {
  gap: 8px;
  align-items: center;
}

.admin-abonnement-received,
.admin-abonnement-remaining {
  color: #111827;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.admin-abonnement-received,
.admin-abonnement-remaining.paid {
  color: #16a34a;
}

.admin-abonnement-remaining.due {
  color: #dc2626;
}

.admin-abonnement-detail-link {
  color: #111827;
}

.admin-abonnement-detail-link:hover {
  color: #075ee8;
  background: #eff6ff;
}

.admin-abonnements-statistiques-workspace {
  min-height: calc(100vh - 60px);
}

.admin-subscription-current-page {
  display: block;
  color: #0f172a;
}

.admin-subscription-current-header {
  margin-bottom: 24px;
}

.admin-subscription-current-header h1 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: 0;
}

.admin-subscription-current-header p {
  margin: 7px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.admin-subscription-current-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 14px 0;
  margin-bottom: 24px;
}

.admin-subscription-date-range {
  position: relative;
}

.admin-subscription-date-range > button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 0 13px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.admin-subscription-date-range strong {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.admin-subscription-preset-control {
  width: 142px;
}

.admin-subscription-date-menu {
  display: grid;
  gap: 6px;
  width: 242px;
  padding: 10px 12px;
}

.admin-subscription-date-menu span {
  color: #344054;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.admin-subscription-revenue-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  padding: 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.admin-subscription-card-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-subscription-card-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
}

.admin-subscription-card-heading p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.admin-subscription-current-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.admin-subscription-pie-shell,
.admin-subscription-detail-panel,
.admin-subscription-empty-state {
  min-height: 400px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-subscription-pie-shell {
  position: relative;
  height: 400px;
  padding: 8px;
}

.admin-subscription-chart-canvas-host {
  height: 100%;
  width: 100%;
}

.admin-subscription-empty-chart,
.admin-subscription-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  padding: 24px;
}

.admin-subscription-detail-panel {
  padding: 16px;
}

.admin-subscription-detail-panel > p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  font-weight: 650;
}

.admin-subscription-detail-panel ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-subscription-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.admin-subscription-detail-row span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: #334155;
  font-size: 14px;
}

.admin-subscription-detail-row i {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.admin-subscription-detail-row strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-subscription-detail-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.8);
}

.admin-subscription-detail-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.admin-subscription-detail-panel small {
  display: block;
  margin-top: 16px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.admin-source-pagination {
  margin-top: 12px;
}

.admin-medecins-pagination {
  justify-content: space-between;
  margin-top: 0;
  border: 1px solid #e4e7ec;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  padding: 16px;
  color: #667085;
}

.admin-abonnements-pagination {
  justify-content: space-between;
  margin-top: 0;
  border: 1px solid #e4e7ec;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  padding: 16px;
  color: #667085;
}

.admin-source-workspace.admin-medecin-detail-workspace {
  display: block;
  min-height: auto;
}

.admin-source-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin-bottom: 18px;
  color: #667085;
  font-size: 14px;
  font-weight: 500;
}

.admin-source-breadcrumb button {
  border: 0;
  background: transparent;
  color: #075ee8;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.admin-source-breadcrumb strong {
  color: #111827;
  font-weight: 650;
}

.admin-medecin-detail-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-medecin-profile-card,
.admin-medecin-current-section {
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.admin-medecin-profile-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
}

.admin-medecin-detail-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #eff6ff;
  color: #075ee8;
  font-size: 18px;
  font-weight: 650;
}

.admin-medecin-profile-main {
  flex: 1;
  min-width: 0;
}

.admin-medecin-profile-main h1 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.24;
  font-weight: 650;
  letter-spacing: 0;
}

.admin-medecin-profile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin-top: 6px;
  color: #64748b;
  font-size: 14px;
}

.admin-medecin-profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.admin-medecin-profile-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.admin-medecin-echance {
  color: #64748b;
  font-size: 14px;
  white-space: nowrap;
}

.admin-medecin-renew-button {
  min-height: 40px;
  flex: 0 0 auto;
  gap: 8px;
  white-space: nowrap;
}

.admin-medecin-current-section {
  margin-top: 24px;
  overflow: hidden;
}

.admin-medecin-current-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 57px;
  padding: 16px 20px;
  border-bottom: 1px solid #e4e7ec;
}

.admin-medecin-section-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  color: #075ee8;
}

.admin-medecin-current-section h2 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.admin-medecin-current-section .dentalome-table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-medecin-current-section table {
  min-width: 760px;
}

.admin-medecin-current-section th,
.admin-medecin-current-section td {
  padding: 13px 16px;
  font-size: 14px;
}

.admin-medecin-subscriptions-section th:nth-child(3),
.admin-medecin-subscriptions-section th:nth-child(4),
.admin-medecin-subscriptions-section th:nth-child(5),
.admin-medecin-subscriptions-section td:nth-child(3),
.admin-medecin-subscriptions-section td:nth-child(4),
.admin-medecin-subscriptions-section td:nth-child(5) {
  text-align: right;
}

.admin-medecin-amount {
  color: #475569;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.admin-medecin-amount.total {
  color: #075ee8;
}

.admin-medecin-amount.received {
  color: #16a34a;
}

.admin-medecin-amount.due {
  color: #dc2626;
}

.admin-medecin-subscription-actions {
  gap: 2px;
}

.admin-medecin-block-button {
  min-height: 32px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: #fee2e2;
  color: #b91c1c;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.admin-medecin-block-button.unblock {
  border-color: #16a34a;
  background: #fff;
  color: #16a34a;
}

.admin-medecin-credit-body {
  display: grid;
  gap: 24px;
  padding: 20px;
}

.admin-medecin-credit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-medecin-credit-card,
.admin-medecin-credit-form {
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.55);
  padding: 20px;
}

.admin-medecin-credit-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-medecin-credit-card-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-medecin-credit-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #075ee8;
  background: #eff6ff;
}

.admin-medecin-credit-icon.whatsapp {
  color: #16a34a;
  background: #eafaf0;
}

.admin-medecin-credit-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 650;
}

.admin-medecin-credit-card small {
  color: #64748b;
  font-size: 12px;
}

.admin-medecin-credit-card p {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
}

.admin-medecin-credit-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e7ec;
}

.admin-medecin-credit-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #075ee8;
}

.admin-medecin-credit-card.whatsapp .admin-medecin-credit-track i {
  background: #16a34a;
}

.admin-medecin-credit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

.admin-medecin-credit-form p {
  grid-column: 1 / -1;
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
}

.admin-medecin-credit-form label {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 650;
}

.admin-medecin-credit-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}

@media (max-width: 700px) {
  .admin-source-header {
    display: grid;
  }

  .admin-source-header .primary-button {
    justify-self: start;
  }

  .admin-medecins-status-filter {
    align-items: flex-start;
  }

  .admin-medecins-status-menu {
    left: 0;
  }

  .admin-source-breadcrumb {
    margin-bottom: 14px;
  }

  .admin-medecin-detail-topline,
  .admin-medecin-profile-card,
  .admin-medecin-credit-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-medecin-profile-badges {
    justify-content: flex-start;
  }

  .admin-medecin-profile-main h1 {
    font-size: 22px;
  }

  .admin-medecin-credit-grid {
    grid-template-columns: 1fr;
  }

  .admin-medecin-renew-button {
    justify-content: center;
    width: 100%;
  }
}

.dentalome-date-input button:disabled {
  cursor: default;
  opacity: 1;
}

.agenda-workspace {
  padding: 24px 24px 8px;
}

.agenda-workspace h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
}

.agenda-title-copy {
  font-family: "Work Sans", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.025em;
}

.agenda-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  height: 58px;
  margin-bottom: 16px;
}

.agenda-page-head > div {
  display: grid;
  gap: 2px;
}

.agenda-page-head p {
  margin: 0;
  color: #71717a;
  font-size: 16px;
  line-height: 24px;
}

.agenda-page-head select {
  width: 256px;
  height: 36px;
  border: 1px solid #e2e6ee;
  border-radius: 8.4px;
  padding: 8px 12px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.agenda-practitioner-select {
  transform: translate(-1px, 7px);
}

.workspace h2 {
  margin: 0 0 12px;
  font-size: 25px;
}

.section-title-row,
.panel-head,
.agenda-toolbar,
.finance-row,
.period-bar,
.stats-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.legend-row,
.period-bar,
.stats-filter {
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 3px 16px rgba(15, 23, 42, 0.08);
}

.legend-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  height: calc(100% - 356.2px);
  margin: 16px 0 0;
  overflow-y: auto;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.legend-row span {
  box-sizing: border-box;
  flex: 0 0 38px;
  width: calc(100% - 8px);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px dashed rgba(228, 228, 231, 0.6);
  border-radius: 8.4px;
  padding: 8px;
  font-weight: 400;
  color: #71717a;
  font-size: 14px;
  line-height: 20px;
  font-style: italic;
  background: rgba(244, 244, 245, 0.3);
}

.legend-row i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.7;
}

.category-heading {
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  margin-bottom: 4px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
}

.category-heading h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.category-heading button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #e4e4e7;
  border-radius: 8.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.appointment-category-source-modal {
  position: relative;
  display: grid;
  width: min(500px, calc(100vw - 32px));
  gap: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
  padding: 24px 24px 16px;
}

.appointment-category-source-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  opacity: 0.72;
}

.appointment-category-source-close:hover {
  opacity: 1;
}

.appointment-category-source-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 28px;
  text-align: center;
}

.appointment-category-source-head h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.appointment-category-source-form {
  display: grid;
  gap: 24px;
}

.appointment-category-source-form label {
  display: grid;
  gap: 8px;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
}

.appointment-category-source-form input[type="text"] {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}

.appointment-category-source-form label.invalid input[type="text"] {
  border-color: #ef4444;
}

.appointment-category-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.appointment-category-color-row input[type="color"] {
  width: 80px;
  min-width: 80px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
  cursor: pointer;
}

.appointment-category-color-row input[type="text"] {
  flex: 1 1 auto;
}

.appointment-category-source-footer {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  margin: 0 -24px;
  border-top: 1px solid #e5e7eb;
  padding: 16px 24px 0;
}

.appointment-category-source-footer button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0 16px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}

.appointment-category-source-footer .primary-button {
  border-color: #025ce2;
  background: #025ce2;
  color: #fff;
}

@media (min-width: 640px) {
  .appointment-category-source-head {
    text-align: left;
  }

  .appointment-category-source-footer {
    flex-direction: row;
    justify-content: flex-end;
  }
}

.agenda-card {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  min-height: 0;
  height: calc(100vh - 166px);
  overflow: hidden;
  padding: 16px;
  border: 1px solid #e4e4e7;
  border-radius: 14.4px;
  background: #fff;
  box-shadow: none;
}

.agenda-practitioner-combobox {
  position: relative;
  width: 256px;
}

.agenda-practitioner-select {
  width: 256px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #e4e4e7;
  border-radius: 8.4px;
  background: #fff;
  color: #18181b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: left;
  transform: none;
}

.agenda-practitioner-select svg {
  flex: 0 0 auto;
  color: #667085;
}

.agenda-practitioner-selected-value {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.agenda-practitioner-selected-value > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-practitioner-select .agenda-practitioner-selected-icon {
  flex: 0 0 16px;
  color: #025ce2;
  fill: #025ce2;
  stroke: #025ce2;
}

.agenda-practitioner-options {
  position: absolute;
  z-index: 80;
  top: calc(100% + 4px);
  left: 0;
  width: 256px;
  max-height: 300px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e4e4e7;
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.agenda-practitioner-search {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e4e4e7;
  padding: 0 12px;
  color: #18181b;
}

.agenda-practitioner-search svg {
  flex: 0 0 16px;
  opacity: 0.5;
}

.agenda-practitioner-search input {
  width: 100%;
  height: 40px;
  min-width: 0;
  border: 0;
  border-radius: 8.4px;
  padding: 12px 0;
  background: transparent;
  color: #18181b;
  font-size: 14px;
  line-height: 20px;
  outline: none;
}

.agenda-practitioner-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 4px;
}

.agenda-practitioner-list button {
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6.4px;
  background: transparent;
  color: #18181b;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
}

.agenda-practitioner-list button:hover,
.agenda-practitioner-list button[aria-selected="true"] {
  background: #f4f4f5;
}

.agenda-practitioner-list button svg,
.agenda-practitioner-option-spacer {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.agenda-side {
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.add-appointment {
  height: 32px;
  border: 0;
  border-radius: 8.4px;
  background: #025ce2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.mini-calendar {
  margin-top: 15px;
  padding: 12px;
  border: 1px solid #e4e4e7;
  border-radius: 10.4px;
  background: #fff;
}

.mini-calendar-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  margin-bottom: 16px;
  text-align: center;
}

.mini-calendar-head button {
  position: absolute;
  top: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: #27272a;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.mini-calendar-head button:first-child {
  left: 0;
}

.mini-calendar-head button:last-child {
  right: 0;
}

.mini-calendar-dropdown {
  position: relative;
  height: 34px;
  border: 1px solid #e4e4e7;
  border-radius: 8.4px;
  background: transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mini-calendar-dropdown.month {
  width: 53.07px;
}

.mini-calendar-dropdown.year {
  width: 65.79px;
}

.mini-calendar-dropdown select,
.mini-calendar-caption {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 32px;
  border: 0;
  border-radius: 8.4px;
  color: #27272a;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.mini-calendar-dropdown select {
  z-index: 2;
  opacity: 0;
  cursor: pointer;
}

.mini-calendar-caption {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px 0 8px;
  pointer-events: none;
}

.mini-calendar-caption svg {
  width: 14px;
  height: 14px;
  color: #71717a;
}

.mini-calendar-grid {
  width: 224px;
  min-width: 224px;
  height: 219.2px;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  text-align: center;
  color: #667085;
  font-size: 12.8px;
  line-height: 19.2px;
}

.mini-calendar-grid thead tr,
.mini-calendar-grid th {
  height: 19.2px;
}

.mini-calendar-grid th {
  width: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12.8px;
  font-weight: 400;
  line-height: 19.2px;
  text-align: center;
}

.mini-calendar-grid tbody tr,
.mini-calendar-grid td {
  height: 40px;
}

.mini-calendar-grid td {
  width: 32px;
  padding: 8px 0 0;
  border: 0;
  font-size: 12.8px;
  line-height: 19.2px;
  text-align: center;
  vertical-align: top;
}

.mini-calendar-grid button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  padding: 0;
  color: #27272a;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
}

.mini-calendar-grid button.outside {
  color: #71717a;
}

.mini-calendar-grid button.today {
  background: #f4f4f5;
  color: #27272a;
}

.mini-calendar-grid button.selected {
  background: #025ce2;
  color: #f4f7ff;
}

.agenda-main-panel {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.agenda-calendar-surface {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.agenda-calendar-surface::after {
  content: "";
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: #ddd;
  pointer-events: none;
}

.agenda-toolbar {
  position: relative;
  z-index: 20;
  flex: 0 0 40px;
  height: 40px;
  align-items: flex-end;
  margin-bottom: 8px;
  padding: 0;
  gap: 0;
}

.agenda-actions,
.agenda-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.agenda-filters {
  justify-content: flex-start;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.agenda-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.agenda-filters select {
  min-width: 190px;
}

.agenda-filters span {
  margin-left: auto;
  color: var(--muted);
  font-weight: 900;
}

.agenda-toolbar-toggle-group,
.agenda-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agenda-toolbar-toggle-group {
  flex: 0 0 32px;
  height: 32px;
}

.agenda-range {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  height: 24px;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
}

.agenda-range span:not([aria-hidden="true"]) {
  font-weight: 500;
}

.agenda-range-mobile,
.agenda-mobile-add,
.agenda-today-mobile,
.agenda-week-mobile {
  display: none;
}

@media (max-width: 1280px) {
  .agenda-range {
    width: auto;
    flex: 1 1 auto;
    white-space: normal;
    font-size: 13px;
    line-height: 16px;
    min-width: 82px;
    max-width: 190px;
    height: auto;
  }
}

.agenda-toolbar-toggle-group .calendar-toggle {
  box-sizing: border-box;
}

.agenda-toolbar-toggle-group .calendar-toggle svg {
  width: 16px;
  height: 16px;
}

.segmented {
  display: flex;
  gap: 0;
  padding: 4px;
  border-radius: 8px;
  background: #f2f4f7;
}

.segmented button,
.dark-button,
.muted-button,
.filter-button,
.calendar-toggle,
.row-action,
.primary-button {
  min-height: 34px;
  border-radius: 7px;
  border: 1px solid #e1e6ef;
  padding: 0 13px;
  font-weight: 800;
}

.segmented button {
  min-height: 31px;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 13px;
}

.dark-button,
.filter-button,
.calendar-toggle {
  background: #fff;
  color: #111827;
}

.segmented button.active,
.primary-button {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  background: var(--green);
}

.primary-button.compact {
  min-height: 40px;
  font-size: 16px;
}

.primary-button.full {
  width: 100%;
  margin-bottom: 20px;
}

.muted-button {
  background: #fff;
  color: #111827;
}

.agenda-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
}

.agenda-navigation-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
}

.agenda-filter-shell {
  position: relative;
  display: inline-flex;
}

.agenda-toolbar .filter-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.agenda-toolbar .filter-button.active {
  border-color: #b8cef3;
  background: #eaf2ff;
  color: #025ce2;
}

.agenda-filter-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #025ce2;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.agenda-filter-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 30;
  width: 224px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1);
}

.agenda-weekend-control {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 20px;
}

.agenda-weekend-switch {
  position: relative;
  width: 32px;
  min-width: 32px;
  height: 18.4px;
  min-height: 18.4px;
  flex: 0 0 32px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: #e5e7eb;
  transition: background-color 0.15s ease;
}

.agenda-weekend-switch i {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14);
  transition: transform 0.15s ease;
}

.agenda-weekend-switch[aria-checked="true"] {
  background: #025ce2;
}

.agenda-weekend-switch[aria-checked="true"] i {
  transform: translateX(14px);
}

.agenda-weekend-control label {
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
}

.agenda-presence-popover,
.agenda-cancelled-popover {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 40;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1);
}

.agenda-presence-popover {
  width: min(680px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
}

.agenda-presence-popover > strong,
.agenda-cancelled-popover > strong {
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.agenda-presence-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.agenda-presence-column {
  height: 400px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: rgba(239, 246, 255, 0.7);
}

.agenda-presence-column.present {
  border-color: #a7f3d0;
  background: rgba(236, 253, 245, 0.7);
}

.agenda-presence-column.absent {
  border-color: #fecdd3;
  background: rgba(255, 241, 242, 0.7);
}

.agenda-presence-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #111827;
  font-size: 14px;
  line-height: 20px;
}

.agenda-presence-column header b {
  font-weight: 600;
}

.agenda-presence-column header span {
  color: #64748b;
  font-size: 12px;
}

.agenda-presence-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agenda-presence-list article,
.agenda-cancelled-list article {
  display: grid;
  gap: 0;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #93c5fd;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  cursor: move;
  user-select: none;
}

.agenda-presence-column.present article {
  border-left-color: #6ee7b7;
}

.agenda-presence-column.absent article {
  border-left-color: #fda4af;
}

.agenda-presence-list article b,
.agenda-cancelled-list article b {
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-presence-list article span,
.agenda-cancelled-list article span {
  color: #64748b;
  font-size: 12px;
  line-height: 16px;
}

.agenda-cancelled-popover {
  width: 360px;
  display: grid;
  gap: 12px;
}

.agenda-cancelled-list {
  max-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.agenda-cancelled-list em {
  color: #64748b;
  font-size: 14px;
  font-style: italic;
  line-height: 20px;
}

.agenda-cancelled-list article {
  cursor: default;
}

.agenda-filter-group {
  display: grid;
  gap: 4px;
}

.agenda-filter-group + .agenda-filter-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef2f6;
}

.agenda-filter-group strong {
  margin-bottom: 2px;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.agenda-filter-group button {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  text-align: left;
  font-size: 13px;
  font-weight: 750;
  padding: 0 9px;
}

.agenda-filter-group button.active {
  background: #eaf2ff;
  color: #075fe5;
}

.agenda-filter-group i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.agenda-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef2f6;
}

.agenda-filter-footer span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.agenda-filter-footer button {
  height: 30px;
  border: 1px solid #dfe4ec;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 850;
  padding: 0 10px;
}

.agenda-arrows button {
  box-sizing: border-box;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.agenda-arrows .agenda-weekend-switch {
  width: 32px;
  min-width: 32px;
  height: 18.4px;
  min-height: 18.4px;
  padding: 0;
  border-radius: 999px;
}

.agenda-toolbar .calendar-toggle,
.agenda-toolbar .filter-button,
.agenda-toolbar .dark-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
}

.agenda-toolbar .calendar-toggle,
.agenda-toolbar .filter-button,
.agenda-toolbar .dark-button,
.agenda-toolbar .muted-button {
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.agenda-toolbar .muted-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.agenda-toolbar .segmented {
  height: 40px;
  gap: 8px;
  padding: 4px;
  border-radius: 8.4px;
  background: oklch(0.967 0.003 264.542);
  color: oklch(0.141 0.005 285.823);
}

.agenda-toolbar .segmented button {
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: oklch(0.141 0.005 285.823);
  white-space: nowrap;
  box-shadow: none;
}

.agenda-toolbar .segmented button.active {
  background: #fff;
  box-shadow: none;
}

.agenda-toolbar .agenda-today-desktop,
.agenda-toolbar .agenda-week-desktop {
  display: contents;
}

.calendar-scroll-viewport {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 -1px #ddd;
  scrollbar-gutter: auto;
  scrollbar-width: none;
}

.calendar-scroll-viewport::-webkit-scrollbar {
  display: none;
}

.week-grid {
  display: grid;
  grid-template-columns: 48px repeat(var(--agenda-day-count, 7), minmax(0, 1fr));
  grid-template-rows: 38.5px 1568px;
  width: calc(100% - 1px);
  min-width: 0;
  position: relative;
  background: #fff;
}

.week-grid[data-agenda-day-count="5"] {
  width: calc(100% - 1.25px);
}

.week-grid[data-agenda-day-count="5"] .appointment-block {
  right: calc(3.375px - var(--appointment-column-border-width, 0px));
}

.day-head,
.time-head {
  position: sticky;
  top: 0;
  z-index: 6;
  height: 38.5px;
  display: grid;
  place-items: center;
  border-right: 1px solid #ddd;
  border-top: 0;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.day-head.today {
  position: sticky;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.day-head.today::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #025ce2;
  pointer-events: none;
}

.agenda-day-head-label {
  box-sizing: border-box;
  position: relative;
  top: 0;
  left: -0.5px;
  width: 100%;
  height: 36px;
  display: inline-block;
  padding: 0;
  border: 0 solid oklch(0.92 0.004 286.32);
  color: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
}

.agenda-day-head-wrap {
  width: 100%;
  height: 38px;
  text-align: center;
}

.day-head.today .agenda-day-head-label {
  height: 38px;
}

.agenda-day-head-content {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.agenda-day-head-content > span {
  position: static;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
}

.agenda-day-head-content > span:first-child {
  text-transform: uppercase;
}

.time-label {
  position: absolute;
  left: 0;
  width: 48px;
  height: 98px;
  border-top: 1px solid #ddd;
  border-right: 1px solid #ddd;
  padding: 0 0 0 4px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 48px;
  color: #09090b;
}

.time-label::after {
  content: "";
  position: absolute;
  left: -4px;
  right: 0;
  top: 48px;
  height: 0;
  border-top: 1px dotted #ddd;
  pointer-events: none;
}

.week-grid .time-label {
  border-top: 0;
}

.week-grid .time-label::after {
  display: none;
}

.agenda-week-slot-lines {
  position: absolute;
  z-index: 1;
  top: 38.5px;
  left: 0;
  right: 0;
  height: 1568px;
  pointer-events: none;
}

.agenda-week-slot-lines > span {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid #ddd;
}

.agenda-week-slot-lines > span.minor {
  height: 1px;
  border-top: 0;
}

.agenda-week-slot-lines > span.minor::before,
.agenda-week-slot-lines > span.minor::after {
  content: "";
  position: absolute;
  top: 0;
  height: 1px;
}

.agenda-week-slot-lines > span.minor::before {
  left: 0;
  width: 49px;
  background: repeating-linear-gradient(90deg, transparent 0 1px, #ddd 1px 2px);
}

.agenda-week-slot-lines > span.minor::after {
  left: 50px;
  right: 0;
  background: repeating-linear-gradient(90deg, #ddd 0 1px, transparent 1px 2px);
}

.week-grid .day-column {
  z-index: auto;
  background: transparent;
}

@media (min-width: 1280px) {
  .day-head[data-agenda-day-index="0"] .agenda-day-head-label,
  .day-head[data-agenda-day-index="2"] .agenda-day-head-label,
  .day-head[data-agenda-day-index="4"] .agenda-day-head-label {
    width: calc(100% - 1px);
  }

  .day-head[data-agenda-day-index="6"] .agenda-day-head-label {
    width: calc(100% + 0.75px);
  }

  .day-head[data-agenda-day-index="0"],
  .day-head[data-agenda-day-index="2"],
  .day-head[data-agenda-day-index="4"],
  .day-column[data-agenda-day-index="0"],
  .day-column[data-agenda-day-index="2"],
  .day-column[data-agenda-day-index="4"] {
    --appointment-column-border-width: 0px;
    border-right: 0;
    box-shadow: none;
  }

  .day-head[data-agenda-day-index="0"]::before,
  .day-head[data-agenda-day-index="2"]::before,
  .day-head[data-agenda-day-index="4"]::before,
  .day-column[data-agenda-day-index="0"]::before,
  .day-column[data-agenda-day-index="2"]::before,
  .day-column[data-agenda-day-index="4"]::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    right: 1px;
    bottom: 0;
    width: 1px;
    background: #ddd;
    pointer-events: none;
  }
}

.day-column {
  --appointment-column-border-width: 1px;
  grid-row: 2;
  position: relative;
  min-width: 0;
  border-right: 1px solid #ddd;
  background: #fff;
}

.day-column.today {
  background-color: #fff;
}

.agenda-now-line {
  position: absolute;
  z-index: 5;
  left: 0.5px;
  right: 0.5px;
  height: 0;
  border-top: 2px solid #fd2f2f;
  pointer-events: none;
}

.agenda-slot-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.agenda-slot-lines > span {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid #ddd;
  transform: none;
}

.agenda-slot-lines > span.minor {
  border-top-style: dotted;
}

.agenda-loading {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(21, 37, 54, 0.08);
  font-weight: 800;
}

.appointment-block {
  position: absolute;
  z-index: 2;
  left: 2.5px;
  right: calc(3.25px - var(--appointment-column-border-width, 0px));
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-size: 13.6px;
  font-weight: 400;
  line-height: 20.4px;
  box-shadow: 0 0 0 1px #fff;
  text-align: left;
  cursor: pointer;
}

.appointment-block.dragging {
  z-index: 8;
  cursor: grabbing;
  opacity: 0.88;
  box-shadow: 0 0 0 1px #fff, 0 7px 18px rgba(15, 23, 42, 0.16);
}

.appointment-block.status-reported .appointment-block-content {
  width: calc(100% - 2px);
  height: calc(100% - 1px);
  opacity: 0.8;
  filter: grayscale(60%);
  color: #fff;
  line-height: 16px;
  background-color: var(--appointment-soft, #edf2ff);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.85) 0,
    rgba(255, 255, 255, 0.85) 4px,
    transparent 4px,
    transparent 9px
  );
}

.appointment-block.status-reported .appointment-block-title {
  text-decoration: line-through;
}

.appointment-block:hover,
.appointment-block:focus-within {
  z-index: 7;
}

.appointment-block-content {
  position: relative;
  top: 1px;
  left: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 1px);
  display: block;
  overflow: hidden;
  border-radius: 8.4px;
  padding: 8px;
  background: var(--appointment-soft, #edf2ff);
  color: #fff;
  line-height: 16px;
}

.appointment-color-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 8.4px 0 0 8.4px;
  background: var(--appointment-color, #4f65bc);
}

.appointment-block-copy {
  width: 100%;
  min-width: 0;
  display: block;
  overflow: hidden;
}

.appointment-block:not(.compact) .appointment-block-copy {
  overflow: visible;
}

.appointment-block-copy .appointment-block-title,
.appointment-block-copy .appointment-block-category,
.appointment-block-copy .appointment-block-time {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-block-copy .appointment-block-title {
  font-size: 14px;
  line-height: 20px;
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: capitalize;
}

.appointment-block-copy .appointment-block-category {
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.appointment-block-copy .appointment-block-time {
  margin: 2px 0 1px;
  color: #6b7280;
  font-size: 11.56px;
  font-weight: 400;
  line-height: 17.34px;
}

.appointment-block-practitioner {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-width: 0;
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.appointment-block .appointment-block-practitioner > svg {
  flex: 0 1 12px;
  width: 12px;
  height: 12px;
  margin-top: 2px;
  align-self: flex-start;
}

.appointment-block-practitioner > span {
  flex: 0 1 auto;
  width: auto;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.appointment-block.compact .appointment-block-content {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 12px;
}

.appointment-block.compact .appointment-block-copy .appointment-block-title {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}

.appointment-block.compact .appointment-block-copy .appointment-block-time {
  margin: 0;
  width: max-content;
  min-width: max-content;
  max-width: none;
  font-size: 10.2px;
  line-height: 13.6px;
}

.appointment-block svg {
  align-self: center;
}

.appointment-tools {
  position: absolute;
  right: 4.75px;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.15s ease;
}

.appointment-block:hover .appointment-tools,
.appointment-block:focus-within .appointment-tools {
  opacity: 1;
}

.appointment-block.suppress-tools-after-resize .appointment-tools {
  opacity: 0;
}

.appointment-tools button {
  min-width: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  white-space: normal;
  padding: 0;
  border: 1px solid var(--appointment-color, #025ce2);
  border-radius: 8.4px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.appointment-tools button:hover,
.appointment-tools button:focus-visible {
  color: #000;
  outline: none;
}

.day-agenda {
  position: relative;
  background: #fff;
  min-width: 0;
}

.day-time-head {
  position: sticky;
  top: 0;
  z-index: 7;
  width: 48px;
  height: 38.5px;
  margin-bottom: -38.5px;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.day-head.wide {
  margin-left: 48px;
  margin-right: 1.5px;
  border-right: 0;
  position: sticky;
  top: 0;
  z-index: 6;
}

.day-grid-column {
  position: relative;
  height: 1568px;
  margin-left: 48px;
  margin-right: 1px;
  border-left: 1px solid #ddd;
  background: #fff;
}

.day-grid-column .appointment-block {
  left: 1.5px;
  right: 19.5px;
}

.day-time-slot {
  position: relative;
  left: -48px;
  width: 48px;
  height: 98px;
  padding: 0;
  text-align: center;
  border-top: 1px solid #ddd;
  border-right: 1px solid #ddd;
  font-size: 14px;
  font-weight: 500;
  line-height: 48px;
}

.month-grid {
  box-sizing: border-box;
  display: grid;
  grid-template-columns:
    minmax(0, 119fr)
    minmax(0, 118.25fr)
    minmax(0, 118.5fr)
    minmax(0, 118.5fr)
    minmax(0, 118.25fr)
    minmax(0, 118.5fr)
    minmax(0, 119fr);
  grid-template-rows: 36.5px repeat(6, minmax(78px, max-content));
  height: auto;
  min-height: 0;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 0;
  background: #fff;
  scrollbar-width: none;
}

.month-grid::-webkit-scrollbar {
  display: none;
}

.month-grid.weekdays-only {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.month-grid > strong {
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  padding: 0;
  text-align: center;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.month-grid > strong > a {
  display: inline-block;
  width: 100%;
  height: 36px;
  padding: 0;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
}

.month-grid > strong > a span {
  position: relative;
  top: 6px;
  font-size: 14px;
  line-height: 20px;
}

.month-grid > strong > a span:first-child {
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.month-grid:not(.weekdays-only) > strong:nth-child(2) > a,
.month-grid:not(.weekdays-only) > strong:nth-child(5) > a {
  width: calc(100% + 0.25px);
}

.month-cell {
  position: relative;
  min-height: 0;
  padding: 0 0 0;
  transform: translateY(0.5px);
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.month-cell.outside {
  background: #fff;
  color: #27272a;
}

.month-cell > b {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.month-cell > b > a {
  width: 44px;
  height: 44px;
  display: block;
  padding: 4px;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
}

.month-cell > b > a > span {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border-radius: 999px;
  transform: translate(-4px, 4px);
}

.month-cell.today > b > a > span {
  background: #025ce2;
  color: #f4f7ff;
}

.month-cell.outside > b {
  opacity: 0.3;
}

.month-chip {
  position: relative;
  display: flex;
  width: calc(100% - 4px);
  height: 36px;
  min-height: 36px;
  margin: 2px 3px 0 2px;
  padding: 0;
  border: 0 none oklch(0.141 0.005 285.823);
  border-radius: 8px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  text-align: left;
  font-size: 13.6px;
  font-weight: 400;
  line-height: 20.4px;
  overflow: hidden;
  white-space: nowrap;
}

.month-chip + .month-chip {
  margin-top: 3px;
}

.month-grid:not(.weekdays-only) > .month-cell:nth-child(7n + 2) .month-chip,
.month-grid:not(.weekdays-only) > .month-cell:nth-child(7n + 5) .month-chip {
  width: calc(100% - 3.75px);
}

.month-chip-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  padding: 8px 40px 8px 8px;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: var(--month-chip-soft, #edf2ff);
}

.month-chip-color-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--month-chip-color, #4f65bc);
}

.month-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(-0.5px);
}

.month-chip-time {
  flex: 0 1 auto;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.month-chip-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-transform: capitalize;
}

.month-chip.postponed .month-chip-content {
  opacity: 0.8;
  filter: grayscale(60%);
  background-color: var(--month-chip-soft, #edf2ff);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.85) 0,
    rgba(255, 255, 255, 0.85) 4px,
    transparent 4px,
    transparent 9px
  );
}

.month-chip.postponed .month-chip-title {
  text-decoration: line-through;
}

.month-chip-tools {
  position: absolute;
  top: 8px;
  right: 4.25px;
  display: flex;
  gap: 2px;
  opacity: 0;
}

.month-chip:hover .month-chip-tools,
.month-chip:focus-within .month-chip-tools {
  opacity: 1;
}

.month-chip-tools button {
  width: 24px;
  height: 24px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 1px solid var(--month-chip-color, #025ce2);
  border-radius: 8.4px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}

.month-cell-add {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  margin: 3px 2px 0 auto;
  padding: 2px;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 3px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 13.6px;
  font-weight: 400;
  line-height: 13.6px;
  text-align: left;
}

.month-cell-add > button {
  width: 24px;
  height: 24px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 6.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.month-cell-add > button > svg {
  transform: translateY(-0.5px);
}

.month-cell-add:hover,
.month-cell-add:focus-visible {
  border-color: #aeb7c5;
  outline: none;
}

.patient-header {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 18px 16px;
  border-radius: 8px;
  box-shadow: 0 3px 16px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.patient-title h1 {
  font-size: 29px;
  margin: 0;
}

.plain-icon,
.icon-button {
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: transparent;
  color: inherit;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-warning {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #855f12;
  font-weight: 800;
}

.financial-strip {
  display: flex;
  gap: 50px;
  align-items: center;
}

.metric {
  display: grid;
  grid-template-columns: auto;
  gap: 2px;
  font-size: 27px;
  font-weight: 800;
}

.metric span {
  color: var(--ink);
}

.metric strong,
.metric b {
  font-size: 31px;
}

.metric.green strong,
.metric.green b,
.green-text {
  color: var(--green-bright);
}

.metric.red strong,
.metric.red b,
.red-text {
  color: var(--red);
}

.tab-strip {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 22px;
}

.tab-strip button {
  border: 0;
  border-bottom: 4px solid transparent;
  background: #fff;
  padding: 14px 24px;
  font-size: 22px;
  font-weight: 900;
  color: #5c626b;
}

.tab-strip button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.patient-grid {
  display: grid;
  grid-template-columns: minmax(680px, 1fr) 360px;
  gap: 48px;
  align-items: start;
}

.odontogram-panel,
.side-panel,
.simple-section,
.chart-panel,
.chart-large,
.settings-band {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 16px rgba(15, 23, 42, 0.08);
}

.odontogram-panel,
.side-panel,
.simple-section,
.chart-panel,
.chart-large,
.settings-band {
  padding: 22px;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--muted);
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.switch span {
  width: 64px;
  height: 32px;
  background: #cfcfcf;
  border-radius: 20px;
  display: inline-block;
  position: relative;
  transition: background 0.16s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s ease;
}

.switch input:checked + span {
  background: #70a971;
}

.switch input:checked + span::after {
  transform: translateX(32px);
}

.switch input:focus-visible + span {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.odontogram {
  margin: 28px auto 12px;
  max-width: 1120px;
  padding: 20px 30px;
}

.tooth-row {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 10px;
  align-items: end;
}

.odontogram.child .tooth-row {
  grid-template-columns: repeat(10, 1fr);
  max-width: 780px;
  margin-inline: auto;
}

.tooth-row.lower {
  align-items: start;
}

.tooth {
  min-height: 152px;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-rows: 108px 30px;
  place-items: center;
  padding: 0;
  color: var(--ink);
}

.tooth-shape {
  width: 52px;
  height: 102px;
  display: grid;
  place-items: center;
  border-radius: 44% 44% 38% 38%;
  background: linear-gradient(#fff7df 0 48%, #fcfcfc 49% 100%);
  border: 2px solid #c8d2d7;
  box-shadow: inset 0 -7px 12px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.tooth.molar .tooth-shape {
  width: 66px;
  border-radius: 30% 30% 38% 38%;
}

.tooth.premolar .tooth-shape {
  width: 56px;
  border-radius: 42% 42% 40% 40%;
}

.tooth.canine .tooth-shape {
  width: 48px;
  border-radius: 52% 52% 42% 42%;
}

.tooth.incisor .tooth-shape {
  width: 42px;
  border-radius: 46% 46% 34% 34%;
}

.lower .tooth-shape {
  background: linear-gradient(#fcfcfc 0 48%, #fff0c9 49% 100%);
  border-radius: 38% 38% 44% 44%;
}

.tooth-shape i {
  width: 28px;
  height: 38px;
  border: 2px solid #d6e8e4;
  border-radius: 48%;
  display: block;
  background: rgba(255, 255, 255, 0.65);
}

.tooth.molar .tooth-shape i {
  width: 42px;
  height: 32px;
  border-radius: 36%;
  background:
    linear-gradient(90deg, transparent 47%, #d6e8e4 48% 52%, transparent 53%),
    linear-gradient(0deg, transparent 47%, #d6e8e4 48% 52%, transparent 53%),
    rgba(255, 255, 255, 0.72);
}

.tooth.premolar .tooth-shape i {
  width: 34px;
  height: 34px;
  border-radius: 44%;
  background:
    linear-gradient(120deg, transparent 46%, #d6e8e4 47% 53%, transparent 54%),
    rgba(255, 255, 255, 0.72);
}

.tooth.canine .tooth-shape i {
  width: 26px;
  height: 42px;
  border-radius: 50% 50% 42% 42%;
}

.tooth.incisor .tooth-shape i {
  width: 22px;
  height: 50px;
  border-radius: 42%;
}

.tooth strong {
  font-size: 22px;
}

.tooth.treated .tooth-shape i {
  background: #69d389;
  border-color: #69d389;
}

.tooth.selected .tooth-shape {
  outline: 7px solid #cfe1ff;
  border-color: var(--accent);
}

.tooth.selected strong {
  color: var(--accent);
}

.mouth-labels {
  margin: 8px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--muted);
  font-weight: 900;
}

.mouth-labels span:last-child {
  text-align: right;
}

.mouth-gap {
  height: 18px;
  border-bottom: 1px solid #dfe6ed;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 19px;
}

th {
  font-weight: 900;
  font-size: 20px;
  background: #fff;
}

.empty-cell {
  color: #444;
}

.link-button {
  border: 0;
  background: transparent;
  color: #4146d6;
  font-weight: 800;
  padding: 0;
}

.row-action {
  background: #fff;
  color: #2d3b4d;
  border: 1px solid var(--line);
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
}

.documents-workspace {
  padding: 26px 24px 44px;
  background: #fff;
}

.documents-workspace .section-title-row {
  align-items: flex-start;
  margin-bottom: 28px;
}

.documents-workspace h1 {
  font-size: 34px;
  font-weight: 900;
}

.document-period-bar {
  justify-content: flex-start;
  gap: 12px;
}

.document-period-bar span {
  margin-left: auto;
  color: #6f7681;
  font-size: 20px;
}

.document-type-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.document-type-tabs button {
  border: 0;
  border-bottom: 4px solid transparent;
  background: #fff;
  padding: 13px 12px;
  color: #59616d;
  font-weight: 900;
  font-size: 17px;
}

.document-type-tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.document-form-note {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.nested-modal-content {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.nested-modal-content label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  color: var(--muted);
}

.image-upload {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.image-upload input:not([type="file"]) {
  width: min(420px, 100%);
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  font-weight: 800;
}

.image-upload input[type="file"] {
  display: none;
}

.image-section {
  min-height: 500px;
  padding: 22px 14px 28px;
}

.image-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 42px;
}

.dentalome-green-action {
  border: 0;
  border-radius: 9px;
  background: #589363;
  color: #fff;
  font-weight: 850;
  box-shadow: none;
}

.image-add-button {
  display: inline-flex;
  min-height: 43px;
  min-width: 342px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 7px 14px 8px 18px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.image-add-button.disabled {
  cursor: wait;
  opacity: 0.7;
}

.image-add-button input[type="file"] {
  display: none;
}

.image-add-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-tabs {
  display: flex;
  min-height: 62px;
  align-items: flex-end;
  border-bottom: 1px solid #dfe4ec;
  margin-bottom: 36px;
}

.image-tabs button {
  min-width: 215px;
  height: 62px;
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  color: #3b82f6;
  font-size: 22px;
  font-weight: 850;
}

.image-tabs button.active {
  border-bottom-color: #3b82f6;
  background: #fff;
}

.image-table-shell {
  width: 100%;
  overflow: hidden;
  border: 1px solid #d9dee6;
  background: #fff;
}

.image-table {
  width: 100%;
  border-collapse: collapse;
}

.image-table th,
.image-table td {
  height: 57px;
  padding: 9px 12px;
  border-bottom: 1px solid #d9dee6;
  color: #20242b;
  font-size: 21px;
  line-height: 1.25;
  text-align: left;
  vertical-align: middle;
}

.image-table th {
  font-weight: 850;
}

.image-table th:nth-child(1),
.image-table td:nth-child(1) {
  width: 170px;
}

.image-table th:nth-child(3),
.image-table td:nth-child(3) {
  width: 180px;
}

.image-preview-link,
.image-preview-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #2f50d8;
  font-weight: 800;
  text-decoration: none;
}

.image-preview-link img {
  width: 70px;
  height: 52px;
  border: 1px solid #d9dee6;
  border-radius: 4px;
  object-fit: cover;
}

.image-preview-link span {
  overflow: hidden;
  max-width: 620px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-table-cell {
  height: 44px !important;
  padding: 5px 12px !important;
  color: #444 !important;
  font-weight: 500 !important;
}

.primary-button.disabled {
  opacity: 0.65;
  cursor: wait;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.image-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
}

.image-card img,
.image-placeholder {
  width: 100%;
  height: 170px;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: #eef4fa;
  color: var(--muted);
}

.image-card > div:not(.image-placeholder) {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.image-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-card span {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.image-card .row-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding: 8px 10px;
}

.empty-panel {
  min-height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: #444;
  background: #fff;
}

.catalog-color-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.catalog-color-cell i {
  width: 22px;
  height: 22px;
  display: inline-block;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sub-link {
  display: block;
  width: fit-content;
  border: 0;
  padding: 2px 0 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.compact-form {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.toggle-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.toggle-line input {
  width: 18px;
  height: 18px;
}

.plain-icon.small {
  width: 32px;
  height: 32px;
}

.plain-icon:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.status-pill,
.green-pill,
.green-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 34px;
  border-radius: 18px;
  padding: 0 13px;
  background: #72a4f6;
  color: #fff;
  font-weight: 800;
}

.green-pill,
.green-badge {
  background: #62a36d;
}

.teeth-pills {
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
}

.teeth-pills b {
  min-width: 42px;
  text-align: center;
  padding: 8px 10px;
  background: #dcebe0;
  border-radius: 6px;
}

.period-bar,
.stats-filter {
  min-height: 60px;
  margin-bottom: 24px;
  padding: 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.period-bar input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.stats-filter button {
  min-height: 48px;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #4f5358;
  font-weight: 900;
}

.chart-large {
  margin-bottom: 24px;
}

.chart-large strong {
  display: block;
  text-align: center;
  font-size: 24px;
  margin: 10px 0;
}

.chart-grid,
.kpi-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.kpi-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
}

.metric-card {
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.metric-card strong {
  display: inline-block;
  margin-top: 8px;
  font-size: 30px;
}

.metric-card b {
  margin-left: 6px;
}

.metric-card.danger strong,
.metric-card.danger b {
  color: var(--red);
}

.finance-row {
  align-items: flex-start;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  font-size: 20px;
}

.settings-band {
  display: flex;
  gap: 16px;
}

.settings-band.wide-band {
  grid-column: 1 / -1;
}

.settings-band p {
  margin: 0 0 12px;
  color: var(--muted);
}

.parity-score-band {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
}

.score-ring {
  --score: 0%;
  width: 116px;
  height: 116px;
  flex: 0 0 116px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #fff 0 57%, transparent 58%),
    conic-gradient(var(--red) var(--score), #e7edf5 0);
  color: var(--red);
}

.score-ring.complete {
  background:
    radial-gradient(circle at center, #fff 0 57%, transparent 58%),
    conic-gradient(var(--green) var(--score), #e7edf5 0);
  color: var(--green);
}

.score-ring strong {
  font-size: 32px;
  line-height: 1;
}

.score-ring span {
  margin-top: -34px;
  color: var(--muted);
  font-weight: 900;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fidelity-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.fidelity-strip span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.fidelity-strip strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.admin-access-panel {
  align-items: flex-start;
  border-color: #f4b4b4;
  background: #fffafa;
}

.admin-access-panel > svg {
  color: var(--red);
  flex: 0 0 auto;
}

.admin-access-content {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.admin-access-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-access-heading h2 {
  margin-bottom: 4px;
}

.admin-access-stats,
.admin-access-artifacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-access-stats span,
.admin-access-artifacts span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid #f2cccc;
  border-radius: 999px;
  padding: 3px 10px;
  background: #fff;
  color: #7a2530;
  font-size: 13px;
  font-weight: 900;
}

.admin-access-routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.admin-access-routes span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid #f2cccc;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.admin-access-routes strong,
.admin-access-routes code,
.admin-access-command code,
.admin-access-artifacts code {
  overflow-wrap: anywhere;
}

.admin-access-routes code,
.admin-access-command code,
.admin-access-artifacts code {
  color: #414956;
  font-size: 12px;
}

.admin-access-routes em {
  color: var(--red);
  font-style: normal;
  font-weight: 900;
}

.admin-access-command {
  display: grid;
  gap: 5px;
  border: 1px dashed #e6a3a3;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: #7a2530;
  font-weight: 900;
}

.admin-access-next {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 800;
}

.parity-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 30px;
  border-radius: 999px;
  padding: 3px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: #8a93a3;
}

.parity-status.verified {
  background: var(--green);
}

.parity-status.implemented {
  background: var(--accent);
}

.parity-status.blocked {
  background: var(--red);
}

.parity-status.warning {
  background: #f59e0b;
}

.parity-status.not-started {
  background: #7b8492;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 28px;
  border-radius: 999px;
  padding: 3px 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: var(--red);
}

.score-pill.partial {
  background: #e0a300;
}

.score-pill.complete {
  background: var(--green);
}

.search-line {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 24px;
  font-weight: 900;
}

.notes-workspace {
  min-height: calc(100vh - 68px);
  padding: 26px 24px 96px;
  background: #fff;
}

.notes-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  min-height: 96px;
}

.notes-title-row h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
}

.notes-category-tools {
  display: flex;
  align-items: center;
  gap: 22px;
}

.notes-category-search {
  width: 320px;
  border-bottom: 2px solid #d6d6d6;
}

.notes-category-search input {
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #69707b;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.notes-category-search input::placeholder {
  color: #7d828b;
  opacity: 1;
}

.blue-pill-button {
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 23px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #347cf6;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.notes-filter-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 54px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

.notes-filter-tabs button {
  align-self: stretch;
  border: 0;
  border-bottom: 4px solid transparent;
  background: #fff;
  color: #5a606b;
  font-size: 18px;
  font-weight: 900;
}

.notes-filter-tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.notes-empty-state {
  min-height: 520px;
  display: flex;
  align-items: flex-start;
  padding-top: 18px;
  color: #343a43;
  font-size: 20px;
}

.table-search {
  width: 100%;
  height: 48px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  font-size: 20px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
}

.modal {
  box-sizing: border-box;
  width: min(760px, calc(100vw - 48px));
  margin: auto 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  padding: 22px;
}

.modal.appointment-category-source-modal {
  width: min(500px, calc(100vw - 32px));
  padding: 24px 24px 16px;
}

.appointment-form-modal {
  width: min(700px, calc(100vw - 48px));
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.appointment-form-modal .modal-head {
  height: 28px;
  min-height: 28px;
  margin: 0;
}

.appointment-form-modal .modal-head h2 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.appointment-form-modal .modal-head .icon-button,
.appointment-form-modal > .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  min-height: 0;
  display: block;
  opacity: .7;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  gap: normal;
  box-shadow: none;
}

.appointment-note-modal {
  position: relative;
  width: min(512px, calc(100vw - 48px));
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.appointment-note-modal .modal-head h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-head h2 {
  margin: 0;
}

.modal-head button {
  font-size: 30px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  margin: -1px;
  padding: 0;
  border: 0;
}

.modal-subtitle {
  margin: -4px 0 20px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
}

.appointment-form-modal > .modal-subtitle {
  height: 20px;
  margin: 8px 0 16px;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.appointment-form-patient-link {
  color: #025ce2;
  font-weight: 500;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.appointment-note-text {
  min-height: 20px;
  margin: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  line-height: 20px;
  white-space: pre-wrap;
}

.appointment-note-modal .modal-head .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  min-height: 0;
  border: 0;
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  opacity: .7;
  box-shadow: none;
}

.appointment-note-modal .modal-head .modal-close-button:hover {
  opacity: 1;
}

.appointment-note-modal .modal-head .modal-close-button:focus-visible {
  opacity: .7;
  outline: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #025ce2;
}

.appointment-note-modal .modal-head .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.appointment-form-grid {
  gap: 24px;
}

.appointment-form-grid.creating {
  height: auto;
  grid-template-columns: 313px 313px;
  column-gap: 24px;
  row-gap: 24px;
}

.appointment-form-grid.creating > .appointment-form-field,
.appointment-form-grid.editing > .appointment-form-field {
  min-width: 0;
  display: grid;
  grid-template-rows: 20px 36px;
  align-content: start;
  gap: 12px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] {
  position: relative;
  display: block;
  height: 94px;
  color: oklch(0.577 0.245 27.325);
}

.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .field-label,
.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .appointment-source-combobox,
.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .patient-source-dropdown,
.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .appointment-field-error,
.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .patient-field-error {
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
}

.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .field-label { top: 0; }
.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .appointment-source-combobox,
.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .patient-source-dropdown { top: 32px; }
.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .appointment-field-error,
.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] > .patient-field-error { top: 74px; }

.appointment-form-grid.creating > .appointment-form-field.wide,
.appointment-form-grid.editing > .appointment-form-field.wide {
  grid-template-rows: 20px 100px;
}

.appointment-form-grid.editing {
  height: 469px;
  grid-template-columns: 313px 313px;
  grid-template-rows: 68px 24px 68px 24px 68px 24px 132px 8px 53px;
  column-gap: 24px;
  row-gap: 0;
}

.appointment-form-grid.editing > .appointment-form-patient-field { grid-column: 1; grid-row: 1; }
.appointment-form-grid.editing > .appointment-form-practitioner-field { grid-column: 2; grid-row: 1; }
.appointment-form-grid.editing > .appointment-form-start-field { grid-column: 1; grid-row: 3; }
.appointment-form-grid.editing > .appointment-form-end-field { grid-column: 2; grid-row: 3; }
.appointment-form-grid.editing > .appointment-form-category-field { grid-column: 1; grid-row: 5; }
.appointment-form-grid.editing > .appointment-form-status-field { grid-column: 2; grid-row: 5; }
.appointment-form-grid.editing > .appointment-form-note-field { grid-column: 1 / -1; grid-row: 7; }

.form-grid label {
  min-width: 0;
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: #3f4651;
}

.required-mark {
  color: #e03131;
  font-weight: 900;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.field-shell {
  position: relative;
  display: block;
}

.field-shell input {
  width: 100%;
}

.field-placeholder-overlay {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a919d;
  pointer-events: none;
  font-weight: 800;
}

.dentalome-operation-form {
  gap: 18px 20px;
}

.dentalome-operation-form label {
  color: #242932;
}

.form-grid .wide,
.modal-actions {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.login-panel input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.appointment-form-grid input,
.appointment-form-grid select,
.appointment-form-grid textarea {
  width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 8px 12px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.appointment-form-grid .combobox-trigger {
  height: 36px;
  min-height: 36px;
  gap: 8px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  text-align: center;
}

.appointment-form-grid .appointment-form-patient-field .combobox-trigger {
  width: 313px;
}

.appointment-form-grid .combobox-trigger.placeholder {
  color: oklch(0.141 0.005 285.823);
}

.appointment-form-grid .patient-source-dropdown .combobox-trigger.placeholder .patient-source-dropdown-value {
  color: oklch(0.552 0.016 285.938);
}

.appointment-form-grid .appointment-combobox-field:first-child .combobox-trigger:focus-visible {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.appointment-form-grid input[inputmode="numeric"] {
  font-weight: 400;
  letter-spacing: 0;
}

.appointment-time-field {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 36px;
  overflow: hidden;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 4px 12px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.appointment-time-field:focus-within {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.appointment-form-grid .appointment-time-field input[inputmode="numeric"] {
  width: 22px;
  min-width: 22px;
  height: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.appointment-field-error {
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.appointment-form-grid .patient-field-error {
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] .combobox-trigger {
  border-color: oklch(0.92 0.004 286.32);
  color: oklch(0.577 0.245 27.325);
}

.appointment-form-grid.creating > .appointment-form-field[data-invalid="true"] .combobox-trigger svg {
  color: currentColor;
  opacity: .5;
}

.appointment-category-select {
  position: relative;
  display: block;
}

.appointment-category-select i {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translateY(-50%);
  pointer-events: none;
}

.appointment-category-select i + select {
  padding-left: 34px;
}

.appointment-form-status-field select {
  font-weight: 500;
}

.appointment-form-grid textarea {
  display: flex;
  height: 100px;
  min-height: 100px;
  background: transparent;
  font-weight: 400;
  resize: none;
}

.appointment-form-grid textarea:focus {
  border-color: #025ce2;
  outline: none;
}

.appointment-form-note-field > label {
  display: block;
  gap: 0;
  color: inherit;
  font: inherit;
}

.form-grid textarea {
  min-height: 88px;
}

.ordonnance-medication-summary {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #d9e7ff;
  border-radius: 7px;
  background: #f8fbff;
  color: #3f4651;
  font-size: 13px;
  line-height: 1.45;
}

.ordonnance-medication-summary strong {
  color: #111827;
  font-size: 14px;
}

.ordonnance-medication-summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}

.appointment-form-grid .modal-actions {
  grid-column: 1 / -1;
  grid-row: 9;
  width: calc(100% + 48px);
  height: 53px;
  margin: 0 -24px;
  padding: 16px 24px 0;
  border-top: 1px solid oklch(0.92 0.004 286.32);
}

.appointment-form-grid.creating .modal-actions {
  grid-row: auto;
  margin: -16px -24px 0;
}

.appointment-form-actions {
  align-items: normal;
  gap: 16px;
}

.appointment-form-submit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.appointment-form-submit-actions > button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.appointment-form-submit-actions > button.primary-button {
  border: 0 solid oklch(0.92 0.004 286.32);
}

.appointment-form-submit-actions > button:not(.primary-button) {
  border-color: oklch(0.92 0.004 286.32);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.modal-actions.appointment-form-actions .appointment-form-submit-actions > button:not(.primary-button) {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 8px 16px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action img {
  display: block;
  width: 16px;
  height: 16px;
}

.modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action.danger {
  border-color: oklch(0.577 0.245 27.325);
  color: oklch(0.577 0.245 27.325);
}

.modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action.print {
  border-color: oklch(0.704 0.04 256.788);
  color: oklch(0.446 0.043 257.281);
}

.modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action.whatsapp {
  border-color: oklch(0.696 0.17 162.48);
  color: oklch(0.696 0.17 162.48);
}

.modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action.whatsapp img {
  display: none;
}

.modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action.whatsapp::before {
  width: 16px;
  height: 16px;
  content: "";
  background: currentColor;
  -webkit-mask: url("/dentalome-assets/whatsapp.svg") center / contain no-repeat;
  mask: url("/dentalome-assets/whatsapp.svg") center / contain no-repeat;
}

.appointment-form-icon-action:disabled,
.appointment-form-submit-actions > button:disabled {
  cursor: wait;
  opacity: .62;
}

.appointment-form-submit-error {
  grid-column: 1 / -1;
  grid-row: 8;
  align-self: end;
  color: oklch(0.577 0.245 27.325);
  font-size: 12px;
  line-height: 16px;
}

.appointment-combobox-field {
  position: relative;
  z-index: 6;
}

.appointment-combobox-field:focus-within {
  z-index: 8;
}

.appointment-source-combobox {
  position: relative;
}

.appointment-source-combobox.open .combobox-trigger svg {
  transform: rotate(180deg);
}

.act-catalog-menu.appointment-source-combobox-menu {
  z-index: 90;
  top: calc(100% + 4px);
  right: auto;
  display: flex;
  width: min(350.3359375px, calc(100vw - 64px));
  height: 387px;
  max-height: none;
  flex-direction: column;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}

.act-catalog-menu.appointment-source-combobox-menu .combobox-search-row {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  flex: 0 0 36px;
  gap: 8px;
  padding: 0 12px;
  color: oklch(0.552 0.016 285.938);
}

.appointment-form-grid .appointment-source-combobox-menu .combobox-search-row input {
  height: 40px;
  min-height: 40px;
  padding: 12px 0;
  font-weight: 400;
}

.act-catalog-menu.appointment-source-combobox-menu .combobox-search-row svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.appointment-source-combobox-options {
  box-sizing: border-box;
  height: 300px;
  max-height: 300px;
  flex: 0 0 300px;
  overflow-y: auto;
  padding: 4px;
}

.act-catalog-menu.appointment-source-combobox-menu .combobox-option-row {
  width: 100%;
  height: 32px;
  min-height: 32px;
  gap: 0;
  padding: 6px 8px;
  font-weight: 400;
}

.act-catalog-menu.appointment-source-combobox-menu .combobox-option-row svg {
  display: none;
}

.appointment-source-combobox-footer {
  box-sizing: border-box;
  width: calc(100% - 16px);
  height: 32px;
  min-height: 32px;
  flex: 0 0 32px;
  justify-content: center;
  gap: 8px;
  margin: 9px 8px 8px;
  border: 1px solid rgba(60, 121, 212, .2);
  border-radius: 8.4px;
  background: rgba(60, 121, 212, .1);
  color: #025ce2;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.appointment-source-combobox-footer:hover {
  background: #f8fbff;
}

.act-catalog-menu.appointment-source-combobox-menu.practitioner {
  width: 100%;
  height: auto;
  max-height: 346px;
}

.appointment-source-combobox-menu.practitioner .appointment-source-combobox-options {
  height: auto;
  max-height: 300px;
  flex: 0 1 auto;
}

.patient-source-dropdown-field {
  position: relative;
  z-index: 4;
}

.patient-source-dropdown-field:focus-within {
  z-index: 7;
}

.patient-source-dropdown {
  position: relative;
  display: block;
  width: 100%;
}

.patient-source-dropdown.open .combobox-trigger svg {
  transform: rotate(180deg);
}

.patient-source-dropdown-menu {
  z-index: 95;
  display: block;
  max-height: none;
  padding: 4px;
}

.patient-source-dropdown-option {
  display: flex;
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #111827;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.patient-source-dropdown-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.patient-source-dropdown-color {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.patient-source-dropdown-option:hover,
.patient-source-dropdown-option:focus-visible {
  background: #f4f4f5;
  outline: none;
}

.patient-source-dropdown-menu.payment-radio-menu {
  top: calc(100% + 4px);
  right: auto;
  box-sizing: border-box;
  width: 175.4140625px;
  height: 138px;
  padding: 4px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  outline: none;
}

.payment-radio-menu .patient-source-dropdown-option {
  height: 32px;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  font-weight: 400;
  line-height: 20px;
}

.payment-radio-indicator {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
}

.payment-radio-indicator i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(0.141 0.005 285.823);
}

.appointment-category-dropdown-field .patient-source-dropdown-menu {
  top: auto;
  bottom: calc(100% + 4px);
  width: 100%;
  max-height: min(362px, calc(100vh - 32px));
  overflow-y: auto;
  padding: 4px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}

.appointment-category-dropdown-field .patient-source-dropdown-option {
  height: 32px;
  min-height: 32px;
  padding: 6px 8px;
  font-weight: 400;
}

.dentalome-patient-form label[data-invalid="true"] {
  color: #dc2626;
}

.dentalome-patient-form label[data-invalid="true"] input,
.dentalome-patient-form label[data-invalid="true"] .combobox-trigger,
.dentalome-patient-form label[data-invalid="true"] .patient-phone-country-button,
.dentalome-patient-form label[data-invalid="true"] .patient-phone-number-input,
.dentalome-patient-form input[aria-invalid="true"] {
  border-color: #dc2626;
}

.dentalome-patient-form label[data-invalid="true"] input,
.dentalome-patient-form label[data-invalid="true"] .combobox-trigger,
.dentalome-patient-form label[data-invalid="true"] .patient-phone-number-input,
.dentalome-patient-form input[aria-invalid="true"] {
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.18);
}

.patient-field-error {
  color: #dc2626;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.patient-phone-field {
  position: relative;
  z-index: 5;
}

.patient-phone-field:focus-within {
  z-index: 8;
}

.patient-source-phone-input {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  width: 100%;
  min-height: 38px;
}

.patient-phone-country-button {
  display: flex;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #e5e7eb;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #fff;
  color: #111827;
  padding: 8px 9px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  cursor: pointer;
}

.patient-phone-country-button:focus-visible,
.patient-source-phone-input:focus-within .patient-phone-number-input {
  border-color: #0b66e4;
  outline: none;
  box-shadow: 0 0 0 1px #0b66e4;
}

.patient-phone-country-button svg {
  flex: 0 0 auto;
  color: #6b7280;
  opacity: 0.75;
}

.patient-phone-flag {
  display: block;
  width: 24px;
  height: 16px;
  flex: 0 0 24px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.patient-phone-country-button .patient-phone-flag {
  color: initial;
  opacity: 1;
}

.dentalome-patient-form .patient-phone-number-input {
  min-height: 38px;
  border-radius: 0 8px 8px 0;
  border-left: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.dentalome-patient-form .patient-phone-number-input::placeholder,
.dentalome-patient-form .patient-phone-country-search::placeholder {
  color: #6b7280;
  opacity: 1;
}

.patient-phone-country-menu {
  position: absolute;
  z-index: 98;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  width: min(300px, calc(100vw - 72px));
  overflow: hidden;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 0;
}

.dentalome-patient-form .patient-phone-country-search {
  min-height: 38px;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  border-radius: 0;
  box-shadow: none;
}

.dentalome-patient-form .patient-phone-country-search:focus {
  border-bottom-color: #0b66e4;
  outline: none;
  box-shadow: 0 0 0 1px #0b66e4;
}

.patient-phone-country-list {
  display: grid;
  max-height: 288px;
  overflow-y: auto;
  padding: 4px;
}

.patient-phone-country-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 16px;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #111827;
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.patient-phone-country-option:hover,
.patient-phone-country-option:focus-visible {
  background: #f4f4f5;
  outline: none;
}

.patient-phone-country-option > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.patient-phone-country-dial {
  color: rgba(17, 24, 39, 0.52);
  font-size: 13px;
}

.patient-phone-country-option svg {
  color: #111827;
  opacity: 0;
}

.patient-phone-country-option svg.visible {
  opacity: 1;
}

.patient-phone-country-empty {
  min-height: 36px;
  color: #6b7280;
  padding: 9px 10px;
  font-size: 14px;
}

.patient-birth-date-field {
  position: relative;
  z-index: 3;
}

.patient-birth-date-field:focus-within {
  z-index: 7;
}

.patient-birth-date-picker {
  position: relative;
  display: block;
  width: 100%;
}

.patient-birth-date-button {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  cursor: pointer;
}

.patient-birth-date-button.placeholder span {
  color: #6b7280;
}

.patient-birth-date-button:focus-visible {
  border-color: #0b66e4;
  outline: none;
  box-shadow: 0 0 0 1px #0b66e4;
}

.patient-birth-date-button svg {
  flex: 0 0 auto;
  color: #6b7280;
  opacity: 0.65;
}

.dentalome-date-input {
  position: relative;
  display: block;
  width: 100%;
}

.dentalome-date-input > button {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  cursor: pointer;
}

.dentalome-date-input > button:focus-visible {
  border-color: #0b66e4;
  outline: none;
  box-shadow: 0 0 0 1px #0b66e4;
}

.dentalome-date-input > button svg {
  flex: 0 0 auto;
  color: #6b7280;
  opacity: 0.65;
}

.dentalome-date-popover {
  position: absolute;
  z-index: 120;
  top: calc(100% + 4px);
  left: 0;
  display: block;
  width: 288px;
}

.dentalome-date-calendar {
  box-sizing: border-box;
  display: block;
  width: 288px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1),
    0 2px 4px -2px rgba(0, 0, 0, .1);
}

.dentalome-date-calendar-inner {
  position: relative;
  box-sizing: border-box;
  width: 248px;
  padding: 12px;
}

.dentalome-date-calendar-nav {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  width: 224px;
  height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.dentalome-date-calendar-nav button {
  display: flex;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
}

.dentalome-date-calendar-nav button:hover,
.dentalome-date-calendar-grid button:hover {
  background: oklch(0.967 0.001 286.375);
}

.dentalome-date-calendar-caption {
  position: absolute;
  top: 11px;
  left: 50%;
  display: flex;
  height: 34px;
  align-items: flex-start;
  gap: 6px;
  transform: translateX(-50%);
}

.dentalome-date-calendar-dropdown {
  position: relative;
  display: block;
  height: 34px;
  padding: 1px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.dentalome-date-calendar-dropdown > select {
  position: absolute;
  z-index: 1;
  inset: 1px;
  width: calc(100% - 2px);
  height: 32px;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.dentalome-date-calendar-dropdown > span {
  display: flex;
  height: 32px;
  align-items: center;
  gap: 4px;
  padding: 0 4px 0 8px;
  white-space: nowrap;
}

.dentalome-date-calendar-grid {
  display: table;
  width: 224px;
  min-width: 224px;
  max-width: 224px;
  margin: 48px 0 0;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
}

.dentalome-date-calendar-grid tr {
  display: flex;
  width: 224px;
  margin: 0;
}

.dentalome-date-calendar-grid tbody tr {
  height: 32px;
  margin-top: 8px;
}

.dentalome-date-calendar-grid th,
.dentalome-date-calendar-grid td {
  display: block;
  box-sizing: border-box;
  width: 32px;
  min-width: 32px;
  padding: 0;
  border: 0;
}

.dentalome-date-calendar-grid th {
  height: 19.1953125px;
  border-radius: 8.4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 12.8px;
  font-weight: 400;
  line-height: 19.2px;
  text-align: center;
}

.dentalome-date-calendar-grid td {
  position: relative;
  height: 32px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.dentalome-date-calendar-grid td.outside button {
  color: oklch(0.552 0.016 285.938);
}

.dentalome-date-calendar-grid td.selected {
  background: oklch(0.967 0.001 286.375);
}

.dentalome-date-calendar-grid td button {
  display: flex;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
}

.dentalome-date-calendar-grid td.selected button {
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
}

.patient-birth-date-popover {
  position: absolute;
  z-index: 96;
  top: calc(100% + 8px);
  left: 0;
  min-width: 278px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.patient-birth-calendar,
.patient-birth-calendar-head,
.patient-birth-calendar-grid {
  display: grid;
}

.patient-birth-calendar {
  gap: 10px;
}

.patient-birth-calendar-head {
  grid-template-columns: 32px minmax(0, 1fr) 78px 32px;
  gap: 6px;
  align-items: center;
}

.patient-birth-calendar-head button,
.patient-birth-calendar-head select {
  min-height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.patient-birth-calendar-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.patient-birth-calendar-head select {
  padding: 0 7px;
}

.patient-birth-calendar-grid {
  grid-template-columns: repeat(7, 32px);
  gap: 4px;
  justify-content: center;
}

.patient-birth-calendar-grid span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.patient-birth-calendar-grid button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.patient-birth-calendar-grid button.outside {
  color: #c4c9d2;
}

.patient-birth-calendar-grid button.selected {
  background: #025ce2;
  color: #fff;
}

.patient-birth-calendar-grid button:disabled {
  color: #c4c9d2;
  cursor: not-allowed;
}

.appointment-form-footer-actions {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  margin-right: auto;
}

.appointment-form-icon-action {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 8.4px;
  background: #fff;
  color: #475569;
  padding: 0;
}

.appointment-form-icon-action.danger {
  border-color: oklch(0.577 0.245 27.325);
  color: oklch(0.577 0.245 27.325);
}

.appointment-form-icon-action.print {
  border-color: oklch(0.704 0.04 256.788);
  color: oklch(0.446 0.043 257.281);
}

.appointment-form-icon-action.whatsapp {
  border-color: oklch(0.696 0.17 162.48);
  color: oklch(0.696 0.17 162.48);
}

.appointment-form-icon-action:hover {
  background: #f8fafc;
}

.appointment-form-icon-action.whatsapp:hover {
  background: #ecfdf5;
}

.appointment-form-grid .primary-button {
  min-height: 36px;
  border: 0;
  border-radius: 8.4px;
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.operation-form-modal {
  width: min(672px, calc(100vw - 48px));
  padding: 24px 24px 16px;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.operation-sessions-modal {
  position: relative;
  width: min(512px, calc(100vw - 48px));
  padding: 0;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.session-delete-alert-modal {
  width: min(512px, calc(100vw - 48px));
  padding: 24px 24px 0;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.operation-session-form-modal {
  position: relative;
  width: min(512px, calc(100vw - 48px));
  padding: 24px 24px 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.payment-form-modal {
  position: relative;
  width: min(512px, calc(100vw - 48px));
  display: grid;
  gap: 16px;
  padding: 24px 24px 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.patient-form-modal {
  width: min(600px, calc(100vw - 48px));
  padding: 24px 24px 0;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.prothese-form-modal {
  width: min(672px, calc(100vw - 48px));
  padding: 24px 24px 0;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.charge-form-modal {
  width: min(512px, calc(100vw - 48px));
  padding: 24px 24px 0;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.operation-form-modal .modal-head,
.operation-sessions-modal .modal-head,
.session-delete-alert-modal .modal-head,
.payment-form-modal .modal-head,
.patient-form-modal .modal-head,
.prothese-form-modal .modal-head,
.charge-form-modal .modal-head {
  margin: -4px -24px 18px;
  padding: 0 24px 16px;
  border-bottom: 1px solid #eef0f3;
}

.payment-form-modal .modal-head {
  position: relative;
  width: calc(100% + 48px);
  min-height: 37px;
  margin: 0 -24px;
  padding: 0 24px 16px;
  border-bottom-color: oklch(0.92 0.004 286.32);
}

.operation-form-modal .modal-head h2,
.operation-sessions-modal .modal-head h2,
.session-delete-alert-modal .modal-head h2,
.payment-form-modal .modal-head h2,
.patient-form-modal .modal-head h2,
.prothese-form-modal .modal-head h2,
.charge-form-modal .modal-head h2 {
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.payment-form-modal .modal-head h2 {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.payment-form-modal .modal-head h2 svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.payment-form-modal .modal-head > button {
  position: absolute;
  top: -8px;
  right: 16px;
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  opacity: .7;
}

.payment-form-modal .modal-head > button:hover,
.payment-form-modal .modal-head > button:focus-visible {
  opacity: 1;
}

.payment-form-modal .modal-head > button svg {
  width: 16px;
  height: 16px;
}

.payment-form-modal > .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  opacity: .7;
}

.payment-form-modal > .modal-close-button:hover,
.payment-form-modal > .modal-close-button:focus-visible {
  opacity: 1;
}

.payment-form-modal > .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.operation-sessions-modal > .modal-head {
  min-height: 60px;
  margin: 0;
  padding: 16px 24px;
}

.operation-sessions-modal > .modal-head h2 {
  width: 100%;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.operation-session-form-modal > .modal-head {
  box-sizing: border-box;
  width: 100%;
  height: 35px;
  min-height: 35px;
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.operation-session-form-modal > .modal-head h2 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.operation-session-form-modal > .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  padding: 0;
  color: oklch(0.141 0.005 285.823);
  opacity: .7;
}

.operation-session-form-modal > .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.operation-sessions-modal > .modal-head > button,
.operation-sessions-modal > .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  padding: 0;
  color: oklch(0.141 0.005 285.823);
  opacity: .7;
}

.operation-sessions-modal > .modal-head > button svg {
  width: 16px;
  height: 16px;
}

.operation-sessions-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 24px;
}

.operation-session-summary-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f4f4f5;
  padding: 12px;
  min-height: 78px;
}

.operation-session-summary-card.received {
  background: #ecfdf5;
}

.operation-session-summary-card p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
}

.operation-session-summary-card div {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.operation-session-summary-card span {
  min-width: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.operation-session-summary-card.received span {
  color: #047857;
}

.operation-session-summary-card small {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 12px;
  line-height: 16px;
}

.operation-sessions-scroll {
  min-height: 188px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 16px;
}

.operation-session-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.operation-session-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}

.operation-session-card-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e5e7eb;
  padding: 8px;
}

.operation-session-date-chip {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: #6b7280;
}

.operation-session-date-chip svg {
  flex: 0 0 auto;
  margin-bottom: 2px;
}

.operation-session-date-chip span {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.operation-session-date-chip small {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.operation-session-date-chip em {
  color: #6b7280;
  font-size: 11px;
  font-style: normal;
}

.operation-session-card-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.operation-session-card-actions .plain-icon {
  color: #111827;
}

.operation-session-card-actions .plain-icon.destructive {
  color: #dc2626;
}

.operation-session-card > p {
  min-width: 0;
  margin: 0;
  padding: 8px;
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.operation-session-empty {
  padding: 64px 16px;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

.operation-sessions-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid #eef0f3;
}

.operation-sessions-modal .operation-sessions-footer .primary-button {
  width: 176.328125px;
  min-width: 176.328125px;
  min-height: 32px;
  height: 32px;
  gap: 8px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.dentalome-operation-form,
.dentalome-payment-form,
.dentalome-patient-form,
.dentalome-prothese-form,
.dentalome-charge-form {
  gap: 20px 16px;
}

.dentalome-payment-form {
  grid-template-columns: 1fr;
  gap: 16px;
}

.payment-form-modal .dentalome-payment-form {
  width: 100%;
}

.payment-form-modal .dentalome-payment-form > label,
.payment-form-modal .dentalome-payment-form > .payment-source-field,
.payment-form-modal .dentalome-payment-form > .patient-source-dropdown-field {
  display: grid;
  gap: 12px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.payment-form-modal .dentalome-payment-form .field-label {
  gap: 8px;
  font-weight: 500;
  line-height: 19.25px;
}

.payment-form-modal .dentalome-payment-form .required-mark {
  color: oklch(0.577 0.245 27.325);
  font-weight: 500;
}

.payment-amount-field-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 20px;
}

.payment-field-error {
  min-height: 20px;
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.payment-submit-error {
  margin: 0;
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  line-height: 20px;
}

.payment-form-modal .payment-amount-field.invalid > .field-label {
  color: oklch(0.577 0.245 27.325);
}

.payment-form-modal .payment-amount-field.invalid input {
  color: oklch(0.577 0.245 27.325);
  transform: translateY(.5px);
}

.dentalome-operation-form label,
.dentalome-payment-form label,
.dentalome-patient-form label,
.dentalome-prothese-form label,
.dentalome-charge-form label {
  min-width: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.dentalome-operation-form .field-label,
.dentalome-payment-form .field-label,
.dentalome-patient-form .field-label,
.dentalome-prothese-form .field-label,
.dentalome-charge-form .field-label {
  gap: 8px;
}

.dentalome-operation-form .field-label svg {
  color: #6b7280;
  stroke-width: 1.8;
}

.dentalome-prothese-form .appointment-source-combobox {
  width: 100%;
}

.dentalome-charge-form .field-label svg {
  color: #6b7280;
  stroke-width: 1.8;
}

.dentalome-operation-form input,
.dentalome-operation-form select,
.dentalome-payment-form input,
.dentalome-payment-form select,
.dentalome-payment-form textarea,
.operation-session-form input,
.operation-session-form select,
.operation-session-form textarea,
.dentalome-patient-form input,
.dentalome-patient-form select,
.dentalome-patient-form textarea,
.dentalome-prothese-form input,
.dentalome-prothese-form select,
.dentalome-prothese-form textarea,
.dentalome-charge-form input,
.dentalome-charge-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border-color: #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.dentalome-operation-form input:focus,
.dentalome-operation-form select:focus,
.dentalome-payment-form input:focus,
.dentalome-payment-form select:focus,
.dentalome-payment-form textarea:focus {
  border-color: #0b66e4;
  outline: none;
  box-shadow: 0 0 0 1px #0b66e4;
}

.dentalome-payment-form textarea {
  min-height: 84px;
  resize: none;
}

.payment-form-modal .dentalome-payment-form input,
.payment-form-modal .dentalome-payment-form .dentalome-date-input > button,
.payment-form-modal .dentalome-payment-form .patient-source-dropdown .combobox-trigger {
  height: 36px;
  min-height: 36px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 4px 12px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.payment-form-modal .dentalome-payment-form .dentalome-date-input > button,
.payment-form-modal .dentalome-payment-form .patient-source-dropdown .combobox-trigger {
  padding: 8px 12px;
}

.payment-form-modal .dentalome-payment-form .dentalome-date-input > button:focus-visible,
.payment-form-modal .dentalome-payment-form .patient-source-dropdown .combobox-trigger:focus-visible,
.payment-form-modal .dentalome-payment-form input:focus-visible,
.payment-form-modal .dentalome-payment-form textarea:focus-visible {
  border-color: #025ce2;
  outline: none;
  outline-offset: 0;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.payment-form-modal .dentalome-payment-form textarea {
  height: 80px;
  min-height: 80px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 8px 12px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.dentalome-patient-form textarea,
.dentalome-charge-form textarea {
  min-height: 80px;
  resize: none;
}

.dentalome-charge-form label[data-invalid="true"] input {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.18);
}

.dentalome-charge-form label[data-invalid="true"] .charge-date-button {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.18);
}

.charge-date-picker {
  position: relative;
  display: block;
}

.charge-date-button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.charge-date-button svg {
  color: #6b7280;
  opacity: 0.65;
}

.charge-date-placeholder {
  color: #6b7280;
}

.charge-date-popover {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 0;
  min-width: 278px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.charge-calendar,
.charge-calendar-head,
.charge-calendar-grid {
  display: grid;
}

.charge-calendar {
  gap: 10px;
}

.charge-calendar-head {
  grid-template-columns: 32px minmax(0, 1fr) 78px 32px;
  gap: 6px;
  align-items: center;
}

.charge-calendar-head button,
.charge-calendar-head select {
  min-height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.charge-calendar-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.charge-calendar-head select {
  padding: 0 7px;
}

.charge-calendar-grid {
  grid-template-columns: repeat(7, 32px);
  gap: 4px;
  justify-content: center;
}

.charge-calendar-grid span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.charge-calendar-grid button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.charge-calendar-grid button.outside {
  color: #c4c9d2;
}

.charge-calendar-grid button.today,
.charge-calendar-grid button.selected {
  background: #025ce2;
  color: #fff;
}

.charge-form-error {
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.operation-session-form {
  gap: 18px 16px;
  margin-bottom: 18px;
}

.operation-session-form label {
  min-width: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.operation-session-form textarea {
  min-height: 86px;
  resize: vertical;
}

.operation-session-source-form {
  display: grid;
  gap: 16px;
}

.operation-session-source-field {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.operation-session-source-label {
  display: flex;
  height: 19.25px;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.operation-session-source-label svg {
  color: #6b7280;
  stroke-width: 1.8;
}

.operation-session-source-form strong {
  color: #dc2626;
}

.operation-session-source-form .dentalome-date-input > button,
.operation-session-source-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  padding: 4px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-session-source-form textarea {
  height: 80px;
  min-height: 80px;
  padding: 8px 12px;
  resize: none;
}

.operation-session-source-form .dentalome-date-input > button:focus {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-session-detail-control {
  display: grid;
  gap: 4px;
}

.operation-session-detail-control small {
  width: 100%;
  height: 16px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-align: right;
}

.operation-session-form-modal .operation-session-source-form > .modal-actions {
  box-sizing: border-box;
  width: calc(100% + 48px);
  height: 53px;
  margin: 0 -24px;
  gap: 8px;
  padding: 16px 24px 0;
  border-top: 1px solid oklch(0.92 0.004 286.32);
}

.operation-session-form-modal .modal-actions button,
.operation-session-form-modal .modal-actions .primary-button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.operation-session-form-modal .modal-actions button:not(.primary-button) {
  border-color: oklch(0.92 0.004 286.32);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-session-form-modal .modal-actions .primary-button {
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
}

.session-delete-alert-modal .delete-confirm-copy {
  margin: 0 0 16px;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.dentalome-operation-form .field-placeholder-overlay {
  color: #6b7280;
  font-weight: 500;
}

.combobox-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  cursor: pointer;
}

.combobox-trigger:focus-visible {
  border-color: #0b66e4;
  outline: none;
  box-shadow: 0 0 0 1px #0b66e4;
}

.combobox-trigger.placeholder {
  color: #6b7280;
}

.combobox-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combobox-trigger svg {
  flex: 0 0 auto;
  color: #9ca3af;
  opacity: 0.65;
  transition: transform 140ms ease;
}

.act-catalog-combobox.open .combobox-trigger svg,
.teeth-selector-combobox.open .combobox-trigger svg {
  transform: rotate(180deg);
}

.operation-act-field {
  position: relative;
  z-index: 4;
}

.operation-teeth-field {
  position: relative;
  z-index: 3;
}

.operation-teeth-field:focus-within {
  z-index: 5;
}

.act-catalog-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 300px;
  overflow: hidden;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 0;
}

.combobox-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #eef0f3;
  padding: 9px 10px;
  color: #9ca3af;
}

.combobox-search-row input {
  min-height: 28px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.combobox-search-row input:focus {
  border: 0;
  outline: none;
  box-shadow: none;
}

.act-catalog-menu .combobox-option-row {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #111827;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.act-catalog-menu .combobox-option-row svg {
  flex: 0 0 auto;
  color: #111827;
  opacity: 0;
}

.act-catalog-menu .combobox-option-row[aria-selected="true"] svg {
  opacity: 1;
}

.act-catalog-menu .combobox-option-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.act-catalog-menu .combobox-option-row:hover,
.act-catalog-menu .combobox-option-row[aria-selected="true"] {
  background: #f4f4f5;
}

.act-catalog-menu em {
  padding: 12px;
  color: #667085;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.teeth-selector-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  display: grid;
  width: min(400px, calc(100vw - 64px));
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 8px;
}

.teeth-selector-list {
  display: grid;
  gap: 2px;
}

.teeth-selector-option {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #111827;
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.teeth-selector-option:hover,
.teeth-selector-option[aria-selected="true"] {
  background: #f4f4f5;
}

.teeth-selector-checkbox {
  display: inline-grid;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  color: #fff;
}

.teeth-selector-checkbox.checked {
  border-color: #025ce2;
  background: #025ce2;
}

.dentalome-patient-form .phone-field {
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.patient-phone-field i {
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, #16a34a 0 31%, transparent 32%),
    #c1121f;
}

.patient-history-button {
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
  color: #0b63e5 !important;
}

.modal-action-spacer {
  flex: 1 1 auto;
}

.operation-form-modal .modal-actions,
.operation-sessions-modal .modal-actions,
.session-delete-alert-modal .modal-actions,
.payment-form-modal .modal-actions,
.patient-form-modal .modal-actions,
.prothese-form-modal .modal-actions,
.charge-form-modal .modal-actions {
  align-items: center;
  margin: 4px -24px -16px;
  padding: 16px 24px;
  border-top: 1px solid #eef0f3;
}

.payment-form-modal .modal-actions {
  height: 53px;
  margin: 0 -24px;
  gap: 8px;
  padding: 16px 24px 0;
  border-top-color: oklch(0.92 0.004 286.32);
}

.payment-form-modal .modal-actions button,
.payment-form-modal .modal-actions .primary-button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.payment-form-modal .modal-actions button:not(.primary-button) {
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
  min-height: 36px;
  height: 36px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.payment-form-modal .modal-actions .primary-button {
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
}

.patient-form-modal .modal-actions {
  width: calc(100% + 48px);
  height: 53px;
  min-height: 53px;
  flex: 0 0 53px;
  gap: 8px;
  margin: 0 -24px;
  padding: 16px 24px 0;
  border-top-color: oklch(0.92 0.004 286.32);
}

.patient-form-modal {
  position: relative;
  display: flex;
  width: min(600px, calc(100vw - 48px));
  max-height: 90vh;
  flex-direction: column;
  overflow: visible;
  padding: 24px 24px 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%);
}

.patient-form-modal .modal-head {
  width: 100%;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.patient-form-modal .modal-head h2 {
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.patient-form-modal .modal-close-button {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: oklch(0.552 0.016 285.938);
  box-shadow: none;
}

.patient-form-modal > .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  display: block;
  border-radius: 2px;
  color: oklch(0.141 0.005 285.823);
  opacity: .7;
}

.patient-form-modal .dentalome-patient-form {
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0;
}

.patient-form-modal .patient-form-scroll {
  min-height: 0;
  flex: 1 1 auto;
  align-content: start;
  gap: 16px;
  overflow-y: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.patient-form-modal .patient-form-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.patient-form-modal .patient-form-scroll > label,
.patient-form-modal .patient-form-scroll > .patient-source-dropdown-field,
.patient-form-modal .patient-form-scroll > .patient-phone-field {
  display: grid;
  align-content: start;
  gap: 12px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.patient-form-modal .patient-form-scroll .field-label {
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.patient-form-modal .patient-form-scroll input,
.patient-form-modal .patient-form-scroll textarea,
.patient-form-modal .patient-form-scroll .combobox-trigger,
.patient-form-modal .patient-form-scroll .patient-birth-date-button,
.patient-form-modal .patient-form-scroll .patient-phone-country-button,
.patient-form-modal .patient-form-scroll .patient-phone-number-input {
  height: 36px;
  min-height: 36px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.patient-form-modal .patient-form-scroll .combobox-trigger,
.patient-form-modal .patient-form-scroll .patient-birth-date-button,
.patient-form-modal .patient-form-scroll .patient-phone-country-button {
  background: oklch(1 0 0);
  font-weight: 500;
}

.patient-form-modal .patient-form-scroll .combobox-trigger {
  gap: 8px;
  text-align: center;
}

.patient-form-modal .patient-form-scroll .patient-birth-date-button {
  gap: 8px;
  font-weight: 400;
}

.patient-form-modal .patient-form-scroll input {
  padding: 4px 12px;
}

.patient-form-modal .patient-form-scroll textarea {
  height: 80px;
  min-height: 80px;
  padding: 8px 12px;
}

.patient-form-modal .patient-form-scroll .combobox-trigger,
.patient-form-modal .patient-form-scroll .patient-birth-date-button {
  padding: 8px 12px;
}

.patient-form-modal .patient-source-phone-input {
  grid-template-columns: 61px minmax(0, 1fr);
  min-height: 36px;
}

.patient-form-modal .patient-form-scroll .patient-phone-country-button {
  border-right: 0;
  border-radius: 10.4px 0 0 10.4px;
  padding: 8px 12px;
}

.patient-form-modal .patient-form-scroll .patient-phone-number-input {
  border-left: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 0 10.4px 10.4px 0;
  padding: 4px 12px;
}

.patient-form-modal .patient-field-error {
  margin-top: -6px;
  font-size: 14px;
  line-height: 20px;
}

.patient-form-modal .patient-form-scroll > [data-invalid="true"] {
  color: oklch(0.577 0.245 27.325);
}

.patient-form-modal .dentalome-patient-form [data-invalid="true"] input,
.patient-form-modal .dentalome-patient-form [data-invalid="true"] .combobox-trigger,
.patient-form-modal .dentalome-patient-form [data-invalid="true"] .patient-phone-country-button,
.patient-form-modal .dentalome-patient-form [data-invalid="true"] .patient-phone-number-input,
.patient-form-modal .dentalome-patient-form input[aria-invalid="true"] {
  border-color: oklch(0.92 0.004 286.32);
  color: oklch(0.577 0.245 27.325);
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.patient-form-modal .dentalome-patient-form [data-invalid="true"] .patient-phone-country-button {
  border-right: 0;
}

.patient-form-modal .dentalome-patient-form input:focus {
  border-color: rgb(2 92 226);
  outline: none;
  box-shadow: 0 0 0 3px rgb(2 92 226 / 50%), 0 1px 2px rgb(0 0 0 / 5%);
}

.patient-form-modal .dentalome-patient-form [data-invalid="true"] input:focus {
  border-color: rgb(2 92 226);
  outline: none;
  box-shadow: 0 0 0 3px rgb(2 92 226 / 50%), 0 1px 2px rgb(0 0 0 / 5%);
}

.operation-form-modal .primary-button,
.operation-sessions-modal .primary-button,
.operation-session-form-modal .primary-button,
.payment-form-modal .primary-button,
.patient-form-modal .primary-button,
.prothese-form-modal .primary-button,
.charge-form-modal .primary-button,
.note-form-modal .primary-button,
.note-category-modal .primary-button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: #075fe5;
  color: #fff;
  padding: 0 17px;
}

.operation-form-modal {
  position: relative;
  display: flex;
  width: min(672px, calc(100vw - 48px));
  flex-direction: column;
  overflow: visible;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, .1), 0 4px 6px -4px rgba(15, 23, 42, .1);
}

.operation-form-modal .modal-head {
  box-sizing: border-box;
  width: calc(100% + 48px);
  height: 35px;
  min-height: 35px;
  flex: 0 0 35px;
  margin: 0 -24px 20px;
  padding: 0 24px 16px;
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.operation-form-modal .modal-head h2 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.operation-form-modal > .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  display: block;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  box-shadow: none;
}

.operation-form-modal > .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.dentalome-operation-form {
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 20px;
}

.dentalome-operation-form > .operation-form-field {
  min-width: 0;
  display: grid;
  grid-template-rows: 19.25px 36px;
  align-content: start;
  gap: 12px;
}

.dentalome-operation-form > .operation-act-field {
  grid-template-rows: 19.25px auto;
}

.operation-act-field-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 20px;
}

.operation-field-error {
  min-height: 20px;
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.dentalome-operation-form > .operation-form-field > label.field-label,
.dentalome-operation-form > .operation-status-field > .patient-source-dropdown-field > .field-label {
  min-width: 0;
  height: 19.25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.dentalome-operation-form > .operation-status-field > .patient-source-dropdown-field {
  min-width: 0;
  display: grid;
  grid-template-rows: 19.25px 36px;
  gap: 12px;
}

.operation-status-field .patient-source-dropdown-menu {
  top: calc(100% + 4.25px);
  padding: 4px;
}

.operation-status-field .patient-source-dropdown-option {
  height: 32px;
  min-height: 32px;
  padding: 6px 8px;
  font-weight: 400;
}

.dentalome-operation-form .required-mark {
  color: oklch(0.577 0.245 27.325);
  font-weight: 500;
}

.dentalome-operation-form > .operation-form-field > label.field-label svg,
.dentalome-operation-form > .operation-status-field > .patient-source-dropdown-field > .field-label svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: oklch(0.552 0.016 285.938);
  stroke-width: 1.8;
}

.operation-form-modal .dentalome-operation-form input,
.operation-form-modal .dentalome-operation-form .dentalome-date-input > button,
.operation-form-modal .dentalome-operation-form .appointment-source-combobox > .combobox-trigger,
.operation-form-modal .dentalome-operation-form .act-catalog-combobox > .combobox-trigger,
.operation-form-modal .dentalome-operation-form .teeth-selector-combobox > .combobox-trigger,
.operation-form-modal .dentalome-operation-form .patient-source-dropdown > .combobox-trigger {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  min-height: 36px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 8px 12px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-form-modal .dentalome-operation-form .combobox-trigger.placeholder {
  color: oklch(0.552 0.016 285.938);
}

.operation-form-modal .dentalome-operation-form .appointment-combobox-field .combobox-trigger,
.operation-form-modal .dentalome-operation-form .operation-status-field .combobox-trigger {
  font-weight: 500;
}

.operation-form-modal .dentalome-operation-form input[type="number"] {
  padding: 4px 12px;
}

.operation-form-modal .dentalome-operation-form .operation-act-field[data-invalid="true"] > label.field-label,
.operation-form-modal .dentalome-operation-form .operation-act-field[data-invalid="true"] .combobox-trigger {
  color: oklch(0.577 0.245 27.325);
}

.operation-form-modal .dentalome-operation-form .operation-act-field[data-invalid="true"] .combobox-trigger {
  font-weight: 500;
}

.operation-form-modal .dentalome-operation-form input:focus,
.operation-form-modal .dentalome-operation-form .dentalome-date-input > button:focus-visible,
.operation-form-modal .dentalome-operation-form .combobox-trigger:focus-visible {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-form-modal .modal-actions {
  box-sizing: border-box;
  width: calc(100% + 50px);
  height: 69px;
  min-height: 69px;
  align-items: flex-start;
  gap: 8px;
  margin: 0 -25px -16px;
  padding: 16px 25px;
  border-top: 1px solid oklch(0.92 0.004 286.32);
}

.operation-form-modal .modal-actions button,
.operation-form-modal .modal-actions .primary-button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.operation-form-modal .modal-actions button:not(.primary-button) {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 8px 16px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-form-modal .modal-actions .primary-button {
  border: 0;
  border-color: #025ce2;
  background: #025ce2;
  color: #eff6ff;
  box-shadow: none;
}

.operation-form-modal .modal-actions .primary-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px oklab(0.519343 -0.0356103 -0.213735 / 0.5);
}

.operation-form-modal .modal-actions .primary-button:disabled {
  opacity: .5;
}

.operation-edit-impact-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .34);
}

.operation-edit-impact-dialog {
  box-sizing: border-box;
  width: min(512px, calc(100vw - 48px));
  min-height: 186px;
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .14), 0 4px 6px -4px rgba(0, 0, 0, .14);
}

.operation-edit-impact-copy {
  display: grid;
  gap: 8px;
}

.operation-edit-impact-dialog h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.operation-edit-impact-dialog p {
  margin: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  line-height: 20px;
}

.operation-edit-impact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

.operation-edit-impact-actions button {
  box-sizing: border-box;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 8px 16px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-edit-impact-actions .primary-button {
  border: 0 solid oklch(0.92 0.004 286.32);
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
  box-shadow: none;
}

.operation-act-command-dialog,
.operation-teeth-command-dialog {
  position: fixed;
  z-index: 90;
  box-sizing: border-box;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, .1), 0 4px 6px -4px rgba(15, 23, 42, .1);
}

.operation-act-command-dialog {
  height: 338px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.operation-act-command-search {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
  padding: 0 12px;
  color: oklch(0.552 0.016 285.938);
}

.operation-act-command-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.operation-act-command-search input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 0;
  padding: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  outline: 0;
}

.operation-act-command-search input::placeholder {
  color: oklch(0.552 0.016 285.938);
  opacity: 1;
}

.operation-act-command-options {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px;
}

.operation-act-command-option {
  box-sizing: border-box;
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 4px;
  padding: 6px 8px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  white-space: normal;
}

.operation-act-command-option svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-right: 8px;
  opacity: 0;
}

.operation-act-command-option svg.selected {
  opacity: 1;
}

.operation-act-command-option span {
  min-width: 0;
  white-space: normal;
}

.operation-act-command-option:hover,
.operation-act-command-option[aria-selected="true"] {
  background: oklch(0.97 0.001 286.375);
}

.operation-act-command-options em {
  display: block;
  padding: 12px;
  color: oklch(0.552 0.016 285.938);
  font-size: 13px;
  font-style: normal;
}

.operation-teeth-command-dialog {
  height: 302px;
  overflow: hidden;
  padding: 0;
}

.operation-teeth-command-scroll {
  box-sizing: border-box;
  height: 300px;
  overflow-y: auto;
  padding: 8px;
}

.operation-teeth-command-scroll > p {
  height: 24px;
  margin: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
  text-transform: uppercase;
}

.operation-tooth-choice-list {
  display: grid;
  gap: 4px;
}

.operation-tooth-choice {
  box-sizing: border-box;
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  padding: 6px 8px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
}

.operation-tooth-choice:hover {
  background: oklch(0.97 0.001 286.375);
}

.operation-tooth-choice > button {
  box-sizing: border-box;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid oklch(0.87 0.006 286.286);
  border-radius: 4px;
  padding: 0;
  background: #fff;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-tooth-choice > button[aria-checked="true"] {
  border-color: #025ce2;
  background: #025ce2;
}

.operation-tooth-choice > button:focus-visible {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5);
}

.operation-tooth-choice > label {
  flex: 1 1 auto;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  cursor: pointer;
}

.charge-form-modal .primary-button {
  background: #025ce2;
}

.charge-form-modal {
  position: relative;
  display: grid;
  width: min(512px, calc(100vw - 32px));
  gap: 16px;
  padding: 24px 24px 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.charge-form-modal > .modal-head {
  width: calc(100% + 48px);
  min-height: 35px;
  margin: 0 -24px;
  padding: 0 24px 16px;
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.charge-form-modal > .modal-head h2 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.charge-form-modal > .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  opacity: .7;
}

.charge-form-modal > .modal-close-button:hover,
.charge-form-modal > .modal-close-button:focus-visible {
  opacity: 1;
}

.charge-form-modal > .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.charge-form-modal .dentalome-charge-form {
  display: block;
  width: 100%;
}

.charge-source-field {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
}

.charge-form-modal .dentalome-charge-form .charge-source-label {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.charge-form-modal .dentalome-charge-form .charge-source-label .required-mark {
  color: oklch(0.577 0.245 27.325);
  font-weight: 500;
}

.charge-form-modal .dentalome-charge-form .charge-source-label svg {
  width: 16px;
  height: 16px;
  color: oklch(0.552 0.016 285.938);
}

.charge-source-field-content {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  line-height: 19.25px;
}

.charge-source-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.charge-form-modal .dentalome-charge-form input,
.charge-form-modal .charge-date-button {
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.charge-form-modal .charge-date-button {
  padding: 8px 12px;
}

.charge-form-modal .dentalome-charge-form input:focus-visible,
.charge-form-modal .charge-date-button:focus-visible {
  border-color: #025ce2;
  outline: 1px solid #025ce2;
  outline-offset: 0;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.charge-form-modal .charge-source-field[data-invalid="true"] input,
.charge-form-modal .charge-source-field[data-invalid="true"] .charge-date-button {
  border-color: oklch(0.92 0.004 286.32);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.charge-form-modal .charge-source-field[data-invalid="true"] .charge-source-label,
.charge-form-modal .charge-source-field[data-invalid="true"] input {
  color: oklch(0.577 0.245 27.325);
}

.charge-form-modal .dentalome-charge-form input[data-modal-autofocus="true"]:focus {
  border-color: oklch(0.92 0.004 286.32);
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.charge-form-modal .charge-form-error {
  min-height: 20px;
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.charge-form-modal .charge-source-footer {
  display: flex;
  height: 53px;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  margin: 16px -24px 0;
  padding: 16px 24px 0;
  border-top: 1px solid oklch(0.92 0.004 286.32);
}

.charge-source-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.charge-form-modal .charge-source-action-row > button,
.charge-form-modal .charge-source-action-row > .primary-button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.charge-form-modal .charge-source-footer .charge-source-action-row > button:not(.primary-button) {
  width: 87.5546875px;
  min-width: 87.5546875px;
  height: 36px;
  min-height: 36px;
}

.charge-form-modal .dentalome-charge-form .charge-source-action-row > button:not(.primary-button) {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.charge-form-modal .dentalome-charge-form .charge-source-action-row > .primary-button {
  border: 0;
  color: oklch(0.97 0.014 254.604);
  font-weight: 500;
  box-shadow: none;
}

.patient-form-modal .modal-actions .patient-history-button {
  width: 209px;
  min-width: 209px;
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(60, 121, 212, .2) !important;
  border-radius: 8.4px;
  background: rgba(60, 121, 212, .1) !important;
  color: #025ce2 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.patient-form-modal .modal-actions > button:not(.patient-history-button),
.patient-form-modal .modal-actions > .primary-button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-form-modal .modal-actions > button:not(.primary-button, .patient-history-button) {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.patient-form-modal .modal-actions > .primary-button {
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
}

.document-source-dialog-modal {
  width: min(896px, calc(100vw - 48px));
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 24px 16px;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.document-source-dialog-modal .modal-head {
  margin: -4px -24px 18px;
  padding: 0 24px 16px;
  border-bottom: 1px solid #eef0f3;
}

.document-source-dialog-modal .modal-head h2 {
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.document-source-dialog-form {
  display: grid;
  gap: 20px;
}

.document-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.document-source-grid .wide {
  grid-column: 1 / -1;
}

.document-source-dialog-form label,
.document-source-field {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.document-source-dialog-form .field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.document-source-dialog-form .field-label svg {
  color: #6b7280;
}

.document-source-dialog-form input {
  min-height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.document-source-dialog-form input:focus {
  border-color: #0b66e4;
  outline: none;
  box-shadow: 0 0 0 1px #0b66e4;
}

.patient-certificate-source-modal {
  width: min(672px, calc(100vw - 48px));
}

.patient-letter-source-modal {
  width: min(768px, calc(100vw - 48px));
}

.ordonnance-source-dialog-modal {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(600px, calc(100vw - 48px));
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.ordonnance-source-dialog-modal:has(.ordonnance-source-table) {
  height: 386px;
}

.ordonnance-source-form {
  display: block;
}

.ordonnance-source-date-field {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}

.document-source-dialog-form .ordonnance-source-date-field > label {
  display: block;
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.ordonnance-source-medications {
  display: grid;
  gap: 0;
}

.ordonnance-source-section-label {
  display: block;
  height: 19.25px;
  margin: 0 0 8px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.ordonnance-source-table-wrap {
  margin-top: 8px;
  max-height: 300px;
  overflow: auto;
}

.ordonnance-source-table {
  min-width: 0;
  table-layout: fixed;
}

.ordonnance-source-table th:first-child,
.ordonnance-source-table td:first-child {
  width: 33.333%;
  max-width: 200px;
}

.ordonnance-source-table th:nth-child(2),
.ordonnance-source-table td:nth-child(2) {
  width: calc(66.667% - 50px);
}

.ordonnance-source-table th:last-child,
.ordonnance-source-table td:last-child {
  width: 50px;
  text-align: center;
}

.ordonnance-source-table input {
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 4px 12px;
  font-weight: 400;
}

.ordonnance-source-medication-name {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: oklch(0.141 0.005 285.823);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ordonnance-source-remove {
  margin: 0 auto;
  color: #ef2027;
}

.patient-letter-content textarea {
  min-height: 200px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 12px;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.patient-letter-content textarea:focus {
  border-color: #0b66e4;
  outline: none;
  box-shadow: 0 0 0 1px #0b66e4;
}

.patient-letter-content .simple-editor-wrapper {
  min-height: 340px;
  max-height: 340px;
  border-radius: 14px;
  box-shadow: none;
}

.patient-letter-content .simple-editor-content {
  min-height: 294px;
}

.patient-letter-content .simple-editor {
  min-height: 294px;
  padding: 14px 20px 20px;
  color: #17191d;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
}

.patient-letter-content .tiptap-toolbar {
  min-height: 44px;
  padding: 5px 68px;
}

.patient-letter-content .tiptap-button {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.patient-certificate-duration-summary {
  justify-content: space-between;
}

.document-source-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
}

.document-source-summary strong,
.document-source-summary .document-source-summary-value {
  color: #111827;
  font-size: 20px;
  font-weight: 800;
}

.document-source-summary-card {
  flex-wrap: wrap;
  gap: 12px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
}

.document-source-summary-card-inner {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 18px;
}

.document-source-summary-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.document-source-summary-item-value {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.document-source-summary-separator {
  display: none;
}

.document-source-summary-card .document-source-total {
  color: #16a34a;
  font-size: 18px;
}

.document-source-table-wrap {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.document-source-table {
  width: 100%;
  border-collapse: collapse;
}

.document-source-table th,
.document-source-table td {
  border-bottom: 1px solid #eef0f3;
  padding: 12px 14px;
  color: #111827;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.document-source-table th {
  background: #f9fafb;
  color: #374151;
  font-weight: 800;
}

.document-source-table td:nth-child(2),
.document-source-table td:nth-child(3) {
  max-width: 220px;
  overflow-wrap: anywhere;
}

.document-source-table tr:last-child td {
  border-bottom: 0;
}

.document-source-table.ordonnance-source-table th,
.document-source-table.ordonnance-source-table td {
  padding: 8px;
  font-weight: 500;
}

.document-source-table.ordonnance-source-table th {
  background: #fff;
  color: oklch(0.141 0.005 285.823);
}

.document-source-multiselect-trigger {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  cursor: pointer;
}

.document-source-multiselect-trigger.placeholder {
  color: #6b7280;
}

.document-source-multiselect-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-source-checkbox-list {
  position: absolute;
  z-index: 95;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 8px;
}

.document-source-field {
  position: relative;
  z-index: 6;
}

.document-source-field:focus-within {
  z-index: 9;
}

.document-source-checkbox-option {
  display: flex;
  min-height: 36px;
  align-items: center;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
}

.document-source-checkbox-option:hover {
  background: #f4f4f5;
}

.document-source-checkbox-option input {
  min-height: 16px;
  width: 16px;
  height: 16px;
  padding: 0;
  box-shadow: none;
}

.document-source-dialog-modal .modal-actions {
  align-items: center;
  margin: 4px -24px -16px;
  padding: 16px 24px;
  border-top: 1px solid #eef0f3;
}

.document-source-dialog-modal .primary-button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: #075fe5;
  color: #fff;
  padding: 0 17px;
}

.modal-actions button:not(.primary-button) {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 0 16px;
  min-height: 42px;
  font-weight: 800;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-head {
  width: 550px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-head h2 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-head .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  min-height: 0;
  border: 0;
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  opacity: .7;
  box-shadow: none;
  display: block;
  gap: normal;
  font-weight: 400;
  line-height: 24px;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-head .modal-close-button:hover {
  opacity: 1;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-head .modal-close-button:focus-visible {
  opacity: .7;
  outline: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #025ce2;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-head .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.ordonnance-source-date-field .dentalome-date-input > button,
.ordonnance-source-medications .combobox-trigger {
  width: 100%;
  height: 36px;
  min-height: 36px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  padding: 8px 12px;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.ordonnance-source-date-field .dentalome-date-input > button {
  justify-content: flex-start;
  gap: 8px;
  font-weight: 400;
}

.ordonnance-source-date-field .dentalome-date-input > button svg {
  order: -1;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  color: currentColor;
  opacity: 1;
}

.ordonnance-source-date-field .dentalome-date-input > button:focus-visible {
  border-color: #025ce2;
  outline: 0;
  box-shadow: 0 0 0 3px oklab(0.519343 -0.0356103 -0.213735 / .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.ordonnance-source-medications .combobox-trigger {
  justify-content: space-between;
  gap: 8px;
  font-weight: 500;
  text-align: center;
}

.ordonnance-source-medications .combobox-trigger.placeholder {
  color: oklch(0.141 0.005 285.823);
}

.ordonnance-source-medications .combobox-trigger svg {
  width: 16px;
  height: 16px;
  color: oklch(0.141 0.005 285.823);
  opacity: .5;
}

.ordonnance-source-medications .act-catalog-menu.appointment-source-combobox-menu {
  width: 100%;
}

.ordonnance-source-medications .appointment-source-combobox-options {
  padding: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.ordonnance-source-medications .act-catalog-menu.appointment-source-combobox-menu .combobox-option-row {
  width: calc(100% - 8px);
  margin-left: 4px;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  border-radius: 6.4px;
}

.ordonnance-source-medications .act-catalog-menu.appointment-source-combobox-menu .combobox-option-row:first-child {
  margin-top: 4px;
}

.ordonnance-source-medications .act-catalog-menu.appointment-source-combobox-menu .combobox-option-row svg {
  display: block;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-actions {
  display: flex;
  height: 45px;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  margin: 16px -24px 0;
  padding: 8px 24px 0;
  border-top: 1px solid oklch(0.92 0.004 286.32);
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-actions > button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-actions > button:not(.primary-button) {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-actions > .primary-button {
  border: 0;
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
  box-shadow: none;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table input {
  display: block;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
  line-height: 20px;
  box-shadow: none;
  text-indent: 0;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table input:not(:focus) {
  text-indent: 5px;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table input:focus {
  border-color: #025ce2;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5);
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table td:nth-child(2) input {
  width: 100%;
  transform: none;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table td:nth-child(2) {
  padding-top: 7.5px;
  padding-left: 8.5px;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-remove {
  transform: translate(-1px, 1.5px);
  color: oklch(0.577 0.245 27.325);
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table-wrap {
  border-color: oklch(0.92 0.004 286.32);
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table th,
.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table td {
  border-bottom: 0;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table thead tr {
  position: relative;
  top: -1px;
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table th:nth-child(2) {
  padding-left: 9px;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .ordonnance-source-table td:first-child {
  vertical-align: middle;
}

.delete-confirm-modal {
  width: min(520px, calc(100vw - 48px));
  border: 1px solid rgba(220, 38, 38, 0.45);
  box-shadow: 0 24px 70px rgba(127, 29, 29, 0.18);
}

.delete-confirm-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.delete-confirm-heading h2 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.25;
}

.delete-confirm-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

.delete-confirm-modal p {
  margin: 14px 0 20px;
  color: #667085;
  line-height: 1.55;
  text-align: left;
}

.dentalome-delete-alert-modal {
  width: min(512px, calc(100vw - 48px));
  display: grid;
  gap: 16px;
  padding: 24px;
  border-color: rgba(220, 38, 38, 0.5);
  border-radius: 10.4px;
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.15), 0 4px 6px -4px rgba(220, 38, 38, 0.15);
}

.dentalome-delete-alert-body {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 16px;
}

.payment-delete-alert-modal .delete-confirm-heading {
  align-items: flex-start;
  gap: 12px;
}

.dentalome-delete-alert-modal .delete-confirm-heading h2 {
  margin: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.dentalome-delete-alert-modal .delete-confirm-icon {
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.1);
}

.dentalome-delete-alert-modal p {
  margin: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  line-height: 20px;
}

.document-delete-alert-date {
  font-weight: 600;
}

.appointment-cancel-alert-modal {
  width: min(512px, calc(100vw - 48px));
  min-height: 194px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(220, 38, 38, .5);
  border-radius: 10.4px;
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, .15), 0 4px 6px -4px rgba(220, 38, 38, .15);
}

.appointment-cancel-alert-modal .modal-head {
  height: 36px;
  min-height: 36px;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 16px;
}

.appointment-cancel-alert-modal .modal-head h2 {
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  text-align: left;
}

.appointment-cancel-alert-icon {
  display: flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 38, 38, .3);
  border-radius: 999px;
  background: rgba(220, 38, 38, .1);
  color: oklch(0.577 0.245 27.325);
}

.appointment-cancel-alert-modal > p {
  min-height: 40px;
  margin: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.appointment-cancel-alert-modal .modal-actions {
  width: 100%;
  height: 36px;
  gap: 8px;
  margin-top: 16px;
}

.appointment-cancel-alert-modal .modal-actions button,
.appointment-cancel-alert-modal .modal-actions button:not(.primary-button),
.appointment-cancel-alert-modal .modal-actions button.danger-button {
  width: auto;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.appointment-cancel-alert-modal .modal-actions button:not(.primary-button):not(.danger-button) {
  border-color: oklch(0.92 0.004 286.32);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.appointment-cancel-alert-modal .modal-actions button.danger-button {
  border: 0;
  background: oklch(0.577 0.245 27.325);
  color: #fff;
  box-shadow: none;
}

.dentalome-delete-alert-modal .modal-actions {
  width: 100%;
  height: 36px;
  gap: 8px;
  margin-top: 0;
}

/* Correction choices must remain reachable on narrow screens and at zoom. */
.operation-delete-confirm-modal.dentalome-delete-alert-modal .modal-actions {
  height: auto;
  min-height: 36px;
  flex-wrap: wrap;
}

.operation-delete-confirm-modal .payment-submit-error {
  color: #a51d2d;
  overflow-wrap: anywhere;
}

.patient-archive-alert-modal {
  border-color: oklch(0.577 0.245 27.325 / 50%);
  background: oklch(1 0 0);
}

.patient-archive-alert-modal .modal-actions button,
.patient-archive-alert-modal .modal-actions button:not(.primary-button),
.patient-archive-alert-modal .modal-actions button.danger-button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-archive-alert-modal .modal-actions button:not(.danger-button) {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.patient-archive-alert-modal .modal-actions button.danger-button {
  border: 0 solid oklch(0.92 0.004 286.32);
  background: oklch(0.577 0.245 27.325);
  color: #fff;
  box-shadow: none;
}

.document-delete-plain-modal {
  width: min(512px, calc(100vw - 48px));
  display: block;
  padding: 24px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.document-delete-plain-body {
  width: 100%;
}

.document-delete-plain-modal .delete-confirm-heading {
  display: block;
}

.document-delete-plain-modal .delete-confirm-heading h2 {
  width: 100%;
  margin: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  text-align: left;
}

.document-delete-plain-modal p {
  margin: 8px 0 16px;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.document-delete-plain-modal .modal-actions {
  width: 100%;
  height: 36px;
  gap: 8px;
  margin: 0;
}

.document-delete-plain-modal .modal-actions button,
.document-delete-plain-modal .modal-actions button:not(.primary-button),
.document-delete-plain-modal .modal-actions button.danger-button {
  display: inline-flex;
  width: auto;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.document-delete-plain-modal .modal-actions button:not(.danger-button) {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.document-delete-plain-modal .modal-actions button:not(.danger-button):focus-visible {
  border-color: #025ce2;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.document-delete-plain-modal .modal-actions button.danger-button {
  border: 0;
  background: oklch(0.577 0.245 27.325);
  color: #fff;
  box-shadow: none;
}

.operation-delete-confirm-modal .modal-actions button,
.operation-delete-confirm-modal .modal-actions button:not(.primary-button),
.operation-delete-confirm-modal .modal-actions button.danger-button,
.payment-delete-alert-modal .modal-actions button,
.payment-delete-alert-modal .modal-actions button:not(.primary-button),
.payment-delete-alert-modal .modal-actions button.danger-button,
.notes-delete-alert-modal .modal-actions button,
.notes-delete-alert-modal .modal-actions button:not(.primary-button),
.notes-delete-alert-modal .modal-actions button.danger-button,
.patient-image-delete-alert-modal .modal-actions button,
.patient-image-delete-alert-modal .modal-actions button:not(.primary-button),
.patient-image-delete-alert-modal .modal-actions button.danger-button {
  display: inline-flex;
  width: auto;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.operation-delete-confirm-modal .modal-actions button:not(.danger-button):focus-visible {
  border-color: #025ce2;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-delete-confirm-modal .modal-actions button.danger-button {
  border: 0;
  background: oklch(0.577 0.245 27.325);
  color: #fff;
  box-shadow: none;
}

.payment-delete-alert-modal .modal-actions button:not(.primary-button) {
  border-color: oklch(0.92 0.004 286.32);
  color: oklch(0.141 0.005 285.823);
  outline: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.notes-delete-alert-modal .modal-actions button:not(.primary-button):focus-visible,
.patient-image-delete-alert-modal .modal-actions button:not(.primary-button):focus-visible {
  border-color: #025ce2;
  color: oklch(0.141 0.005 285.823);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.payment-delete-alert-modal .modal-actions button.danger-button,
.patient-image-delete-alert-modal .modal-actions button.danger-button {
  border: 0;
  background: oklch(0.577 0.245 27.325);
  color: #fff;
  box-shadow: none;
}

.catalog-medication-delete-modal {
  display: grid;
  width: min(512px, calc(100vw - 32px));
  gap: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: oklch(1 0 0);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  padding: 24px;
}

.catalog-medication-delete-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.catalog-medication-delete-header h2 {
  margin: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.catalog-medication-delete-modal p {
  margin: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.catalog-medication-delete-name {
  color: #111827;
  font-weight: 600;
}

.catalog-medication-delete-actions {
  flex-direction: column-reverse;
  gap: 8px;
  align-items: stretch;
  justify-content: flex-start;
  margin-top: 0;
}

.catalog-medication-delete-modal .catalog-medication-delete-actions button {
  display: inline-flex;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 8px 16px;
  color: oklch(0.141 0.005 285.823);
  background: oklch(1 0 0);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.catalog-medication-delete-modal .catalog-medication-delete-actions button.catalog-medication-delete-action {
  height: 36px;
  min-height: 36px;
  gap: 8px;
  border: 0;
  border-radius: 8.4px;
  padding: 8px 16px;
  background: oklch(0.577 0.245 27.325);
  color: #fff;
  font-weight: 500;
  box-shadow: none;
}

@media (min-width: 640px) {
  .catalog-medication-delete-header {
    text-align: left;
  }

  .catalog-medication-delete-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
}

.modal-actions button.danger-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: #dc2626;
  color: #fff;
  padding: 0 16px;
  font-weight: 900;
}

.modal-actions button.danger-button:disabled {
  opacity: 0.7;
}

.charge-delete-confirm-modal,
.prothese-delete-confirm-modal {
  width: min(512px, calc(100vw - 48px));
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.charge-delete-confirm-modal .delete-confirm-heading h2,
.prothese-delete-confirm-modal .delete-confirm-heading h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.charge-delete-confirm-modal p,
.prothese-delete-confirm-modal p {
  color: #6b7280;
  font-size: 14px;
}

.charge-delete-confirm-modal {
  display: grid;
  width: min(512px, calc(100vw - 32px));
  gap: 16px;
  padding: 24px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.charge-delete-confirm-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.charge-delete-confirm-modal .charge-delete-confirm-header h2 {
  margin: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.charge-delete-confirm-modal .charge-delete-confirm-header p {
  margin: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.charge-delete-confirm-modal .modal-actions {
  width: 100%;
  height: 36px;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.charge-delete-confirm-modal .modal-actions button,
.charge-delete-confirm-modal .modal-actions button:not(.primary-button),
.charge-delete-confirm-modal .modal-actions button.danger-button {
  display: inline-flex;
  width: auto;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.charge-delete-confirm-modal .modal-actions button:not(.danger-button) {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.charge-delete-confirm-modal .modal-actions button.danger-button {
  border: 0;
  background: oklch(0.577 0.245 27.325);
  color: #fff;
  box-shadow: none;
}

.font-semibold {
  font-weight: 700;
}

.medical-history-modal {
  position: relative;
  width: min(1024px, calc(100vw - 48px));
  max-height: none;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e4e4e7;
  border-radius: 10.4px;
  background: #f8fafc;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.medical-history-modal .modal-head {
  box-sizing: border-box;
  display: block;
  height: 101px;
  margin: 0;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.medical-history-modal .modal-head-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.medical-history-modal .modal-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: #111827;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
}

.medical-history-modal .modal-head h2 svg {
  color: #319b95;
}

.medical-history-modal .modal-head-subtitle {
  margin: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.medical-history-modal > .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  border: 0;
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: #09090b;
  opacity: .7;
}

.medical-history-form {
  display: block;
  background: #f8fafc;
}

.medical-history-scroll {
  max-height: min(70vh, calc(100vh - 190px));
  overflow-y: auto;
  padding: 16px 24px 24px;
}

.medical-history-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.medical-history-source-wide {
  grid-column: 1 / -1;
}

.medical-history-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.medical-history-intro-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: #0b63e5;
}

.medical-history-intro h3,
.medical-important-panel h4,
.medical-section-head h4 {
  margin: 0;
  color: #111827;
  letter-spacing: 0;
}

.medical-history-intro h3 {
  font-size: 16px;
  font-weight: 850;
}

.medical-history-intro p,
.medical-important-panel p,
.medical-section-head p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.medical-important-panel,
.medical-history-section {
  box-sizing: border-box;
  border: 1px solid rgba(226, 232, 240, .7);
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.medical-important-panel {
  display: block;
  margin-bottom: 24px;
  padding: 12px 16px;
  border-color: #ffe4e6;
  background: #fff1f2;
}

.medical-alert-copy,
.medical-section-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.medical-alert-copy svg {
  margin-top: 2px;
  color: #e11d48;
}

.medical-section-head svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: #0f766e;
}

.medical-alert-copy {
  gap: 12px;
}

.medical-alert-copy .medical-alert-title {
  margin: 0 0 4px;
  color: #881337;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.medical-alert-copy p:not(.medical-alert-title) {
  margin: 0;
  color: rgba(136, 19, 55, .8);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.medical-important-panel > .medical-textarea-field {
  margin-top: 12px;
}

.medical-history-section {
  align-self: start;
}

.medical-section-head .medical-section-title {
  margin: 0;
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.treatment-plan-tabs {
  color: oklch(0.552 0.016 285.938);
}

@media (min-width: 901px) {
  .patient-rdv-card .patient-rdv-table th:nth-child(1),
  .patient-rdv-card .patient-rdv-table td:nth-child(1) { width: 19.263357401%; }
  .patient-rdv-card .patient-rdv-table th:nth-child(2),
  .patient-rdv-card .patient-rdv-table td:nth-child(2) { width: 20.660830325%; }
  .patient-rdv-card .patient-rdv-table th:nth-child(3),
  .patient-rdv-card .patient-rdv-table td:nth-child(3) { width: 27.402978339%; }
  .patient-rdv-card .patient-rdv-table th:nth-child(4),
  .patient-rdv-card .patient-rdv-table td:nth-child(4) { width: 15.024277978%; }
  .patient-rdv-card .patient-rdv-table th:nth-child(5),
  .patient-rdv-card .patient-rdv-table td:nth-child(5) { width: 17.648646209%; }

  .patient-rdv-card .dentalome-pagination button:disabled {
    gap: 8px;
    color: oklch(0.141 0.005 285.823);
    opacity: .5;
  }
}

.medical-section-head p:not(.medical-section-title) {
  margin: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.medical-section-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.medical-question-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.medical-question-row p {
  margin: 0;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.medical-question-row span {
  display: block;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 16px;
}

.medical-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.medical-choice-row button {
  height: 36px;
  min-height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.medical-choice-row button.active {
  border-color: #0d9488;
  background: #0d9488;
  color: #fff;
}

.medical-yes-no {
  flex: 0 0 auto;
  gap: 8px;
}

.medical-dependent-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.medical-lifestyle-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
}

.medical-flag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.medical-checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.medical-checkbox-line button {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 2px 0 0;
  border: 1px solid #cbd5e1;
  border-radius: 8.4px;
  padding: 0;
  background: transparent;
  color: #fff;
}

.medical-checkbox-line button[data-state="checked"] {
  border-color: #18181b;
  background: #18181b;
}

.medical-checkbox-line span {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.medical-textarea-field {
  display: block;
}

.medical-textarea-field span {
  display: block;
  margin: 0 0 4px;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.medical-textarea-field textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 80px;
  min-height: 80px;
  resize: none;
  border: 1px solid #e2e8f0;
  border-radius: 14.4px;
  background: rgba(248, 250, 252, .7);
  color: #111827;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.medical-textarea-field textarea:focus {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px rgb(2 92 226 / 50%), 0 1px 3px rgba(16, 24, 40, 0.08);
}

.medical-textarea-field small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 16px;
  text-align: right;
}

.medical-history-actions {
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.patient-form-modal .medical-history-modal .medical-history-actions {
  box-sizing: border-box;
  width: 100%;
  height: 69px;
  gap: 12px;
  margin: 0;
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
}

.medical-history-actions button {
  height: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-form-modal .medical-history-modal .medical-history-actions > button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border: 0;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.medical-history-actions .primary-button,
.archive-confirm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.archive-confirm-modal {
  border-color: rgba(234, 88, 12, 0.45);
  box-shadow: 0 24px 70px rgba(154, 52, 18, 0.18);
}

.archive-confirm-icon {
  border-color: rgba(234, 88, 12, 0.35);
  background: #fff7ed;
  color: #ea580c;
}

.modal-actions button.archive-confirm-button {
  background: #ea580c;
}

.center-screen,
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f7fafc, #e6eff8);
}

.center-screen {
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
}

.spin {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.login-panel {
  width: 420px;
  display: grid;
  gap: 16px;
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(37, 70, 111, 0.2);
}

.login-panel h1,
.login-panel p {
  margin: 0;
}

.login-panel p {
  color: var(--muted);
}

.login-panel label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.form-error {
  padding: 10px 12px;
  background: #fff0f0;
  color: var(--red);
  border-radius: 6px;
  font-weight: 800;
}

.floating-button {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  border: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.offline-ribbon {
  position: fixed;
  left: 96px;
  bottom: 18px;
  z-index: 70;
  background: #111827;
  color: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 800;
}

/* Dentalome-parity patient detail shell */
.patient-workspace {
  padding: 26px 34px 48px;
  background: #f5f7fa;
}

.patient-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px 24px;
  min-height: 148px;
  margin: 0 0 22px;
  padding: 18px 22px 0;
  border-radius: 18px;
  border: 1px solid #e1e6ee;
  background: #fff;
  box-shadow: 0 7px 22px rgba(33, 43, 54, 0.08);
}

.patient-profile-main {
  display: flex;
  min-width: 0;
  gap: 18px;
  align-items: center;
}

.patient-initials-tile {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #315d91;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.08);
}

.patient-profile-text {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.patient-profile-text p {
  margin: 0;
  color: #667085;
  font-size: 15px;
  font-weight: 800;
}

.patient-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.patient-title h1 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.patient-alert-icon {
  color: #68717c;
  flex: 0 0 auto;
}

.patient-contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.patient-contact-line svg {
  color: #315d91;
  flex: 0 0 auto;
}

.patient-profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
}

.patient-action-button,
.patient-more-button {
  min-height: 38px;
  border-radius: 9px;
  border: 1px solid #dce3ec;
  background: #fff;
  color: #252a31;
  font-size: 14px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.patient-action-button.archive {
  color: #5f6b7a;
}

.patient-more-button {
  width: 40px;
  padding: 0;
}

.patient-warning {
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  margin: -4px 0 2px 100px;
  color: #855f12;
  font-weight: 800;
}

.patient-profile-tabs {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  gap: 2px;
  min-height: 46px;
  border-top: 1px solid #edf1f5;
  overflow-x: auto;
  scrollbar-width: thin;
}

.patient-profile-tabs button {
  height: 46px;
  flex: 0 0 auto;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #4f5865;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.patient-profile-tabs button.active {
  color: #347cf6;
  border-bottom-color: #347cf6;
  background: #fff;
}

.financial-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  white-space: nowrap;
}

.metric {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 22px;
  font-weight: 900;
}

.metric span::after {
  content: " :";
}

.metric strong,
.metric b {
  font-size: 22px;
  line-height: 1;
}

.patient-treatment-card {
  min-height: 640px;
  margin: 0;
  padding: 18px 18px 26px;
  border-radius: 18px;
  border: 1px solid #e1e6ee;
  background: #fff;
  box-shadow: 0 7px 22px rgba(33, 43, 54, 0.08);
}

.treatment-card-top {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: start;
  gap: 20px;
  margin-bottom: 22px;
}

.treatment-tabs {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 40px;
  padding: 3px;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: #f7f9fc;
  overflow-x: auto;
}

.treatment-tabs button {
  min-height: 32px;
  min-width: 94px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5a606b;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.treatment-tabs button.active {
  color: #347cf6;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.08);
}

.treatment-financials {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 28px;
  white-space: nowrap;
}

.treatment-financials .metric {
  display: grid;
  gap: 4px;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  color: #798397;
  letter-spacing: 0.04em;
}

.treatment-financials .metric span::after {
  content: "";
}

.treatment-financials .metric strong,
.treatment-financials .metric b {
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
}

.patient-workspace {
  padding: 26px 30px 48px;
  background: #f7f8fb;
}

.patient-header.dentalome-patient-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 34px;
  min-height: 64px;
  margin: 0 0 14px;
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid #e7eaf0;
  background: #fff;
  box-shadow: 0 4px 18px rgba(33, 43, 54, 0.08);
}

.dentalome-patient-header .patient-title {
  gap: 18px;
}

.dentalome-patient-header .patient-title h1 {
  font-size: 25px;
  line-height: 1.15;
}

.patient-edit-icon {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #20252c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.patient-header-financials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 42px;
  white-space: nowrap;
}

.patient-header-financials .metric {
  color: #20252c;
  font-size: 22px;
  font-weight: 900;
}

.patient-header-financials .metric strong,
.patient-header-financials .metric b {
  font-size: 22px;
  line-height: 1.05;
}

.dentalome-patient-header .patient-warning {
  margin: 0;
}

.patient-treatment-card {
  padding: 0 14px 26px;
  border-radius: 10px;
  border-color: #e7eaf0;
  box-shadow: 0 4px 18px rgba(33, 43, 54, 0.08);
}

.treatment-card-top {
  grid-template-columns: minmax(320px, 1fr);
  margin-bottom: 22px;
  border-bottom: 1px solid #dfe5ee;
}

.treatment-tabs {
  min-height: 58px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.treatment-tabs button {
  min-height: 58px;
  min-width: 112px;
  padding: 0 20px;
  border-radius: 0;
  border-bottom: 4px solid transparent;
  color: #454b54;
  font-size: 18px;
}

.treatment-tabs button.active {
  color: #1677ff;
  border-bottom-color: #1677ff;
  background: #fff;
  box-shadow: none;
}

.patient-treatment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.odontogram-column {
  min-width: 0;
}

.odontogram-panel.dentalome-odontogram-card {
  position: relative;
  min-height: 510px;
  padding: 28px clamp(20px, 2.1vw, 42px) 28px;
  border-radius: 20px;
  border: 0;
  background: #fff;
  box-shadow: 0 0 9px -2px #ccc;
  overflow: visible;
}

.odontogram-control-row {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  color: #667085;
  font-size: 14px;
  font-weight: 800;
}

.odontogram-control-row.bottom {
  justify-content: flex-start;
  margin-top: 10px;
}

.inline-control {
  gap: 10px;
  color: #667085;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.inline-control span {
  width: 58px;
  height: 31px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #d1d1d1;
}

.inline-control span::after {
  top: 5px;
  left: 6px;
  width: 21px;
  height: 21px;
}

.inline-control input:checked + span::after {
  transform: translateX(25px);
}

.act-status-card {
  min-height: 560px;
  padding: 29px 44px 34px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow: 0 3px 17px rgba(33, 43, 54, 0.12);
}

.add-act-button {
  min-height: 48px;
  width: 100%;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 900;
}

.act-status-divider {
  height: 1px;
  margin: 27px 0 18px;
  background: var(--line);
}

.act-status-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  font-size: 21px;
  font-weight: 900;
}

.act-status-empty {
  min-height: 255px;
  display: grid;
  place-content: center;
  gap: 8px;
  color: #667085;
  text-align: center;
  line-height: 1.35;
}

.act-status-empty strong {
  color: #1f2937;
  font-size: 17px;
}

.act-status-empty span {
  max-width: 210px;
  font-size: 14px;
}

.act-status-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  max-height: 264px;
  overflow-y: auto;
  padding-right: 2px;
}

.act-status-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 18px;
  font-weight: 600;
}

.act-status-list button span {
  overflow: hidden;
  line-height: 1.25;
}

.act-status-list button strong {
  min-width: 108px;
  padding: 9px 18px;
  border-radius: 22px;
  background: #6ea1f6;
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
}

.act-status-list button.active span {
  color: #111827;
  font-weight: 900;
}

.patient-document-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 22px 12px 18px;
}

.patient-document-actions button {
  min-width: 136px;
  min-height: 43px;
  padding: 7px 13px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  text-align: left;
  font-size: 18px;
  font-weight: 900;
}

.patient-document-actions button:last-child {
  min-width: 166px;
}

.patient-document-actions strong {
  display: inline;
  margin-left: 5px;
  margin-top: 0;
}

.odontogram {
  width: 100%;
  min-width: 0;
  max-width: 1040px;
  margin: 6px auto 0;
  padding: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.odontogram-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: clamp(8px, 1.1vw, 20px);
  align-items: center;
  min-width: 0;
  width: 100%;
}

.tooth-group {
  display: grid;
  grid-template-columns: repeat(8, minmax(34px, 1fr));
  gap: clamp(6px, 0.75vw, 14px);
  align-items: center;
  min-width: 0;
}

.odontogram.child .tooth-group {
  grid-template-columns: repeat(5, minmax(34px, 1fr));
}

.tooth.dentalome-tooth {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 174px;
  display: grid;
  grid-template-rows: minmax(142px, 1fr) 24px;
  gap: 5px;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: #212529;
  cursor: pointer;
  font-family: inherit;
}

.tooth.dentalome-tooth.lower {
  min-height: 174px;
  grid-template-rows: 24px minmax(142px, 1fr);
  align-content: start;
}

.tooth-art {
  width: clamp(38px, 3.2vw, 61px);
  height: 142px;
  min-height: 142px;
  display: grid;
  place-items: center;
  padding: 2px 4px;
  border-radius: 14px;
  transition: background 120ms ease, box-shadow 120ms ease, filter 120ms ease;
  user-select: none;
  pointer-events: none;
}

.tooth-svg {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.tooth-svg svg,
.tooth-svg span,
.tooth-svg span > svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

.tooth.dentalome-tooth.treated .tooth-svg svg .cls-2,
.tooth.dentalome-tooth.treated .tooth-svg svg .cls-3 {
  fill: #49d889;
}

.tooth.dentalome-tooth:hover .tooth-art {
  background: rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.15);
}

.tooth.dentalome-tooth.selected .tooth-art {
  background: rgba(0, 123, 255, 0.2);
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.15);
}

.tooth.dentalome-tooth.selected:hover .tooth-art {
  filter: brightness(0.98) saturate(1.15);
}

.tooth.dentalome-tooth.selected strong {
  color: #212529;
}

.tooth strong {
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.mouth-labels {
  display: none;
  margin: 0;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.mouth-labels strong {
  font-size: 13px;
  letter-spacing: 0.03em;
}

.mouth-labels span:last-child {
  text-align: right;
}

.odontogram-divider {
  height: 1px;
  margin: 0;
  background: #e5e7eb;
}

.odontogram-midline {
  width: 1px;
  min-height: 178px;
  background: transparent;
}

.patient-operations-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  background: #fff;
}

.patient-operations-table {
  width: 100%;
  min-width: 1160px;
  border-collapse: collapse;
}

.patient-operations-table th,
.patient-operations-table td {
  padding: 18px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 20px;
}

.patient-operations-table th {
  color: #343a42;
  font-size: 19px;
  font-weight: 900;
}

.patient-operations-table th:first-child,
.patient-operations-table td:first-child {
  width: 50px;
  text-align: center;
}

.patient-operations-table input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--green);
}

.operation-name {
  display: block;
  max-width: 470px;
  font-weight: 400;
}

.sessions-link {
  font-size: 20px;
}

.money-cell {
  font-weight: 900;
}

.dentalome-status {
  min-width: 150px;
  min-height: 42px;
  gap: 10px;
  border-radius: 24px;
  background: #6d9ff4;
  font-size: 20px;
}

.check-pill {
  min-width: 64px;
  min-height: 36px;
  font-size: 22px;
}

.dentalome-actions {
  gap: 16px;
}

.dentalome-actions .plain-icon.small {
  width: 34px;
  height: 34px;
  color: #171b21;
}

.dentalome-action-img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  display: block;
}

.simple-section {
  min-height: 620px;
  padding: 20px 14px 24px;
  border-radius: 9px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 3px 17px rgba(33, 43, 54, 0.1);
}

.simple-section .section-title-row {
  justify-content: flex-start;
  margin-bottom: 28px;
}

.simple-section .section-title-row h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.simple-section .primary-button.compact {
  display: none;
}

.simple-section .table-wrap {
  border-color: var(--line);
}

.simple-section th,
.simple-section td {
  padding: 16px 14px;
  font-size: 22px;
}

.simple-section th {
  font-size: 20px;
}

.simple-section.image-section .image-table th,
.simple-section.image-section .image-table td {
  height: 57px;
  padding: 9px 12px;
  font-size: 21px;
}

.simple-section.image-section .image-table th {
  font-size: 21px;
}

.mutuelle-patient-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mutuelle-title-row {
  align-items: flex-start;
}

.mutuelle-workflow-grid,
.mutuelle-admin-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.4fr);
  gap: 18px;
}

.mutuelle-coverage-panel,
.mutuelle-generation-panel,
.mutuelle-admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(33, 43, 54, 0.06);
}

.mutuelle-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.mutuelle-form-grid .wide,
.mutuelle-form-grid .mutuelle-panel-heading,
.mutuelle-form-grid .mutuelle-form-actions {
  grid-column: 1 / -1;
}

.mutuelle-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mutuelle-panel-heading strong {
  font-size: 18px;
  color: #111827;
}

.mutuelle-heading-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.mutuelle-generation-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr);
  gap: 12px;
}

.mutuelle-inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.mutuelle-inline-check input {
  width: auto;
}

.mutuelle-total-pill,
.mutuelle-admin-notice,
.mutuelle-message {
  border-radius: 7px;
  padding: 8px 11px;
  background: #eaf8f0;
  color: #17663a;
  font-weight: 800;
}

.mutuelle-warning,
.mutuelle-inline-warning,
.mutuelle-missing-panel {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  border-radius: 8px;
  border: 1px solid #f5c2c7;
  background: #fff5f5;
  color: #9f1239;
  padding: 10px 12px;
  font-weight: 700;
}

.mutuelle-appointment-sync {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  border-radius: 8px;
  border: 1px solid #dbe3ee;
  background: #f8fafc;
  color: #334155;
  padding: 9px 11px;
  font-size: 13px;
  font-weight: 800;
}

.mutuelle-appointment-sync.ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.mutuelle-appointment-sync.warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.mutuelle-inline-warning.wide {
  grid-column: 1 / -1;
}

.mutuelle-source-hints {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.mutuelle-source-hints span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mutuelle-source-hints small {
  color: #475569;
  font-weight: 700;
}

.mutuelle-readiness-panel {
  margin-top: 12px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #f8fafc;
  padding: 11px 12px;
  color: #334155;
}

.mutuelle-readiness-panel.ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
}

.mutuelle-quality-panel {
  margin: 18px 0;
}

.mutuelle-quality-summary {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}

.mutuelle-quality-summary span {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
}

.mutuelle-quality-summary strong {
  font-size: 20px;
  color: #0f172a;
}

.mutuelle-quality-summary small {
  color: #64748b;
  font-weight: 800;
}

.mutuelle-quality-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mutuelle-readiness-panel strong {
  display: block;
  margin-bottom: 7px;
  color: #111827;
}

.mutuelle-readiness-panel ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.mutuelle-readiness-panel li.done {
  color: #166534;
  font-weight: 800;
}

.mutuelle-guidance-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid #d7e5f8;
  border-radius: 8px;
  background: #f7fbff;
  color: #16325c;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.42;
}

.mutuelle-guidance-panel strong {
  display: block;
  margin-bottom: 5px;
  color: #111827;
  font-size: 13px;
}

.mutuelle-guidance-panel ul {
  margin: 0;
  padding-left: 18px;
}

.mutuelle-missing-panel {
  display: block;
}

.mutuelle-missing-panel ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.mutuelle-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.mutuelle-table-block h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.mutuelle-code-select,
.mutuelle-documents-table select,
.mutuelle-mapping-table-wrap input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 8px;
  background: #fff;
}

.mutuelle-code-cell {
  display: grid;
  gap: 6px;
  min-width: 320px;
}

.mutuelle-auto-code-card {
  display: grid;
  gap: 2px;
  min-height: 34px;
  border: 1px solid #dbeafe;
  border-radius: 7px;
  background: #f8fbff;
  color: #0f172a;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.25;
}

.mutuelle-auto-code-card strong {
  font-size: 13px;
  color: #175cd3;
}

.mutuelle-auto-code-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mutuelle-auto-code-card.non_remboursable,
.mutuelle-auto-code-card.source_missing {
  border-color: #fedf89;
  background: #fffbeb;
}

.mutuelle-auto-code-card.non_remboursable strong,
.mutuelle-auto-code-card.source_missing strong {
  color: #b54708;
}

.mutuelle-auto-code-card.unresolved {
  border-color: #fecdca;
  background: #fff7f5;
}

.mutuelle-auto-code-card.unresolved strong {
  color: #b42318;
}

.mutuelle-auto-code-card.muted {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.mutuelle-auto-code-card.muted strong {
  color: #64748b;
}

.mutuelle-code-override-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #475569;
  padding: 0;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.mutuelle-code-override-button:hover {
  color: var(--brand);
}

.mutuelle-code-warning {
  display: block;
  margin-top: 4px;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 800;
}

.mutuelle-code-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef6ff;
  color: #175cd3;
  font-size: 11px;
  font-weight: 800;
}

.mutuelle-code-status.non_remboursable,
.mutuelle-code-status.source_missing {
  background: #fffaeb;
  color: #b54708;
}

.mutuelle-code-status.unresolved {
  background: #fef3f2;
  color: #b42318;
}

.mutuelle-checklist-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: 5px 9px;
  font-weight: 900;
  cursor: pointer;
}

.mutuelle-checklist-toggle.ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.mutuelle-document-details-row td {
  position: sticky;
  left: 0;
  background: #f8fafc;
  padding: 0;
}

.mutuelle-document-details {
  display: grid;
  gap: 12px;
  border-top: 1px solid #dbe3ee;
  padding: 14px;
  min-width: min(720px, calc(100vw - 64px));
  max-width: calc(100vw - 64px);
}

.mutuelle-document-details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mutuelle-document-details-head strong,
.mutuelle-submission-notes label {
  display: block;
  color: #111827;
  font-weight: 900;
}

.mutuelle-document-details-head span,
.mutuelle-status-history {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.mutuelle-attachment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}

.mutuelle-attachment-list label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.mutuelle-attachment-list label.checked {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.mutuelle-attachment-list input {
  margin-top: 2px;
}

.mutuelle-submission-notes {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.mutuelle-submission-notes textarea {
  width: 100%;
  min-height: 72px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  resize: vertical;
  font: inherit;
}

.mutuelle-admin-workspace {
  gap: 18px;
}

.mutuelle-admin-panel .dentalome-table-wrap {
  max-height: 420px;
  overflow: auto;
}

.mutuelle-ngap-coverage-panel {
  grid-column: 1 / -1;
}

.mutuelle-ngap-coverage-panel .mutuelle-panel-heading p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
}

.mutuelle-upload-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(140px, 0.8fr) minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.mutuelle-upload-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  color: #374151;
}

.mutuelle-upload-form input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 9px;
}

.mutuelle-sheet-import-panel .mutuelle-panel-heading p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.mutuelle-sheet-import-form {
  display: grid;
  gap: 12px;
}

.mutuelle-sheet-file-row {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.mutuelle-sheet-file-row > span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.mutuelle-sheet-import-form label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 800;
}

.mutuelle-sheet-import-form textarea {
  min-height: 132px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.mutuelle-sheet-import-actions,
.mutuelle-sheet-import-result {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mutuelle-sheet-import-result {
  margin-top: 12px;
  border-radius: 8px;
  border: 1px solid #d7e5f8;
  background: #f7fbff;
  padding: 10px;
}

.mutuelle-sheet-import-result span {
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbe3ee;
  padding: 5px 9px;
  color: #16325c;
  font-size: 12px;
  font-weight: 900;
}

.mutuelle-sheet-import-result span.ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.mutuelle-sheet-import-result span.pending {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.mutuelle-sheet-import-review {
  display: grid;
  gap: 12px;
}

.mutuelle-sheet-review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #111827;
}

.mutuelle-sheet-review-heading span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.mutuelle-sheet-review-table {
  max-height: 420px;
  overflow: auto;
}

.mutuelle-sheet-review-table table {
  min-width: 1040px;
}

.mutuelle-sheet-review-table td strong,
.mutuelle-sheet-review-table td span {
  display: block;
}

.mutuelle-sheet-review-table td span {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.mutuelle-sheet-review-row.skip {
  background: #fff7ed;
}

.mutuelle-sheet-review-row.create,
.mutuelle-sheet-review-row.update,
.mutuelle-sheet-review-row.cin_only {
  background: #f8fffb;
}

.mutuelle-review-action {
  display: inline-flex !important;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dbe3ee;
  background: #fff;
  padding: 0 9px;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.mutuelle-review-action.create,
.mutuelle-review-action.update,
.mutuelle-review-action.cin_only {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534 !important;
}

.mutuelle-review-action.skip {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c !important;
}

.mutuelle-file-field input {
  padding-top: 8px;
}

.mutuelle-mapping-panel {
  margin: 18px 0;
}

.mutuelle-mapping-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 12px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.mutuelle-mapping-summary span {
  border: 1px solid #dbe7ee;
  border-radius: 999px;
  background: #fff;
  padding: 5px 9px;
}

.mutuelle-mapping-summary .warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.mutuelle-mapping-summary .ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.mutuelle-visual-mapping {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.mutuelle-visual-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.mutuelle-nudge-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid #dbe7ee;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.mutuelle-nudge-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mutuelle-nudge-toolbar input {
  width: 68px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 7px;
  font-weight: 800;
}

.mutuelle-nudge-buttons {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
}

.mutuelle-nudge-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #0f766e;
  font-weight: 900;
  cursor: pointer;
}

.mutuelle-nudge-buttons button:last-child {
  border-right: 0;
}

.mutuelle-nudge-buttons button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.mutuelle-page-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}

.mutuelle-page-switcher button {
  min-width: 38px;
  height: 36px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.mutuelle-page-switcher button:last-child {
  border-right: 0;
}

.mutuelle-page-switcher button.active {
  background: #0f766e;
  color: #fff;
}

.mutuelle-visual-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.mutuelle-visual-meta span {
  border: 1px solid #dbe7ee;
  border-radius: 999px;
  background: #fff;
  padding: 4px 8px;
}

.mutuelle-pdf-canvas {
  position: relative;
  width: min(100%, 1120px);
  max-height: 72vh;
  aspect-ratio: var(--mutuelle-pdf-ratio, 1.414 / 1);
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  overflow: hidden;
  background: #e5e7eb;
  justify-self: center;
}

.mutuelle-pdf-canvas iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  pointer-events: none;
}

.mutuelle-pdf-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.mutuelle-pdf-click-layer {
  position: absolute;
  inset: 0;
  cursor: crosshair;
}

.mutuelle-field-marker {
  position: absolute;
  min-height: 18px;
  transform: translateY(-50%);
  border: 1px solid rgba(15, 118, 110, 0.55);
  border-radius: 4px;
  background: rgba(15, 118, 110, 0.16);
  color: #064e3b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding: 2px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
}

.mutuelle-field-marker.active {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.18);
  color: #991b1b;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

.mutuelle-mapping-table-wrap table {
  min-width: 1220px;
}

.mutuelle-mapping-table-wrap th,
.mutuelle-mapping-table-wrap td {
  padding: 9px;
}

.mutuelle-mapping-table-wrap tr.selected td {
  background: #eff6ff;
}

.mutuelle-status-draft,
.mutuelle-status-outdated {
  background: #fff7ed;
  color: #9a3412;
}

.mutuelle-status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.mutuelle-status-reimbursed {
  background: #dcfce7;
  color: #166534;
}

@media (max-width: 1200px) {
  .mutuelle-workflow-grid,
  .mutuelle-admin-grid,
  .mutuelle-upload-form,
  .mutuelle-generation-controls,
  .mutuelle-visual-toolbar,
  .mutuelle-submission-notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1500px) {
  .patient-treatment-layout {
    grid-template-columns: minmax(700px, 1fr) 290px;
    gap: 24px;
  }

  .odontogram-panel.dentalome-odontogram-card,
  .act-status-card {
    min-height: 460px;
  }

  .odontogram-panel.dentalome-odontogram-card {
    padding: 22px 20px 26px;
  }

  .act-status-card {
    padding: 24px 30px 28px;
  }

  .tooth.dentalome-tooth {
    width: 100%;
    min-width: 0;
    min-height: 154px;
    grid-template-rows: minmax(125px, 1fr) 22px;
  }

  .tooth.dentalome-tooth.lower {
    min-height: 154px;
    grid-template-rows: 22px minmax(125px, 1fr);
  }

  .tooth-art {
    width: clamp(35px, 3vw, 52px);
    height: 125px;
    min-height: 125px;
  }

  .tooth strong {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

  .topbar {
    grid-template-columns: 1fr;
    height: auto;
    gap: 10px;
    padding: 10px;
  }

  .brand span,
  .user-zone span {
    display: none;
  }

  .global-search input {
    font-size: 16px;
  }

  .app-body {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .patient-side-nav {
    display: none;
  }

  .primary-nav {
    top: 126px;
    height: calc(100vh - 126px);
  }

  .primary-nav span {
    display: none;
  }

  .workspace {
    padding: 14px;
  }

  .workspace h1 {
    font-size: 28px;
  }

  .agenda-page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 18px;
  }

  .agenda-page-head select {
    width: 100%;
  }

  .agenda-practitioner-select {
    transform: none;
  }

  .agenda-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
  }

  .agenda-side {
    display: none;
    order: 4;
  }

  .agenda-card.mobile-side-open .agenda-side {
    display: grid;
    gap: 12px;
  }

  .agenda-side .add-appointment {
    width: max-content;
  }

  .agenda-side .mini-calendar {
    margin-top: 0;
  }

  .agenda-main-panel {
    order: 1;
  }

  .agenda-side .legend-row {
    margin-top: 0;
  }

  .agenda-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .agenda-toolbar h2 {
    order: initial;
    min-width: 0;
    text-align: center;
    font-size: 14px;
    white-space: nowrap;
  }

  .agenda-arrows {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: visible;
    padding-bottom: 0;
    gap: 6px;
  }

  .agenda-arrows .muted-button {
    font-size: 0;
    padding: 0 9px;
  }

  .agenda-arrows .muted-button::after {
    content: "Auj.";
    font-size: 13px;
  }

  .agenda-arrows .segmented button {
    min-width: 0;
    padding: 0 9px;
  }

  .agenda-arrows .segmented button:nth-child(2) {
    font-size: 0;
  }

  .agenda-arrows .segmented button:nth-child(2)::after {
    content: "Sem.";
    font-size: 13px;
  }

  .agenda-filter-menu {
    left: 50%;
    right: auto;
    width: min(318px, calc(100vw - 48px));
    transform: translateX(-50%);
  }

  .calendar-toggle {
    order: initial;
  }

  .calendar-scroll-viewport {
    width: 100%;
    height: min(650px, calc(100vh - 250px));
    min-height: 520px;
  }

  .week-grid,
  .day-agenda {
    min-width: 900px;
  }

  .patient-header,
  .patient-grid,
  .chart-grid,
  .kpi-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .fidelity-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .financial-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .week-grid {
    overflow-x: auto;
    grid-template-columns: 56px repeat(7, 170px);
  }

  .tooth-row {
    flex-wrap: wrap;
  }
}

.radiology-section {
  min-width: 0;
}

.radiology-title-row {
  align-items: flex-start;
  gap: 20px;
}

.radiology-title-row > div:first-child {
  min-width: 0;
}

.radiology-title-row h1 {
  margin: 0;
}

.radiology-title-row p {
  margin: 7px 0 0;
  color: #667085;
  line-height: 20px;
}

.radiology-filter {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid #dfe5ed;
  border-radius: 6px;
  background: #f6f8fb;
}

.radiology-filter button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  color: #475467;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.radiology-filter button.active {
  color: #075fe5;
  background: #fff;
  box-shadow: 0 1px 3px rgb(16 24 40 / 10%);
}

.radiology-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0;
  padding: 11px 12px;
  border: 1px solid #b7e4cc;
  border-radius: 6px;
  color: #087443;
  background: #effbf5;
  font-size: 13px;
}

.radiology-notice.error {
  border-color: #fecaca;
  color: #b42318;
  background: #fff5f5;
}

.radiology-notice span {
  min-width: 0;
  flex: 1;
}

.radiology-notice button {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.radiology-loading,
.radiology-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #667085;
  text-align: center;
}

.radiology-empty strong {
  color: #101828;
  font-size: 16px;
}

.radiology-empty span {
  max-width: 520px;
  line-height: 21px;
}

.radiology-study-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.radiology-study {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe5ed;
  border-radius: 6px;
  background: #fff;
}

.radiology-study-header,
.radiology-study-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.radiology-study-header {
  border-bottom: 1px solid #edf0f4;
}

.radiology-study-header > div:first-child {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.radiology-study-header > div:first-child > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.radiology-study-header strong {
  overflow: hidden;
  color: #101828;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radiology-study-header span:not(.radiology-modality):not(.radiology-match-state) {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radiology-modality {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #b9d2fa;
  border-radius: 4px;
  color: #075fe5;
  background: #edf4ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.radiology-modality.rvg {
  border-color: #b7e4cc;
  color: #087443;
  background: #effbf5;
}

.radiology-match-state {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: #087443;
  font-size: 12px;
  font-weight: 600;
}

.radiology-image-grid {
  display: grid;
  min-height: 250px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #dfe5ed;
}

.radiology-image-grid:has(.radiology-thumbnail:only-child) {
  grid-template-columns: 1fr;
}

.radiology-thumbnail {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 250px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #111820;
  cursor: zoom-in;
}

.radiology-thumbnail img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: contain;
}

.radiology-thumbnail span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  left: 9px;
  overflow: hidden;
  padding: 6px 8px;
  border-radius: 4px;
  color: #fff;
  background: rgb(16 24 40 / 82%);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radiology-no-preview {
  display: grid;
  min-height: 250px;
  grid-column: 1 / -1;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #98a2b3;
  background: #f8fafc;
}

.radiology-study-footer {
  min-height: 54px;
  border-top: 1px solid #edf0f4;
}

.radiology-study-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: #667085;
  font-size: 11px;
}

.radiology-study-meta span {
  white-space: nowrap;
}

.radiology-study-footer .row-actions {
  flex: 0 0 auto;
}

.radiology-assignment-row {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #dfe5ed;
  background: #f8fafc;
}

.radiology-assignment-row label {
  color: #475467;
  font-size: 12px;
  font-weight: 600;
}

.radiology-assignment-row input,
.radiology-review-action input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #cfd7e3;
  border-radius: 5px;
  color: #101828;
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.radiology-tooth-backdrop {
  z-index: 1350;
}

.radiology-tooth-dialog {
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
}

.radiology-tooth-dialog > header,
.radiology-tooth-dialog > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.radiology-tooth-dialog > header {
  border-bottom: 1px solid #e4e7ec;
}

.radiology-tooth-dialog > header > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radiology-tooth-dialog h2 {
  margin: 0;
  color: #101828;
  font-size: 17px;
}

.radiology-tooth-dialog header span:not(.radiology-tooth-icon) {
  color: #667085;
  font-size: 12px;
}

.radiology-tooth-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  color: #075fe5;
  background: #edf4ff;
}

.radiology-tooth-arches {
  display: grid;
  gap: 18px;
  padding: 22px 18px;
}

.radiology-tooth-arches section {
  min-width: 0;
  overflow-x: auto;
}

.radiology-tooth-arches section > span {
  display: block;
  margin-bottom: 8px;
  color: #475467;
  font-size: 12px;
  font-weight: 600;
}

.radiology-tooth-grid {
  display: grid;
  min-width: 704px;
  grid-template-columns: repeat(16, 40px);
  gap: 4px;
}

.radiology-tooth-grid button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #cfd7e3;
  border-radius: 4px;
  color: #344054;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.radiology-tooth-grid button:hover {
  border-color: #75aaf3;
  background: #f3f7ff;
}

.radiology-tooth-grid button.selected {
  border-color: #075fe5;
  color: #fff;
  background: #075fe5;
}

.radiology-tooth-dialog > footer {
  border-top: 1px solid #e4e7ec;
  background: #f8fafc;
}

.radiology-tooth-dialog > footer > span {
  color: #475467;
  font-size: 12px;
  font-weight: 600;
}

.radiology-tooth-dialog .modal-actions {
  margin: 0;
}

.radiology-review-queue {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #dfe5ed;
}

.radiology-review-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.radiology-review-heading h2 {
  margin: 0;
  color: #101828;
  font-size: 17px;
}

.radiology-review-heading p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 13px;
}

.radiology-review-heading > span {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #b54708;
  background: #fff4e5;
  font-size: 12px;
  font-weight: 700;
}

.radiology-review-table-shell {
  overflow: auto;
  border: 1px solid #dfe5ed;
  border-radius: 6px;
}

.radiology-review-table {
  min-width: 960px;
}

.radiology-review-table td:nth-child(2) {
  display: grid;
  gap: 3px;
}

.radiology-review-table td:nth-child(2) span {
  color: #667085;
  font-size: 11px;
}

.radiology-review-reason {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 4px;
  color: #b54708;
  background: #fff4e5;
  font-size: 11px;
  font-weight: 600;
}

.radiology-review-action {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto;
  gap: 7px;
}

.radiology-viewer-backdrop {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(9 14 21 / 88%);
}

.radiology-viewer-dialog {
  display: grid;
  width: min(1320px, 100%);
  height: min(880px, calc(100vh - 40px));
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #344054;
  border-radius: 6px;
  background: #101820;
  box-shadow: 0 28px 70px rgb(0 0 0 / 36%);
}

.radiology-viewer-dialog > header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 18px;
  border-bottom: 1px solid #344054;
  color: #fff;
}

.radiology-viewer-dialog > header > div:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.radiology-viewer-dialog > header strong {
  font-size: 15px;
}

.radiology-viewer-dialog > header span {
  overflow: hidden;
  color: #b8c1ce;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radiology-viewer-dialog .plain-icon {
  color: #fff;
  border-color: #475467;
  background: #1d2939;
}

.radiology-viewer-dialog .plain-icon.active {
  color: #98c5ff;
  border-color: #4087ee;
}

.radiology-viewer-content {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 286px;
}

.radiology-viewer-image {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  padding: 16px;
  overflow: auto;
  background: #070b10;
}

.radiology-viewer-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.radiology-viewer-content aside {
  min-width: 0;
  overflow: auto;
  border-left: 1px solid #344054;
  color: #e4e7ec;
  background: #151f2a;
}

.radiology-viewer-content dl {
  margin: 0;
  padding: 18px;
}

.radiology-viewer-content dl > div {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid #344054;
}

.radiology-viewer-content dt {
  color: #98a2b3;
  font-size: 11px;
}

.radiology-viewer-content dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.radiology-checksum {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px !important;
}

.radiology-history {
  padding: 0 18px 18px;
}

.radiology-history h3 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 13px;
}

.radiology-history > div {
  display: grid;
  gap: 3px;
  padding: 9px 0;
  border-bottom: 1px solid #344054;
}

.radiology-history strong {
  font-size: 12px;
  text-transform: capitalize;
}

.radiology-history span,
.radiology-history p {
  margin: 0;
  color: #98a2b3;
  font-size: 11px;
}

@media (max-width: 1120px) {
  .radiology-study-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .radiology-title-row {
    display: grid;
  }

  .radiology-filter {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .radiology-filter button {
    padding: 0 6px;
  }

  .radiology-study-header,
  .radiology-study-footer {
    align-items: flex-start;
  }

  .radiology-study-header {
    display: grid;
  }

  .radiology-match-state {
    padding-left: 35px;
  }

  .radiology-image-grid {
    grid-template-columns: 1fr;
  }

  .radiology-thumbnail,
  .radiology-thumbnail img {
    height: 220px;
    min-height: 220px;
  }

  .radiology-study-footer {
    display: grid;
  }

  .radiology-study-footer .row-actions {
    justify-content: flex-end;
  }

  .radiology-assignment-row {
    grid-template-columns: 1fr 1fr;
  }

  .radiology-assignment-row label,
  .radiology-assignment-row input {
    grid-column: 1 / -1;
  }

  .radiology-viewer-backdrop {
    padding: 0;
  }

  .radiology-viewer-dialog {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }

  .radiology-viewer-content {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(300px, 1fr) auto;
  }

  .radiology-viewer-content aside {
    max-height: 38vh;
    border-top: 1px solid #344054;
    border-left: 0;
  }

  .radiology-tooth-dialog > footer {
    display: grid;
  }

  .radiology-tooth-dialog .modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .radiology-tooth-dialog .dentalome-primary-button {
    grid-column: 1 / -1;
  }
}

/* Clinic printer routing and letterhead management. */
.printing-settings-panel {
  height: 100%;
  overflow-y: auto;
  padding-right: 8px;
}

.printing-settings-heading,
.printing-settings-footer,
.printing-section-title,
.printing-profile-row,
.printing-template-row,
.printing-template-actions,
.printing-bridge-status {
  display: flex;
  align-items: center;
}

.printing-settings-heading {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.printing-settings-heading h1,
.printing-section-title h2 {
  margin: 0;
  color: #111827;
  letter-spacing: 0;
}

.printing-settings-heading h1 {
  font-size: 24px;
  line-height: 32px;
}

.printing-settings-heading p,
.printing-section-title p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 20px;
}

.printing-settings-panel .secondary-button,
.printing-template-actions .secondary-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.printing-settings-panel .secondary-button:disabled,
.printing-template-actions .secondary-button.disabled {
  cursor: not-allowed;
  opacity: .55;
}

.printing-bridge-status {
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid #dfe5ec;
  border-radius: 7px;
  background: #f8fafc;
  color: #475467;
}

.printing-bridge-status.connected {
  border-color: #a7d8b1;
  background: #f1faf3;
  color: #23783a;
}

.printing-bridge-status.error {
  border-color: #efc1bd;
  background: #fff5f4;
  color: #a23b32;
}

.printing-bridge-status > div {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
}

.printing-agent-status {
  margin-top: 10px;
}

.printing-agent-status > button {
  flex: 0 0 auto;
  margin-left: auto;
}

.printing-bridge-status strong {
  color: inherit;
  font-size: 13px;
}

.printing-bridge-status span {
  font-size: 12px;
  line-height: 18px;
}

.printing-settings-panel .form-alert {
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  font-size: 13px;
}

.printing-settings-panel .form-alert.success {
  border-color: #a7d8b1;
  background: #f1faf3;
  color: #23783a;
}

.printing-settings-panel .form-alert.error {
  border-color: #efc1bd;
  background: #fff5f4;
  color: #a23b32;
}

.printing-settings-loading {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #667085;
  font-size: 14px;
}

.printing-log-list {
  border-top: 1px solid #e4e7ec;
}

.printing-log-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 148px 120px minmax(190px, 1.2fr) minmax(160px, 1fr) minmax(150px, .9fr);
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #e4e7ec;
}

.printing-log-row > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.printing-log-row strong {
  overflow: hidden;
  color: #101828;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.printing-log-row span {
  overflow: hidden;
  color: #667085;
  font-size: 11px;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.printing-log-event {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #175cd3 !important;
  font-weight: 700;
}

.printing-log-event.printed {
  background: #eaf7ed;
  color: #23783a !important;
}

.printing-log-event.failed,
.printing-log-event.requeued {
  background: #fff0ee;
  color: #a23b32 !important;
}

.printing-log-empty {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid #e4e7ec;
  color: #667085;
  font-size: 12px;
}

.printing-settings-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e4e7ec;
}

.qz-signing-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff0ee;
  color: #a23b32;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.qz-signing-badge.configured {
  background: #eaf7ed;
  color: #23783a;
}

.qz-signing-details {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(160px, .8fr) minmax(190px, 1fr);
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid #dfe5ec;
  border-radius: 7px;
  background: #f8fafc;
}

.qz-signing-details > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.qz-signing-details strong,
.qz-signing-file-fields label > span {
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.qz-signing-details span {
  overflow: hidden;
  color: #667085;
  font-size: 11px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qz-signing-setup {
  display: flex;
  align-items: end;
  gap: 14px;
}

.qz-signing-file-fields {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.qz-signing-file-fields label {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid #dfe5ec;
  border-radius: 7px;
  background: #f8fafc;
}

.qz-signing-file-fields input {
  width: 100%;
  min-width: 0;
  color: #344054;
  font-size: 12px;
}

.qz-signing-file-fields small,
.qz-signing-readonly {
  color: #667085;
  font-size: 11px;
}

.printing-section-title {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.printing-section-title h2 {
  font-size: 16px;
  line-height: 24px;
}

.printing-profile-list,
.printing-template-list {
  border-top: 1px solid #e4e7ec;
}

.printing-profile-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(175px, .9fr) minmax(250px, 1.4fr) 110px 100px 36px;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #e4e7ec;
}

.printing-profile-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.printing-profile-name > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.printing-profile-name strong {
  overflow: hidden;
  color: #101828;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.printing-profile-name small {
  color: #667085;
  font-size: 11px;
}

.printing-profile-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #edf4ff;
  color: #0b63e5;
}

.printing-profile-row label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.printing-profile-row label > span {
  color: #667085;
  font-size: 11px;
  font-weight: 600;
}

.printing-profile-row input,
.printing-profile-row select {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 7px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 12px;
}

.printing-profile-row input:disabled,
.printing-profile-row select:disabled {
  background: #f8fafc;
  color: #667085;
}

.printing-availability {
  justify-self: end;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.printing-availability.available {
  background: #eaf7ed;
  color: #23783a;
}

.printing-availability.missing {
  background: #fff0ee;
  color: #a23b32;
}

.printing-test-button {
  align-self: center;
  justify-self: end;
}

.printing-template-row {
  min-height: 62px;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid #e4e7ec;
}

.printing-template-row > div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.printing-template-row strong {
  color: #101828;
  font-size: 13px;
}

.printing-template-row span {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.printing-template-actions {
  flex: 0 0 auto;
  gap: 7px;
}

.printing-template-actions input[type="file"] {
  display: none;
}

.printing-settings-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 8px;
}

.printing-settings-footer > span {
  color: #667085;
  font-size: 12px;
}

.printing-settings-footer .primary-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

@media (max-width: 1100px) {
  .printing-profile-row {
    grid-template-columns: minmax(150px, .8fr) minmax(220px, 1.4fr) 96px 36px;
  }

  .printing-availability {
    display: none;
  }

  .printing-log-row {
    grid-template-columns: 140px 110px minmax(180px, 1fr) minmax(150px, 1fr);
  }

  .printing-log-result {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .printing-settings-heading,
  .printing-settings-footer,
  .printing-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .printing-profile-row {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 14px 0;
  }

  .printing-paper-field {
    max-width: 160px;
  }

  .printing-test-button {
    justify-self: start;
  }

  .printing-agent-status {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .printing-agent-status > button {
    width: 100%;
    margin-left: 0;
  }

  .qz-signing-details,
  .qz-signing-file-fields {
    grid-template-columns: 1fr;
  }

  .qz-signing-setup {
    align-items: stretch;
    flex-direction: column;
  }

  .printing-log-row {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 12px 0;
  }

  .printing-log-document,
  .printing-log-workstation {
    grid-column: 1 / -1;
  }

  .printing-log-result {
    display: grid !important;
    grid-column: 1 / -1;
  }

  .printing-template-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Current Dentalome patient-detail parity overrides */
.app-body.patient-detail-mode {
  grid-template-columns: 255px minmax(0, 1fr);
}

.patient-workspace {
  padding: 24px 32px 46px;
  background: #f7f8fb;
}

.patient-header.dentalome-patient-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0 24px;
  min-height: 154px;
  margin: 0 0 22px;
  padding: 20px 22px 0;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 17px rgba(33, 43, 54, 0.08);
}

.dentalome-patient-header .patient-profile-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.dentalome-patient-header .patient-initials-tile {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  border-radius: 12px;
  background: #2f5f94;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
}

.dentalome-patient-header .patient-profile-text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dentalome-patient-header .patient-title {
  gap: 10px;
}

.dentalome-patient-header .patient-title h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 850;
  color: #20252c;
  letter-spacing: 0;
}

.dentalome-patient-header .patient-alert-icon {
  color: #6b7280;
}

.dentalome-patient-header .patient-profile-text p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
}

.dentalome-patient-header .patient-contact-line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dentalome-patient-header .patient-contact-line svg {
  color: #6b7280;
}

.patient-profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.patient-action-button,
.patient-more-button {
  height: 38px;
  border: 1px solid #d9dee7;
  border-radius: 9px;
  background: #fff;
  color: #20252c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
}

.patient-action-button.archive {
  color: #5f6673;
}

.patient-more-button {
  width: 40px;
  padding: 0;
}

.dentalome-patient-header .patient-warning {
  grid-column: 1 / -1;
  margin: 8px 0 0 96px;
  color: #8a610e;
  font-weight: 750;
}

.patient-profile-tabs {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  gap: 0;
  min-height: 50px;
  margin-top: 18px;
  border-top: 1px solid #e5e7eb;
  overflow-x: auto;
}

.patient-profile-tabs button {
  height: 50px;
  flex: 0 0 auto;
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  color: #424852;
  padding: 0 15px;
  font-size: 15px;
  font-weight: 850;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.patient-profile-tabs button.active {
  color: #1677ff;
  border-bottom-color: #1677ff;
  background: #fff;
}

.patient-treatment-card {
  padding: 0 14px 26px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 17px rgba(33, 43, 54, 0.08);
}

.patient-treatment-card .treatment-card-top {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  padding: 28px 14px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.patient-treatment-card .treatment-tabs {
  width: max-content;
  min-height: 36px;
  padding: 3px;
  border: 1px solid #e1e5ec;
  border-radius: 10px;
  background: #f7f8fb;
}

.patient-treatment-card .treatment-tabs button {
  min-height: 30px;
  min-width: 78px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 850;
}

.patient-treatment-card .treatment-tabs button.active {
  color: #111827;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1);
}

.treatment-financials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  padding-right: 4px;
  white-space: nowrap;
}

.treatment-financials .metric {
  display: grid;
  gap: 4px;
  color: #9ca3af;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.treatment-financials .metric span::after {
  content: "";
}

.treatment-financials .metric strong,
.treatment-financials .metric b {
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.patient-treatment-layout {
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
}

.odontogram-panel.dentalome-odontogram-card {
  min-height: 480px;
  padding: 20px 28px 20px;
  border-radius: 18px;
  box-shadow: 0 0 9px -2px #ccc;
}

.act-status-card {
  min-height: 480px;
  padding: 24px 36px 30px;
  border-radius: 16px;
  box-shadow: 0 3px 17px rgba(33, 43, 54, 0.1);
}

.add-act-button {
  min-height: 42px;
  border-radius: 10px;
  background: #1677ff;
  font-size: 17px;
  font-weight: 850;
}

.act-status-head {
  font-size: 18px;
}

.act-status-list button {
  font-size: 15px;
}

.act-status-list button strong {
  min-width: 96px;
  padding: 8px 14px;
  border-radius: 22px;
  background: #6d9ff4;
  font-size: 14px;
}

.empty-search-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f3f7;
  color: #667085;
}

.odontogram {
  max-width: 1030px;
  margin: 4px auto 0;
  gap: 16px;
}

.tooth-group {
  grid-template-columns: repeat(8, minmax(30px, 1fr));
  gap: clamp(5px, 0.55vw, 10px);
}

.tooth.dentalome-tooth,
.tooth.dentalome-tooth.lower {
  min-height: 118px;
  grid-template-rows: 20px minmax(88px, 1fr);
  gap: 4px;
}

.tooth.dentalome-tooth.lower {
  grid-template-rows: minmax(88px, 1fr) 20px;
}

.tooth-art {
  width: clamp(32px, 2.55vw, 56px);
  height: 88px;
  min-height: 88px;
  padding: 1px 3px;
  border-radius: 12px;
}

.tooth strong {
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}

.tooth.dentalome-tooth.treated .tooth-svg svg .cls-2,
.tooth.dentalome-tooth.treated .tooth-svg svg .cls-3 {
  fill: var(--dent-acte-color, #49d889);
}

.odontogram-midline {
  min-height: 118px;
}

.patient-document-actions {
  margin: 18px 0 18px;
}

.patient-document-actions button {
  min-height: 40px;
  min-width: 132px;
  border-radius: 10px;
  background: #1677ff;
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
}

.patient-document-actions button:first-child {
  background: #ebf3ff;
  color: #1677ff;
  border: 1px solid #c6dcff;
}

.patient-operations-wrap {
  border: 1px solid #d9dee7;
  border-top: 5px solid #1677ff;
  border-radius: 14px;
  overflow: hidden;
}

.patient-operations-toolbar {
  margin: 0 0 18px;
}

.patient-operations-toolbar select {
  width: 240px;
  height: 36px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 650;
}

.patient-operations-table {
  min-width: 1040px;
}

.patient-operations-table th,
.patient-operations-table td {
  padding: 13px 14px;
  font-size: 15px;
}

.patient-operations-table th {
  background: #dce9fb;
  font-size: 15px;
  font-weight: 850;
}

.patient-operations-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.sessions-link {
  font-size: 15px;
}

.dentalome-status {
  min-width: 118px;
  min-height: 34px;
  border-radius: 20px;
  background: #6d9ff4;
  font-size: 15px;
}

.check-pill {
  min-width: 52px;
  min-height: 30px;
  font-size: 18px;
}

.dentalome-actions {
  gap: 10px;
}

.dentalome-actions .plain-icon.small {
  width: 28px;
  height: 28px;
}

.dentalome-action-img {
  width: 20px;
  height: 20px;
}

.patient-operations-table .teeth-pills b {
  min-width: 30px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #0b66e4;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.patient-operations-table .teeth-pills.empty b {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #64748b;
}

.patient-operations-table .teeth-pills:empty::after {
  content: "--";
  min-width: 30px;
  display: inline-grid;
  place-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 1500px) {
  .patient-treatment-layout {
    grid-template-columns: minmax(650px, 1fr) 270px;
    gap: 20px;
  }

  .tooth.dentalome-tooth,
  .tooth.dentalome-tooth.lower {
    min-height: 108px;
  }

  .tooth-art {
    width: clamp(30px, 2.45vw, 50px);
    height: 80px;
    min-height: 80px;
  }
}

/* Dentalome current UI parity pass: patient acts and odontogram ordering. */
.dentalome-patient-header .patient-initials-tile {
  background: #0b66e4;
}

.tooth.dentalome-tooth,
.tooth.dentalome-tooth.lower {
  grid-template-rows: 20px minmax(88px, 1fr);
}

.tooth.dentalome-tooth.lower {
  grid-template-rows: minmax(88px, 1fr) 20px;
}

.operation-select-cell {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 70px;
  background: #f9f9fa;
}

.patient-operations-table .dentalome-checkbox-control {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  display: block;
  flex: 0 0 16px;
  margin: 0;
  padding: 0;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.patient-operations-table .dentalome-checkbox-control[data-state="checked"] {
  border-color: #025ce2;
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
}

.patient-operations-table .dentalome-checkbox-control svg {
  width: 12px;
  height: 12px;
}

.operation-select-cell .session-shortcut {
  width: 24px;
  height: 24px;
  color: #171b21;
}

.dentalome-actions {
  gap: 12px;
}

.dentalome-actions .plain-icon.small {
  width: 28px;
  height: 28px;
  color: #171b21;
}

.dentalome-actions .plain-icon.small svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.6;
}

.dentalome-actions .plain-icon.small[title="Supprimer"] {
  color: #ff2b2b;
}

.dentalome-inline-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.patient-document-actions button {
  background: #0068df;
  color: #fff;
}

.patient-document-actions button:first-child {
  background: #ebf3ff;
  color: #1677ff;
  border: 1px solid #c6dcff;
}

.patient-treatment-layout {
  align-items: flex-start;
  grid-template-columns: minmax(0, 1fr) 550px;
}

.patient-treatment-card .treatment-card-top {
  padding-right: 590px;
}

.odontogram-panel.dentalome-odontogram-card {
  min-height: 392px;
}

.act-status-card {
  min-height: 502px;
  margin-top: -110px;
}

.patient-document-actions {
  margin: 54px 0 18px;
}

.patient-operations-table th,
.patient-operations-table td {
  padding: 9px 12px;
  font-size: 13px;
}

.patient-operations-table th {
  font-size: 13px;
  font-weight: 750;
}

.dentalome-status {
  min-width: 74px;
  min-height: 24px;
  padding: 2px 8px;
  gap: 3px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* Dentalome current UI parity pass: split treatment and operation cards. */
.patient-treatment-card {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.patient-treatment-layout {
  align-items: flex-start;
  grid-template-columns: minmax(0, 1fr) 573px;
  gap: 28px;
}

.odontogram-panel.dentalome-odontogram-card {
  min-height: 502px;
  padding: 0 28px 20px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-card-top {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 20px;
  padding: 28px 8px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.odontogram-panel.dentalome-odontogram-card .treatment-financials {
  gap: 34px;
  padding-right: 0;
}

.act-status-card {
  min-height: 502px;
  margin-top: 0;
}

.patient-operations-card {
  margin-top: 40px;
  padding: 12px 14px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 17px rgba(33, 43, 54, 0.08);
}

.patient-document-actions {
  margin: 0 0 18px;
}

.topbar {
  padding-left: 64px;
}

.patient-action-button.archive {
  color: #f04438;
  border-color: #fed7aa;
  background: #fff7ed;
}

.add-act-button {
  color: #fff;
}

.dentalome-status svg {
  width: 16px;
  height: 16px;
}

/* Dentalome current global list parity pass. */
.global-list-workspace {
  min-height: calc(100vh - 60px);
  padding: 30px 32px 44px;
  background: #f6f7f9;
}

.charges-workspace {
  padding-right: 24px;
  padding-left: 24px;
}

.acts-workspace {
  padding-top: 24px;
  padding-right: 24px;
  padding-left: 24px;
}

.payments-workspace {
  flex: 1 0 auto;
  width: 100%;
  padding-top: 24px;
  padding-right: 24px;
  padding-left: 24px;
}

.app-shell[data-screen="payments"] > .app-body > .main {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.app-shell[data-screen="payments"] > .app-body > .main > .topbar {
  flex: 0 0 60px;
}

.global-list-workspace.payments-workspace .page-header {
  margin-bottom: 24px;
}

.global-list-workspace.payments-workspace .page-header h1 {
  width: 100%;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.6px;
  transform: none;
  transform-origin: left center;
}

.global-list-workspace.payments-workspace .page-header > div:first-child {
  width: 100%;
}

.global-list-workspace.payments-workspace .page-header h1 > span {
  transform: none;
}

.global-list-workspace.payments-workspace .page-header p {
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
}

.global-list-workspace.charges-workspace .page-header {
  margin-bottom: 40px;
}

.global-list-workspace.acts-workspace .page-header {
  margin-bottom: 40px;
}

.global-list-workspace.acts-workspace .page-header h1 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
  transform: none;
}

.global-list-workspace.acts-workspace .page-header > div:first-child {
  width: 100%;
}

.global-list-workspace.acts-workspace .page-header p {
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
}

.global-list-workspace .page-header,
.dentalome-notes-workspace .page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 28px;
}

.global-list-workspace .page-header h1,
.dentalome-notes-workspace .page-header h1 {
  margin: 0;
  color: #101114;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.global-list-workspace .page-header p,
.dentalome-notes-workspace .page-header p {
  margin: 11px 0 0;
  color: #6d7280;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1px;
}

.page-header-actions,
.filter-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Dentalome invoice list contract. */
.global-list-workspace.documents-workspace {
  height: calc(100vh - 60px);
  min-height: 0;
  padding: 24px 24px 8px;
  overflow-y: auto;
  background: #f6f7f8;
}

.global-list-workspace.documents-workspace .page-header {
  height: 60px;
  margin: 0;
}

.global-list-workspace.documents-workspace .page-header > div:first-child {
  width: 100%;
}

.global-list-workspace.documents-workspace .page-header h1 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.6px;
}

.global-list-workspace.documents-workspace .page-header h1 > span {
  transform: none;
}

.global-list-workspace.documents-workspace .page-header p {
  margin: 4px 0 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
}

.global-list-workspace.documents-workspace .document-filter-row {
  display: flex;
  width: 100%;
  height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0 16px;
  overflow: visible;
}

.global-list-workspace.documents-workspace .document-filter-primary {
  display: flex;
  height: 36px;
  flex: 1 1 0%;
  align-items: center;
  gap: 16px;
}

.global-list-workspace.documents-workspace .document-filter-primary .dentalome-search-input {
  width: 100%;
  max-width: 384px;
  min-width: 0;
  height: 36px;
  flex: 1 1 auto;
  padding: 4px 12px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.global-list-workspace.documents-workspace .document-filter-primary .payments-date-range-picker,
.global-list-workspace.documents-workspace .document-filter-primary .payments-date-range-trigger {
  width: 221.921875px;
  min-width: 221.921875px;
  max-width: 221.921875px;
  flex: 0 0 221.921875px;
}

.global-list-workspace.documents-workspace .document-filter-primary .payments-date-range-trigger {
  height: 36px;
  padding: 8px 12px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.global-list-workspace.documents-workspace .document-filter-row .filter-row-actions {
  width: auto;
  flex: 0 0 auto;
  margin-left: 0;
}

.global-list-workspace.documents-workspace .document-filter-row .dentalome-download-button {
  width: 135.21875px;
  min-width: 135.21875px;
  height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8.4px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.global-list-workspace.documents-workspace .dentalome-table-shell.footer-outside {
  width: 100%;
}

.global-list-workspace.documents-workspace .dentalome-table-shell.footer-outside .dentalome-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px 8.4px 0 0;
  background: #fff;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap table {
  width: 756.90625px;
  min-width: 756.90625px;
  table-layout: fixed;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap thead {
  background: rgb(2 92 226 / 10%);
}

.global-list-workspace.documents-workspace .dentalome-table-wrap th,
.global-list-workspace.documents-workspace .dentalome-table-wrap td {
  border-bottom: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  font-weight: 500;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap td {
  height: 49px;
  padding: 8px;
  font-weight: 400;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap th:nth-child(1),
.global-list-workspace.documents-workspace .dentalome-table-wrap td:nth-child(1) { width: 176.0625px; }
.global-list-workspace.documents-workspace .dentalome-table-wrap th:nth-child(2),
.global-list-workspace.documents-workspace .dentalome-table-wrap td:nth-child(2) { width: 103.78125px; }
.global-list-workspace.documents-workspace .dentalome-table-wrap th:nth-child(3),
.global-list-workspace.documents-workspace .dentalome-table-wrap td:nth-child(3) { width: 139.453125px; }
.global-list-workspace.documents-workspace .dentalome-table-wrap th:nth-child(4),
.global-list-workspace.documents-workspace .dentalome-table-wrap td:nth-child(4) { width: 136.0546875px; }
.global-list-workspace.documents-workspace .dentalome-table-wrap th:nth-child(5),
.global-list-workspace.documents-workspace .dentalome-table-wrap td:nth-child(5) { width: 73.5546875px; }
.global-list-workspace.documents-workspace .dentalome-table-wrap th:nth-child(6),
.global-list-workspace.documents-workspace .dentalome-table-wrap td:nth-child(6) { width: 128px; }

.global-list-workspace.documents-workspace .dentalome-table-wrap thead tr,
.global-list-workspace.documents-workspace .dentalome-table-wrap tbody tr {
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.global-list-workspace.documents-workspace .dentalome-table-wrap tbody tr:last-child {
  height: 48.5px;
  border-bottom: 0;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap tbody tr:last-child td {
  height: 48.5px;
  border-bottom: 0;
}

.global-list-workspace.documents-workspace .document-cell-block {
  display: block;
}

.global-list-workspace.documents-workspace .document-value-medium {
  font-weight: 500;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap .link-button {
  color: rgb(2, 92, 226);
  font-weight: 400;
}

.global-list-workspace.documents-workspace .dentalome-table-outside-footer {
  width: 100%;
  height: 69px;
  min-height: 69px;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-top: 0;
  border-radius: 0 0 14.4px 14.4px;
  background: #fff;
}

.global-list-workspace.documents-workspace .documents-table-footer {
  display: flex;
  width: 100%;
  height: 36px;
  align-items: center;
  justify-content: space-between;
}

.global-list-workspace.documents-workspace .documents-table-footer > span:first-child {
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

@media (min-width: 1025px) {
  .global-list-workspace.documents-workspace .dentalome-table-wrap table {
    width: 100%;
    min-width: 100%;
    table-layout: auto;
  }

  .global-list-workspace.documents-workspace .documents-table-footer {
    min-height: 36px;
  }

  .global-list-workspace.documents-workspace .documents-table-footer > span:first-child {
    position: static;
  }

  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination {
    width: 100%;
    height: 36px;
    flex: 1 1 auto;
    justify-content: center;
    gap: 4px;
  }

  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-list {
    gap: 4px;
  }

  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination button,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-link,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-ellipsis {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination button:first-child,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination button:last-child,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-previous,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-next {
    width: auto;
    min-width: 0;
    gap: 4px;
    padding: 8px 12px;
  }
}

.global-list-workspace.documents-workspace.documents-workspace-letter .dentalome-table-wrap table {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
}

.global-list-workspace.documents-workspace.documents-workspace-letter .dentalome-table-wrap th:nth-child(1),
.global-list-workspace.documents-workspace.documents-workspace-letter .dentalome-table-wrap td:nth-child(1) { width: 216.265625px; }
.global-list-workspace.documents-workspace.documents-workspace-letter .dentalome-table-wrap th:nth-child(2),
.global-list-workspace.documents-workspace.documents-workspace-letter .dentalome-table-wrap td:nth-child(2) { width: 220.0625px; }
.global-list-workspace.documents-workspace.documents-workspace-letter .dentalome-table-wrap th:nth-child(3),
.global-list-workspace.documents-workspace.documents-workspace-letter .dentalome-table-wrap td:nth-child(3) { width: 270.921875px; }
.global-list-workspace.documents-workspace.documents-workspace-letter .dentalome-table-wrap th:nth-child(4),
.global-list-workspace.documents-workspace.documents-workspace-letter .dentalome-table-wrap td:nth-child(4) { width: 266.75px; }

.global-list-workspace.documents-workspace .dentalome-table-outside-footer:not(:has(.patients-pagination)) {
  height: 53px;
  min-height: 53px;
}

.global-list-workspace.documents-workspace .documents-table-footer:not(:has(.patients-pagination)) {
  height: 20px;
  min-height: 20px;
}

.global-list-workspace.documents-workspace .dentalome-sort-header {
  height: 36px;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8.4px;
}

.global-list-workspace.documents-workspace .dentalome-sort-header svg {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  color: inherit;
  stroke-width: 2;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap .row-actions {
  gap: 8px;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap .row-actions .plain-icon.small {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
}

.global-list-workspace.documents-workspace .dentalome-table-wrap .row-actions .plain-icon.small svg {
  width: 16px;
  height: 16px;
}

.dentalome-segmented-tabs {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 40px;
  padding: 2px;
  border: 1px solid #d9dee8;
  border-radius: 10px;
  background: #f8fafc;
}

.dentalome-segmented-tabs button {
  height: 28px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

.dentalome-segmented-tabs button.active {
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.1);
}

.dentalome-segmented-tabs.single-tab {
  margin-bottom: 18px;
}

.dentalome-pagination-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
}

.dentalome-pagination-row button,
.dentalome-pagination-row strong {
  min-width: 34px;
  height: 34px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
}

.dentalome-pagination-row button:disabled {
  color: #98a2b3;
}

.dentalome-pagination-row strong {
  border-color: #005fd8;
  background: #005fd8;
  color: #fff;
}

.global-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.global-period-control {
  position: relative;
  display: inline-flex;
}

.global-period-trigger.dentalome-select-button {
  min-width: 0;
  padding: 8px 12px;
  border-radius: 8.4px;
  line-height: 20px;
}

.global-period-trigger.dentalome-select-button:focus {
  border-color: rgb(2, 92, 226);
  outline: 0;
  box-shadow:
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0) 0 0 0 0,
    rgba(0, 0, 0, 0) 0 0 0 0,
    oklab(0.519343 -0.0356103 -0.213735 / 0.5) 0 0 0 3px,
    rgba(0, 0, 0, 0.05) 0 1px 2px 0;
}

.global-period-trigger.dentalome-select-button > svg {
  margin-left: 8px;
}

.global-period-menu {
  position: absolute;
  z-index: 80;
  top: 40px;
  left: 0;
  display: block;
  width: 128px;
  padding: 4px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.global-period-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
}

.global-period-menu button:hover,
.global-period-menu button:focus-visible {
  background: oklch(0.967 0.001 286.375);
}

.charges-filter-row {
  justify-content: flex-start;
}

.acts-workspace .dentalome-table-shell.footer-outside .dentalome-table-wrap {
  overflow-x: auto;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 14.4px 14.4px 0 0;
}

.acts-workspace .dentalome-table-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}

.acts-workspace .dentalome-table-wrap thead {
  background: rgb(2 92 226 / 10%);
}

.acts-workspace .dentalome-table-wrap th,
.acts-workspace .dentalome-table-wrap td {
  border-bottom: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.acts-workspace .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  font-weight: 500;
}

.acts-workspace .dentalome-table-wrap td {
  height: auto;
  padding: 8px;
  font-weight: 400;
}

.acts-workspace .dentalome-table-wrap thead tr,
.acts-workspace .dentalome-table-wrap tbody tr {
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.acts-workspace .dentalome-table-wrap tbody tr:last-child {
  border-bottom: 0;
}

.acts-workspace .dentalome-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.acts-workspace .dentalome-table-wrap .link-button {
  color: rgb(2, 92, 226);
  font-weight: 400;
}

.acts-workspace .dentalome-table-wrap .teeth-pills {
  display: flex;
  width: 40.1px;
  flex-wrap: wrap;
  gap: 4px;
}

.global-list-workspace.acts-workspace .dentalome-table-wrap .teeth-pills {
  width: auto;
}

.acts-workspace .dentalome-table-wrap .teeth-pills b {
  display: flex;
  min-width: 0;
  min-height: 22px;
  height: 22px;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid rgb(220, 252, 231);
  border-radius: 999px;
  background: rgb(240, 253, 244);
  color: rgb(22, 163, 74);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
}

.acts-workspace .dentalome-table-wrap .teeth-pills.empty b {
  min-height: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  line-height: 20px;
}

.acts-workspace .dentalome-table-wrap .green-text {
  color: oklch(0.627 0.194 149.214);
  font-weight: 500;
}

.acts-workspace .dentalome-table-wrap .red-text {
  color: oklch(0.577 0.245 27.325);
  font-weight: 500;
}

.acts-workspace .dentalome-table-wrap .operation-zero-remaining {
  font-weight: 500;
}

.acts-workspace .dentalome-table-outside-footer {
  display: flex;
  height: 69px;
  align-items: center;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-top: 0;
  border-radius: 0 0 14.4px 14.4px;
  background: #fff;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.acts-workspace .dentalome-table-outside-footer:not(:has(.patients-pagination)) {
  height: 53px;
  min-height: 53px;
}

.operations-table-footer {
  display: flex;
  width: 100%;
  align-items: center;
}

.operations-table-footer .patients-pagination {
  flex: 1;
  width: auto;
  height: 36px;
  margin-left: 0;
}

.payments-date-range-picker {
  position: relative;
  display: inline-flex;
}

.payments-tabs.dentalome-segmented-tabs {
  display: flex;
  align-self: flex-start;
  width: max-content;
  min-height: 36px;
  margin-bottom: 24px;
  padding: 3px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: oklch(0.967 0.001 286.375);
  color: oklch(0.552 0.016 285.938);
}

.payments-tabs.dentalome-segmented-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 27px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.payments-tabs.dentalome-segmented-tabs button.active {
  background: oklch(1 0 0);
}

.payments-tab-panel {
  width: 100%;
  min-width: 0;
  outline: 0;
}

.payments-tab-panel-all {
  padding-top: 0;
}

.payments-tab-panel-all::before {
  display: table;
  content: "";
}

.payments-tab-panel-all .payments-filter-row {
  margin-top: 16px;
}

.payments-date-range-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: 36px;
  padding: 8px 12px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  white-space: nowrap;
}

.payments-date-range-trigger svg {
  margin-right: 8px;
}

.payments-date-range-popover {
  position: absolute;
  z-index: 80;
  top: 40px;
  left: 0;
  display: grid;
  grid-template-columns: 224px 224px;
  align-items: start;
  gap: 16px;
  box-sizing: border-box;
  width: 490px;
  padding: 12px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  outline: 0;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.payments-calendar-nav {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.payments-calendar-nav.previous {
  left: 12px;
}

.payments-calendar-nav.next {
  right: 12px;
}

.payments-range-calendar-month {
  display: grid;
  grid-template-rows: 32px auto;
  gap: 16px;
  width: 224px;
}

.payments-range-calendar-caption {
  position: relative;
  display: flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 32px;
}

.payments-range-calendar-caption .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.payments-range-calendar-caption select {
  width: auto;
  min-width: 0;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
}

.payments-range-calendar-caption .payments-calendar-month-select.offset-0 {
  width: 51.07px;
}

.payments-range-calendar-caption .payments-calendar-month-select.offset-1 {
  width: 55.43px;
}

.payments-range-calendar-caption .payments-calendar-year-select {
  width: 63.79px;
}

.payments-range-calendar-grid {
  width: 224px;
  min-width: 224px;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
  color: oklch(0.141 0.005 285.823);
}

.payments-range-calendar-grid thead,
.payments-range-calendar-grid tbody,
.payments-range-calendar-grid tr,
.payments-range-calendar-grid th,
.payments-range-calendar-grid td {
  border: 0;
}

.payments-range-calendar-grid th {
  width: 32px;
  height: 19.2px;
  padding: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 12px;
  font-weight: 400;
  line-height: 19.2px;
  text-align: center;
}

.payments-range-calendar-grid td {
  box-sizing: border-box;
  width: 32px;
  height: 40px;
  padding: 8px 0 0;
  text-align: center;
}

.payments-range-calendar-grid button {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.payments-range-calendar-grid button.outside {
  color: oklch(0.552 0.016 285.938);
}

.payments-range-calendar-grid td.range-middle button {
  border-radius: 0;
  background: oklch(0.967 0.001 286.375);
  color: oklch(0.21 0.006 285.885);
}

.payments-range-calendar-grid td.range-start button,
.payments-range-calendar-grid td.range-end button {
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
}

.payments-filter-row .dentalome-download-button {
  min-width: 135px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8.4px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  font-weight: 500;
  line-height: 20px;
}

.payments-filter-row .dentalome-download-button:hover,
.payments-filter-row .dentalome-download-button:active {
  background: oklab(0.519343 -0.0356103 -0.213735 / 0.9);
}

.dentalome-table-shell {
  width: 100%;
}

.payments-workspace .dentalome-table-shell.footer-outside .dentalome-table-wrap {
  overflow-x: auto;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px 8.4px 0 0;
}

.payments-tab-all .dentalome-table-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}

.payments-tab-all .dentalome-table-wrap thead {
  background: rgb(2 92 226 / 10%);
}

.payments-tab-all .dentalome-table-wrap th,
.payments-tab-all .dentalome-table-wrap td {
  border-bottom: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.payments-tab-all .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  background: transparent;
  font-weight: 500;
}

.payments-tab-all .dentalome-table-wrap td {
  height: 49px;
  padding: 8px;
  font-weight: 400;
}

.payments-tab-all .dentalome-table-wrap thead tr,
.payments-tab-all .dentalome-table-wrap tbody tr {
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.payments-tab-all .dentalome-table-wrap tbody tr:last-child {
  border-bottom: 0;
}

.payments-tab-all .dentalome-table-wrap tbody tr:last-child td {
  height: 48.5px;
  border-bottom: 0;
}

.global-list-workspace.payments-tab-all .row-actions {
  display: flex;
  gap: 8px;
}

.payments-tab-all .row-actions .plain-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}

.payments-workspace .dentalome-table-outside-footer {
  display: flex;
  height: 69px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.payments-workspace .dentalome-table-outside-footer:not(:has(.payments-pagination)) {
  height: 53px;
  min-height: 53px;
}

.payments-tab-unpaid .dentalome-table-outside-footer {
  height: 69px;
}

.payments-tab-unpaid .payments-tabs {
  margin-bottom: 24px;
}

.payments-total-label {
  flex: 0 0 auto;
  color: #6b7280;
}

.payments-pagination {
  display: flex;
  flex: 1;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: oklch(0.141 0.005 285.823);
}

.payments-workspace .dentalome-table-outside-footer > .payments-pagination {
  flex: 1;
  width: auto;
  margin-left: 0;
}

.payments-pagination button,
.payments-pagination-ellipsis {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.payments-pagination button:first-child,
.payments-pagination button:last-child {
  gap: 4px;
  padding: 8px 12px;
}

.payments-pagination button:first-child {
  width: 102px;
}

.payments-pagination button:last-child {
  width: 76px;
}

.payments-pagination button.active {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: #fff;
}

.payments-pagination button:disabled {
  opacity: 0.5;
}

.payments-pagination-ellipsis svg {
  width: 16px;
  height: 16px;
}

.payments-tab-unpaid .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.payments-tab-unpaid .dentalome-table-wrap td {
  height: 37px;
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.payments-tab-unpaid .dentalome-table-wrap tbody tr:last-child td {
  height: 36px;
}

.payments-tab-unpaid .dentalome-table-wrap .link-button {
  color: rgb(2, 92, 226);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.payments-tab-unpaid .dentalome-table-wrap tfoot td {
  height: 64px;
}

.document-filter-row {
  justify-content: flex-start;
  margin-top: 42px;
}

.document-filter-row .date-range-pill {
  gap: 8px;
}

.document-filter-row .date-range-pill input {
  width: 86px;
}

.document-filter-row .filter-row-actions,
.payments-workspace .filter-row-actions,
.acts-workspace .filter-row-actions,
.charges-workspace .filter-row-actions {
  margin-left: auto;
}

.charges-add-button {
  min-width: 186px;
  margin-left: auto;
}

.prothese-workspace {
  padding-right: 24px;
  padding-left: 24px;
}

.prothese-workspace .page-header {
  margin-bottom: 24px;
}

.prothese-toolbar-card {
  min-height: 84px;
  margin-bottom: 22px;
  padding: 13px 16px;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.prothese-toolbar-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.prothese-search-control {
  display: grid;
  gap: 4px;
  min-width: 400px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 400;
}

.prothese-search-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.prothese-search-shell svg {
  position: absolute;
  left: 14px;
  color: #7c8594;
}

.prothese-search-shell input {
  width: 400px;
  height: 36px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  padding: 0 14px 0 38px;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
}

.prothese-search-shell input::placeholder {
  color: #6b7280;
  opacity: 1;
}

.prothese-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prothese-filter-shell {
  position: relative;
}

.prothese-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  min-width: 120px;
  padding: 0 13px;
  border: 1px dashed #dfe4ec;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

.prothese-filter-button.active {
  border-color: #b9cff6;
  background: #f8fbff;
  color: #075fe5;
}

.prothese-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 188px;
  padding: 8px;
  border: 1px solid #dfe4ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.prothese-filter-menu button {
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #3f4651;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
}

.prothese-filter-menu button.active {
  background: #e6f0ff;
  color: #075fe5;
}

.prothese-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid rgba(2, 92, 226, 0.3);
  border-radius: 8px;
  background: rgba(2, 92, 226, 0.08);
  padding: 8px 10px;
}

.prothese-active-filters > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 4px;
  color: #075fe5;
  font-size: 12px;
  font-weight: 800;
}

.prothese-active-filters button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  border: 1px solid rgba(2, 92, 226, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #111827;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
}

.prothese-active-filters small {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.prothese-filter-panel {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(260px, 1fr) minmax(190px, 1fr);
  gap: 12px;
  margin-top: 12px;
  border-top: 1px solid #eef0f3;
  padding: 12px 4px 1px;
}

.prothese-filter-panel label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.prothese-filter-panel input,
.prothese-filter-panel select {
  width: 100%;
  height: 36px;
  min-width: 0;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
}

.prothese-filter-panel .appointment-source-combobox {
  width: 100%;
}

.prothese-filter-panel .appointment-source-combobox .combobox-trigger {
  min-height: 36px;
  border-color: #dfe4ec;
  padding: 0 12px;
  box-shadow: none;
}

.prothese-filter-input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.prothese-filter-input-shell svg {
  position: absolute;
  left: 12px;
  color: #7c8594;
}

.prothese-filter-input-shell input {
  padding-left: 35px;
}

.prothese-date-range-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.prothese-add-button {
  height: 36px;
  min-width: 164px;
}

.prothese-row-actions {
  gap: 8px;
}

.prothese-paye-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 36px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: #d9dee7;
  padding: 2px;
  vertical-align: middle;
}

.prothese-paye-switch span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
  transition: transform 0.16s ease;
}

.prothese-paye-switch.checked {
  background: #075fe5;
}

.prothese-paye-switch.checked span {
  transform: translateX(16px);
}

.prothese-paye-switch:disabled {
  opacity: 0.65;
}

.delete-confirm-strong {
  font-weight: 800;
  color: #111827;
}

.prothese-workspace .dentalome-table-wrap {
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.prothese-workspace .dentalome-table-wrap table {
  min-width: 1320px;
}

.prothese-workspace .dentalome-table-wrap th,
.prothese-workspace .dentalome-table-wrap td {
  height: 40px;
}

.prothese-workspace .dentalome-table-wrap tfoot td {
  height: 52px;
}

.date-range-pill,
.dentalome-search-input,
.dentalome-select-button,
.dentalome-download-button,
.dentalome-secondary-button,
.dentalome-outline-button {
  height: 36px;
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.date-range-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  background: #fff;
  color: #111827;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.date-range-pill input {
  width: 96px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
}

.date-range-pill input::-webkit-calendar-picker-indicator {
  display: none;
  opacity: 0;
}

.date-range-pill input::-webkit-inner-spin-button,
.date-range-pill input::-webkit-clear-button {
  display: none;
}

.date-range-pill span {
  white-space: nowrap;
  margin: 0 -3px;
}

.dentalome-search-input {
  width: 384px;
  padding: 0 14px;
  background: #fff;
  color: #111827;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.dentalome-select-button,
.dentalome-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 156px;
  padding: 0 16px;
  background: #fff;
  color: #111827;
}

.dentalome-download-button,
.dentalome-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 136px;
  padding: 0 16px;
  text-decoration: none;
}

.dentalome-download-button {
  border-color: #0062df;
  background: #005fd8;
  color: #fff;
  font-weight: 600;
}

.dentalome-secondary-button {
  border-color: #5a9a65;
  background: #5a9a65;
  color: #fff;
  font-weight: 600;
}

.dentalome-blue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  min-width: 136px;
  padding: 0 16px;
  border: 1px solid #0062df;
  border-radius: 8px;
  background: #005fd8;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.dentalome-outline-button {
  min-width: auto;
}

.users-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 8px;
}

.users-controls-row .dentalome-segmented-tabs {
  margin: 0;
}

.users-add-button {
  min-width: 230px;
  height: 37px;
  border-radius: 9px;
  background: #005fe5;
  border-color: #005fe5;
  font-weight: 600;
}

.users-workspace .dentalome-table-wrap th,
.users-workspace .dentalome-table-wrap td {
  height: 51px;
}

.users-row-actions {
  justify-content: flex-start;
  gap: 20px;
}

.users-row-actions .plain-icon:first-child {
  color: #0f172a;
}

.users-action-modal {
  position: relative;
  width: min(672px, calc(100vw - 48px));
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.users-action-modal ::selection {
  background: #025ce2;
  color: #fff;
}

.users-action-modal .modal-head,
.users-permissions-modal .modal-head {
  min-height: 18px;
  margin-bottom: 16px;
}

.users-action-modal .modal-head h2,
.users-permissions-modal .modal-head h2 {
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.users-action-modal .modal-head h2 {
  flex: 1;
  width: 100%;
}

.users-action-modal .modal-close-button,
.users-permissions-modal .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
}

.users-form-grid {
  row-gap: 24px;
  column-gap: 24px;
}

.users-form-grid label {
  position: relative;
  display: grid;
  gap: 8px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
}

.users-form-grid input,
.users-form-grid textarea {
  height: 36px;
  min-height: 36px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.users-form-grid textarea {
  height: 80px;
  min-height: 80px;
  background: transparent;
  padding: 8px 12px;
  resize: none;
}

.users-form-grid input:disabled {
  cursor: not-allowed;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  opacity: .5;
}

.users-form-grid label[data-invalid="true"] {
  color: oklch(0.577 0.245 27.325);
}

.users-form-grid label[data-invalid="true"] input,
.users-form-grid label[data-invalid="true"] .users-phone-input {
  border-color: oklch(0.577 0.245 27.325);
}

.users-form-grid label[data-invalid="true"] input:focus {
  border-color: oklch(0.577 0.245 27.325);
  box-shadow: 0 0 0 2px rgba(225, 29, 72, .2);
}

.users-field-error {
  position: static;
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  margin: 0;
}

.users-form-grid label[data-invalid="true"] {
  margin-bottom: 0;
}

.users-action-modal .modal-actions {
  width: calc(100% + 48px);
  height: 69px;
  align-items: flex-start;
  gap: 8px;
  margin: 0 -24px -16px;
  padding: 16px 24px;
  border-top: 1px solid oklch(0.92 0.004 286.32);
}

.users-action-modal .modal-actions button,
.users-permissions-modal .modal-actions button {
  min-height: 36px;
  height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.users-action-modal .primary-button,
.users-permissions-modal .primary-button {
  border: 0;
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
  box-shadow: none;
}

.password-field-shell {
  position: relative;
  display: block;
}

.users-password-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
}

.users-phone-input {
  display: grid;
  grid-template-columns: 61px minmax(0, 1fr);
  height: 36px;
  border: 0;
  border-radius: 8.4px;
  box-shadow: none;
}

.users-phone-input > button {
  display: flex;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-right: 0;
  border-radius: 8.4px 0 0 8.4px;
  padding: 0 8px;
  background: #fff;
  color: #71717a;
}

.users-phone-input .patient-phone-flag {
  width: 24px;
  height: 16px;
}

.users-form-grid .users-phone-input > input {
  height: 36px;
  min-height: 36px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-left: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 0 8.4px 8.4px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  padding: 4px 12px;
}

.password-field-shell input {
  padding: 4px 40px 4px 12px;
}

.password-visibility-button {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-grid;
  width: 36px;
  height: 36px;
  min-height: 36px;
  place-items: center;
  border: 0;
  border-radius: 8.4px;
  padding: 8px 12px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
}

.password-visibility-button:hover {
  background: #f2f4f7;
  color: #101828;
}

.users-password-edit-button {
  display: flex;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 0;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  line-height: 20px;
  gap: 8px;
}

.users-password-confirm-modal {
  display: grid;
  gap: 0;
  width: min(512px, calc(100vw - 48px));
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  padding: 24px;
  background: oklch(1 0 0);
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
}

.users-password-confirm-modal .modal-head {
  min-height: 28px;
  margin-bottom: 8px;
}

.users-password-confirm-modal .modal-head h2 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  text-align: left;
}

.users-password-confirm-modal > p {
  min-height: 40px;
  margin: 0 0 16px;
  color: #71717a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.users-password-confirm-modal .modal-actions {
  height: 36px;
  gap: 8px;
  margin: 0;
}

.users-password-confirm-modal .modal-actions button,
.users-password-confirm-modal .modal-actions button:not(.primary-button) {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  gap: 8px;
  color: oklch(0.141 0.005 285.823);
  background: oklch(1 0 0);
  border-color: oklch(0.92 0.004 286.32);
}

.users-password-confirm-modal .modal-actions .primary-button {
  border: 0 solid oklch(0.92 0.004 286.32);
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
}

.users-permissions-modal {
  position: relative;
  width: min(512px, calc(100vw - 48px));
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
}

.users-permissions-modal .modal-head h2 {
  display: block;
  flex: 1;
  width: 100%;
}

.users-permissions-title-name {
  margin-left: 6px;
  color: #71717a;
  font-weight: 400;
}

.users-permissions-form {
  display: grid;
  gap: 16px;
  padding: 16px 0 0;
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  height: 32px;
  min-height: 32px;
}

.permission-copy {
  display: grid;
  height: 32px;
  gap: 4px;
}

.permission-label {
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
}

.permission-description {
  color: #71717a;
  font-size: 12.5px;
  line-height: 14px;
}

.permission-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 32px;
  height: 18.4px;
  flex-shrink: 0;
  border: 1px solid transparent;
  border-radius: calc(infinity * 1px);
  background: oklch(0.92 0.004 286.32);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
  outline: none;
  padding: 0;
  transition: background 150ms ease, box-shadow 150ms ease;
  margin-right: 8px;
}

.permission-switch span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(0);
  transition: transform 120ms ease;
}

.permission-switch[data-state="checked"] {
  background: #025ce2;
}

.permission-switch[data-state="checked"] span {
  transform: translateX(14px);
}

.permission-switch:focus-visible {
  box-shadow: 0 0 0 3px rgba(7, 95, 229, 0.18);
}

.permission-switch-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.users-permissions-modal .modal-actions {
  width: calc(100% + 48px);
  height: 85px;
  align-items: flex-start;
  gap: 8px;
  margin: 0 -24px -16px;
  padding: 16px 24px;
  border-top: 1px solid oklch(0.92 0.004 286.32);
}

.users-permissions-modal .modal-actions button,
.users-permissions-modal .modal-actions button:not(.primary-button) {
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(0.141 0.005 285.823);
  background: oklch(1 0 0);
  border: 1px solid oklch(0.92 0.004 286.32);
  gap: 8px;
}

.users-permissions-modal .modal-actions .primary-button {
  border: 0 solid oklch(0.92 0.004 286.32);
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
  gap: 8px;
}

.patient-toast-region.users-toast-region {
  position: fixed;
  top: 24px;
  right: 24px;
  bottom: auto;
  width: 356px;
  z-index: 90;
}

.patient-toast-message.users-toast-message {
  display: flex;
  width: 356px;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #fee2e2;
  border-radius: 8.4px;
  background: #fff1f2;
  color: #dc0000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-transform: none;
}

.patient-toast-message.users-toast-message span {
  white-space: nowrap;
}

.users-toast-icon {
  flex: 0 0 16px;
  fill: currentColor;
  stroke: #fff;
  stroke-width: 2.5;
}

.users-delete-modal .modal-actions button,
.users-delete-modal .modal-actions button:not(.primary-button),
.users-delete-modal .modal-actions button.danger-button {
  display: inline-flex;
  width: auto;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.dentalome-table-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
  background: #fff;
}

.dentalome-table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.dentalome-table-wrap th,
.dentalome-table-wrap td {
  height: 48px;
  padding: 9px 10px;
  border-bottom: 1px solid #dde3eb;
  color: #0f172a;
  font-size: 13.5px;
  line-height: 1.25;
  text-align: left;
  vertical-align: middle;
}

.dentalome-table-wrap th {
  background: #e6f0ff;
  color: #111827;
  font-weight: 600;
}

.dentalome-sort-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.dentalome-sort-header svg {
  color: #6b7280;
}

.dentalome-table-wrap tbody tr:last-child td {
  border-bottom: 1px solid #dde3eb;
}

.dentalome-table-wrap tfoot td {
  height: 52px;
  padding: 0 16px;
  border-bottom: 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
}

.dentalome-empty-cell {
  height: 96px !important;
  text-align: center !important;
  color: #111827 !important;
}

.dentalome-empty-text {
  display: inline-block;
}

.global-list-workspace .link-button {
  color: #005fd8;
  font-weight: 500;
  text-decoration: none;
}

.global-list-workspace .row-actions {
  gap: 14px;
}

.global-list-workspace .plain-icon {
  width: auto;
  height: auto;
  border: 0 solid oklch(0.92 0.004 286.32);
  background: transparent;
  color: oklch(0.141 0.005 285.823);
}

.global-list-workspace .plain-icon:last-child {
  color: oklch(0.577 0.245 27.325);
}

.global-list-workspace.acts-workspace .operations-row-actions .plain-icon,
.global-list-workspace.acts-workspace .operations-row-actions .plain-icon:last-child,
.global-list-workspace.acts-workspace .operations-row-actions .session-shortcut {
  color: #111827;
  opacity: 1;
}

.global-list-workspace.acts-workspace .operations-row-actions .plain-icon.danger {
  color: oklch(0.577 0.245 27.325);
}

.global-list-workspace .money-green,
.global-list-workspace .green-text {
  color: #00a842;
  font-weight: 600;
}

.global-list-workspace.payments-workspace .money-green {
  font-weight: 500;
}

.global-list-workspace .red-text {
  color: #ff0000;
  font-weight: 600;
}

/* Dentalome charges list contract. */
.global-list-workspace.charges-workspace {
  height: calc(100vh - 60px);
  min-height: 0;
  padding: 24px 24px 8px;
  overflow-y: auto;
  background: #f6f7f8;
}

.global-list-workspace.charges-workspace .page-header {
  margin-bottom: 40px;
}

.global-list-workspace.charges-workspace .page-header > div,
.global-list-workspace.charges-workspace .page-header h1,
.global-list-workspace.charges-workspace .page-header p {
  width: 100%;
}

.global-list-workspace.charges-workspace .page-header h1 {
  color: oklch(0.141 0.005 285.823);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
}

.global-list-workspace.charges-workspace .page-header p {
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
}

.charges-filter-row {
  gap: 16px;
  margin-bottom: 16px;
}

.charges-filter-row .payments-date-range-trigger {
  width: 221.648px;
}

.charges-period-control {
  position: relative;
  display: inline-flex;
}

.charges-filter-row .charges-period-trigger {
  width: 140.727px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 8.4px;
  font-weight: 500;
  line-height: 20px;
}

.charges-period-trigger svg {
  margin-left: 8px;
}

.charges-period-menu {
  position: absolute;
  z-index: 80;
  top: 40px;
  left: 0;
  display: grid;
  width: 140.727px;
  padding: 4px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.charges-period-menu button {
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
}

.charges-period-menu button:hover,
.charges-period-menu button.active {
  background: oklch(0.967 0.001 286.375);
}

.charges-workspace .charges-add-button {
  width: 185.906px;
  min-width: 0;
  margin-left: auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 8.4px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.charges-add-button svg {
  margin-right: 8px;
}

.charges-workspace .dentalome-table-shell.footer-outside .dentalome-table-wrap {
  overflow-x: auto;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px 8.4px 0 0;
}

.charges-workspace .dentalome-table-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
  font-size: 14px;
  line-height: 20px;
}

.charges-workspace .dentalome-table-wrap thead {
  background: rgb(2 92 226 / 10%);
}

.charges-workspace .dentalome-table-wrap th,
.charges-workspace .dentalome-table-wrap td {
  border-bottom: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.charges-workspace .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  font-weight: 500;
}

.charges-workspace .dentalome-table-wrap td {
  height: auto;
  padding: 8px;
  font-weight: 400;
}

.charges-workspace .dentalome-table-wrap thead tr,
.charges-workspace .dentalome-table-wrap tbody tr {
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.charges-workspace .dentalome-table-wrap tbody tr:last-child,
.charges-workspace .dentalome-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.charge-amount-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 8.4px;
  background: oklab(0.577 0.217662 0.112464 / 0.1);
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.global-list-workspace.charges-workspace .charges-row-actions {
  display: flex;
  width: 100%;
  gap: 8px;
}

.global-list-workspace.charges-workspace .charges-row-actions .plain-icon,
.global-list-workspace.charges-workspace .charges-row-actions .plain-icon:last-child {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
}

.global-list-workspace.charges-workspace .charges-row-actions .plain-icon.danger {
  color: oklch(0.577 0.245 27.325);
}

.charges-workspace .dentalome-table-outside-footer {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-top: 0;
  border-radius: 0 0 14.4px 14.4px;
  background: #fff;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
}

.charges-total-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.charges-pagination {
  flex: 1;
}

/* Dentalome prosthesis list contract. */
.global-list-workspace.prothese-workspace {
  height: calc(100vh - 60px);
  min-height: 0;
  padding: 24px 24px 8px;
  overflow-y: auto;
  background: #f6f7f8;
}

.global-list-workspace.prothese-workspace .page-header {
  margin-bottom: 24px;
}

.global-list-workspace.prothese-workspace .page-header > div,
.global-list-workspace.prothese-workspace .page-header h1,
.global-list-workspace.prothese-workspace .page-header p {
  width: 100%;
}

.global-list-workspace.prothese-workspace .page-header h1 {
  color: oklch(0.141 0.005 285.823);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
}

.global-list-workspace.prothese-workspace .page-header p {
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
}

.global-list-workspace.prothese-workspace .prothese-toolbar-card {
  min-height: 86px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 14.4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.global-list-workspace.prothese-workspace .prothese-toolbar-top {
  height: 56px;
  align-items: flex-end;
}

.global-list-workspace.prothese-workspace .prothese-search-control {
  height: 56px;
  gap: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
}

.global-list-workspace.prothese-workspace .prothese-search-shell input {
  height: 36px;
  padding: 4px 12px 4px 36px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  font-size: 14px;
  line-height: 20px;
}

.global-list-workspace.prothese-workspace .prothese-search-shell svg {
  left: 12px;
}

.global-list-workspace.prothese-workspace .prothese-filter-button {
  width: 117.555px;
  min-width: 0;
  padding: 8px 12px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.global-list-workspace.prothese-workspace .prothese-add-button {
  width: 163.211px;
  min-width: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 8.4px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.global-list-workspace.prothese-workspace .prothese-filter-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.global-list-workspace.prothese-workspace .prothese-filter-panel .payments-date-range-picker,
.global-list-workspace.prothese-workspace .prothese-filter-panel .payments-date-range-trigger {
  width: 100%;
}

.prothese-workspace .dentalome-table-shell.footer-outside .dentalome-table-wrap {
  overflow-x: auto;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px 8.4px 0 0;
}

.prothese-workspace .dentalome-table-wrap table {
  width: 100%;
  min-width: 1110.578px;
  table-layout: auto;
  font-size: 14px;
  line-height: 20px;
}

.prothese-workspace .dentalome-table-wrap thead {
  background: rgb(2 92 226 / 10%);
}

.prothese-workspace .dentalome-table-wrap th,
.prothese-workspace .dentalome-table-wrap td {
  border-bottom: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.prothese-workspace .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  font-weight: 500;
}

.prothese-workspace .dentalome-table-wrap td {
  height: auto;
  padding: 8px;
  font-weight: 400;
}

.prothese-workspace .dentalome-table-wrap thead tr,
.prothese-workspace .dentalome-table-wrap tbody tr {
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.prothese-workspace .dentalome-table-wrap tbody tr:last-child,
.prothese-workspace .dentalome-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.global-list-workspace.prothese-workspace .prothese-row-actions {
  display: flex;
  width: 152px;
  align-items: center;
  gap: 8px;
}

.global-list-workspace.prothese-workspace .prothese-row-actions .plain-icon,
.global-list-workspace.prothese-workspace .prothese-row-actions .plain-icon:last-child {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
}

.global-list-workspace.prothese-workspace .prothese-row-actions .plain-icon.danger {
  color: oklch(0.577 0.245 27.325);
}

.global-list-workspace.prothese-workspace .prothese-row-actions .prothese-row-pdf-button {
  background: oklch(0.967 0.001 286.375);
}

.global-list-workspace.prothese-workspace .prothese-paye-switch {
  width: 32px;
  height: 18.4px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 33554400px;
  background: oklch(0.92 0.004 286.32);
  color: oklch(0.141 0.005 285.823);
}

.global-list-workspace.prothese-workspace .prothese-paye-switch span {
  width: 16px;
  height: 16px;
}

.global-list-workspace.prothese-workspace .prothese-paye-switch.checked span {
  transform: translateX(14px);
}

.global-list-workspace.prothese-workspace .prothese-paye-switch.checked {
  background: rgb(2, 92, 226);
}

.prothese-workspace .dentalome-table-outside-footer {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-top: 0;
  border-radius: 0 0 14.4px 14.4px;
  background: #fff;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
}

.prothese-total-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.prothese-pagination {
  flex: 1;
}

.global-list-workspace .teeth-pills {
  display: inline-flex;
  gap: 6px;
}

.global-list-workspace .teeth-pills b {
  min-width: 28px;
  padding: 3px 8px;
  border: 1px solid #c8f5d8;
  border-radius: 999px;
  background: #e9fff1;
  color: #008b3a;
  font-size: 12px;
  font-weight: 500;
}

.global-list-workspace .teeth-pills.empty b {
  border-color: transparent;
  background: transparent;
  color: #111827;
}

.patients-workspace .page-header {
  margin-bottom: 12px;
}

.patients-workspace {
  padding-top: 24px;
  padding-right: 24px;
  padding-bottom: 8px;
  padding-left: 24px;
  background: rgb(246, 247, 248);
}

.patients-workspace .page-header > div:first-child {
  width: 300px;
}

.patients-workspace .page-header h1 {
  color: oklch(0.141 0.005 285.823);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
}

.patients-workspace .page-header p {
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
}

.patients-tabs {
  display: flex;
  width: fit-content;
  min-height: 36px;
  margin-bottom: 16px;
  padding: 3px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: oklch(0.967 0.001 286.375);
  color: oklch(0.552 0.016 285.938);
  line-height: 24px;
}

.patients-tabs.dentalome-segmented-tabs button {
  height: 27px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patients-tabs.dentalome-segmented-tabs button.active {
  background: oklch(1 0 0);
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
}

.patients-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.patients-search-input {
  width: 300px;
  padding: 4px 12px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.patients-filter-row .dentalome-blue-button {
  min-width: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 8.4px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patients-workspace .dentalome-table-wrap table {
  min-width: 0;
}

.patients-workspace .dentalome-table-shell.footer-outside .dentalome-table-wrap {
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px 8.4px 0 0;
}

.patients-workspace .dentalome-table-wrap thead {
  background: rgb(2 92 226 / 10%);
}

.patients-workspace .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  border-bottom: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patients-workspace .dentalome-table-wrap tbody tr,
.patients-workspace .dentalome-table-wrap tbody td {
  height: 49px;
}

.patients-workspace .dentalome-table-wrap thead tr,
.patients-workspace .dentalome-table-wrap tbody tr {
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.patients-workspace #patients-directory-table tbody tr {
  border: 0 solid oklch(0.92 0.004 286.32);
  font-size: 14px;
  line-height: 20px;
}

.patients-workspace .dentalome-table-wrap tbody tr:last-child {
  border-bottom: 0;
}

.patients-workspace .dentalome-table-wrap tbody tr:last-child td {
  height: 48.5px;
  border-bottom: 0;
}

.patients-workspace .dentalome-table-wrap tbody tr:last-child {
  height: 48.5px;
}

.patients-workspace .dentalome-table-wrap tbody td {
  padding: 8px;
  border-bottom: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.patients-workspace .dentalome-table-outside-footer {
  width: 100%;
  height: 69px;
  min-height: 69px;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
}

.patients-workspace .dentalome-table-outside-footer:not(:has(.patients-pagination)) {
  display: flex;
  height: 53px;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: 0 0 14.4px 14.4px;
}

.patients-workspace .dentalome-table-outside-footer:not(:has(.patients-pagination)) .patients-table-footer {
  display: flex;
  width: 100%;
  height: 20px;
  min-height: 20px;
  align-items: center;
  justify-content: space-between;
}

.patients-workspace .dentalome-table-outside-footer:not(:has(.patients-pagination)) .patients-table-footer > span {
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.patients-workspace .dentalome-table-outside-footer .patients-table-footer {
  height: 36px;
  min-height: 36px;
}

.patients-workspace .dentalome-table-wrap tfoot td {
  height: 64px;
  padding: 0 16px;
}

.patients-workspace .dentalome-table-wrap tbody tr[id^="patient-directory-row-"] {
  cursor: pointer;
}

.patients-workspace .dentalome-table-wrap tbody tr[id^="patient-directory-row-"]:hover td {
  background: #f4f8ff;
}

.patients-workspace .dentalome-table-wrap tbody tr.patient-directory-row-active td {
  background: #f4f8ff;
}

.patients-workspace .dentalome-table-wrap tbody tr.patient-directory-row-active td:first-child {
  box-shadow: inset 3px 0 0 #075ee8;
}

.patients-table-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 64px;
  width: 100%;
}

.patients-table-footer > span:first-child {
  position: absolute;
  left: 0;
  color: #6b7280;
}

.patients-page-loading {
  position: absolute;
  left: 96px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}

.patient-toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  pointer-events: none;
}

.patient-toast-region:has(.document-generation-toast) {
  width: 356px;
  min-width: 356px;
  height: 54px;
  min-height: 54px;
}

.patient-toast-message {
  min-width: 280px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  color: #111827;
  font-size: 14px;
  line-height: 20px;
}

.patient-toast-message.document-generation-toast {
  width: 356px;
  min-width: 356px;
  max-width: 356px;
  height: 54px;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid rgb(191, 252, 217);
  border-radius: 8px;
  background: rgb(236, 253, 243);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  color: rgb(0, 138, 46);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
}

.agenda-toast-region {
  top: 24px;
  bottom: auto;
}

.patient-toast-message.agenda-success-toast {
  display: flex;
  align-items: center;
  gap: 9px;
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #008a2e;
  font-size: 13px;
  font-weight: 500;
}

.patient-toast-message.agenda-success-toast svg {
  flex: 0 0 auto;
}

.document-generation-toast-icon {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgb(0, 138, 46);
  color: rgb(236, 253, 243);
}

.document-generation-toast-text {
  min-width: 0;
  font: inherit;
  color: inherit;
}

.account-profile-toast-region {
  top: 24px;
  right: 24px;
  bottom: auto;
}

.operation-toast-region {
  top: 24px;
  right: 24px;
  bottom: auto;
  width: 356px;
  min-width: 356px;
  height: 53.5px;
  min-height: 53.5px;
}

.operation-toast-list {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.patient-toast-message.operation-success-toast {
  box-sizing: border-box;
  width: 356px;
  min-width: 356px;
  max-width: 356px;
  height: 53.5px;
  min-height: 53.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgb(191, 252, 217);
  border-radius: 8px;
  background: rgb(236, 253, 243);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: rgb(0, 138, 46);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  text-align: start;
}

.operation-success-toast-icon {
  box-sizing: border-box;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  margin: 0 4px 0 -3px;
  color: rgb(0, 138, 46);
}

.operation-success-toast-icon svg {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 auto;
  margin-left: -1px;
}

.operation-success-toast-content {
  min-width: 0;
  display: flex;
  flex: 0 1 auto;
  gap: 2px;
}

.operation-success-toast-content .document-generation-toast-text {
  font-weight: 500;
}

.account-profile-toast-message {
  min-width: 356px;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
}

.account-profile-toast-message svg {
  flex: 0 0 auto;
}

.account-profile-toast-message.success {
  border-color: #dcfce7;
  background: #ecfdf3;
  color: #3f7f4b;
}

.account-profile-toast-message.success svg circle {
  fill: #4f9c5f;
  stroke: #4f9c5f;
}

.account-profile-toast-message.success svg path {
  stroke: #fff;
}

.account-profile-toast-message.error {
  border-color: #fee2e2;
  background: #fef2f2;
  color: #b42318;
}

@media (max-width: 640px) {
  .patient-toast-region {
    right: 16px;
    bottom: 16px;
  }
}

.patients-pagination {
  display: inline-flex;
  width: calc(100% - 74px);
  margin-left: 74px;
  align-items: center;
  justify-content: center;
  color: oklch(0.141 0.005 285.823);
}

.patients-pagination-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.patients-pagination-list > li {
  display: list-item;
}

.patients-pagination button,
.patients-pagination-link,
.patients-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  gap: 8px;
  text-decoration: none;
}

.patients-pagination button:first-child,
.patients-pagination button:last-child,
.patients-pagination-previous,
.patients-pagination-next {
  width: auto;
  min-width: 0;
  gap: 4px;
  padding: 8px 12px;
  color: oklch(0.141 0.005 285.823);
}

.patients-pagination button.active,
.patients-pagination-link.active {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: oklch(1 0 0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.patients-pagination-link:hover:not(.disabled) {
  background: oklch(0.967 0.001 286.375);
  color: oklch(0.21 0.006 285.885);
}

.patients-pagination button:disabled {
  color: #9aa3b2;
}

.patients-pagination-link.disabled {
  opacity: 0.5;
  cursor: default;
}

.patient-directory-actions {
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.patient-directory-actions .plain-icon.small {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: oklch(0.141 0.005 285.823);
}

.patient-directory-actions .plain-icon.small.danger-icon {
  color: oklch(0.577 0.245 27.325);
}

.patient-directory-actions .plain-icon.small.restore-icon {
  color: #22c55e;
}

.catalog-acts-workspace .dentalome-table-wrap table {
  min-width: 920px;
}

.catalog-acts-workspace .page-header {
  margin-bottom: 12px;
}

.catalog-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.catalog-search-input {
  width: 448px;
}

.catalog-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.catalog-toolbar-row .dentalome-segmented-tabs {
  margin: 0;
}

.catalog-acts-workspace .row-actions {
  opacity: 1;
}

.global-list-workspace.catalog-acts-workspace {
  padding: 24px 24px 44px;
}

.global-list-workspace.catalog-acts-workspace .page-header > div:first-child {
  width: calc(100% - 156.25px);
}

.global-list-workspace.catalog-acts-workspace .page-header h1,
.global-list-workspace.catalog-acts-workspace .page-header p {
  width: 100%;
}

.global-list-workspace.catalog-acts-workspace .page-header h1 {
  color: oklch(0.141 0.005 285.823);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.6px;
}

.global-list-workspace.catalog-acts-workspace .page-header p {
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
}

.catalog-acts-workspace .catalog-filter-row {
  height: 36px;
  margin-bottom: 24px;
}

.catalog-acts-workspace .catalog-search-input {
  width: 448px;
  height: 36px;
  padding: 4px 12px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
}

.catalog-acts-workspace .dentalome-blue-button {
  height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8.4px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.catalog-acts-workspace .dentalome-blue-button svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.catalog-acts-workspace .dentalome-table-shell {
  width: 100%;
}

.catalog-acts-workspace .dentalome-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px 8.4px 0 0;
}

.catalog-acts-workspace .dentalome-table-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
  font-size: 14px;
  line-height: 20px;
}

.catalog-acts-workspace .dentalome-table-wrap thead {
  background: rgb(2 92 226 / 10%);
}

.catalog-acts-workspace .dentalome-table-wrap th,
.catalog-acts-workspace .dentalome-table-wrap td {
  border-bottom: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  padding: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
  text-align: start;
}

.catalog-acts-workspace .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  font-weight: 500;
}

.catalog-acts-workspace .dentalome-table-wrap td {
  height: 37px;
}

.catalog-acts-workspace .dentalome-table-wrap thead tr,
.catalog-acts-workspace .dentalome-table-wrap tbody tr {
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
  font-size: 14px;
  line-height: 20px;
}

.catalog-acts-workspace .dentalome-table-wrap tbody tr:last-child,
.catalog-acts-workspace .dentalome-table-wrap tbody tr:last-child td {
  height: 36.5px;
  border-bottom: 0 solid oklch(0.92 0.004 286.32);
}

.catalog-acts-workspace .catalog-color-only {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
}

.catalog-acts-workspace .catalog-color-only i {
  width: 32px;
  height: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 6.4px;
}

.catalog-acts-workspace .catalog-act-name-cell {
  font-weight: 500;
}

.catalog-acts-workspace .catalog-act-price-cell {
  font-variant-numeric: tabular-nums;
}

.catalog-acts-workspace .row-actions .plain-icon.small {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0 solid oklch(0.92 0.004 286.32);
  background: transparent;
  color: oklch(0.141 0.005 285.823);
}

.catalog-acts-workspace .row-actions .plain-icon.small svg {
  width: 16px;
  height: 16px;
}

.catalog-acts-workspace .dentalome-table-outside-footer {
  display: flex;
  width: 100%;
  height: 69px;
  align-items: center;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-top: 0;
  border-radius: 0 0 14.4px 14.4px;
  background: #fff;
}

.catalog-acts-total-label {
  flex: 0 0 auto;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.catalog-acts-pagination {
  display: flex;
  flex: 1;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.medication-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.medication-category-filter {
  position: relative;
  display: inline-flex;
  flex: 0 0 190px;
  width: 190px;
  height: 36px;
  align-items: center;
}

.medication-category-select {
  width: 100%;
  height: 36px;
  appearance: none;
  padding: 4px 32px 4px 34px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
  cursor: pointer;
}

.medication-category-select:focus-visible {
  outline: 2px solid rgb(2 92 226 / 22%);
  outline-offset: 1px;
  border-color: rgb(2 92 226);
}

.medication-category-filter-icon,
.medication-category-filter-chevron {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  color: oklch(0.552 0.016 285.938);
}

.medication-category-filter-icon {
  left: 11px;
}

.medication-category-filter-chevron {
  right: 10px;
}

.global-list-workspace.medications-workspace {
  padding: 24px 24px 44px;
}

.global-list-workspace.medications-workspace .page-header {
  margin-bottom: 24px;
}

.global-list-workspace.medications-workspace .page-header > div:first-child,
.global-list-workspace.medications-workspace .page-header h1,
.global-list-workspace.medications-workspace .page-header p {
  width: 100%;
}

.global-list-workspace.medications-workspace .page-header h1 {
  color: oklch(0.141 0.005 285.823);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.6px;
}

.global-list-workspace.medications-workspace .page-header p {
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
}

.medications-workspace .dentalome-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px 8.4px 0 0;
}

.medications-workspace .dentalome-table-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}

.medications-workspace .dentalome-table-wrap thead {
  background: rgb(2 92 226 / 10%);
}

.medications-workspace .dentalome-table-wrap th,
.medications-workspace .dentalome-table-wrap td {
  border-bottom: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.medications-workspace .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  font-weight: 500;
}

.medications-workspace .dentalome-table-wrap td {
  height: 49px;
  padding: 8px;
  font-weight: 400;
}

.medications-workspace .dentalome-table-wrap thead tr,
.medications-workspace .dentalome-table-wrap tbody tr {
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
  font-size: 14px;
  line-height: 20px;
}

.medications-workspace .dentalome-table-wrap tbody tr:last-child {
  height: 48.5px;
  border-bottom: 0;
}

.medications-workspace .dentalome-table-wrap tbody tr:last-child td {
  height: 48.5px;
  border-bottom: 0;
}

.medications-workspace .dentalome-table-outside-footer {
  display: flex;
  width: 100%;
  height: 69px;
  align-items: center;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-top: 0;
  border-radius: 0 0 14.4px 14.4px;
  background: #fff;
}

.medications-total-label {
  flex: 0 0 auto;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.medications-pagination {
  display: flex;
  flex: 1;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.medications-workspace .row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.medications-workspace .row-actions .plain-icon.small {
  display: inline-flex;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
}

.medications-workspace .row-actions .plain-icon.small svg {
  width: 16px;
  height: 16px;
}

.medication-scope-tabs {
  flex: 0 0 auto;
  height: 34px;
  padding: 0;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: transparent;
}

.medication-scope-tabs button {
  height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: 0;
  background: oklch(1 0 0);
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.medication-scope-tabs button + button {
  border-left: 1px solid oklch(0.92 0.004 286.32);
}

.medication-scope-tabs button.active {
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  box-shadow: none;
}

.medications-workspace .dentalome-segmented-tabs.single-tab {
  height: 36px;
  padding: 3px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: oklch(0.967 0.001 286.375);
}

.medications-workspace .dentalome-segmented-tabs.single-tab button {
  height: 27px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
}

.medication-search-input {
  width: 256px;
  height: 36px;
  padding: 4px 12px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
}

.medications-workspace .dentalome-blue-button {
  height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8.4px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.medications-workspace .dentalome-blue-button svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

/* Dentalome keeps these directories on the compact catalog contract, even
   when their fixed-width controls extend beyond a phone viewport. */
.global-list-workspace.users-workspace,
.global-list-workspace.laboratories-workspace {
  padding: 24px 24px 44px;
}

.users-workspace .page-header,
.laboratories-workspace .page-header {
  margin-bottom: 24px;
}

.users-workspace .page-header > div:first-child,
.users-workspace .page-header h1,
.users-workspace .page-header p,
.laboratories-workspace .page-header > div:first-child,
.laboratories-workspace .page-header h1,
.laboratories-workspace .page-header p {
  width: 100%;
}

.users-workspace .page-header h1,
.laboratories-workspace .page-header h1 {
  color: oklch(0.141 0.005 285.823);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
}

.users-workspace .page-header p,
.laboratories-workspace .page-header p {
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
}

.users-workspace .users-tabs {
  height: 36px;
  padding: 3px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: oklch(0.967 0.001 286.375);
}

.users-workspace .users-tabs button {
  display: flex;
  height: 27px;
  padding: 4px 8px;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.users-workspace .users-tabs button.active {
  background: oklch(1 0 0);
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
}

.users-workspace .users-add-button {
  width: 228.75px;
  min-width: 228.75px;
  height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8.4px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.users-workspace .dentalome-table-wrap table {
  width: 100%;
  min-width: 519.5px;
}

.users-workspace .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.users-workspace .dentalome-table-wrap td {
  height: 49px;
  padding: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.users-workspace .dentalome-table-wrap tbody tr:last-child td {
  height: 48.5px;
  border-bottom: 0;
}

.users-workspace .users-row-actions {
  gap: 8px;
}

.users-workspace .users-row-actions .plain-icon.small {
  display: inline-flex;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
}

.users-workspace .users-row-actions .plain-icon.small svg {
  width: 16px;
  height: 16px;
}

.users-workspace .dentalome-table-outside-footer,
.laboratories-workspace .dentalome-table-outside-footer {
  min-height: 54px;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-top: 0;
  border-radius: 0 0 14.4px 14.4px;
  background: #fff;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.laboratories-workspace .page-header p {
  white-space: nowrap;
}

.laboratories-workspace .dentalome-segmented-tabs {
  height: 36px;
  padding: 3px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: oklch(0.967 0.001 286.375);
}

.laboratories-workspace .dentalome-segmented-tabs button {
  display: flex;
  height: 27px;
  padding: 4px 8px;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.laboratories-workspace .dentalome-segmented-tabs button.active {
  background: oklch(1 0 0);
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
}

.laboratories-workspace .dentalome-blue-button {
  width: auto;
  min-width: 0;
  height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8.4px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.laboratories-workspace .dentalome-blue-button svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.laboratories-workspace .dentalome-table-wrap table {
  width: 100%;
  min-width: 0;
}

.laboratories-workspace .dentalome-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px 8.4px 0 0;
}

.laboratories-workspace .dentalome-table-wrap thead {
  background: rgb(2 92 226 / 10%);
}

.laboratories-workspace .dentalome-table-wrap th {
  height: 40px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.laboratories-workspace .dentalome-table-wrap td {
  height: 49px;
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.laboratories-workspace .dentalome-table-wrap th,
.laboratories-workspace .dentalome-table-wrap td {
  border-bottom: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  white-space: nowrap;
}

.laboratories-workspace .dentalome-table-wrap thead tr,
.laboratories-workspace .dentalome-table-wrap tbody tr {
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
  font-size: 14px;
  line-height: 20px;
}

.laboratories-workspace .dentalome-table-wrap tbody tr:last-child td {
  height: 48.5px;
  border-bottom: 0;
}

.laboratories-workspace .dentalome-table-wrap tbody tr:last-child {
  height: 48.5px;
  border-bottom: 0;
}

.laboratories-workspace .row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.laboratories-workspace .row-actions .plain-icon.small {
  display: inline-flex;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
}

.laboratories-workspace .row-actions .plain-icon.small svg {
  width: 16px;
  height: 16px;
}

.catalog-color-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
}

.catalog-color-only i {
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
}

.catalog-form-modal {
  width: min(760px, calc(100vw - 48px));
}

.catalog-acte-form-modal {
  position: relative;
  display: grid;
  width: min(448px, calc(100vw - 48px));
  gap: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.catalog-acte-form-modal .modal-head {
  width: calc(100% + 48px);
  height: 35px;
  min-height: 35px;
  align-items: flex-start;
  margin: 0 -24px;
  padding: 0 24px 16px;
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.catalog-acte-form-modal .modal-head h2 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.catalog-acte-form-modal .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  display: block;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  opacity: 0.7;
  gap: normal;
  box-shadow: none;
}

.catalog-acte-form-modal .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.catalog-medication-form-modal,
.catalog-laboratory-form-modal,
.laboratory-nature-form-modal {
  width: min(512px, calc(100vw - 48px));
}

.catalog-medication-form-modal {
  position: relative;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.laboratory-nature-form-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  gap: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.catalog-laboratory-form-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  gap: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.catalog-medication-form-modal .modal-head {
  align-items: flex-start;
  height: 18px;
  min-height: 18px;
  margin-bottom: 33px;
}

.laboratory-nature-form-modal .modal-head {
  align-items: flex-start;
  height: 18px;
  min-height: 18px;
  margin-bottom: 17px;
}

.catalog-laboratory-form-modal .modal-head {
  align-items: flex-start;
  height: 18px;
  min-height: 18px;
  margin-bottom: 17px;
}

.catalog-medication-form-modal .modal-head h2 {
  width: 100%;
  color: #171717;
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.laboratory-nature-form-modal .modal-head h2 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
  text-align: left;
}

.catalog-laboratory-form-modal .modal-head h2 {
  width: 100%;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
  text-align: left;
}

.catalog-medication-form-modal .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  border: 0;
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: #171717;
  box-shadow: none;
}

.laboratory-nature-form-modal .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  display: block;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  opacity: 0.7;
  gap: normal;
  box-shadow: none;
}

.catalog-laboratory-form-modal .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  display: block;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  opacity: 0.7;
  gap: normal;
  box-shadow: none;
}

.catalog-medication-form-modal .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.laboratory-nature-form-modal .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.catalog-laboratory-form-modal .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.catalog-source-form-grid,
.laboratory-form-grid,
.laboratory-nature-form-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.catalog-combobox-field {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #3f4651;
  font-weight: 800;
}

.catalog-source-form-grid label,
.catalog-source-form-grid .catalog-combobox-field {
  color: #242932;
}

.catalog-medication-form-modal .catalog-source-form-grid label,
.catalog-medication-form-modal .catalog-source-form-grid .catalog-combobox-field {
  gap: 12px;
  color: #171717;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.catalog-laboratory-field {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.catalog-laboratory-field[data-invalid="true"] {
  color: oklch(0.577 0.245 27.325);
}

.catalog-laboratory-form-modal .catalog-laboratory-field-label,
.laboratory-nature-form-modal .catalog-laboratory-field-label {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.catalog-laboratory-field-content {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 6px;
  line-height: 20px;
}

.catalog-source-form-grid input {
  height: 36px;
  min-height: 40px;
  border-color: #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

.catalog-medication-form-modal .catalog-source-form-grid input,
.catalog-medication-form-modal .catalog-source-form-grid .combobox-trigger {
  width: 100%;
  height: 36px;
  min-height: 36px;
  border-color: #e5e7eb;
  border-radius: 8.4px;
  padding: 4px 12px;
  background: #fff;
  color: #171717;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.laboratory-nature-form-modal .catalog-laboratory-field input {
  width: 100%;
  height: 36px;
  min-height: 36px;
  border-color: #e5e7eb;
  border-radius: 8.4px;
  padding: 4px 12px;
  background: #fff;
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.catalog-laboratory-form-modal .catalog-laboratory-field input {
  width: 100%;
  height: 36px;
  min-height: 36px;
  border-color: #e5e7eb;
  border-radius: 8.4px;
  padding: 4px 12px;
  background: #fff;
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.catalog-laboratory-form-modal .catalog-laboratory-field .catalog-field-error,
.laboratory-nature-form-modal .catalog-laboratory-field .catalog-field-error {
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.catalog-laboratory-form-modal .catalog-laboratory-field input:focus,
.laboratory-nature-form-modal .catalog-laboratory-field input:focus {
  border-color: rgb(2, 92, 226);
  outline: none;
  box-shadow: 0 0 0 3px rgb(2 92 226 / 50%), 0 1px 2px rgb(0 0 0 / 5%);
}

.catalog-acte-form-modal .catalog-source-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}

.catalog-acte-form-modal .catalog-source-form-grid .catalog-form-field,
.catalog-acte-form-modal .catalog-source-form-grid .catalog-combobox-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  color: oklch(0.141 0.005 285.823);
}

.catalog-acte-form-modal .catalog-source-form-grid .field-label {
  height: 19.25px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.catalog-acte-form-modal .catalog-source-form-grid input,
.catalog-acte-form-modal .catalog-source-form-grid .combobox-trigger {
  width: 100%;
  height: 36px;
  min-height: 36px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 4px 12px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.catalog-acte-form-modal .catalog-source-form-grid .combobox-trigger {
  padding: 8px 12px;
  gap: 8px;
  font-weight: 500;
  text-align: center;
}

.catalog-acte-form-modal .catalog-source-form-grid .modal-actions {
  width: calc(100% + 48px);
  height: 53px;
  gap: 8px;
  margin: 0 -24px;
  padding: 16px 24px 0;
  border-top: 1px solid oklch(0.92 0.004 286.32);
}

.catalog-acte-form-modal .catalog-source-form-grid .modal-actions button {
  width: auto;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.catalog-acte-form-modal .catalog-source-form-grid input:focus,
.catalog-acte-form-modal .catalog-source-form-grid .combobox-trigger:focus-visible {
  outline: 0;
  border-color: #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.catalog-source-form-grid .modal-actions {
  margin: 4px -24px -12px;
  padding: 16px 24px 0;
  border-top: 1px solid #eef0f3;
}

.catalog-medication-form-modal .catalog-source-form-grid .modal-actions {
  height: 53px;
  gap: 8px;
  margin: 0 -24px;
  padding: 16px 24px 0;
}

.catalog-medication-form-modal .catalog-source-form-grid .modal-actions button,
.catalog-medication-form-modal .catalog-source-form-grid .modal-actions .primary-button {
  width: auto;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.laboratory-nature-form-modal .laboratory-nature-form-grid .modal-actions {
  gap: 8px;
  margin: 4px -24px 0;
  padding: 12px 24px 0;
  border-top: 1px solid #eef0f3;
}

.laboratory-nature-form-modal .laboratory-nature-form-grid .modal-actions button,
.laboratory-nature-form-modal .laboratory-nature-form-grid .modal-actions .primary-button {
  width: auto;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.laboratory-nature-form-modal .laboratory-nature-form-grid .modal-actions button:not(.primary-button),
.catalog-laboratory-form-modal .laboratory-form-grid .modal-actions button:not(.primary-button) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: oklch(0.92 0.004 286.32);
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
}

.catalog-laboratory-form-modal .laboratory-form-grid .modal-actions {
  gap: 8px;
  margin: 4px -24px 0;
  padding: 12px 24px 0;
  border-top: 1px solid #eef0f3;
}

.catalog-laboratory-form-modal .laboratory-form-grid .modal-actions button,
.catalog-laboratory-form-modal .laboratory-form-grid .modal-actions .primary-button {
  width: auto;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.catalog-laboratory-form-modal .laboratory-form-grid .modal-actions .primary-button {
  gap: 8px;
  padding-right: 16px;
  padding-left: 16px;
  border: 0 solid oklch(0.92 0.004 286.32);
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
  box-shadow: none;
}

.laboratory-nature-form-modal .laboratory-nature-form-grid .modal-actions .primary-button {
  gap: 8px;
  padding-right: 16px;
  padding-left: 16px;
  border: 0 solid oklch(0.92 0.004 286.32);
  color: oklch(0.97 0.014 254.604);
  box-shadow: none;
}

.catalog-laboratory-form-modal .laboratory-form-grid .modal-actions .primary-button:hover,
.laboratory-nature-form-modal .laboratory-nature-form-grid .modal-actions .primary-button:hover {
  background: oklab(0.519343 -0.0356103 -0.213735 / 0.9);
}

.catalog-source-form-grid .primary-button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: #025ce2;
  color: #fff;
  padding: 0 17px;
}

.catalog-category-combobox {
  position: relative;
  z-index: 4;
}

.catalog-category-combobox.open .combobox-trigger svg {
  transform: rotate(180deg);
}

.catalog-category-menu {
  max-height: 260px;
}

.catalog-category-swatch {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
}

.laboratory-nature-form-modal .primary-button {
  border-color: #025ce2;
  background: #025ce2;
  color: #fff;
}

.catalog-form-error {
  grid-column: 1 / -1;
}

.catalog-field-error {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.catalog-form-grid textarea {
  min-height: 96px;
}

.dentalome-notes-workspace {
  height: calc(100vh - 60px);
  min-height: 0;
  padding: 24px 24px 8px;
  overflow: hidden;
  background: #f6f7f8;
}

.dentalome-notes-workspace .page-header {
  height: 56px;
  gap: 16px;
  margin-bottom: 20px;
}

.dentalome-notes-workspace .page-header h1 {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.dentalome-notes-workspace .page-header p {
  margin-top: 4px;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
}

.dentalome-notes-workspace .page-header-actions {
  gap: 8px;
}

.dentalome-notes-workspace .page-header-actions button {
  height: 32px;
  min-height: 32px;
  gap: 6px;
  padding: 0 10px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.dentalome-notes-workspace .page-header-actions button:first-child {
  width: 137.133px;
}

.notes-parity-layout {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr) 224px;
  gap: 16px;
  height: calc(100vh - 168px);
  min-height: 0;
}

.notes-list-panel,
.notes-main-panel,
.notes-category-panel {
  overflow: hidden;
  border: 1px solid #dfe4ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.03);
}

.notes-list-panel,
.notes-category-panel {
  display: flex;
  flex-direction: column;
}

.notes-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 42px;
  min-height: 42px;
  flex: 0 0 42px;
  box-sizing: border-box;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.notes-list-panel > .notes-panel-title {
  justify-content: flex-start;
  gap: 8px;
}

.notes-category-panel > .notes-panel-title {
  height: 46px;
  min-height: 46px;
  flex-basis: 46px;
  padding: 16px 16px 12px;
}

.notes-panel-title span {
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  height: 17px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 999px;
  color: oklch(0.141 0.005 285.823);
  font-size: 10px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: 0;
  background: transparent;
}

.notes-panel-heading {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
  letter-spacing: inherit !important;
}

.notes-search-box {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 12px 12px 8px;
}

.notes-search-box svg {
  position: absolute;
  left: 11px;
  color: #8a93a3;
}

.notes-search-box input {
  display: inline-block;
  width: 100%;
  height: 32px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 4px 12px 4px 32px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  line-height: 20px;
}

.notes-search-box input::placeholder {
  color: #71717a;
}

.notes-search-box input:focus {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, 0.5), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.notes-active-category-filter {
  flex: 0 0 32.75px;
  height: 32.75px;
  padding: 0 12px 8.25px;
}

.notes-active-category-filter button {
  display: inline-flex;
  height: 24.5px;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 4px 10px;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  line-height: 16.5px;
  transition: opacity 0.15s ease;
}

.notes-active-category-filter button:hover {
  opacity: 0.8;
}

.notes-mini-empty {
  display: grid;
  place-items: center;
  gap: 4px;
  margin: 0 12px;
  min-height: 114px;
  border: 1px dashed #dfe4ec;
  border-radius: 12px;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
}

.notes-mini-empty strong,
.notes-main-empty strong {
  color: #111827;
}

.notes-mini-list-viewport {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.notes-mini-list-viewport::-webkit-scrollbar {
  display: none;
}

.notes-mini-list {
  display: grid;
  width: max-content;
  min-width: 100%;
  grid-auto-rows: 69px;
  gap: 4px;
  padding: 0 8px 12px;
}

.notes-mini-row {
  position: relative;
  display: flex;
  width: max-content;
  min-width: 100%;
  min-height: 69px;
  align-items: stretch;
  overflow: hidden;
  border: 0;
  border-left: 4px solid transparent;
  border-radius: 14.4px;
  background: #fff;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.notes-mini-row.active {
  background: transparent;
  box-shadow: 0 0 0 1px #e4e4e7, 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.notes-mini-row > button:first-child {
  width: auto;
  flex: 1 0 auto;
  min-width: 0;
  min-height: 69px;
  border: 0;
  padding: 12px 8px 12px 12px;
  background: transparent;
  text-align: left;
}

.notes-mini-row > button:first-child:focus {
  outline: 1px auto rgba(2, 92, 226, 0.5);
}

.notes-mini-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.notes-mini-row strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes-mini-category {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 0;
  padding: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 500;
  line-height: 15px;
}

.notes-mini-category i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
}

.notes-mini-delete {
  position: static;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 30px;
  height: 28px;
  margin: auto 4px auto 0;
  border: 0;
  background: transparent;
  color: #9ca3af;
  opacity: 0;
  transform: none;
  transition: opacity .15s ease, color .15s ease;
}

.notes-mini-row:hover .notes-mini-delete,
.notes-mini-delete:focus-visible {
  opacity: 1;
}

.notes-mini-delete:hover {
  color: #ef4444;
}

.notes-main-panel {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.notes-main-detail-panel {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 20px;
}

.notes-main-empty,
.notes-select-empty {
  display: grid;
  place-items: center;
  gap: 12px;
  color: #6b7280;
  text-align: center;
}

.notes-select-empty {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
}

.notes-empty-icon-stack {
  position: relative;
}

.notes-empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid #cfe0ff;
  border-radius: 16px;
  background: #eaf2ff;
  color: #2f80ed;
}

.notes-select-empty .notes-empty-icon {
  width: 80px;
  height: 80px;
  border-color: oklab(0.92 0.00112401 -0.00383883 / 0.5);
  border-radius: 16px;
  background: linear-gradient(to right bottom, oklab(0.967 0.000281923 -0.000959437 / 0.8), oklab(0.967 0.000281923 -0.000959437 / 0.4));
  color: oklab(0.552 0.00439355 -0.015385 / 0.5);
}

.notes-empty-icon-note {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: #fff;
  color: oklab(0.552 0.00439355 -0.015385 / 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.notes-select-empty-copy {
  display: grid;
  width: 240px;
  gap: 6px;
}

.notes-main-empty p {
  margin: 0;
  line-height: 1.6;
}

.notes-select-empty p {
  max-width: 260px;
  margin: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 12px;
  line-height: 19.5px;
}

.notes-select-empty strong {
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.notes-detail-card {
  display: flex;
  min-width: 0;
  width: 100%;
  height: 100%;
  flex-direction: column;
}

.notes-detail-header {
  display: flex;
  width: 100%;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.notes-detail-leading {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 12px;
}

.notes-detail-navigation {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.notes-detail-navigation button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #e4e4e7;
  border-radius: 8.4px;
  padding: 0;
  background: #fff;
  color: #09090b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.notes-detail-navigation button:disabled {
  cursor: default;
  opacity: 0.5;
}

.notes-detail-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.notes-detail-header h2 {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: #09090b;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes-detail-category {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border-radius: 999px;
  padding: 2px 10px;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  line-height: 16.5px;
}

.notes-detail-category i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
}

.notes-detail-header .dentalome-download-button {
  width: auto;
  min-width: 0;
  height: 36px;
  flex: 0 0 auto;
  align-self: flex-start;
  border: 0;
  border-radius: 8.4px;
  padding: 8px 12px;
  background: #025ce2;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.notes-detail-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid #e4e4e7;
  border-radius: 14.4px;
  background: #fff;
  padding: 20px;
}

.notes-detail-body h3 {
  margin: 0 0 16px;
  color: #09090b;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.notes-detail-body p {
  margin: 0;
  color: #111827;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.notes-category-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-top: 28px;
  color: #8a93a3;
  font-size: 12px;
}

.notes-category-empty button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 600;
}

.notes-category-list-viewport {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.notes-category-list-viewport::-webkit-scrollbar {
  display: none;
}

.notes-category-list {
  display: grid;
  width: max-content;
  min-width: 100%;
  gap: 6px;
  padding: 8px;
}

.notes-category-list > button,
.notes-category-select {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-left: 4px solid transparent;
  border-radius: 0;
  text-align: left;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.notes-category-row {
  position: relative;
  width: max-content;
  min-width: 100%;
  min-height: 64px;
  overflow: hidden;
  border-left: 4px solid transparent;
  border-radius: 14.4px;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.notes-category-row.active {
  background: transparent;
  box-shadow: none;
}

.notes-category-row.active .notes-category-copy {
  padding-right: 30px;
}

.notes-category-select {
  width: max-content;
  min-width: 100%;
  gap: 10px;
  border: 0 solid oklch(0.92 0.004 286.32);
  padding: 10px 12px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.notes-category-row:not(.active) .notes-category-select:hover {
  opacity: 0.9;
}

.notes-category-initial {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 10.4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.notes-category-copy {
  display: block;
  min-width: 0;
  flex: 1;
}

.notes-category-name {
  display: block;
  overflow: hidden;
  color: #09090b;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes-category-count {
  display: inline;
  color: #71717a;
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
}

.notes-category-actions {
  position: absolute;
  top: 50%;
  right: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.15s ease;
}

.notes-category-row:hover .notes-category-actions,
.notes-category-row:focus-within .notes-category-actions,
.notes-category-row.active .notes-category-actions {
  opacity: 1;
}

.notes-category-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 0;
  background: oklab(1 0 0 / 0.8);
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  gap: 8px;
  box-shadow: none;
}

.notes-category-actions button:hover {
  color: #111827;
}

.notes-category-actions button:last-child:hover {
  color: #dc2626;
}

.note-form-modal {
  width: min(768px, calc(100vw - 48px));
  max-height: min(90vh, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding: 24px 24px 0;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.note-category-modal {
  position: relative;
  width: min(500px, calc(100vw - 48px));
  display: grid;
  gap: 16px;
  border: 1px solid #e4e4e7;
  border-radius: 10.4px;
  padding: 24px 24px 16px;
  color: #09090b;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.note-category-modal .modal-head {
  height: 35px;
  margin: 0 -24px;
  padding: 0 24px 16px;
  border-bottom: 1px solid #e4e4e7;
}

.note-category-modal .modal-head h2 {
  width: 100%;
  color: #09090b;
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
}

.note-category-modal .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  border: 0;
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: #09090b;
  font-size: 16px;
  opacity: 0.7;
  box-shadow: none;
}

.note-category-modal .modal-close-button:hover,
.note-category-modal .modal-close-button:focus-visible {
  opacity: 1;
}

.note-category-modal > .form-grid {
  display: block;
  padding-top: 16px;
}

.note-category-modal > .form-grid > label {
  display: grid;
  grid-template-rows: 19.25px auto;
  gap: 12px;
  color: #09090b;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.note-category-modal > .form-grid > label + label {
  margin-top: 24px;
}

.note-category-modal .field-label {
  height: 19.25px;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.note-category-modal input:not([type="color"]) {
  height: 36px;
  min-height: 36px;
  border-color: #e4e4e7;
  border-radius: 8.4px;
  padding: 4px 12px;
  background: #fff;
  color: #09090b;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.note-category-modal input:not([type="color"]):focus {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, 0.5), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.note-category-modal .note-color-field input[type="color"] {
  width: 80px;
  min-width: 80px;
  height: 40px;
  min-height: 40px;
  border-color: #e4e4e7;
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.note-category-modal .modal-actions {
  width: calc(100% + 48px);
  height: 53px;
  margin: 24px -24px 0;
  align-items: flex-end;
  gap: 8px;
  padding: 16px 24px 0;
  border-top: 1px solid #e4e4e7;
}

.note-category-modal .modal-actions button,
.note-category-modal .modal-actions .primary-button {
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.note-category-modal .modal-actions button:not(.primary-button) {
  border: 1px solid #e4e4e7;
  background: #fff;
  color: #09090b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.note-category-modal .modal-actions .primary-button {
  border: 0;
  background: #025ce2;
  color: #f4f8ff;
  box-shadow: none;
}

.note-form-modal .modal-head {
  margin: -4px -24px 16px;
  padding: 0 24px 16px;
  border-bottom: 1px solid #eef0f3;
}

.note-form-modal .modal-head h2 {
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.note-form-grid {
  grid-template-columns: minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  gap: 16px;
}

.note-form-grid label {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.note-form-grid input {
  min-height: 40px;
  border-color: #e5e7eb;
  border-radius: 8px;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.note-category-combobox-field {
  position: relative;
  z-index: 3;
}

.note-category-combobox {
  position: relative;
}

.note-category-combobox-trigger {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 0 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.note-category-combobox-trigger.placeholder {
  color: #8a919d;
}

.note-category-combobox-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-category-combobox-trigger svg {
  flex: 0 0 auto;
  color: #6b7280;
}

.note-category-combobox-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 80;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.note-category-combobox-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #eef0f3;
  padding: 8px 10px;
  color: #6b7280;
}

.note-category-combobox-search input {
  min-height: 30px;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.note-category-combobox-search input:focus {
  outline: none;
}

.note-category-combobox-options {
  max-height: 190px;
  overflow-y: auto;
  padding: 5px;
}

.note-category-combobox-options button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #111827;
  padding: 0 8px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
}

.note-category-combobox-options button:hover,
.note-category-combobox-options button.selected {
  background: #f5f7fb;
}

.note-category-combobox-options button svg {
  color: #075fe5;
  opacity: 0;
}

.note-category-combobox-options button.selected svg {
  opacity: 1;
}

.note-category-combobox-empty {
  padding: 10px 8px;
  color: #6b7280;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}

.note-rich-editor-field {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.simple-editor-wrapper {
  width: 100%;
  overflow: auto;
  background: #fff;
}

.simple-editor-wrapper--embedded {
  min-height: 200px;
  max-height: 65vh;
  border: 1px solid #eaeaeb;
  border-radius: 12px;
}

.simple-editor-content {
  display: flex;
  min-height: 160px;
  flex: 1;
  flex-direction: column;
}

.tiptap-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid #eaeaeb;
  background: #fff;
  padding: 6px 8px;
  scrollbar-width: none;
}

.tiptap-toolbar::-webkit-scrollbar {
  display: none;
}

.tiptap-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.tiptap-toolbar-group + .tiptap-toolbar-group {
  margin-left: 4px;
  padding-left: 6px;
  border-left: 1px solid #eaeaeb;
}

.tiptap-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #53565a;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tiptap-button:hover:not(:disabled),
.tiptap-button:focus-visible {
  background: #f4f4f5;
  color: #222325;
  outline: none;
}

.tiptap-button[data-active-state="on"] {
  background: #efeeff;
  color: #4b00cc;
}

.tiptap-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.tiptap.ProseMirror.simple-editor {
  min-height: 160px;
  flex: 1;
  padding: 16px 20px 24px;
  color: #111827;
  line-height: 1.6;
  outline: none;
  word-break: break-word;
}

.tiptap.ProseMirror.simple-editor p,
.notes-detail-html p {
  margin: 0 0 10px;
}

.tiptap.ProseMirror.simple-editor h1,
.tiptap.ProseMirror.simple-editor h2,
.tiptap.ProseMirror.simple-editor h3,
.notes-detail-html h1,
.notes-detail-html h2,
.notes-detail-html h3 {
  margin: 0 0 12px;
  color: #111827;
  font-weight: 800;
  line-height: 1.25;
}

.tiptap.ProseMirror.simple-editor h1,
.notes-detail-html h1 {
  font-size: 24px;
}

.tiptap.ProseMirror.simple-editor h2,
.notes-detail-html h2 {
  font-size: 21px;
}

.tiptap.ProseMirror.simple-editor h3,
.notes-detail-html h3 {
  font-size: 18px;
}

.tiptap.ProseMirror.simple-editor ul,
.tiptap.ProseMirror.simple-editor ol,
.notes-detail-html ul,
.notes-detail-html ol {
  margin: 0 0 12px 20px;
}

.tiptap.ProseMirror.simple-editor ul,
.notes-detail-html ul {
  list-style: disc;
}

.tiptap.ProseMirror.simple-editor ol,
.notes-detail-html ol {
  list-style: decimal;
}

.tiptap.ProseMirror.simple-editor blockquote,
.notes-detail-html blockquote {
  margin: 0 0 12px;
  border-left: 3px solid #d5d6d7;
  padding-left: 12px;
  color: #53565a;
}

.notes-detail-html {
  color: #111827;
  line-height: 1.6;
}

.notes-detail-html > :last-child,
.tiptap.ProseMirror.simple-editor > :last-child {
  margin-bottom: 0;
}

.note-editor-error {
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
}

.note-form-actions {
  margin: 0 -24px;
  padding: 16px 24px;
  border-top: 1px solid #eef0f3;
}

.note-color-field > span:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.note-color-field input[type="color"] {
  width: 80px;
  min-width: 80px;
  padding: 4px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .dentalome-notes-workspace {
    padding: 30px 24px 32px;
  }

  .dentalome-notes-workspace .page-header {
    flex-direction: row;
    gap: 16px;
  }

  .dentalome-notes-workspace .page-header-actions {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .dentalome-notes-workspace .page-header-actions button {
    flex: 0 0 auto;
    min-width: 0;
  }

  .notes-parity-layout {
    grid-template-columns: 288px 592px 224px;
    height: calc(100vh - 168px);
    min-height: 0;
  }

  .notes-list-panel,
  .notes-main-panel,
  .notes-category-panel {
    width: auto;
  }

  .notes-main-panel {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .dentalome-notes-workspace {
    padding: 26px 24px 32px;
  }

  .notes-main-panel {
    min-height: 0;
  }

  .notes-main-empty {
    padding: 34px 20px;
  }

  .notes-main-empty p {
    font-size: 14px;
  }
}

.reminders-workspace {
  display: grid;
  gap: 18px;
  padding: 28px 32px 40px;
  color: #172033;
}

.reminders-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.reminders-page-head h1 {
  margin: 5px 0 3px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.reminders-page-head p {
  margin: 0;
  color: #667085;
  font-size: 14px;
}

.reminders-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #1261d7;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.reminders-refresh,
.reminder-phone-button,
.reminder-outcome-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  background: #fff;
  color: #29364a;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.reminders-refresh:hover,
.reminder-phone-button:hover,
.reminder-outcome-button:hover {
  border-color: #9db6dd;
  background: #f6f9fe;
}

.reminders-refresh:disabled {
  cursor: wait;
  opacity: .65;
}

.reminders-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #dfe5ed;
  border-radius: 8px;
  background: #fff;
}

.reminders-summary > div {
  min-height: 78px;
  padding: 15px 18px;
  border-right: 1px solid #e6eaf0;
}

.reminders-summary > div:last-child {
  border-right: 0;
}

.reminders-summary span {
  display: block;
  color: #707b8d;
  font-size: 12px;
  font-weight: 650;
}

.reminders-summary strong {
  display: block;
  margin-top: 4px;
  color: #172033;
  font-size: 25px;
}

.reminders-summary .success {
  box-shadow: inset 0 3px #21a366;
}

.reminders-summary .call {
  box-shadow: inset 0 3px #1261d7;
}

.reminders-summary .warning {
  box-shadow: inset 0 3px #d98b18;
}

.reminders-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.reminders-day-switch,
.reminders-filter {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #dfe5ed;
  border-radius: 8px;
  background: #f7f9fc;
}

.reminders-day-switch button,
.reminders-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #596579;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.reminders-day-switch button.active,
.reminders-filter button.active {
  background: #fff;
  color: #1261d7;
  box-shadow: 0 1px 3px rgb(25 38 58 / 12%);
}

.reminders-day-switch button span {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e9f1ff;
  color: #1261d7;
  font-size: 11px;
}

.reminders-error {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid #efc1c1;
  border-radius: 7px;
  background: #fff4f4;
  color: #a33131;
  font-size: 13px;
}

.reminders-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid #abdcc1;
  border-radius: 7px;
  background: #effaf4;
  color: #137547;
  font-size: 13px;
}

.reminders-table-shell {
  overflow: auto;
  border: 1px solid #dfe5ed;
  border-radius: 8px;
  background: #fff;
}

.reminders-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
}

.reminders-table th {
  height: 46px;
  padding: 0 13px;
  border-bottom: 1px solid #dbe3ee;
  background: #f2f6fc;
  color: #475467;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
}

.reminders-table th:nth-child(1) { width: 84px; }
.reminders-table th:nth-child(2) { width: 230px; }
.reminders-table th:nth-child(3) { width: 190px; }
.reminders-table th:nth-child(4),
.reminders-table th:nth-child(6) { width: 140px; }
.reminders-table th:nth-child(5) { width: 170px; }
.reminders-table th:nth-child(7) { width: 220px; }

.reminders-table-shell:not(.prevention-table-shell) .reminders-table th:nth-child(4) { width: 180px; }
.reminders-table-shell:not(.prevention-table-shell) .reminders-table th:nth-child(5) { width: 220px; }
.reminders-table-shell:not(.prevention-table-shell) .reminders-table th:nth-child(6) { width: 210px; }

.reminders-table td {
  height: 82px;
  padding: 11px 13px;
  border-bottom: 1px solid #e7ebf1;
  color: #344054;
  font-size: 13px;
  vertical-align: middle;
}

.reminders-table tr:last-child td {
  border-bottom: 0;
}

.reminders-table tr.requires-call {
  background: #fbfdff;
  box-shadow: inset 3px 0 #2f73da;
}

.reminder-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #172033;
  font-size: 14px;
}

.reminder-patient-link {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.reminder-patient-link strong {
  overflow: hidden;
  color: #18253a;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reminder-patient-link:hover strong {
  color: #1261d7;
  text-decoration: underline;
}

.reminder-patient-link span,
.reminders-table td > small,
.reminder-delivery small {
  display: block;
  overflow: hidden;
  color: #7a8596;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reminder-act {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  color: #344054;
  font-weight: 650;
}

.reminder-act i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
}

.reminder-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid #d7dee8;
  border-radius: 999px;
  background: #f7f9fc;
  color: #596579;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.reminder-status.success { border-color: #abdcc1; background: #effaf4; color: #137547; }
.reminder-status.waiting { border-color: #bfd0e9; background: #f2f6fc; color: #395b89; }
.reminder-status.warning { border-color: #edcf9a; background: #fff8e9; color: #9b6110; }
.reminder-status.danger { border-color: #edb8b8; background: #fff3f3; color: #a33131; }
.reminder-status.call { border-color: #a9c7f0; background: #edf5ff; color: #155bb7; }

.reminder-delivery {
  display: grid;
  gap: 3px;
}

.reminder-delivery-cell {
  display: grid;
  justify-items: start;
  gap: 7px;
}

.reminder-delivery strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4c5a6e;
  font-size: 12px;
}

.reminder-delivery.success strong { color: #167349; }
.reminder-delivery.sent strong { color: #245fba; }
.reminder-delivery.danger strong { color: #aa3434; }
.reminder-delivery.muted strong { color: #8993a2; font-weight: 550; }

.reminder-retry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid #dc9e9e;
  border-radius: 6px;
  background: #fff7f7;
  color: #9f2f2f;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.reminder-retry-button:hover {
  border-color: #c87575;
  background: #ffeded;
}

.reminder-retry-button:focus-visible,
.reminder-call-modal button:focus-visible {
  outline: 3px solid rgb(18 97 215 / 24%);
  outline-offset: 2px;
}

.reminder-call-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.reminder-phone-button,
.reminder-outcome-button {
  min-height: 33px;
  padding: 0 9px;
  font-size: 12px;
}

.reminder-phone-button {
  border-color: #b6d8c5;
  color: #167349;
}

.reminder-draft-action {
  text-align: left;
}

.reminder-draft-action:disabled,
.reminder-draft-modal > footer button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.reminders-table .reminder-draft-reason {
  margin-top: 6px;
  color: #a33131;
  white-space: normal;
}

.reminder-manual-stage,
.reminder-manual-response {
  display: grid;
  justify-items: start;
  gap: 5px;
  margin-bottom: 8px;
}

.reminder-manual-stage .reminder-status,
.reminder-manual-response .reminder-status {
  max-width: 100%;
  height: auto;
  min-height: 25px;
  white-space: normal;
}

.reminder-manual-stage small,
.reminder-manual-response small {
  display: block;
  max-width: 100%;
  color: #7a8596;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.reminder-manual-response-text {
  color: #344054 !important;
  white-space: pre-wrap;
}

.reminder-manual-link {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #1261d7;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.reminder-manual-link:hover {
  color: #0e4fae;
}

.reminder-manual-link:focus-visible,
.reminder-manual-modal input:focus-visible,
.reminder-manual-modal textarea:focus-visible {
  outline: 3px solid rgb(18 97 215 / 24%);
  outline-offset: 2px;
}

.reminders-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 160px;
  color: #7a8596;
}

.reminders-automation-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-left: 3px solid #1261d7;
  background: #f6f9fe;
  color: #596579;
  font-size: 12px;
  line-height: 1.55;
}

.reminders-automation-note svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #1261d7;
}

.reminder-modal-backdrop {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(12 20 33 / 52%);
}

.reminder-call-modal {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 58px rgb(12 20 33 / 25%);
}

.reminder-call-modal > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid #e4e8ee;
}

.reminder-call-modal > header span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1261d7;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.reminder-call-modal h2 {
  margin: 5px 0 2px;
  font-size: 20px;
  letter-spacing: 0;
}

.reminder-call-modal header p {
  margin: 0;
  color: #7a8596;
  font-size: 12px;
}

.reminder-call-modal header > button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #dfe5ed;
  border-radius: 7px;
  background: #fff;
  color: #596579;
  cursor: pointer;
}

.reminder-call-modal button:disabled {
  cursor: wait;
  opacity: .62;
}

.reminder-retry-explanation {
  display: grid;
  gap: 7px;
  margin: 20px 22px;
  padding: 15px 16px;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  background: #f7faff;
  color: #344054;
}

.reminder-retry-explanation strong {
  color: #172033;
  font-size: 14px;
}

.reminder-retry-explanation p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.reminder-retry-explanation small {
  color: #667085;
  font-size: 11px;
}

.reminder-call-options {
  display: grid;
  gap: 8px;
  padding: 18px 22px 10px;
}

.reminder-call-options label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid #dfe5ed;
  border-radius: 7px;
  cursor: pointer;
}

.reminder-call-options label.selected {
  border-color: #8fb5ed;
  background: #f4f8fe;
}

.reminder-call-options input {
  width: 16px;
  height: 16px;
  accent-color: #1261d7;
}

.reminder-call-options label > span {
  display: grid;
  gap: 2px;
}

.reminder-call-options strong {
  font-size: 13px;
}

.reminder-call-options small {
  color: #7a8596;
  font-size: 11px;
}

.reminder-call-options i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #1261d7;
  color: #fff;
}

.reminder-call-note {
  display: grid;
  gap: 6px;
  padding: 10px 22px 18px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.reminder-call-note textarea {
  min-height: 88px;
  resize: vertical;
  padding: 10px 11px;
  border: 1px solid #ccd5e1;
  border-radius: 7px;
  color: #172033;
  font: inherit;
  font-weight: 400;
}

.reminder-call-error {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 22px 12px;
  color: #a33131;
  font-size: 12px;
}

.reminder-call-modal > footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 22px;
  border-top: 1px solid #e4e8ee;
  background: #fafbfc;
}

.reminder-call-modal > footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d4dce6;
  border-radius: 7px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.reminder-call-modal > footer button.primary {
  border-color: #1261d7;
  background: #1261d7;
  color: #fff;
}

.reminder-draft-modal .prevention-message-preview {
  margin: 14px 22px;
}

.reminder-draft-modal .patient-whatsapp-provider-note {
  margin: 0 22px 12px;
}

.reminder-draft-opened {
  margin: 0 22px 12px;
  color: #167349;
  font-size: 12px;
}

.reminder-draft-modal > footer {
  flex-wrap: wrap;
}

.reminder-manual-explainer {
  margin: 13px 22px;
  color: #596579;
  font-size: 12px;
  line-height: 1.5;
}

.reminder-manual-stale {
  margin: 14px 22px 0;
  padding: 10px 12px;
  border-left: 3px solid #e9af58;
  background: #fff8e9;
  color: #8d5c18;
  font-size: 12px;
  line-height: 1.5;
}

.reminder-manual-attestation {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 22px 18px;
  padding: 11px 12px;
  border: 1px solid #c8dae9;
  border-radius: 7px;
  background: #f6f9fe;
  color: #344054;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  cursor: pointer;
}

.reminder-manual-attestation input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: #1261d7;
}

.reminder-manual-modal > footer {
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .reminders-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .reminders-filter {
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  .reminders-workspace {
    gap: 14px;
    padding: 18px 14px 32px;
  }

  .reminders-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .reminders-refresh {
    align-self: flex-start;
  }

  .reminders-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reminders-summary > div:nth-child(2) {
    border-right: 0;
  }

  .reminders-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e6eaf0;
  }

  .reminders-table-shell {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .reminders-table,
  .reminders-table tbody,
  .reminders-table tr,
  .reminders-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .reminders-table thead {
    display: none;
  }

  .reminders-table tbody {
    display: grid;
    gap: 10px;
  }

  .reminders-table tr {
    overflow: hidden;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fff;
  }

  .reminders-table td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    min-height: 48px;
    height: auto;
    padding: 9px 11px;
  }

  .reminders-table td::before {
    content: attr(data-label);
    color: #7a8596;
    font-size: 11px;
    font-weight: 700;
  }

  .reminders-table td[colspan] {
    display: block;
  }

  .reminder-call-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 440px) {
  .reminders-day-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reminders-day-switch button {
    min-width: 0;
  }

  .reminders-table td {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .reminder-modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .reminder-call-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 8px 8px 0 0;
  }
}

/* Dentalome patient-detail parity pass: compact header, right rail, clear odontogram. */
.app-body.patient-detail-mode {
  grid-template-columns: 80px minmax(0, 1fr) 80px;
}

.app-body.patient-detail-mode .main {
  grid-column: 2;
}

.app-body.patient-detail-mode .patient-side-nav {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  top: 70px;
  height: calc(100vh - 70px);
}

.app-body.patient-detail-mode .primary-nav {
  width: 80px;
}

.app-body.patient-detail-mode .primary-nav span {
  display: block;
}

.patient-workspace {
  padding: 24px 28px 58px;
  background: #f5f6f8;
}

.patient-header.dentalome-patient-header {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto;
  align-items: center;
  gap: 18px 42px;
  min-height: 56px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid #eceff3;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.08);
}

.dentalome-patient-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.dentalome-patient-identity .patient-display-name {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #20242b;
  font-size: clamp(21px, 1.35vw, 27px);
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dentalome-patient-header .patient-alert-icon {
  flex: 0 0 auto;
  color: #6b7280;
}

.patient-edit-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #20242b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.patient-header-financials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(28px, 3vw, 58px);
  white-space: nowrap;
}

.patient-header-financials .metric {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: #20242b;
  font-size: clamp(19px, 1.2vw, 24px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
}

.patient-header-financials .metric span::after {
  content: " :";
}

.patient-header-financials .metric strong,
.patient-header-financials .metric b {
  color: inherit;
  font-size: inherit;
  line-height: 1.05;
  font-weight: 850;
}

.patient-header-financials .metric.green strong,
.patient-header-financials .metric.green b {
  color: #39a369;
}

.patient-header-financials .metric.red strong,
.patient-header-financials .metric.red b {
  color: #d8222a;
}

.patient-header.dentalome-patient-header .patient-warning {
  display: none;
}

.patient-treatment-card {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.patient-treatment-layout {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) 350px;
  gap: 28px;
  align-items: flex-start;
}

.odontogram-panel.dentalome-odontogram-card {
  position: relative;
  min-height: 650px;
  padding: 0 34px 24px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 9px -2px #ccc;
  overflow: hidden;
}

.odontogram-panel.dentalome-odontogram-card .treatment-card-top {
  display: block;
  margin: 0 0 20px;
  padding: 0;
  border-bottom: 1px solid #dfe3ea;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs {
  display: flex;
  width: max-content;
  min-height: 62px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
  min-width: 112px;
  min-height: 62px;
  padding: 0 20px;
  border: 0;
  border-bottom: 4px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #424852;
  font-size: 18px;
  font-weight: 850;
  white-space: nowrap;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button.active {
  color: #1677ff;
  border-bottom-color: #1677ff;
  background: #fff;
  box-shadow: none;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row {
  position: absolute;
  right: 30px;
  z-index: 4;
  display: flex;
  width: auto;
  margin: 0;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row.top {
  top: 32px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row.bottom {
  bottom: 22px;
}

.odontogram-panel.dentalome-odontogram-card .all-teeth-control {
  font-size: 0;
}

.dentalome-child-schema-row {
  width: max-content;
  margin: 11px 0 0 12px;
  color: #20242b;
  font-size: 17px;
  font-weight: 850;
}

.odontogram {
  max-width: none;
  margin: 0 auto;
  padding-top: 0;
  gap: 18px;
}

.odontogram-row {
  gap: clamp(8px, 0.8vw, 18px);
}

.tooth-group {
  gap: clamp(4px, 0.55vw, 12px);
}

.tooth.dentalome-tooth,
.tooth.dentalome-tooth.lower {
  min-height: 206px;
}

.tooth.dentalome-tooth {
  grid-template-rows: minmax(174px, 1fr) 24px;
}

.tooth.dentalome-tooth.lower {
  grid-template-rows: 24px minmax(174px, 1fr);
}

.tooth-art {
  width: clamp(38px, 2.85vw, 64px);
  height: 174px;
  min-height: 174px;
}

.dentalome-tooth-sprite.tooth-svg {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(33, 37, 41, 0.16));
}

.tooth-number {
  font-size: 19px;
  font-weight: 850;
}

.tooth.selected .tooth-art {
  background: #d9e7ff;
  box-shadow: none;
}

.act-status-card {
  min-height: 650px;
  padding: 28px 44px 32px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 17px rgba(33, 43, 54, 0.11);
}

.add-act-button {
  min-height: 42px;
  border-radius: 12px;
  background: var(--green);
  font-size: 19px;
  font-weight: 850;
}

.act-status-head {
  grid-template-columns: 1fr 1fr;
  font-size: 20px;
}

.act-status-list button {
  font-size: 17px;
}

.act-status-list button strong {
  min-width: 112px;
  background: #68a0fb;
  font-size: 16px;
  font-weight: 700;
}

.patient-document-actions {
  margin: 8px 0 14px;
}

.patient-document-actions button {
  min-width: 132px;
  min-height: 38px;
  border-radius: 10px;
  background: var(--green);
  font-size: 17px;
  font-weight: 850;
}

.patient-document-actions button:first-child {
  background: var(--green);
  color: #fff;
  border: 0;
}

.patient-operations-card {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.patient-operations-toolbar {
  display: none;
}

.patient-operations-wrap {
  border: 1px solid #d9dee7;
  border-radius: 0;
  background: #fff;
  overflow: visible;
  position: relative;
  margin-top: 58px;
}

.patient-operations-wrap::before {
  content: "";
  position: absolute;
  top: -43px;
  left: 0;
  right: 26px;
  height: 6px;
  border-radius: 999px;
  background: #0d82ff;
}

.patient-operations-table th,
.patient-operations-table td {
  padding: 16px 14px;
  font-size: 18px;
}

.patient-operations-table th {
  background: #fff;
  color: #252a31;
  font-weight: 750;
}

.patient-operations-table td {
  border-top: 1px solid #d9dee7;
}

.patient-operations-table .operation-name {
  color: #252a31;
  font-size: 18px;
  font-weight: 500;
}

.patient-operations-table .sessions-link {
  color: var(--green);
  font-size: 17px;
  font-weight: 800;
}

.patient-operations-table .money-cell,
.patient-operations-table .green-text,
.patient-operations-table .red-text {
  font-size: 18px;
  font-weight: 850;
}

.dentalome-status {
  min-width: 132px;
  min-height: 46px;
  border-radius: 999px;
  background: #69a2fb;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
}

.dentalome-actions {
  gap: 18px;
}

.dentalome-actions .plain-icon.small {
  width: 28px;
  height: 28px;
  color: #15191f;
}

/* Current Dentalome patient-detail parity pass: white shell, patient dossier card, SVG odontogram. */
.topbar {
  height: 60px;
  grid-template-columns: 255px minmax(420px, 560px) minmax(260px, 1fr);
  padding: 0 22px 0 0;
  background: #fff;
  border-bottom: 1px solid #e4e7ec;
  box-shadow: none;
}

.topbar .brand {
  height: 60px;
  padding: 0 20px 0 24px;
  color: #235b91;
}

.topbar .shell-logo {
  width: 42px;
  height: 42px;
  border: 3px solid #8ec8cd;
  background: #235b91;
  color: #fff;
  font-size: 17px;
  box-shadow: none;
}

.topbar .brand span {
  color: #235b91;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
}

.global-search {
  height: 40px;
  width: min(100%, 560px);
  max-width: 560px;
  align-self: center;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.global-search input {
  height: 38px;
  padding: 0 45px 0 38px;
  color: #3b3f47;
  font-size: 16px;
  font-weight: 650;
  background: #f9fafb;
  box-shadow: none;
}

.global-search svg {
  color: #1a73e8;
}

.global-search .global-search-icon {
  left: 12px;
  right: auto;
  width: 16px;
  height: 16px;
  color: #667085;
}

.global-search-shortcut {
  position: absolute;
  right: 12px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  background: #f2f4f7;
  color: #667085;
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  transform: translateY(-50%);
  pointer-events: none;
}

.user-zone {
  height: 60px;
  gap: 16px;
  color: #1f2937;
}

.topbar-user-name {
  color: #1f2937;
  font-size: 20px;
  font-weight: 700;
}

.topbar-action {
  color: #667085;
}

.topbar-avatar {
  width: 42px;
  height: 42px;
  border: 2px solid #111827;
  background: #fff;
  color: #111827;
}

.app-body.no-rail,
.app-body.patient-detail-mode {
  grid-template-columns: 255px minmax(0, 1fr);
  background: #f6f7f9;
}

.app-body.patient-detail-mode .main,
.app-body.no-rail .main {
  grid-column: 2;
}

.app-body.patient-detail-mode .patient-side-nav {
  display: none !important;
}

.primary-nav,
.app-body.patient-detail-mode .primary-nav {
  width: 255px;
  padding: 72px 10px 16px;
  background: #fff;
  border-right: 1px solid #e4e7ec;
  color: #344054;
}

.primary-nav-brand {
  display: none;
}

.primary-nav-scroll {
  gap: 4px;
}

.nav-section {
  margin: 0 0 10px;
}

.nav-section-label {
  display: block;
  margin: 16px 10px 7px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: none;
}

.primary-nav button,
.app-body.patient-detail-mode .primary-nav button {
  min-height: 38px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 13px;
  border-radius: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.primary-nav button svg {
  width: 18px;
  height: 18px;
}

.primary-nav button.active {
  background: #e8f1ff;
  color: #1264e3;
}

.primary-nav-user {
  margin: 16px 0 0;
  padding: 10px;
  border-top: 1px solid #eaecf0;
  color: #344054;
}

.main {
  padding-top: 60px;
  background: #f6f7f9;
}

.patient-workspace {
  padding: 24px 30px 56px;
  background: #f6f7f9;
}

.patient-header.dentalome-patient-header {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(16, 24, 40, .06);
  overflow: hidden;
}

.dentalome-patient-identity {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 16px 18px 13px;
}

.patient-avatar-tile {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #1d72d8;
  color: #fff;
  font-size: 19px;
  font-weight: 850;
}

.patient-profile-copy {
  min-width: 0;
}

.patient-title-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.dentalome-patient-identity .patient-display-name {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #20242b;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}

.patient-fiche-chip {
  flex: 0 0 auto;
  color: #667085;
  font-size: 15px;
  font-weight: 800;
}

.dentalome-patient-header .patient-alert-icon {
  flex: 0 0 auto;
  color: #667085;
}

.patient-subline,
.patient-contact-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-top: 5px;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}

.patient-contact-line svg {
  color: #98a2b3;
}

.patient-profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.patient-profile-actions button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

.patient-profile-actions button.archive-action {
  border-color: oklch(0.901 0.076 70.697);
  background: oklch(0.98 0.016 73.684);
  color: oklch(0.553 0.195 38.402);
}

.patient-profile-actions button.archive-action svg {
  color: oklch(0.646 0.222 41.116);
}

.patient-header-financials {
  display: none;
}

.patient-header.dentalome-patient-header .patient-warning {
  display: none;
}

.patient-header-tabs {
  display: flex;
  gap: 0;
  padding: 0 18px;
  border-top: 1px solid #eaecf0;
  overflow-x: auto;
}

.patient-header-tabs :is(button, a) {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #667085;
  font-size: 14px;
  font-weight: 800;
}

.patient-header-tabs :is(button, a).active {
  color: #1677ff;
  border-bottom-color: #1677ff;
}

.dentalome-patient-list-card {
  min-height: 0;
  padding: 23px 14px 14px;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(16, 24, 40, .05);
}

.dentalome-list-title {
  margin: 0 0 28px;
}

.dentalome-list-title h2,
.patient-payments-card .dentalome-list-title h1 {
  margin: 0;
  color: #20242b;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
}

.patient-rdv-card .dentalome-list-title h1 {
  margin: 0;
  color: #20242b;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
}

.dentalome-list-title p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 16px;
  font-weight: 650;
}

.dentalome-patient-table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.dentalome-patient-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dbe2ea;
  background: #fff;
}

.patient-rdv-table {
  min-width: 760px;
}

.patient-payments-table {
  min-width: 880px;
}

.dentalome-patient-table th {
  height: 42px;
  padding: 8px 10px;
  border-bottom: 2px solid #dbe2ea;
  background: #dcecff;
  color: #29303a;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.dentalome-patient-table td {
  height: 48px;
  padding: 8px 10px;
  border-top: 1px solid #dde2e8;
  color: #333941;
  font-size: 14px;
  font-weight: 500;
  vertical-align: middle;
}

.patient-rdv-table th:nth-child(1),
.patient-rdv-table td:nth-child(1) {
  width: 17%;
}

.patient-rdv-table th:nth-child(2),
.patient-rdv-table td:nth-child(2) {
  width: 18%;
}

.patient-rdv-table th:nth-child(3),
.patient-rdv-table td:nth-child(3) {
  width: 25%;
}

.patient-rdv-table th:nth-child(4),
.patient-rdv-table td:nth-child(4) {
  width: 15%;
}

.patient-rdv-table th:nth-child(5),
.patient-rdv-table td:nth-child(5) {
  width: 16%;
  text-align: center;
}

.patient-payments-table th:nth-child(1),
.patient-payments-table td:nth-child(1) {
  width: 13%;
}

.patient-payments-table th:nth-child(2),
.patient-payments-table td:nth-child(2) {
  width: 12%;
}

.patient-payments-table th:nth-child(3),
.patient-payments-table td:nth-child(3) {
  width: 30%;
}

.patient-payments-table th:nth-child(4),
.patient-payments-table td:nth-child(4) {
  width: 15%;
}

.patient-payments-table th:nth-child(5),
.patient-payments-table td:nth-child(5) {
  width: 16%;
}

.patient-payments-table th:nth-child(6),
.patient-payments-table td:nth-child(6) {
  width: 14%;
  text-align: center;
}

.dentalome-status-pill {
  min-width: 43px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #dbeafe;
  color: #1677ff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.dentalome-row-actions {
  justify-content: center;
  gap: 17px;
}

.dentalome-row-actions .plain-icon.small {
  width: 22px;
  height: 22px;
  color: oklch(0.141 0.005 285.823);
}

.dentalome-row-actions .plain-icon.danger {
  color: oklch(0.577 0.245 27.325);
}

.dentalome-empty-row {
  color: #667085;
  text-align: left !important;
}

.dentalome-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 49px;
  color: #667085;
  font-size: 13px;
  font-weight: 750;
}

.dentalome-pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dentalome-pagination button,
.dentalome-pagination strong,
.dentalome-pagination span {
  min-width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #344054;
}

.dentalome-pagination button {
  border: 1px solid #d6dbe3;
  background: #fff;
  font-size: 20px;
  line-height: 1;
}

.dentalome-pagination button:disabled {
  color: #aab2bd;
}

.dentalome-pagination strong {
  min-width: auto;
  background: transparent;
  color: #111827;
  font-weight: 650;
}

.patient-treatment-card {
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(16, 24, 40, .05);
}

.patient-treatment-layout {
  grid-template-columns: minmax(720px, 1fr) minmax(300px, 360px);
  gap: 18px;
  padding: 18px;
  align-items: stretch;
}

.odontogram-panel.dentalome-odontogram-card {
  min-height: 498px;
  padding: 16px 22px 26px;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  box-shadow: none;
  overflow: visible;
}

.odontogram-panel.dentalome-odontogram-card .treatment-card-top {
  display: grid;
  grid-template-columns: minmax(290px, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0 0 17px;
  padding: 0 0 12px;
  border-bottom: 1px solid #eaecf0;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs {
  display: inline-flex;
  width: max-content;
  min-height: 38px;
  padding: 3px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #f8fafc;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
  min-width: 0;
  min-height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  font-size: 14px;
  font-weight: 800;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button.active {
  color: #1677ff;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 4px rgba(16, 24, 40, .12);
}

.treatment-financials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  white-space: nowrap;
}

.treatment-financials .metric {
  display: grid;
  gap: 2px;
  color: #20242b;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: .04em;
}

.treatment-financials .metric span {
  color: #667085;
}

.treatment-financials .metric strong,
.treatment-financials .metric b {
  display: inline;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

.treatment-financials .metric b {
  margin-left: 4px;
}

.treatment-financials .metric.green strong,
.treatment-financials .metric.green b {
  color: #229a55;
}

.treatment-financials .metric.red strong,
.treatment-financials .metric.red b {
  color: #d62828;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row.top {
  top: 82px;
  right: 26px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row.bottom {
  right: 26px;
  bottom: 24px;
}

.odontogram {
  max-width: 900px;
  margin: 0 auto;
  gap: 12px;
}

.odontogram-row {
  gap: 11px;
}

.tooth-group {
  gap: 6px;
}

.tooth.dentalome-tooth,
.tooth.dentalome-tooth.lower {
  min-height: 150px;
}

.tooth.dentalome-tooth {
  grid-template-rows: 22px minmax(120px, 1fr);
}

.tooth.dentalome-tooth.lower {
  grid-template-rows: minmax(120px, 1fr) 22px;
}

.tooth-art {
  width: 54px;
  height: 118px;
  min-height: 118px;
  padding: 0;
  background: transparent;
  border-radius: 13px;
}

.tooth.selected .tooth-art {
  background: #dcebff;
}

.dentalome-tooth-sprite.tooth-svg,
.dentalome-tooth-sprite.tooth-svg svg {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.dentalome-tooth-sprite.tooth-svg [class*="fill-"],
.dentalome-tooth-sprite.tooth-svg svg .cls-2,
.dentalome-tooth-sprite.tooth-svg svg .cls-3 {
  transition: fill .12s ease;
}

.tooth.dentalome-tooth strong {
  color: #1f2937;
  font-size: 17px;
  line-height: 20px;
  font-weight: 850;
}

.odontogram-divider {
  margin: 2px auto 6px;
  background: #eaecf0;
}

.dentalome-child-schema-row {
  margin: 0 0 0 20px;
  padding-bottom: 16px;
  color: #20242b;
  font-size: 14px;
  font-weight: 850;
}

.act-status-card {
  min-height: 498px;
  padding: 24px 28px 28px;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  box-shadow: none;
}

.add-act-button {
  min-height: 38px;
  border-radius: 10px;
  background: #1d72d8;
  font-size: 15px;
  font-weight: 850;
}

.act-status-divider {
  margin: 18px 0;
  background: #eaecf0;
}

.act-status-head {
  color: #20242b;
  font-size: 15px;
}

.act-status-empty {
  min-height: 270px;
  color: #667085;
}

.patient-document-actions {
  justify-content: flex-end;
  margin: 4px 18px 10px;
}

.patient-document-actions button {
  min-width: 112px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  background: #2c955c;
  font-size: 14px;
  font-weight: 850;
}

.patient-operations-card {
  margin: 4px 18px 22px;
}

.patient-operations-toolbar {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 8px;
}

.patient-operations-toolbar .appointment-source-combobox {
  z-index: 20;
  width: 240px;
  min-width: 240px;
}

.patient-operations-toolbar .combobox-trigger {
  width: 240px;
  min-width: 240px;
  height: 36px;
  min-height: 36px;
  border-color: #d0d5dd;
  border-radius: 8px;
  color: #344054;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-operations-toolbar select {
  min-width: 190px;
  height: 36px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-weight: 700;
}

.patient-operations-wrap {
  margin-top: 0;
  border: 1px solid #d7e0ee;
  border-radius: 0;
  background: #fff;
  overflow: visible;
}

.patient-operations-wrap::before {
  display: none;
}

.patient-operations-table th,
.patient-operations-table td {
  padding: 11px 12px;
  font-size: 14px;
  line-height: 1.25;
}

.patient-operations-table th {
  background: #dbe9fb;
  color: #20242b;
  font-weight: 850;
}

.patient-operations-table td {
  border-top: 1px solid #d7e0ee;
}

.patient-operations-table .operation-name {
  color: #20242b;
  font-size: 14px;
  font-weight: 600;
}

.patient-operations-table .sessions-link {
  color: #2d8f57;
  font-size: 14px;
  font-weight: 850;
}

.patient-operations-table .money-cell,
.patient-operations-table .green-text,
.patient-operations-table .red-text {
  font-size: 14px;
  font-weight: 850;
}

.patient-document-actions {
  justify-content: flex-end;
  gap: 8px;
  margin: 0 18px 12px;
}

.patient-document-actions button {
  min-width: 118px;
  min-height: 35px;
  padding: 0 15px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eef6ff;
  color: #2563eb;
  box-shadow: none;
  font-size: 14px;
  font-weight: 800;
}

.patient-document-actions button:first-child {
  border: 1px solid #bfdbfe;
  background: #eef6ff;
  color: #2563eb;
}

.patient-document-actions button:last-child {
  border-color: #0f66e8;
  background: #0f66e8;
  color: #fff;
}

.patient-operations-table .dentalome-status {
  min-width: 68px;
  min-height: 23px;
  padding: 0 9px;
  border: 1px solid #bcd7ff;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1d64d8;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.patient-operations-table .dentalome-status svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}

.operation-status-control {
  display: inline-flex;
  justify-content: center;
}

.patient-operations-table .operation-status-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.patient-operations-table .operation-status-trigger:hover {
  background: #f8fafc;
}

.patient-operations-table .operation-status-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.patient-operations-table .operation-status-trigger[aria-busy="true"] { cursor: wait; }
.operation-status-error { display: block; width: 210px; max-width: 55vw; margin-top: 6px; color: #b42318; font-size: 12px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }

.patient-operations-table .operation-status-badge {
  pointer-events: none;
}

.operation-status-menu {
  position: fixed;
  z-index: 1000;
  display: grid;
  min-width: 112px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
}

.operation-status-menu button {
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #172033;
  padding: 7px 8px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.operation-status-menu button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Dentalome current statistics layout parity. */
.stats-workspace {
  height: calc(100vh - 60px);
  min-height: 0;
  padding: 24px 24px 8px;
  overflow-y: auto;
  background: #f6f7f8;
}

.stats-workspace .page-header {
  margin: 0 0 24px;
}

.stats-workspace .page-header h1 {
  margin: 0;
  color: #09090b;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: 0;
}

.page-header h1 > span {
  display: inline-block;
  transform: scaleX(0.95);
  transform-origin: left center;
}

.stats-workspace .page-header p {
  margin: 4px 0 0;
  color: #71717a;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
}

.stats-period-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 14.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.stats-date-chip,
.stats-filter-control > button {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  gap: 8px;
  padding: 8px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stats-date-chip {
  width: auto;
  justify-content: flex-start;
  font-weight: 400;
}

.stats-date-control {
  flex: 0 0 auto;
  width: auto;
}

.stats-preset-control {
  flex: 0 0 auto;
  width: auto;
}

.stats-group-control {
  flex: 0 0 89.7421875px;
  width: 89.7421875px;
}

.stats-date-chip span {
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.stats-filter-control {
  position: relative;
  height: 36px;
  min-width: 0;
}

.stats-practitioner-control {
  margin-left: auto;
  width: 240px;
}

.stats-filter-control > button {
  justify-content: center;
  width: auto;
}

.stats-date-control > .stats-date-chip {
  display: flex;
  justify-content: flex-start;
  font-weight: 400;
  text-align: left;
}

.stats-date-control > .stats-date-chip svg {
  margin-right: 8px;
}

.stats-preset-control > button svg,
.stats-group-control > button svg,
.stats-practitioner-control > button svg {
  margin-left: 8px;
}

.stats-practitioner-control > button {
  justify-content: space-between;
  justify-self: end;
  width: 100%;
  min-width: 240px;
}

.stats-filter-control > button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.stats-filter-control > button:focus-visible,
.stats-filter-control > button.filter-returned-focus {
  outline: none;
  border-color: rgb(2, 92, 226);
  box-shadow: 0 0 0 3px oklab(0.519343 -0.0356103 -0.213735 / 0.5), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stats-practitioner-control > button svg {
  opacity: 0.5;
}

.stats-filter-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  padding: 6px;
  border: 1px solid #d9dee8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.14);
}

.stats-date-range-menu {
  width: 490px;
  display: block;
  padding: 0;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}

.stats-filter-menu-small {
  width: 178px;
}

.stats-filter-menu button,
.stats-filter-menu [role="menuitem"] {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.stats-filter-menu button:hover,
.stats-filter-menu button.active,
.stats-filter-menu button[aria-selected="true"],
.stats-filter-menu [role="menuitem"]:hover,
.stats-filter-menu [role="menuitem"]:focus,
.stats-filter-menu [role="menuitem"].active {
  outline: none;
  background: #eff6ff;
  color: #005fe5;
}

.stats-range-calendar {
  --rdp-accent-color: #025ce2;
  --rdp-accent-background-color: #f4f4f5;
  --rdp-day-height: 32px;
  --rdp-day-width: 32px;
  --rdp-day_button-height: 32px;
  --rdp-day_button-width: 32px;
  --rdp-day_button-border: 0;
  --rdp-day_button-border-radius: 8.4px;
  --rdp-selected-border: 0;
  --rdp-dropdown-gap: 6px;
  --rdp-months-gap: 16px;
  --rdp-nav_button-height: 32px;
  --rdp-nav_button-width: 32px;
  --rdp-nav-height: 32px;
  --rdp-outside-opacity: 1;
  width: 488px;
  margin: 0;
  padding: 12px;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  line-height: 24px;
}

.stats-range-calendar .rdp-months {
  width: 464px;
  display: flex;
  flex-flow: row nowrap;
  gap: 16px;
  position: relative;
  margin: 0;
}

.stats-range-calendar .rdp-month {
  width: 224px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.stats-range-calendar .rdp-nav {
  width: 464px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
}

.stats-date-range-menu .rdp-button_previous,
.stats-date-range-menu .rdp-button_next {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  color: #18181b;
  font-weight: 500;
}

.stats-date-range-menu .rdp-button_previous:hover,
.stats-date-range-menu .rdp-button_next:hover {
  background: #f4f4f5;
  color: #18181b;
}

.stats-date-range-menu .rdp-button_previous:focus-visible,
.stats-date-range-menu .rdp-button_next:focus-visible {
  outline: none;
  border-color: rgb(2, 92, 226);
  box-shadow: 0 0 0 3px oklab(0.519343 -0.0356103 -0.213735 / 0.5);
}

.stats-range-calendar .rdp-chevron {
  width: 16px;
  height: 16px;
  fill: none;
  color: currentColor;
}

.stats-range-calendar .rdp-month_caption {
  width: 224px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  margin: 0;
}

.stats-range-calendar .rdp-dropdowns {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.stats-range-calendar .rdp-dropdown_root {
  height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.stats-range-calendar .rdp-caption_label {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px 0 8px;
  border-radius: 8.4px;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.stats-range-calendar .rdp-caption_label .rdp-chevron {
  width: 14px;
  height: 14px;
  color: #71717a;
}

.stats-range-calendar .rdp-month_grid {
  width: 224px;
  min-width: 224px;
  margin: 0;
  border-collapse: collapse;
}

.stats-range-calendar .rdp-weekdays,
.stats-range-calendar .rdp-week {
  width: 224px;
  display: flex;
}

.stats-range-calendar .rdp-weekdays {
  height: 19.1953125px;
}

.stats-range-calendar .rdp-week {
  height: 32px;
  margin-top: 8px;
}

.stats-range-calendar .rdp-weekday {
  width: 32px;
  height: 19.1953125px;
  flex: 1 0 32px;
  padding: 0;
  border-radius: 8.4px;
  color: #71717a;
  font-size: 12.8px;
  font-weight: 400;
  line-height: 19.2px;
  opacity: 1;
  border-bottom: 0;
}

.stats-range-calendar .rdp-day {
  width: 32px;
  height: 32px;
  padding: 0;
  position: relative;
  color: #18181b;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
  border-bottom: 0;
}

.stats-date-range-menu .rdp-day_button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
  text-align: center;
}

.stats-date-range-menu .rdp-day_button:hover {
  background: #f4f4f5;
  color: #18181b;
}

.stats-range-calendar .rdp-outside {
  color: #71717a;
  opacity: 1;
}

.stats-range-calendar .rdp-selected {
  font-size: 14px;
  font-weight: 400;
}

.stats-range-calendar .rdp-range_middle {
  background: transparent;
}

.stats-range-calendar .rdp-range_middle .rdp-day_button {
  border-radius: 0;
  background: #f4f4f5;
  color: #18181b;
}

.stats-range-calendar .rdp-range_start {
  border-radius: 8.4px 0 0 8.4px;
  background: #f4f4f5;
}

.stats-range-calendar .rdp-range_end {
  border-radius: 0 8.4px 8.4px 0;
  background: #f4f4f5;
}

.stats-range-calendar .rdp-week > .rdp-range_middle:first-child .rdp-day_button {
  border-radius: 8.4px 0 0 8.4px;
}

.stats-range-calendar .rdp-week > .rdp-range_middle:last-child .rdp-day_button {
  border-radius: 0 8.4px 8.4px 0;
}

.stats-range-calendar .rdp-range_start .rdp-day_button,
.stats-range-calendar .rdp-range_end .rdp-day_button {
  border-radius: 8.4px;
  background: #025ce2;
  color: #fff;
}

.stats-range-calendar .rdp-range_start.rdp-range_end {
  border-radius: 8.4px;
  background: transparent;
}

@media (max-width: 767px) {
  .stats-date-range-menu {
    width: 250px;
  }

  .stats-range-calendar {
    width: 248px;
  }

  .stats-range-calendar .rdp-months {
    width: 224px;
    flex-direction: column;
  }

  .stats-range-calendar .rdp-nav {
    width: 224px;
  }
}

.stats-practitioner-menu {
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  width: 240px;
  padding: 0;
  border-radius: 8.4px;
}

.stats-practitioner-search {
  display: flex;
  width: 238px;
  height: 36px;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid oklch(0.92 0.004 286.32);
}

.stats-practitioner-search > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  opacity: .5;
}

.stats-practitioner-search input {
  width: 190px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
}

.stats-practitioner-options {
  width: 238px;
  height: 104px;
  padding: 4px;
  overflow-y: auto;
}

.stats-practitioner-options [role="option"] {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 230px;
  min-height: 32px;
  height: 32px;
  padding: 6px 8px;
  border-radius: 6.4px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.stats-practitioner-options [role="option"][aria-selected="true"] {
  background: #f4f4f5;
}

.stats-practitioner-options [role="option"] > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  opacity: 0;
}

.stats-practitioner-options [role="option"] > svg.selected {
  opacity: 1;
}

.stats-practitioner-options > span {
  display: block;
  padding: 8px 10px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}

.stats-revenue-card,
.stats-metric-panel {
  border: 1px solid oklch(0.929 0.013 255.508);
  border-radius: 16px;
  background: linear-gradient(to bottom right, rgb(255, 255, 255), oklch(0.984 0.003 247.858));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.stats-revenue-card {
  margin: 0 0 24px;
  padding: 20px;
}

.stats-panel-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
}

.stats-panel-title-row h2,
.stats-metric-panel h2 {
  margin: 0;
  color: oklch(0.208 0.042 265.755);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.stats-panel-title-row p,
.stats-metric-panel p {
  margin: 0;
  color: oklch(0.554 0.046 257.417);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
}

.stats-panel-title-row > span {
  align-self: end;
  color: oklch(0.554 0.046 257.417);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.stats-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.stats-summary-card,
.stats-mini-card {
  min-height: 64px;
  border-radius: 14.4px;
  border: 0;
  padding: 12px;
  background: oklch(0.97 0.014 254.604 / 0.7);
  box-shadow: 0 0 0 1px oklch(0.882 0.059 254.128 / 0.7);
}

.stats-summary-card {
  border: 0;
  box-shadow: 0 0 0 1px oklch(0.882 0.059 254.128 / 0.7);
}

.stats-summary-card .stats-summary-label,
.stats-mini-card span {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: oklch(0.488 0.243 264.376);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
}

.stats-summary-card .stats-summary-value,
.stats-mini-card strong {
  display: block;
  margin: 0;
  color: oklch(0.208 0.042 265.755);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.stats-summary-card .stats-summary-label > span {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 9999px;
  background: oklch(0.546 0.245 262.881);
}

.stats-summary-card.cyan,
.stats-mini-card.cyan {
  background: oklch(0.977 0.013 236.62 / 0.7);
  box-shadow: 0 0 0 1px oklch(0.901 0.058 230.902 / 0.7);
}

.stats-summary-card.cyan {
  border: 0;
  box-shadow: 0 0 0 1px oklch(0.901 0.058 230.902 / 0.7);
}

.stats-summary-card.cyan .stats-summary-label,
.stats-mini-card.cyan span {
  color: oklch(0.5 0.134 242.749);
}

.stats-summary-card.cyan .stats-summary-label > span {
  background: oklch(0.588 0.158 241.966);
}

.stats-summary-card.orange {
  border: 0;
  background: oklch(0.98 0.016 73.684 / 0.7);
  box-shadow: 0 0 0 1px oklch(0.901 0.076 70.697 / 0.8);
}

.stats-summary-card.orange .stats-summary-label {
  color: oklch(0.553 0.195 38.402);
}

.stats-summary-card.orange .stats-summary-label > span {
  background: oklch(0.646 0.222 41.116);
}

.stats-mini-card.green {
  background: rgba(236, 253, 245, 0.7);
  box-shadow: 0 0 0 1px rgba(167, 243, 208, 0.7);
}

.stats-mini-card.green span {
  color: #15803d;
}

.stats-mini-card.violet {
  background: rgba(245, 243, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(221, 214, 254, 0.7);
}

.stats-mini-card.violet span {
  color: #4f46e5;
}

.stats-mini-card.red {
  background: rgba(254, 242, 242, 0.7);
  box-shadow: 0 0 0 1px rgba(254, 202, 202, 0.7);
}

.stats-mini-card.red span {
  color: #b91c1c;
}

.stats-mini-card.amber {
  background: rgba(255, 251, 235, 0.7);
  box-shadow: 0 0 0 1px rgba(253, 230, 138, 0.7);
}

.stats-mini-card.amber span {
  color: #b45309;
}

.stats-chart-shell {
  border: 0;
  border-radius: 14.4px;
  background: oklch(1 0 0 / 0.7);
  padding: 8px;
  box-shadow: 0 0 0 1px oklch(0.929 0.013 255.508 / 0.7);
}

.stats-chart-shell.revenue {
  width: 100%;
  height: 420px;
  min-height: 420px;
}

.stats-chart-shell.revenue.empty {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.stats-chart-shell.revenue.empty .stats-panel-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border-radius: 14.4px;
  background: oklch(1 0 0 / 0.7);
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  box-shadow: 0 0 0 1px oklch(0.929 0.013 255.508 / 0.7);
}

.stats-echart {
  width: 100%;
  height: 100%;
}

.stats-chart-shell.compact {
  min-height: 286px;
}

.stats-current-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 16px;
}

.stats-metric-panel {
  padding: 20px;
}

.stats-panel-heading {
  height: 68px;
  margin-bottom: 16px;
}

.stats-panel-heading h2,
.stats-panel-heading p {
  margin: 0;
}

.stats-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  height: 84px;
  margin: 0 0 16px;
}

.stats-mini-metrics.single {
  grid-template-columns: minmax(0, 268px);
}

.stats-legacy-grid {
  margin-top: 0;
  gap: 16px;
}

.stats-chart-panel-current {
  height: 446px;
}

.stats-chart-panel-current h2 {
  margin-bottom: 16px;
}

.stats-ranked-panel {
  min-height: 506px;
}

.stats-ranked-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.stats-ranked-heading {
  display: flex;
  min-height: 48px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.stats-ranked-heading > div {
  min-width: 0;
}

.stats-ranked-heading h2,
.stats-ranked-heading p {
  margin: 0;
}

.stats-ranked-heading > strong {
  flex: 0 0 auto;
  color: #0f172a;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.stats-ranked-chart {
  height: 400px;
}

.stats-ranked-list {
  min-height: 400px;
  padding: 16px;
  border: 0;
  border-radius: 14.4px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.7);
}

.stats-ranked-list h3 {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.stats-ranked-summary {
  min-height: 72px;
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 10.4px;
  background: rgba(241, 245, 249, 0.8);
}

.stats-ranked-summary span,
.stats-ranked-summary strong {
  display: block;
}

.stats-ranked-summary span {
  color: #64748b;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-transform: uppercase;
}

.stats-ranked-summary strong {
  color: #0f172a;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.stats-ranked-scroll {
  max-height: 256px;
  padding-right: 4px;
  overflow-y: auto;
}

.stats-ranked-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  padding: 0;
  color: #334155;
  font-size: 13px;
  border: 0;
}

.stats-ranked-row + .stats-ranked-row {
  margin-top: 12px;
}

.stats-ranked-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.stats-ranked-row i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.stats-ranked-row strong {
  color: #111827;
  font-size: 13px;
  font-weight: 600;
}

.stats-current-grid > .stats-metric-panel {
  height: 704px;
}

.stats-current-chart,
.stats-status-chart {
  height: 380px;
}

.stats-status-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  height: 84px;
  margin-bottom: 12px;
}

.stats-attendance-card {
  height: 86px;
  margin-bottom: 16px;
  padding: 12px;
  border: 0;
  border-radius: 14.4px;
  background: rgba(239, 246, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.7);
}

.stats-attendance-card span,
.stats-attendance-card strong,
.stats-attendance-card b {
  display: block;
}

.stats-attendance-card span {
  color: #005dcc;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-transform: uppercase;
}

.stats-attendance-card strong {
  color: #0f172a;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.stats-attendance-card b {
  color: #64748b;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}

.stats-appointment-type-panel,
.stats-top-acts-panel,
.stats-sex-distribution-panel,
.stats-acquisition-panel {
  height: 534px;
}

.stats-new-patients-chart {
  height: 360px;
}

.stats-patient-sex-chart {
  height: 320px;
}

.stats-acquisition-panel .stats-panel-empty {
  height: 400px;
  min-height: 400px;
  margin-top: 16px;
  border: 0;
  border-radius: 14.4px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.7);
}

.stats-clinic-finance-panel {
  grid-column: 1 / -1;
  height: 506px;
}

@media (max-width: 1180px) {
  .stats-practitioner-control {
    flex: 1 1 auto;
    width: auto;
    margin-left: 0;
  }

  .stats-practitioner-control > button {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .dashboard-summary-grid,
  .dashboard-panel-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-greeting-card {
    width: auto;
  }

  .dashboard-panel {
    min-height: 0;
  }

  .stats-period-card,
  .stats-current-grid,
  .stats-legacy-grid,
  .stats-ranked-body {
    grid-template-columns: 1fr;
  }

  .stats-period-card {
    padding: 16px;
  }

  .admin-subscription-current-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-subscription-date-range > button,
  .admin-subscription-preset-control {
    width: 100%;
  }

  .admin-subscription-date-range > button {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-subscription-current-grid {
    grid-template-columns: 1fr;
  }

  .admin-subscription-pie-shell,
  .admin-subscription-detail-panel,
  .admin-subscription-empty-state {
    min-height: 300px;
  }

  .stats-date-chip,
  .stats-filter-control > button,
  .stats-practitioner-control > button {
    width: 100%;
    min-width: 0;
  }

  .stats-filter-menu,
  .stats-filter-menu-small,
  .stats-practitioner-menu {
    right: auto;
    left: 0;
    width: 100%;
  }

  .stats-mini-metrics.single {
    grid-template-columns: 1fr;
  }

  .stats-mini-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-summary-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-current-grid > .stats-metric-panel,
  .stats-chart-panel-current,
  .stats-appointment-type-panel,
  .stats-top-acts-panel,
  .stats-sex-distribution-panel,
  .stats-acquisition-panel,
  .stats-clinic-finance-panel {
    height: auto;
  }

  .stats-panel-heading,
  .stats-mini-metrics,
  .stats-status-metrics {
    height: auto;
  }

  .stats-status-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-ranked-list {
    min-height: 0;
  }
}

@media (max-width: 639px) {
  .stats-summary-row,
  .stats-mini-metrics,
  .stats-status-metrics {
    grid-template-columns: 1fr;
  }
}

/* Authoritative current-act geometry. Keep this final so legacy parity
   calibration rules cannot compress or offset the financial columns. */
.patient-operations-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-inline: contain;
}

.patient-current-operations-table {
  width: max(100%, 1360px) !important;
  min-width: 1360px !important;
  table-layout: fixed !important;
}

.patient-current-operations-columns .operation-select-column { width: 65px; }
.patient-current-operations-columns .operation-date-column { width: 110px; }
.patient-current-operations-columns .operation-teeth-column { width: 115px; }
.patient-current-operations-columns .operation-act-column { width: 400px; }
.patient-current-operations-columns .operation-price-column,
.patient-current-operations-columns .operation-received-column,
.patient-current-operations-columns .operation-remaining-column { width: 90px; }
.patient-current-operations-columns .operation-status-column { width: 120px; }
.patient-current-operations-columns .operation-actions-column { width: 280px; }

.patient-current-operations-table th,
.patient-current-operations-table td {
  position: static !important;
  left: auto !important;
  width: auto !important;
  min-width: 0 !important;
  transform: none !important;
  vertical-align: middle;
}

.patient-current-operations-table tbody tr {
  height: auto !important;
  min-height: 56px;
}

.patient-current-operations-table td:nth-child(4) .operation-name {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.patient-current-operations-table td:nth-child(3) .teeth-pills {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 4px;
}

.patient-current-operations-table td:nth-child(5),
.patient-current-operations-table td:nth-child(6),
.patient-current-operations-table td:nth-child(7),
.patient-current-operations-table td:nth-child(8),
.patient-current-operations-table td:nth-child(9) {
  white-space: nowrap;
}

.patient-current-operations-table .operation-status-trigger,
.patient-current-operations-table .dentalome-actions {
  left: auto !important;
  transform: none !important;
}

.operation-receipt-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.operation-receipt-actions > button {
  flex: 0 0 auto;
}

/* Configurable appointment-reminder schedule. */
.reminder-settings-panel {
  height: 100%;
  overflow-y: auto;
  padding-right: 8px;
}

.reminder-settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 720px;
  margin-bottom: 24px;
}

.reminder-settings-heading h1 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0;
}

.reminder-settings-heading p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 20px;
}

.reminder-settings-heading > svg {
  flex: 0 0 auto;
  color: #0b63e5;
}

.reminder-settings-form {
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.reminder-time-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #f8fafc;
}

.reminder-time-field > span {
  color: #101828;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.reminder-time-field > small {
  min-height: 18px;
  color: #667085;
  font-size: 12px;
  line-height: 18px;
}

.reminder-time-field input {
  width: 100%;
  height: 42px;
  border: 1px solid #cfd7e3;
  border-radius: 7px;
  padding: 6px 10px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.reminder-time-field input:focus {
  border-color: #0b63e5;
  outline: 3px solid rgb(11 99 229 / 12%);
}

.reminder-time-field input:disabled {
  cursor: not-allowed;
  opacity: .65;
}

.reminder-settings-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.reminder-settings-actions .primary-button {
  min-width: 132px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.reminder-settings-loading {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #667085;
}

.reminder-settings-notice {
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid #dfe5ec;
  border-radius: 7px;
  font-size: 13px;
}

.reminder-settings-notice.success {
  border-color: #a7d8b1;
  background: #f1faf3;
  color: #23783a;
}

.reminder-settings-notice.error {
  border-color: #efc1bd;
  background: #fff5f4;
  color: #a23b32;
}

@media (max-width: 639px) {
  .reminder-settings-form {
    grid-template-columns: 1fr;
  }

  .reminder-settings-actions {
    grid-column: 1;
  }

  .reminder-settings-actions .primary-button {
    width: 100%;
  }
}

.patient-whatsapp-template-preview {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0 0 16px;
  padding: 10px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #f8fafc;
}

.patient-whatsapp-template-preview img {
  width: 132px;
  aspect-ratio: 1200 / 628;
  object-fit: cover;
  border-radius: 6px;
}

.patient-whatsapp-template-preview div {
  display: grid;
  gap: 3px;
}

.patient-whatsapp-template-preview span,
.patient-whatsapp-template-preview small {
  color: #667085;
  font-size: 12px;
}

.patient-whatsapp-template-preview strong {
  color: #9a6700;
  font-size: 13px;
}

.patient-whatsapp-provider-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #d7aa41;
  background: #fff9eb;
  color: #704d00;
  font-size: 12px;
  line-height: 1.45;
}

.patient-whatsapp-dialog .modal-actions {
  flex-wrap: wrap;
}

.patient-whatsapp-dialog .modal-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.template-list-thumbnail {
  width: 58px;
  aspect-ratio: 1200 / 628;
  flex: 0 0 58px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
}

.template-provider-status {
  width: max-content;
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.template-provider-status.pending {
  background: #fff3d6;
  color: #8a5b00;
}

.template-provider-status.approved {
  background: #e8f8ef;
  color: #157347;
}

.template-clinical-summary {
  display: grid;
  grid-template-columns: minmax(220px, 42%) minmax(0, 1fr);
  gap: 18px;
  margin: 0 24px 20px;
  padding: 12px;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #f8fafc;
}

.template-clinical-summary img {
  width: 100%;
  aspect-ratio: 1200 / 628;
  object-fit: cover;
  border-radius: 6px;
}

.template-clinical-summary div {
  align-self: center;
}

.template-clinical-summary span {
  color: #0b63d8;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.template-clinical-summary h3 {
  margin: 5px 0 10px;
  color: #101828;
  font-size: 17px;
}

.template-clinical-summary p {
  margin: 5px 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.template-clinical-approve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  margin-top: 9px;
  padding: 0 12px;
  border: 1px solid #1261d7;
  border-radius: 7px;
  background: #1261d7;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.template-clinical-approve:disabled {
  cursor: wait;
  opacity: 0.65;
}

.prevention-recall-modal > footer {
  flex-wrap: wrap;
}

.prevention-recall-panel {
  display: grid;
  gap: 16px;
}

.prevention-recall-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #fff;
}

.prevention-recall-panel > header span {
  color: #0b63d8;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.prevention-recall-panel > header h2 {
  margin: 4px 0;
  color: #101828;
  font-size: 20px;
}

.prevention-recall-panel > header p {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.prevention-recall-panel > header > strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 6px;
  background: #eaf2ff;
  color: #0b63d8;
  font-size: 13px;
}

.prevention-table {
  min-width: 1040px;
}

.prevention-recall-modal {
  width: min(720px, calc(100vw - 32px));
}

.prevention-message-preview {
  padding: 14px;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #f8fafc;
}

.prevention-message-preview > strong {
  color: #344054;
  font-size: 12px;
}

.prevention-message-preview p {
  margin: 8px 0 0;
  color: #101828;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .patient-whatsapp-template-preview,
  .template-clinical-summary {
    grid-template-columns: 1fr;
  }

  .patient-whatsapp-template-preview img {
    width: 100%;
  }

  .template-clinical-summary {
    margin-inline: 14px;
  }

  .prevention-recall-panel > header {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .dashboard-workspace {
    padding: 30px 32px 44px;
  }

  .dashboard-greeting-card {
    padding: 22px 24px;
  }

  .dashboard-panel {
    padding: 20px;
  }

  .dashboard-panel-head {
    align-items: flex-start;
  }

  .dashboard-panel-head h2 {
    font-size: 22px;
  }

  .dashboard-summary-value {
    font-size: 22px;
  }

  .dashboard-unpaid-row {
    align-items: flex-start;
  }

  .stats-workspace {
    padding: 24px 24px 8px;
  }

  .stats-revenue-card,
  .stats-metric-panel {
    padding: 20px;
  }

  .stats-panel-title-row {
    flex-direction: column;
    gap: 6px;
  }

  .stats-panel-title-row h2,
  .stats-metric-panel h2 {
    font-size: 20px;
  }

  .stats-chart-shell.revenue {
    min-height: 420px;
  }

  .stats-chart-shell.compact {
    min-height: 240px;
  }

  .stats-ranked-list {
    min-height: 0;
  }
}

.teeth-pills {
  gap: 4px;
}

.teeth-pills b {
  min-width: 34px;
  min-height: 28px;
  border-radius: 6px;
  background: #dceee4;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.dentalome-status {
  min-width: 108px;
  min-height: 36px;
  border-radius: 999px;
  background: #68a0fb;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.dentalome-actions {
  gap: 13px;
}

.dentalome-actions .plain-icon.small {
  width: 24px;
  height: 24px;
  color: #121417;
}

/* Current Dentalome patient odontogram controls: inline select-all switches, no external child toggle. */
.odontogram-panel.dentalome-odontogram-card .odontogram-control-row,
.odontogram-panel.dentalome-odontogram-card .odontogram-control-row.top,
.odontogram-panel.dentalome-odontogram-card .odontogram-control-row.bottom {
  position: static;
  inset: auto;
  width: 100%;
  display: flex;
  margin: 0;
  color: #344054;
  font-size: 14px;
  font-weight: 650;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row.top {
  justify-content: space-between;
  padding: 20px 0 4px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row.bottom {
  justify-content: flex-start;
  padding: 8px 0 0;
}

.odontogram-panel.dentalome-odontogram-card .all-teeth-control {
  font-size: 14px;
}

.odontogram-panel.dentalome-odontogram-card .child-schema-inline {
  margin-left: auto;
}

.dentalome-child-schema-row {
  display: none;
}

.odontogram-panel.dentalome-odontogram-card .odontogram {
  margin-top: 8px;
}

/* Current Dentalome daily dashboard parity. */
.dashboard-workspace {
  height: calc(100vh - 60px);
  min-height: 0;
  padding: 24px 24px 8px;
  overflow-y: auto;
  background: #f6f7f8;
}

.dashboard-greeting-card {
  width: fit-content;
  min-width: 0;
  margin: 0 0 24px;
  padding: 20px 24px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  background: linear-gradient(to bottom right, #fff, rgba(248, 250, 252, 0.8));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.dashboard-greeting-card h1 {
  margin: 0;
  color: #1e293b;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.dashboard-greeting-card p {
  margin: 4px 0 0;
  color: #475569;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}

.dashboard-summary-card {
  min-height: 84px;
  padding: 16px;
  border: 1px solid rgba(191, 219, 254, 0.6);
  border-radius: 14.4px;
  background: linear-gradient(to bottom right, rgba(239, 246, 255, 0.9), rgba(239, 246, 255, 0.5));
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(219, 234, 254, 0.8);
}

.dashboard-summary-label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-summary-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
}

.dashboard-summary-value {
  margin-bottom: 0;
  display: block;
  margin-top: 4px;
  color: #1e293b;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.dashboard-summary-card.green {
  border-color: rgba(167, 243, 208, 0.6);
  background: linear-gradient(to bottom right, rgba(236, 253, 245, 0.9), rgba(236, 253, 245, 0.5));
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(209, 250, 229, 0.8);
}

.dashboard-summary-card.green .dashboard-summary-label {
  color: #047857;
}

.dashboard-summary-card.blue {
  border-color: rgba(191, 219, 254, 0.6);
}

.dashboard-summary-card.violet {
  min-height: 0;
  border-color: rgba(221, 214, 254, 0.6);
  background: linear-gradient(to bottom right, rgba(245, 243, 255, 0.9), rgba(245, 243, 255, 0.5));
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(237, 233, 254, 0.8);
}

.dashboard-summary-card.violet .dashboard-summary-label {
  color: #6d28d9;
}

.dashboard-summary-card.violet .dashboard-summary-value {
  font-size: 18px;
  line-height: 28px;
}

.dashboard-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.dashboard-panel {
  min-height: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(to bottom right, #fff, #f8fafc);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.dashboard-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dashboard-panel-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.dashboard-panel-head p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.dashboard-panel-head p strong {
  color: #475569;
  font-weight: 850;
}

.dashboard-panel-head a {
  color: #005fe5;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
}

.dashboard-panel-head a:hover {
  text-decoration: underline;
}

.dashboard-appointment-list,
.dashboard-payment-list,
.dashboard-unpaid-list {
  display: grid;
  gap: 8px;
}

.dashboard-unpaid-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-appointment-list {
  max-height: 432px;
  overflow-y: auto;
  padding-right: 4px;
}

.dashboard-appointment-row,
.dashboard-payment-row,
.dashboard-unpaid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
  border: 1px solid #f1f5f9;
  border-radius: 10.4px;
  background: #fff;
  color: #1f2937;
}

.dashboard-appointment-row {
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
}

.dashboard-appointment-row:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.dashboard-appointment-row span,
.dashboard-payment-row span,
.dashboard-unpaid-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.dashboard-appointment-row strong,
.dashboard-payment-row strong,
.dashboard-unpaid-name {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.dashboard-appointment-row small,
.dashboard-payment-row small,
.dashboard-unpaid-phone {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.dashboard-appointment-row svg {
  flex: 0 0 auto;
  color: #667085;
}

.dashboard-appointment-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 8.4px;
  color: #71717a;
  cursor: pointer;
}

.dashboard-appointment-row strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dashboard-appointment-delete:hover {
  color: #dc2626;
}

.dashboard-appointment-link {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 12px;
  align-self: stretch;
  color: inherit;
  text-decoration: none;
}

.dashboard-appointment-color {
  width: 4px;
  height: 40px;
  flex: 0 0 4px;
  border-radius: 999px;
  background: var(--appointment-color, #94a3b8);
}

.dashboard-appointment-link:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.dashboard-empty-appointment-card,
.dashboard-empty-payment-card {
  min-height: 200px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0;
  padding: 32px;
  border: 1px dashed rgba(0, 95, 229, 0.15);
  border-radius: 12px;
  background: #fff;
  color: #64748b;
  text-align: center;
}

.dashboard-empty-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f4f4f5;
  color: #71717a;
}

.dashboard-empty-title {
  margin-top: 16px;
  margin-bottom: 0;
  color: #0f172a;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.dashboard-empty-appointment-card p,
.dashboard-empty-payment-card p {
  margin: 0;
  margin-top: 4px;
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
}

.dashboard-empty-appointment-card a,
.dashboard-empty-payment-card a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.dashboard-payment-row,
.dashboard-unpaid-row {
  gap: 0;
  padding: 12px 16px;
}

.dashboard-payment-total {
  display: grid;
  gap: 0;
  margin-bottom: 16px;
  padding: 12px;
  border: 0;
  border-radius: 14.4px;
  background: rgba(236, 253, 245, 0.7);
  box-shadow: 0 0 0 1px rgba(167, 243, 208, 0.7);
}

.dashboard-payment-total span {
  color: #047857;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-transform: uppercase;
}

.dashboard-payment-total strong {
  color: #0f172a;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

a.dashboard-unpaid-row,
a.dashboard-payment-row {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

a.dashboard-unpaid-row:hover,
a.dashboard-payment-row:hover {
  background: #f8fbff;
}

a.dashboard-unpaid-row:focus-visible,
a.dashboard-payment-row:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.dashboard-payment-row b,
.dashboard-unpaid-amount {
  margin: 0;
  flex: 0 1 auto;
  color: #0f172a;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.dashboard-unpaid-amount {
  color: #a16207;
}

.dashboard-muted-empty {
  margin: 0;
  padding: 22px;
  color: #667085;
  border: 1px dashed #d9dee8;
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 1279px) {
  .dashboard-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .dashboard-summary-grid,
  .dashboard-panel-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-panel {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
}

@media (max-width: 520px) {
  .dashboard-workspace {
    padding: 24px 24px 36px;
  }

  .dashboard-summary-grid,
  .dashboard-panel-grid {
    gap: 16px;
  }

  .dashboard-greeting-card {
    width: 100%;
    padding: 20px 24px;
  }

  .dashboard-panel {
    padding: 20px;
  }

  .dashboard-panel-head {
    align-items: flex-start;
  }

  .dashboard-panel-head h2 {
    font-size: 20px;
  }

  .dashboard-summary-value {
    font-size: 24px;
  }

  .dashboard-unpaid-row {
    align-items: flex-start;
  }
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: 210px minmax(320px, 1fr) auto;
  }

  .app-body.no-rail,
  .app-body.patient-detail-mode {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .primary-nav,
  .app-body.patient-detail-mode .primary-nav {
    width: 210px;
  }

  .patient-treatment-layout {
    grid-template-columns: minmax(620px, 1fr);
  }

  .act-status-card {
    min-height: 260px;
  }
}

/* 2026-05-30 live Dentalome shell parity pass. */
.topbar {
  grid-template-columns: 255px minmax(420px, 520px) minmax(120px, 1fr);
  gap: 24px;
  padding-right: 26px;
}

.topbar .brand {
  justify-content: flex-start;
  gap: 12px;
  padding-right: 10px;
  border-right: 1px solid #e4e7ec;
}

.topbar-sidebar-toggle {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #111827;
}

.topbar-sidebar-toggle:hover {
  background: #f2f4f7;
}

.topbar-mobile-menu-toggle {
  display: none;
}

.global-search {
  width: min(100%, 520px);
  max-width: 520px;
  height: 36px;
  padding: 0;
  border-color: #d9dee8;
  border-radius: 8px;
}

.global-search input {
  height: 34px;
  padding-left: 37px;
  background: #fff;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
}

.global-search input::placeholder {
  color: #667085;
  font-weight: 500;
}

.global-search .global-search-icon {
  width: 17px;
  height: 17px;
  color: #667085;
}

.global-search-shortcut {
  right: 10px;
  min-width: 20px;
  height: 20px;
  background: #f8fafc;
  color: #111827;
}

.user-zone {
  min-width: 0;
  gap: 10px;
}

.topbar-action {
  width: 36px;
  height: 36px;
  border: 1px solid #d9dee8;
  border-radius: 9px;
  background: #fff;
  color: #111827;
}

.topbar-action:hover {
  background: #f8fafc;
}

.topbar-action.has-notification::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ef4444;
}

.topbar-logout {
  display: none;
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: 210px minmax(320px, 1fr) auto;
  }
}

/* 2026-05-30 Dentalome odontogram PNG asset parity pass. */
.odontogram-panel.dentalome-odontogram-card .odontogram {
  width: 100%;
  max-width: min(100%, 1080px);
  gap: 10px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row {
  width: 100%;
  gap: clamp(4px, .55vw, 10px);
}

.odontogram-panel.dentalome-odontogram-card .tooth-group {
  gap: clamp(1px, .28vw, 5px);
  min-width: 0;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
  min-width: 0;
  min-height: 145px;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth {
  grid-template-rows: 22px minmax(118px, 1fr);
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
  grid-template-rows: minmax(118px, 1fr) 22px;
}

.odontogram-panel.dentalome-odontogram-card .tooth-art {
  width: clamp(36px, 3.2vw, 54px);
  height: 122px;
  min-height: 122px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.dentalome-tooth-png.tooth-svg {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.dentalome-tooth-png.tooth-svg img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.tooth.dentalome-tooth.selected .tooth-art {
  background: rgba(210, 227, 255, .96);
  box-shadow: 0 0 0 1px rgba(53, 132, 243, .08);
}

/* 2026-05-30 Dentalome screenshot shell correction: compact blue shell + right patient rail. */
.app-shell {
  grid-template-columns: 80px minmax(0, 1fr);
  grid-template-rows: 70px minmax(0, 1fr);
  background: #fff;
}

.topbar {
  height: 70px;
  grid-template-columns: 80px minmax(520px, 1fr) auto;
  gap: 18px;
  padding: 0 18px 0 0;
  background: #315d91;
  color: #fff;
  border-bottom: 0;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .28);
}

.topbar .brand {
  height: 70px;
  width: 80px;
  justify-content: center;
  padding: 0;
  border-right: 0;
  color: #fff;
}

.topbar .shell-logo {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, .34);
  background: linear-gradient(135deg, #7ed2bc, #315d91);
  color: #fff;
  font-size: 18px;
  box-shadow: none;
}

.topbar .brand span,
.topbar-sidebar-toggle,
.global-search-shortcut,
.topbar-action,
.topbar-action.has-notification {
  display: none;
}

.global-search {
  justify-self: start;
  width: min(100%, 980px);
  max-width: 980px;
  height: 52px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}

.global-search input {
  height: 52px;
  padding: 0 58px 0 17px;
  background: #fff;
  color: #252a31;
  font-size: 22px;
  font-weight: 800;
  border: 0;
  box-shadow: none;
}

.global-search input::placeholder {
  color: #252a31;
  font-weight: 800;
}

.global-search .global-search-icon {
  left: auto;
  right: 15px;
  width: 34px;
  height: 34px;
  color: #347cf6;
}

.user-zone {
  height: 70px;
  min-width: 300px;
  justify-content: flex-end;
  color: #fff;
  font-size: 28px;
  font-weight: 500;
}

.topbar-user-name {
  display: inline-block;
  color: #fff;
  font-size: 27px;
  font-weight: 500;
  white-space: nowrap;
}

.topbar-avatar {
  width: 58px;
  height: 58px;
  border: 5px solid #0a0a0a;
  background: #fff;
  color: #0a0a0a;
}

.app-body.no-rail {
  grid-template-columns: 80px minmax(0, 1fr);
  background: #fff;
}

.app-body.patient-detail-mode {
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  background: #fff;
}

.app-body.no-rail .main,
.app-body.patient-detail-mode .main {
  grid-column: 2;
}

.main {
  padding-top: 70px;
  background: #fff;
}

.primary-nav,
.app-body.patient-detail-mode .primary-nav {
  width: 80px;
  padding: 70px 0 0;
  background: #315d91;
  border-right: 0;
  color: #fff;
}

.primary-nav-brand,
.nav-section-label,
.primary-nav-user {
  display: none;
}

.primary-nav button,
.app-body.patient-detail-mode .primary-nav button {
  width: 100%;
  min-height: 82px;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 8px 5px;
  border-radius: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.primary-nav button svg {
  width: 28px;
  height: 28px;
}

.primary-nav span,
.app-body.patient-detail-mode .primary-nav span {
  display: block;
  font-size: 11px;
  line-height: 1.12;
}

.primary-nav button.active,
.primary-nav button:hover {
  background: #fff;
  color: #111;
}

.app-body.patient-detail-mode .patient-side-nav {
  grid-column: 3;
  grid-row: 1;
  display: flex !important;
  width: 80px;
  top: 70px;
  height: calc(100vh - 70px);
  background: #fff;
  border-left: 1px solid #d9dee6;
}

.patient-side-nav button {
  min-height: 82px;
  margin: 3px 0;
  border-radius: 22px 0 0 22px;
  color: #111;
  font-weight: 850;
}

.patient-side-nav button svg {
  width: 30px;
  height: 30px;
}

.patient-side-nav button.active,
.patient-side-nav button:hover {
  background: #589363;
  color: #fff;
}

.patient-side-nav span {
  font-size: 11px;
  line-height: 1.08;
}

.patient-workspace {
  padding: 18px 18px 58px;
  background: #fff;
}

.patient-header.dentalome-patient-header {
  display: block;
  min-height: 62px;
  margin: 0 0 20px;
  padding: 0;
  border: 1px solid #eceff3;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(17, 24, 39, .08);
  overflow: hidden;
}

.patient-title-strip {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(410px, 480px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
}

.patient-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.patient-title-line h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #20242b;
  font-size: clamp(20px, 1.26vw, 25px);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.patient-title-line .patient-alert-icon {
  flex: 0 0 auto;
  color: #6b7280;
}

.patient-edit-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #20242b;
}

.patient-header-financials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.45vw, 24px);
  min-width: 0;
  white-space: nowrap;
}

.patient-header-financials .metric {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #20242b;
  font-size: clamp(16px, 1.02vw, 20px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
}

.patient-header-financials .metric span::after {
  content: " :";
}

.patient-header-financials .metric strong,
.patient-header-financials .metric b {
  color: inherit;
  font-size: inherit;
  line-height: 1.05;
  font-weight: 850;
}

.patient-header-financials .metric.green strong,
.patient-header-financials .metric.green b {
  color: #39a369;
}

.patient-header-financials .metric.red strong,
.patient-header-financials .metric.red b {
  color: #d8222a;
}

.patient-header-tabs,
.patient-header.dentalome-patient-header .patient-warning {
  display: none;
}

.patient-treatment-card {
  border: 1px solid #eceff3;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(17, 24, 39, .06);
}

.patient-treatment-layout {
  grid-template-columns: minmax(720px, 1fr) 320px;
  gap: 18px;
  padding: 22px 18px 0;
  align-items: flex-start;
}

.odontogram-panel.dentalome-odontogram-card {
  min-height: 560px;
  padding: 0 34px 24px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 9px -2px #ccc;
  overflow: hidden;
}

.odontogram-panel.dentalome-odontogram-card .treatment-card-top {
  display: block;
  margin: 0 0 18px;
  padding: 0;
  border-bottom: 1px solid #dfe3ea;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs {
  display: flex;
  width: max-content;
  min-height: 62px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
  min-width: 112px;
  min-height: 62px;
  padding: 0 20px;
  border: 0;
  border-bottom: 4px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #424852;
  font-size: 18px;
  font-weight: 850;
  white-space: nowrap;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button.active {
  color: #1677ff;
  border-bottom-color: #1677ff;
  background: #fff;
  box-shadow: none;
}

.act-status-card {
  min-height: 560px;
  min-width: 0;
  padding: 28px 32px 32px;
  border: 1px solid rgba(0, 0, 0, .04);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 17px rgba(33, 43, 54, .11);
  overflow: hidden;
}

.act-status-card .add-act-button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: #589363;
  color: #fff;
  box-shadow: none;
  font-size: 18px;
  font-weight: 850;
}

.act-status-card .add-act-button:hover {
  background: #4f8759;
}

.patient-operations-card {
  padding: 0 24px 28px;
}

.patient-document-actions {
  justify-content: flex-end;
  margin: 8px 0 14px;
}

.patient-operations-wrap {
  margin-top: 58px;
}

/* 2026-05-30 Dentalome odontogram asset parity pass.
   Keep this after older compatibility rules so the extracted Dentalome SVG teeth win over PNG-era sizing. */
.odontogram-panel.dentalome-odontogram-card .odontogram {
  max-width: 100%;
  gap: 20px;
  overflow: visible;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row {
  gap: clamp(18px, 1.8vw, 34px);
  align-items: flex-start;
  overflow: visible;
}

.odontogram-panel.dentalome-odontogram-card .tooth-group {
  gap: clamp(12px, 1.15vw, 24px);
  align-items: flex-start;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
  min-width: clamp(36px, 3.15vw, 66px);
  min-height: 112px;
  display: grid;
  grid-template-rows: 20px 88px;
  gap: 4px;
  align-items: start;
  justify-items: center;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth strong,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower strong {
  order: 0;
  color: #20242b;
  font-size: clamp(13px, .9vw, 18px);
  line-height: 20px;
  font-weight: 850;
}

.odontogram-panel.dentalome-odontogram-card .tooth-art,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower .tooth-art {
  order: 1;
  width: clamp(38px, 3.5vw, 72px);
  height: 88px;
  min-height: 88px;
  display: grid;
  place-items: start center;
  overflow: visible;
}

.dentalome-tooth-vector-wrap.tooth-svg {
  width: 100%;
  height: 88px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
}

.dentalome-tooth-vector-wrap.tooth-svg .dentalome-tooth-vector,
.dentalome-tooth-vector-wrap.tooth-svg svg {
  width: auto;
  max-width: 76px;
  height: 86px;
  overflow: visible;
}

.dentalome-tooth-vector-wrap.tooth-svg svg .cls-1 {
  fill: none !important;
  stroke: #010101 !important;
}

.dentalome-tooth-vector-wrap.tooth-svg svg .cls-2,
.dentalome-tooth-vector-wrap.tooth-svg svg .cls-3 {
  fill: #fff !important;
  stroke: #000 !important;
}

.dentalome-tooth-vector-wrap.treated.tooth-svg:not([data-dent="31"]):not([data-dent="32"]):not([data-dent="33"]):not([data-dent="36"]):not([data-dent="41"]):not([data-dent="42"]):not([data-dent="43"]):not([data-dent="46"]) svg .cls-2,
.dentalome-tooth-vector-wrap.treated.tooth-svg[data-dent="31"] svg .cls-3,
.dentalome-tooth-vector-wrap.treated.tooth-svg[data-dent="32"] svg .cls-3,
.dentalome-tooth-vector-wrap.treated.tooth-svg[data-dent="33"] svg .cls-3,
.dentalome-tooth-vector-wrap.treated.tooth-svg[data-dent="36"] svg .cls-3,
.dentalome-tooth-vector-wrap.treated.tooth-svg[data-dent="41"] svg .cls-3,
.dentalome-tooth-vector-wrap.treated.tooth-svg[data-dent="42"] svg .cls-3,
.dentalome-tooth-vector-wrap.treated.tooth-svg[data-dent="43"] svg .cls-3,
.dentalome-tooth-vector-wrap.treated.tooth-svg[data-dent="46"] svg .cls-3 {
  fill: var(--dent-acte-color, #49d889) !important;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.selected .tooth-art {
  background: rgba(210, 227, 255, .96);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(43, 126, 255, .08);
}

.odontogram-panel.dentalome-odontogram-card .odontogram-divider {
  margin: 0;
  border-color: #d9dce3;
}

/* 2026-05-30 Dentalome PNG asset pass.
   The authenticated Dentalome frontend ships per-tooth PNGs; use them directly so roots,
   occlusal surfaces, treatment fills, and proportions match the reference screenshots. */
.odontogram-panel.dentalome-odontogram-card .odontogram {
  gap: 18px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row {
  gap: clamp(12px, 1vw, 24px);
}

.odontogram-panel.dentalome-odontogram-card .tooth-group {
  gap: clamp(8px, .72vw, 18px);
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth {
  width: clamp(42px, 3.15vw, 66px);
  min-width: clamp(42px, 3.15vw, 66px);
  min-height: 190px;
  gap: 5px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.upper .tooth.dentalome-tooth {
  grid-template-rows: 158px 25px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.lower .tooth.dentalome-tooth {
  grid-template-rows: 25px 158px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.upper .tooth.dentalome-tooth .tooth-art {
  order: 0;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.upper .tooth.dentalome-tooth strong {
  order: 1;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.lower .tooth.dentalome-tooth strong {
  order: 0;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.lower .tooth.dentalome-tooth .tooth-art {
  order: 1;
}

.odontogram-panel.dentalome-odontogram-card .tooth-art,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower .tooth-art {
  width: clamp(43px, 3.35vw, 70px);
  height: 158px;
  min-height: 158px;
  place-items: center;
}

.dentalome-tooth-png.tooth-svg {
  width: 100%;
  height: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.dentalome-tooth-png.tooth-svg img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.selected .tooth-art {
  background: rgba(210, 227, 255, .96);
  border-radius: 13px;
}

/* 2026-05-31 live Dentalome v3 overrides.
   These rules intentionally come last: previous parity passes still contain the
   old narrow-nav Dentalome layout and would otherwise override the new capture. */
.topbar {
  height: 60px;
  grid-template-columns: 255px minmax(420px, 560px) minmax(0, 1fr) auto;
  gap: 16px;
  padding: 0 16px 0 0;
  background: #fff;
  color: #101828;
  border-bottom: 1px solid #e4e7ec;
  box-shadow: none;
}

.topbar .brand {
  width: 255px;
  height: 60px;
  justify-content: flex-start;
  gap: 9px;
  padding: 0 18px 0 28px;
  border-right: 1px solid #e4e7ec;
  color: #101828;
}

.topbar .shell-logo {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #0b63d8;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.topbar .brand span {
  display: inline;
  color: #101828;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: 0;
}

.topbar-sidebar-toggle,
.global-search-shortcut,
.topbar-action,
.topbar-action.has-notification {
  display: inline-flex;
}

.topbar-sidebar-toggle {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #344054;
}

.global-search {
  justify-self: start;
  width: min(100%, 500px);
  max-width: 500px;
  height: 38px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.global-search input {
  height: 38px;
  padding: 0 42px 0 36px;
  background: transparent;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  border: 0;
  box-shadow: none;
}

.global-search input::placeholder {
  color: #667085;
  font-weight: 500;
}

.global-search .global-search-icon {
  left: 12px;
  right: auto;
  width: 18px;
  height: 18px;
  color: #667085;
}

.global-search-shortcut {
  right: 12px;
  color: #667085;
  background: #f8fafc;
  border: 1px solid #d0d5dd;
}

.user-zone {
  min-width: 0;
  height: 60px;
  gap: 10px;
  justify-content: flex-end;
  color: #344054;
}

.topbar-action {
  width: 38px;
  height: 38px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #101828;
}

.topbar-logout {
  display: none;
}

.app-body.no-rail,
.app-body.patient-detail-mode {
  grid-template-columns: 255px minmax(0, 1fr);
  background: #f5f6f8;
}

.app-body.no-rail .main,
.app-body.patient-detail-mode .main {
  grid-column: 2;
}

.main {
  padding-top: 60px;
  background: #f5f6f8;
}

.primary-nav,
.app-body.patient-detail-mode .primary-nav {
  width: 255px;
  padding: 60px 8px 0;
  background: #fff;
  border-right: 1px solid #e4e7ec;
  color: #344054;
}

.primary-nav-brand {
  display: none;
}

.nav-section-label,
.primary-nav-user {
  display: flex;
}

.primary-nav-scroll {
  padding: 14px 0 84px;
}

.nav-section {
  margin: 0 0 22px;
}

.nav-section-label {
  padding: 0 8px 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
}

.primary-nav button,
.app-body.patient-detail-mode .primary-nav button {
  width: 100%;
  min-height: 36px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 11px;
  padding: 0 12px;
  border-radius: 7px;
  color: #344054;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
}

.primary-nav button svg {
  width: 17px;
  height: 17px;
}

.primary-nav span,
.app-body.patient-detail-mode .primary-nav span {
  display: inline;
  font-size: 14px;
  line-height: 1;
}

.primary-nav button.active,
.primary-nav button:hover {
  background: #e8eef6;
  color: #0b63d8;
}

.primary-nav-user {
  left: 8px;
  right: 8px;
  bottom: 12px;
  min-height: 48px;
  padding: 8px;
  border-radius: 8px;
  background: #f8fafc;
  color: #344054;
}

.app-body.patient-detail-mode .patient-side-nav {
  display: none !important;
}

.patient-workspace {
  padding: 24px 24px 48px;
  background: #f5f6f8;
}

.patient-header.dentalome-patient-header {
  display: block;
  margin: 0 0 36px;
  padding: 0;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 14.4px;
  background: oklch(1 0 0);
  box-shadow: none;
  overflow: visible;
}

.dentalome-patient-identity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 109px;
  padding: 16px 24px 12px;
}

.dentalome-patient-identity > .patient-profile-main {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.dentalome-patient-identity .patient-profile-copy {
  min-width: 0;
}

.dentalome-patient-identity .patient-profile-copy,
.dentalome-patient-identity .patient-profile-copy * {
  overflow-wrap: break-word;
}

.dentalome-patient-identity > .patient-profile-actions {
  flex: 0 0 auto;
}

.patient-avatar-tile {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  border: 1px solid oklab(0.92 0.00112401 -0.00383883 / 0.7);
  border-radius: 10.4px;
  display: grid;
  place-items: center;
  background: rgb(2, 92, 226);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.dentalome-patient-identity .patient-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dentalome-patient-identity .patient-display-name {
  margin: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 20px;
  line-height: 25px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: capitalize;
}

.patient-subline,
.patient-contact-line {
  display: flex;
  align-items: center;
  margin-top: 8px;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.patient-subline {
  gap: 4px;
}

.patient-contact-line {
  gap: 16px;
}

.patient-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.patient-contact-line svg {
  color: oklch(0.552 0.016 285.938);
}

.patient-profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 0;
}

.patient-profile-actions button {
  height: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid oklab(0.92 0.00112401 -0.00383883 / 0.6);
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-profile-actions button svg {
  width: 16px;
  height: 16px;
}

.patient-profile-actions .archive-action {
  border-color: oklch(0.901 0.076 70.697);
  background: oklch(0.98 0.016 73.684);
  color: oklch(0.553 0.195 38.402);
}

.patient-profile-actions .archive-action.restore-action {
  border-color: oklch(0.905 0.093 164.15);
  background: oklch(0.979 0.021 166.113);
  color: oklch(0.508 0.118 165.612);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.patient-profile-actions .archive-action.restore-action svg {
  color: oklch(0.508 0.118 165.612);
}

.patient-profile-action-menu {
  width: 36px;
  padding: 0 !important;
  justify-content: center;
}

.patient-actions-menu {
  position: relative;
}

.patient-actions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 25;
  min-width: 188px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
}

.patient-actions-dropdown button {
  width: 100%;
  min-height: 36px;
  justify-content: flex-start;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: #344054;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none;
}

.patient-actions-dropdown button:hover,
.patient-actions-dropdown button:focus-visible {
  background: #f2f4f7;
  color: #101828;
}

.physical-fiche-backdrop {
  z-index: 90;
  padding: 20px;
}

.physical-fiche-dialog {
  width: min(1180px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  padding: 18px;
}

.physical-fiche-dialog-head,
.physical-fiche-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.physical-fiche-dialog-head h2,
.physical-fiche-dialog-head p {
  margin: 0;
}

.physical-fiche-dialog-head h2 {
  color: #101828;
  font-size: 20px;
  line-height: 1.25;
}

.physical-fiche-dialog-head p {
  margin-top: 4px;
  color: #667085;
  font-size: 13px;
}

.physical-fiche-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 220 / 160;
  min-height: 260px;
  max-height: calc(100vh - 230px);
  overflow: hidden;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #eef1f5;
}

.physical-fiche-preview iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #fff;
}

.physical-fiche-preview-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #475467;
  font-size: 14px;
  font-weight: 650;
}

.physical-fiche-preview-state.error,
.physical-fiche-notice.error {
  color: #b42318;
}

.physical-fiche-print-note {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.physical-fiche-notice {
  border: 1px solid #abefc6;
  border-radius: 6px;
  padding: 9px 11px;
  background: #ecfdf3;
  color: #067647;
  font-size: 13px;
  font-weight: 650;
}

.physical-fiche-notice.error {
  border-color: #fecdca;
  background: #fef3f2;
}

.physical-fiche-dialog-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.physical-fiche-dialog-actions button {
  min-height: 40px;
  gap: 8px;
}

.printing-calibration-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 150px 150px 44px;
  align-items: end;
  gap: 12px;
  margin: -1px 0 10px;
  border: 1px solid #dbe7f5;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  padding: 12px 14px;
  background: #f8fbff;
}

.printing-calibration-row > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.printing-calibration-row > div strong {
  color: #1d2939;
  font-size: 13px;
}

.printing-calibration-row > div span {
  color: #667085;
  font-size: 12px;
}

.printing-calibration-row label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #475467;
  font-size: 12px;
  font-weight: 650;
}

.printing-calibration-row input {
  width: 100%;
  height: 36px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: #101828;
}

@media (max-width: 760px) {
  .physical-fiche-backdrop {
    padding: 0;
  }

  .physical-fiche-dialog {
    width: 100vw;
    max-height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    padding: 14px;
  }

  .physical-fiche-preview {
    min-height: 0;
    max-height: none;
  }

  .physical-fiche-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .physical-fiche-dialog-actions button {
    width: 100%;
    min-width: 0;
  }

  .printing-calibration-row {
    grid-template-columns: 1fr 1fr;
  }

  .printing-calibration-row > div {
    grid-column: 1 / -1;
  }
}

.patient-whatsapp-dialog {
  width: min(620px, calc(100vw - 48px));
  padding: 24px 24px 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.patient-whatsapp-dialog .modal-head {
  margin-bottom: 18px;
}

.patient-whatsapp-dialog .modal-head h2 {
  color: #101828;
  font-size: 18px;
  font-weight: 800;
}

.patient-whatsapp-dialog .modal-head p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 13px;
}

.patient-whatsapp-dialog .modal-close-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  font-size: 0;
}

.patient-whatsapp-dialog .modal-close-button:hover {
  background: #f2f4f7;
  color: #101828;
}

.patient-whatsapp-field {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.patient-whatsapp-template-field {
  margin-bottom: 16px;
}

.patient-whatsapp-template-field .appointment-source-combobox,
.patient-whatsapp-template-field .combobox-trigger {
  width: 100%;
}

.patient-whatsapp-template-field .appointment-source-combobox-menu {
  z-index: 10;
}

.patient-whatsapp-field textarea {
  min-height: 152px;
  resize: vertical;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 12px;
  color: #101828;
  font: inherit;
  font-weight: 500;
  line-height: 1.5;
}

.patient-whatsapp-field textarea:focus {
  border-color: #1677ff;
  outline: 3px solid rgba(22, 119, 255, 0.14);
}

.patient-whatsapp-warning {
  margin: 10px 0 0;
  color: #d9480f;
  font-size: 12px;
  font-weight: 650;
}

.patient-whatsapp-empty {
  color: #667085;
  font-size: 12px;
  font-weight: 500;
}

.patient-whatsapp-empty a {
  color: #025ce2;
  font-weight: 650;
}

.patient-header-tabs {
  display: flex;
  gap: 0;
  padding: 0 24px;
  border-top: 1px solid oklch(0.92 0.004 286.32);
  overflow-x: auto;
}

.patient-header-tabs :is(button, a) {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #101828;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-header-tabs :is(button, a).active {
  color: #0b63d8;
  border-bottom-color: #0b63d8;
}

.patient-treatment-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.patient-treatment-layout {
  grid-template-columns: minmax(680px, 1fr) minmax(300px, 36%);
  gap: 16px;
  padding: 0;
  align-items: stretch;
}

.odontogram-panel.dentalome-odontogram-card,
.act-status-card,
.patient-operations-card {
  border: 1px solid #d8dde5;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.odontogram-panel.dentalome-odontogram-card {
  min-height: 504px;
  padding: 28px 28px 24px;
  overflow: hidden;
}

.odontogram-panel.dentalome-odontogram-card .treatment-card-top {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 30px;
  padding: 0 0 16px;
  border-bottom: 1px solid #d8dde5;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs {
  display: inline-flex;
  width: max-content;
  min-height: 34px;
  padding: 3px;
  border: 1px solid #d8dde5;
  border-radius: 8px;
  background: #f7f8fa;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
  min-height: 28px;
  min-width: 0;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #101828;
  font-size: 13px;
  font-weight: 650;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button.active {
  color: #101828;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}

.treatment-financials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  white-space: nowrap;
}

.treatment-financials .metric {
  display: grid;
  gap: 7px;
  color: #101828;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  text-align: center;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.treatment-financials .metric span {
  color: #98a2b3;
}

.treatment-financials .metric p {
  margin: 0;
  white-space: nowrap;
}

.treatment-financials .metric strong,
.treatment-financials .metric b {
  display: inline;
  color: inherit;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.treatment-financials .metric b {
  margin-left: 0;
}

.treatment-financials .metric.green strong,
.treatment-financials .metric.green b {
  color: #00a54f;
}

.treatment-financials .metric.red strong,
.treatment-financials .metric.red b {
  color: #f71d2a;
}

.act-status-card {
  min-height: 504px;
  padding: 28px;
}

.act-status-card .primary-button,
.add-act-button {
  width: 100%;
  height: 36px;
  justify-content: center;
  border-radius: 7px;
  background: #0b63d8;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.patient-operations-card {
  margin-top: 40px;
  padding: 12px;
}

.patient-document-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

.patient-document-actions button {
  height: 36px;
  border-radius: 7px;
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #0b63d8;
  font-weight: 650;
}

.patient-document-actions button:last-child {
  background: #0b63d8;
  color: #fff;
}

.patient-operations-table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #d8dde5;
  border-radius: 10px;
  overflow: hidden;
}

.patient-operations-table th {
  height: 40px;
  background: #e8f1ff;
  color: #101828;
  font-size: 13px;
  font-weight: 650;
}

/* 2026-05-31 current Dentalome recapture: line-art odontogram assets. */
.odontogram-panel.dentalome-odontogram-card {
  overflow: visible;
}

.odontogram-panel.dentalome-odontogram-card .odontogram {
  min-width: 1040px;
  gap: 18px;
  overflow: visible;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row {
  min-height: 188px;
  gap: 0;
  overflow: visible;
}

.odontogram-panel.dentalome-odontogram-card .tooth-group {
  display: grid;
  grid-template-columns: repeat(8, 62px);
  column-gap: 12px;
  align-items: end;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
  width: 62px;
  min-width: 62px;
  height: 166px;
  padding: 0;
  gap: 5px;
  overflow: visible;
  color: #1e1e1e;
  font-size: 19px;
  font-weight: 850;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
  justify-content: flex-start;
}

.odontogram-panel.dentalome-odontogram-card .tooth-art,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower .tooth-art {
  width: 62px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.dentalome-tooth-vector-wrap.tooth-svg {
  width: 58px;
  height: 108px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dentalome-tooth-vector-wrap.tooth-svg .dentalome-tooth-vector {
  width: 58px;
  height: 108px;
  display: block;
  overflow: visible;
}

.dentalome-tooth-vector-wrap.tooth-svg .cls-1 {
  fill: none;
  stroke: #111827;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dentalome-tooth-vector-wrap.tooth-svg .cls-2,
.dentalome-tooth-vector-wrap.tooth-svg .cls-3 {
  fill: #fff;
  stroke: #111827;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dentalome-tooth-vector-wrap.tooth-svg .tooth-root .cls-1 {
  fill: #fff;
}

.dentalome-tooth-vector-wrap.tooth-svg .fissure,
.dentalome-tooth-vector-wrap.tooth-svg .root-line {
  stroke: #111827;
  stroke-width: 1.35;
  opacity: .9;
}

.dentalome-tooth-vector-wrap.treated.tooth-svg:not([data-special-fill="true"]) .cls-2,
.dentalome-tooth-vector-wrap.treated.tooth-svg[data-special-fill="true"] .cls-3 {
  fill: var(--dent-acte-color, #8a1cc2);
  stroke: #111827;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.selected .tooth-art {
  background: rgba(59, 130, 246, .18);
  border-radius: 18px;
  box-shadow: none;
  transform: none;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth:hover .tooth-art {
  transform: none;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-divider {
  margin: 2px 48px 0;
  border-top: 1px solid #d8dde5;
}

/* Current Dentalome 2026-05-31 exact SVG tooth assets. */
.dentalome-tooth-exact.tooth-svg {
  width: 58px;
  height: 108px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.dentalome-tooth-exact-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dentalome-tooth-exact.tooth-svg svg {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow: visible;
}

/* Dentalome's production stylesheet normalizes the translucent crown layer
   globally. The archived SVGs retain their source opacity declarations, so
   this override is required for the same rendered odontogram. */
.dentalome-odontogram-card .cls-2 {
  opacity: 1 !important;
}

.tooth.dentalome-tooth.treated .dentalome-tooth-exact.tooth-svg svg .cls-2,
.tooth.dentalome-tooth.treated .dentalome-tooth-exact.tooth-svg svg .cls-3 {
  fill: #fff !important;
}

.tooth.dentalome-tooth.treated .dentalome-tooth-exact.treated.tooth-svg:not([data-special-fill="true"]) svg .cls-2,
.tooth.dentalome-tooth.treated .dentalome-tooth-exact.treated.tooth-svg[data-special-fill="true"] svg .cls-3 {
  fill: var(--dent-acte-color, #8a1cc2) !important;
  opacity: 1 !important;
}

.tooth.dentalome-tooth.treated .dentalome-tooth-exact.treated.tooth-svg[data-fill-target="special"]:not([data-special-fill="true"]) svg .cls-3,
.tooth.dentalome-tooth.treated .dentalome-tooth-exact.treated.tooth-svg[data-fill-target="special"][data-special-fill="true"] svg .cls-2 {
  fill: var(--dent-special-color, #49d889) !important;
}

/* 2026-05-31 authoritative Dentalome refresh: keep exact teeth visible without
   letting fixed half-arch widths collide around the 11/21 and 41/31 midline. */
.odontogram-panel.dentalome-odontogram-card .odontogram {
  width: 100%;
  min-width: 0;
  max-width: 1096px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row {
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  column-gap: clamp(18px, 1.6vw, 28px);
  row-gap: 0;
  min-width: 0;
  width: 100%;
}

.odontogram-panel.dentalome-odontogram-card .tooth-group {
  min-width: 0;
  width: 100%;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  column-gap: clamp(4px, .42vw, 8px);
  justify-items: center;
}

.odontogram-panel.dentalome-odontogram-card .odontogram.child .tooth-group {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
  width: 58px;
  min-width: 0;
  max-width: 58px;
}

/* 2026-05-31 new Dentalome parity pass: compact the odontogram stack.
   Earlier overrides accidentally reversed the tooth grid rows, which pushed
   labels away from the tooth art and made the patient detail card much taller
   than the current Dentalome screen. */
.odontogram-panel.dentalome-odontogram-card .odontogram {
  gap: 10px;
  margin-top: 8px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row {
  min-height: 126px;
  align-items: center;
}

.odontogram-panel.dentalome-odontogram-card .tooth-group {
  column-gap: clamp(6px, .56vw, 10px);
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 116px;
  min-height: 116px;
  max-width: 56px;
  gap: 4px;
  grid-template-rows: none;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth {
  grid-template-rows: none;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
  grid-template-rows: none;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth strong,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower strong {
  order: 1;
  flex: 0 0 20px;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth .tooth-art,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower .tooth-art {
  order: 2;
  flex: 0 0 88px;
}

.odontogram-panel.dentalome-odontogram-card .tooth-art,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower .tooth-art {
  width: 56px;
  height: 88px;
  min-height: 0;
}

.odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact.tooth-svg,
.odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact-inner {
  width: 56px;
  height: 88px;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth strong,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower strong {
  font-size: 15px;
  line-height: 20px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-divider {
  margin: 8px 48px 4px;
}

/* 2026-05-31 new Dentalome visual baseline refinement.
   The current Dentalome UI is lighter and denser than the earlier staging
   approximation; keep these overrides last so older parity blocks cannot make
   patient pages look heavier than the live reference. */
.primary-nav button,
.app-body.patient-detail-mode .primary-nav button {
  font-weight: 560;
}

.nav-section-label {
  font-weight: 560;
}

.primary-nav-user {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 28px;
  align-items: center;
  column-gap: 8px;
  min-height: 50px;
  padding: 7px 8px;
}

.primary-nav-user .mini-avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
  font-weight: 700;
}

.primary-nav-user strong {
  display: block;
  font-size: 13px;
  line-height: 1.12;
  font-weight: 580;
}

.primary-nav-user span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1;
  font-weight: 450;
}

.primary-nav-user .nav-logout {
  width: 28px;
  height: 28px;
  min-height: 28px !important;
}

.topbar .brand span {
  font-weight: 760;
}

.dentalome-patient-identity .patient-display-name {
  font-size: 20px;
  font-weight: 600;
}

.patient-avatar-tile {
  font-weight: 600;
}

.patient-profile-actions button,
.odontogram-panel.dentalome-odontogram-card .treatment-tabs button,
.act-status-card .primary-button,
.add-act-button {
  font-weight: 570;
}

.patient-profile-actions button {
  font-weight: 500;
}

.patient-subline,
.patient-contact-line {
  font-weight: 400;
}

.dentalome-patient-header .patient-contact-line {
  gap: 16px;
}

.patient-treatment-layout {
  grid-template-columns: minmax(760px, 1fr) minmax(300px, 33%);
}

.odontogram-panel.dentalome-odontogram-card .treatment-card-top {
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  margin-bottom: 14px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch {
  gap: 8px;
  font-weight: 500;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > span {
  width: 32px;
  height: 18px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > span::after {
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > input:checked + span::after {
  transform: translateX(14px);
}

.odontogram-panel.dentalome-odontogram-card .patient-receipt-download-button {
  width: auto;
  min-width: 158px;
}

.dashboard-appointment-row,
.dashboard-payment-row,
.dashboard-unpaid-row {
  color: inherit;
  text-decoration: none;
}

.treatment-financials .metric {
  font-weight: 700;
}

.treatment-financials .metric strong,
.treatment-financials .metric b {
  font-weight: 740;
}

.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth strong,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower strong {
  font-weight: 660;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.upper .tooth.dentalome-tooth strong,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth:not(.lower) strong {
  order: 1;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.upper .tooth.dentalome-tooth .tooth-art,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth:not(.lower) .tooth-art {
  order: 2;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.lower .tooth.dentalome-tooth .tooth-art,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower .tooth-art {
  order: 1;
}

.odontogram-panel.dentalome-odontogram-card .odontogram-row.lower .tooth.dentalome-tooth strong,
.odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower strong {
  order: 2;
}

.act-status-head strong,
.act-status-empty strong {
  font-weight: 650;
}

.patient-operations-card {
  margin-top: 28px;
}

.patient-document-actions {
  margin-bottom: 10px;
}

.patient-document-actions button,
.patient-operations-toolbar select {
  font-weight: 560;
}

.patient-operations-toolbar {
  margin-bottom: 6px;
}

.patient-operations-table th {
  height: 38px;
  font-weight: 560;
}

.patient-operations-table th,
.patient-operations-table td {
  font-size: 13px;
}

.patient-operations-table .operation-name {
  font-weight: 520;
}

.patient-operations-table .sessions-link {
  font-weight: 650;
}

.patient-operations-table .money-cell,
.patient-operations-table .green-text,
.patient-operations-table .red-text,
.patient-operations-table .dentalome-status {
  font-weight: 620;
}

.patient-operations-table .row-actions button,
.patient-operations-table .plain-icon {
  color: #101828;
}

.patient-operations-table .row-actions button svg,
.patient-operations-table .plain-icon svg,
.patient-operations-table .dentalome-inline-svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.25;
}

.patient-operations-table .plain-icon.plan-add-as-acte.treated {
  color: #00a63e;
}

.treatment-plan-tabs {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 3px;
  border: 1px solid #d8dde5;
  border-radius: 8px;
  background: #f7f8fa;
  overflow-x: auto;
}

.treatment-plan-tabs button {
  min-height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #101828;
  font-size: 13px;
  font-weight: 570;
  white-space: nowrap;
}

.treatment-plan-tabs button.active {
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}

.patient-operation-empty-state > span {
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #667085;
}

.patient-operation-empty-state svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
}

.patient-operation-empty-state strong {
  color: #101828;
  font-size: 14px;
  font-weight: 650;
}

.patient-operation-empty-state small {
  color: #667085;
  font-size: 13px;
  font-weight: 430;
}

.patient-operations-card .treatment-plan-tabs + .patient-operations-toolbar {
  margin-top: 0;
}

/* 2026-05-31 current Dentalome shell correction.
   The live reference now has the identity inside the left sidebar and the
   topbar starts directly with search/actions. Keep this last because older
   Dentalome passes still force a hidden sidebar brand and a topbar brand slot. */
.topbar {
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: minmax(420px, 500px) minmax(0, 1fr) auto;
  padding: 0 16px 0 24px;
}

.app-shell {
  grid-template-columns: 256px minmax(0, 1fr);
  grid-template-rows: 60px minmax(0, 1fr);
  background: #f5f6f8;
}

.app-body.no-rail,
.app-body.patient-detail-mode {
  grid-template-columns: 256px minmax(0, 1fr);
  background: #f5f6f8;
}

.topbar .brand {
  display: none;
}

.primary-nav,
.app-body.patient-detail-mode .primary-nav {
  width: 256px;
  padding: 0;
}

.primary-nav-brand {
  display: flex;
  height: 60px;
  flex: 0 0 60px;
  align-items: center;
  gap: 9px;
  padding: 0 28px;
  margin: 0;
  border-bottom: 1px solid #e4e7ec;
  color: #0b63d8;
  background: #fff;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.primary-nav-brand .shell-logo {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #0b63d8;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.primary-nav-brand .shell-logo::before {
  content: none;
}

.primary-nav-scroll {
  padding: 14px 8px 84px;
}

/* 2026-06-01 current Dentalome shell: standalone sidebar toggle before search. */
.topbar {
  grid-template-columns: 28px minmax(420px, 500px) minmax(0, 1fr) auto;
  gap: 14px;
  padding: 0 16px 0 24px;
}

.topbar .brand .topbar-sidebar-toggle {
  display: none;
}

.topbar-sidebar-toggle-standalone {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin: 0;
  align-self: center;
  justify-self: start;
  gap: 8px;
  padding: 0;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.topbar-sidebar-toggle-standalone:hover {
  background: #f2f4f7;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.app-shell.sidebar-collapsed .topbar {
  grid-column: 2;
}

.app-shell.sidebar-collapsed .app-body.no-rail,
.app-shell.sidebar-collapsed .app-body.patient-detail-mode {
  grid-template-columns: 72px minmax(0, 1fr);
}

.app-shell.sidebar-collapsed .primary-nav,
.app-shell.sidebar-collapsed .app-body.patient-detail-mode .primary-nav {
  width: 72px;
  padding-left: 8px;
  padding-right: 8px;
}

.app-shell.sidebar-collapsed .primary-nav button,
.app-shell.sidebar-collapsed .app-body.patient-detail-mode .primary-nav button {
  justify-content: center;
  padding: 0;
}

.app-shell.sidebar-collapsed .primary-nav span,
.app-shell.sidebar-collapsed .app-body.patient-detail-mode .primary-nav span,
.app-shell.sidebar-collapsed .nav-section-label,
.app-shell.sidebar-collapsed .primary-nav-user {
  display: none;
}

/* 2026-06-01 current Dentalome patient images tab parity. */
.simple-section.image-section {
  position: relative;
  min-height: 0;
  padding: 14px 12px 12px;
  border: 1px solid #d9dee6;
  border-radius: 13px;
  box-shadow: none;
}

.simple-section.image-section .image-section-title {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 133px;
  margin: 0 0 10px;
}

.simple-section.image-section .image-section-title > div {
  width: 100%;
}

.simple-section.image-section .image-section-title h1 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 850;
  color: #101113;
}

.simple-section.image-section.image-viewer-open .image-section-title h1 {
  visibility: hidden;
}

.simple-section.image-section .image-section-title p {
  margin: 0;
  color: #667085;
  font-size: 15px;
  font-weight: 450;
}

.simple-section.image-section .image-import-button {
  position: absolute;
  right: 0;
  bottom: 14px;
  display: inline-flex;
  min-height: 36px;
  min-width: 193px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-end;
  margin-bottom: 14px;
  padding: 0 14px;
  border-radius: 6px;
  background: #075ee8;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.simple-section.image-section .image-import-button.disabled {
  cursor: wait;
  opacity: 0.72;
}

.simple-section.image-section .image-import-button input[type="file"],
.simple-section.image-section .patient-image-file-input {
  display: none;
}

.patient-image-upload-toast {
  position: fixed;
  top: 76px;
  right: 24px;
  z-index: 80;
  max-width: min(360px, 100%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #fee4e2;
  border-radius: 8px;
  background: #fff;
  color: #b42318;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.16);
  font-size: 13px;
  font-weight: 650;
}

.patient-image-upload-toast svg {
  flex: 0 0 auto;
}

.patient-image-upload-toast button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-left: 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #b42318;
  padding: 0;
}

.patient-image-upload-toast button:hover,
.patient-image-upload-toast button:focus-visible {
  background: #fee4e2;
}

@media (max-width: 640px) {
  .patient-image-upload-toast {
    top: 72px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

.simple-section.image-section .image-add-text {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.simple-section.image-section .image-table-shell {
  border: 1px solid #d9dee6;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
}

.simple-section.image-section .image-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
}

.simple-section.image-section .image-table th,
.simple-section.image-section .image-table td {
  height: 40px;
  padding: 10px 14px;
  border-bottom: 1px solid #e0e4eb;
  color: #20242b;
  font-size: 14px;
  line-height: 1.25;
  text-align: left;
}

.simple-section.image-section .image-table th {
  background: #eaf4ff;
  font-size: 13px;
  font-weight: 650;
}

.simple-section.image-section .image-table th:nth-child(1),
.simple-section.image-section .image-table td:nth-child(1) {
  width: 42%;
}

.simple-section.image-section .image-table th:nth-child(2),
.simple-section.image-section .image-table td:nth-child(2) {
  width: 36%;
}

.simple-section.image-section .image-table th:nth-child(3),
.simple-section.image-section .image-table td:nth-child(3) {
  width: 22%;
  text-align: center;
}

.simple-section.image-section .image-table td.empty-table-cell {
  width: auto;
  height: 94px !important;
  padding: 0 14px !important;
  color: #101113 !important;
  text-align: center !important;
  font-size: 13px;
  font-weight: 450 !important;
}

.simple-section.image-section .image-preview-link,
.simple-section.image-section .image-preview-placeholder {
  max-width: 100%;
}

.patient-image-thumbnail-shell {
  position: relative;
  width: 64px;
  height: 64px;
}

.patient-image-thumbnail-overlay {
  position: absolute;
  inset: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8.4px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.patient-image-thumbnail-shell:hover .patient-image-thumbnail-overlay {
  opacity: 1;
}

.patient-image-viewer-backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.patient-image-viewer-dialog {
  position: relative;
  width: 70vw;
  max-width: 70vw;
  display: grid;
  margin: auto;
  padding: 0;
  gap: 0;
  border: 0 solid #025ce2;
  border-radius: 10.4px;
  background: transparent;
  box-shadow: none;
}

.patient-image-viewer-frame {
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.patient-image-viewer-stage {
  position: relative;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.patient-image-viewer-stage img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 75vh;
  display: block;
  object-fit: contain;
}

.patient-image-viewer-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1), transparent);
  pointer-events: none;
}

.patient-image-viewer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 56;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 0 solid #025ce2;
  border-radius: 33554432px;
  background: rgba(255, 255, 255, 0.8);
  color: oklch(0.21 0.034 264.665);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-image-viewer-close:hover,
.patient-image-viewer-close:focus-visible {
  background: #fff;
}

.patient-image-viewer-close:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, 0.5), 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.patient-image-viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 55;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #111827;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}

.patient-image-viewer-nav.previous {
  left: 16px;
}

.patient-image-viewer-nav.next {
  right: 16px;
}

.patient-image-viewer-nav:hover:not(:disabled),
.patient-image-viewer-nav:focus-visible:not(:disabled) {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.patient-image-viewer-nav:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.patient-image-viewer-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 56;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.patient-image-viewer-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.patient-image-viewer-dots button.active,
.patient-image-viewer-dots button:hover,
.patient-image-viewer-dots button:focus-visible {
  background: #fff;
  transform: scale(1.2);
}

.patient-image-viewer-missing {
  width: min(720px, calc(100vw - 48px));
  height: min(90vh, 520px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.95);
  border-radius: 24px;
}

.patient-image-viewer-missing span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.patient-image-viewer-missing p {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}

@media (max-width: 640px) {
  .patient-image-viewer-dialog {
    width: 70vw;
    max-width: 70vw;
    padding: 0;
  }
}

/* 2026-06-01 current Dentalome patient Documents tab parity. */
.patient-documents-section {
  min-height: 380px;
  padding: 20px 14px 22px;
}

.patient-documents-section .patient-documents-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 18px;
}

.patient-documents-section .patient-documents-title h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 850;
  color: #20242b;
}

.patient-documents-section .patient-documents-title p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}

.document-subtabs {
  display: inline-flex;
  align-items: flex-end;
  margin-bottom: 0;
  border: 1px solid #d9dee6;
  border-bottom: 0;
  background: #fff;
}

.document-subtabs button {
  min-height: 37px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid #d9dee6;
  border-bottom: 3px solid transparent;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 750;
}

.document-subtabs button:last-child {
  border-right: 0;
}

.document-subtabs button.active {
  color: #0b78f0;
  border-bottom-color: #0b78f0;
}

.document-generate-menu {
  position: relative;
}

.document-generate-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 6px;
  background: #0b78f0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.document-generate-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  z-index: 20;
  width: 190px;
  border: 1px solid #d9dee6;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.document-generate-dropdown button,
.document-generate-dropdown [role="menuitem"] {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  background: #fff;
  color: #20242b;
  text-align: left;
  font-size: 12px;
  font-weight: 650;
}

.document-generate-dropdown button:last-child,
.document-generate-dropdown [role="menuitem"]:last-child {
  border-bottom: 0;
}

.document-generate-dropdown button:hover,
.document-generate-dropdown [role="menuitem"]:hover,
.document-generate-dropdown [role="menuitem"]:focus-visible {
  background: #f7faff;
}

.patient-documents-card,
.patient-notes-card {
  min-height: 312px;
}

.patient-documents-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 54px;
}

.patient-documents-title-row .dentalome-list-title {
  margin: 0;
}

.patient-documents-title-row .dentalome-list-title h2,
.patient-documents-title-row .dentalome-list-title h1 {
  font-size: 24px;
}

.patient-documents-title-row .dentalome-list-title p {
  margin-top: 9px;
  font-size: 15px;
  font-weight: 500;
}

.patient-document-action,
.patient-documents-card .document-generate-button {
  min-width: 164px;
  min-height: 36px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}

.patient-documents-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
}

.patient-documents-certificate .patient-documents-title-row,
.patient-documents-letter .patient-documents-title-row {
  margin-bottom: 24px;
}

.patient-document-table {
  min-width: 760px;
}

.patient-documents-facture-table {
  min-width: 860px;
}

.patient-documents-care_sheet-table {
  min-width: 1020px;
}

.patient-notes-table {
  min-width: 860px;
}

.patient-notes-groups {
  display: grid;
  gap: 24px;
}

.patient-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.patient-note-card {
  min-width: 0;
  min-height: 178px;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  padding: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.patient-note-card-inner {
  padding: 16px;
}

.patient-note-card:hover {
  border-color: #cfe0ff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.patient-note-card.archived {
  border-color: #e5e7eb;
  opacity: 0.76;
}

.patient-note-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.patient-note-title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.patient-note-title-line h3 {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #20242b;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}

.patient-note-archive-badge,
.patient-note-category {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 750;
}

.patient-note-archive-badge {
  border: 1px solid #d9dee7;
  color: #667085;
  background: #fff;
}

.patient-note-category {
  margin-bottom: 10px;
  color: #047857;
  background: #dcfce7;
}

.patient-note-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: #667085;
  font-size: 13px;
}

.patient-note-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.patient-note-meta span:nth-last-child(-n + 2) {
  flex: 0 0 auto;
}

.patient-note-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
}

.patient-note-actions [data-tooltip] {
  position: relative;
}

.patient-note-actions [data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  z-index: 10;
  transform: translateX(-50%);
  padding: 4px 7px;
  border-radius: 5px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
  pointer-events: none;
}

.patient-note-html {
  max-height: 96px;
  overflow: hidden;
  color: #20242b;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.patient-note-html p,
.patient-note-html ul,
.patient-note-html ol {
  margin: 0 0 8px;
}

.patient-note-html > :last-child {
  margin-bottom: 0;
}

.patient-notes-archive-section {
  border: 1px dashed #d9dee7;
  border-radius: 10px;
  background: #f8fafc;
}

.patient-notes-archive-toggle {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0 16px;
  background: transparent;
  color: #667085;
  text-align: left;
  font-size: 13px;
  font-weight: 750;
}

.patient-notes-archive-toggle:hover {
  color: #20242b;
  background: #f7faff;
}

.patient-notes-archived-grid {
  padding: 0 16px 16px;
}

.patient-document-table td,
.patient-document-table th,
.patient-notes-table td,
.patient-notes-table th {
  height: 48px;
}

.patient-document-table .dentalome-patient-empty-row {
  height: 94px;
  color: #111827;
  text-align: center !important;
  font-size: 13.5px;
  font-weight: 450;
}

.patient-document-table th:last-child,
.patient-document-table td:last-child {
  text-align: center;
}

.patient-notes-table th:last-child,
.patient-notes-table td:last-child {
  width: 112px;
  text-align: center;
}

.patient-documents-facture-table th:nth-child(1),
.patient-documents-facture-table td:nth-child(1) {
  width: 25%;
}

.patient-documents-facture-table th:nth-child(2),
.patient-documents-facture-table td:nth-child(2) {
  width: 20%;
}

.patient-documents-facture-table th:nth-child(3),
.patient-documents-facture-table td:nth-child(3) {
  width: 25%;
}

.patient-documents-facture-table th:nth-child(4),
.patient-documents-facture-table td:nth-child(4) {
  width: 16%;
}

.patient-documents-ordonnance-table th:nth-child(1),
.patient-documents-ordonnance-table td:nth-child(1),
.patient-documents-devis-table th:nth-child(1),
.patient-documents-devis-table td:nth-child(1) {
  width: 26%;
}

.patient-documents-ordonnance-table th:nth-child(2),
.patient-documents-ordonnance-table td:nth-child(2),
.patient-documents-devis-table th:nth-child(2),
.patient-documents-devis-table td:nth-child(2) {
  width: 28%;
}

.patient-documents-ordonnance-table th:nth-child(3),
.patient-documents-ordonnance-table td:nth-child(3),
.patient-documents-devis-table th:nth-child(3),
.patient-documents-devis-table td:nth-child(3) {
  width: 30%;
}

.patient-documents-care_sheet-table th:nth-child(1),
.patient-documents-care_sheet-table td:nth-child(1) {
  width: 13%;
}

.patient-documents-care_sheet-table th:nth-child(2),
.patient-documents-care_sheet-table td:nth-child(2) {
  width: 12%;
}

.patient-documents-care_sheet-table th:nth-child(3),
.patient-documents-care_sheet-table td:nth-child(3) {
  width: 26%;
}

.patient-documents-care_sheet-table th:nth-child(4),
.patient-documents-care_sheet-table td:nth-child(4) {
  width: 22%;
}

.patient-documents-care_sheet-table th:nth-child(5),
.patient-documents-care_sheet-table td:nth-child(5) {
  width: 14%;
}

.patient-documents-certificate-table th:nth-child(1),
.patient-documents-certificate-table td:nth-child(1),
.patient-documents-letter-table th:nth-child(1),
.patient-documents-letter-table td:nth-child(1) {
  width: 22%;
}

.patient-documents-certificate-table th:nth-child(2),
.patient-documents-certificate-table td:nth-child(2),
.patient-documents-letter-table th:nth-child(2),
.patient-documents-letter-table td:nth-child(2) {
  width: 25%;
}

.patient-documents-certificate-table th:nth-child(3),
.patient-documents-certificate-table td:nth-child(3) {
  width: 35%;
}

.patient-notes-empty-card {
  min-height: 139px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px dashed #c8dfff;
  border-radius: 11px;
  background: #fff;
  color: #6b7280;
  text-align: center;
}

.patient-notes-empty-card strong {
  color: #6b7280;
  font-size: 14px;
  font-weight: 750;
}

.patient-notes-empty-card p {
  margin: -4px 0 4px;
  color: #6b7280;
  font-size: 13px;
}

.patient-note-empty-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid #d9dee7;
  border-radius: 7px;
  background: #fff;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.07);
}

@media (max-width: 1100px) {
  .patient-notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .patient-documents-title-row,
  .patient-documents-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .patient-documents-title-row {
    margin-bottom: 28px;
  }

  .patient-document-action,
  .patient-documents-card .document-generate-button {
    width: 100%;
  }

  .document-generate-menu {
    width: 100%;
  }

  .patient-notes-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .patient-note-card-header {
    flex-direction: column;
  }

  .patient-note-actions {
    align-self: flex-end;
  }

  .document-subtabs {
    max-width: 100%;
    overflow-x: auto;
  }

  .patient-document-table .dentalome-patient-empty-row {
    padding-left: 68px;
    text-align: left !important;
  }
}

/* 2026-06-02 current Dentalome settings/account parity. */
.dentalome-settings-workspace,
.message-templates-workspace {
  min-height: calc(100vh - 60px);
  padding: 24px 24px 32px;
  background: #f5f6f8;
}

.dentalome-settings-workspace {
  height: calc(100vh - 60px);
  min-height: 0;
  padding-bottom: 8px;
  overflow-y: auto;
  scrollbar-width: none;
  background: #f6f7f8;
}

.dentalome-settings-workspace::-webkit-scrollbar {
  display: none;
}

.dentalome-settings-workspace.subscription-settings-workspace {
  scrollbar-width: thin;
}

.dentalome-settings-workspace.subscription-settings-workspace::-webkit-scrollbar {
  display: block;
  width: 8px;
}

.dentalome-settings-workspace.subscription-settings-workspace::-webkit-scrollbar-track {
  background: transparent;
}

.dentalome-settings-workspace.subscription-settings-workspace::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b8b8b8;
}

.dentalome-settings-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  height: calc(100vh - 92px);
  min-height: 0;
  overflow: visible;
  border: 1px solid #e4e4e7;
  border-radius: 14.4px;
  background: #fff;
  box-shadow: none;
}

.account-settings-nav {
  height: 100%;
  min-height: 0;
  padding: 20px 16px;
  border-right: 1px solid #e4e4e7;
  background: #fff;
}

.account-settings-title {
  display: block;
  height: 20px;
  margin: 0;
  color: #71717a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.account-settings-nav nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.account-settings-nav nav > a {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 10.4px;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  text-decoration: none;
}

.account-settings-nav nav > a.active {
  background: #e7f0ff;
}

.account-settings-nav nav > a svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.account-settings-content {
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 20px 16px 20px 24px;
  background: #fff;
}

.account-settings-panel {
  min-height: 0;
  position: relative;
}

.account-breadcrumb,
.template-page-breadcrumb {
  display: flex;
  align-items: center;
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 20px;
}

.account-breadcrumb {
  height: 22px;
  gap: 0;
  color: #71717a;
}

.account-breadcrumb > :not(:last-child) {
  margin-right: 4px;
}

.account-breadcrumb-current,
.template-page-breadcrumb-current {
  color: #09090b;
  font-weight: 500;
}

.template-page-breadcrumb {
  gap: 4px;
  color: #667085;
}

.account-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.account-profile-heading-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.account-profile-heading-row .account-breadcrumb {
  flex: 0 0 auto;
}

.account-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #edf9ef;
  color: #4b9a5c;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0;
}

.account-avatar-large {
  width: 128px;
  height: 128px;
  position: relative;
  margin: 0 0 31px;
  border: 0;
  border-radius: 999px;
  background: #fff;
}

.account-avatar-trigger {
  width: 128px;
  height: 128px;
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  cursor: pointer;
}

.account-avatar-large img {
  width: 128px;
  height: 128px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 999px;
}

.account-avatar-edit-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgb(0 0 0 / 35%);
  color: #fff;
  opacity: 0;
  transition: opacity 120ms ease;
}

.account-avatar-delete {
  width: 32px;
  height: 32px;
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8.4px;
  background: #dc2626;
  color: #fff;
  opacity: 0;
  cursor: pointer;
  transition: opacity 120ms ease;
}

.account-avatar-trigger:hover .account-avatar-edit-overlay,
.account-avatar-trigger:focus-visible .account-avatar-edit-overlay,
.account-avatar-large:hover .account-avatar-delete,
.account-avatar-large:focus-within .account-avatar-delete {
  opacity: 1;
}

.account-avatar-empty {
  width: 128px;
  height: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 1px dashed #98a2b3;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
}

.account-avatar-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
  color: #1d4ed8;
}

.account-avatar-file-input {
  display: none;
}

.account-profile-form {
  position: relative;
  top: .5px;
  display: block;
}

.account-profile-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
}

.account-profile-fields-grid label,
.password-settings-form label,
.reminder-template-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #09090b;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
}

.account-profile-fields-grid label.wide {
  grid-column: 1 / -1;
}

.account-profile-form input,
.account-profile-form textarea,
.password-settings-form input,
.reminder-template-card textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid #e4e4e7;
  border-radius: 8.4px;
  padding: 4px 12px;
  background: #fff;
  color: #09090b;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.account-profile-form textarea {
  height: 80px;
  min-height: 80px;
  padding: 8px 12px;
  resize: none;
}

.account-profile-form .muted-input {
  color: #09090b;
  background: #fff;
  opacity: .5;
  -webkit-text-fill-color: #09090b;
}

.phone-field {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  min-height: 38px;
  overflow: hidden;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}

.phone-field i {
  display: block;
  width: 23px;
  height: 16px;
  align-self: center;
  justify-self: center;
  border-radius: 5px;
  background: #d5d7dc;
}

.phone-field input {
  min-height: 36px;
  border: 0;
  border-left: 1px solid #d9dee7;
  border-radius: 0;
  box-shadow: none;
}

.account-profile-form .account-phone-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 6;
}

.account-profile-form .account-phone-field > .field-label {
  color: #09090b;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
}

.account-profile-form .account-phone-field:focus-within {
  z-index: 9;
}

.account-profile-form .patient-phone-number-input {
  height: 36px;
  min-height: 36px;
  border: 1px solid #e4e4e7;
  border-radius: 0 10.4px 10.4px 0;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}

.account-profile-form .patient-source-phone-input {
  grid-template-columns: 61px minmax(0, 1fr);
  min-height: 36px;
}

.account-profile-form .patient-phone-country-button {
  height: 36px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10.4px 0 0 10.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.account-profile-form .patient-phone-country-button .patient-phone-flag {
  color: #d5d7dc;
  background: currentColor;
}

.account-profile-form .patient-phone-country-button .patient-phone-flag > * {
  visibility: hidden;
}

.account-profile-form .patient-phone-number-input::placeholder,
.account-profile-form .patient-phone-country-search::placeholder {
  color: #6b7280;
  opacity: 1;
}

.account-profile-form .patient-phone-country-search {
  min-height: 38px;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  border-radius: 0;
  box-shadow: none;
}

.account-profile-form .patient-phone-country-search:focus {
  border-bottom-color: #0b66e4;
  outline: none;
  box-shadow: 0 0 0 1px #0b66e4;
}

.dentalome-settings-workspace .primary-button,
.message-templates-workspace .primary-button {
  height: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 8.4px;
  background: #025ce2;
  color: #eff6ff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: none;
}

.account-save-button {
  gap: 8px;
  justify-self: end;
  align-self: start;
  min-width: 123.5px;
  margin-top: 0;
  padding: 8px 12px;
}

.account-save-button:disabled {
  cursor: progress;
  opacity: .72;
}

.account-form-status {
  grid-column: 1 / -1;
  margin: -8px 0 0;
  color: #5c6675;
  font-size: 13px;
  font-weight: 500;
}

.account-profile-form .account-save-button {
  grid-column: 1 / -1;
}

.account-profile-form textarea,
.default-reminder-template-form textarea {
  display: flex;
}

.password-settings-form {
  width: 100%;
  display: block;
}

.password-settings-form input::placeholder,
.reminder-template-card textarea::placeholder {
  color: #8a8f98;
}

.password-settings-form input:focus-visible {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px oklab(0.519343 -0.0356103 -0.213735 / 0.5), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.password-settings-panel .account-breadcrumb {
  height: 20px;
}

.password-fields-grid {
  width: min(448px, 100%);
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.password-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.password-field input {
  min-width: 0;
}

.password-field > label {
  margin: 0;
}

.password-field.invalid > label {
  color: #e7000b;
}

.password-field-error {
  margin: 0;
  color: #e7000b;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.password-field input[aria-invalid="true"] {
  border-color: #e7000b;
}

.password-field input[aria-invalid="true"]:focus-visible {
  border-color: #e7000b;
  box-shadow: 0 0 0 3px rgba(231, 0, 11, .22), 0 1px 2px rgba(0, 0, 0, .05);
}

.password-checklist {
  display: block;
  margin: 16px 0 0;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.password-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
  margin-bottom: 8px;
}

.password-check-row:last-child {
  margin-bottom: 0;
}

.password-check-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #c9c9c9;
}

.password-check-row.met .password-check-icon {
  color: #0a8f55;
}

.password-actions {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.password-settings-form .account-save-button {
  position: static;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  padding: 8px 16px;
  white-space: nowrap;
}

.subscription-settings-panel {
  display: grid;
  align-content: start;
  gap: 24px;
}

.subscription-settings-panel .account-breadcrumb {
  height: 20px;
  margin-bottom: 0;
}

.reminder-template-card {
  display: block;
  padding: 16px;
  border: 1px solid rgba(2, 92, 226, .2);
  border-radius: 14.4px;
  background: linear-gradient(90deg, rgba(2, 92, 226, .1) 0%, rgba(2, 92, 226, .05) 50%, rgba(2, 92, 226, 0) 100%);
}

.default-reminder-template-form {
  display: block;
  margin-top: 16px;
}

.default-reminder-template-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.default-reminder-template-field label {
  display: block;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
}

.default-reminder-template-field p {
  margin: 0;
  color: #71717a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.default-reminder-template-actions {
  display: flex;
  justify-content: flex-end;
}

.template-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.template-head .template-title {
  margin: 0;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.template-head .template-description {
  margin: 0;
  color: #71717a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.info-dot {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(2, 92, 226, .15);
  color: #025ce2;
}

.reminder-template-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  padding: 2px 4px;
  border-radius: 4px;
  background: #f4f4f5;
  color: #71717a;
  font-size: 12px;
  line-height: 16px;
}

.reminder-template-card textarea {
  height: 120px;
  min-height: 120px;
  padding: 8px 12px;
  border-color: #e4e4e7;
  color: #18181b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  resize: none;
}

.reminder-template-card textarea:disabled {
  color: #8a8f98;
  background: #f8fafc;
  cursor: not-allowed;
}

.reminder-template-card .account-save-button {
  min-width: 0;
  margin: 0;
  padding: 8px 16px;
  background: #025ce2;
}

.reminder-template-card .account-save-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.subscription-form-error {
  margin: -4px 0 0;
  color: #d92d20;
  font-size: 13px;
  line-height: 1.35;
}

.subscription-status {
  margin-top: -10px;
}

.quota-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quota-card {
  height: 134px;
  padding: 20px;
  border: 1px solid #e4e4e7;
  border-radius: 14.4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.quota-card-heading {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.quota-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quota-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 10.4px;
  color: #025ce2;
  background: rgba(2, 92, 226, .1);
}

.quota-icon.whatsapp {
  color: #059669;
  background: rgba(16, 185, 129, .1);
}

.quota-card-title-text {
  margin: 0;
  color: #18181b;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.quota-percent {
  color: #71717a;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.quota-card p {
  margin: 0 0 12px;
  color: #71717a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.quota-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f4f4f5;
}

.quota-track i {
  display: block;
  width: 0;
  height: 100%;
  background: #025ce2;
  transition: width .2s ease;
}

.quota-track.whatsapp i {
  background: #059669;
}

.subscription-skeleton-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.subscription-skeleton-stack span {
  height: 11px;
  width: 72%;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 50%, #eef2f7 100%);
}

.subscription-skeleton-stack span:last-child {
  width: 100%;
  height: 8px;
}

.automation-card {
  display: block;
  padding: 20px;
  border: 1px solid #e4e4e7;
  border-radius: 14.4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.automation-card-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #18181b;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.automation-card-heading p {
  margin: 0;
  font-weight: 500;
}

.automation-card-heading svg {
  color: #025ce2;
}

.automation-row {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid rgba(228, 228, 231, .7);
  border-radius: 10.4px;
  background: rgba(244, 244, 245, .3);
  margin-bottom: 16px;
}

.automation-row:last-child {
  margin-bottom: 0;
}

.automation-row label {
  display: inline;
  margin: 0 0 4px;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
}

.automation-row p {
  margin: 0;
  color: #71717a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.source-switch {
  width: 32px;
  height: 18.4px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #e4e4e7;
  cursor: pointer;
  transition: background .15s ease;
}

.source-switch i {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  transform: translateX(0);
  transition: transform .15s ease;
}

.source-switch.checked {
  background: #025ce2;
}

.source-switch.checked i {
  transform: translateX(14px);
}

.source-switch:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.message-templates-workspace .page-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 24px;
}

.message-templates-workspace .page-header h1 {
  margin: 0;
  color: #18181b;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.message-templates-workspace .page-header p {
  margin: 4px 0 0;
  color: #71717a;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.template-page-breadcrumb {
  height: 20px;
  margin-bottom: 16px;
  color: #71717a;
  font-size: 14px;
  line-height: 20px;
}

.message-templates-workspace {
  height: calc(100vh - 60px);
  min-height: 0;
  padding: 24px 24px 8px;
  overflow: hidden;
  background: #f6f7f8;
}

.message-templates-workspace .page-header .primary-button.compact {
  height: 32px;
  min-height: 32px;
  gap: 6px;
  padding: 0 10px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.template-settings-shell {
  height: calc(100vh - 212px);
  min-height: 0;
  display: flex;
  gap: 16px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #e4e4e7;
  border-radius: 14.4px;
  background: #fff;
}

.template-list-pane {
  width: 288px;
  min-width: 0;
  min-height: 0;
  flex: 0 0 288px;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
}

.template-list-pane h2 {
  width: 271px;
  margin: 0 0 8px;
  color: #18181b;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.template-load-error {
  margin: -4px 0 12px;
  color: #d92d20;
  font-size: 13px;
  line-height: 1.4;
}

.template-list-empty,
.template-detail-empty {
  display: grid;
  place-items: center;
  text-align: center;
}

.template-list-empty {
  width: 278px;
  min-height: 116px;
  border: 1px dashed #d9dee7;
  border-radius: 10px;
}

.template-list-empty svg,
.template-detail-empty svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 1px solid #d9dee7;
  border-radius: 999px;
  color: #667085;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}

.template-list-empty strong,
.template-detail-empty h2 {
  margin: 10px 0 0;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.template-list-empty span,
.template-detail-empty p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.template-detail-empty {
  align-self: center;
  justify-self: center;
  width: 460px;
  min-height: 236px;
  padding: 28px;
  border: 1px dashed #d9dee7;
  border-radius: 12px;
}

.template-detail-empty .primary-button {
  margin-top: 18px;
}

.template-list-scroll {
  width: calc(100% - 9px);
  min-height: 0;
  flex: 1;
  margin-left: -4px;
  overflow: hidden scroll;
  border-radius: inherit;
}

.template-list-table {
  min-width: 100%;
  display: table;
}

.template-list-stack {
  width: max-content;
  min-width: 100%;
  padding-right: 8px;
}

.template-list-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  border: 1px solid #e4e4e7;
  border-radius: 8.4px;
  background: #fff;
  color: #27272a;
  transition: background .16s ease, border-color .16s ease;
}

.template-list-row:last-child {
  margin-bottom: 0;
}

.template-list-row.active {
  border-color: #e4e4e7;
  background: #f4f4f5;
}

.template-list-row:hover {
  background: rgba(244, 244, 245, .5);
}

.template-list-row > button:first-child {
  min-width: 0;
  flex: 1;
  min-height: 64px;
  padding: 12px 8px 12px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.template-list-row-content {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.template-list-active-indicator {
  width: 2px;
  height: 48px;
  flex: 0 0 2px;
  border-radius: 999px;
  background: #025ce2;
}

.template-list-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.template-list-title {
  display: block;
  color: #27272a;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-list-preview {
  max-width: 200px;
  color: #71717a;
  font-size: 12px;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-delete-button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 8.4px;
  background: transparent;
  color: #71717a;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
}

.account-profile-toast-message span {
  color: rgb(0, 138, 46);
  font-family: ui-sans-serif, system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
}

.template-delete-button:hover {
  background: #fee9e9;
  color: #d92d20;
}

.template-detail-panel {
  width: 638px;
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.template-detail-toolbar {
  height: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex: 0 0 auto;
  margin-bottom: 12px;
}

.template-detail-toolbar h2 {
  margin: 6px 0 0;
  color: #18181b;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.template-detail-toolbar .primary-button.compact {
  height: 36px;
  min-height: 36px;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.message-template-form {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.template-form-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-form-field > label {
  width: fit-content;
  display: flex;
  gap: 8px;
  color: #18181b;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.template-form-field > label span {
  color: #dc2626;
}

.template-field-content {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  line-height: 22px;
}

.message-template-form input,
.message-template-form textarea {
  width: 100%;
  border: 1px solid #e4e4e7;
  border-radius: 8.4px;
  background: #fff;
  color: #18181b;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.message-template-form input {
  height: 36px;
  min-height: 36px;
  padding: 4px 12px;
}

.message-template-form input[aria-invalid="true"],
.message-template-form textarea[aria-invalid="true"] {
  border-color: #f97066;
}

.template-body-field {
  min-height: 0;
  flex: 1;
}

.template-body-content {
  min-height: 0;
  flex: 1;
}

.message-template-form textarea {
  display: flex;
  flex: 1;
  min-height: 280px;
  padding: 8px 12px;
  background: transparent;
  resize: none;
  line-height: 20px;
}

.default-reminder-template-form textarea:focus-visible {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px oklab(0.519343 -0.0356103 -0.213735 / 0.5), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.message-template-form input::placeholder,
.message-template-form textarea::placeholder {
  color: #8a8f98;
}

.template-placeholder-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #fcd34d;
  border-radius: 8.4px;
  background: #fffbeb;
  color: #78350f;
}

.template-placeholder-warning svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
}

.template-placeholder-warning p {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
}

.template-placeholder-warning code {
  color: #78350f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
}

.template-form-status,
.template-form-error {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.template-form-status {
  color: #0a8f55;
}

.template-form-error {
  color: #d92d20;
}

.template-detail-select-empty {
  min-height: 236px;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #667085;
  text-align: center;
}

.template-detail-select-empty svg {
  color: rgba(102, 112, 133, .6);
}

.template-detail-select-empty p {
  margin: 0;
  font-size: 14px;
}

/* Centre Dentaire Benabad brand and login shell. */
.dentalome-logo {
  display: inline-flex;
  align-items: center;
  color: #025ce2;
  line-height: 1;
}

.dentalome-logo-wordmark {
  display: block;
  width: 288px;
  height: auto;
  color: currentColor;
}

.dentalome-logo-symbol {
  display: none;
  width: 32px;
  height: auto;
  color: currentColor;
}

.dentalome-logo-white {
  color: #fff;
}

.dentalome-login-screen.login-screen {
  min-height: 100vh;
  width: 100vw;
  max-width: 100vw;
  display: grid;
  grid-template-columns: minmax(0, 48.333333%) minmax(0, 51.666667%);
  place-items: stretch;
  align-items: stretch;
  justify-content: stretch;
  overflow-x: hidden;
  background: #fff;
}

.dentalome-login-cover {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  background: #2f5de5;
  color: #fff;
}

.dentalome-login-brand-lockup {
  display: grid;
  justify-items: center;
  width: min(520px, calc(100% - 48px));
  margin-top: 14px;
}

.dentalome-login-brand-lockup .dentalome-logo {
  transform: translate(68px, -3px);
}

.dentalome-login-brand-lockup .dentalome-logo-wordmark {
  width: 360px;
}

.dentalome-login-brand-lockup p {
  margin: 16px 0 0;
  transform: translateY(-6px);
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.dentalome-login-panel.login-panel {
  width: 380px;
  min-width: 0;
  gap: 0;
  align-self: center;
  justify-self: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dentalome-login-panel h1 {
  margin: 0;
  color: #1c1c1e;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.dentalome-login-panel p {
  margin: 4px 0 32px;
  color: #8e8e93;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.dentalome-login-panel .login-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.dentalome-login-panel .login-field + .login-field {
  margin-bottom: 20px;
}

.dentalome-login-panel .login-field > label {
  display: inline;
  margin: 0;
  color: #1c1c1e;
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
}

.dentalome-login-panel .login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}

.dentalome-login-panel .login-input-wrap svg {
  flex: 0 0 auto;
  margin-left: 12px;
  color: #8a8f98;
}

.dentalome-login-panel input[type="email"],
.dentalome-login-panel input[type="password"],
.dentalome-login-panel .login-input-wrap input[type="text"] {
  min-width: 0;
  flex: 1;
  height: 42px;
  border: 0;
  border-radius: 0;
  padding: 0 10px;
  color: #111827;
  background: transparent;
  font-size: 14px;
  box-shadow: none;
  outline: 0;
}

.dentalome-login-panel input::placeholder {
  color: #8a8f98;
}

.login-password-toggle {
  display: inline-grid;
  flex: 0 0 40px;
  height: 42px;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: #8a8f98;
  cursor: pointer;
}

.dentalome-login-panel .login-password-toggle svg {
  margin: 0;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
  color: #222;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -2px 0 22px;
}

.login-options label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #1c1c1e;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.login-checkbox {
  display: block;
  width: 16px;
  height: 16px;
  place-items: center;
  flex: 0 0 16px;
  border: 1px solid #e5e5ea;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  color: #1c1c1e;
  cursor: pointer;
}

.login-checkbox[aria-checked="true"] {
  border-color: #2f5de5;
  background: #2f5de5;
}

.login-checkbox-input {
  position: absolute;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  margin: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.login-options a {
  color: #0b63e5;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.forgot-password-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #0b63e5;
  font: inherit;
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

.dentalome-login-panel .primary-button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #2f5de5;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  padding: 8px 16px;
  box-shadow: none;
}

.dentalome-login-panel .form-error {
  box-sizing: border-box;
  margin: 0 0 20px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 12px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.login-reset-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 24px;
}

.login-reset-dialog {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 26px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  color: #1c1c1e;
}

.login-reset-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #666;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.login-reset-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 18px;
}

.login-reset-header > span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e9efff;
  color: #025ce2;
}

.login-reset-header h2 {
  margin: 0;
  color: #1f1f23;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.login-reset-stepper {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr;
  align-items: center;
  gap: 0;
}

.login-reset-step {
  display: contents;
}

.login-reset-step-card {
  display: grid;
  min-width: 0;
  min-height: 68px;
  place-items: center;
  border-radius: 10px;
  color: #8a8f98;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
}

.login-reset-step-card i {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-style: normal;
}

.login-reset-step-card b {
  margin-top: 6px;
  font-weight: 600;
}

.login-reset-step.active .login-reset-step-card {
  background: #e8eeff;
  color: #2556e3;
}

.login-reset-step.complete .login-reset-step-card {
  background: #e2f7ef;
  color: #00b884;
}

.login-reset-step-line {
  display: block;
  width: 24px;
  height: 2px;
  justify-self: center;
  background: #e5e7eb;
}

.login-reset-step-line.complete {
  background: #00b884;
}

.login-reset-form {
  display: grid;
  gap: 14px;
}

.login-reset-form label {
  display: grid;
  gap: 10px;
  color: #1c1c1e;
  font-size: 14px;
  font-weight: 650;
}

.login-reset-input-wrap {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.login-reset-input-wrap:focus-within {
  border-color: #2556e3;
  box-shadow: 0 0 0 3px rgba(37, 86, 227, 0.26);
}

.login-reset-input-wrap svg {
  flex: 0 0 auto;
  margin-left: 12px;
  color: #8a8f98;
}

.login-reset-input-wrap input {
  min-width: 0;
  flex: 1;
  height: 46px;
  border: 0;
  padding: 0 12px;
  background: transparent;
  color: #1c1c1e;
  font-size: 14px;
  outline: 0;
}

.login-reset-form .primary-button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #2556e3;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
}

.login-reset-form .primary-button:disabled {
  background: #8da7ef;
  cursor: not-allowed;
}

.login-reset-error {
  margin-top: -4px;
  color: #dc2626;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
}

.login-reset-sent {
  margin: -2px 0 8px;
  color: #8a8f98;
  font-size: 14px;
  line-height: 1.45;
}

.login-reset-sent strong {
  display: block;
  margin-top: 2px;
  color: #1c1c1e;
  font-weight: 700;
}

.login-reset-otp-row {
  display: grid;
  grid-template-columns: repeat(3, 46px) 14px repeat(3, 46px);
  gap: 6px;
  align-items: center;
}

.login-reset-otp-row::before {
  grid-column: 4;
  grid-row: 1;
  content: "–";
  justify-self: center;
  color: #8a8f98;
  font-size: 20px;
}

.login-reset-otp-row input {
  width: 46px;
  height: 48px;
  border: 1px solid #d9dee7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
  color: #1c1c1e;
  font-size: 22px;
  font-weight: 650;
  text-align: center;
  outline: 0;
}

.login-reset-otp-row input:focus {
  border-color: #2556e3;
  box-shadow: 0 0 0 3px rgba(37, 86, 227, 0.26);
}

.primary-nav-brand {
  color: #025ce2;
}

.primary-nav-brand .dentalome-logo {
  transform: translateX(-3px);
}

.primary-nav-brand .dentalome-logo-wordmark {
  width: 232px;
}

.primary-nav-user .mini-avatar,
.mini-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  object-fit: cover;
  background: #f2f4f7;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.primary-nav-initials {
  font-family: inherit;
}

body {
  min-width: 0;
}

@media (max-width: 900px) {
  .dentalome-login-screen.login-screen {
    grid-template-columns: 1fr;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .dentalome-login-cover {
    min-height: 280px;
    padding: 0;
  }

  .dentalome-login-panel.login-panel {
    width: min(380px, calc(100vw - 48px));
    margin: 48px auto 64px;
  }

  .app-shell,
  .app-shell.sidebar-collapsed {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .app-body.no-rail,
  .app-body.patient-detail-mode,
  .app-shell.sidebar-collapsed .app-body.no-rail,
  .app-shell.sidebar-collapsed .app-body.patient-detail-mode {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .primary-nav,
  .app-body.patient-detail-mode .primary-nav,
  .app-shell.sidebar-collapsed .primary-nav,
  .app-shell.sidebar-collapsed .app-body.patient-detail-mode .primary-nav {
    width: 72px;
  }

  .primary-nav-brand {
    justify-content: center;
    padding: 0 10px;
  }

  .primary-nav-brand .dentalome-logo-wordmark,
  .primary-nav span,
  .nav-section-label,
  .primary-nav-user div,
  .primary-nav-user .nav-logout {
    display: none;
  }

  .topbar-sidebar-toggle-standalone {
    display: none !important;
  }

  .topbar-mobile-menu-toggle {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #344054;
  }

  .patient-treatment-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 100%;
  }

  .patient-treatment-layout > *,
  .odontogram-column,
  .act-status-card {
    min-width: 0;
    max-width: 100%;
  }

  .act-status-card {
    width: 100%;
    min-height: 240px;
    margin-top: 0;
    padding: 18px;
  }

  .odontogram-panel.dentalome-odontogram-card {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram {
    width: 1020px;
    min-width: 1020px;
    max-width: none;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-row {
    column-gap: 18px;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group {
    grid-template-columns: repeat(8, 56px);
    column-gap: 6px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram.child .tooth-group {
    grid-template-columns: repeat(5, 56px);
  }

  .primary-nav-brand .dentalome-logo-symbol {
    display: block;
  }

  .primary-nav-scroll {
    padding: 14px 8px 84px;
  }

  .primary-nav button {
    justify-content: center;
    padding: 0;
  }

  .topbar,
  .app-shell.sidebar-collapsed .topbar {
    grid-column: 2;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 10px;
  }

  .global-search {
    max-width: none;
  }

  .user-zone {
    gap: 6px;
  }

  .topbar-action {
    width: 34px;
    height: 34px;
  }

  .dentalome-settings-workspace,
  .message-templates-workspace {
    padding: 16px;
  }

  .dentalome-settings-card {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 92px);
    overflow: visible;
  }

  .account-settings-nav {
    height: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid #d9dee7;
  }

  .account-settings-title {
    width: 100%;
  }

  .account-settings-nav nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
  }

  .account-settings-nav nav > a {
    width: auto;
    min-width: 152px;
    margin: 0;
  }

  .account-settings-content {
    height: auto;
    padding: 18px;
  }

  .account-settings-panel {
    min-height: auto;
  }

  .account-profile-fields-grid {
    grid-template-columns: 1fr;
  }

  .password-settings-form .account-save-button {
    position: static;
    justify-self: start;
  }

  .quota-grid {
    grid-template-columns: 1fr;
  }

  .template-settings-shell {
    grid-template-columns: 1fr;
    min-height: 560px;
  }

  .template-list-pane {
    border-right: 0;
    border-bottom: 1px solid #d9dee7;
  }

  .template-list-empty {
    width: 100%;
  }

  .template-list-row small {
    max-width: min(520px, 100%);
  }

  .template-detail-panel {
    padding: 0;
  }

  .template-detail-empty {
    width: min(460px, calc(100% - 32px));
  }
}

@media (max-width: 520px) {
  .login-reset-dialog {
    gap: 24px;
    padding: 24px;
  }

  .login-reset-header {
    padding-right: 28px;
  }

  .login-reset-header h2 {
    white-space: normal;
  }

  .dentalome-login-cover {
    display: none;
  }

  .dentalome-login-panel.login-panel {
    width: auto;
    margin: auto 24px;
  }

  .dentalome-login-panel h1 {
    font-size: 20px;
  }

  .app-shell,
  .app-shell.sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-body.no-rail,
  .app-body.patient-detail-mode,
  .app-shell.sidebar-collapsed .app-body.no-rail,
  .app-shell.sidebar-collapsed .app-body.patient-detail-mode {
    grid-template-columns: minmax(0, 1fr);
  }

  .primary-nav,
  .app-body.patient-detail-mode .primary-nav,
  .app-shell.sidebar-collapsed .primary-nav,
  .app-shell.sidebar-collapsed .app-body.patient-detail-mode .primary-nav {
    display: none;
  }

  .topbar,
  .app-shell.sidebar-collapsed .topbar {
    grid-column: 1;
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .appointment-form-modal {
    width: calc(100vw - 48px);
    padding: 24px 24px 0;
  }

  .appointment-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .appointment-form-grid.creating,
  .appointment-form-grid.editing {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 22px;
  }

  .appointment-form-grid.creating > label,
  .appointment-form-grid.editing > label,
  .appointment-form-grid.creating > label:nth-of-type(n),
  .appointment-form-grid.editing > label:nth-of-type(n),
  .appointment-form-grid.creating .modal-actions,
  .appointment-form-grid.editing .modal-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .appointment-form-grid.creating .modal-actions,
  .appointment-form-grid.editing .modal-actions {
    width: calc(100% + 48px);
    margin: 0 -24px;
  }

  .appointment-form-actions {
    flex-wrap: wrap;
  }

  .appointment-form-footer-actions {
    flex: 0 0 100%;
  }

  .modal {
    width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }

  .document-source-dialog-modal {
    width: calc(100vw - 32px);
    padding: 20px 16px 0;
  }

  .document-source-dialog-modal .modal-head {
    margin: -2px -16px 16px;
    padding: 0 16px 14px;
  }

  .document-source-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .document-source-summary {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .document-source-summary-card {
    justify-content: flex-start;
  }

  .document-source-table-wrap {
    overflow-x: auto;
  }

  .document-source-table {
    min-width: 560px;
  }

  .ordonnance-source-table {
    min-width: 100%;
  }

  .ordonnance-source-table th,
  .ordonnance-source-table td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .ordonnance-source-table th:first-child,
  .ordonnance-source-table td:first-child {
    width: 40%;
  }

  .ordonnance-source-table th:nth-child(2),
  .ordonnance-source-table td:nth-child(2) {
    width: calc(60% - 38px);
  }

  .ordonnance-source-table th:last-child,
  .ordonnance-source-table td:last-child {
    width: 38px;
  }

  .ordonnance-source-table input {
    min-width: 0;
    padding: 7px 8px;
    font-size: 13px;
  }

  .document-source-checkbox-list {
    position: static;
    margin-top: 4px;
  }

  .document-source-dialog-modal .modal-actions {
    flex-wrap: wrap;
    margin: 4px -16px 0;
    padding: 14px 16px;
  }

  .document-source-dialog-modal .modal-actions button {
    flex: 1 1 140px;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .users-action-modal,
  .users-permissions-modal {
    width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }

  .appointment-form-grid .modal-actions {
    margin-bottom: 0;
  }

  .operation-form-modal,
  .operation-sessions-modal,
  .operation-session-form-modal,
  .session-delete-alert-modal,
  .payment-form-modal,
  .patient-form-modal,
  .prothese-form-modal,
  .charge-form-modal {
    width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 24px 24px 0;
  }

  .operation-sessions-modal {
    width: calc(100vw - 32px);
    padding: 0;
  }

  .operation-sessions-summary-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .operation-sessions-scroll {
    max-height: calc(100vh - 280px);
    padding: 16px;
  }

  .operation-sessions-footer {
    padding: 16px;
  }

  .operation-session-card-header {
    align-items: flex-start;
  }

  .operation-session-date-chip {
    flex-wrap: wrap;
  }

  .medical-history-modal {
    width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    padding: 0;
  }

  .medical-history-scroll {
    max-height: calc(100vh - 190px);
    padding: 16px;
  }

  .medical-history-source-grid,
  .medical-lifestyle-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .medical-important-panel,
  .medical-history-section {
    padding: 16px;
  }

  .dentalome-operation-form,
  .dentalome-payment-form,
  .operation-session-form,
  .operation-session-source-form,
  .dentalome-patient-form,
  .dentalome-prothese-form,
  .dentalome-charge-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .operation-form-modal .modal-actions,
  .operation-sessions-modal .modal-actions,
  .operation-session-form-modal .modal-actions,
  .session-delete-alert-modal .modal-actions,
  .payment-form-modal .modal-actions,
  .patient-form-modal .modal-actions,
  .prothese-form-modal .modal-actions,
  .charge-form-modal .modal-actions {
    margin-bottom: 0;
  }

  .patient-form-modal .modal-actions {
    flex-wrap: wrap;
  }

  .patient-form-modal .patient-history-button,
  .patient-form-modal .modal-action-spacer {
    flex: 0 0 100%;
  }

  .patient-form-modal .patient-history-button {
    justify-content: center;
  }

  .medical-history-intro,
  .medical-alert-copy,
  .medical-section-head,
  .medical-question-row {
    align-items: stretch;
  }

  .medical-question-row {
    flex-direction: column;
  }

  .medical-yes-no {
    align-self: flex-start;
  }

  .medical-flag-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .medical-history-actions {
    flex-wrap: wrap;
  }

  .medical-history-actions button {
    flex: 1 1 140px;
  }

  .odontogram-panel.dentalome-odontogram-card {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .topbar-sidebar-toggle-standalone {
    display: none !important;
  }

  .topbar-mobile-menu-toggle {
    display: inline-grid;
    width: 28px;
    height: 28px;
    min-width: 28px;
    place-items: center;
    align-self: center;
    justify-self: start;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #111827;
  }

  .topbar-mobile-menu-toggle:hover {
    background: #f2f4f7;
  }

  .main,
  .app-body.no-rail .main,
  .app-body.patient-detail-mode .main {
    grid-column: 1;
  }

  .patient-workspace {
    padding: 24px 24px 40px;
    background: #f6f7f8;
  }

  .patient-header.dentalome-patient-header {
    overflow: visible;
  }

  .dentalome-patient-identity {
    grid-template-columns: 80px 127px auto;
    align-items: start;
    gap: 16px;
    padding: 16px 24px 12px;
  }

  .dentalome-patient-identity .patient-display-name {
    font-size: 20px;
    line-height: 25px;
    overflow: visible;
    overflow-wrap: normal;
    text-overflow: clip;
    white-space: normal;
    text-transform: capitalize;
  }

  .dentalome-patient-identity .patient-title-line {
    align-items: center;
    gap: 12px;
  }

  .patient-subline,
  .patient-contact-line {
    flex-wrap: wrap;
    font-size: 14px;
    line-height: 20px;
  }

  .patient-subline {
    gap: 4px;
  }

  .patient-contact-line {
    gap: 16px;
  }

  .patient-profile-actions {
    grid-column: 3;
    width: auto;
    align-items: center;
    overflow: visible;
    padding-top: 0;
  }

  .patient-profile-actions button {
    flex: 0 0 auto;
  }

  .patient-header-tabs {
    padding: 0 24px;
  }

  .patient-header-tabs :is(button, a) {
    padding: 0 12px;
  }

  .patient-header-tabs :is(button, a).active {
    color: #101828;
  }

  .patient-treatment-layout {
    display: grid;
    width: 1067.015625px;
    min-width: 1067.015625px;
    max-width: none;
    grid-template-columns: 831px 220.015625px;
    gap: 16px;
  }

  .odontogram-column {
    width: 831px;
    min-width: 831px;
    max-width: none;
  }

  .patient-treatment-layout .act-status-card {
    width: 220.015625px;
    min-width: 220.015625px;
    max-width: none;
    height: 504px;
    min-height: 504px;
    padding: 28px;
  }

  .odontogram-panel.dentalome-odontogram-card {
    width: 831px;
    min-width: 831px;
    max-width: none;
    height: 504px;
    min-height: 504px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-card-top {
    width: 899.34375px;
    height: 53px;
    min-height: 53px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin: 0 0 16px;
    padding: 0 0 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs {
    width: 273.78125px;
    height: 36px;
    min-height: 36px;
    flex: 0 0 273.78125px;
    padding: 3px;
    border-radius: 8.4px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
    height: 27px;
    min-height: 27px;
    padding: 4px 8px;
    border-radius: 6.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    transform: translateX(4px);
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions {
    width: 500.078125px;
    height: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 0 0 500.078125px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials {
    width: 318.3828125px;
    height: 36px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 32px;
    flex: 0 0 318.3828125px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: .3px;
    text-align: left;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric p,
  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric strong,
  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric b {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row,
  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row.top,
  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row.bottom {
    width: 100%;
    height: 20px;
    min-height: 20px;
    flex: 0 0 20px;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .all-teeth-control {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > span {
    width: 32px;
    height: 18.4px;
    border: 1px solid transparent;
    background: #e4e4e7;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram {
    width: 100%;
    height: 289px;
    min-height: 289px;
    flex: 0 0 289px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-row {
    width: 100%;
    height: 128px;
    min-height: 128px;
    flex: 0 0 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    transform: translateX(-61px);
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group {
    width: auto;
    min-width: 0;
    height: 128px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group.right {
    margin-right: 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group.left {
    margin-left: 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-midline {
    width: 1px;
    height: 104px;
    flex: 0 0 1px;
    align-self: center;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
    width: auto;
    min-width: 0;
    max-width: none;
    height: 128px;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin: 0;
    padding: 4px;
    border: 0;
    border-radius: 6.4px;
    background: transparent;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth strong,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower strong {
    flex: 0 0 16px;
    height: 16px;
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-art,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower .tooth-art {
    width: auto;
    height: 96px;
    min-height: 96px;
    flex: 0 0 96px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact.tooth-svg,
  .odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact-inner {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    display: block;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact.tooth-svg svg {
    width: auto !important;
    height: auto !important;
    max-width: none;
    max-height: none;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-divider {
    width: 100%;
    height: 1px;
    flex: 0 0 1px;
    margin: 0;
  }

  .global-list-workspace .dentalome-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .global-list-workspace .dentalome-empty-cell {
    padding: 0 !important;
    text-align: left !important;
  }

  .global-list-workspace .dentalome-empty-text {
    position: sticky;
    left: 0;
    display: inline-flex;
    width: calc(100vw - 64px);
    min-height: 96px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    white-space: normal;
  }

  .users-controls-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
  }

  .users-controls-row .dentalome-segmented-tabs {
    flex: 0 0 auto;
  }

  .users-add-button {
    flex: 0 0 228.75px;
    width: 228.75px;
    min-width: 228.75px;
    max-width: none;
    white-space: nowrap;
  }

  .catalog-toolbar-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1px;
  }

  .catalog-filter-row {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 16px;
  }

  .charges-filter-row {
    flex-wrap: nowrap;
    gap: 16px;
  }

  .operations-filter-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .operations-filter-row .payments-date-range-picker,
  .operations-filter-row .global-period-control,
  .operations-filter-row .dentalome-select-button {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-width: calc(100vw - 48px);
  }

  .operations-filter-row .payments-date-range-trigger {
    width: 100%;
    justify-content: flex-start;
  }

  .acts-workspace .dentalome-table-outside-footer {
    height: auto;
    min-height: 69px;
  }

  .operations-table-footer {
    min-width: 520px;
  }

  .payments-filter-row {
    flex-wrap: nowrap;
    gap: 16px;
  }

  .payments-tabs.dentalome-segmented-tabs {
    width: 344.3125px;
    min-width: 344.3125px;
  }

  .payments-tabs.dentalome-segmented-tabs button {
    padding: 4px 8px;
    border: 1px solid transparent;
    white-space: nowrap;
  }

  .payments-filter-row .payments-date-range-picker,
  .payments-filter-row .payments-date-range-trigger {
    flex: 0 0 222.6953125px;
    width: 222.6953125px;
    min-width: 222.6953125px;
    max-width: none;
  }

  .payments-filter-row .global-period-control,
  .payments-filter-row .dentalome-select-button {
    flex: 0 0 160px;
    width: 160px;
    min-width: 160px;
    max-width: none;
  }

  .payments-filter-row .dentalome-download-button {
    flex: 0 0 135px;
    width: 135px;
    min-width: 135px;
    max-width: none;
  }

  .payments-filter-row .filter-row-actions {
    width: auto;
    margin-left: 0;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
  }

  .payments-date-range-popover {
    grid-template-columns: 224px;
    width: 250px;
  }

  .payments-date-range-popover .payments-range-calendar-month:nth-of-type(2) {
    display: none;
  }

  .payments-filter-row .dentalome-download-button {
    justify-content: center;
  }

  .payments-workspace .dentalome-table-outside-footer {
    position: sticky;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    width: calc(100vw - 80px);
    min-height: 72px;
  }

  .payments-total-label {
    align-self: flex-start;
  }

  .patients-filter-row {
    flex-wrap: nowrap;
    gap: 0;
  }

  .patients-search-input {
    flex: 0 0 300px;
    width: 300px;
    min-width: 300px;
    max-width: none;
  }

  .patients-filter-row .dentalome-blue-button {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    max-width: none;
    white-space: nowrap;
  }

  .patients-workspace .dentalome-table-wrap tfoot td {
    height: auto;
    padding: 12px 16px;
  }

  .patients-workspace .dentalome-table-wrap table {
    width: 587px;
    min-width: 587px;
    table-layout: fixed;
  }

  .patients-workspace .dentalome-table-wrap th:nth-child(1),
  .patients-workspace .dentalome-table-wrap td:nth-child(1) {
    width: 71px;
  }

  .patients-workspace .dentalome-table-wrap th:nth-child(2),
  .patients-workspace .dentalome-table-wrap td:nth-child(2) {
    width: 92px;
  }

  .patients-workspace .dentalome-table-wrap th:nth-child(3),
  .patients-workspace .dentalome-table-wrap td:nth-child(3) {
    width: 100px;
  }

  .patients-workspace .dentalome-table-wrap th:nth-child(4),
  .patients-workspace .dentalome-table-wrap td:nth-child(4) {
    width: 154px;
  }

  .patients-workspace .dentalome-table-wrap th:nth-child(5),
  .patients-workspace .dentalome-table-wrap td:nth-child(5) {
    width: 170px;
  }

  .patient-directory-actions {
    gap: 10px;
  }

  .patients-table-footer {
    position: sticky;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    width: calc(100vw - 80px);
    min-height: 72px;
  }

  .patients-table-footer > span:first-child {
    position: static;
  }

  .patients-page-loading {
    position: static;
  }

  .patients-pagination {
    width: auto;
    margin-left: 0;
    gap: 4px;
  }

  .patients-pagination button,
  .patients-pagination-ellipsis {
    min-width: 28px;
    height: 30px;
    border-radius: 7px;
    font-size: 12px;
  }

  .patients-pagination button:first-child,
  .patients-pagination button:last-child {
    min-width: 60px;
  }

  .prothese-toolbar-card {
    padding: 14px 12px;
    min-height: 124px;
  }

  .prothese-toolbar-top {
    flex-direction: column;
    align-items: stretch;
    height: auto !important;
    gap: 8px;
  }

  .prothese-search-control {
    min-width: 0;
    width: 100%;
  }

  .prothese-search-shell input {
    width: 100%;
  }

  .prothese-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .prothese-filter-button {
    width: 117.5px;
    min-width: 117.5px;
  }

  .prothese-add-button {
    width: 163.25px;
    min-width: 163.25px;
  }

  .prothese-filter-button,
  .prothese-add-button {
    flex: 0 0 auto;
  }

  .prothese-filter-panel {
    grid-template-columns: 1fr;
  }

  .prothese-date-range-fields {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar-row .dentalome-blue-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .catalog-filter-row .dentalome-blue-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 136px;
    max-width: none;
  }

  .catalog-filter-row .dentalome-search-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .medications-workspace .medication-toolbar-actions {
    flex: 0 0 auto;
  }

  .medications-workspace .medication-search-input {
    width: 228px;
  }

  .medications-workspace .medication-scope-tabs {
    height: 54px;
  }

  .medications-workspace .medication-scope-tabs button {
    height: 52px;
    white-space: normal;
  }

  .medications-workspace .medication-scope-tabs button:first-child {
    width: 84px;
  }

  .medications-workspace .medication-scope-tabs button:last-child {
    width: 130.75px;
  }

  .charges-filter-row .date-range-pill,
  .charges-filter-row .payments-date-range-picker,
  .charges-filter-row .payments-date-range-trigger,
  .charges-filter-row .charges-period-control,
  .charges-filter-row .dentalome-select-button,
  .charges-filter-row .charges-add-button {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    max-width: none;
    margin-left: 0;
  }

  .charges-filter-row .payments-date-range-picker,
  .charges-filter-row .payments-date-range-trigger,
  .charges-filter-row .date-range-pill {
    width: 221.75px;
    min-width: 221.75px;
  }

  .charges-filter-row .charges-period-control,
  .charges-filter-row .dentalome-select-button {
    width: 140.75px;
    min-width: 140.75px;
  }

  .charges-filter-row .charges-add-button {
    width: 186px;
    min-width: 186px;
  }

  .charges-filter-row .payments-date-range-trigger,
  .charges-filter-row .charges-period-trigger {
    justify-content: flex-start;
  }

  .charges-period-menu {
    width: max-content;
  }

  .global-list-workspace.documents-workspace .document-filter-primary .dentalome-search-input {
    font-size: 16px;
    line-height: 24px;
  }

  .global-list-workspace.documents-workspace .documents-table-footer {
    position: static;
    width: 100%;
    height: 36px;
    min-height: 36px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  .global-list-workspace.documents-workspace .documents-table-footer > span:first-child {
    position: static;
  }

  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination {
    width: 100%;
    flex: 1 1 auto;
    justify-content: center;
    gap: 4px;
    margin: 0 auto;
  }

  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-list {
    gap: 4px;
  }

  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination button,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-link,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-ellipsis {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
  }

  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination button:first-child,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination button:last-child,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-previous,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-next {
    width: 40px;
    min-width: 40px;
    padding: 8px 12px;
  }

  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination button:first-child span,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination button:last-child span,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-previous span,
  .global-list-workspace.documents-workspace .documents-table-footer .patients-pagination-next span {
    display: none;
  }

  .dentalome-settings-workspace,
  .message-templates-workspace {
    padding: 24px 24px 8px;
  }

  .account-settings-nav nav > a {
    flex: 1 1 100%;
  }

  .account-breadcrumb,
  .template-page-breadcrumb {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .account-avatar-large {
    width: 108px;
    height: 108px;
  }

  .account-avatar-large img {
    width: 108px;
    height: 108px;
  }

  .account-avatar-trigger,
  .account-avatar-empty {
    width: 108px;
    height: 108px;
  }

  .phone-field {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .reminder-template-card,
  .automation-card,
  .quota-card {
    border-radius: 10px;
  }

  .quota-card {
    padding-left: 58px;
  }

  .message-templates-workspace .page-header {
    display: grid;
    height: 128px;
    margin-bottom: 24px;
  }

  .message-templates-workspace .page-header p {
    width: 288px;
  }

  .message-templates-workspace .page-header-actions {
    justify-content: flex-start;
  }

  .template-settings-shell {
    min-height: 620px;
  }

  .template-detail-toolbar {
    display: grid;
    gap: 10px;
  }

  .template-detail-toolbar .primary-button {
    justify-self: start;
  }

  .message-template-form textarea {
    min-height: 260px;
  }
}

/* 2026-06-04 shell topbar popover parity pass. */
.user-zone {
  position: relative;
}

.topbar-action.active,
.topbar-action[aria-expanded="true"] {
  border-color: #b9cdf9;
  background: #eef5ff;
  color: #075ee8;
}

.topbar-popover {
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 95;
  width: min(326px, calc(100vw - 32px));
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.topbar-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #eef0f4;
}

.topbar-popover-head strong {
  display: block;
  color: #101828;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.topbar-popover-head span {
  display: block;
  max-width: 158px;
  color: #667085;
  font-size: 12px;
  font-weight: 520;
  line-height: 1.35;
  text-align: right;
}

.topbar-account-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef0f4;
}

.topbar-account-avatar {
  width: 36px;
  height: 36px;
  display: inline-grid;
  flex: 0 0 36px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 50%;
  background: #f4f7fb;
  color: #344054;
}

.topbar-account-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.topbar-account-identity > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.topbar-account-identity strong {
  overflow: hidden;
  color: #101828;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-account-identity small {
  color: #667085;
  font-size: 12px;
  line-height: 16px;
}

.topbar-account-menu {
  display: grid;
  gap: 2px;
  padding: 6px;
}

.topbar-account-menu button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  text-align: left;
  cursor: pointer;
}

.topbar-account-menu button:hover,
.topbar-account-menu button:focus-visible {
  outline: none;
  background: #f4f8ff;
  color: #075ee8;
}

.topbar-account-menu button.danger {
  margin-top: 3px;
  border-top: 1px solid #eef0f4;
  border-radius: 0 0 6px 6px;
  color: #b42318;
}

.topbar-account-menu button.danger:hover,
.topbar-account-menu button.danger:focus-visible {
  background: #fff4f2;
  color: #b42318;
}

.topbar-popover-list,
.topbar-notification-list {
  display: grid;
  gap: 0;
}

.topbar-popover-list button,
.topbar-notification-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #f1f3f6;
  background: #fff;
  color: #1f2937;
  text-align: left;
  cursor: pointer;
}

.topbar-popover-list button:hover,
.topbar-popover-list button.active,
.topbar-notification-row:hover {
  background: #f4f8ff;
}

.topbar-popover-list button.active {
  box-shadow: inset 3px 0 0 #075ee8;
}

.topbar-popover-list button span,
.topbar-notification-row strong {
  display: block;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.topbar-popover-list button small,
.topbar-notification-row small {
  color: #667085;
  font-size: 12px;
  font-weight: 460;
  line-height: 1.25;
}

.topbar-notification-row {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
}

.topbar-notification-list {
  max-height: min(440px, calc(100vh - 150px));
  overflow-y: auto;
}

.topbar-notification-icon {
  width: 30px;
  height: 30px;
  display: inline-grid !important;
  place-items: center;
  border-radius: 50%;
  background: #f2f4f7;
  color: #475467;
}

.topbar-notification-row.cancelled .topbar-notification-icon {
  background: #fff1f0;
  color: #d92d20;
}

.topbar-notification-row.postponed .topbar-notification-icon {
  background: #fffaeb;
  color: #b54708;
}

.topbar-notification-row.absent .topbar-notification-icon {
  background: #f2f4f7;
  color: #475467;
}

.topbar-notification-status {
  width: max-content;
  display: inline-flex !important;
  color: #475467;
  font-size: 10px;
  font-weight: 750;
  line-height: 14px;
  text-transform: uppercase;
}

.topbar-notification-status.cancelled {
  color: #b42318;
}

.topbar-notification-status.postponed {
  color: #93370d;
}

.topbar-notification-time {
  display: inline-flex !important;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef5ff;
  color: #075ee8;
  font-size: 12px;
  font-weight: 700;
}

.topbar-notification-row > span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.topbar-notification-row strong,
.topbar-notification-row small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.topbar-popover-empty {
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 20px;
  color: #667085;
  font-size: 13px;
}

.topbar-popover-empty svg {
  color: #98a2b3;
}

.topbar-popover-link {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-top: 1px solid #eef0f4;
  background: #fff;
  color: #075ee8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.topbar-popover-link:hover {
  background: #f4f8ff;
}

@media (max-width: 900px) {
  .topbar-popover {
    top: 40px;
    right: 0;
    width: min(326px, calc(100vw - 24px));
  }

  .topbar-popover-head {
    padding: 13px 14px 11px;
  }

  .topbar-popover-list button,
  .topbar-notification-row {
    padding: 11px 14px;
  }
}

/* Strict doctor-parity shell: Dentalome keeps the document at viewport height
   and scrolls the active workspace instead of extending the page. */
html,
body,
#root {
  height: 100%;
  overflow: hidden;
}

.app-shell,
.app-body {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.main,
.app-body.no-rail .main,
.app-body.patient-detail-mode .main {
  height: 100vh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.primary-nav .primary-nav-link,
.app-body.patient-detail-mode .primary-nav .primary-nav-link {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 8px;
  background: transparent;
  color: #374151;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
}

.patient-header-tabs a {
  color: inherit;
  text-decoration: none;
}

.patient-receipt-download-button {
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.patient-receipt-download-button:disabled {
  cursor: wait;
  opacity: .65;
}

.dashboard-practitioner-note {
  display: block;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.notes-panel-title {
  margin: 0;
}

.notes-panel-title h2 {
  margin: 0;
  color: inherit;
  font: inherit;
}

.stats-panel-empty {
  min-height: 270px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #667085;
  font-size: 14px;
  text-align: center;
}

.primary-nav .primary-nav-link.active,
.primary-nav .primary-nav-link:hover,
.primary-nav .primary-nav-link:focus-visible {
  background: #dfe7f0;
  color: #075fe5;
  outline: 0;
}

@media (min-width: 901px) {
  .app-shell,
  .app-body.no-rail,
  .app-body.patient-detail-mode,
  .main,
  .patient-workspace {
    background: #f6f7f8;
  }

  .primary-nav-scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 8px 0;
  }

  .nav-section {
    margin: 0 0 24px;
    padding: 0;
    border-top: 0;
  }

  .nav-section:last-child {
    margin-bottom: 8px;
  }

  .nav-section + .nav-section {
    border-top: 0;
  }

  .nav-section-label {
    height: 32px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 8px;
    color: rgba(75, 85, 99, .7);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0;
  }

  .primary-nav .primary-nav-link,
  .app-body.patient-detail-mode .primary-nav .primary-nav-link {
    height: 32px;
    min-height: 32px;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 8.4px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .nav-section .primary-nav-link + .primary-nav-link {
    margin-top: 4px;
  }

  .primary-nav .primary-nav-link svg {
    width: 16px;
    height: 16px;
  }

  .primary-nav .primary-nav-link > span,
  .app-body.patient-detail-mode .primary-nav .primary-nav-link > span {
    font-weight: 500;
    line-height: 20px;
    letter-spacing: -0.025em;
  }

  .primary-nav .primary-nav-link.active,
  .primary-nav .primary-nav-link:hover,
  .primary-nav .primary-nav-link:focus-visible {
    background: rgba(32, 85, 138, .15);
    color: rgb(2, 92, 226);
    font-weight: 500;
  }

  .primary-nav-user {
    width: 255px;
    height: 93px;
    min-height: 93px;
    flex: 0 0 93px;
    display: flex;
    margin: 0;
    padding: 12px 16px;
    border-top: 1px solid #e4e7ec;
    border-radius: 0;
    background: #fff;
    color: #4b5563;
  }

  .primary-nav-user-card {
    width: 100%;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(245, 245, 246, .6);
  }

  .primary-nav-user-main {
    width: 159px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .primary-nav-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin: 0;
    border-radius: 999px;
    background: oklch(0.967 0.001 286.375);
    color: #4b5563;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .primary-nav-user .primary-nav-avatar {
    display: grid;
    place-items: center;
    margin: 0;
    background: oklch(0.967 0.001 286.375);
    color: #4b5563;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .primary-nav-avatar img {
    width: 32px;
    height: 32px;
    display: block;
  }

  .primary-nav-user-copy {
    width: 119px;
    height: 56px;
    display: flex;
    flex-direction: column;
  }

  .primary-nav-user strong {
    width: 119px;
    height: 40px;
    overflow: visible;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    white-space: normal;
  }

  .primary-nav-user span:not(.primary-nav-avatar) {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    text-transform: capitalize;
  }

  .primary-nav-user .nav-logout {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px !important;
    padding: 0;
    gap: 8px;
    justify-content: center;
    border: 0 solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
  }
}

/* Dentalome patient header structure: bordered shell plus intrinsic-width tablist. */
.patient-header-tabs-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 24px;
  border-top: 1px solid oklch(0.92 0.004 286.32);
  overflow: visible;
}

.patient-header-tabs-shell > .patient-header-tabs {
  width: fit-content;
  min-width: max-content;
  height: auto;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  border: 0;
  overflow: visible;
}

@media (min-width: 521px) and (max-width: 800px) {
  .dentalome-patient-identity .patient-subline {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    column-gap: 4px;
    row-gap: 4px;
  }

  .dentalome-patient-identity .patient-subline > span:last-child {
    grid-column: 1 / -1;
  }

  .dentalome-patient-identity .patient-contact-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 16px;
  }

  .dentalome-patient-identity .patient-contact-item:first-child {
    justify-self: start;
  }

  .dentalome-patient-identity .patient-contact-item:last-child {
    width: 100%;
  }
}

.app-shell.sidebar-collapsed .primary-nav .primary-nav-link,
.app-shell.sidebar-collapsed .app-body.patient-detail-mode .primary-nav .primary-nav-link {
  justify-content: center;
  padding: 0;
}

@media (max-width: 900px) {
  .primary-nav .primary-nav-link,
  .app-body.patient-detail-mode .primary-nav .primary-nav-link {
    justify-content: center;
    padding: 0;
  }
}

.patient-documents-card .patient-document-care-sheet-total {
  color: #16a34a;
}

.patient-documents-card .dentalome-row-actions .plain-icon.small:not(.danger) {
  color: oklch(0.21 0.006 285.885);
}

@media (min-width: 901px) {
  .topbar,
  .app-shell.sidebar-collapsed .topbar {
    position: relative;
    display: block;
    height: 60px;
    padding: 12px 24px;
  }

  .topbar .topbar-sidebar-toggle-standalone {
    position: absolute;
    top: 50%;
    left: 12px;
    margin: 0;
    transform: translateY(-50%);
  }

  .topbar .global-search {
    position: absolute;
    top: 12px;
    left: 64px;
    width: 500px;
    max-width: 500px;
    height: 36px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .topbar .global-search input {
    width: 500px;
    height: 36px;
    padding: 4px 48px 4px 36px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: oklch(0.985 0.002 247.839);
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .topbar .global-search input::placeholder {
    color: #6b7280;
    font-weight: 400;
  }

  .topbar .global-search .global-search-icon {
    left: 12px;
    width: 16px;
    height: 16px;
  }

  .topbar .global-search-shortcut {
    right: 12px;
    width: 21.2265625px;
    height: 20px;
  }

  .topbar .user-zone {
    position: absolute;
    top: 12px;
    right: 24px;
    width: 80px;
    min-width: 80px;
    height: 36px;
    gap: 8px;
  }

  .topbar .topbar-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .primary-nav-user .nav-logout svg {
    width: 16px;
    height: 16px;
  }

  .topbar .topbar-logout {
    display: none;
  }

  .topbar .topbar-action svg {
    width: 16px;
    height: 16px;
  }

  .dentalome-patient-header .patient-header-tabs a:focus-visible {
    outline: 0;
    box-shadow: none;
  }

  .dentalome-patient-header .patient-header-tabs a.active {
    border-bottom-color: #025ce2;
    background: #fff;
    color: oklch(0.141 0.005 285.823);
  }

  .patient-payments-card.dentalome-patient-list-card {
    min-height: 0;
    padding: 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    box-shadow: none;
  }

  .patient-payments-card .dentalome-list-title {
    margin: 0 0 24px;
  }

  .patient-payments-card .dentalome-list-title h1 {
    margin: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
  }

  .patient-payments-card .dentalome-list-title p {
    margin: 4px 0 0;
    color: oklch(0.552 0.016 285.938);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .patient-payments-card .dentalome-patient-table-scroll {
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    overflow: hidden;
  }

  .patient-payments-card .dentalome-patient-table {
    width: 100%;
    min-width: 0;
    border: 0;
  }

  .patient-payments-card .dentalome-patient-table thead {
    background: rgba(2, 92, 226, .1);
  }

  .patient-payments-card .dentalome-patient-table thead tr {
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-payments-card .dentalome-patient-table th {
    height: 40px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-payments-card .dentalome-patient-table td {
    height: 48px;
    padding: 8px;
    border: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-payments-card .dentalome-patient-table tbody tr,
  .patient-rdv-card .dentalome-patient-table tbody tr {
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-payments-card .dentalome-patient-table tbody tr:last-child,
  .patient-rdv-card .dentalome-patient-table tbody tr:last-child {
    border-bottom: 0;
  }

  .patient-payments-card .patient-payments-table th:nth-child(1),
  .patient-payments-card .patient-payments-table td:nth-child(1) { width: 11.170721%; }
  .patient-payments-card .patient-payments-table th:nth-child(2),
  .patient-payments-card .patient-payments-table td:nth-child(2) { width: 17.196565%; }
  .patient-payments-card .patient-payments-table th:nth-child(3),
  .patient-payments-card .patient-payments-table td:nth-child(3) { width: 11.000956%; }
  .patient-payments-card .patient-payments-table th:nth-child(4),
  .patient-payments-card .patient-payments-table td:nth-child(4) { width: 27.361056%; }
  .patient-payments-card .patient-payments-table th:nth-child(5),
  .patient-payments-card .patient-payments-table td:nth-child(5) { width: 17.541864%; }
  .patient-payments-card .patient-payments-table th:nth-child(6),
  .patient-payments-card .patient-payments-table td:nth-child(6) { width: 15.728837%; }

  .patient-payments-card .patient-payments-table .dentalome-empty-row {
    height: 96px;
    text-align: center !important;
  }

  .patient-payments-card .patient-payments-table td .money-green {
    display: block;
    height: 20px;
    color: #16a34a;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-payments-card .patient-payments-table th:nth-child(6),
  .patient-payments-card .patient-payments-table td:nth-child(6) {
    text-align: left;
  }

  .patient-payments-card .dentalome-row-actions {
    gap: 8px;
    justify-content: flex-start;
  }

.patient-payments-card .dentalome-row-actions .plain-icon.small {
    width: 32px;
    height: 32px;
    color: oklch(0.141 0.005 285.823);
    font-weight: 500;
    line-height: 20px;
  }

  .patient-payments-card .dentalome-row-actions .plain-icon.small.danger {
    color: oklch(0.577 0.245 27.325);
  }

  .patient-payments-card .dentalome-row-actions .plain-icon.small svg {
    width: 16px;
    height: 16px;
  }

  .patient-rdv-card.dentalome-patient-list-card {
    min-height: 0;
    padding: 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    box-shadow: none;
  }

  .patient-rdv-card .dentalome-list-title {
    margin: 0 0 24px;
  }

  .patient-rdv-card .dentalome-list-title h1 {
    margin: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
  }

  .patient-rdv-card .dentalome-list-title p {
    margin: 4px 0 0;
    color: oklch(0.552 0.016 285.938);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .patient-rdv-card .dentalome-patient-table-scroll {
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    overflow: hidden;
  }

  .patient-rdv-card .dentalome-patient-table {
    width: 100%;
    min-width: 0;
    border: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    line-height: 20px;
  }

  .patient-rdv-card .dentalome-patient-table thead {
    background: rgba(2, 92, 226, .1);
  }

  .patient-rdv-card .dentalome-patient-table thead tr {
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-rdv-card .dentalome-patient-table th {
    height: 40px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-rdv-card .dentalome-patient-table td {
    height: 48px;
    padding: 8px;
    border: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-rdv-card .patient-rdv-table .dentalome-empty-row {
    height: 96px;
    text-align: center !important;
  }

  .patient-payments-card .dentalome-table-footer,
  .patient-rdv-card .dentalome-table-footer {
    width: 100%;
    height: 57px;
    min-height: 57px;
    padding: 12px 16px;
    border-top: 1px solid oklch(0.92 0.004 286.32);
    color: oklch(0.552 0.016 285.938);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-payments-card .dentalome-pagination,
  .patient-rdv-card .dentalome-pagination {
    height: 32px;
    gap: 4px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-payments-card .dentalome-pagination > span,
  .patient-rdv-card .dentalome-pagination > span {
    display: block;
    width: auto;
    min-width: 0;
    height: 20px;
    padding: 0 8px;
    border-radius: 0;
  }

  .patient-payments-card .dentalome-pagination button,
  .patient-rdv-card .dentalome-pagination button {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: #fff;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-payments-card .dentalome-pagination button:disabled,
  .patient-rdv-card .dentalome-pagination button:disabled {
    color: oklch(0.704 0.04 256.788);
  }

  .patient-rdv-card .patient-rdv-table th:nth-child(1),
  .patient-rdv-card .patient-rdv-table td:nth-child(1) { width: 19.263357401%; }
  .patient-rdv-card .patient-rdv-table th:nth-child(2),
  .patient-rdv-card .patient-rdv-table td:nth-child(2) { width: 20.660830325%; }
  .patient-rdv-card .patient-rdv-table th:nth-child(3),
  .patient-rdv-card .patient-rdv-table td:nth-child(3) { width: 27.402978339%; }
  .patient-rdv-card .patient-rdv-table th:nth-child(4),
  .patient-rdv-card .patient-rdv-table td:nth-child(4) { width: 15.024277978%; }
  .patient-rdv-card .patient-rdv-table th:nth-child(5),
  .patient-rdv-card .patient-rdv-table td:nth-child(5) {
    width: 17.648646209%;
    text-align: left;
  }

  .patient-rdv-card .patient-rdv-table thead th:nth-child(2),
  .patient-rdv-card .patient-rdv-table tbody td:nth-child(2) { padding-left: 12px; }
  .patient-rdv-card .patient-rdv-table thead th:nth-child(3),
  .patient-rdv-card .patient-rdv-table tbody td:nth-child(3) { padding-left: 14px; }
  .patient-rdv-card .patient-rdv-table thead th:nth-child(4),
  .patient-rdv-card .patient-rdv-table tbody td:nth-child(4) { padding-left: 11px; }
  .patient-rdv-card .patient-rdv-table thead th:nth-child(5),
  .patient-rdv-card .patient-rdv-table tbody td:nth-child(5) { padding-left: 9px; }

  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) th:nth-child(1),
  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) td:nth-child(1) { width: 18.374887184%; }
  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) th:nth-child(2),
  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) td:nth-child(2) { width: 20.828632671%; }
  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) th:nth-child(3),
  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) td:nth-child(3) { width: 26.108416065%; }
  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) th:nth-child(4),
  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) td:nth-child(4) { width: 17.872856498%; }
  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) th:nth-child(5),
  .patient-rdv-card .patient-rdv-table:has(.dentalome-status-pill.realise) td:nth-child(5) { width: 16.815207581%; }

  .patient-rdv-card .dentalome-status-pill {
    width: fit-content;
    min-width: 0;
    height: 22px;
    padding: 2px 8px;
    border: 1px solid rgba(60, 121, 212, .2);
    border-radius: 999px;
    background: rgba(60, 121, 212, .1);
    color: #025ce2;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  .patient-rdv-card .dentalome-status-pill.realise {
    border-color: #dcfce7;
    background: #f0fdf4;
    color: #16a34a;
  }

  .patient-rdv-card .dentalome-status-pill.absent,
  .patient-rdv-card .dentalome-status-pill.annule {
    border-color: rgba(220, 38, 38, .2);
    background: #fef2f2;
    color: #dc2626;
  }

  .patient-rdv-card .dentalome-status-pill.reporte {
    border-color: rgba(245, 158, 11, .2);
    background: rgba(245, 158, 11, .1);
    color: #b45309;
  }

  .patient-rdv-card .dentalome-row-actions {
    gap: 8px;
    justify-content: flex-start;
  }

  .patient-rdv-card .dentalome-row-actions .plain-icon.small {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8.4px;
    color: oklch(0.141 0.005 285.823);
    font-weight: 500;
    line-height: 20px;
  }

  .patient-rdv-card .dentalome-row-actions .plain-icon.small.danger {
    display: inline-flex;
    color: oklch(0.577 0.245 27.325);
  }

  .patient-rdv-card .dentalome-row-actions .plain-icon.small.danger:disabled {
    opacity: .4;
  }

  .patient-rdv-card .dentalome-row-actions .plain-icon.small svg {
    width: 16px;
    height: 16px;
  }

  .patient-documents-card.dentalome-patient-list-card {
    min-height: 0;
    padding: 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    box-shadow: none;
  }

  .patient-documents-card .patient-documents-title-row {
    margin: 0 0 24px;
  }

  .patient-documents-card .dentalome-list-title h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
  }

  .patient-documents-card .dentalome-list-title p {
    margin: 4px 0 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .patient-documents-card.patient-documents-certificate,
  .patient-documents-card.patient-documents-letter {
    padding-bottom: 28px;
  }

  .patient-documents-card.patient-documents-letter {
    padding-bottom: 12px;
  }

  .patient-documents-card .patient-documents-toolbar {
    height: 36px;
    align-items: center;
    margin: 0 0 24px;
  }

  .patient-documents-card .document-subtabs {
    width: 294.109375px;
    height: 36px;
    min-height: 36px;
    align-items: flex-end;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
    background: #fff;
  }

  .patient-documents-card .document-subtabs button {
    height: 34px;
    min-height: 34px;
    padding: 4px 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: #fff;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-documents-card .document-subtabs button:first-child {
    width: 87.21875px;
  }

  .patient-documents-card .document-subtabs button:last-child {
    width: 204.890625px;
  }

  .patient-documents-card .document-subtabs button.active {
    border-bottom-color: #025ce2;
    color: oklch(0.141 0.005 285.823);
  }

  .patient-documents-card .document-subtabs button:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 0;
  }

  .patient-documents-card .document-generate-menu {
    width: 238.2109375px;
    height: 36px;
  }

  .patient-documents-card .document-generate-menu > .document-generate-button {
    width: 238.2109375px;
    min-width: 238.2109375px;
    height: 36px;
    min-height: 36px;
    gap: 8px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8.4px;
    background: #025ce2;
    color: oklch(0.97 0.014 254.604);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    box-shadow: none;
  }

  .patient-documents-card .document-generate-menu > .document-generate-button:focus-visible {
    outline: 0;
  }

  .patient-documents-card .document-generate-dropdown {
    top: calc(100% + 4px);
    right: auto;
    left: 0;
    width: 206.796875px;
    padding: 4px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: oklch(1 0 0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1),
      0 2px 4px -2px rgba(0, 0, 0, .1);
  }

  .patient-documents-card .document-generate-dropdown button,
  .patient-documents-card .document-generate-dropdown [role="menuitem"] {
    display: flex;
    align-items: center;
    width: 100%;
    height: 32px;
    min-height: 32px;
    padding: 6px 8px;
    border: 0 solid oklch(0.92 0.004 286.32);
    border-radius: 6.4px;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    gap: 8px;
    text-align: start;
  }

  .patient-certificate-source-modal.document-source-dialog-modal {
    position: relative;
    width: 672px;
    display: grid;
    gap: 20px;
    padding: 24px 24px 16px;
    overflow-y: auto;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 10.4px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1),
      0 4px 6px -4px rgba(0, 0, 0, .1);
  }

  .patient-certificate-source-modal.document-source-dialog-modal .modal-head {
    height: 35px;
    margin: 0 -24px;
    padding: 0 24px 16px;
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-certificate-source-modal.document-source-dialog-modal .modal-head h2 {
    width: 100%;
    color: #09090b;
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
  }

  .patient-certificate-source-modal.document-source-dialog-modal .modal-head > button,
  .patient-certificate-source-modal.document-source-dialog-modal > .modal-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    opacity: .7;
    display: block;
    gap: normal;
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .patient-certificate-source-modal.document-source-dialog-modal .modal-head > button svg,
  .patient-certificate-source-modal.document-source-dialog-modal > .modal-close-button svg {
    width: 16px;
    height: 16px;
  }

  .patient-certificate-source-modal .document-source-dialog-form {
    display: block;
  }

  .patient-certificate-source-modal .document-source-grid {
    gap: 16px;
    margin-bottom: 20px;
  }

  .patient-certificate-source-modal .document-source-grid > label {
    gap: 12px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 19.25px;
  }

  .patient-certificate-source-modal .document-source-grid .field-label {
    height: 19.25px;
    gap: 8px;
    line-height: 19.25px;
  }

  .patient-certificate-source-modal .dentalome-date-input > button,
  .patient-certificate-source-modal .appointment-source-combobox > .combobox-trigger {
    width: 100%;
    height: 36px;
    min-height: 36px;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .patient-certificate-source-modal .appointment-source-combobox > .combobox-trigger {
    font-weight: 500;
    text-align: center;
  }

  .patient-certificate-source-modal .dentalome-date-input > button:focus {
    border-color: #025ce2;
    outline: 0;
    box-shadow:
      0 0 0 1px rgba(2, 92, 226, .5),
      0 0 0 3px rgba(2, 92, 226, .25);
  }

  .patient-certificate-source-modal .patient-certificate-duration-summary {
    min-height: 58px;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    background: oklab(0.967 0.000282 -0.000959 / .5);
    color: oklch(0.552 0.016 285.938);
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
  }

  .patient-certificate-source-modal .patient-certificate-duration-summary > span {
    display: block;
  }

  .patient-certificate-source-modal .patient-certificate-duration-summary > strong {
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
  }

  .patient-certificate-source-modal.document-source-dialog-modal .modal-actions {
    height: 53px;
    gap: 8px;
    margin: 0 -24px;
    padding: 16px 24px 0;
    border-top: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-certificate-source-modal.document-source-dialog-modal .modal-actions button,
  .patient-certificate-source-modal.document-source-dialog-modal .modal-actions .primary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-height: 36px;
    padding: 8px 16px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    gap: 8px;
    color: oklch(0.141 0.005 285.823);
    background: oklch(1 0 0);
    border: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-certificate-source-modal.document-source-dialog-modal .modal-actions .primary-button {
    padding: 8px 12px;
    border: 0;
    background: #025ce2;
    color: oklch(0.97 0.014 254.604);
    box-shadow: none;
  }

  .patient-letter-source-modal.document-source-dialog-modal {
    position: relative;
    width: 768px;
    height: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 24px 16px;
    overflow-y: auto;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 10.4px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1),
      0 4px 6px -4px rgba(0, 0, 0, .1);
  }

  .patient-letter-source-modal.document-source-dialog-modal .modal-head {
    width: calc(100% + 48px);
    height: 35px;
    flex: 0 0 35px;
    margin: 0 -24px;
    padding: 0 24px 16px;
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-letter-source-modal.document-source-dialog-modal .modal-head h2 {
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
  }

  .patient-letter-source-modal.document-source-dialog-modal .modal-head > button,
  .patient-letter-source-modal.document-source-dialog-modal > .modal-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    opacity: .7;
  }

  .patient-letter-source-modal.document-source-dialog-modal .modal-head > button svg,
  .patient-letter-source-modal.document-source-dialog-modal > .modal-close-button svg {
    width: 16px;
    height: 16px;
  }

  .patient-letter-source-modal .document-source-dialog-form {
    height: auto;
    min-height: 0;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 16px;
    overflow: visible;
  }

  .patient-letter-source-modal .document-source-grid {
    height: auto;
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .patient-letter-source-modal .document-source-grid > label {
    gap: 12px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 19.25px;
  }

  .patient-letter-source-modal .document-source-grid .field-label {
    height: 19.25px;
    gap: 8px;
    line-height: 19.25px;
  }

  .patient-letter-source-modal .dentalome-date-input > button,
  .patient-letter-source-modal .appointment-source-combobox > .combobox-trigger {
    width: 100%;
    height: 36px;
    min-height: 36px;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .patient-letter-source-modal .dentalome-date-input > button {
    text-align: left;
  }

  .patient-letter-source-modal .appointment-source-combobox > .combobox-trigger {
    text-align: center;
  }

  .patient-letter-source-modal .document-source-grid > label.wide > input {
    width: 100%;
    height: 36px;
    min-height: 36px;
    padding: 4px 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: #fff;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .patient-letter-source-modal .patient-letter-content .simple-editor-wrapper {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 65vh;
    border: 1px solid rgba(37, 39, 45, .1);
    border-radius: 12px;
  }

  .patient-letter-source-modal .patient-letter-content .tiptap-toolbar {
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 44px;
    min-height: 44px;
    justify-content: center;
    gap: 4px;
    padding: 0 8px;
    color: rgba(36, 39, 46, .78);
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
  }

  .patient-letter-source-modal .patient-letter-content .tiptap-toolbar-group {
    gap: 2px;
  }

  .patient-letter-source-modal .patient-letter-content .tiptap-toolbar-group + .tiptap-toolbar-group {
    margin-left: 5px;
    padding-left: 0;
    border-left: 0;
  }

  .patient-letter-source-modal .patient-letter-content .tiptap-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0);
    color: rgba(36, 39, 46, .78);
    font-size: 14px;
    font-weight: 500;
    line-height: 16.1px;
  }

  .patient-letter-source-modal .patient-letter-content .tiptap-button.has-menu {
    width: 38px;
    gap: 0;
    padding: 8px 4px 8px 8px;
  }

  .patient-letter-source-modal .patient-letter-content .tiptap-button:disabled {
    color: rgba(40, 44, 51, .42);
    opacity: 1;
  }

  .patient-letter-source-modal .patient-letter-content .simple-editor-content {
    height: auto;
    min-height: 160px;
  }

  .patient-letter-source-modal .patient-letter-content .simple-editor {
    position: relative;
    height: auto;
    min-height: 160px;
    padding: 16px 20px 24px;
    color: oklch(0.141 0.005 285.823);
    font-family: "Work Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
  }

  .patient-letter-source-modal .patient-letter-content .simple-editor p {
    margin: 0;
    line-height: 22px;
  }

  .patient-letter-source-modal .patient-letter-content .simple-editor p + p {
    margin-top: 20px;
    line-height: 25.6px;
  }

  .patient-letter-source-modal .patient-letter-content .simple-editor span {
    color: #025ce2;
  }

  .patient-letter-source-modal .document-source-grid:has(.patient-letter-content.has-template-error) {
    height: auto;
    flex-basis: auto;
  }

  .patient-letter-source-modal .patient-letter-content.has-template-error .field-label,
  .patient-letter-source-modal .patient-letter-content.has-template-error .simple-editor {
    color: oklch(0.577 0.245 27.325);
  }

  .patient-letter-source-modal .patient-letter-template-error {
    display: block;
    height: 20px;
    margin-top: -5px;
    color: oklch(0.577 0.245 27.325);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-letter-source-modal.document-source-dialog-modal .modal-actions {
    height: 53px;
    flex: 0 0 53px;
    gap: 8px;
    margin: 0 -24px;
    padding: 16px 24px 0;
    border-top: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-letter-source-modal.document-source-dialog-modal .modal-actions button,
  .patient-letter-source-modal.document-source-dialog-modal .modal-actions .primary-button {
    width: auto;
    height: 36px;
    min-height: 36px;
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-letter-source-modal.document-source-dialog-modal .modal-actions button:not(.primary-button) {
    border: 1px solid oklch(0.92 0.004 286.32);
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
  }

  .patient-letter-source-modal.document-source-dialog-modal .modal-actions .primary-button {
    padding: 8px 12px;
    border: 0 solid oklch(0.92 0.004 286.32);
    background: #025ce2;
    color: oklch(0.97 0.014 254.604);
    box-shadow: none;
  }

  .patient-document-source-modal .document-source-generate-icon {
    margin-right: 8px;
  }

  .document-delete-alert-modal .modal-actions button,
  .document-delete-alert-modal .modal-actions button:not(.primary-button),
  .document-delete-alert-modal .modal-actions button.danger-button {
    display: flex;
    width: auto;
    height: 36px;
    min-height: 36px;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .document-delete-alert-modal .modal-actions button:not(.primary-button):first-child {
    border: 1px solid oklch(0.92 0.004 286.32);
    background: #fff;
    color: oklch(0.141 0.005 285.823);
    outline: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .document-delete-alert-modal .modal-actions button:not(.primary-button):first-child:focus-visible {
    border-color: #025ce2;
    box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
  }

  .document-delete-alert-modal .modal-actions button.danger-button {
    border: 0;
    background: oklch(0.577 0.245 27.325);
    color: #fff;
    box-shadow: none;
  }

  .patient-documents-card .patient-documents-action-row {
    width: 100%;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin: 0;
    padding: 16px 0;
  }

  .patient-documents-card .patient-documents-action-row .patient-document-action {
    width: 195.875px;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    gap: 8px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8.4px;
    background: #025ce2;
    color: oklch(0.97 0.014 254.604);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    box-shadow: none;
  }

  .patient-documents-card .dentalome-list-title {
    flex: 1 1 auto;
    margin: 0;
  }

  .patient-documents-card .dentalome-list-title h1 {
    margin: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
  }

  .patient-documents-card.patient-documents-facture .dentalome-list-title h1 {
    transform: scaleX(.9532);
    transform-origin: left center;
  }

  .patient-documents-card.patient-documents-ordonnance .dentalome-list-title h1 {
    transform: scaleX(.95756);
    transform-origin: left center;
  }

  .patient-documents-card.patient-documents-devis .dentalome-list-title h1 {
    transform: scaleX(.952674);
    transform-origin: left center;
  }

  .patient-documents-card.patient-documents-care_sheet .dentalome-list-title h1 {
    transform: scaleX(.947973);
    transform-origin: left center;
  }

  .patient-documents-card.patient-documents-certificate .dentalome-list-title h1,
  .patient-documents-card.patient-documents-letter .dentalome-list-title h1 {
    transform: scaleX(.959777);
    transform-origin: left center;
  }

  .patient-documents-card .dentalome-list-title p {
    margin: 4px 0 0;
    color: oklch(0.552 0.016 285.938);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .patient-documents-card .dentalome-patient-table-scroll {
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    overflow: hidden;
  }

  .patient-documents-card .dentalome-patient-table {
    width: 100%;
    min-width: 0;
    border: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-patient-table thead {
    height: 40px;
    background: oklab(0.519343 -0.0356103 -0.213735 / .1);
  }

  .patient-documents-card .dentalome-patient-table th {
    height: 40px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-patient-table td {
    height: 49px;
    padding: 8px;
    border: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-patient-table tbody tr {
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
    box-shadow: inset 0 1px 0 oklch(0.92 0.004 286.32);
  }

  .patient-documents-card .dentalome-patient-table tbody tr:last-child {
    border-bottom: 0;
  }

  .patient-documents-card .patient-document-table .dentalome-patient-empty-row {
    height: 96px;
    padding: 8px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-documents-card .patient-documents-facture-table th,
  .patient-documents-card .patient-documents-facture-table td {
    width: auto;
  }

  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(1),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(1) { width: 28.582377373418%; }
  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(2),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(2) { width: 15.183280590717%; }
  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(3),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(3) { width: 22.661194620253%; }
  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(4),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(4) { width: 12.499315726440%; }
  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(5),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(5) { width: 21.073831689172%; }

  .patient-documents-card.has-document-rows .patient-documents-ordonnance-table {
    table-layout: fixed;
  }

  .patient-documents-card.has-document-rows .patient-documents-ordonnance-table th:nth-child(1),
  .patient-documents-card.has-document-rows .patient-documents-ordonnance-table td:nth-child(1) { width: 17.6895307%; }
  .patient-documents-card.has-document-rows .patient-documents-ordonnance-table th:nth-child(2),
  .patient-documents-card.has-document-rows .patient-documents-ordonnance-table td:nth-child(2) { width: 19.4043321%; }
  .patient-documents-card.has-document-rows .patient-documents-ordonnance-table th:nth-child(3),
  .patient-documents-card.has-document-rows .patient-documents-ordonnance-table td:nth-child(3) { width: 28.0685921%; }
  .patient-documents-card.has-document-rows .patient-documents-ordonnance-table th:nth-child(4),
  .patient-documents-card.has-document-rows .patient-documents-ordonnance-table td:nth-child(4) { width: 34.8375451%; }

  .patient-documents-card .patient-document-table th,
  .patient-documents-card .patient-document-table td {
    width: auto;
  }

  .patient-documents-card .patient-document-table th:last-child,
  .patient-documents-card .patient-document-table td:last-child {
    text-align: left;
  }

  .patient-documents-card.has-document-rows .patient-document-table tbody tr:last-child td {
    height: 49px;
  }

  .patient-documents-card .dentalome-row-actions {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .patient-documents-card .dentalome-row-actions .plain-icon.small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 8.4px;
    color: oklch(0.141 0.005 285.823);
  }

  .patient-documents-card .dentalome-row-actions .plain-icon.small.danger {
    color: oklch(0.577 0.245 27.325);
  }

  .patient-documents-card .dentalome-row-actions .plain-icon.small svg {
    width: 16px;
    height: 16px;
  }

  .patient-documents-card.has-document-rows .patient-documents-certificate-table {
    table-layout: fixed;
  }

  .patient-documents-card.has-document-rows .patient-documents-certificate-table th:nth-child(1),
  .patient-documents-card.has-document-rows .patient-documents-certificate-table td:nth-child(1) { width: 22.5631769%; }
  .patient-documents-card.has-document-rows .patient-documents-certificate-table th:nth-child(2),
  .patient-documents-card.has-document-rows .patient-documents-certificate-table td:nth-child(2) { width: 13.5379061%; }
  .patient-documents-card.has-document-rows .patient-documents-certificate-table th:nth-child(3),
  .patient-documents-card.has-document-rows .patient-documents-certificate-table td:nth-child(3) { width: 33.032491%; }
  .patient-documents-card.has-document-rows .patient-documents-certificate-table th:nth-child(4),
  .patient-documents-card.has-document-rows .patient-documents-certificate-table td:nth-child(4) { width: 30.866426%; }

  .patient-documents-card.has-document-rows .patient-documents-certificate-table tbody td {
    height: 48.5px;
  }

  .patient-documents-card.has-document-rows .patient-documents-letter-table {
    table-layout: fixed;
  }

  .patient-documents-card.has-document-rows .patient-documents-letter-table th:nth-child(1),
  .patient-documents-card.has-document-rows .patient-documents-letter-table td:nth-child(1) { width: 26.0561554%; }
  .patient-documents-card.has-document-rows .patient-documents-letter-table th:nth-child(2),
  .patient-documents-card.has-document-rows .patient-documents-letter-table td:nth-child(2) { width: 38.1858266%; }
  .patient-documents-card.has-document-rows .patient-documents-letter-table th:nth-child(3),
  .patient-documents-card.has-document-rows .patient-documents-letter-table td:nth-child(3) { width: 35.7580180%; }

  .patient-documents-card.has-document-rows .patient-documents-letter-table tbody td {
    height: 48.5px;
  }

  .patient-documents-card .dentalome-table-footer {
    width: 100%;
    height: 57px;
    min-height: 57px;
    padding: 12px 16px;
    border-top: 1px solid oklch(0.92 0.004 286.32);
    color: oklch(0.552 0.016 285.938);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-pagination {
    height: 32px;
    gap: 4px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-pagination button {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: #fff;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-pagination button:disabled {
    color: oklch(0.704 0.04 256.788);
  }

  .patient-documents-card .dentalome-pagination > span {
    width: auto;
    min-width: 0;
    height: 20px;
    padding: 0 8px;
    border-radius: 0;
  }

  .simple-section.image-section {
    min-height: 0;
    padding: 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    box-shadow: none;
  }

  .simple-section.image-section .image-section-title {
    position: relative;
    min-height: 120px;
    margin: 0 0 24px;
  }

  .simple-section.image-section .image-section-title > div {
    width: 100%;
  }

  .simple-section.image-section .image-section-title h1 {
    margin: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
  }

  .simple-section.image-section .image-section-title p {
    margin: 4px 0 0;
    color: oklch(0.552 0.016 285.938);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .simple-section.image-section .image-import-button {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 190.921875px;
    min-width: 190.921875px;
    height: 36px;
    min-height: 36px;
    align-self: flex-end;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 8.4px;
    background: #025ce2;
    color: oklch(0.97 0.014 254.604);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    box-shadow: none;
  }

  .simple-section.image-section .image-table-shell {
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    overflow: hidden;
  }

  .simple-section.image-section .image-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    line-height: 20px;
  }

  .simple-section.image-section .image-table th,
  .simple-section.image-section .image-table td {
    height: 40px;
    padding: 0 8px;
    border: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    line-height: 20px;
    text-align: left;
  }

  .simple-section.image-section .image-table th {
    background: oklab(0.519343 -0.0356103 -0.213735 / .1);
    font-weight: 500;
  }

  .simple-section.image-section .image-table th:nth-child(1),
  .simple-section.image-section .image-table td:nth-child(1) { width: 21.2220794%; }
  .simple-section.image-section .image-table th:nth-child(2),
  .simple-section.image-section .image-table td:nth-child(2) { width: 53.7851068%; }
  .simple-section.image-section .image-table th:nth-child(3),
  .simple-section.image-section .image-table td:nth-child(3) {
    width: 24.9928138%;
    text-align: left;
  }

  .simple-section.image-section .image-table td.empty-table-cell {
    width: auto;
    height: 96px !important;
    padding: 8px !important;
    color: oklch(0.141 0.005 285.823) !important;
    font-size: 14px;
    font-weight: 400 !important;
    line-height: 20px;
    text-align: center !important;
  }

  .simple-section.image-section .image-table.has-images th:nth-child(1),
  .simple-section.image-section .image-table.has-images td:nth-child(1) { width: 25.576048259%; }
  .simple-section.image-section .image-table.has-images th:nth-child(2),
  .simple-section.image-section .image-table.has-images td:nth-child(2) { width: 46.2890625%; }
  .simple-section.image-section .image-table.has-images th:nth-child(3),
  .simple-section.image-section .image-table.has-images td:nth-child(3) { width: 28.134889241%; }

  .simple-section.image-section .image-table.has-images tbody td {
    height: 80px;
    padding: 8px;
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .simple-section.image-section .image-table.has-images .image-preview-link {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-weight: 400;
    line-height: 20px;
  }

  .simple-section.image-section .image-table.has-images .image-preview-link img,
  .simple-section.image-section .image-table.has-images .patient-image-thumbnail-fallback {
    width: 64px;
    min-width: 64px;
    max-width: 64px;
    height: 64px;
  }

  .simple-section.image-section .image-table.has-images .image-preview-link img {
    border: 0;
    border-radius: 8.4px;
    object-fit: cover;
  }

  .simple-section.image-section .image-table.has-images .patient-image-thumbnail-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .simple-section.image-section .image-table.has-images .patient-image-thumbnail-fallback svg {
    width: 24px;
    height: 24px;
  }

  .simple-section.image-section .image-table.has-images .row-actions {
    gap: 8px;
  }

  .simple-section.image-section .image-table.has-images .row-actions .plain-icon.small {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8.4px;
    background: transparent;
  }

  .simple-section.image-section .image-table.has-images .row-actions .plain-icon.small svg {
    width: 16px;
    height: 16px;
  }

  .simple-section.image-section .image-table.has-images .row-actions .plain-icon.small[title="Supprimer"] {
    color: oklch(0.577 0.245 27.325);
  }

  .patient-notes-card.dentalome-patient-list-card {
    min-height: 370px;
    padding: 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    background: oklch(1 0 0);
    box-shadow: none;
  }

  .patient-notes-card .patient-documents-title-row {
    position: relative;
    min-height: 120px;
    align-items: flex-start;
    margin: 0 0 24px;
  }

  .patient-notes-card .dentalome-list-title {
    width: 100%;
    flex: 0 0 100%;
    margin: 0;
  }

  .patient-notes-card .dentalome-list-title h1 {
    margin: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
  }

  .patient-notes-card .dentalome-list-title p {
    margin: 4px 0 0;
    color: oklch(0.552 0.016 285.938);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .patient-notes-card .patient-document-action {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 171.234375px;
    min-width: 171.234375px;
    height: 36px;
    min-height: 36px;
    align-self: flex-end;
    gap: 8px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8.4px;
    background: #025ce2;
    color: oklch(0.97 0.014 254.604);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    box-shadow: none;
  }

  .patient-notes-card .patient-notes-empty-card {
    width: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 32px;
    border: 1px dashed oklab(0.519343 -0.0356103 -0.213735 / .15);
    border-radius: 14.4px;
    background: oklab(0.967 0.000282 -0.000959 / .3);
    color: oklch(0.552 0.016 285.938);
    text-align: center;
  }

  .patient-notes-card .patient-notes-empty-card .patient-notes-empty-title {
    margin: 0;
    color: oklch(0.552 0.016 285.938);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
  }

  .patient-notes-card .patient-notes-empty-card > p:not(.patient-notes-empty-title) {
    margin: 4px 0 0;
    color: oklch(0.552 0.016 285.938);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-notes-card .patient-note-empty-button {
    width: 173.234375px;
    min-width: 173.234375px;
    height: 36px;
    min-height: 36px;
    gap: 8px;
    margin: 16px 0 0;
    padding: 8px 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: #fff;
    color: oklch(0.552 0.016 285.938);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .patient-notes-card.dentalome-patient-list-card:has(.patient-notes-grid) {
    min-height: 0;
  }

  .patient-notes-card .patient-note-card {
    min-height: 114px;
    padding: 0;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    background: oklch(1 0 0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
    color: oklch(0.141 0.005 285.823);
  }

  .patient-notes-card .patient-note-card.recently-restored {
    border-color: oklab(0.519343 -0.0356103 -0.213735 / .2);
    background: oklab(0.519343 -0.0356103 -0.213735 / .02);
  }

  .patient-notes-card .patient-note-card-inner {
    min-height: 112px;
    padding: 16px;
  }

  .patient-notes-card .patient-note-card-header {
    height: 44px;
    margin-bottom: 12px;
    gap: 12px;
  }

  .patient-notes-card .patient-note-card-header > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  .patient-notes-card .patient-note-title-line {
    height: 20px;
    gap: 8px;
  }

  .patient-notes-card .patient-note-title-line h3 {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 20px;
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
  }

  .patient-notes-card .patient-note-meta {
    height: 20px;
    gap: 6px;
    margin-top: 4px;
    color: oklch(0.552 0.016 285.938);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-notes-card .patient-note-meta svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
  }

  .patient-notes-card .patient-note-actions {
    width: 100px;
    height: 32px;
    gap: 2px;
  }

  .patient-notes-card .patient-note-actions .plain-icon.small {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8.4px;
    background: transparent;
    color: oklch(0.552 0.016 285.938);
  }

  .patient-notes-card .patient-note-actions .plain-icon.small svg {
    width: 16px;
    height: 16px;
  }

  .patient-notes-card .patient-note-html {
    max-height: 96px;
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .patient-notes-card .patient-notes-archive-section {
    border: 1px dashed oklab(0.967 0.000282 -0.000959 / .6);
    border-radius: 10.4px;
    background: oklab(0.967 0.000282 -0.000959 / .2);
  }

  .patient-notes-card .patient-notes-archive-toggle {
    height: 44px;
    min-height: 44px;
    gap: 8px;
    padding: 12px;
    border-radius: 8.4px;
    color: oklch(0.552 0.016 285.938);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-notes-card .patient-notes-archived-grid {
    padding: 0;
  }

  .patient-notes-card .patient-note-card.archived {
    border-color: oklch(0.967 0.001 286.375);
    opacity: .75;
  }

  .patient-notes-card .patient-note-card.archived .patient-note-card-header {
    height: 74px;
  }

  .patient-notes-card .patient-note-card.archived .patient-note-title-line {
    height: 50px;
  }

  .patient-notes-card .patient-note-card.archived .patient-note-title-line h3 {
    flex: 0 0 100%;
  }

  .patient-notes-card .patient-note-card.archived .patient-note-archive-badge {
    height: 22px;
    gap: 4px;
    padding: 2px 8px;
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    color: oklch(0.552 0.016 285.938);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
  }

  .patient-note-source-modal.note-form-modal {
    position: relative;
    width: 768px;
    height: 482.5px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 24px 16px;
    overflow: visible;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 10.4px;
    background: oklch(1 0 0);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1),
      0 4px 6px -4px rgba(0, 0, 0, .1);
  }

  .patient-note-source-modal.note-form-modal .modal-head {
    width: calc(100% + 48px);
    height: 35px;
    flex: 0 0 35px;
    margin: 0 -24px;
    padding: 0 24px 16px;
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-note-source-modal.note-form-modal .modal-head h2 {
    width: 100%;
    color: oklch(0.141 0.005 285.823);
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
    text-align: left;
  }

  .patient-note-source-modal.note-form-modal .modal-head > button,
  .patient-note-source-modal.note-form-modal > .modal-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    display: block;
    padding: 0;
    border-width: 0;
    border-style: solid;
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 2px;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    gap: normal;
    opacity: .7;
  }

  .patient-note-source-modal .patient-note-source-form {
    height: 389.5px;
    min-height: 389.5px;
    display: flex;
    flex: 0 0 389.5px;
    flex-direction: column;
    gap: 16px;
  }

  .patient-note-source-modal .note-title-field {
    height: 67.25px;
    display: flex;
    flex: 0 0 67.25px;
    flex-direction: column;
    gap: 12px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 19.25px;
  }

  .patient-note-source-modal.note-form-modal:has(.note-title-field.has-error) {
    height: 508.5px;
  }

  .patient-note-source-modal:has(.note-title-field.has-error) .patient-note-source-form {
    height: 415.5px;
    min-height: 415.5px;
    flex-basis: 415.5px;
  }

  .patient-note-source-modal .note-title-field.has-error {
    height: 93.25px;
    flex-basis: 93.25px;
    gap: 6px;
  }

  .patient-note-source-modal .note-title-field.has-error .field-label {
    margin-bottom: 6px;
  }

  .patient-note-source-modal .note-title-field.has-error input {
    color: oklch(0.577 0.245 27.325);
  }

  .patient-note-source-modal .patient-note-title-error {
    width: 100%;
    height: 20px;
    margin: 0;
    color: oklch(0.577 0.245 27.325);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-note-source-modal .field-label {
    height: 19.25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 19.25px;
  }

  .patient-note-source-modal .note-title-field input {
    width: 100%;
    height: 36px;
    min-height: 36px;
    padding: 4px 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: #fff;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .patient-note-source-modal .note-title-field input:focus {
    border-color: #025ce2;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(2, 92, 226, .5),
      0 1px 2px rgba(0, 0, 0, .05);
  }

  .patient-note-source-modal .note-rich-editor-field {
    height: 237.25px;
    min-height: 237.25px;
    display: flex;
    flex: 0 0 237.25px;
    flex-direction: column;
    gap: 12px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 19.25px;
  }

  .patient-note-source-modal .note-rich-editor-field .simple-editor-wrapper {
    width: 100%;
    height: 206px;
    min-height: 206px;
    max-height: 206px;
    border: 1px solid rgba(37, 39, 45, .1);
    border-radius: 12px;
  }

  .patient-note-source-modal .note-rich-editor-field .tiptap-toolbar {
    width: 100%;
    height: 44px;
    min-height: 44px;
    gap: 4px;
    padding: 0 67px;
    color: rgba(36, 39, 46, .78);
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
  }

  .patient-note-source-modal .note-rich-editor-field .tiptap-toolbar-group {
    gap: 2px;
  }

  .patient-note-source-modal .note-rich-editor-field .tiptap-toolbar-group + .tiptap-toolbar-group {
    margin-left: 5px;
    padding-left: 0;
    border-left: 0;
  }

  .patient-note-source-modal .note-rich-editor-field .tiptap-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px;
    border-radius: 12px;
    background-color: rgb(255 255 255 / 0%);
    color: rgba(36, 39, 46, .78);
    font-size: 14px;
    font-weight: 500;
    line-height: 16.1px;
  }

  .patient-note-source-modal .note-rich-editor-field .tiptap-button.has-menu {
    width: 38px;
    gap: 0;
    padding: 8px 4px 8px 8px;
  }

  .patient-note-source-modal .note-rich-editor-field .simple-editor-content,
  .patient-note-source-modal .note-rich-editor-field .simple-editor {
    height: 160px;
    min-height: 160px;
  }

  .patient-note-source-modal .note-rich-editor-field .simple-editor {
    padding: 16px 20px 24px;
    color: oklch(0.141 0.005 285.823);
    font-family: "Work Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
  }

  .patient-note-source-modal .note-rich-editor-field .tiptap-button:disabled {
    opacity: 1;
    background-color: rgb(255 255 255 / 0%);
    color: rgba(40, 44, 51, .42);
  }

  .patient-note-source-modal.note-form-modal .note-form-actions {
    height: 53px;
    min-height: 53px;
    flex: 0 0 53px;
    gap: 8px;
    margin: 0 -24px;
    padding: 16px 24px 0;
    border-top: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-note-source-modal.note-form-modal .note-form-actions button,
  .patient-note-source-modal.note-form-modal .note-form-actions .primary-button {
    width: auto;
    height: 36px;
    min-height: 36px;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-note-source-modal.note-form-modal .note-form-actions .primary-button {
    border: 0 solid oklch(0.92 0.004 286.32);
    background: #025ce2;
    color: oklch(0.97 0.014 254.604);
    box-shadow: none;
  }

  .patient-note-source-modal.note-form-modal .note-form-actions > button:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid oklch(0.92 0.004 286.32);
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
  }

  .patient-note-source-modal.note-form-modal .note-form-actions .primary-button:hover:not(:disabled) {
    background: oklab(0.519343 -0.0356103 -0.213735 / .9);
  }

  .patient-treatment-layout {
    width: 1191.359375px;
    min-width: 1191.359375px;
    grid-template-columns: 955.34375px 220.015625px;
    gap: 16px;
  }

  .act-status-card {
    width: 220.015625px;
    min-width: 220.015625px;
    height: 504px;
    min-height: 504px;
    padding: 28px;
  }

  .act-status-card .add-act-button {
    width: 162.015625px;
    min-width: 162.015625px;
    height: 36px;
    min-height: 36px;
    padding: 8px 12px;
    gap: 8px;
    border-radius: 8.4px;
    background: #025ce2;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card {
    height: 504px;
    min-height: 504px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    overflow: hidden;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-card-top {
    width: 100%;
    height: 53px;
    flex: 0 0 53px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin: 0 0 16px;
    padding: 0 0 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs {
    width: 273.78125px;
    height: 36px;
    min-height: 36px;
    flex: 0 0 auto;
    padding: 3px;
    border-radius: 8.4px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
    height: 27px;
    min-height: 27px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 8.4px;
    color: oklch(0.141 0.005 285.823);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button.active {
    border: 1px solid transparent;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button:focus-visible {
    border-color: #025ce2;
    outline: 1px solid #025ce2;
    outline-offset: 0;
    box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions {
    width: 500.078125px;
    height: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 0 0 auto;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials {
    width: 318.3828125px;
    height: 36px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 32px;
    flex: 0 0 318.3828125px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: .3px;
    text-align: left;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric span {
    color: #9ca3af;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric p,
  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric strong,
  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric b {
    margin: 0;
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric.green strong,
  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric.green b {
    color: #16a34a;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric.red strong,
  .odontogram-panel.dentalome-odontogram-card .treatment-financials .metric.red b {
    color: #ef4444;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions .patient-receipt-download-button {
    width: 157.6953125px;
    min-width: 157.6953125px;
    height: 32px;
    min-height: 32px;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row,
  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row.top,
  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row.bottom {
    width: 100%;
    height: 20px;
    min-height: 20px;
    flex: 0 0 20px;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .all-teeth-control {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .child-schema-inline {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > span {
    width: 32px;
    height: 18.4px;
    border: 1px solid transparent;
    background: oklch(0.92 0.004 286.32);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > input:checked + span {
    background: #025ce2;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > span::after {
    top: 1.2px;
    left: 1px;
    width: 16px;
    height: 16px;
    box-shadow: none;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > input:checked + span::after {
    transform: translateX(13.6px);
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram {
    width: 100%;
    height: 289px;
    min-height: 289px;
    flex: 0 0 289px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-row {
    width: 100%;
    height: 128px;
    min-height: 128px;
    flex: 0 0 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group {
    width: auto;
    min-width: 0;
    height: 128px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group.right {
    margin-right: 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group.left {
    margin-left: 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-midline {
    width: 1px;
    height: 104px;
    flex: 0 0 1px;
    align-self: center;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
    width: auto;
    min-width: 0;
    max-width: none;
    height: 128px;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin: 0;
    padding: 4px;
    border: 0;
    border-radius: 6.4px;
    background: transparent;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth strong,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower strong {
    flex: 0 0 16px;
    height: 16px;
    margin: 4px 0 0;
    color: #1e1e1e;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-art,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower .tooth-art {
    width: auto;
    height: 96px;
    min-height: 96px;
    flex: 0 0 96px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact.tooth-svg,
  .odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact-inner {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    display: block;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact.tooth-svg svg {
    width: auto !important;
    height: auto !important;
    max-width: none;
    max-height: none;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-divider {
    width: 100%;
    height: 1px;
    flex: 0 0 1px;
    margin: 0;
    border: 0;
    background: #e4e7ec;
  }

  .patient-operations-card {
    width: 976px;
    margin: 40px 0 0;
    padding: 12px;
    border-radius: 12px;
  }

  .patient-document-actions {
    width: 950px;
    height: 36px;
    gap: 8px;
    margin: 0 0 16px;
  }

  .patient-document-actions button {
    display: inline-flex;
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-height: 36px;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-document-actions button:first-child {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
  }

  .patient-document-actions button:last-child {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
  }

  .patient-document-actions button {
    display: inline-flex;
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-document-actions button:first-child {
    width: 132.75px;
    min-width: 132.75px;
    border: 1px solid rgba(60, 121, 212, .2);
    background: rgba(60, 121, 212, .1);
    color: #3c79d4;
  }

  .patient-document-actions button:last-child {
    width: 185.640625px;
    min-width: 185.640625px;
    border: 0;
    background: #025ce2;
    color: #fff;
  }

  .patient-document-actions.plan-treatment-document-actions button:first-child {
    border: 0;
    background: #025ce2;
    color: #fff;
  }

  .patient-documents-card .dentalome-row-actions .plain-icon.small:hover {
    background: oklch(0.967 0.001 286.375);
  }

  .dentalome-patient-header .patient-header-tabs a {
    padding: 12px;
  }

  .patient-operations-toolbar {
    width: 950px;
    height: 36px;
    margin: 0 0 16px;
  }

  .patient-operations-toolbar select {
    width: 240px;
    min-width: 240px;
    height: 36px;
    padding: 8px 12px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-operations-toolbar .appointment-source-combobox,
  .patient-operations-toolbar .combobox-trigger {
    width: 240px;
    min-width: 240px;
    height: 36px;
    min-height: 36px;
  }

  .patient-operations-toolbar .combobox-trigger {
    padding: 8px 12px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-operations-wrap {
    width: 950px;
    margin-top: 0;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .patient-operations-table {
    width: 1014.7734375px;
    min-width: 1014.7734375px;
    border: 0;
    border-radius: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    line-height: 20px;
  }

  .patient-operations-table thead {
    background: rgba(2, 92, 226, .1);
  }

  .patient-operations-table thead {
    background: rgba(2, 92, 226, .1);
  }

  .patient-operations-table th,
  .patient-operations-table td {
    height: 40px;
    padding: 8px;
    border: 0;
    color: oklch(0.141 0.005 285.823);
    background: transparent;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    vertical-align: middle;
    white-space: nowrap;
  }

  .patient-operations-table th {
    height: 40px;
    padding: 0 8px;
    font-weight: 500;
  }

  .patient-operations-table thead tr,
  .patient-operations-table tbody tr:not(:last-child) {
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-operations-table tbody tr:last-child {
    border-bottom: 0;
  }

  .patient-operations-table tbody tr {
    height: 49px;
  }

  .patient-operations-table th:first-child,
  .patient-operations-table td:first-child {
    width: 60px;
    padding-right: 0;
  }

  .patient-operations-table th:first-child {
    padding: 0 0 0 8px;
  }

  .patient-operations-table th:nth-child(2),
  .patient-operations-table td:nth-child(2) {
    width: 92.4px;
  }

  .patient-operations-table th:nth-child(3),
  .patient-operations-table td:nth-child(3) {
    width: 84.4px;
  }

  .patient-operations-table th:nth-child(4),
  .patient-operations-table td:nth-child(4) {
    width: 216.9px;
  }

  .patient-operations-table th:nth-child(5),
  .patient-operations-table td:nth-child(5) {
    width: 78.2px;
  }

  .patient-operations-table th:nth-child(6),
  .patient-operations-table td:nth-child(6) {
    width: 78.3px;
  }

  .patient-operations-table th:nth-child(7),
  .patient-operations-table td:nth-child(7) {
    width: 75.2px;
  }

  .patient-operations-table th:nth-child(8),
  .patient-operations-table td:nth-child(8) {
    width: 101.4px;
  }

  .patient-operations-table th:nth-child(9),
  .patient-operations-table td:nth-child(9) {
    width: 228px;
  }

  .patient-operations-table input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    flex: 0 0 16px;
    margin: 0;
  }

  .patient-operations-table .operation-select-cell {
    width: 52px;
    min-width: 52px;
    height: 32px;
    gap: 4px;
  }

  .patient-operations-table .operation-select-cell .session-shortcut {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
  }

  .patient-operations-table .operation-name,
  .patient-operations-table .money-cell,
  .patient-operations-table .green-text,
  .patient-operations-table .red-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
  }

  .patient-operations-table .green-text,
  .patient-operations-table .red-text {
    font-weight: 500;
    white-space: nowrap;
  }

  .patient-operations-table .operation-status-trigger {
    min-height: 32px;
    padding: 0 8px;
    border-radius: 8.4px;
  }

  .patient-operations-table .operation-status-badge,
  .patient-operations-table .dentalome-status {
    min-width: 0;
    min-height: 22px;
    height: 22px;
    gap: 4px;
    padding: 2px 8px;
    border: 1px solid rgba(60, 121, 212, .2);
    border-radius: 999px;
    background: rgba(60, 121, 212, .1);
    color: #025ce2;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    white-space: nowrap;
  }

  .patient-operations-table .teeth-pills {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .patient-operations-table .teeth-pills b {
    width: auto;
    min-width: 0;
    height: 22px;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border: 0;
    border-radius: 999px;
    background: #025ce2;
    color: oklch(0.97 0.014 254.604);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    white-space: nowrap;
  }

  .patient-operations-table .dentalome-actions {
    gap: 4px;
  }

  .patient-operations-table .dentalome-actions .plain-icon.small {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 8.4px;
    color: oklch(0.141 0.005 285.823);
  }

  .patient-operations-table .dentalome-actions .plain-icon.small.danger,
  .patient-operations-table .dentalome-actions .plain-icon.small[title="Supprimer"] {
    color: oklch(0.577 0.245 27.325);
  }

  .patient-operations-table .row-actions button svg,
  .patient-operations-table .plain-icon svg,
  .patient-operations-table .dentalome-inline-svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
  }

  .agenda-toolbar .calendar-toggle,
  .agenda-toolbar .filter-button,
  .agenda-toolbar .dark-button {
    width: 32px;
    min-width: 32px;
    padding: 0;
  }

  .agenda-toolbar .muted-button {
    padding: 0 12px;
    font-size: 14px;
  }

  .agenda-toolbar .agenda-range {
    min-width: 101.38px;
    white-space: normal;
  }
}

.patient-payments-card .dentalome-row-actions .payment-receipt-button:hover,
.patient-payments-card .dentalome-row-actions .payment-receipt-button:active,
.patient-payments-card .dentalome-row-actions .payment-receipt-button.is-downloaded,
.patient-operations-table .payment-receipt-button:hover,
.patient-operations-table .payment-receipt-print-button:hover {
  background: oklch(0.967 0.001 286.375);
  color: oklch(0.21 0.006 285.885);
}

/* Dentalome uses the same navigation drawer at tablet and phone widths. */
.mobile-nav-backdrop {
  display: none;
}

@media (max-width: 900px) {
  .app-shell.mobile-nav-open .primary-nav,
  .app-shell.mobile-nav-open .app-body.patient-detail-mode .primary-nav,
  .app-shell.mobile-nav-open.sidebar-collapsed .primary-nav,
  .app-shell.mobile-nav-open.sidebar-collapsed .app-body.patient-detail-mode .primary-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 121;
    width: min(280px, calc(100vw - 48px));
    height: 100dvh;
    display: flex;
    padding: 0;
    border-right: 1px solid #e4e7ec;
    background: #fff;
    box-shadow: 18px 0 42px rgba(15, 23, 42, .18);
  }

  .app-shell.mobile-nav-open .primary-nav-brand {
    justify-content: flex-start;
    padding: 0 22px;
  }

  .app-shell.mobile-nav-open .primary-nav-brand .dentalome-logo-wordmark,
  .app-shell.mobile-nav-open .primary-nav span,
  .app-shell.mobile-nav-open .nav-section-label,
  .app-shell.mobile-nav-open .primary-nav-user,
  .app-shell.mobile-nav-open .primary-nav-user div,
  .app-shell.mobile-nav-open .primary-nav-user .nav-logout {
    display: flex;
  }

  .app-shell.mobile-nav-open .primary-nav-scroll {
    padding: 14px 8px 84px;
  }

  .app-shell.mobile-nav-open .primary-nav .primary-nav-link,
  .app-shell.mobile-nav-open .app-body.patient-detail-mode .primary-nav .primary-nav-link,
  .app-shell.mobile-nav-open.sidebar-collapsed .primary-nav .primary-nav-link,
  .app-shell.mobile-nav-open.sidebar-collapsed .app-body.patient-detail-mode .primary-nav .primary-nav-link {
    justify-content: flex-start;
    gap: 12px;
    height: 40px;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 10.4px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .app-shell.mobile-nav-open .primary-nav-user {
    width: 100%;
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: block;
    width: 100vw;
    height: 100dvh;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, .38);
  }
}

/* Dentalome removes the desktop rail on tablet and keeps the sm two-column
   dashboard summary until the 640px phone breakpoint. */
@media (max-width: 900px) {
  .app-shell,
  .app-shell.sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar,
  .app-shell.sidebar-collapsed .topbar {
    grid-column: 1;
    width: 100%;
  }

  .app-body.no-rail,
  .app-body.patient-detail-mode,
  .app-shell.sidebar-collapsed .app-body.no-rail,
  .app-shell.sidebar-collapsed .app-body.patient-detail-mode {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-body.no-rail .main,
  .app-body.patient-detail-mode .main {
    grid-column: 1;
  }

  .primary-nav,
  .app-body.patient-detail-mode .primary-nav,
  .app-shell.sidebar-collapsed .primary-nav,
  .app-shell.sidebar-collapsed .app-body.patient-detail-mode .primary-nav {
    display: none;
  }

  .dashboard-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .topbar,
  .app-shell.sidebar-collapsed .topbar {
    grid-template-columns: 32px minmax(500px, 1fr) 80px;
    gap: 20px;
    padding: 0 24px 0 12px;
  }

  .topbar .global-search,
  .topbar .global-search input {
    height: 36px;
  }

  .user-zone {
    width: 80px;
    gap: 8px;
  }

  .topbar-action {
    width: 36px;
    height: 36px;
  }

  .dashboard-summary-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .global-search-shortcut {
    display: none;
  }

  .topbar,
  .app-shell.sidebar-collapsed .topbar {
    grid-template-columns: 32px minmax(0, calc(100vw - 184px)) 80px;
    gap: 20px;
    padding: 0 20px 0 12px;
  }

  .topbar .topbar-mobile-menu-toggle {
    width: 32px;
    height: 32px;
  }

  .topbar .global-search,
  .topbar .global-search input {
    width: 100%;
    min-width: 0;
    height: 36px;
  }

  .user-zone {
    width: 80px;
    gap: 8px;
    margin-left: -4px;
  }

  .topbar-action {
    width: 36px;
    height: 36px;
  }

  .dashboard-summary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-panel-head {
    align-items: center;
  }

  .dashboard-panel-head a {
    width: 86px;
  }
}

/* Dentalome keeps the 955px odontogram canvas at 1280px and clips the act rail
   at the workspace edge instead of shrinking either treatment surface. */
@media (min-width: 901px) and (max-width: 1359px) {
  .patient-treatment-layout {
    width: 976px;
    min-width: 976px;
    max-width: none;
    height: 504px;
    grid-template-columns: 955.34375px 220.015625px;
    gap: 16px;
  }

  .odontogram-column,
  .odontogram-panel.dentalome-odontogram-card {
    width: 955.34375px;
    min-width: 955.34375px;
    max-width: none;
  }

  .patient-treatment-layout .act-status-card,
  .odontogram-panel.dentalome-odontogram-card {
    height: 504px;
    min-height: 504px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-card-top {
    height: 53px;
    min-height: 53px;
    flex: 0 0 53px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions {
    width: 500.078125px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials {
    width: 318.3828125px;
    flex: 0 0 318.3828125px;
  }
}

/* Dentalome doctor parity: laboratory prosthesis create/edit dialog. */
.prothese-form-modal {
  position: relative;
  display: grid;
  width: min(1200px, calc(100vw - 32px));
  max-height: 90vh;
  gap: 16px;
  overflow-y: auto;
  padding: 24px 24px 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  scrollbar-width: none;
}

.prothese-form-modal::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.prothese-form-modal .modal-head {
  width: 100%;
  min-height: 56px;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  border: 0;
}

.prothese-form-modal .modal-head-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.prothese-form-modal .modal-head h2 {
  width: 100%;
  margin: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.prothese-form-modal .modal-head-subtitle {
  margin: 0;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.prothese-form-modal > .modal-close-button,
.prothese-form-modal .modal-head .modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  box-shadow: none;
  opacity: .7;
}

.prothese-form-modal .modal-close-button svg {
  width: 16px;
  height: 16px;
}

.prothese-form-modal .dentalome-prothese-form {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}

.prothese-source-grid {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.prothese-source-grid.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prothese-source-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prothese-source-main-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.prothese-source-left-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}

.prothese-source-jaw-column {
  min-width: 0;
  align-self: start;
  position: sticky;
  top: 0;
}

.prothese-source-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  color: oklch(0.141 0.005 285.823);
}

.prothese-date-grid .prothese-source-field {
  gap: 6px;
}

.prothese-source-label {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.prothese-source-label .required-mark {
  color: oklch(0.577 0.245 27.325);
  font-weight: 500;
}

.prothese-source-field-content {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
}

.prothese-source-error {
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.prothese-form-modal .prothese-source-field input:not([type="checkbox"]),
.prothese-form-modal .prothese-source-field textarea,
.prothese-form-modal .prothese-source-field .combobox-trigger,
.prothese-form-modal .prothese-teeth-trigger,
.prothese-form-modal .dentalome-date-input > button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.prothese-form-modal .prothese-source-field .combobox-trigger,
.prothese-form-modal .prothese-teeth-trigger,
.prothese-form-modal .dentalome-date-input > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  font-weight: 500;
  text-align: left;
}

.prothese-form-modal .prothese-source-field .combobox-trigger.placeholder,
.prothese-form-modal .prothese-teeth-trigger,
.prothese-form-modal .dentalome-date-input > button {
  color: oklch(0.552 0.016 285.938);
}

.prothese-form-modal .prothese-source-field[data-invalid="true"] .combobox-trigger,
.prothese-form-modal .prothese-source-field[data-invalid="true"] input {
  color: oklch(0.577 0.245 27.325);
}

.prothese-form-modal .prothese-source-field input:not([type="checkbox"]):focus,
.prothese-form-modal .prothese-source-field textarea:focus,
.prothese-form-modal .prothese-source-field .combobox-trigger:focus-visible,
.prothese-form-modal .prothese-teeth-trigger:focus-visible,
.prothese-form-modal .dentalome-date-input > button:focus-visible {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 2px rgba(2, 92, 226, .2);
}

.prothese-form-modal .prothese-source-field textarea {
  min-height: 90px;
  height: 90px;
  padding: 8px 12px;
  resize: none;
}

.prothese-form-modal .appointment-source-combobox,
.prothese-form-modal .dentalome-date-input,
.prothese-teeth-combobox {
  position: relative;
  width: 100%;
}

.prothese-form-modal .appointment-source-combobox-menu {
  z-index: 110;
}

.prothese-teeth-trigger svg,
.prothese-form-modal .combobox-trigger svg {
  flex: 0 0 auto;
  color: oklch(0.552 0.016 285.938);
}

.prothese-teeth-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 110;
  display: grid;
  width: 100%;
  max-height: 240px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  overflow-y: auto;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.prothese-teeth-menu > button {
  display: flex;
  min-width: 0;
  height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  padding: 6px 8px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
}

.prothese-teeth-menu > button:hover {
  background: oklch(0.97 0.002 286.35);
}

.prothese-tooth-checkbox,
.prothese-shade-checkbox {
  display: grid;
  width: 16px;
  min-width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid oklch(0.87 0.006 286.29);
  border-radius: 4px;
  background: #fff;
  color: #fff;
}

.prothese-tooth-checkbox.checked,
.prothese-shade-options label.selected .prothese-shade-checkbox {
  border-color: #025ce2;
  background: #025ce2;
}

.prothese-shade-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prothese-shade-options label {
  position: relative;
  display: flex;
  height: 34px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: transparent;
  padding: 6px 12px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.prothese-shade-options label:hover,
.prothese-shade-options label.selected {
  border-color: rgba(2, 92, 226, .45);
  background: rgba(2, 92, 226, .04);
}

.prothese-shade-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.prothese-jaw-card {
  position: relative;
  width: 100%;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: oklch(0.97 0.002 286.35 / .3);
  padding: 16px;
}

.prothese-jaw-chart {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  color: oklch(0.141 0.005 285.823);
}

.prothese-jaw-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.prothese-jaw-chart path[data-tooth],
.prothese-jaw-chart text {
  transition: fill 150ms ease, stroke 150ms ease, stroke-width 150ms ease, opacity 150ms ease;
}

.prothese-jaw-clear {
  position: absolute;
  top: 51%;
  left: 50%;
  z-index: 2;
  height: 40px;
  min-height: 40px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 999px;
  background: #fff;
  padding: 0 20px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.prothese-jaw-clear:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.prothese-form-modal .modal-actions.prothese-source-footer {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 -24px -16px;
  padding: 16px 24px 0;
  border-top: 1px solid oklch(0.92 0.004 286.32);
}

.prothese-form-modal .prothese-source-footer button,
.prothese-form-modal .prothese-source-footer .primary-button {
  display: inline-flex;
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: #fff;
  padding: 8px 16px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.prothese-form-modal .prothese-source-footer .prothese-pdf-button {
  width: 127px;
  background: oklch(0.967 0.001 286.375);
  padding: 8px 12px;
  color: oklch(0.21 0.006 285.885);
}

.prothese-form-modal .prothese-source-footer .primary-button {
  border-color: #025ce2;
  background: #025ce2;
  color: oklch(0.97 0.014 254.604);
}

.prothese-form-modal .prothese-source-footer button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

@media (max-width: 1023px) {
  .prothese-source-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .prothese-source-jaw-column {
    position: static;
  }
}

@media (max-width: 767px) {
  .modal-backdrop:has(.prothese-form-modal) {
    padding: 16px;
  }

  .prothese-form-modal {
    width: calc(100vw - 32px);
    max-height: 90dvh;
  }

  .prothese-source-grid.three-columns,
  .prothese-source-grid.two-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .prothese-pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .prothese-form-modal .modal-actions.prothese-source-footer {
    flex-wrap: wrap;
  }
}

/* Live Dentalome shell calibration: keep the border on the input itself so
   header geometry is identical at desktop, tablet, and mobile widths. */
.topbar .global-search {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.topbar .global-search input {
  width: 100%;
  height: 36px;
  padding: 4px 48px 4px 36px;
  border: 1px solid #e4e4e7;
  border-radius: 8.4px;
  background: #f9fafb;
  color: #18181b;
  font-weight: 400;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.topbar .global-search input::placeholder {
  color: oklch(0.552 0.016 285.938);
  font-weight: 400;
}

.topbar .global-search .global-search-icon {
  width: 16px;
  height: 16px;
  color: #71717a;
}

.topbar .global-search-shortcut,
.topbar .topbar-action {
  border-color: #e4e4e7;
  border-radius: 8.4px;
  background: transparent;
  color: #18181b;
}

.dashboard-summary-card.green .dashboard-summary-label::before {
  background: #10b981;
}

.dashboard-summary-card.blue .dashboard-summary-label::before {
  background: #3b82f6;
}

.dashboard-summary-card.violet .dashboard-summary-label::before {
  background: #8b5cf6;
}

@media (max-width: 639px) {
  .topbar .global-search input,
  .topbar .global-search input::placeholder {
    font-size: 16px;
    font-weight: 400;
  }
}

/* Tailwind v4 color and shadow values observed on the live doctor dashboard. */
.topbar {
  border-bottom-color: oklch(0.92 0.004 286.32);
}

.topbar .global-search input,
.topbar .global-search-shortcut,
.topbar .topbar-action {
  border-color: oklch(0.92 0.004 286.32);
}

.topbar .global-search input {
  display: inline-block;
  min-width: 0;
  background: oklch(0.985 0.002 247.839);
  color: oklch(0.141 0.005 285.823);
}

.topbar .global-search input:focus-visible {
  border-color: #025ce2;
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, #025ce2 50%, transparent);
}

.topbar .global-search .global-search-icon {
  top: 50%;
  bottom: auto;
  color: oklch(0.552 0.016 285.938);
  translate: 0 -50%;
}

.topbar .global-search-shortcut {
  top: 50%;
  bottom: auto;
  width: auto;
  min-width: 0;
  height: 20px;
  padding: 0 6px;
  justify-content: normal;
  border-radius: 4px;
  background: oklch(0.967 0.001 286.375);
  color: oklch(0.141 0.005 285.823);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 10px;
  font-weight: 500;
  line-height: 15px;
  transform: none;
  translate: 0 -50%;
}

.topbar .global-search-shortcut-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.dashboard-greeting-card {
  border-color: oklch(0.929 0.013 255.508 / .8);
  background: linear-gradient(to bottom right, #fff, oklch(0.984 0.003 247.858 / .8));
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}

@media (min-width: 901px) {
  .dashboard-greeting-card {
    width: 240.9609375px;
  }
}

.dashboard-greeting-card h1,
.dashboard-summary-value {
  color: oklch(0.279 0.041 260.031);
}

.dashboard-greeting-card h1 {
  white-space: normal;
  transform: none;
}

.dashboard-greeting-card p {
  color: oklch(0.446 0.043 257.281);
}

.dashboard-summary-card {
  border-color: oklch(0.882 0.059 254.128 / .6);
  background: linear-gradient(to bottom right, oklch(0.97 0.014 254.604 / .9), oklch(0.97 0.014 254.604 / .5));
  box-shadow: 0 0 0 1px oklch(0.932 0.032 255.585 / .8), 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}

.dashboard-summary-label {
  gap: 8px;
}

.dashboard-summary-card.green {
  border-color: oklch(0.905 0.093 164.15 / .6);
  background: linear-gradient(to bottom right, oklch(0.979 0.021 166.113 / .9), oklch(0.979 0.021 166.113 / .5));
  box-shadow: 0 0 0 1px oklch(0.95 0.052 163.051 / .8), 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}

.dashboard-summary-card.violet {
  border-color: oklch(0.894 0.057 293.283 / .6);
  background: linear-gradient(to bottom right, oklch(0.969 0.016 293.756 / .9), oklch(0.969 0.016 293.756 / .5));
  box-shadow: 0 0 0 1px oklch(0.943 0.029 294.588 / .8), 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}

.dashboard-panel {
  border-color: oklch(0.929 0.013 255.508);
  background: linear-gradient(to bottom right, #fff, oklch(0.984 0.003 247.858));
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}

.dashboard-panel-head h2,
.dashboard-appointment-row strong,
.dashboard-payment-row strong,
.dashboard-unpaid-name {
  color: oklch(0.208 0.042 265.755);
}

.dashboard-panel-head > div > p,
.dashboard-appointment-row small,
.dashboard-payment-row small,
.dashboard-unpaid-phone {
  color: oklch(0.554 0.046 257.417);
}

.dashboard-panel-head p strong {
  color: oklch(0.446 0.043 257.281);
}

.dashboard-panel-head a {
  color: #025ce2;
}

.dashboard-appointment-row,
.dashboard-payment-row,
.dashboard-unpaid-row {
  border-color: oklch(0.968 0.007 247.896);
}

.topbar .topbar-action svg {
  width: 20px;
  height: 20px;
}

.topbar-action.has-notification::after {
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border: 0;
}

@media (max-width: 639px) {
  .topbar .topbar-mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
  }
}

/* Dentalome's phone agenda compresses the week to seven usable day columns
   while preserving the same appointment creation and navigation controls. */
@media (max-width: 639px) {
  .agenda-workspace {
    box-sizing: border-box;
    height: calc(100dvh - 60px);
    background: #f6f7f8;
    padding: 24px 24px 8px;
  }

  .agenda-page-head {
    height: 76px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }

  .agenda-page-head > div {
    height: 28px;
    display: block;
  }

  .agenda-workspace .agenda-page-head h1 {
    font-size: 20px;
    line-height: 28px;
  }

  .agenda-page-head p {
    display: none;
  }

  .agenda-practitioner-combobox,
  .agenda-practitioner-select {
    width: 100%;
  }

  .agenda-practitioner-select {
    transform: none;
  }

  .agenda-card {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: calc(100dvh - 184px);
    min-height: 0;
    padding: 8px;
    gap: 0;
  }

  .agenda-card .agenda-side,
  .agenda-card.mobile-side-open .agenda-side {
    display: none;
  }

  .agenda-main-panel {
    width: 100%;
    height: 100%;
  }

  .agenda-toolbar {
    position: relative;
    display: block;
    flex: 0 0 72px;
    width: 100%;
    height: 72px;
    margin-bottom: 8px;
  }

  .agenda-toolbar-toggle-group {
    display: none;
  }

  .agenda-range {
    position: absolute;
    top: 0;
    right: 36px;
    left: 36px;
    z-index: 1;
    width: auto;
    height: 32px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #09090b;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
  }

  .agenda-range .agenda-range-desktop {
    display: none;
  }

  .agenda-range .agenda-range-mobile {
    display: block;
  }

  .agenda-arrows {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 72px;
    overflow: visible;
    padding: 0;
  }

  .agenda-arrows .agenda-mobile-add {
    position: absolute;
    top: 40px;
    left: 0;
    display: inline-flex;
    width: 92.023px;
    min-width: 92.023px;
    height: 32px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 8.4px;
    background: #025ce2;
    padding: 0 10px;
    color: oklch(0.97 0.014 254.604);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .agenda-arrows > .muted-button {
    position: absolute;
    top: 40px;
    left: 98.023px;
    width: 39.883px;
    min-width: 39.883px;
    gap: 6px;
    border-color: oklch(0.92 0.004 286.32);
    background: oklch(1 0 0);
    padding: 0 8px;
    color: oklch(0.141 0.005 285.823);
    font-size: 12px;
    line-height: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .agenda-arrows > .muted-button::after {
    content: none;
  }

  .agenda-toolbar .agenda-today-desktop,
  .agenda-toolbar .agenda-week-desktop {
    display: none;
  }

  .agenda-toolbar .agenda-today-mobile,
  .agenda-toolbar .agenda-week-mobile {
    display: inline;
  }

  .agenda-arrows > .agenda-filter-shell:not(.agenda-presence-shell):not(.agenda-cancelled-shell) {
    position: absolute;
    top: 40px;
    left: 292px;
  }

  .agenda-arrows > .agenda-filter-shell:not(.agenda-presence-shell):not(.agenda-cancelled-shell) .filter-button,
  .agenda-navigation-buttons .dark-button {
    border-color: oklch(0.92 0.004 286.32);
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .agenda-presence-shell,
  .agenda-cancelled-shell {
    display: none;
  }

  .agenda-toolbar .segmented {
    position: absolute;
    top: 40px;
    left: 143.906px;
    width: 135px;
    height: 32px;
    display: flex;
    gap: 0;
    padding: 2px;
    background: oklch(0.967 0.003 264.542);
  }

  .agenda-toolbar .segmented button {
    width: auto;
    min-width: 0;
    height: 28px;
    min-height: 28px;
    flex: 0 0 auto;
    padding: 8px;
    font-size: 12px;
    line-height: 16px;
    color: oklch(0.141 0.005 285.823);
    box-shadow: none;
  }

  .agenda-toolbar .segmented button:nth-child(2) {
    font-size: 12px;
  }

  .agenda-toolbar .segmented button:nth-child(2)::after {
    content: none;
  }

  .agenda-navigation-buttons {
    display: contents;
  }

  .agenda-navigation-buttons .dark-button {
    position: absolute;
    top: 0;
    z-index: 2;
  }

  .agenda-navigation-buttons .dark-button:first-child {
    left: 0;
  }

  .agenda-navigation-buttons .dark-button:last-child {
    right: 0;
  }

  .calendar-scroll-viewport {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    border-color: #e5e7eb;
    border-radius: 8px;
    scrollbar-gutter: auto;
    scrollbar-width: none;
  }

  .calendar-scroll-viewport::-webkit-scrollbar {
    display: none;
  }

  .week-grid {
    width: calc(100% - 1px);
    min-width: 0;
    overflow: visible;
    grid-template-columns: 40px repeat(var(--agenda-day-count, 7), minmax(0, 1fr));
    grid-template-rows: 46.5px 1311px;
  }

  .week-grid .day-column .appointment-block {
    right: 0.46875px;
  }

  .week-grid .appointment-block .appointment-block-copy .appointment-block-title {
    font-size: 11.2px;
    line-height: 16px;
  }

  .week-grid .appointment-block .appointment-block-category,
  .week-grid .appointment-block .appointment-block-time {
    display: none;
  }

  .day-head,
  .time-head {
    height: 46.5px;
  }

  .agenda-day-head-wrap {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 46px;
    place-self: stretch;
  }

  .agenda-day-head-label {
    box-sizing: border-box;
    left: 0;
    display: inline-block;
    width: 100%;
    min-width: 0;
    height: 44px;
    gap: 6px;
    padding: 4px 2px;
    font-size: 12px;
    line-height: 18px;
  }

  .day-head.today .agenda-day-head-label {
    height: 46px;
  }

  .day-head.today::after {
    content: none;
  }

  .day-head.today .agenda-day-head-content {
    height: 38px;
    border-bottom: 2px solid #025ce2;
  }

  .time-label {
    width: 40px;
    height: 81.9375px;
    font-size: 11px;
    line-height: 40px;
  }

  .day-agenda {
    min-width: 0;
  }

  .day-grid-column {
    height: 1311px;
    margin-left: 40px;
  }

  .day-time-slot {
    left: -40px;
    width: 40px;
    height: 81.9375px;
    font-size: 11px;
    line-height: 40px;
  }
}

/* Fresh doctor-reference calibration, 2026-07-19. */
.account-settings-nav nav > a {
  color: oklch(0.21 0.034 264.665);
  border: 0 solid oklch(0.92 0.004 286.32);
  text-align: start;
}

.account-settings-nav nav > a.active {
  background: oklab(0.519343 -0.0356103 -0.213735 / 0.1);
}

@media (max-width: 900px) {
  .topbar-mobile-menu-toggle {
    display: inline-flex;
    width: 32px;
    min-width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0 solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    gap: 8px;
  }

  .message-templates-workspace {
    padding: 24px 24px 32px;
  }

  .dentalome-notes-workspace {
    padding: 24px 24px 32px;
  }

  .notes-parity-layout {
    grid-template-columns: 288px minmax(0, 1fr) 224px;
  }

  .medications-workspace .medication-scope-tabs {
    height: 54px;
  }

  .medications-workspace .medication-scope-tabs button {
    height: 52px;
    white-space: normal;
  }

  .medications-workspace .medication-scope-tabs button:first-child {
    width: 84px;
  }

  .medications-workspace .medication-scope-tabs button:last-child {
    width: 130.75px;
  }
}

@media (min-width: 521px) and (max-width: 900px) {
  .modal-backdrop:has(> .document-source-actes-dialog-modal) {
    padding: 0;
  }

  .document-source-actes-dialog-modal {
    width: 100vw;
    max-width: 896px;
    grid-template-columns: minmax(0, 1fr);
  }

  .document-source-actes-dialog-modal .document-source-dialog-form {
    width: 100%;
    min-width: 0;
  }

  .patient-documents-card.dentalome-patient-list-card {
    min-height: 0;
    padding: 12px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    box-shadow: none;
  }

  .patient-documents-card .patient-documents-title-row {
    margin: 0 0 24px;
  }

  .patient-documents-card .dentalome-list-title {
    width: 100%;
    flex: 1 1 auto;
  }

  .patient-documents-card .dentalome-list-title h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
  }

  .patient-documents-card .dentalome-list-title p {
    margin: 4px 0 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .patient-documents-card .dentalome-patient-table-scroll {
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    overflow: hidden;
  }

  .patient-documents-card .dentalome-patient-table,
  .patient-documents-card .patient-documents-facture-table {
    width: 100%;
    min-width: 0;
    border: 0;
    table-layout: fixed;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-patient-table thead {
    height: 40px;
    background: oklab(0.519343 -0.0356103 -0.213735 / .1);
  }

  .patient-documents-card .dentalome-patient-table thead tr,
  .patient-documents-card .dentalome-patient-table tbody tr {
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .patient-documents-card .dentalome-patient-table tbody tr:last-child {
    border-bottom: 0;
  }

  .patient-documents-card .dentalome-patient-table th {
    height: 40px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-patient-table td {
    height: 49px;
    padding: 8px;
    border: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-documents-card.has-document-rows .patient-documents-facture-table tbody tr:last-child td {
    height: 48.5px;
  }

  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(1),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(1) { width: 28.582377373418%; }
  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(2),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(2) { width: 15.183280590717%; }
  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(3),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(3) { width: 22.661194620253%; }
  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(4),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(4) { width: 12.499315726440%; }
  .patient-documents-card.has-document-rows .patient-documents-facture-table th:nth-child(5),
  .patient-documents-card.has-document-rows .patient-documents-facture-table td:nth-child(5) { width: 21.073831689172%; }

  .patient-documents-card .dentalome-row-actions {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .patient-documents-card .dentalome-row-actions .plain-icon.small {
    display: flex;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .patient-documents-card .dentalome-table-footer {
    width: 100%;
    height: 57px;
    min-height: 57px;
    padding: 12px 16px;
    border-top: 1px solid oklch(0.92 0.004 286.32);
    color: oklch(0.552 0.016 285.938);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-pagination {
    height: 32px;
    gap: 4px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-pagination button {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: #fff;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-documents-card .dentalome-pagination button:disabled {
    color: oklch(0.704 0.04 256.788);
  }

  .patient-documents-card .dentalome-pagination > span {
    width: auto;
    min-width: 0;
    height: 20px;
    padding: 0 8px;
    border-radius: 0;
  }

  .dentalome-patient-header .patient-header-tabs a.active {
    border-bottom-color: #025ce2;
    background: #fff;
    color: oklch(0.141 0.005 285.823);
  }
}

@media (max-width: 520px) {
  .dentalome-notes-workspace {
    padding-top: 24px;
  }

  .dentalome-notes-workspace .page-header {
    height: 96px;
  }

  .notes-parity-layout {
    grid-template-columns: 288px 592px 224px;
  }

  .password-settings-panel .account-breadcrumb {
    flex-wrap: nowrap;
    margin-bottom: 64px;
    white-space: nowrap;
  }

  .password-settings-panel .password-field {
    width: 60px;
  }

  .password-settings-panel .password-field:first-child input {
    width: 60px;
  }

  .password-settings-panel .password-field:nth-child(2) input {
    width: 100px;
  }

  .password-settings-panel .password-settings-form input {
    font-size: 16px;
    line-height: 24px;
  }

  .password-settings-panel .password-check-row {
    height: auto;
    min-height: 20px;
    align-items: center;
  }

  .password-settings-panel .password-check-icon {
    min-width: 0;
    flex: 0 1 20px;
  }
}

/* Dentalome keeps the account shell horizontally constrained on tablet/mobile. */
@media (max-width: 900px) {
  .dentalome-settings-workspace {
    height: calc(100vh - 60px);
    min-height: 0;
    padding: 24px 24px 8px;
    overflow-y: auto;
    background: #f6f7f8;
  }

  .dentalome-settings-workspace .dentalome-settings-card {
    display: flex;
    width: 100%;
    height: calc(100vh - 92px);
    min-height: 0;
    grid-template-columns: none;
    align-items: stretch;
    gap: 24px;
    padding: 0 16px;
    overflow: visible;
  }

  .dentalome-settings-workspace .account-settings-nav {
    width: 224px;
    height: 100%;
    min-height: 0;
    flex: 0 0 224px;
    padding: 20px 16px 20px 0;
    border-right: 1px solid #e4e4e7;
    border-bottom: 0;
  }

  .dentalome-settings-workspace .account-settings-nav nav {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 12px;
  }

  .dentalome-settings-workspace .account-settings-nav nav > a {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }

  .dentalome-settings-workspace .account-settings-content {
    width: auto;
    height: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 0%;
    padding: 20px 0;
  }

  .dentalome-settings-workspace .account-settings-panel {
    min-height: 0;
  }

  .dentalome-settings-workspace .account-profile-fields-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .dentalome-settings-workspace .account-profile-heading-row {
    height: 40px;
    min-height: 40px;
    align-items: flex-start;
    flex-wrap: nowrap;
  }

  .dentalome-settings-workspace .account-profile-heading-row .account-breadcrumb {
    height: 40px;
    min-height: 40px;
    flex-wrap: nowrap;
    margin: 0;
    white-space: nowrap;
  }

  .dentalome-settings-workspace .account-avatar-large {
    width: 100%;
    max-width: 128px;
    height: 128px;
    margin: 24px 0 30px;
  }

  .dentalome-settings-workspace .account-avatar-trigger,
  .dentalome-settings-workspace .account-avatar-empty,
  .dentalome-settings-workspace .account-avatar-large img {
    width: 100%;
    max-width: 128px;
    height: 128px;
  }

  .dentalome-settings-workspace .account-profile-fields-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    row-gap: 24px;
  }

  .dentalome-settings-workspace .account-profile-form input,
  .dentalome-settings-workspace .account-profile-form textarea {
    font-size: 16px;
    line-height: 24px;
  }

  .dentalome-settings-workspace .account-profile-form .account-phone-field {
    width: 87px;
  }

  .dentalome-settings-workspace .account-profile-form .patient-source-phone-input {
    width: 87px;
    grid-template-columns: 61px 26px;
  }
}

/* Dentalome tablet contract: retain the compact two-row agenda and the wide
   treatment canvas while the surrounding workspace remains 768px wide. */
@media (min-width: 640px) and (max-width: 900px) {
  .agenda-workspace {
    box-sizing: border-box;
    height: calc(100dvh - 60px);
    min-height: 0;
    padding: 24px 24px 8px;
    overflow-y: auto;
    background: #f6f7f8;
  }

  .agenda-page-head {
    width: 100%;
    height: 58px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
  }

  .agenda-page-head > div {
    height: 58px;
    display: grid;
    gap: 2px;
  }

  .agenda-page-head p {
    display: block;
  }

  .agenda-practitioner-combobox,
  .agenda-practitioner-select {
    width: 256px;
  }

  .agenda-practitioner-combobox {
    height: 36px;
    flex: 0 0 36px;
    transform: translateY(11px);
  }

  .agenda-card {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: calc(100dvh - 166px);
    min-height: 0;
    padding: 16px;
    gap: 0;
  }

  .agenda-card .agenda-side,
  .agenda-card.mobile-side-open .agenda-side {
    display: none;
  }

  .agenda-main-panel {
    width: 100%;
    height: 100%;
  }

  .agenda-toolbar {
    position: relative;
    display: block;
    width: 100%;
    height: 72px;
    flex: 0 0 72px;
    margin-bottom: 8px;
  }

  .agenda-toolbar-toggle-group {
    display: none;
  }

  .agenda-range {
    position: absolute;
    top: 0;
    right: 36px;
    left: 36px;
    z-index: 1;
    width: auto;
    height: 32px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #09090b;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
  }

  .agenda-range .agenda-range-desktop {
    display: none;
  }

  .agenda-range .agenda-range-mobile {
    display: block;
  }

  .agenda-arrows {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 72px;
    overflow: visible;
    padding: 0;
  }

  .agenda-arrows .agenda-mobile-add {
    position: absolute;
    top: 40px;
    left: 0;
    display: inline-flex;
    width: 92.023px;
    min-width: 92.023px;
    height: 32px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 8.4px;
    background: #025ce2;
    padding: 0 10px;
    color: oklch(0.97 0.014 254.604);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .agenda-arrows > .muted-button {
    position: absolute;
    top: 40px;
    left: 98.023px;
    width: 39.883px;
    min-width: 39.883px;
    height: 32px;
    gap: 6px;
    border-color: oklch(0.92 0.004 286.32);
    background: #fff;
    padding: 0 8px;
    color: oklch(0.141 0.005 285.823);
    font-size: 12px;
    line-height: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .agenda-arrows > .muted-button::after {
    content: none;
  }

  .agenda-toolbar .agenda-today-desktop,
  .agenda-toolbar .agenda-week-desktop {
    display: none;
  }

  .agenda-toolbar .agenda-today-mobile,
  .agenda-toolbar .agenda-week-mobile {
    display: inline;
  }

  .agenda-presence-shell,
  .agenda-cancelled-shell {
    display: none;
  }

  .agenda-arrows > .agenda-filter-shell:not(.agenda-presence-shell):not(.agenda-cancelled-shell) {
    position: absolute;
    top: 40px;
    right: 0;
    left: auto;
  }

  .agenda-arrows > .agenda-filter-shell:not(.agenda-presence-shell):not(.agenda-cancelled-shell) .filter-button,
  .agenda-navigation-buttons .dark-button {
    border-color: oklch(0.92 0.004 286.32);
    background: #fff;
    color: oklch(0.141 0.005 285.823);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .agenda-toolbar .segmented {
    position: absolute;
    top: 40px;
    left: 143.906px;
    width: 135px;
    height: 32px;
    display: flex;
    gap: 0;
    padding: 2px;
    background: oklch(0.967 0.003 264.542);
  }

  .agenda-toolbar .segmented button {
    width: auto;
    min-width: 0;
    height: 28px;
    min-height: 28px;
    flex: 0 0 auto;
    padding: 8px;
    color: oklch(0.141 0.005 285.823);
    font-size: 12px;
    line-height: 16px;
    box-shadow: none;
  }

  .agenda-toolbar .segmented button:nth-child(2) {
    font-size: 12px;
  }

  .agenda-toolbar .segmented button:nth-child(2)::after {
    content: none;
  }

  .agenda-navigation-buttons {
    display: contents;
  }

  .agenda-navigation-buttons .dark-button {
    position: absolute;
    top: 0;
    z-index: 2;
  }

  .agenda-navigation-buttons .dark-button:first-child {
    left: 0;
  }

  .agenda-navigation-buttons .dark-button:last-child {
    right: 0;
  }

  .calendar-scroll-viewport {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    border-color: #e5e7eb;
    border-radius: 8px;
    scrollbar-gutter: auto;
    scrollbar-width: none;
  }

  .calendar-scroll-viewport::-webkit-scrollbar {
    display: none;
  }

  .week-grid {
    width: calc(100% - 1px);
    min-width: 0;
    overflow: visible;
    grid-template-columns: 48px repeat(var(--agenda-day-count, 7), minmax(0, 1fr));
    grid-template-rows: 38.5px 1568px;
  }

  .week-grid .day-column .appointment-block {
    right: 1.75px;
  }

  .day-head,
  .time-head {
    height: 38.5px;
  }

  .agenda-day-head-label {
    display: inline-block;
    width: 100%;
    min-width: 0;
    height: 38px;
    gap: 6px;
    padding: 0;
  }

  .time-label {
    width: 48px;
    height: 98px;
    font-size: 14px;
    line-height: 48px;
  }

  .day-grid-column {
    height: 1568px;
    margin-left: 48px;
  }

  .day-time-slot {
    left: -48px;
    width: 48px;
    height: 98px;
    font-size: 14px;
    line-height: 48px;
  }

  .patient-workspace {
    overflow-x: hidden;
    background: #f6f7f8;
    color: oklch(0.141 0.005 285.823);
  }

  .patient-header.dentalome-patient-header,
  .odontogram-panel.dentalome-odontogram-card,
  .patient-treatment-layout .act-status-card,
  .patient-operations-card {
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
    box-shadow: none;
  }

  .patient-treatment-layout {
    width: 1191.359375px;
    min-width: 1191.359375px;
    max-width: none;
    height: 504px;
    grid-template-columns: 955.34375px 220.015625px;
    gap: 16px;
  }

  .odontogram-column {
    width: 955.34375px;
    min-width: 955.34375px;
    max-width: none;
  }

  .patient-treatment-layout .act-status-card {
    width: 220.015625px;
    min-width: 220.015625px;
    max-width: none;
    height: 504px;
    min-height: 504px;
    padding: 28px;
  }

  .odontogram-panel.dentalome-odontogram-card {
    width: 955.34375px;
    min-width: 955.34375px;
    max-width: none;
    height: 504px;
    min-height: 504px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    overflow: hidden;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-card-top {
    width: 100%;
    height: 53px;
    min-height: 53px;
    flex: 0 0 53px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin: 0 0 16px;
    padding: 0 0 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs {
    width: 273.78125px;
    height: 36px;
    min-height: 36px;
    flex: 0 0 auto;
    padding: 3px;
    border-radius: 8.4px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
    height: 27px;
    min-height: 27px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 6.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions {
    width: 500.078125px;
    height: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 0 0 auto;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-financials {
    width: 318.3828125px;
    height: 36px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 32px;
    flex: 0 0 318.3828125px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions .patient-receipt-download-button {
    width: 157.6953125px;
    min-width: 157.6953125px;
    height: 32px;
    min-height: 32px;
    gap: 6px;
    padding: 0 10px;
    border-radius: 6.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row,
  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row.top,
  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row.bottom {
    width: 100%;
    height: 20px;
    min-height: 20px;
    flex: 0 0 20px;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .all-teeth-control {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .child-schema-inline {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > span {
    width: 32px;
    height: 18.4px;
    border: 1px solid transparent;
    background: oklch(0.92 0.004 286.32);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > input:checked + span {
    background: #025ce2;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > span::after {
    top: 1.2px;
    left: 1px;
    width: 16px;
    height: 16px;
    box-shadow: none;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-control-row .switch > input:checked + span::after {
    transform: translateX(13.6px);
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram {
    width: 100%;
    min-width: 0;
    height: 289px;
    min-height: 289px;
    max-width: none;
    flex: 0 0 289px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-row {
    width: 100%;
    min-width: 0;
    height: 128px;
    min-height: 128px;
    flex: 0 0 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group,
  .odontogram-panel.dentalome-odontogram-card .odontogram.child .tooth-group {
    width: auto;
    min-width: 0;
    height: 128px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group.right {
    margin-right: 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-group.left {
    margin-left: 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-midline {
    width: 1px;
    height: 104px;
    flex: 0 0 1px;
    align-self: center;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
    width: auto;
    min-width: 0;
    max-width: none;
    height: 128px;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin: 0;
    padding: 4px;
    border: 0;
    border-radius: 6.4px;
    background: transparent;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth strong,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower strong {
    flex: 0 0 16px;
    height: 16px;
    margin: 4px 0 0;
    color: #1e1e1e;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-art,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower .tooth-art {
    width: auto;
    height: 96px;
    min-height: 96px;
    flex: 0 0 96px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact.tooth-svg,
  .odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact-inner {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    display: block;
    overflow: visible;
  }

  .odontogram-panel.dentalome-odontogram-card .dentalome-tooth-exact.tooth-svg svg {
    width: auto !important;
    height: auto !important;
    max-width: none;
    max-height: none;
  }

  .odontogram-panel.dentalome-odontogram-card .odontogram-divider {
    width: 100%;
    height: 1px;
    flex: 0 0 1px;
    margin: 0;
    border: 0;
    background: #e4e7ec;
  }

  .patient-operations-card {
    box-sizing: border-box;
    width: 100%;
    margin: 40px 0 0;
    padding: 12px;
    border-radius: 14.4px;
  }

  .patient-document-actions {
    width: 100%;
    height: 36px;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 16px;
  }

  .patient-document-actions button {
    display: inline-flex;
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-height: 36px;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-document-actions button:first-child {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    border: 1px solid rgba(60, 121, 212, .2);
    background: rgba(60, 121, 212, .1);
    color: #3c79d4;
  }

  .patient-document-actions button:last-child {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    border: 0;
    background: #025ce2;
    color: #fff;
  }

  .patient-document-actions.plan-treatment-document-actions button:first-child {
    border: 0;
    background: #025ce2;
    color: #fff;
  }

  .patient-operations-toolbar {
    width: 100%;
    height: 36px;
    margin: 0 0 16px;
  }

  .patient-operations-toolbar .appointment-source-combobox,
  .patient-operations-toolbar .combobox-trigger {
    width: 240px;
    min-width: 240px;
    height: 36px;
    min-height: 36px;
  }

  .patient-operations-toolbar .combobox-trigger {
    gap: 8px;
    padding: 8px 12px;
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-operations-wrap {
    width: 100%;
    margin-top: 0;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .patient-operations-table {
    width: 1014.7734375px;
    min-width: 1014.7734375px;
    border: 0;
    border-radius: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    line-height: 20px;
  }

  .patient-operations-table thead {
    background: oklab(0.519343 -0.0356103 -0.213735 / .1);
  }

  .patient-operations-table thead tr {
    border-bottom: 0;
  }

  .patient-operations-table th,
  .patient-operations-table td {
    height: 40px;
    padding: 8px;
    color: oklch(0.141 0.005 285.823);
    background: transparent;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    vertical-align: middle;
  }

  .patient-operations-table th {
    height: 40px;
    border: 0;
    font-weight: 500;
  }

  .patient-operations-table th:first-child,
  .patient-operations-table td:first-child {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    padding-right: 0;
  }

  .patient-operations-table th:nth-child(2),
  .patient-operations-table td:nth-child(2) {
    width: 92.359375px;
  }

  .patient-operations-table th:nth-child(3),
  .patient-operations-table td:nth-child(3) {
    width: 84.4140625px;
  }

  .patient-operations-table th:nth-child(4),
  .patient-operations-table td:nth-child(4) {
    width: 216.875px;
  }

  .patient-operations-table th:nth-child(5),
  .patient-operations-table td:nth-child(5) {
    width: 78.203125px;
  }

  .patient-operations-table th:nth-child(6),
  .patient-operations-table td:nth-child(6) {
    width: 78.296875px;
  }

  .patient-operations-table th:nth-child(7),
  .patient-operations-table td:nth-child(7) {
    width: 75.21875px;
  }

  .patient-operations-table th:nth-child(8),
  .patient-operations-table td:nth-child(8) {
    width: 101.40625px;
  }

  .patient-operations-table th:nth-child(9),
  .patient-operations-table td:nth-child(9) {
    width: 228px;
  }

  .patient-operations-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }
}

/* Dentalome desktop patient surfaces use the shared shadcn border and radius tokens. */
@media (min-width: 1360px) {
  .patient-header.dentalome-patient-header,
  .odontogram-panel.dentalome-odontogram-card,
  .patient-treatment-layout .act-status-card,
  .patient-operations-card {
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
    box-shadow: none;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button,
  .patient-treatment-layout .add-act-button {
    border-radius: 8.4px;
  }

  .patient-treatment-layout .act-status-empty strong {
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-treatment-layout .act-status-empty > span:last-child {
    max-width: 300px;
    margin-top: 4px;
    color: oklch(0.552 0.016 285.938);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
  }

  .patient-treatment-layout .act-status-divider {
    margin: 16px 0;
  }

  .patient-treatment-layout .act-status-list {
    height: 244px;
    max-height: 244px;
    margin-top: 16px;
    padding-right: 0;
  }

  .patient-treatment-layout .act-status-empty {
    width: 100%;
    height: 244px;
    min-height: 244px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 48px 0;
  }

  .patient-treatment-layout .empty-search-mark {
    width: 64px;
    height: 64px;
    margin: 0 0 12px;
    background: oklch(0.967 0.001 286.375);
  }

  .patient-treatment-layout .empty-search-mark svg {
    width: 32px;
    height: 32px;
  }

  .patient-operations-card {
    width: 100%;
    max-width: none;
  }

  .patient-document-actions,
  .patient-operations-toolbar,
  .patient-operations-wrap {
    width: 100%;
  }

  .patient-operations-table {
    width: 100%;
    min-width: 0;
  }

  .patient-rdv-card .patient-rdv-table {
    table-layout: fixed;
  }
}

.source-button-leading-icon {
  margin-right: 8px;
}

@media (min-width: 521px) {
  .document-source-actes-dialog-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    display: grid;
    gap: 20px;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 10.4px;
    color: oklch(0.141 0.005 285.823);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  }

  .document-source-actes-dialog-modal .modal-head {
    margin: 0 -24px;
    border-color: oklch(0.92 0.004 286.32);
    padding: 0 24px 16px;
  }

  .document-source-actes-dialog-modal .modal-head h2 {
    width: 100%;
    color: oklch(0.141 0.005 285.823);
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
  }

  .document-source-actes-dialog-modal .modal-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 16px;
    height: 16px;
    min-height: 0;
    border: 0;
    border-radius: 2px;
    padding: 0;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    box-shadow: none;
    opacity: 0.7;
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
  }

  .document-source-actes-dialog-modal .document-source-dialog-form {
    display: block;
  }

  .document-source-actes-dialog-modal .document-source-grid {
    margin-bottom: 20px;
  }

  .document-source-actes-dialog-modal .document-source-dialog-form label,
  .document-source-actes-dialog-modal .document-source-field {
    gap: 12px;
  }

  .document-source-actes-dialog-modal .document-source-care-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 19.25px;
  }

  .document-source-actes-dialog-modal .document-source-field-content {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    line-height: 22px;
  }

  .document-source-actes-dialog-modal .document-source-care-field[data-invalid="true"],
  .document-source-actes-dialog-modal .document-source-field[data-invalid="true"],
  .document-source-actes-dialog-modal .document-source-dialog-form label[data-invalid="true"],
  .document-source-actes-dialog-modal .document-source-field[data-invalid="true"] .field-label,
  .document-source-actes-dialog-modal .document-source-dialog-form label[data-invalid="true"] .field-label,
  .document-source-actes-dialog-modal .document-source-care-field[data-invalid="true"] .field-label,
  .document-source-actes-dialog-modal .document-source-care-field[data-invalid="true"] .combobox-trigger,
  .document-source-actes-dialog-modal .document-source-care-field[data-invalid="true"] .document-source-multiselect-trigger,
  .document-source-actes-dialog-modal .document-source-care-field[data-invalid="true"] .document-source-multiselect-trigger.placeholder {
    color: oklch(0.577 0.245 27.325);
  }

  .document-source-actes-dialog-modal .document-source-dialog-form label[data-invalid="true"] input {
    border-color: oklch(0.577 0.245 27.325);
  }

  .document-source-actes-dialog-modal .document-source-date-field[data-invalid="true"] .dentalome-date-input > button {
    border-color: oklch(0.577 0.245 27.325);
  }

  .document-source-actes-dialog-modal .document-source-field-error {
    height: 20px;
    color: oklch(0.577 0.245 27.325);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .document-source-actes-dialog-modal .document-source-submit-error {
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    margin: -4px 0 16px;
    border: 1px solid oklch(0.885 0.062 18.334);
    border-radius: 8.4px;
    background: oklch(0.971 0.013 17.38);
    color: oklch(0.444 0.177 26.899);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .document-source-actes-dialog-modal .document-source-submit-error svg {
    flex: 0 0 16px;
  }

  .document-source-actes-dialog-modal .field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 19.25px;
    color: oklch(0.141 0.005 285.823);
    font-weight: 500;
    line-height: 19.25px;
  }

  .document-source-actes-dialog-modal .dentalome-date-input,
  .document-source-actes-dialog-modal .appointment-source-combobox,
  .document-source-actes-dialog-modal .dentalome-date-input > button,
  .document-source-actes-dialog-modal .combobox-trigger,
  .document-source-actes-dialog-modal .document-source-multiselect-trigger {
    height: 36px;
    min-height: 36px;
  }

  .document-source-actes-dialog-modal .dentalome-date-input > button,
  .document-source-actes-dialog-modal .combobox-trigger,
  .document-source-actes-dialog-modal .document-source-multiselect-trigger {
    gap: 8px;
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    color: oklch(0.141 0.005 285.823);
    padding: 8px 12px;
    font-size: 14px;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .document-source-actes-dialog-modal .dentalome-date-input > button {
    font-weight: 400;
  }

  .document-source-actes-dialog-modal .combobox-trigger {
    font-weight: 500;
    text-align: center;
  }

  .document-source-actes-dialog-modal .document-source-multiselect-trigger {
    color: oklch(0.141 0.005 285.823);
    font-weight: 400;
  }

  .document-source-actes-dialog-modal .document-source-checkbox-list {
    position: absolute;
    z-index: 95;
    top: 40px;
    left: 0;
    right: auto;
    display: block;
    width: 400px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    background: oklch(1 0 0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
    padding: 0;
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    gap: normal;
  }

  .document-source-actes-dialog-modal .document-source-checkbox-list.closing-shell {
    width: 381.5px;
    height: 112.5px;
    min-height: 112.5px;
    pointer-events: none;
  }

  .document-source-actes-dialog-modal .document-source-checkbox-list-inner {
    display: grid;
    gap: 8px;
    padding: 8px;
  }

  .document-source-actes-dialog-modal .document-source-checkbox-option {
    display: flex;
    width: 382px;
    height: 28px;
    min-height: 28px;
    align-items: center;
    gap: normal;
    border-radius: 6.4px;
    padding: 6px 8px;
    color: oklch(0.141 0.005 285.823);
    cursor: pointer;
  }

  .document-source-actes-dialog-modal .document-source-checkbox-option:hover {
    background: oklch(0.967 0.001 286.375);
  }

  .document-source-actes-dialog-modal .document-source-checkbox-option > span {
    position: relative;
    top: -1px;
    min-width: 0;
    flex: 1 1 auto;
    margin-left: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
  }

  .document-source-actes-dialog-modal .document-source-checkbox-control {
    position: relative;
    top: -1px;
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 4px;
    background: transparent;
    color: oklch(0.97 0.014 254.604);
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }

  .document-source-actes-dialog-modal .document-source-checkbox-control[data-state="checked"] {
    border-color: #025ce2;
    background: #025ce2;
  }

  .document-source-actes-dialog-modal .document-source-checkbox-control:focus-visible {
    border-color: #025ce2;
    outline: none;
    box-shadow: 0 0 0 3px oklab(0.519343 -0.0356103 -0.213735 / 0.5), 0 1px 2px rgba(0, 0, 0, .05);
  }

  .document-source-actes-dialog-modal .document-source-checkbox-control svg {
    width: 12px;
    height: 12px;
  }

  .document-source-actes-dialog-modal .document-source-care-field .act-catalog-menu.appointment-source-combobox-menu.patient {
    width: 100%;
    height: auto;
    max-height: 342px;
    overflow: hidden;
  }

  .document-source-actes-dialog-modal .document-source-care-field .appointment-source-combobox-menu .combobox-search-row {
    width: 100%;
    height: 36px;
    min-height: 36px;
    flex: 0 0 36px;
    gap: 8px;
    padding: 0 12px;
  }

  .document-source-actes-dialog-modal .document-source-care-field .appointment-source-combobox-menu .combobox-search-row input {
    width: 100%;
    height: 40px;
    min-height: 40px;
    flex: 1 1 auto;
    border: 0;
    background: transparent;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    box-shadow: none;
  }

  .document-source-actes-dialog-modal .document-source-care-field .appointment-source-combobox-options {
    width: calc(100% - 8px);
    height: auto;
    max-height: 300px;
    flex: 0 1 auto;
    margin: 4px;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .document-source-actes-dialog-modal .document-source-care-field .appointment-source-combobox-menu .combobox-option-row {
    width: 100%;
    height: 32px;
    min-height: 32px;
    gap: 8px;
    border-radius: 6.4px;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: oklch(0.21 0.006 285.885);
  }

  .document-source-actes-dialog-modal .document-source-care-field .appointment-source-combobox-menu .combobox-option-row > span {
    position: relative;
    top: -1px;
  }

  .document-source-actes-dialog-modal .document-source-care-field .appointment-source-combobox-menu .combobox-option-row svg {
    width: 16px;
    height: 16px;
    display: block;
    flex: 0 0 16px;
    margin-right: 8px;
    opacity: 0;
  }

  .document-source-actes-dialog-modal .document-source-grid input {
    height: 36px;
    min-height: 36px;
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 8.4px;
    color: oklch(0.141 0.005 285.823);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .document-source-actes-dialog-modal .document-source-grid .document-source-discount-input {
    padding: 4px 12px;
  }

  .document-source-actes-dialog-modal .dentalome-date-input > button svg,
  .document-source-actes-dialog-modal .combobox-trigger > svg,
  .document-source-actes-dialog-modal .document-source-multiselect-trigger > svg {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    color: oklch(0.141 0.005 285.823);
    opacity: 0.5;
  }

  .document-source-actes-dialog-modal .dentalome-date-input > button:focus-visible,
  .document-source-actes-dialog-modal .combobox-trigger:focus-visible,
  .document-source-actes-dialog-modal .document-source-multiselect-trigger:focus-visible {
    border-color: #025ce2;
    outline: none;
    box-shadow: 0 0 0 3px oklab(0.519343 -0.0356103 -0.213735 / 0.5), 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .document-source-actes-dialog-modal .document-source-summary {
    height: 28px;
    margin-bottom: 16px;
    color: oklch(0.552 0.016 285.938);
    font-weight: 400;
    line-height: 20px;
  }

  .document-source-actes-dialog-modal .document-source-summary span {
    font-weight: 400;
    line-height: 20px;
  }

  .document-source-actes-dialog-modal .document-source-summary strong,
  .document-source-actes-dialog-modal .document-source-summary .document-source-summary-value {
    color: oklch(0.141 0.005 285.823);
    font-weight: 600;
    line-height: 28px;
  }

  .document-source-actes-dialog-modal .document-source-summary-card {
    display: block;
    height: 62px;
    margin-bottom: 20px;
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    padding: 16px;
    background: oklch(1 0 0);
    font-variant-numeric: tabular-nums;
  }

  .document-source-actes-dialog-modal .document-source-summary-card-inner {
    display: flex;
    width: 100%;
    height: 28px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .document-source-actes-dialog-modal .document-source-summary-item {
    display: flex;
    height: 20px;
    align-items: center;
    gap: 16px;
    color: oklch(0.552 0.016 285.938);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .document-source-actes-dialog-modal .document-source-summary-separator {
    display: block;
    width: 1px;
    height: 20px;
    flex: 0 0 1px;
    background: oklch(0.92 0.004 286.32);
  }

  .document-source-actes-dialog-modal .document-source-summary-item-value {
    color: oklch(0.141 0.005 285.823);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .document-source-actes-dialog-modal .document-source-summary-item.total {
    height: 28px;
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
  }

  .document-source-actes-dialog-modal .document-source-summary-item.total .document-source-summary-item-value {
    color: rgb(22, 163, 74);
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
  }

  .document-source-actes-dialog-modal .document-source-table-wrap {
    margin-bottom: 20px;
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    background: oklch(1 0 0);
  }

  .document-source-actes-dialog-modal .document-source-table thead {
    background: oklab(0.519343 -0.0356103 -0.213735 / 0.1);
  }

  .document-source-actes-dialog-modal .document-source-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 14px;
    line-height: 20px;
  }

  .document-source-actes-dialog-modal .document-source-table tr {
    border-bottom: 1px solid oklch(0.92 0.004 286.32);
  }

  .document-source-actes-dialog-modal .document-source-table tr:last-child {
    border-bottom: 0;
  }

  .document-source-actes-dialog-modal .document-source-table th {
    height: 40px;
    border-bottom: 0;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    padding: 0 8px;
    font-weight: 500;
    line-height: 20px;
    vertical-align: middle;
  }

  .document-source-actes-dialog-modal .document-source-table td {
    height: 36.5px;
    border-bottom: 0;
    color: oklch(0.141 0.005 285.823);
    padding: 8px;
    line-height: 20px;
    overflow-wrap: break-word;
    vertical-align: middle;
  }

  .document-source-actes-dialog-modal .document-source-table td:nth-child(2) {
    max-width: 200px;
  }

  .document-source-actes-dialog-modal .document-source-table td:nth-child(3) {
    max-width: none;
  }

  .document-source-actes-dialog-modal .modal-actions {
    height: 53px;
    margin: 0 -24px;
    gap: 8px;
    border-color: oklch(0.92 0.004 286.32);
    padding: 16px 24px 0;
  }

  .document-source-actes-dialog-modal .modal-actions button,
  .document-source-actes-dialog-modal .modal-actions .primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .document-source-actes-dialog-modal .modal-actions button:not(.primary-button) {
    width: 87.5625px;
    min-width: 87.5625px;
    gap: 8px;
    border-color: oklch(0.92 0.004 286.32);
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
    padding: 8px 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .document-source-actes-dialog-modal .modal-actions .primary-button {
    gap: 8px;
    min-width: 93.171875px;
    border: 0;
    background: #025ce2;
    color: oklch(0.97 0.014 254.604);
    padding: 8px 12px;
    box-shadow: none;
  }

  .document-source-actes-dialog-modal .modal-actions .document-source-devis-submit {
    min-width: 110.4921875px;
  }

  .document-source-actes-dialog-modal .modal-actions .primary-button svg {
    width: 16px;
    height: 16px;
  }

  .document-source-actes-dialog-modal .modal-actions .primary-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px oklab(0.519343 -0.0356103 -0.213735 / 0.5);
  }
}

/* Measured Dentalome desktop tokens for the patient treatment segmented control. */
@media (min-width: 901px) {
  .odontogram-panel.dentalome-odontogram-card .treatment-card-top {
    border-bottom-color: oklch(0.92 0.004 286.32);
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs {
    border-color: oklch(0.92 0.004 286.32);
    border-radius: 10.4px;
    background: oklch(0.967 0.001 286.375);
    color: oklch(0.552 0.016 285.938);
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
    border-radius: 8.4px;
    color: oklch(0.141 0.005 285.823);
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button.active {
    background: oklch(1 0 0);
    color: oklch(0.141 0.005 285.823);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  }
}

/* Fresh R16 source measurements: preserve Dentalome's phone-width flow. */
@media (max-width: 520px) {
  .dentalome-patient-identity {
    justify-content: flex-start;
    width: max-content;
  }

  .dentalome-patient-identity > .patient-profile-main {
    width: 223px;
    min-width: 223px;
    flex: 0 0 223px;
  }

  .patient-profile-actions > .archive-action,
  .patient-profile-actions > .patient-actions-menu {
    display: none;
  }

  .patients-workspace .dentalome-table-wrap tbody td {
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
  }

  .patients-workspace .dentalome-table-wrap table {
    width: 622px;
    min-width: 622px;
  }

  .patients-workspace .dentalome-table-wrap th:nth-child(2),
  .patients-workspace .dentalome-table-wrap td:nth-child(2) {
    width: 105px;
  }

  .patients-workspace .dentalome-table-wrap th:nth-child(3),
  .patients-workspace .dentalome-table-wrap td:nth-child(3) {
    width: 122px;
  }

  .patient-header-tabs-shell > .patient-header-tabs {
    width: 292px;
    min-width: 0;
    max-width: 292px;
    overflow: hidden;
  }
}

@media (max-width: 900px) {
  .patient-header-tabs-shell {
    overflow: hidden;
  }
}

@media (min-width: 521px) and (max-width: 800px) {
  .dentalome-patient-identity .patient-subline {
    display: flex;
    flex-wrap: nowrap;
  }

  .dentalome-patient-identity .patient-subline > span:last-child {
    grid-column: auto;
  }
}

@media (min-width: 521px) {
  .dashboard-greeting-card {
    width: 231px;
  }

  .dashboard-greeting-card h1 {
    white-space: nowrap;
  }
}

.dashboard-greeting-card p {
  white-space: nowrap;
}

@media (min-width: 901px) {
  .dashboard-greeting-card {
    width: 240.9609375px;
  }
}

.dashboard-appointment-list:has(.dashboard-empty-appointment-card) {
  padding-right: 0;
}

.dashboard-empty-appointment-card .dashboard-empty-title,
.dashboard-empty-appointment-card .dashboard-empty-title + p,
.dashboard-empty-appointment-card > a,
.dashboard-empty-payment-card .dashboard-empty-title,
.dashboard-empty-payment-card .dashboard-empty-title + p,
.dashboard-empty-payment-card > a {
  transform: translateY(16px);
}

.dashboard-empty-appointment-card > a,
.dashboard-empty-payment-card > a {
  gap: 8px;
  padding: 8px 16px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.552 0.016 285.938);
  line-height: 20px;
}

/* Dentalome renders selected-tooth acts as compact cards, without a table header. */
.patient-treatment-layout .act-status-list {
  gap: 12px;
  margin-top: 16px;
}

.patient-treatment-layout .act-status-list .act-status-operation {
  position: relative;
  width: 212px;
  min-width: 212px;
  min-height: 123px;
  display: block;
  padding: 16px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 14.4px;
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  text-align: left;
}

.patient-treatment-layout .act-status-list .act-status-operation .act-status-operation-name {
  display: block;
  width: 88.25px;
  max-width: 88.25px;
  margin: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 600;
  line-height: 22.75px;
  overflow: visible;
  text-align: start;
}

.patient-treatment-layout .act-status-list .act-status-operation strong {
  position: absolute;
  top: 16px;
  right: 12px;
  min-width: 0;
  padding: 4px 10px;
  border-radius: 8.4px;
  background: oklch(0.932 0.032 255.585);
  color: #025ce2;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.patient-treatment-layout .act-status-list .act-status-operation small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: oklch(0.552 0.016 285.938);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.patient-treatment-layout .act-status-tooth-icon {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px;
  display: block;
}

/* R19 paired measurements: Dentalome expands the act rail only when a
   selected tooth has matching operations. */
.patient-treatment-layout .act-status-card .add-act-button {
  width: 164px;
  min-width: 164px;
}

.patient-treatment-layout .act-status-card.has-status-operations {
  width: 268px;
  min-width: 268px;
  max-width: none;
}

.patient-treatment-layout .act-status-card.has-status-operations .add-act-button {
  width: 212px;
  min-width: 212px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs {
  width: 276px;
  min-width: 276px;
  flex-basis: 276px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button:nth-child(1) {
  width: 57px;
  min-width: 57px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button:nth-child(2) {
  width: 62px;
  min-width: 62px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button:nth-child(3) {
  width: 149px;
  min-width: 149px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-summary-actions .patient-receipt-download-button {
  width: 161px;
  min-width: 161px;
}

.patient-document-actions button:first-child {
  width: 135px;
  min-width: 135px;
}

.patient-document-actions button:last-child {
  width: 187px;
  min-width: 187px;
}

/* R20 paired source measurements for the patient acts workflow. */
.dashboard-empty-appointment-card > a,
.dashboard-empty-payment-card > a {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs {
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: oklch(0.967 0.001 286.375);
  color: oklch(0.552 0.016 285.938);
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
  border-radius: 8.4px;
  color: oklch(0.141 0.005 285.823);
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button.active {
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}

.odontogram-panel.dentalome-odontogram-card .treatment-summary-actions .patient-receipt-download-button {
  box-sizing: border-box;
  width: 161px;
  min-width: 161px;
  height: 32px;
  min-height: 32px;
  gap: 6px;
  padding: 0 10px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  transform: translateX(-3.5px);
}

.patient-document-actions button {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-operations-table .operation-status-trigger {
  box-sizing: border-box;
  width: 85px;
  min-width: 85px;
  height: 32px;
  min-height: 32px;
  gap: 6px;
  padding: 0 8px;
  border-radius: 8.4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.patient-operations-table .dentalome-actions .plain-icon.small {
  box-sizing: border-box;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 8.4px;
}

.patient-operations-table .row-actions button svg,
.patient-operations-table .plain-icon svg,
.patient-operations-table .dentalome-inline-svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

@media (min-width: 1360px) {
  .patient-operations-table {
    width: 1108px;
    min-width: 1108px;
    table-layout: fixed;
  }

  .patient-operations-table th:nth-child(1),
  .patient-operations-table td:nth-child(1) { width: 70.421875px; }
  .patient-operations-table th:nth-child(2),
  .patient-operations-table td:nth-child(2) { width: 105.625px; }
  .patient-operations-table th:nth-child(3),
  .patient-operations-table td:nth-child(3) { width: 65.71875px; }
  .patient-operations-table th:nth-child(4),
  .patient-operations-table td:nth-child(4) { width: 269.953125px; }
  .patient-operations-table th:nth-child(5),
  .patient-operations-table td:nth-child(5) { width: 75.109375px; }
  .patient-operations-table th:nth-child(6),
  .patient-operations-table td:nth-child(6) { width: 58.671875px; }
  .patient-operations-table th:nth-child(7),
  .patient-operations-table td:nth-child(7) { width: 76.28125px; }
  .patient-operations-table th:nth-child(8),
  .patient-operations-table td:nth-child(8) { width: 118.53125px; }
  .patient-operations-table th:nth-child(9),
  .patient-operations-table td:nth-child(9) { width: 267.6875px; }

  .patient-plan-operations-table th:nth-child(1),
  .patient-plan-operations-table td:nth-child(1) { width: 107.3125px; }
  .patient-plan-operations-table th:nth-child(2),
  .patient-plan-operations-table td:nth-child(2) { width: 160.25px; }
  .patient-plan-operations-table th:nth-child(3),
  .patient-plan-operations-table td:nth-child(3) { width: 100.359375px; }
  .patient-plan-operations-table th:nth-child(4),
  .patient-plan-operations-table td:nth-child(4) { width: 410.890625px; }
  .patient-plan-operations-table th:nth-child(5),
  .patient-plan-operations-table td:nth-child(5) { width: 114.515625px; }
  .patient-plan-operations-table th:nth-child(6),
  .patient-plan-operations-table td:nth-child(6) { width: 214.671875px; }

  .patient-operations-table tbody tr {
    height: 48.5px;
  }
}

@media (max-width: 900px) {
  .patient-treatment-layout .add-act-button {
    height: 36px;
    min-height: 36px;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8.4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .patient-operations-card {
    box-sizing: border-box;
    width: 100%;
    margin: 40px 0 0;
    padding: 12px;
    border-radius: 14.4px;
  }

  .patient-operations-wrap {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    border: 1px solid oklch(0.92 0.004 286.32);
    border-radius: 14.4px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .patient-operations-table {
    width: 944px;
    min-width: 944px;
    border: 0;
    border-radius: 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    line-height: 20px;
  }

  .patient-operations-table th,
  .patient-operations-table td {
    height: 40px;
    padding: 8px;
    border: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    vertical-align: middle;
    white-space: nowrap;
  }

  .patient-operations-table th {
    height: 40px;
    padding: 0 8px;
    font-weight: 500;
  }

  .patient-operations-table tbody tr {
    height: 48.5px;
  }

  .patient-operations-table th:nth-child(1),
  .patient-operations-table td:nth-child(1) { width: 60px; }
  .patient-operations-table th:nth-child(2),
  .patient-operations-table td:nth-child(2) { width: 90px; }
  .patient-operations-table th:nth-child(3),
  .patient-operations-table td:nth-child(3) { width: 56px; }
  .patient-operations-table th:nth-child(4),
  .patient-operations-table td:nth-child(4) { width: 230px; }
  .patient-operations-table th:nth-child(5),
  .patient-operations-table td:nth-child(5) { width: 64px; }
  .patient-operations-table th:nth-child(6),
  .patient-operations-table td:nth-child(6) { width: 50px; }
  .patient-operations-table th:nth-child(7),
  .patient-operations-table td:nth-child(7) { width: 65px; }
  .patient-operations-table th:nth-child(8),
  .patient-operations-table td:nth-child(8) { width: 101px; }
  .patient-operations-table th:nth-child(9),
  .patient-operations-table td:nth-child(9) { width: 228px; }

  .patient-operations-table th:first-child {
    padding: 0 0 0 8px;
  }
}

@media (max-width: 520px) {
  .patient-treatment-layout {
    width: 1191.359375px;
    min-width: 1191.359375px;
    grid-template-columns: 955.34375px 220.015625px;
  }

  .odontogram-column,
  .odontogram-panel.dentalome-odontogram-card {
    width: 955.34375px;
    min-width: 955.34375px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
    transform: none;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions .patient-receipt-download-button {
    transform: translateX(-5.5px);
  }
}

/* R21 paired interaction contract: keep the patient workflow controls and
   responsive operation table identical to Dentalome at every viewport. */
.dentalome-patient-header .patient-header-tabs :is(button, a) {
  padding: 12px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8.4px;
}

.odontogram-panel.dentalome-odontogram-card .all-teeth-control,
.odontogram-panel.dentalome-odontogram-card .all-teeth-control input {
  color: oklch(0.141 0.005 285.823);
}

.odontogram-panel.dentalome-odontogram-card .all-teeth-control input {
  display: flex;
  line-height: 24px;
}

.patient-treatment-layout .add-act-button {
  background: #025ce2;
  color: #fff;
}

.patient-document-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.patient-document-actions button:first-child {
  border: 1px solid rgba(60, 121, 212, .2);
  background: rgba(60, 121, 212, .1);
  color: #3c79d4;
}

.patient-document-actions button:last-child {
  border: 0;
  background: #025ce2;
  color: #fff;
}

.patient-operations-toolbar .combobox-trigger {
  display: inline-flex;
  gap: 8px;
  padding: 8px 12px;
  border-color: oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}

.patient-operations-table th:first-child,
.patient-operations-table td:first-child {
  text-align: left;
}

.patient-operations-table .operation-select-cell {
  display: inline-flex;
  width: 52px;
  min-width: 52px;
  height: 32px;
  gap: 4px;
}

.patient-operations-table .operation-select-cell .session-shortcut {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
}

.patient-operations-table .dentalome-actions {
  gap: 4px;
}

.patient-operations-table .operation-status-trigger {
  display: inline-flex;
  color: oklch(0.141 0.005 285.823);
}

.patient-operations-table .dentalome-actions .plain-icon.small {
  color: oklch(0.141 0.005 285.823);
}

.patient-operations-table .green-text {
  color: #00a63e;
}

.patient-operations-table .dentalome-actions .plain-icon.small svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.patient-operations-table .dentalome-actions .plain-icon.small.plan-add-as-acte.treated {
  color: #00a63e;
}

.patient-operations-table .dentalome-actions .plain-icon.small.danger,
.patient-operations-table .dentalome-actions .plain-icon.small[title="Supprimer"] {
  color: oklch(0.577 0.245 27.325);
}

.patient-operations-table thead {
  background: #e6effc;
}

.patient-operations-table tbody tr,
.patient-documents-card .dentalome-patient-table tbody tr {
  background: #f9f9fa;
}

.patient-plan-operations-table tbody tr {
  background: transparent;
  border: 0 solid oklch(0.92 0.004 286.32);
}

.patient-documents-card .dentalome-patient-table tbody tr {
  background: #fff;
}

.patient-documents-card .dentalome-patient-table tbody tr:hover {
  background: #f9f9fa;
}

.patient-documents-card .dentalome-row-actions {
  transform: translateY(0.5px);
}

@media (max-width: 520px) {
  .patient-treatment-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .patient-profile-actions > .archive-action,
  .patient-profile-actions > .patient-actions-menu {
    display: flex;
  }

  .dentalome-patient-identity > .patient-profile-main {
    width: 221.75px;
    min-width: 221.75px;
    flex-basis: 221.75px;
  }

  .patient-header-tabs-shell > .patient-header-tabs {
    display: inline-flex;
    width: max-content;
    min-width: max-content;
    max-width: none;
    padding: 0;
    color: oklch(0.552 0.016 285.938);
  }

  .patient-operations-card {
    margin-top: 24px;
  }

  .patient-document-actions {
    margin: 0 0 16px;
  }

  .patient-operations-toolbar {
    margin: 0 0 16px;
  }
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs {
  width: 273.75px;
  min-width: 273.75px;
  flex-basis: 273.75px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button:nth-child(1) {
  width: 56.75px;
  min-width: 56.75px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button:nth-child(2) {
  width: 62px;
  min-width: 62px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button:nth-child(3) {
  width: 147px;
  min-width: 147px;
}

.odontogram-panel.dentalome-odontogram-card .treatment-tabs button.active {
  border: 1px solid transparent;
}

.odontogram-panel.dentalome-odontogram-card .treatment-summary-actions .patient-receipt-download-button {
  width: 157.75px;
  min-width: 157.75px;
  border-color: oklch(0.92 0.004 286.32);
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  transform: translateX(-.25px);
}

.patient-treatment-layout .act-status-card .add-act-button {
  width: 162px;
  min-width: 162px;
}

.patient-document-actions button:first-child {
  width: 130px;
  min-width: 130px;
}

.patient-document-actions button:last-child {
  width: 183px;
  min-width: 183px;
}

.patient-document-actions.plan-treatment-document-actions button:first-child {
  width: 112.75px;
  min-width: 112.75px;
}

@media (max-width: 900px) {
  .patient-operations-table {
    width: 943px;
    min-width: 943px;
  }

  .patient-operations-table th:nth-child(4),
  .patient-operations-table td:nth-child(4) {
    width: 229px;
  }

  .patient-operations-table .operation-status-trigger {
    width: 85.5px;
    min-width: 85.5px;
  }
}

@media (max-width: 520px) {
  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions .patient-receipt-download-button {
    transform: translateX(-2.25px);
  }
}

/* R109 paired operation dialog calibration. */
@media (min-width: 901px) {
  .app-shell > .app-body > .main > .topbar {
    left: 0;
  }
}

.operation-form-modal .dentalome-operation-form .appointment-source-combobox > .combobox-trigger,
.operation-form-modal .dentalome-operation-form .act-catalog-combobox > .combobox-trigger,
.operation-form-modal .dentalome-operation-form .teeth-selector-combobox > .combobox-trigger,
.operation-form-modal .dentalome-operation-form .patient-source-dropdown > .combobox-trigger {
  gap: 8px;
  background: oklch(1 0 0);
}

.operation-form-modal .dentalome-operation-form .appointment-source-combobox > .combobox-trigger,
.operation-form-modal .dentalome-operation-form .act-catalog-combobox > .combobox-trigger,
.operation-form-modal .dentalome-operation-form .patient-source-dropdown > .combobox-trigger {
  text-align: center;
}

.operation-form-modal .dentalome-operation-form .act-catalog-combobox > .combobox-trigger.placeholder {
  color: oklch(0.141 0.005 285.823);
  font-weight: 500;
}

.operation-form-modal .dentalome-operation-form .act-catalog-combobox > .combobox-trigger:not(.placeholder) {
  font-weight: 500;
}

@media (min-width: 901px) {
  .operation-form-modal.operation-edit-form-modal {
    transform: translateY(-0.4375px);
  }
}

.operation-form-modal .dentalome-operation-form .act-catalog-combobox > .combobox-trigger:focus-visible {
  color: oklch(0.21 0.006 285.885);
  background: oklch(0.967 0.001 286.375);
  font-weight: 500;
}

.operation-form-modal .dentalome-operation-form .operation-act-field[data-invalid="true"]
  .act-catalog-combobox > .combobox-trigger.placeholder,
.operation-form-modal .dentalome-operation-form .operation-act-field[data-invalid="true"]
  .act-catalog-combobox > .combobox-trigger.placeholder svg {
  color: oklch(0.577 0.245 27.325);
}

.operation-form-modal > .modal-close-button {
  opacity: .7;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 2px;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  gap: normal;
}

/* R25 paired shell controls: Dentalome keeps the same compact action-button
   metrics across responsive widths and only enlarges the phone search text. */
.topbar .topbar-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  gap: 8px;
  padding: 0;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.topbar .topbar-logout {
  display: none;
}

.topbar .global-search input {
  line-height: 20px;
}

@media (max-width: 639px) {
  .topbar .global-search input {
    line-height: 24px;
  }

  .dashboard-panel-grid {
    gap: 24px;
  }

  .dashboard-panel-head a {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
  }
}

.dashboard-panel-head .dashboard-practitioner-note {
  font-weight: 600;
}

.dashboard-empty-appointment-card,
.dashboard-empty-payment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dashboard-empty-appointment-card .dashboard-empty-icon,
.dashboard-empty-payment-card .dashboard-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Live Dentalome quick-add popover, captured from the doctor calendar. */
.topbar .topbar-quick-add-popover {
  top: 40px;
  right: 44px;
  width: 224px;
  padding: 8px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-family: "Work Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  overflow: visible;
}

.topbar-quick-add-popover button {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.topbar-quick-add-popover button + button {
  margin-top: 4px;
}

.patient-form-modal.patient-quick-add-modal .patient-form-scroll {
  overflow: visible;
  padding-bottom: 8px;
}

.topbar .topbar-quick-add-popover button > span:last-child {
  display: inline-block;
  color: oklch(0.141 0.005 285.823) !important;
  font-weight: 500;
}

.topbar-quick-add-icon {
  width: 28px;
  height: 28px;
  display: flex !important;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  place-items: center;
  border-radius: 8.4px;
  background: oklab(0.519343 -0.0356103 -0.213735 / .1);
  color: rgb(2, 92, 226) !important;
  transition: all .15s ease;
}

.topbar-quick-add-popover button:hover {
  outline: none;
  background: oklch(0.967 0.001 286.375);
}

.topbar-quick-add-popover button:hover .topbar-quick-add-icon {
  transform: scale(1.05);
  background: rgb(2, 92, 226);
  color: #fff !important;
}

.topbar .topbar-action.active {
  border-color: oklch(0.92 0.004 286.32);
  background: transparent;
  color: oklch(0.141 0.005 285.823);
}

.topbar .topbar-action:hover,
.topbar .topbar-action:focus {
  background: oklch(0.967 0.001 286.375);
  color: oklch(0.21 0.006 285.885);
}

@media (max-width: 639px) {
  .topbar .topbar-quick-add-popover {
    right: 44px;
    width: min(224px, calc(100vw - 32px));
  }
}

/* Doctor quick-add dialogs use the exact live Dentalome modal contracts. */
.patient-form-modal {
  gap: 16px;
  background: oklch(1 0 0);
}

.patient-form-modal .modal-head {
  margin: 0;
}

.patient-form-modal.patient-quick-add-modal .modal-actions {
  width: 100%;
  margin: 0;
  padding: 16px 0 0;
}

.patient-form-modal .modal-actions > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8.4px;
  padding: 8px 16px;
}

.patient-form-modal .modal-actions > button:not(.primary-button) {
  background: oklch(1 0 0);
}

.patient-form-modal .modal-actions > .primary-button {
  border: 0 solid oklch(0.92 0.004 286.32);
}

.users-action-modal {
  display: grid;
  gap: 16px;
  background: oklch(1 0 0);
}

.users-action-modal .modal-head {
  margin-bottom: 0;
}

.users-action-modal .modal-close-button {
  display: block;
  opacity: .7;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 2px;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  gap: normal;
}

.users-phone-input > button {
  border-radius: 10.4px 0 0 10.4px;
}

.users-form-grid .users-phone-input > input {
  border-radius: 0 10.4px 10.4px 0;
}

.users-action-modal .password-visibility-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 solid oklch(0.92 0.004 286.32);
  line-height: 20px;
  gap: 8px;
}

.users-action-modal .users-form-grid input:focus {
  border-color: rgb(2, 92, 226);
  outline: none;
  box-shadow: 0 0 0 3px rgb(2 92 226 / 50%), 0 1px 2px rgb(0 0 0 / 5%);
}

.users-action-modal .modal-actions > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
}

.users-action-modal .modal-actions > button:not(.primary-button) {
  background: oklch(1 0 0);
}

.users-action-modal .modal-actions > .primary-button {
  border: 0 solid oklch(0.92 0.004 286.32);
}

.catalog-medication-form-modal {
  display: grid;
  gap: 16px;
  border-color: oklch(0.92 0.004 286.32);
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
}

.catalog-medication-form-modal .modal-head {
  margin-bottom: 17px;
}

.catalog-medication-form-modal .catalog-source-form-grid {
  display: block;
}

.catalog-medication-form-modal .catalog-medication-field {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 16px;
  color: oklch(0.141 0.005 285.823);
}

.catalog-medication-form-modal .catalog-medication-field[data-invalid="true"] {
  color: oklch(0.577 0.245 27.325);
}

.catalog-medication-form-modal .catalog-medication-field-label {
  display: flex;
  width: 100%;
  gap: 8px;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.25px;
}

.catalog-medication-form-modal .catalog-medication-field-content {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 6px;
  line-height: 20px;
}

.catalog-medication-form-modal .catalog-medication-field[data-invalid="true"] input,
.catalog-medication-form-modal .catalog-medication-field[data-invalid="true"] .combobox-trigger {
  color: inherit;
}

.catalog-medication-form-modal .catalog-medication-field .catalog-field-error {
  color: oklch(0.577 0.245 27.325);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.catalog-medication-form-modal .catalog-medication-field .combobox-trigger svg {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  color: inherit;
  opacity: .5;
}

.catalog-medication-form-modal .modal-head h2,
.catalog-medication-form-modal .catalog-source-form-grid label,
.catalog-medication-form-modal .catalog-source-form-grid .catalog-combobox-field,
.catalog-medication-form-modal .catalog-source-form-grid input,
.catalog-medication-form-modal .catalog-source-form-grid .combobox-trigger {
  color: oklch(0.141 0.005 285.823);
}

.catalog-medication-form-modal .catalog-source-form-grid input,
.catalog-medication-form-modal .catalog-source-form-grid .combobox-trigger {
  border-color: oklch(0.92 0.004 286.32);
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.catalog-medication-form-modal .catalog-source-form-grid .combobox-trigger {
  gap: 8px;
  padding: 8px 12px;
  background: oklch(1 0 0);
}

.catalog-medication-form-modal .catalog-medication-field[data-invalid="true"] .catalog-medication-field-label,
.catalog-medication-form-modal .catalog-medication-field[data-invalid="true"] input,
.catalog-medication-form-modal .catalog-medication-field[data-invalid="true"] .combobox-trigger {
  color: oklch(0.577 0.245 27.325);
}

.catalog-medication-form-modal .catalog-source-form-grid input:focus {
  border-color: rgb(2, 92, 226);
  outline: none;
  box-shadow: 0 0 0 3px rgb(2 92 226 / 50%), 0 1px 2px rgb(0 0 0 / 5%);
}

.catalog-medication-form-modal .modal-close-button,
.charge-form-modal > .modal-close-button {
  display: block;
  opacity: .7;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 2px;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  gap: normal;
}

.catalog-medication-form-modal .catalog-source-form-grid .modal-actions > button,
.charge-form-modal .charge-source-action-row > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8.4px;
  padding: 8px 16px;
}

.catalog-medication-form-modal .catalog-source-form-grid .modal-actions > button:not(.primary-button),
.charge-form-modal .charge-source-action-row > button:not(.primary-button) {
  background: oklch(1 0 0);
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.catalog-medication-form-modal .catalog-source-form-grid .modal-actions > .primary-button,
.charge-form-modal .charge-source-action-row > .primary-button {
  border: 0 solid oklch(0.92 0.004 286.32);
  box-shadow: none;
}

.charge-form-modal {
  background: oklch(1 0 0);
}

.charge-form-modal .dentalome-charge-form input[data-modal-autofocus="true"]:focus {
  border-color: rgb(2, 92, 226);
  outline: none;
  box-shadow: 0 0 0 3px rgb(2 92 226 / 50%), 0 1px 2px rgb(0 0 0 / 5%);
}

.dashboard-empty-appointment-card .dashboard-empty-title,
.dashboard-empty-payment-card .dashboard-empty-title {
  margin: 16px 0 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  transform: none;
}

.dashboard-empty-appointment-card .dashboard-empty-title + p,
.dashboard-empty-payment-card .dashboard-empty-title + p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 20px;
  transform: none;
}

.dashboard-empty-appointment-card > a,
.dashboard-empty-payment-card > a {
  margin-top: 16px;
  transform: none;
}

.patients-tabs.dentalome-segmented-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.patients-search-input.dentalome-search-input {
  border-radius: 8.4px;
}

.patients-search-input.dentalome-search-input:focus,
.patients-search-input.dentalome-search-input:focus-visible {
  outline: none;
  border-color: rgb(2, 92, 226);
  box-shadow: 0 0 0 3px rgb(2 92 226 / 50%), 0 1px 2px rgb(0 0 0 / 5%);
}

.patient-document-actions button:first-child {
  width: 132.75px;
  min-width: 132.75px;
}

.patient-document-actions button:last-child {
  width: 185.75px;
  min-width: 185.75px;
}

.patient-document-actions.plan-treatment-document-actions button:first-child {
  width: 115.5px;
  min-width: 115.5px;
}

.treatment-plan-tabs {
  box-sizing: border-box;
  display: flex;
  width: 770.75px;
  min-width: 770.75px;
  height: 36px;
  min-height: 36px;
  gap: 8px;
  padding: 3px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 10.4px;
  background: oklch(0.967 0.001 286.375);
}

.treatment-plan-tabs button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  height: 27px;
  min-height: 27px;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 8.4px;
  background: transparent;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.treatment-plan-tabs button.active {
  background: #fff;
  color: oklch(0.141 0.005 285.823);
  font-weight: 500;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.treatment-plan-tabs button.populated::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 999px;
  background: #025ce2;
  content: "";
}

.treatment-plan-tabs button.populated.active {
  width: 77px;
  min-width: 77px;
  background: #025ce2;
  color: #fff;
  font-weight: 600;
}

.treatment-plan-tabs button.populated.active::before {
  background: #fff;
}

.treatment-plan-tabs button.populated:not(.active) {
  width: 79.5px;
  min-width: 79.5px;
  background: rgb(2 92 226 / 10%);
  color: #025ce2;
  font-weight: 600;
}

.patient-operations-card .treatment-plan-tabs {
  margin-bottom: 16px;
}

.patient-operations-card .treatment-plan-tabs + .patient-operations-toolbar {
  margin-bottom: 4px;
}

.patient-plan-operations-table .patient-operation-empty-state > span {
  min-height: 196px;
}

.patient-initial-operations-table .patient-operation-empty-state > span {
  min-height: 196px;
}

/* R106 paired desktop contract: source-measured patient treatment controls. */
@media (min-width: 901px) {
  .odontogram-panel.dentalome-odontogram-card .treatment-tabs {
    width: 276px;
    min-width: 276px;
    flex-basis: 276px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button:nth-child(1) {
    width: 57px;
    min-width: 57px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button:nth-child(2) {
    width: 62px;
    min-width: 62px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-tabs button:nth-child(3) {
    width: 149px;
    min-width: 149px;
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions .patient-receipt-download-button {
    width: 161px;
    min-width: 161px;
  }

  .patient-treatment-layout .act-status-card .add-act-button {
    width: 164px;
    min-width: 164px;
  }

  .patient-treatment-layout .act-status-card.has-status-operations .add-act-button {
    width: 212px;
    min-width: 212px;
  }

  .patient-document-actions button:first-child {
    width: 135px;
    min-width: 135px;
  }

  .patient-document-actions button:last-child {
    width: 187px;
    min-width: 187px;
  }

  .patient-document-actions.plan-treatment-document-actions button:first-child {
    width: 116px;
    min-width: 116px;
  }

  .patient-operations-card .treatment-plan-tabs + .patient-operations-toolbar {
    margin-bottom: 16px;
  }

  .patient-operations-table .dentalome-checkbox-control {
    display: inline-block;
    background: #fff;
  }
}

/* Current-run paired measurements: desktop Dentalome keeps the treatment
   workspace fluid at a 2:1 ratio instead of reusing the clipped tablet canvas. */
@media (min-width: 1360px) {
  .patient-treatment-layout {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 520px;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 16px;
  }

  .patient-treatment-layout .odontogram-column,
  .patient-treatment-layout .odontogram-panel.dentalome-odontogram-card,
  .patient-treatment-layout .act-status-card,
  .patient-treatment-layout .act-status-card.has-status-operations {
    width: auto;
    min-width: 0;
    max-width: none;
    height: 520px;
    min-height: 520px;
  }

  .patient-treatment-layout .odontogram-panel.dentalome-odontogram-card {
    gap: 32px;
    padding: 28px;
  }

  .patient-treatment-layout .act-status-card .add-act-button,
  .patient-treatment-layout .act-status-card.has-status-operations .add-act-button {
    width: 100%;
    min-width: 0;
  }
}

/* Login contracts are responsive at the same breakpoints as Dentalome. */
.dentalome-login-panel .login-input-wrap {
  display: block;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dentalome-login-panel .login-input-wrap > svg:first-child {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 12px;
  margin: 0;
}

.dentalome-login-panel input[type="email"],
.dentalome-login-panel input[type="password"],
.dentalome-login-panel .login-input-wrap input[type="text"] {
  box-sizing: border-box;
  display: inline-block;
  width: 100%;
  height: 44px;
  border: 1px solid #e5e5ea;
  border-radius: 8.4px;
  padding: 4px 40px;
  background: #fff;
  color: #1c1c1e;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

.dentalome-login-panel input[type="email"] {
  padding-right: 12px;
}

.dentalome-login-panel .login-password-toggle {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 12px;
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 16px;
}

.forgot-password-button {
  color: #2556e3;
  line-height: 20px;
  text-decoration: none;
}

.dentalome-login-panel .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10.4px;
  background: #2556e3;
  font-weight: 500;
  padding: 8px 16px;
}

@media (min-width: 521px) and (max-width: 900px) {
  .dentalome-login-screen.login-screen {
    min-height: 100vh;
    grid-template-columns: 360px minmax(0, 1fr);
    overflow: hidden;
  }

  .dentalome-login-cover {
    min-height: 100vh;
  }

  .dentalome-login-panel.login-panel {
    width: 360px;
    margin: 0;
    align-self: center;
    justify-self: center;
  }
}

@media (max-width: 520px) {
  .dentalome-login-screen.login-screen {
    min-height: 100vh;
    grid-template-rows: 260px auto;
  }

  .dentalome-login-cover {
    min-height: 260px;
    display: grid;
    background: #fff;
  }

  .dentalome-login-brand-lockup {
    width: calc(100% - 48px);
    margin: 150px auto 0;
  }

  .dentalome-login-brand-lockup .dentalome-logo {
    color: #025ce2;
    transform: none;
  }

  .dentalome-login-brand-lockup .dentalome-logo-wordmark {
    width: 230px;
  }

  .dentalome-login-brand-lockup p {
    display: none;
  }

  .dentalome-login-panel.login-panel {
    width: auto;
    margin: 10px 24px auto;
  }
}

/* The source shell places the top bar inside the main landmark. */
.app-shell > .app-body > .main {
  padding-top: 0;
}

@media (min-width: 901px) {
  .app-shell > .app-body > .main > .topbar {
    position: sticky;
    top: 0;
    z-index: 60;
  }

  .patient-treatment-layout {
    width: 100%;
    max-width: 100%;
    height: 504px;
    display: flex;
    align-items: stretch;
    gap: 16px;
  }

  .patient-treatment-layout .odontogram-column {
    flex: 2 1 0%;
    min-width: 955.15625px;
    height: 504px;
  }

  .patient-treatment-layout .odontogram-panel.dentalome-odontogram-card {
    width: 100%;
    height: 504px;
    min-height: 504px;
    max-height: 504px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 28px;
    overflow: visible;
  }

  .patient-treatment-layout .odontogram-panel.dentalome-odontogram-card .treatment-card-top {
    margin: 0;
  }

  .patient-treatment-layout .odontogram-stack {
    min-height: 0;
    height: 361px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  .patient-treatment-layout .act-status-card {
    flex: 1 1 0%;
    width: auto;
    min-width: 220.015625px;
    height: 504px;
    min-height: 504px;
    max-height: 504px;
    padding: 28px;
    overflow: hidden;
  }

  .patient-treatment-layout .act-status-card.has-status-operations {
    flex: 0 0 268px;
    width: 268px;
    min-width: 268px;
  }

  .patient-treatment-layout .act-status-card .add-act-button {
    display: flex;
  }

  .patient-treatment-layout .act-status-card.has-status-operations .add-act-button {
    width: 212px;
    min-width: 212px;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.lower {
    border: 0 solid transparent;
    border-radius: 8.4px;
    background: transparent;
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: start;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.selected {
    background: oklab(0.519343 -0.0356103 -0.213735 / 0.2);
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth:hover,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.selected:hover {
    background: oklab(0.519343 -0.0356103 -0.213735 / 0.1);
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth .tooth-art,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.selected .tooth-art,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth:hover .tooth-art,
  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth.selected:hover .tooth-art {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: none;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth-hover-menu {
    position: absolute;
    z-index: 2;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8.4px;
    background: oklch(0.932 0.032 255.585);
    color: #025ce2;
    pointer-events: none;
  }

  .odontogram-panel.dentalome-odontogram-card .tooth.dentalome-tooth:hover .tooth-hover-menu {
    display: flex;
  }

  .patient-treatment-layout.child-schema-layout .odontogram-column,
  .patient-treatment-layout.child-schema-layout .act-status-card,
  .patient-treatment-layout.child-schema-layout .act-status-card.has-status-operations {
    min-width: 0;
    height: 520px;
    min-height: 520px;
    max-height: 520px;
  }

  .patient-treatment-layout.child-schema-layout .odontogram-column {
    flex: 0 0 749px;
    width: 749px;
  }

  .patient-treatment-layout.child-schema-layout {
    height: 520px;
  }

  .patient-treatment-layout.child-schema-layout .odontogram-panel.dentalome-odontogram-card {
    height: 520px;
    min-height: 520px;
    max-height: 520px;
    padding-top: 36px;
  }

  .patient-treatment-layout.child-schema-layout .odontogram-stack {
    transform: translateY(8px);
  }

  .patient-treatment-layout.child-schema-layout .treatment-summary-actions {
    width: 412px;
    flex-basis: 412px;
  }

  .patient-treatment-layout.child-schema-layout .treatment-financials {
    width: 230px;
    flex-basis: 230px;
    display: grid;
    grid-template-columns: repeat(3, 60px);
    column-gap: 25px;
    align-items: start;
    white-space: normal;
  }

  .patient-treatment-layout.child-schema-layout .treatment-financials .metric {
    width: 60px;
    grid-template-rows: 32px 12px;
    gap: 4px;
    line-height: 16px;
  }

  .patient-treatment-layout.child-schema-layout .treatment-financials .metric span {
    white-space: normal;
  }

  .patient-treatment-layout.child-schema-layout .act-status-card .add-act-button,
  .patient-treatment-layout.child-schema-layout .act-status-card.has-status-operations .add-act-button {
    width: 313.25px;
    min-width: 313.25px;
  }

  .patient-treatment-layout.child-schema-layout .odontogram-control-row .switch > input {
    display: flex;
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    border: 1px solid transparent;
    border-radius: 33554432px;
    text-align: center;
  }

  .patient-treatment-layout.child-schema-layout .tooth.dentalome-tooth {
    border: 0 solid transparent;
    border-radius: 8.4px;
    color: oklch(0.141 0.005 285.823);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: start;
  }
}

.odontogram-panel.dentalome-odontogram-card .child-schema-inline {
  color: oklch(0.141 0.005 285.823);
  font-weight: 400;
}

.odontogram-panel.dentalome-odontogram-card .child-schema-inline > input {
  display: flex;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  border: 1px solid transparent;
  border-radius: 33554432px;
  text-align: center;
}

.patient-document-actions button {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.patient-document-actions .source-button-leading-icon {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin-right: 0;
  flex: 0 0 16px;
}

.patient-document-actions button > strong {
  flex: 0 0 auto;
}

/* Current-run operation-session dialog calibration. */
.operation-session-source-form .dentalome-date-input > button {
  gap: 8px;
  padding: 8px 12px;
  background-color: oklch(1 0 0);
}

.operation-session-source-form .dentalome-date-input > button:focus {
  border-color: oklch(0.92 0.004 286.32);
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-session-source-form .dentalome-date-input > button:focus-visible {
  border-color: #025ce2;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-session-source-form textarea {
  display: flex;
  background-color: transparent;
}

.operation-session-form-modal .modal-actions button:not(.primary-button) {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 8px 16px;
  gap: 8px;
  color: oklch(0.141 0.005 285.823);
  background-color: oklch(1 0 0);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}

.operation-session-form-modal > .modal-close-button {
  display: block;
  border: 0 solid oklch(0.92 0.004 286.32);
  padding: 0;
  gap: normal;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
}

.patient-form-modal .modal-close-button {
  gap: normal;
  border-width: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

/* Dentalome operation-session list and destructive confirmation parity. */
.operation-sessions-modal {
  display: grid;
  gap: 0;
  background-color: oklch(1 0 0);
}

.operation-sessions-modal > .modal-head h2 {
  display: flex;
  color: oklch(0.141 0.005 285.823);
  text-align: left;
}

.operation-sessions-modal .operation-sessions-scroll {
  min-height: 0;
  padding: 20px 16px 22.25px;
}

.operation-session-card-actions .plain-icon {
  color: rgb(0, 0, 0);
}

.operation-session-card-actions .plain-icon.destructive {
  color: oklch(0.577 0.245 27.325);
}

.operation-sessions-modal .operation-sessions-footer .primary-button {
  white-space: nowrap;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 8.4px;
  padding: 0 10px;
  background: rgb(2, 92, 226);
  color: oklch(0.97 0.014 254.604);
}

.operation-sessions-modal > .modal-close-button {
  display: block;
  gap: normal;
  border: 0 solid oklch(0.92 0.004 286.32);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
}

.operation-session-form-modal {
  display: grid;
  gap: 16px;
  background-color: oklch(1 0 0);
}

.operation-session-form-modal > .modal-head {
  width: calc(100% + 48px);
  margin: 0 -24px;
  padding: 0 24px 16px;
}

.operation-session-form-modal .modal-actions .primary-button {
  gap: 8px;
  border: 0 solid oklch(0.92 0.004 286.32);
}

.operation-session-source-label {
  color: oklch(0.141 0.005 285.823);
}

.operation-session-source-label svg,
.operation-session-detail-control small {
  color: oklch(0.552 0.016 285.938);
}

.operation-session-source-form strong {
  color: oklch(0.577 0.245 27.325);
}

.operation-session-delete-confirm-modal {
  background-color: oklch(1 0 0);
  border-color: oklab(0.577 0.217662 0.112464 / .5);
}

.operation-session-delete-confirm-modal .modal-actions button,
.operation-session-delete-confirm-modal .modal-actions button:not(.primary-button),
.operation-session-delete-confirm-modal .modal-actions button.danger-button {
  display: inline-flex;
  width: auto;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8.4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.operation-session-delete-confirm-modal .modal-actions button:not(.danger-button) {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-session-delete-confirm-modal .modal-actions button:not(.danger-button):focus-visible {
  border-color: #025ce2;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(2, 92, 226, .5), 0 1px 2px rgba(0, 0, 0, .05);
}

.operation-session-delete-confirm-modal .modal-actions button.danger-button {
  border: 0;
  background: oklch(0.577 0.245 27.325);
  color: #fff;
  box-shadow: none;
}

/* Current-run agenda control calibration. */
.agenda-practitioner-select {
  display: flex;
  color: oklch(0.141 0.005 285.823);
  background-color: oklch(1 0 0);
  border: 1px solid oklch(0.92 0.004 286.32);
  padding: 8px 12px;
  gap: 8px;
  text-align: center;
}

.mini-calendar-grid button {
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(0.141 0.005 285.823);
  background-color: transparent;
  border: 0 solid oklch(0.92 0.004 286.32);
  gap: 4px;
}

.mini-calendar-grid button.outside {
  color: oklch(0.552 0.016 285.938);
}

.mini-calendar-grid button.today {
  color: oklch(0.21 0.006 285.885);
}

/* R107 final desktop patient-workflow calibration. Keep after legacy passes. */
@media (min-width: 901px) {
  .app-body.no-rail .patient-workspace {
    position: relative;
    left: 0;
  }

  body:has(.operation-form-modal) .app-body.no-rail .patient-workspace:not(.plan-treatment-workspace),
  body:has(.operation-success-toast) .app-body.no-rail .patient-workspace:not(.plan-treatment-workspace) {
    left: -33px;
  }

  body:has(.operation-form-modal) .app-body.no-rail .patient-workspace.plan-treatment-workspace,
  body:has(.operation-success-toast) .app-body.no-rail .patient-workspace.plan-treatment-workspace {
    left: 0;
  }

  .treatment-plan-tabs:has(button.populated.active) {
    width: 782px;
    min-width: 782px;
  }

  .patient-plan-operations-table .dentalome-actions {
    transform: translateX(-52.25px);
  }

  .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions .patient-receipt-download-button {
    width: 161px;
    min-width: 161px;
    transform: translateX(-3.25px);
  }

  .patient-treatment-layout .act-status-card .add-act-button {
    width: 164px;
    min-width: 164px;
  }

  .patient-treatment-layout .act-status-card.has-status-operations .add-act-button {
    width: 212px;
    min-width: 212px;
  }

  .patient-operations-table thead .dentalome-checkbox-control {
    transform: translateY(2px);
  }

  .patient-operations-table tbody .dentalome-checkbox-control {
    display: block;
    background: transparent;
    transform: none;
  }

  .patient-initial-operations-table th:nth-child(1),
  .patient-initial-operations-table td:nth-child(1) {
    width: 23.09200135%;
  }

  .patient-initial-operations-table th:nth-child(2),
  .patient-initial-operations-table td:nth-child(2) {
    width: 42.47659079%;
  }

  .patient-initial-operations-table th:nth-child(3),
  .patient-initial-operations-table td:nth-child(3) {
    width: 34.43140786%;
  }

  .patient-current-operations-table .operation-status-trigger {
    transform: translateX(1.75px);
  }

  .patient-current-operations-table .dentalome-actions {
    transform: translateX(1.25px);
  }
}

/* R160 source-measured plan row geometry. */
@media (min-width: 1360px) {
  .patient-plan-operations-table th:nth-child(1),
  .patient-plan-operations-table td:nth-child(1) { width: 134px; }
  .patient-plan-operations-table th:nth-child(2),
  .patient-plan-operations-table td:nth-child(2) { width: 208px; }
  .patient-plan-operations-table th:nth-child(3),
  .patient-plan-operations-table td:nth-child(3) { width: 126px; }
  .patient-plan-operations-table th:nth-child(4),
  .patient-plan-operations-table td:nth-child(4) { width: 229px; }
  .patient-plan-operations-table th:nth-child(5),
  .patient-plan-operations-table td:nth-child(5) { width: 143px; }
  .patient-plan-operations-table th:nth-child(6),
  .patient-plan-operations-table td:nth-child(6) { width: 268px; }

  .patient-plan-operations-table .dentalome-actions {
    transform: none;
  }
}

.patient-plan-operations-table tbody {
  background: #f9f9fa;
}

.patient-operations-table.patient-plan-operations-table tbody tr:last-child {
  border: 0 solid oklch(0.92 0.004 286.32);
}

/* Live Dentalome current-act table contract. Dentalome keeps this table at a
   1307.47px intrinsic width at every viewport and scrolls its wrapper. */
.patient-current-operations-table {
  width: 1307.46875px;
  min-width: 1307.46875px;
  table-layout: auto;
}

.patient-current-operations-table th:nth-child(1),
.patient-current-operations-table td:nth-child(1) { width: 60px; }
.patient-current-operations-table th:nth-child(2),
.patient-current-operations-table td:nth-child(2) { width: 95.078125px; }
.patient-current-operations-table th:nth-child(3),
.patient-current-operations-table td:nth-child(3) { width: 85.390625px; }
.patient-current-operations-table th:nth-child(4),
.patient-current-operations-table td:nth-child(4) { width: 532.46875px; }
.patient-current-operations-table th:nth-child(5),
.patient-current-operations-table td:nth-child(5) { width: 75.125px; }
.patient-current-operations-table th:nth-child(6),
.patient-current-operations-table td:nth-child(6) { width: 75.21875px; }
.patient-current-operations-table th:nth-child(7),
.patient-current-operations-table td:nth-child(7) { width: 54.75px; }
.patient-current-operations-table th:nth-child(8),
.patient-current-operations-table td:nth-child(8) { width: 101.4375px; }
.patient-current-operations-table th:nth-child(9),
.patient-current-operations-table td:nth-child(9) { width: 228px; }

.patient-current-operations-table th:first-child,
.patient-current-operations-table td:first-child {
  padding-right: 0;
}

.patient-current-operations-table td:nth-child(2) {
  position: relative;
  left: -1px;
}

.patient-current-operations-table td:nth-child(5) {
  position: relative;
  left: -4px;
}

.patient-current-operations-table td:nth-child(6) {
  position: relative;
  left: -5px;
}

.patient-current-operations-table td:nth-child(7) {
  position: relative;
  left: 4px;
}

@media (min-width: 1360px) {
  .patient-current-operations-table.no-financial-activity .operation-status-trigger,
  .patient-current-operations-table.no-financial-activity .dentalome-actions {
    transform: translateX(-1.25px);
  }
}

/* Live Dentalome doctor topbar and quick-add control contract. Keep last so
   older parity calibration rules cannot alter the captured source metrics. */
.topbar .topbar-action > svg {
  width: 16px;
  height: 16px;
}

.topbar-action.has-notification::after {
  content: none;
}

.topbar .topbar-notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  display: block;
  border: 0;
  border-radius: 999px;
  background: oklch(0.637 0.237 25.331);
}

.patient-phone-flag {
  width: 24px;
  height: 16px;
  display: flex;
  flex: 0 0 24px;
  overflow: hidden;
  border-radius: 6.4px;
  background: oklab(0.141 0.00136333 -0.00481054 / 20%);
  box-shadow: none;
}

.patient-phone-flag > svg {
  width: 100%;
  height: 100%;
  display: block;
  flex: 1 1 auto;
}

.patient-form-modal .patient-phone-country-button > svg,
.users-action-modal .patient-phone-country-button > svg {
  width: 16px;
  height: 16px;
  margin-right: -8px;
  color: oklch(0.141 0.005 285.823);
  opacity: 1;
}

.users-form-grid .users-form-field {
  position: relative;
  display: grid;
  gap: 8px;
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
}

.users-form-grid .users-form-field[data-invalid="true"] {
  color: oklch(0.577 0.245 27.325);
}

.users-form-grid .users-form-field .patient-source-phone-input {
  grid-template-columns: 61px minmax(0, 1fr);
  min-height: 36px;
}

.users-action-modal .users-form-grid .users-form-field .patient-phone-country-button {
  width: 61px;
  height: 36px;
  min-height: 36px;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-right: 0;
  border-radius: 10.4px 0 0 10.4px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.users-action-modal .users-form-grid .users-form-field .patient-phone-number-input {
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid oklch(0.92 0.004 286.32);
  border-left: 1px solid oklch(0.92 0.004 286.32);
  border-radius: 0 10.4px 10.4px 0;
  background: rgb(255, 255, 255);
  color: oklch(0.141 0.005 285.823);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}

.users-action-modal .users-form-grid .users-form-field[data-invalid="true"] .patient-phone-country-button,
.users-action-modal .users-form-grid .users-form-field[data-invalid="true"] .patient-phone-number-input {
  border-color: oklch(0.577 0.245 27.325);
}

.patient-form-modal > .modal-close-button,
.catalog-medication-form-modal > .modal-close-button,
.users-action-modal > .modal-close-button,
.charge-form-modal > .modal-close-button {
  border: 0 solid oklch(0.92 0.004 286.32);
}

.catalog-medication-form-modal .catalog-source-form-grid .modal-actions > button:not(.primary-button),
.users-action-modal .modal-actions > button:not(.primary-button),
.charge-form-modal .dentalome-charge-form .charge-source-action-row > button:not(.primary-button) {
  border: 1px solid oklch(0.92 0.004 286.32);
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
}

.catalog-medication-form-modal .catalog-source-form-grid .modal-actions > .primary-button,
.users-action-modal .modal-actions > .primary-button,
.charge-form-modal .dentalome-charge-form .charge-source-action-row > .primary-button {
  padding: 8px 16px;
  border: 0 solid oklch(0.92 0.004 286.32);
  color: oklch(0.97 0.014 254.604);
}

.patient-form-modal .modal-head h2,
.catalog-medication-form-modal .modal-head h2,
.users-action-modal .modal-head h2,
.charge-form-modal .modal-head h2 {
  text-align: left;
}

.users-workspace .dentalome-table-wrap tbody tr {
  font-size: 14px;
  line-height: 20px;
}

.users-action-modal .password-visibility-button {
  height: 100%;
  min-height: 36px;
}

.users-action-modal .password-field-shell.has-error .password-visibility-button {
  height: 50px;
}

.users-form-grid .users-form-field .patient-field-error {
  margin: 0;
  line-height: 20px;
}

.users-permissions-modal .modal-close-button {
  display: block;
  opacity: .7;
  border: 0 solid oklch(0.92 0.004 286.32);
  border-radius: 2px;
  color: oklch(0.141 0.005 285.823);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  gap: normal;
}

/* Payment parity: Dentalome lets the current-act table fit its desktop
   container, then uses the measured compact table as the mobile scroll width. */
.patient-current-operations-table {
  width: 100%;
  table-layout: fixed;
}

.patient-current-operations-table tbody tr {
  background: transparent;
}

@media (min-width: 901px) {
  .patient-current-operations-table {
    min-width: 1108px;
  }

  .patient-current-operations-table th:nth-child(1),
  .patient-current-operations-table td:nth-child(1) { width: 70.421875px; }
  .patient-current-operations-table th:nth-child(2),
  .patient-current-operations-table td:nth-child(2) { width: 107.625px; }
  .patient-current-operations-table th:nth-child(3),
  .patient-current-operations-table td:nth-child(3) { width: 65.71875px; }
  .patient-current-operations-table th:nth-child(4),
  .patient-current-operations-table td:nth-child(4) { width: 269.953125px; }
  .patient-current-operations-table th:nth-child(5),
  .patient-current-operations-table td:nth-child(5) { width: 75.109375px; }
  .patient-current-operations-table th:nth-child(6),
  .patient-current-operations-table td:nth-child(6) { width: 58.671875px; }
  .patient-current-operations-table th:nth-child(7),
  .patient-current-operations-table td:nth-child(7) { width: 76.28125px; }
  .patient-current-operations-table th:nth-child(8),
  .patient-current-operations-table td:nth-child(8) { width: 118.53125px; }
  .patient-current-operations-table th:nth-child(9),
  .patient-current-operations-table td:nth-child(9) { width: 265.6875px; }
}

@media (max-width: 900px) {
  .patient-current-operations-table {
    width: 944px;
    min-width: 944px;
  }

  .patient-current-operations-table th:nth-child(1),
  .patient-current-operations-table td:nth-child(1) { width: 60px; }
  .patient-current-operations-table th:nth-child(2),
  .patient-current-operations-table td:nth-child(2) { width: 90px; }
  .patient-current-operations-table th:nth-child(3),
  .patient-current-operations-table td:nth-child(3) { width: 56px; }
  .patient-current-operations-table th:nth-child(4),
  .patient-current-operations-table td:nth-child(4) { width: 230px; }
  .patient-current-operations-table th:nth-child(5),
  .patient-current-operations-table td:nth-child(5) { width: 64px; }
  .patient-current-operations-table th:nth-child(6),
  .patient-current-operations-table td:nth-child(6) { width: 50px; }
  .patient-current-operations-table th:nth-child(7),
  .patient-current-operations-table td:nth-child(7) { width: 65px; }
  .patient-current-operations-table th:nth-child(8),
  .patient-current-operations-table td:nth-child(8) { width: 101px; }
  .patient-current-operations-table th:nth-child(9),
  .patient-current-operations-table td:nth-child(9) { width: 228px; }
}

@media (min-width: 901px) {
  .patient-payments-card .patient-payments-table {
    table-layout: fixed;
  }

  .patient-payments-card .patient-payments-table th:nth-child(1),
  .patient-payments-card .patient-payments-table td:nth-child(1) { width: 14.350181%; }
  .patient-payments-card .patient-payments-table th:nth-child(2),
  .patient-payments-card .patient-payments-table td:nth-child(2) { width: 11.281588%; }
  .patient-payments-card .patient-payments-table th:nth-child(3),
  .patient-payments-card .patient-payments-table td:nth-child(3) { width: 15.884477%; }
  .patient-payments-card .patient-payments-table th:nth-child(4),
  .patient-payments-card .patient-payments-table td:nth-child(4) { width: 17.960289%; }
  .patient-payments-card .patient-payments-table th:nth-child(5),
  .patient-payments-card .patient-payments-table td:nth-child(5) { width: 20.938628%; }
  .patient-payments-card .patient-payments-table th:nth-child(6),
  .patient-payments-card .patient-payments-table td:nth-child(6) { width: 19.584837%; }
}

.patient-payments-table tbody tr {
  border: 0 solid oklch(0.92 0.004 286.32);
  font-size: 14px;
  line-height: 20px;
}

.patient-payments-card .dentalome-pagination button:disabled {
  opacity: .5;
  gap: 8px;
  background: oklch(1 0 0);
  color: oklch(0.141 0.005 285.823);
}

.patient-payments-card .patient-payments-table td .money-red {
  display: block;
  height: 20px;
  color: #ef0000;
  font-weight: 500;
  line-height: 20px;
}

.payment-form-modal > .modal-close-button {
  display: block;
  border: 0 solid oklch(0.92 0.004 286.32);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.payment-toast-region {
  top: 24px;
  right: 24px;
  bottom: auto;
  width: 356px;
  min-width: 356px;
  height: 53.5px;
  min-height: 53.5px;
}

.payment-toast-list {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.patient-toast-message.payment-success-toast {
  box-sizing: border-box;
  width: 356px;
  min-width: 356px;
  max-width: 356px;
  height: 53.5px;
  min-height: 53.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgb(191, 252, 217);
  border-radius: 8px;
  background: rgb(236, 253, 243);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  color: rgb(0, 138, 46);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  text-align: start;
}

.payment-success-toast-icon {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: rgb(0, 138, 46);
}

/* Real platform accounts and granular access control */
.forced-password-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #f3f6fa;
}

.forced-password-panel {
  width: min(100%, 480px);
  display: grid;
  gap: 16px;
  padding: 36px;
  background: #fff;
  border: 1px solid #dfe5ed;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .1);
}

.forced-password-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #075fe5;
  background: #eaf2ff;
  border-radius: 8px;
}

.forced-password-eyebrow {
  margin: 4px 0 -10px;
  color: #075fe5;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.forced-password-panel h1 {
  margin: 0;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: 0;
}

.forced-password-panel > p:not(.forced-password-eyebrow) {
  margin: 0 0 6px;
  color: #667085;
  line-height: 22px;
}

.forced-password-panel label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
}

.forced-password-panel input:not([type="checkbox"]) {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  outline: none;
}

.forced-password-panel input:focus {
  border-color: #075fe5;
  box-shadow: 0 0 0 3px rgba(7, 95, 229, .12);
}

.forced-password-show {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  font-weight: 500 !important;
}

.forced-password-show input {
  width: 16px;
  height: 16px;
  accent-color: #075fe5;
}

.forced-password-panel .primary-button {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.forced-password-logout {
  justify-self: center;
  color: #667085;
  background: transparent;
}

.account-users-workspace {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.account-users-workspace .page-header {
  align-items: flex-end;
}

.account-users-workspace .page-header .primary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-users-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
}

.account-users-summary > div {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 18px 20px;
  border-right: 1px solid #e8edf3;
}

.account-users-summary > div:last-child {
  border-right: 0;
}

.account-users-summary strong {
  color: #101828;
  font-size: 24px;
  line-height: 28px;
}

.account-users-summary span {
  color: #667085;
  font-size: 13px;
}

.account-users-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.account-users-search {
  width: min(420px, 100%);
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  color: #667085;
}

.account-users-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
}

.account-users-loading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #667085;
  font-size: 13px;
}

.account-users-table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid #dfe5ed;
  border-radius: 8px;
}

.account-users-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.account-users-table th {
  padding: 12px 14px;
  color: #475467;
  background: #f5f8fc;
  border-bottom: 1px solid #dfe5ed;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.account-users-table td {
  padding: 14px;
  border-bottom: 1px solid #edf0f4;
  color: #344054;
  vertical-align: middle;
}

.account-users-table tbody tr:last-child td {
  border-bottom: 0;
}

.account-users-table tr[data-inactive="true"] {
  background: #fafafa;
  opacity: .72;
}

.account-user-identity {
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.account-user-identity > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.account-user-identity strong,
.account-user-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-user-identity small {
  color: #667085;
  font-size: 12px;
  line-height: 18px;
}

.account-user-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  color: #075fe5;
  background: #eaf2ff;
  border-radius: 50%;
  font-weight: 700;
}

.account-role-badge,
.account-source-badge,
.account-state-badge,
.account-password-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}

.account-role-badge {
  color: #1d4ed8;
  background: #eaf2ff;
}

.account-role-badge.role-admin {
  color: #7a2e0e;
  background: #fff1e8;
}

.account-role-badge.role-reception {
  color: #166534;
  background: #eaf8ee;
}

.account-role-badge.role-assistant {
  color: #6b3da8;
  background: #f3edff;
}

.account-source-badge {
  color: #075fe5;
  background: #edf4ff;
}

.account-source-badge.local {
  color: #667085;
  background: #f2f4f7;
}

.account-state-badge.active {
  color: #166534;
  background: #e9f8ed;
}

.account-state-badge.inactive {
  color: #9f1d1d;
  background: #feeeee;
}

.account-password-state {
  display: flex;
  width: max-content;
  margin-top: 5px;
  color: #9a6700;
  background: #fff6d8;
}

.account-permissions-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: #075fe5;
  background: #fff;
  border: 1px solid #bfd4f6;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.account-users-actions {
  display: inline-flex;
  gap: 2px;
  white-space: nowrap;
}

.account-users-actions-heading {
  width: 150px;
}

.account-users-empty {
  height: 120px;
  color: #667085 !important;
  text-align: center;
}

.managed-user-modal {
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
}

.managed-user-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.managed-user-form label,
.temporary-credential-modal label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

.managed-user-form input,
.managed-user-form select,
.managed-user-form textarea,
.temporary-credential-modal input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  outline: none;
  background: #fff;
}

.managed-user-form textarea {
  resize: vertical;
}

.managed-user-form input:focus,
.managed-user-form select:focus,
.managed-user-form textarea:focus {
  border-color: #075fe5;
  box-shadow: 0 0 0 3px rgba(7, 95, 229, .12);
}

.managed-user-form .wide {
  grid-column: 1 / -1;
}

.managed-user-active {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e3e8ef;
  border-radius: 6px;
}

.managed-user-active input {
  width: 17px;
  min-height: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: #075fe5;
}

.managed-user-active span {
  display: grid;
  gap: 1px;
}

.managed-user-active small {
  color: #667085;
  font-weight: 400;
}

.managed-permissions-modal {
  width: min(1180px, calc(100vw - 32px));
  max-width: 1180px;
}

.managed-permissions-admin-note,
.temporary-credential-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 11px 12px;
  color: #075fe5;
  background: #edf4ff;
  border: 1px solid #cfe0fa;
  border-radius: 6px;
}

.managed-permissions-scroll {
  max-height: min(62vh, 620px);
  overflow: auto;
  border: 1px solid #dfe5ed;
  border-radius: 6px;
}

.managed-permissions-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.managed-permissions-table th,
.managed-permissions-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #edf0f4;
  text-align: center;
}

.managed-permissions-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #475467;
  background: #f6f8fb;
  font-size: 12px;
  font-weight: 600;
}

.managed-permissions-table thead th:first-child,
.managed-permissions-table tbody td:first-child {
  min-width: 260px;
  text-align: left;
}

.managed-permissions-table input {
  width: 17px;
  height: 17px;
  accent-color: #075fe5;
}

.managed-permissions-group th {
  padding: 9px 10px;
  color: #075fe5;
  background: #f0f5fd;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
}

.managed-permissions-modal .modal-actions {
  margin-top: 16px;
}

.managed-user-action-modal {
  width: min(500px, calc(100vw - 32px));
}

.managed-user-action-modal p {
  margin: 0;
  color: #475467;
  line-height: 23px;
}

.temporary-credential-modal {
  width: min(560px, calc(100vw - 32px));
}

.temporary-credential-modal label {
  margin-top: 13px;
}

.temporary-credential-modal input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.temporary-credential-modal .modal-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

@media (max-width: 900px) {
  .forced-password-screen {
    padding: 16px;
  }

  .forced-password-panel {
    padding: 24px;
  }

  .account-users-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-users-summary > div:nth-child(2) {
    border-right: 0;
  }

  .account-users-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e8edf3;
  }

  .managed-user-form {
    grid-template-columns: 1fr;
  }

  .managed-user-form .wide {
    grid-column: auto;
  }
}
.identity-quality-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.identity-quality-heading .row-action {
  flex: 0 0 auto;
}

.identity-quality-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.identity-quality-metrics > span {
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #f8fafc;
  color: #5f6b7a;
  font-size: 13px;
}

.identity-quality-metrics strong {
  display: block;
  margin-bottom: 4px;
  color: #142033;
  font-size: 22px;
}

.identity-quality-metrics .complete {
  border-color: #bde5ce;
  background: #f1fbf5;
}

.identity-quality-metrics .warning {
  border-color: #f0d7a5;
  background: #fff9ed;
}

.identity-review-candidates {
  display: grid;
  gap: 8px;
  min-width: 340px;
}

.identity-review-candidates a {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid #dde4ed;
  border-radius: 7px;
  background: #fff;
  color: #142033;
  text-decoration: none;
}

.identity-review-candidates a:hover {
  border-color: #8fb5ef;
  background: #f6f9ff;
}

.identity-review-candidates span {
  color: #667386;
  font-size: 12px;
}

.identity-review-table-wide {
  grid-column: 1 / -1;
  min-width: 0;
}

.identity-review-table-wide .table-wrap {
  width: 100%;
}

@media (max-width: 760px) {
  .identity-quality-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .identity-quality-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .identity-review-candidates {
    min-width: 260px;
  }
}

@media (max-width: 520px) {
  .dentalome-patient-identity {
    width: 100%;
    max-width: 100%;
  }

  .dentalome-patient-identity > .patient-profile-main {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
  }

  .dentalome-patient-identity > .patient-profile-actions {
    width: 80px;
    min-width: 80px;
    flex: 0 0 80px;
  }

  .patient-profile-actions > button:first-child {
    width: 36px;
    min-width: 36px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .patient-profile-actions > .archive-action {
    display: none !important;
  }

  .patient-profile-actions > .patient-actions-menu {
    display: block !important;
    flex: 0 0 36px;
  }

  .patient-header-tabs-shell {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .patient-header-tabs-shell::-webkit-scrollbar {
    display: none;
  }

  .radiology-filter button {
    padding: 0 4px;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* Keep the overdue report overrides after the source-parity stylesheet. */
.dashboard-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.payments-tabs.dentalome-segmented-tabs {
  width: max-content;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 900px) {
  .dashboard-summary-grid,
  .overdue-unpaid-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-summary-card:last-child {
    grid-column: auto;
  }
}

@media (max-width: 639px) {
  .dashboard-summary-grid,
  .overdue-unpaid-summary {
    grid-template-columns: 1fr;
  }

  .payments-tabs.dentalome-segmented-tabs {
    display: grid;
    width: 100%;
  }
}

/* Final patient-act geometry: tooth badges wrap inside their own column.
   Keep this at the end of the cascade because legacy parity rules above
   intentionally calibrate the same table selectors. */
.patient-current-operations-table {
  width: max(100%, 1360px) !important;
  min-width: 1360px !important;
  table-layout: fixed !important;
}

.patient-plan-operations-table {
  width: max(100%, 1120px) !important;
  min-width: 1120px !important;
  table-layout: fixed !important;
}

.patient-current-operations-columns .operation-select-column { width: 65px !important; }
.patient-current-operations-columns .operation-date-column { width: 110px !important; }
.patient-current-operations-columns .operation-teeth-column { width: 150px !important; }
.patient-current-operations-columns .operation-act-column { width: 365px !important; }
.patient-current-operations-columns .operation-price-column,
.patient-current-operations-columns .operation-received-column,
.patient-current-operations-columns .operation-remaining-column { width: 90px !important; }
.patient-current-operations-columns .operation-status-column { width: 120px !important; }
.patient-current-operations-columns .operation-actions-column { width: 280px !important; }

.patient-plan-operations-columns .operation-select-column { width: 70px !important; }
.patient-plan-operations-columns .operation-date-column { width: 120px !important; }
.patient-plan-operations-columns .operation-teeth-column { width: 150px !important; }
.patient-plan-operations-columns .operation-act-column { width: 400px !important; }
.patient-plan-operations-columns .operation-price-column { width: 120px !important; }
.patient-plan-operations-columns .operation-actions-column { width: 260px !important; }

.patient-current-operations-table tbody tr,
.patient-current-operations-table th,
.patient-current-operations-table td,
.patient-plan-operations-table tbody tr,
.patient-plan-operations-table th,
.patient-plan-operations-table td {
  height: auto !important;
}

.patient-current-operations-table tbody tr,
.patient-plan-operations-table tbody tr {
  min-height: 56px;
}

.patient-current-operations-table th,
.patient-current-operations-table td,
.patient-plan-operations-table th,
.patient-plan-operations-table td {
  position: static !important;
  left: auto !important;
  min-width: 0 !important;
  transform: none !important;
  vertical-align: middle;
}

.patient-current-operations-table th:nth-child(3),
.patient-current-operations-table td:nth-child(3),
.patient-plan-operations-table th:nth-child(3),
.patient-plan-operations-table td:nth-child(3) {
  overflow: hidden;
  white-space: normal !important;
}

.patient-current-operations-table td:nth-child(3),
.patient-plan-operations-table td:nth-child(3) {
  padding-top: 10px;
  padding-bottom: 10px;
}

.patient-current-operations-table td:nth-child(3) .teeth-pills,
.patient-plan-operations-table td:nth-child(3) .teeth-pills {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  align-content: center;
  gap: 4px;
  overflow: hidden;
  white-space: normal !important;
}

.patient-current-operations-table td:nth-child(3) .teeth-pills b,
.patient-plan-operations-table td:nth-child(3) .teeth-pills b {
  flex: 0 0 auto;
}

.patient-current-operations-table td:nth-child(4) .operation-name,
.patient-plan-operations-table td:nth-child(4) .operation-name {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal !important;
  overflow-wrap: anywhere;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.patient-current-operations-table td:nth-child(5),
.patient-current-operations-table td:nth-child(6),
.patient-current-operations-table td:nth-child(7),
.patient-current-operations-table td:nth-child(8),
.patient-current-operations-table td:nth-child(9) {
  white-space: nowrap;
}

.patient-plan-operations-table td:nth-child(5),
.patient-plan-operations-table td:nth-child(6) {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .medications-workspace .catalog-toolbar-row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }

  .medications-workspace .medication-toolbar-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .medications-workspace .catalog-toolbar-row,
  .medications-workspace .medication-toolbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .medications-workspace .medication-scope-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .medications-workspace .medication-scope-tabs button:first-child,
  .medications-workspace .medication-scope-tabs button:last-child,
  .medications-workspace .medication-category-filter,
  .medications-workspace .medication-search-input,
  .medications-workspace .dentalome-blue-button {
    width: 100%;
    min-width: 0;
  }

  .medications-workspace .medication-category-filter {
    flex-basis: auto;
  }
}

/* Six-month YCloud recall workspace only; daily reminder styles remain unchanged. */
.prevention-v2 {
  display: grid;
  gap: 16px;
  min-width: 0;
  color: #172b4d;
}
.prevention-v2 *, .prevention-v2-dialog * { box-sizing: border-box; }
.prevention-v2 button, .prevention-v2-dialog button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid #d6deea;
  border-radius: 9px;
  background: #fff;
  color: #294260;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
}
.prevention-v2 button:hover:not(:disabled), .prevention-v2-dialog button:hover:not(:disabled) { border-color: #447ac4; background: #f1f6ff; }
.prevention-v2 button:disabled, .prevention-v2-dialog button:disabled { opacity: .5; cursor: not-allowed; }
.prevention-v2 button:focus-visible, .prevention-v2-dialog button:focus-visible,
.prevention-v2 input:focus-visible, .prevention-v2-dialog input:focus-visible,
.prevention-v2 select:focus-visible, .prevention-v2 summary:focus-visible { outline: 3px solid #90b7ed; outline-offset: 3px; }
.prevention-v2 button.primary, .prevention-v2-dialog button.primary { background: #1160c9; border-color: #1160c9; color: #fff; }
.prevention-v2 button.primary:hover:not(:disabled), .prevention-v2-dialog button.primary:hover:not(:disabled) { background: #084eab; color: #fff; }
.prevention-v2-head { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; }
.prevention-v2-head > div { min-width: 0; }
.prevention-v2-head > button { flex-shrink: 0; }
.prevention-v2-eyebrow { color: #1160c9; text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .07em; }
.prevention-v2-head h2, .prevention-v2-dialog h2 { margin: 7px 0; font-size: 23px; line-height: 1.25; color: #183553; }
.prevention-v2-head p, .prevention-v2-dialog header p { margin: 0; color: #5c6c81; line-height: 1.55; font-size: 13px; }
.prevention-v2-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid #dbe3ed; padding-bottom: 12px; }
.prevention-v2-tabs button[aria-selected="true"], .prevention-v2-status-filters button[aria-pressed="true"], .prevention-v2-recipients button[aria-pressed="true"] { background: #e9f2ff; border-color: #73a3e4; color: #0b58b8; }
.prevention-v2-tabs strong { padding: 2px 7px; border-radius: 6px; background: #dce9fa; }
.prevention-v2-alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; background: #eef5ff; border: 1px solid #d4e3f8; border-radius: 10px; color: #315781; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.prevention-v2-alert > svg { flex-shrink: 0; margin-top: 2px; }
.prevention-v2-alert.danger { background: #fff4f3; border-color: #edc8c4; color: #a72e2b; }
.prevention-v2-template { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 18px; border: 1px solid #e3d6bc; background: #fffaf0; border-radius: 12px; }
.prevention-v2-template.ready { border-color: #b9dbd1; background: #f3fbf7; }
.prevention-v2-template p { margin: 5px 0; font-size: 13px; overflow-wrap: anywhere; }
.prevention-v2-template small { color: #657588; font-size: 11px; }
.prevention-v2-template button { flex-shrink: 0; }
.prevention-v2-muted { margin: 0; color: #67778b; font-size: 12px; line-height: 1.55; }
.prevention-v2-search { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 12px; border: 1px solid #d8e1ed; border-radius: 10px; background: #fff; color: #6a7b90; }
.prevention-v2-search > svg { flex-shrink: 0; }
.prevention-v2-search input { flex: 1; min-width: 0; width: 100%; height: 30px; padding: 0; border: 0; background: transparent; color: #183553; font: inherit; font-size: 13px; }
.prevention-v2-search button { min-height: 32px; padding-block: 6px; }
.prevention-v2-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; }
.prevention-v2-list { display: grid; gap: 12px; min-width: 0; }
.prevention-v2-card { display: grid; gap: 14px; min-width: 0; padding: 18px 20px; border: 1px solid #dce4ee; border-radius: 12px; background: #fff; }
.prevention-v2-patient { display: grid; gap: 5px; min-width: 0; width: 100%; }
.prevention-v2 .prevention-v2-patient button { display: block; min-width: 0; width: 100%; height: auto; min-height: 0; padding: 0; border: 0; background: transparent; color: #173857; text-align: left; font-size: 17px; font-weight: 750; line-height: 1.5; }
.prevention-v2 .prevention-v2-patient button:hover:not(:disabled) { color: #0b60c5; background: transparent; text-decoration: underline; }
.prevention-v2-patient button, .prevention-v2-patient strong, .prevention-v2-patient span,
.prevention-v2-recipients strong, .prevention-v2-recipients span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; max-width: none; }
.prevention-v2-patient > span { color: #61738b; font-size: 13px; line-height: 1.5; }
.prevention-v2-card-meta { display: grid; grid-template-columns: 1fr 1fr 2fr auto; gap: 18px; align-items: center; border-top: 1px solid #edf1f6; padding-top: 13px; }
.prevention-v2-card-meta > div { display: grid; min-width: 0; gap: 4px; }
.prevention-v2-card-meta span { color: #758296; font-size: 11px; }
.prevention-v2-card-meta strong { color: #354d68; font-size: 13px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.prevention-v2-empty { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px; background: #fff; border: 1px dashed #dce4ee; border-radius: 12px; color: #6e7f95; }
.prevention-v2-pagination { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; color: #61728a; font-size: 12px; }
.prevention-v2-pagination > div { display: flex; gap: 10px; align-items: center; }
.prevention-v2-tracking-controls { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(170px, 260px); gap: 14px; }
.prevention-v2-filter { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #61728a; }
.prevention-v2-filter select { min-width: 0; width: 100%; padding: 12px; border: 1px solid #d8e1ed; border-radius: 10px; background: #fff; color: #233f60; font: inherit; font-size: 13px; }
.prevention-v2-status-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.prevention-v2-status-filters button { justify-content: space-between; gap: 8px; min-width: 0; text-align: left; font-size: 11px; }
.prevention-v2-status-filters strong { font-size: 17px; }
.prevention-v2-poll, .prevention-v2-confirmations label { display: flex; gap: 10px; align-items: flex-start; color: #50647f; font-size: 12px; line-height: 1.6; }
.prevention-v2-poll input, .prevention-v2-confirmations input { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 2px; accent-color: #1160c9; }
.prevention-v2-batch { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-width: 0; color: #61728a; font-size: 12px; }
.prevention-v2-batch code { overflow-wrap: anywhere; }
.prevention-v2-tracking-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 250px); gap: 16px; align-items: start; }
.prevention-v2-status { display: grid; gap: 4px; padding: 8px 10px; border: 1px solid #dbe4ef; border-radius: 9px; background: #f3f6fa; }
.prevention-v2-status strong { font-size: 12px; }
.prevention-v2-status span { font-size: 10px; line-height: 1.45; }
.prevention-v2-status.waiting { background: #fff9eb; border-color: #eadab0; color: #8d6417; }
.prevention-v2-status.success { background: #effaf4; border-color: #b9deca; color: #247c56; }
.prevention-v2-status.danger { background: #fff3f1; border-color: #edc8c4; color: #ae3e36; }
.prevention-v2-status.warning { background: #fff5e8; border-color: #e6cdab; color: #975e17; }
.prevention-v2-delivery { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-block: 10px; border-top: 1px solid #edf1f6; border-bottom: 1px solid #edf1f6; color: #64758d; font-size: 11px; }
.prevention-v2-reply { display: grid; gap: 6px; padding: 12px; border-left: 3px solid #91bda7; border-radius: 0 8px 8px 0; background: #f7fbf9; }
.prevention-v2-reply.uncertain { border-color: #d6ad70; background: #fffbf4; }
.prevention-v2-reply > strong { font-size: 12px; }
.prevention-v2-reply > span, .prevention-v2-reply small { font-size: 11px; color: #60718b; }
.prevention-v2-reply blockquote, .prevention-v2-reply p { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; color: #244360; }
.prevention-v2-error-detail { margin: 0; color: #a33e35; font-size: 12px; overflow-wrap: anywhere; }
.prevention-v2-message-details summary { color: #3d638b; font-size: 12px; cursor: pointer; }
.prevention-v2-message-details small { display: block; color: #718096; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; margin-top: 10px; }
.prevention-v2-message { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; font-size: 14px; color: #203b59; }
.prevention-v2 .prevention-v2-reconcile { justify-self: start; flex-wrap: wrap; font-size: 12px; }
.prevention-v2-reconcile small { font-weight: 450; color: #728297; }
.prevention-v2-backdrop { position: fixed; z-index: 1500; inset: 0; padding: 24px; display: flex; align-items: center; justify-content: center; background: rgb(17 32 54 / .58); }
.prevention-v2-dialog { display: flex; flex-direction: column; width: min(100%, 940px); max-height: calc(100dvh - 48px); min-height: 0; background: #fff; border: 1px solid #d4deeb; border-radius: 16px; box-shadow: 0 24px 90px #101c3659; color: #1d3a59; outline: none; }
.prevention-v2-dialog > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 20px 24px; border-bottom: 1px solid #e1e7f0; flex-shrink: 0; }
.prevention-v2-dialog > header > div { min-width: 0; }
.prevention-v2-dialog > header > button { flex-shrink: 0; }
.prevention-v2-dialog h2 { font-size: 21px; overflow-wrap: anywhere; }
.prevention-v2-dialog-body { display: grid; gap: 16px; padding: 20px 24px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.prevention-v2-dialog h3 { margin: 8px 0 0; font-size: 16px; }
.prevention-v2-preview-template { display: flex; align-items: flex-start; gap: 16px; padding: 16px; border: 1px solid #dde6ef; border-radius: 10px; background: #f7faff; }
.prevention-v2-preview-template img { width: 120px; height: auto; border-radius: 8px; }
.prevention-v2-preview-template > div { min-width: 0; }
.prevention-v2-preview-template strong { font-size: 12px; overflow-wrap: anywhere; }
.prevention-v2-preview-template p { font-size: 12px; color: #60778f; margin: 9px 0; }
.prevention-v2-recipients { margin: 0; padding-left: 28px; }
.prevention-v2-recipients li { padding: 12px 2px 12px 6px; border-bottom: 1px solid #e4eaf2; font-size: 12px; }
.prevention-v2-recipients li > div { display: grid; gap: 5px; margin-bottom: 8px; }
.prevention-v2-recipients strong { font-size: 14px; line-height: 1.55; }
.prevention-v2-recipients span, .prevention-v2-recipients small { color: #657890; line-height: 1.5; }
.prevention-v2-recipients button { padding: 5px 10px; min-height: 30px; font-size: 11px; }
.prevention-v2-confirmations { display: grid; gap: 14px; padding: 16px; border: 1px solid #c5d8ee; background: #f4f8fd; border-radius: 10px; }
.prevention-v2-dialog > footer { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid #e1e7f0; flex-shrink: 0; }
@media (max-width: 900px) {
  .prevention-v2-status-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prevention-v2-template { align-items: flex-start; flex-direction: column; }
  .prevention-v2-card-meta { grid-template-columns: 1fr 1fr; }
  .prevention-v2-card-meta > button { justify-self: start; }
}
@media (max-width: 600px) {
  .prevention-v2-head { flex-direction: column; gap: 12px; }
  .prevention-v2-head h2 { font-size: 21px; }
  .prevention-v2-tracking-controls, .prevention-v2-tracking-head { grid-template-columns: minmax(0, 1fr); }
  .prevention-v2-status-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prevention-v2-card { padding: 15px; }
  .prevention-v2 .prevention-v2-patient button { font-size: 16px; }
  .prevention-v2-pagination { align-items: flex-start; }
  .prevention-v2-pagination > div { width: 100%; justify-content: space-between; gap: 6px; }
  .prevention-v2-pagination button { font-size: 11px; padding-inline: 9px; }
  .prevention-v2-batch { flex-direction: column; align-items: flex-start; }
  .prevention-v2-backdrop { padding: 10px; }
  .prevention-v2-dialog { max-height: calc(100dvh - 20px); border-radius: 12px; }
  .prevention-v2-dialog > header, .prevention-v2-dialog-body { padding: 16px; }
  .prevention-v2-dialog h2 { font-size: 18px; }
  .prevention-v2-preview-template { flex-direction: column; }
  .prevention-v2-preview-template img { width: 90px; }
  .prevention-v2-dialog > footer { padding: 12px 16px; flex-wrap: wrap; }
  .prevention-v2-dialog > footer > .primary { width: 100%; }
}

/* Individual manual six-month drafts; scoped separately from daily reminders. */
.prevention-v2-actions { display: flex !important; flex-direction: column; align-items: stretch; gap: 8px !important; }
.prevention-v2-manual-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.prevention-v2-manual-identity { display: grid; gap: 7px; min-width: 0; }
.prevention-v2-manual-identity strong { color: #173857; font-size: 19px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.prevention-v2-manual-identity span, .prevention-v2-manual-identity small { color: #61738b; line-height: 1.55; overflow-wrap: anywhere; }
.prevention-v2-manual-identity span { font-size: 14px; }
.prevention-v2-manual-report { display: grid; gap: 14px; border-top: 1px solid #dbe4ef; padding-top: 16px; }
.prevention-v2-manual-report fieldset { display: grid; gap: 12px; margin: 0; padding: 15px; border: 1px solid #c5d8ee; border-radius: 10px; }
.prevention-v2-manual-report legend { padding-inline: 6px; color: #294866; font-size: 13px; font-weight: 650; }
.prevention-v2-manual-report fieldset label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.6; }
.prevention-v2-manual-report input[type="radio"] { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 3px; accent-color: #1160c9; }
.prevention-v2-manual-response { display: grid; gap: 9px; font-size: 13px; color: #294866; }
.prevention-v2-manual-response textarea { width: 100%; min-width: 0; resize: vertical; padding: 12px; border: 1px solid #c5d8ee; border-radius: 10px; font: inherit; line-height: 1.6; }
.prevention-v2-manual-response textarea:focus-visible, .prevention-v2-web-link:focus-visible { outline: 3px solid #90b7ed; outline-offset: 3px; }
.prevention-v2-web-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border: 1px solid #1b7554; border-radius: 10px; background: #f0faf5; color: #166b4b; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.prevention-v2-web-link:hover { background: #e2f5eb; text-decoration: underline; }
.prevention-v2-manual-dialog .prevention-v2-preview-template p.prevention-v2-message { color: #203b59; font-size: 14px; }
@media (max-width: 600px) {
  .prevention-v2-card-meta > .prevention-v2-actions { grid-column: 1 / -1; }
  .prevention-v2-manual-actions { align-items: stretch; flex-direction: column; }
  .prevention-v2-manual-identity strong { font-size: 17px; }
}
/* Keep both the body and actions within the actual viewport, including mobile keyboards. */
.patient-form-modal {
  box-sizing: border-box;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}
.patient-form-modal .dentalome-patient-form { min-height: 0; overflow: hidden; }
.patient-form-modal .patient-form-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.patient-form-modal .modal-head,
.patient-form-modal .modal-actions { flex-shrink: 0; }
.patient-form-modal .modal-actions { position: relative; flex: 0 0 auto; flex-wrap: wrap; height: auto; min-height: 0; }
.patient-form-modal.patient-quick-add-modal .patient-form-scroll { min-height: 0; overflow-y: auto; overflow-x: hidden; }
.patients-filter-row { flex-wrap: wrap; }
.patients-filter-row .patients-search-input { flex: 1 1 240px; min-width: 0; max-width: 100%; }
@media (max-width: 639px) {
  .patient-form-modal { width: calc(100vw - 24px); padding: 18px 14px 12px; gap: 12px; }
  .patient-form-modal .modal-head { height: auto; min-height: 22px; flex-basis: auto; padding-right: 22px; }
  .patient-form-modal .modal-head h2 { line-height: 1.3; }
  .patient-form-modal .patient-form-scroll { display: grid; grid-template-columns: minmax(0, 1fr); }
  .patient-form-modal .patient-form-scroll > * { min-width: 0; grid-column: 1 / -1; }
  .patient-form-modal .modal-actions { display: flex; width: 100%; gap: 8px; padding: 10px 0 0; margin: 0; }
  .patient-form-modal .modal-actions .patient-history-button { flex: 1 0 100%; width: 100%; min-width: 0; }
  .patient-form-modal .modal-actions > button:not(.patient-history-button) { flex: 1 1 0; min-height: 44px; }
  .patients-filter-row > .dentalome-blue-button { width: 100%; min-height: 44px; justify-content: center; }
}
