/* V1 DOCUMENTS MOUNT — scoped adapter: fits the revamp Documents studio into the V1 page (workspace column of the V1
   shell). Only .v1ds-* wrappers are targeted; the V1 shell and the studio's page / PDF preview are not restyled. */
.v1ds-scope { min-width: 0; }
.v1ds-dossier { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.v1ds-dossier__legacy { min-width: 0; }

/* Studio dialogs render in a portal on <body> with the classes "odx-dossier odx-ds-backdrop". In the revamp <html> carries
   .odx-dossier, so studio.css addresses the backdrop as `.odx-dossier .odx-ds-backdrop`; here the scope is never put on
   <html>/<body>, so the same declarations are restated for the backdrop itself (studio.css lines 32, 34, 47, 309, 376). */
.odx-dossier.odx-ds-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgb(20 28 22 / .38); backdrop-filter: blur(3px); font-family: var(--odx-font); font-weight: 300; color: var(--odx-ink); font-size: 15px; }
.odx-dossier.odx-ds-backdrop * { box-sizing: border-box; }
.odx-dossier.odx-ds-backdrop :focus-visible { outline: 2px solid var(--ds-focus, #1f8f55); outline-offset: 2px; }
.odx-dossier.odx-ds-backdrop button { font-family: inherit; }
@media (max-width: 600px) { .odx-dossier.odx-ds-backdrop { padding: 10px; } }
.patient-smart-picker{position:relative;min-width:0}.patient-smart-picker>label{display:block;font-size:13px;font-weight:650;margin-bottom:7px}.patient-smart-input{display:flex;align-items:center;gap:8px;border:1px solid #dce5e3;border-radius:10px;padding:0 10px;background:#fff;color:#748782}.patient-smart-input:focus-within{border-color:#4b9684;box-shadow:0 0 0 3px #e8f5ef}.patient-smart-input input{border:0!important;background:transparent!important;box-shadow:none!important;outline:none;min-width:0;width:100%;padding:11px 0!important}.patient-smart-input button{border:0;background:none;color:#647c74;padding:3px;display:flex}.patient-smart-results{position:absolute;z-index:70;left:0;right:0;top:calc(100% - 4px);background:#fff;border:1px solid #dce5e3;box-shadow:0 12px 35px #263f3320;border-radius:12px;max-height:min(380px,50vh);overflow-y:auto;padding:5px}.patient-smart-current+.patient-smart-results{top:80px}.patient-smart-results>p,.patient-smart-results>small{display:block;padding:10px;font-size:12px;color:#6d807a}.patient-smart-results div>button{width:100%;border:0;background:#fff;padding:10px;border-radius:7px;display:flex;text-align:left;align-items:center;justify-content:space-between;gap:8px}.patient-smart-results div>button:hover,.patient-smart-results div>button.is-active{background:#edf6f1}.patient-suggestion-identity{min-width:0;display:flex;flex-direction:column;gap:4px}.patient-suggestion-identity>span{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.patient-suggestion-identity strong{font-size:13px;color:#2f4940}.patient-suggestion-identity>small{font-size:11px;color:#78877f;line-height:1.5}.patient-near-badge{background:#fff3d7;color:#846219;border-radius:20px;padding:2px 7px;font-size:10px;font-weight:600;white-space:nowrap;vertical-align:middle}.patient-near-heading{font-size:10px!important;text-transform:uppercase;letter-spacing:.06em;color:#927039;padding:8px 9px 3px;margin:0}.patient-smart-current{background:#f1f7f3;border:1px solid #e1ebe5;border-radius:9px;padding:9px;margin-top:9px}.patient-smart-current>small{display:block;font-size:10px;color:#779080;margin-bottom:5px}.patient-search-more{display:block;padding:10px;color:#71827a;font-size:11px}.search-result-name .patient-near-badge{margin-left:7px}.patient-smart-results p button{display:inline-flex;gap:4px;align-items:center;border:0;background:none;color:#317160;font-size:12px}
.rx-inbox{--rx-accent:#16796e;--rx-line:#e0e9e7;color:#203f3c;padding:30px;max-width:1680px;margin:auto}.rx-inbox button,.rx-inbox input,.rx-inbox select{font:inherit}.rx-inbox-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:26px}.rx-inbox-eyebrow{display:flex;align-items:center;gap:8px;color:#25887c;font-size:11px;letter-spacing:1.8px;font-weight:750}.rx-inbox h1{font-size:30px;letter-spacing:-1px;margin:9px 0}.rx-inbox-heading p{color:#728581;margin:0;font-size:14px}.rx-inbox-count{display:flex;align-items:center;gap:12px;background:#eaf5f1;border:1px solid #d6eae1;border-radius:16px;padding:17px 20px;white-space:nowrap}.rx-inbox-count strong{font-size:27px}.rx-inbox-count span{font-size:13px}.rx-inbox-toolbar{display:flex;gap:10px;align-items:center;background:white;border:1px solid var(--rx-line);border-radius:14px;padding:12px;margin-bottom:20px;flex-wrap:wrap}.rx-inbox-search{display:flex;gap:10px;align-items:center;border:1px solid #dae5e1;border-radius:9px;min-height:43px;padding:0 12px;background:#fff;flex:1;min-width:200px;color:#80928b}.rx-inbox-search input{border:0;outline:0;flex:1;min-width:0;background:none;color:#253e39;box-shadow:none;padding:10px 0;width:100%}.rx-inbox-toolbar select,.rx-inbox-toolbar input[type=date]{border:1px solid #dae5e1;border-radius:9px;padding:10px;background:#fbfdfc;color:#44605a;max-width:185px}.rx-inbox-toolbar>label:not(.rx-inbox-search){display:flex;gap:6px;align-items:center;font-size:12px;color:#70847e}.rx-inbox-layout{display:grid;grid-template-columns:350px minmax(0,1fr);gap:20px;align-items:start}.rx-inbox-list,.rx-inbox-detail{background:#fff;border:1px solid var(--rx-line);border-radius:17px;overflow:hidden}.rx-inbox-list-title{padding:20px;display:flex;flex-direction:column;gap:5px;border-bottom:1px solid #edf1ef}.rx-inbox-list-title span{font-size:12px;color:#7b8b85}.rx-inbox-list{max-height:calc(100vh - 240px);overflow:auto}.rx-inbox-item{width:100%;display:flex;align-items:center;gap:12px;padding:16px;background:white;border:0;border-bottom:1px solid #edf1ef;text-align:left;color:#36544d;cursor:pointer}.rx-inbox-item:hover{background:#f7fbf9}.rx-inbox-item.selected{background:#edf7f2;box-shadow:inset 3px 0 #228d79}.rx-inbox-mini{flex:0 0 67px;width:67px;height:59px;background:#102b2b;border-radius:8px;display:grid;place-items:center;overflow:hidden}.rx-inbox-mini img{width:100%;height:100%;object-fit:contain}.rx-inbox-item>span:nth-child(2){display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.rx-inbox-item strong{font-size:13px;overflow-wrap:anywhere}.rx-inbox-item small{font-size:10px;color:#80948b}.rx-inbox-item span span{font-size:11px;color:#6d827a}.rx-inbox-pagination{position:sticky;bottom:0;padding:13px;display:flex;justify-content:space-between;align-items:center;background:#fff;border-top:1px solid var(--rx-line);font-size:12px}.rx-inbox-pagination button,.rx-inbox-pages button{border:1px solid #dce6e2;background:white;border-radius:7px;padding:5px;color:#43685a}.rx-inbox button:disabled{opacity:.45;cursor:default}.rx-inbox-detail>header{display:flex;justify-content:space-between;align-items:center;padding:23px;gap:15px}.rx-inbox-detail h2{font-size:21px;margin:7px 0}.rx-inbox-detail header p{color:#7d9189;font-size:12px;margin:0}.rx-inbox-status{display:flex;align-items:center;gap:6px;background:#fff5df;color:#9b721b;font-size:11px;border-radius:20px;padding:8px 11px;white-space:nowrap}.rx-inbox-status.matched{background:#eaf5ef;color:#287d58}.rx-inbox-preview{background:#112729;min-height:235px;max-height:510px;display:flex;align-items:center;justify-content:center;color:#b3c9c4;text-align:center;overflow:hidden}.rx-inbox-preview img{width:100%;max-height:510px;object-fit:contain;display:block}.rx-inbox-preview>div{padding:40px}.rx-inbox-preview button{padding:9px;border-radius:8px;border:1px solid #aac5ba}.rx-inbox-pages{display:flex;gap:8px;padding:12px 23px;border-bottom:1px solid #edf1ef;overflow:auto}.rx-inbox-pages button{padding:7px 12px;white-space:nowrap}.rx-inbox-pages button[aria-pressed=true]{background:#e6f4ee;border-color:#5aa68f}.rx-inbox-association{padding:24px}.rx-inbox-association-title{display:flex;gap:13px;align-items:center}.rx-inbox-association-title>span{padding:10px;display:flex;border-radius:12px;background:#e9f5ee;color:#268564}.rx-inbox-association h3{font-size:16px;margin:0 0 6px}.rx-inbox-association p{font-size:12px;color:#7a8e85;margin:0}.rx-inbox-source-identity{margin:19px 0;padding:13px 16px;border-left:3px solid #d6e5de;background:#f7faf8;display:flex;flex-direction:column;gap:5px}.rx-inbox-source-identity>span{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#8a9a93}.rx-inbox-source-identity strong{font-size:13px}.rx-inbox-source-identity small{color:#7e9187}.rx-inbox-candidates{border:1px solid #dce7e1;max-height:240px;overflow:auto;border-radius:9px;margin-top:8px}.rx-inbox-candidates button{padding:12px 15px;display:flex;align-items:center;justify-content:space-between;border:0;border-bottom:1px solid #edf1ef;background:white;width:100%;text-align:left;color:#315548}.rx-inbox-candidates button:hover{background:#f0f8f3}.rx-inbox-candidates button span{display:flex;flex-direction:column;gap:5px}.rx-inbox-candidates strong{font-size:13px}.rx-inbox-candidates small{font-size:11px;color:#7a8d82}.rx-inbox-candidates>p{padding:15px}.rx-inbox-selected-patient,.rx-inbox-linked{display:flex;align-items:center;gap:13px;padding:16px;background:#eff8f2;border:1px solid #cae5d4;border-radius:10px;margin-top:13px;color:#2b7f59}.rx-inbox-selected-patient div,.rx-inbox-linked div{display:flex;flex-direction:column;gap:5px;flex:1}.rx-inbox-selected-patient span{font-size:12px;color:#6d8c7b}.rx-inbox-selected-patient button{border:0;background:none;color:#398364;font-size:12px}.rx-inbox-confirm-row{display:flex;gap:15px;justify-content:space-between;align-items:center;margin-top:20px}.rx-inbox-confirm-row>span{font-size:11px;color:#8d9d94}.rx-inbox .primary-button{background:#177c66;color:white;border:0;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 17px;font-size:12px;font-weight:650}.rx-inbox-success,.rx-inbox-error{display:flex;gap:12px;align-items:center;padding:13px 16px;margin-bottom:15px;border-radius:10px;font-size:13px}.rx-inbox-success{background:#e6f5ec;color:#267a50}.rx-inbox-error{background:#fff0ec;color:#a14c3a}.rx-inbox-success button,.rx-inbox-error button{margin-left:auto;border:0;background:none;color:inherit;display:flex}.rx-inbox-empty{padding:35px;text-align:center;color:#91a399;display:flex;flex-direction:column;align-items:center;gap:12px;font-size:13px}.rx-inbox-empty h3,.rx-inbox-empty h2{margin:0}.rx-inbox-empty p{font-size:12px;margin:0;line-height:1.7}.rx-inbox-pick{padding:110px 35px}.rx-inbox-failures{background:#fff8ee;border:1px solid #f3dfbc;border-radius:11px;margin-top:20px;padding:16px;font-size:12px;color:#996e33}.rx-inbox-failures summary{display:flex;gap:10px;align-items:center;cursor:pointer}.rx-inbox-failures>div{display:flex;gap:15px;padding:8px 0}.rx-inbox-confirm-backdrop{position:fixed;inset:0;background:#08272370;z-index:1600;display:grid;place-items:center;padding:20px;backdrop-filter:blur(5px)}.rx-inbox-confirm-dialog{width:min(470px,100%);background:white;border-radius:22px;padding:30px;color:#31594b;box-shadow:0 25px 90px #07231d38}.rx-inbox-confirm-dialog h2{font-size:22px;margin:15px 0}.rx-inbox-confirm-dialog p{font-size:13px;line-height:1.7;color:#7c9185}.rx-inbox-confirm-dialog>div{display:flex;flex-direction:column;gap:7px;background:#edf7f0;padding:20px;border-radius:12px}.rx-inbox-confirm-dialog>div strong{font-size:17px}.rx-inbox-confirm-dialog>div span{font-size:13px}.rx-inbox-confirm-dialog footer{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}.rx-inbox-confirm-dialog footer>button:not(.primary-button){border:1px solid #dce6df;background:white;border-radius:9px;padding:10px;color:#608171}.rx-inbox-linked a{display:flex;align-items:center;gap:7px;color:#21815d;font-size:12px}.rx-notification-group{padding:16px;border-bottom:1px solid #e5ede8;background:#f5faf7}.rx-notification-group>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.rx-notification-group header strong{display:flex;gap:7px;align-items:center;font-size:13px;color:#36795f}.rx-notification-group a{font-size:11px;color:#34755d;text-decoration:none}.rx-notification-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 0}.rx-notification-row>a{display:flex;flex-direction:column;gap:4px;font-size:12px}.rx-notification-row small{color:#8da092;font-size:10px}.rx-notification-row button{border:0;border-radius:7px;background:#e7f2ea;padding:6px;color:#43845f;font-size:10px}.rx-notification-backlog{display:flex;gap:7px;padding:12px;background:#eaf4ec;border-radius:8px;margin-top:7px;align-items:center}.rx-notification-group>p{font-size:11px;color:#81978a}.rx-inbox button:focus-visible,.rx-inbox a:focus-visible,.rx-inbox input:focus-visible,.rx-inbox select:focus-visible{outline:3px solid #6dc5a2;outline-offset:2px}
@media(max-width:1150px){.rx-inbox{padding:20px}.rx-inbox-layout{grid-template-columns:290px minmax(0,1fr)}.rx-inbox-toolbar{gap:7px}.rx-inbox-association{padding:18px}.rx-inbox-confirm-row{flex-wrap:wrap}.rx-inbox-confirm-row .primary-button{margin-left:auto}}
@media(max-width:780px){.rx-inbox{padding:16px}.rx-inbox h1{font-size:25px}.rx-inbox-heading{align-items:flex-start;gap:12px}.rx-inbox-heading p{font-size:12px}.rx-inbox-count{padding:12px;gap:7px;flex-wrap:wrap}.rx-inbox-count strong{font-size:22px}.rx-inbox-count>svg{display:none}.rx-inbox-layout{grid-template-columns:1fr}.rx-inbox-list{max-height:310px}.rx-inbox-detail>header{padding:17px}.rx-inbox-toolbar>.rx-inbox-search{flex-basis:100%}.rx-inbox-toolbar select{flex:1;max-width:100%;min-width:130px}.rx-inbox-toolbar input[type=date]{max-width:135px}.rx-inbox-confirm-row .primary-button{width:100%}.rx-inbox-preview{min-height:180px}.rx-inbox-confirm-dialog{padding:23px}.rx-inbox-failures>div{flex-direction:column;gap:4px}}

.rx-inbox-connection{display:inline-flex;align-items:center;gap:6px;margin-top:12px;font-size:11px;color:#83928b}.rx-inbox-connection i{height:6px;width:6px;border-radius:50%;background:#d4a758}.rx-inbox-connection.online{color:#327a58}.rx-inbox-connection.online i{background:#43a777}

.rx-reception-health{border:1px solid #dbe6f1;background:#fff;border-radius:13px;margin:16px 0 21px;padding:16px 18px;color:#405673}.rx-reception-health>header{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700}.rx-reception-health>header>span{display:flex;align-items:center;gap:8px}.rx-reception-health .online{color:#218468}.rx-reception-health .offline{color:#a17138}.rx-reception-health>header button{border:0;background:#f2f6fb;color:#6a839f;border-radius:7px;padding:7px;cursor:pointer}.rx-reception-stages{display:flex;align-items:center;gap:15px;padding:18px 0 12px}.rx-reception-stages>div{display:flex;align-items:flex-start;gap:8px;flex:1;color:#8796a9;font-size:12px}.rx-reception-stages>div.complete{color:#367269}.rx-reception-stages small{display:block;color:#8c9bad;margin-top:5px;font-size:10px;line-height:1.6}.rx-reception-stages>svg{color:#bcc7d4;flex:none}.rx-reception-help{font-size:11px;line-height:1.7;color:#8291a6;margin:8px 0 0}.rx-reception-help a{display:inline-block;margin-left:8px;color:#2d6ac0}.rx-reception-warning{display:flex;gap:8px;align-items:center;font-size:12px;line-height:1.6;background:#fff6e8;border-radius:8px;padding:11px;color:#a07430}.rx-reception-health details{border-top:1px solid #e8edf4;margin-top:13px;padding-top:12px;font-size:11px;color:#8092a9}.rx-reception-health summary{cursor:pointer;color:#617d9d}.rx-reception-health dl{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin-bottom:12px}.rx-reception-health dt{font-size:10px}.rx-reception-health dd{margin:5px 0;color:#3b5576;font-size:12px;font-weight:650}.rx-reception-health details p{font-size:10px;line-height:1.6}.rx-reception-issues{color:#ad7932;font-size:11px;display:inline-block;margin-top:10px}@media(max-width:700px){.rx-reception-stages{display:block}.rx-reception-stages>div{margin:12px 0}.rx-reception-stages>svg{display:none}.rx-reception-health dl{grid-template-columns:1fr 1fr}.rx-reception-health{padding:13px}}
/* Odontiax application shell (P2a) — the window every module opens in, built on the dossier's design system
   (dossier/theme/tokens.css + primitives.css, dossier/shell/shell.css popovers). All classes carry "odx-a-" so the
   shared restyle (which skips [class*="odx-"]) never touches them. Desktop geometry = the dossier's: same canvas
   offsets, same window, same 111-unit top bar with the brand block 366.26 wide, so moving between a module and a
   patient dossier never moves the logo, the navigation or the round buttons. Under 1180 px the menu becomes a sheet. */
/* Odontiax dossier — product typeface (Outfit, SIL OFL), four static weights.
   The files live next to this sheet (apps/web/public is a link into a read-only
   platform folder, so nothing is written there). Vite rewrites these relative URLs. */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300;
  font-display: block;
  src: url("/assets/Outfit-Light-BCN5VFdt.ttf") format("truetype");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/assets/Outfit-Regular-BlL8FXaZ.ttf") format("truetype");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("/assets/Outfit-Medium-B8Iwa1n1.ttf") format("truetype");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url("/assets/Outfit-SemiBold-Dyrk4jTU.ttf") format("truetype");
}
/* Odontiax patient dossier — design tokens measured on the owner's reference image
   (reference/reference-design.png, 2000 x 1500; numbers in reference/measurements.json).

   Every length is written in REFERENCE PIXELS multiplied by --odx-u. At a 2000 px wide
   container 1 unit = 1 reference pixel, so the page reproduces the reference 1:1; the unit
   is clamped so the layout stays usable from 1280 to 2560 px wide (0.64 px .. 1.28 px).
   --odx-u is a registered <length>: it is computed once on .odx-dossier (against the nearest
   ancestor with container-type: inline-size, or the viewport when there is none) and
   inherited as an absolute length, so nested containers never change it. */
@property --odx-u {
  syntax: "<length>";
  inherits: true;
  initial-value: 1px;
}
.odx-dossier {
  /* --odx-page-px: page width in px written on <html> by the dossier app (scrollbar excluded); static pages without it
     (odx-kit.html) fall back to the nearest inline-size container or the viewport. */
  --odx-u: clamp(0.64px, var(--odx-page-px, 100cqw) / 2000, 1.28px);

  /* ---------- typeface ---------- */
  --odx-font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --odx-w-body: 300;      /* the reference's running text renders as Outfit Light */
  --odx-w-emph: 400;      /* buttons, active tab, breadcrumb current page, chip, nav pill */
  --odx-w-strong: 500;    /* patient first name, card sub-heading */
  --odx-lh-glyph: 1.26;   /* Outfit ascent 1000 + descent 260 per 1000 em: content-area height (baseline 1 em under the line top) */
  --odx-word-spacing: 0.02em; /* reference spaces are ~0.3 px wider than Outfit's under the negative tracking */

  /* @type-scale:start (written by reference/work/gen_kit.py from typetokens.py) */
  /* type scale: size in reference px, tracking in em, weight; fitted on the reference ink boxes with Outfit */
  --odx-fs-title-lg: calc(27.2 * var(--odx-u)); --odx-ls-title-lg: -0.047em; --odx-w-title-lg: 300; /* "Tooth Analysis" */
  --odx-fs-title: calc(26.15 * var(--odx-u)); --odx-ls-title: -0.036em; --odx-w-title: 300; /* card titles */
  --odx-fs-subtitle: calc(22.2 * var(--odx-u)); --odx-ls-subtitle: -0.009em; --odx-w-subtitle: 500; /* "Preventive Care" */
  --odx-fs-body-lg: calc(21.5 * var(--odx-u)); --odx-ls-body-lg: -0.0435em; --odx-w-body-lg: 300; /* AI paragraph */
  --odx-fs-nav: calc(21.3 * var(--odx-u)); --odx-ls-nav: -0.051em; --odx-w-nav: 300; /* top navigation */
  --odx-fs-nav-active: calc(21.3 * var(--odx-u)); --odx-ls-nav-active: -0.047em; --odx-w-nav-active: 400; /* nav pill label */
  --odx-fs-button: calc(21.15 * var(--odx-u)); --odx-ls-button: -0.032em; --odx-w-button: 400; /* "Schedule Appointment" */
  --odx-fs-value: calc(20.9 * var(--odx-u)); --odx-ls-value: -0.034em; --odx-w-value: 300; /* meta / case values, doctor name */
  --odx-fs-name: calc(20.6 * var(--odx-u)); --odx-ls-name: -0.018em; --odx-w-name: 300; /* patient last name */
  --odx-fs-doctor: calc(20.6 * var(--odx-u)); --odx-ls-doctor: -0.04em; --odx-w-doctor: 300; /* signed-in doctor name */
  --odx-fs-name-strong: calc(20.5 * var(--odx-u)); --odx-ls-name-strong: -0.052em; --odx-w-name-strong: 500; /* patient first name */
  --odx-fs-score: calc(20.25 * var(--odx-u)); --odx-ls-score: -0.045em; --odx-w-score: 300; /* health score value */
  --odx-fs-data: calc(18.65 * var(--odx-u)); --odx-ls-data: -0.046em; --odx-w-data: 300; /* analysis + history values */
  --odx-fs-button-sm: calc(18.5 * var(--odx-u)); --odx-ls-button-sm: -0.027em; --odx-w-button-sm: 400; /* "Schedule Cleaning" */
  --odx-fs-crumb: calc(18.1 * var(--odx-u)); --odx-ls-crumb: -0.032em; --odx-w-crumb: 300; /* breadcrumb */
  --odx-fs-crumb-current: calc(18.1 * var(--odx-u)); --odx-ls-crumb-current: -0.033em; --odx-w-crumb-current: 400; /* breadcrumb current page */
  --odx-fs-tab-idle: calc(18.1 * var(--odx-u)); --odx-ls-tab-idle: -0.048em; --odx-w-tab-idle: 300; /* idle tab */
  --odx-fs-tab: calc(17.9 * var(--odx-u)); --odx-ls-tab: -0.022em; --odx-w-tab: 400; /* active tab */
  --odx-fs-note: calc(16.35 * var(--odx-u)); --odx-ls-note: -0.051em; --odx-w-note: 300; /* analysis note, case sub-line */
  --odx-fs-chip: calc(15.9 * var(--odx-u)); --odx-ls-chip: -0.055em; --odx-w-chip: 400; /* "Low Risk" */
  --odx-fs-label: calc(15.7 * var(--odx-u)); --odx-ls-label: -0.045em; --odx-w-label: 300; /* every small label */
  --odx-fs-status: calc(15.6 * var(--odx-u)); --odx-ls-status: -0.033em; --odx-w-status: 300; /* patient status line */
  --odx-fs-micro: calc(13.6 * var(--odx-u)); --odx-ls-micro: -0.052em; --odx-w-micro: 300; /* "Health Score" */
  --odx-lh-body-lg: calc(29.2 * var(--odx-u));  /* paragraph line pitch */
  /* @type-scale:end */

  /* ---------- colour: grounds ---------- */
  --odx-backdrop-from: #e0e8dc;            /* bottom-left corner of the page */
  --odx-backdrop-to: #e8ece5;              /* top-right corner */
  --odx-backdrop: linear-gradient(63.6deg, var(--odx-backdrop-from), var(--odx-backdrop-to));
  --odx-window-base: #fdfdfd;
  --odx-glow-mint: 214 255 228;            /* top-right glow of the window */
  --odx-glow-leaf: 180 226 169;            /* bottom glow under the lower cards */
  --odx-window-bg:
    radial-gradient(calc(1515 * var(--odx-u)) calc(727 * var(--odx-u)) at calc(518 * var(--odx-u)) calc(1283 * var(--odx-u)),
      rgb(var(--odx-glow-leaf) / 1) 0%, rgb(var(--odx-glow-leaf) / .299) 50%, rgb(var(--odx-glow-leaf) / 0) 100%),
    radial-gradient(calc(777 * var(--odx-u)) calc(929 * var(--odx-u)) at calc(1786 * var(--odx-u)) calc(161 * var(--odx-u)),
      rgb(var(--odx-glow-mint) / 1) 0%, rgb(var(--odx-glow-mint) / .439) 50%, rgb(var(--odx-glow-mint) / 0) 100%),
    var(--odx-window-base);
  /* white "glass" panels: plain white at these opacities over the window ground */
  --odx-glass-header: rgb(255 255 255 / .28);
  --odx-glass-card: rgb(255 255 255 / .68);
  --odx-glass-solid: rgb(255 255 255 / .95);

  /* ---------- colour: ink ---------- */
  --odx-ink: #0d0d0d;                      /* primary text and line icons */
  --odx-ink-strong: #050505;               /* titles */
  --odx-ink-2: rgb(13 13 13 / .62);        /* secondary labels (Tooth, Date:, Procedure ...) */
  --odx-ink-3: rgb(13 13 13 / .63);        /* notes ("Surface cleaning recommended"), patient id */
  --odx-ink-4: rgb(13 13 13 / .63);        /* patient status, doctor role */
  --odx-ink-crumb: #252525;
  --odx-ink-tab: #252525;
  --odx-ink-soft: #232423;                 /* top navigation and the AI paragraph render ~10 % lighter than the values */
  --odx-ink-micro: rgb(13 13 13 / .64);    /* "Health Score" over the tinted tile */
  --odx-on-dark: #fefbfc;

  /* ---------- colour: accents ---------- */
  --odx-pill-dark: #211f1f;                /* active nav pill */
  --odx-mint-1: #e0fac3;                   /* mint button gradient, left */
  --odx-mint-2: #c5fcc4;                   /* middle */
  --odx-mint-3: #aaffc6;                   /* right */
  --odx-mint-gradient: linear-gradient(90deg, var(--odx-mint-1) 0%, var(--odx-mint-2) 50%, var(--odx-mint-3) 100%);
  --odx-score-good: #c8fdc6;               /* health score >= 85 (reference 90 %) */
  --odx-score-fair: #e1fbc4;               /* 70-84 (reference 80 %) */
  --odx-score-watch: #f9f8c0;              /* < 70 (reference 65 %) */
  --odx-chip-lime: #e1f9c3;                /* "Low Risk" */
  --odx-status-yellow: #fcde0b;            /* condition dot */
  --odx-soft-fill: rgb(0 0 0 / .026);      /* soft round icon buttons on white */
  --odx-soft-fill-tinted: rgb(30 60 30 / .02); /* the same on the green-tinted lower cards */
  --odx-glow-fill: #ffffff;                /* round icon buttons on the mint top bar */
  --odx-thumb-fill: #eef2ef;               /* tooth thumbnail disc */
  --odx-rail-line: #e2e2e2;
  --odx-rail-thumb: #1c1c1c;
  --odx-placeholder: #d9dcd9;              /* photo placeholders in the static kit */

  /* ---------- geometry (reference px) ---------- */
  --odx-page-w: calc(2000 * var(--odx-u));
  --odx-page-h: calc(1500 * var(--odx-u));
  --odx-window-x: calc(79 * var(--odx-u));
  --odx-window-y: calc(151 * var(--odx-u));
  --odx-window-w: calc(1843 * var(--odx-u));
  --odx-window-h: calc(1196 * var(--odx-u));
  --odx-window-pad-x: calc(49 * var(--odx-u));
  --odx-window-pad-b: calc(17 * var(--odx-u));
  --odx-gap: calc(28 * var(--odx-u));      /* gap between every panel */
  --odx-topbar-h: calc(111 * var(--odx-u));
  --odx-header-h: calc(202 * var(--odx-u));
  --odx-stage-h: calc(484 * var(--odx-u));
  --odx-bottom-h: calc(326 * var(--odx-u));
  --odx-card-pad: calc(20.5 * var(--odx-u));

  /* radii */
  --odx-r-window: calc(64 * var(--odx-u));
  --odx-r-card: calc(29.5 * var(--odx-u));
  --odx-r-header: calc(27 * var(--odx-u));
  --odx-r-button: calc(14 * var(--odx-u));
  --odx-r-tab: calc(12 * var(--odx-u));
  --odx-r-tile: calc(9 * var(--odx-u));
  --odx-r-thumb: calc(10 * var(--odx-u));

  /* round controls (visible diameter at the 50 % edge / soft edge width) */
  --odx-btn-glow-d: calc(48.4 * var(--odx-u));   /* top bar: white disc on mint */
  --odx-btn-back-d: calc(49 * var(--odx-u));
  --odx-btn-soft-d: calc(41 * var(--odx-u));      /* patient actions */
  --odx-btn-card-d: calc(40 * var(--odx-u));      /* card arrow / kebab */
  --odx-soft-edge: calc(6 * var(--odx-u));
  --odx-avatar-d: calc(68.7 * var(--odx-u));
  --odx-avatar-sm-d: calc(49 * var(--odx-u));
  --odx-thumb-d: calc(58.4 * var(--odx-u));
  --odx-dot-d: calc(20 * var(--odx-u));
  --odx-icon: calc(20 * var(--odx-u));
  --odx-icon-sm: calc(14 * var(--odx-u));
  --odx-icon-stroke: 1.5;                          /* in a 24 x 24 icon grid */

  /* nav pill shadow: a soft ellipse 30 px under the pill */
  --odx-pill-shadow: rgb(0 0 0 / .045);
}
/* Odontiax patient dossier — visual primitives (.odx-<thing>), measured on the reference image.
   Requires tokens.css (+ fonts.css). Sizes are reference px x --odx-u. Screen geometry (where each
   primitive sits on the dossier page) lives in layout.css; these classes only carry the look. */
.odx-dossier,
.odx-dossier *,
.odx-dossier *::before,
.odx-dossier *::after { box-sizing: border-box; }
.odx-dossier {
  font-family: var(--odx-font);
  font-weight: var(--odx-w-body);
  color: var(--odx-ink);
  line-height: var(--odx-lh-glyph);
  font-kerning: normal;
  font-synthesis: none;
  word-spacing: var(--odx-word-spacing);
}
:where(.odx-dossier) button { font: inherit; color: inherit; letter-spacing: inherit; border: 0; padding: 0; margin: 0; background: none; cursor: pointer; }
:where(.odx-dossier) :is(p, h1, h2, h3) { margin: 0; font: inherit; letter-spacing: inherit; }
:where(.odx-dossier) svg { display: block; flex: none; }
/* line icons (24 x 24 grid, stroke 1.5, lucide-like); fill-based marks opt out with .odx-brand__mark */
.odx-icon, .odx-nav__icon { fill: none; stroke: currentColor; stroke-width: var(--odx-icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
/* ---------- text styles: line-height 1.26 em = Outfit content area, so the baseline sits 1 em under the line top ---------- */
.odx-t-title-lg { font-size: var(--odx-fs-title-lg); letter-spacing: var(--odx-ls-title-lg); color: var(--odx-ink-strong); }
.odx-t-title { font-size: var(--odx-fs-title); letter-spacing: var(--odx-ls-title); color: var(--odx-ink-strong); }
.odx-t-subtitle { font-size: var(--odx-fs-subtitle); letter-spacing: var(--odx-ls-subtitle); font-weight: var(--odx-w-strong); color: var(--odx-ink-strong); }
.odx-t-body-lg { font-size: var(--odx-fs-body-lg); letter-spacing: var(--odx-ls-body-lg); line-height: var(--odx-lh-body-lg); color: var(--odx-ink-soft); }
.odx-t-nav { font-size: var(--odx-fs-nav); letter-spacing: var(--odx-ls-nav); }
.odx-t-value { font-size: var(--odx-fs-value); letter-spacing: var(--odx-ls-value); }
.odx-t-data { font-size: var(--odx-fs-data); letter-spacing: var(--odx-ls-data); }
.odx-t-crumb { font-size: var(--odx-fs-crumb); letter-spacing: var(--odx-ls-crumb); color: var(--odx-ink-crumb); }
.odx-t-note { font-size: var(--odx-fs-note); letter-spacing: var(--odx-ls-note); color: var(--odx-ink-3); }
.odx-t-label { font-size: var(--odx-fs-label); letter-spacing: var(--odx-ls-label); color: var(--odx-ink-2); }
.odx-t-status { font-size: var(--odx-fs-status); letter-spacing: var(--odx-ls-status); color: var(--odx-ink-4); }
.odx-t-micro { font-size: var(--odx-fs-micro); letter-spacing: var(--odx-ls-micro); color: var(--odx-ink-micro); }
.odx-t-nowrap { white-space: nowrap; }
.odx-text { display: block; white-space: nowrap; }
/* ---------- page + window ---------- */
.odx-page {
  container-type: inline-size;            /* lets .odx-dossier inside resolve --odx-u from this width */
  background: #e4eae0;
}
.odx-canvas {
  position: relative;
  width: var(--odx-page-w);
  min-height: var(--odx-page-h);
  background: var(--odx-backdrop);
}
.odx-window {
  position: relative;
  width: var(--odx-window-w);
  height: var(--odx-window-h);
  border-radius: var(--odx-r-window);
  background: var(--odx-window-bg);
  isolation: isolate;
}
/* ---------- panels ---------- */
.odx-glass { background: var(--odx-glass-header); border-radius: var(--odx-r-header); }
.odx-card { position: relative; background: var(--odx-glass-card); border-radius: var(--odx-r-card); }
.odx-card--solid { background: var(--odx-glass-solid); }
.odx-card--ai { background: var(--odx-glass-ai, var(--odx-glass-card)); }
/* ---------- brand (replaces the reference wordmark) ----------
   Odontiax lockup: porcelain ring + emerald dot (app-icon geometry) and the ODONTIAX wordmark (Outfit 400, tracking .34 em).
   --odx-brand-ring is the visible ring diameter; the 64-unit SVG box is ring x 4/3 (the margin holds the drop shadow) and is
   pulled back with negative margins so the layout box is the ring itself. Wordmark = ring x 20/42, gap = ring x 14/42.
   In the replica the lockup sits where the reference's ORISYNC wordmark sits (left 128, centred on the bar). */
.odx-brand {
  --odx-brand-ring: calc(42 * var(--odx-u));
  display: inline-flex;
  align-items: center;
  gap: calc(var(--odx-brand-ring) * 14 / 42);
  color: var(--odx-ink);
}
.odx-brand__mark {
  width: calc(var(--odx-brand-ring) * 4 / 3);
  height: calc(var(--odx-brand-ring) * 4 / 3);
  margin: calc(var(--odx-brand-ring) / -6);
}
.odx-wordmark {
  font-size: calc(var(--odx-brand-ring) * 20 / 42);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.34em;
  margin-right: -0.34em;                  /* the trailing tracking is not part of the optical width */
  text-transform: uppercase;
  white-space: nowrap;
}
/* ---------- text navigation + dark active pill ---------- */
.odx-nav { display: flex; align-items: center; }
.odx-nav__item {
  font-size: var(--odx-fs-nav);
  letter-spacing: var(--odx-ls-nav);
  color: var(--odx-ink-soft);
  white-space: nowrap;
  text-decoration: none;
}
.odx-nav__item--active {                  /* lucide: Users */
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(10.5 * var(--odx-u));
  height: calc(52.2 * var(--odx-u));
  padding: 0 calc(20 * var(--odx-u));
  border-radius: var(--odx-r-button);
  background: var(--odx-pill-dark);
  color: var(--odx-on-dark);
  font-weight: var(--odx-w-emph);
  font-size: var(--odx-fs-nav);
  letter-spacing: var(--odx-ls-nav-active);
}
.odx-nav__item--active::after {           /* the soft floating shadow 30 px under the pill */
  content: "";
  position: absolute;
  left: calc(12 * var(--odx-u));
  right: calc(12 * var(--odx-u));
  top: calc(100% + calc(24 * var(--odx-u)));
  height: calc(22 * var(--odx-u));
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--odx-pill-shadow), rgb(0 0 0 / 0));
  pointer-events: none;
}
.odx-nav__icon { width: calc(22 * var(--odx-u)); height: calc(22 * var(--odx-u)); stroke-width: 1.9; }
/* ---------- round icon buttons: a disc with a soft (feathered) edge ----------
   --d = visible diameter (50 % point of the edge), --s = feather width. The element is d + s wide and
   pulls itself back with negative margins, so in the layout it occupies exactly d. */
.odx-iconbtn {
  --d: var(--odx-btn-card-d);
  --s: var(--odx-soft-edge);
  --fill: var(--odx-soft-fill);
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: calc(var(--d) + var(--s));
  height: calc(var(--d) + var(--s));
  margin: calc(var(--s) / -2);
  border-radius: 50%;
  color: var(--odx-ink);
  background: radial-gradient(closest-side, var(--fill) calc(var(--d) / 2 - var(--s) / 2), rgb(255 255 255 / 0) calc(var(--d) / 2 + var(--s) / 2));
}
.odx-iconbtn--glow { --d: var(--odx-btn-glow-d); --s: calc(9 * var(--odx-u)); --fill: var(--odx-glow-fill); }
/* top bar: search, bell, settings */
.odx-iconbtn--back { --d: var(--odx-btn-back-d); --s: calc(7 * var(--odx-u)); --fill: rgb(0 0 0 / .024); }
/* lucide: ChevronLeft */
.odx-iconbtn--soft { --d: var(--odx-btn-soft-d); --s: calc(7 * var(--odx-u)); --fill: rgb(0 0 0 / .02); }
/* patient actions */
.odx-iconbtn--card { --d: var(--odx-btn-card-d); --s: calc(5 * var(--odx-u)); --fill: rgb(0 0 0 / .028); }
/* lucide: ArrowUpRight */
.odx-iconbtn--tinted { --d: var(--odx-btn-card-d); --s: calc(6 * var(--odx-u)); --fill: var(--odx-soft-fill-tinted); }
/* lucide: Ellipsis */
.odx-icon { width: calc(24 * var(--odx-u)); height: calc(24 * var(--odx-u)); }
.odx-icon--sm { width: calc(16 * var(--odx-u)); height: calc(16 * var(--odx-u)); }
/* ---------- mint gradient button ---------- */
.odx-btn-mint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(52 * var(--odx-u));
  padding: 0 calc(24 * var(--odx-u));
  border-radius: var(--odx-r-button);
  background: var(--odx-mint-gradient);
  box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(255 255 255 / .28);
  color: var(--odx-ink);
  font-weight: var(--odx-w-emph);
  font-size: var(--odx-fs-button);
  letter-spacing: var(--odx-ls-button);
  white-space: nowrap;
}
.odx-btn-mint--sm { height: calc(49.7 * var(--odx-u)); font-size: var(--odx-fs-button-sm); letter-spacing: var(--odx-ls-button-sm); border-radius: calc(14.5 * var(--odx-u)); }
/* ---------- pill tabs over the 3D stage ---------- */
.odx-tabs { display: flex; align-items: center; }
.odx-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(47.1 * var(--odx-u));
  border-radius: var(--odx-r-tab);
  font-size: var(--odx-fs-tab-idle);
  letter-spacing: var(--odx-ls-tab-idle);
  color: var(--odx-ink-tab);
  white-space: nowrap;
}
.odx-tab--active {
  background: var(--odx-mint-gradient);
  color: var(--odx-ink);
  font-weight: var(--odx-w-emph);
  font-size: var(--odx-fs-tab);
  letter-spacing: var(--odx-ls-tab);
}
/* ---------- label / value pair ---------- */
.odx-pair { display: flex; flex-direction: column; align-items: flex-start; }
.odx-pair__label { font-size: var(--odx-fs-label); letter-spacing: var(--odx-ls-label); color: var(--odx-ink-2); white-space: nowrap; }
.odx-pair__value { white-space: nowrap; }
.odx-pair__label.odx-t-label--ink, .odx-t-label--ink { color: var(--odx-ink); }
/* header meta labels and case labels are dark in the reference */
/* ---------- chip ---------- */
.odx-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(31.7 * var(--odx-u));
  padding: 0 calc(14 * var(--odx-u));
  border-radius: 999px;
  background: var(--odx-chip-lime);
  box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(255 255 255 / .35);
  font-weight: var(--odx-w-emph);
  font-size: var(--odx-fs-chip);
  letter-spacing: var(--odx-ls-chip);
  color: var(--odx-ink);
  white-space: nowrap;
}
/* ---------- health score tile ---------- */
.odx-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100.3 * var(--odx-u));
  height: calc(58.1 * var(--odx-u));
  border-radius: var(--odx-r-tile);
  background: var(--odx-score-fair);
  box-shadow: inset 0 0 0 calc(1.5 * var(--odx-u)) rgb(255 255 255 / .3);
}
.odx-score--good { background: var(--odx-score-good); }
.odx-score--fair { background: var(--odx-score-fair); }
.odx-score--watch { background: var(--odx-score-watch); }
.odx-score__label { font-size: var(--odx-fs-micro); letter-spacing: var(--odx-ls-micro); color: var(--odx-ink-micro); white-space: nowrap; }
.odx-score__value { font-size: var(--odx-fs-score); letter-spacing: var(--odx-ls-score); white-space: nowrap; }
/* ---------- avatars, thumbnails, dots ---------- */
.odx-avatar {
  flex: none;
  width: var(--odx-avatar-d);
  height: var(--odx-avatar-d);
  border-radius: 50%;
  background: var(--odx-placeholder);
  object-fit: cover;
  overflow: hidden;
}
.odx-avatar--sm { width: var(--odx-avatar-sm-d); height: var(--odx-avatar-sm-d); }
.odx-thumb {
  --d: var(--odx-thumb-d);
  --s: calc(4 * var(--odx-u));
  flex: none;
  width: calc(var(--d) + var(--s));
  height: calc(var(--d) + var(--s));
  margin: calc(var(--s) / -2);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--odx-thumb-fill) calc(var(--d) / 2 - var(--s) / 2), rgb(255 255 255 / 0) calc(var(--d) / 2 + var(--s) / 2));
}
.odx-dot {
  display: inline-block;
  flex: none;
  width: var(--odx-dot-d);
  height: var(--odx-dot-d);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fde424, var(--odx-status-yellow) 55%, #efc800);
}
/* ---------- doctor chip (signed-in user) ---------- */
.odx-doctor { display: flex; align-items: flex-start; }
.odx-doctor__name { font-size: var(--odx-fs-doctor); letter-spacing: var(--odx-ls-doctor); white-space: nowrap; }
.odx-doctor__role { font-size: var(--odx-fs-label); letter-spacing: var(--odx-ls-label); color: var(--odx-ink-4); white-space: nowrap; }
/* ---------- breadcrumb ---------- */
.odx-crumb { display: flex; align-items: flex-start; }
.odx-crumb__path { font-size: var(--odx-fs-crumb); letter-spacing: var(--odx-ls-crumb); color: var(--odx-ink-crumb); white-space: nowrap; }
.odx-crumb__current { font-weight: var(--odx-w-emph); color: var(--odx-ink); letter-spacing: var(--odx-ls-crumb-current); }
/* ---------- table-like rows with a kebab ---------- */
.odx-hrow { display: flex; align-items: flex-start; }
.odx-hrow__cell { display: flex; flex-direction: column; }
/* ---------- vertical zoom rail ---------- */
.odx-zoom__track { position: absolute; width: calc(2 * var(--odx-u)); background: var(--odx-rail-line); border-radius: 1px; }
.odx-zoom__thumb {
  position: absolute;
  width: calc(20 * var(--odx-u));
  height: calc(40 * var(--odx-u));
  border-radius: var(--odx-r-thumb);
  background: var(--odx-rail-thumb);
}
.odx-zoom__thumb::before {                /* grip: three short light lines */
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(6 * var(--odx-u));
  height: calc(5 * var(--odx-u));
  transform: translate(-50%, -50%);
  background: repeating-linear-gradient(180deg, rgb(255 255 255 / .75) 0 calc(1 * var(--odx-u)), transparent calc(1 * var(--odx-u)) calc(2 * var(--odx-u)));
}
.odx-zoom__buttons {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(40 * var(--odx-u));
  border-radius: calc(20 * var(--odx-u));
  background: rgb(255 255 255 / .9);
  box-shadow: 0 0 calc(8 * var(--odx-u)) calc(2 * var(--odx-u)) rgb(255 255 255 / .8);
}
.odx-zoom__btn { display: grid; place-items: center; width: calc(40 * var(--odx-u)); height: calc(40 * var(--odx-u)); color: var(--odx-ink); }
/* ---------- 3D stage slot (canvas mounts here; transparent in the static kit) ---------- */
.odx-stage-slot { position: absolute; background: transparent; }
/* The legacy shell pins html/body/#root to the viewport; the new shell's page scrolls (as the dossier does). */
html.odx-dossier:has(.odx-a-page),
html.odx-dossier:has(.odx-a-page) body,
html.odx-dossier:has(.odx-a-page) #root { height: auto; min-height: 100%; overflow: visible; }
html.odx-dossier:has(.odx-a-page) body { background: #e4eae0; min-width: 0; }
.odx-dossier.odx-a-root {
  --odx-u: clamp(0.64px, var(--odx-page-px, 100vw) / 2000, 1.28px);
  /* legibility floors below ~1600 px (no effect at the reference's 2000 px) — same as the dossier canvas */
  --odx-fs-micro: max(calc(13.6 * var(--odx-u)), 10.5px);
  --odx-fs-label: max(calc(15.7 * var(--odx-u)), 11.5px);
  --odx-fs-status: max(calc(15.6 * var(--odx-u)), 11.5px);
  --odx-fs-note: max(calc(16.35 * var(--odx-u)), 11.8px);
  --odx-fs-chip: max(calc(15.9 * var(--odx-u)), 11.5px);
  --odx-a-emerald: #0c8f60;
  --odx-a-line: rgb(13 13 13 / 0.07);
}
/* ---------------------------------------------------------------- page, canvas, window */
.odx-a-page { min-height: 100vh; background: #e4eae0; overflow-x: clip; }
.odx-dossier .odx-a-canvas {
  position: relative;
  min-height: max(100vh, var(--odx-page-h));
  padding: var(--odx-window-y) 0 calc(120 * var(--odx-u));
  background: var(--odx-backdrop);
}
.odx-dossier .odx-a-window {
  display: flex;
  flex-direction: column;
  width: min(var(--odx-window-w), calc(100% - 2 * var(--odx-window-x)));
  min-height: var(--odx-window-h);
  height: auto;
  margin: 0 auto;
  padding: 0 var(--odx-window-pad-x) calc(49 * var(--odx-u));
}
.odx-dossier .odx-s-press { transition: transform 160ms ease, filter 160ms ease; }
.odx-dossier .odx-s-press:active:not(:disabled) { transform: scale(0.96); }
.odx-dossier :is(.odx-a-nav__item, .odx-a-brand, .odx-a-account, .odx-s-press, .odx-a-sheet__item):focus-visible {
  outline: calc(2 * var(--odx-u)) solid var(--odx-a-emerald); outline-offset: calc(3 * var(--odx-u));
}
.odx-dossier .odx-iconbtn:disabled { opacity: 0.38; cursor: not-allowed; }
.odx-dossier .odx-iconbtn--glow:not(:disabled):hover { filter: drop-shadow(0 calc(2 * var(--odx-u)) calc(6 * var(--odx-u)) rgb(20 60 30 / 0.08)); }
.odx-dossier .odx-a-icon { width: calc(24 * var(--odx-u)); height: calc(24 * var(--odx-u)); flex: none; }
/* ---------------------------------------------------------------- top bar */
.odx-dossier .odx-a-topbar { position: relative; z-index: 40; display: flex; align-items: center; height: var(--odx-topbar-h); flex: none; }
.odx-dossier .odx-a-brand { display: flex; align-items: center; width: calc(366.26 * var(--odx-u)); flex: none; color: inherit; text-decoration: none; border-radius: 999px; }
.odx-dossier .odx-a-brand:focus-visible { outline-offset: calc(8 * var(--odx-u)); }
.odx-dossier .odx-a-nav { position: relative; display: flex; align-items: center; gap: calc(44 * var(--odx-u)); height: calc(52.2 * var(--odx-u)); min-width: 0; }
.odx-dossier .odx-a-nav__pill {
  position: absolute; left: 0; top: 0; height: 100%;
  border-radius: var(--odx-r-button);
  background: var(--odx-pill-dark);
  transition: transform 420ms cubic-bezier(0.32, 0.72, 0.2, 1), width 420ms cubic-bezier(0.32, 0.72, 0.2, 1);
}
.odx-dossier .odx-a-nav__pill::after {
  content: ""; position: absolute;
  left: calc(12 * var(--odx-u)); right: calc(12 * var(--odx-u)); top: calc(100% + calc(24 * var(--odx-u)));
  height: calc(22 * var(--odx-u)); border-radius: 50%;
  background: radial-gradient(closest-side, var(--odx-pill-shadow), rgb(0 0 0 / 0));
  pointer-events: none;
}
.odx-dossier .odx-a-nav__group { position: relative; display: flex; height: 100%; }
.odx-dossier .odx-a-nav__item {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: calc(10.27 * var(--odx-u));
  height: 100%;
  border-radius: var(--odx-r-button);
  font-size: var(--odx-fs-nav); letter-spacing: var(--odx-ls-nav); font-weight: var(--odx-w-nav);
  color: var(--odx-ink-soft); text-decoration: none; white-space: nowrap;
  transition: color 120ms ease, padding 420ms cubic-bezier(0.32, 0.72, 0.2, 1);
}
.odx-dossier .odx-a-nav__item:not(.is-active):hover { color: #000; }
.odx-dossier .odx-a-nav__item:not(.is-active)::before {
  content: ""; position: absolute; z-index: -1; inset: calc(4 * var(--odx-u)) calc(-18 * var(--odx-u));
  border-radius: var(--odx-r-button); background: rgb(13 13 13 / 0.045);
  opacity: 0; transform: scale(0.92); transition: opacity 200ms ease, transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.odx-dossier .odx-a-nav__item:not(.is-active):is(:hover, [aria-expanded="true"])::before { opacity: 1; transform: none; }
.odx-dossier .odx-a-nav__item[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.odx-dossier .odx-a-nav__item.is-active {
  padding: 0 calc(39.7 * var(--odx-u));
  color: var(--odx-on-dark);
  font-weight: var(--odx-w-emph);
  letter-spacing: var(--odx-ls-nav-active);
  transition: color 200ms ease 130ms, padding 420ms cubic-bezier(0.32, 0.72, 0.2, 1);
}
.odx-dossier .odx-a-nav__icon {
  flex: none; width: calc(22 * var(--odx-u)); height: calc(22 * var(--odx-u)); stroke-width: 1.7;
  transition: width 420ms cubic-bezier(0.32, 0.72, 0.2, 1), margin 420ms cubic-bezier(0.32, 0.72, 0.2, 1), opacity 200ms ease 200ms;
}
.odx-dossier .odx-a-nav__item:not(.is-active) .odx-a-nav__icon {
  width: 0; margin-right: calc(-10.27 * var(--odx-u)); opacity: 0;
  transition: width 420ms cubic-bezier(0.32, 0.72, 0.2, 1), margin 420ms cubic-bezier(0.32, 0.72, 0.2, 1), opacity 100ms ease;
}
.odx-dossier .odx-a-nav__chev { width: calc(16 * var(--odx-u)); height: calc(16 * var(--odx-u)); margin-left: calc(-4 * var(--odx-u)); stroke-width: 1.8; opacity: 0.55; transition: transform 200ms ease; }
.odx-dossier .odx-a-nav__item.is-active .odx-a-nav__chev { opacity: 0.8; margin-right: calc(-14 * var(--odx-u)); }
.odx-dossier .odx-a-nav__chev.is-open { transform: rotate(180deg); }
.odx-dossier .odx-a-topactions { display: flex; align-items: center; gap: calc(10.05 * var(--odx-u)); margin-left: auto; margin-right: calc(0.3 * var(--odx-u)); }
.odx-dossier .odx-a-roundbtn svg { width: calc(24 * var(--odx-u)); height: calc(24 * var(--odx-u)); }
.odx-dossier .odx-a-menubtn { display: none; }
/* ---------------------------------------------------------------- menus (dossier popover + menu item look) */
.odx-dossier .odx-a-menu { min-width: calc(300 * var(--odx-u)); }
.odx-dossier .odx-a-menu__title {
  margin: calc(6 * var(--odx-u)) calc(12 * var(--odx-u)) calc(6 * var(--odx-u));
  font-size: var(--odx-fs-label); letter-spacing: 0.02em; text-transform: uppercase; color: var(--odx-ink-2);
}
.odx-dossier .odx-a-menu__item { color: var(--odx-ink); text-decoration: none; }
.odx-dossier .odx-a-menu__glyph {
  display: grid; place-items: center; flex: none;
  width: calc(36 * var(--odx-u)); height: calc(36 * var(--odx-u)); border-radius: 50%;
  background: rgb(0 0 0 / 0.03); color: rgb(13 13 13 / 0.75);
}
.odx-dossier .odx-a-menu__glyph :is(svg, .odx-a-icon) { width: calc(19 * var(--odx-u)); height: calc(19 * var(--odx-u)); }
.odx-dossier .odx-a-menu__label { flex: 1; }
.odx-dossier .odx-a-menu__item.is-current { background: var(--odx-mint-gradient); }
.odx-dossier .odx-a-menu__item.is-current .odx-a-menu__glyph { background: rgb(255 255 255 / 0.7); }
.odx-dossier .odx-a-menu__check { width: calc(18 * var(--odx-u)); height: calc(18 * var(--odx-u)); stroke-width: 2; }
.odx-dossier .odx-a-menu__item[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; background: none; }
.odx-dossier .odx-a-menu__sep { height: 1px; margin: calc(6 * var(--odx-u)) calc(8 * var(--odx-u)); background: var(--odx-a-line); }
.odx-dossier .odx-a-menu--account { width: calc(340 * var(--odx-u)); }
.odx-dossier .odx-a-menu__who { display: flex; align-items: center; gap: calc(12 * var(--odx-u)); padding: calc(8 * var(--odx-u)) calc(10 * var(--odx-u)) calc(12 * var(--odx-u)); margin-bottom: calc(4 * var(--odx-u)); border-bottom: 1px solid var(--odx-a-line); }
.odx-dossier .odx-a-menu__who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.odx-dossier .odx-a-menu__who strong { font-weight: 400; font-size: var(--odx-fs-value); letter-spacing: var(--odx-ls-doctor); }
.odx-dossier .odx-a-menu__who small { font-size: var(--odx-fs-label); color: var(--odx-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---------------------------------------------------------------- band (glass header card of the page) */
.odx-dossier .odx-a-band {
  position: relative; z-index: 30;
  display: flex; align-items: center; gap: calc(28 * var(--odx-u));
  min-height: calc(122 * var(--odx-u));
  padding: calc(22 * var(--odx-u)) calc(22 * var(--odx-u)) calc(22 * var(--odx-u)) calc(32 * var(--odx-u));
  background: rgb(255 255 255 / 0.5);
  border-radius: var(--odx-r-header);
}
.odx-dossier .odx-a-band__lead { display: flex; flex-direction: column; gap: calc(6 * var(--odx-u)); min-width: 0; flex: 0 1 auto; }
.odx-dossier .odx-a-crumb { display: flex; flex-wrap: wrap; margin: 0; font-size: var(--odx-fs-crumb); letter-spacing: var(--odx-ls-crumb); color: var(--odx-ink-crumb); white-space: nowrap; }
.odx-dossier .odx-a-crumb > span + span::before { content: "/"; margin: 0 calc(6 * var(--odx-u)); color: var(--odx-ink-2); }
.odx-dossier .odx-a-crumb .is-current { font-weight: var(--odx-w-crumb-current); color: var(--odx-ink); letter-spacing: var(--odx-ls-crumb-current); }
.odx-dossier .odx-a-title { margin: 0; font-size: calc(34 * var(--odx-u)); letter-spacing: -0.045em; font-weight: 300; line-height: 1.15; color: var(--odx-ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odx-dossier .odx-a-band__actions { display: flex; align-items: center; gap: calc(12 * var(--odx-u)); flex: none; }
/* search */
.odx-dossier .odx-a-search { position: relative; flex: 1 1 calc(520 * var(--odx-u)); max-width: calc(640 * var(--odx-u)); min-width: calc(260 * var(--odx-u)); margin-left: auto; }
.odx-dossier .odx-a-search__field {
  display: flex; align-items: center; gap: calc(12 * var(--odx-u));
  height: calc(56 * var(--odx-u)); padding: 0 calc(10 * var(--odx-u)) 0 calc(20 * var(--odx-u));
  border-radius: calc(16 * var(--odx-u));
  background: rgb(255 255 255 / 0.82);
  box-shadow: 0 0 0 1px rgb(13 13 13 / 0.05), 0 calc(6 * var(--odx-u)) calc(18 * var(--odx-u)) rgb(30 70 40 / 0.05);
  cursor: text;
  transition: box-shadow 160ms ease, background-color 160ms ease;
}
.odx-dossier .odx-a-search__field > .odx-icon { width: calc(21 * var(--odx-u)); height: calc(21 * var(--odx-u)); color: rgb(13 13 13 / 0.55); }
.odx-dossier .odx-a-search__field:focus-within { background: #fff; box-shadow: 0 0 0 calc(2 * var(--odx-u)) rgb(12 143 96 / 0.35), 0 calc(10 * var(--odx-u)) calc(26 * var(--odx-u)) rgb(30 70 40 / 0.08); }
.odx-dossier .odx-a-search__input {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: none; box-shadow: none; appearance: none;
  font: inherit; font-size: var(--odx-fs-crumb); letter-spacing: -0.02em; color: var(--odx-ink);
}
.odx-dossier .odx-a-search__input::placeholder { color: rgb(13 13 13 / 0.45); }
.odx-dossier .odx-a-search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.odx-dossier .odx-a-search__kbd {
  display: grid; place-items: center; min-width: calc(30 * var(--odx-u)); height: calc(30 * var(--odx-u)); padding: 0 calc(8 * var(--odx-u));
  border-radius: calc(9 * var(--odx-u)); background: rgb(0 0 0 / 0.04);
  font-family: inherit; font-size: var(--odx-fs-label); color: var(--odx-ink-2);
}
.odx-dossier .odx-a-search__clear { display: grid; place-items: center; width: calc(34 * var(--odx-u)); height: calc(34 * var(--odx-u)); border-radius: 50%; background: rgb(0 0 0 / 0.04); }
.odx-dossier .odx-a-search__clear .odx-icon { width: calc(16 * var(--odx-u)); height: calc(16 * var(--odx-u)); }
.odx-dossier .odx-a-search__panel {
  position: absolute; z-index: 70; left: 0; right: 0; top: calc(100% + calc(10 * var(--odx-u)));
  padding: calc(10 * var(--odx-u));
  border-radius: calc(22 * var(--odx-u));
  background: rgb(255 255 255 / 0.97);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 calc(18 * var(--odx-u)) calc(48 * var(--odx-u)) rgb(20 40 25 / 0.14), 0 0 0 1px rgb(0 0 0 / 0.04);
  animation: odx-s-pop 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.odx-dossier .odx-a-search__state { display: flex; align-items: center; gap: calc(10 * var(--odx-u)); margin: 0; padding: calc(12 * var(--odx-u)); font-size: var(--odx-fs-crumb); color: var(--odx-ink-2); }
.odx-dossier .odx-a-search__list { max-height: calc(440 * var(--odx-u)); overflow-y: auto; overscroll-behavior: contain; }
.odx-dossier .odx-a-search__option { display: flex; align-items: center; gap: calc(14 * var(--odx-u)); padding: calc(10 * var(--odx-u)) calc(12 * var(--odx-u)); border-radius: calc(14 * var(--odx-u)); cursor: pointer; }
.odx-dossier .odx-a-search__option.is-active { background: rgb(197 252 196 / 0.45); }
.odx-dossier .odx-a-search__avatar {
  display: grid; place-items: center; flex: none; width: calc(44 * var(--odx-u)); height: calc(44 * var(--odx-u)); border-radius: 50%;
  background: linear-gradient(145deg, #f4f7f4, #e3e9e3); font-size: var(--odx-fs-label); font-weight: 400; letter-spacing: 0.02em; color: var(--odx-ink);
}
.odx-dossier .odx-a-search__text { display: flex; flex-direction: column; gap: calc(2 * var(--odx-u)); min-width: 0; flex: 1; }
.odx-dossier .odx-a-search__text strong { display: flex; align-items: center; gap: calc(8 * var(--odx-u)); font-weight: 400; font-size: var(--odx-fs-value); letter-spacing: var(--odx-ls-value); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odx-dossier .odx-a-search__text small { font-size: var(--odx-fs-label); color: var(--odx-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odx-dossier .odx-a-search__text .patient-near-badge { padding: 1px calc(8 * var(--odx-u)); border-radius: 999px; background: var(--odx-score-watch); font-size: var(--odx-fs-micro); font-weight: 400; color: var(--odx-ink); }
.odx-dossier .odx-a-search__go { width: calc(18 * var(--odx-u)); height: calc(18 * var(--odx-u)); opacity: 0; color: var(--odx-ink-2); }
.odx-dossier .odx-a-search__option.is-active .odx-a-search__go { opacity: 1; }
.odx-dossier .odx-a-search__more { display: block; margin-top: calc(6 * var(--odx-u)); padding: calc(12 * var(--odx-u)); border-radius: calc(14 * var(--odx-u)); text-align: center; font-size: var(--odx-fs-crumb); color: var(--odx-ink); text-decoration: none; background: rgb(0 0 0 / 0.025); }
.odx-dossier .odx-a-search__more:hover { background: rgb(197 252 196 / 0.45); }
.odx-dossier .odx-a-link { padding: 0; border: 0; background: none; color: var(--odx-a-emerald); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.odx-dossier .odx-a-spinner {
  display: inline-block; width: calc(16 * var(--odx-u)); height: calc(16 * var(--odx-u)); flex: none;
  border-radius: 50%; border: 2px solid rgb(12 143 96 / 0.2); border-top-color: var(--odx-a-emerald);
  animation: odx-a-spin 800ms linear infinite;
}
@keyframes odx-a-spin { to { transform: rotate(360deg); } }
/* session indicators */
.odx-dossier .odx-a-session { display: flex; align-items: center; gap: calc(10 * var(--odx-u)); flex: none; }
.odx-dossier .odx-a-chip {
  display: inline-flex; align-items: center; gap: calc(8 * var(--odx-u));
  height: calc(36 * var(--odx-u)); padding: 0 calc(14 * var(--odx-u));
  border-radius: 999px; background: rgb(255 255 255 / 0.75); box-shadow: 0 0 0 1px rgb(13 13 13 / 0.05);
  font-size: var(--odx-fs-label); letter-spacing: -0.02em; color: var(--odx-ink); white-space: nowrap;
}
.odx-dossier .odx-a-chip.is-warn { background: #fff7df; }
.odx-dossier .odx-a-dot { width: calc(9 * var(--odx-u)); height: calc(9 * var(--odx-u)); border-radius: 50%; background: #b9c2bb; flex: none; }
.odx-dossier .odx-a-dot.is-on { background: #23b26d; box-shadow: 0 0 0 calc(3 * var(--odx-u)) rgb(35 178 109 / 0.16); }
.odx-dossier .odx-a-dot.is-warn { background: #e0a800; }
.odx-dossier .odx-a-roundbtn--soft svg { width: calc(20 * var(--odx-u)); height: calc(20 * var(--odx-u)); }
/* account chip (the dossier's doctor chip, clickable) */
.odx-dossier .odx-a-account {
  display: flex; align-items: center; gap: calc(12 * var(--odx-u));
  padding: calc(6 * var(--odx-u)) calc(12 * var(--odx-u)) calc(6 * var(--odx-u)) calc(6 * var(--odx-u));
  border-radius: 999px; text-align: left;
  transition: background-color 160ms ease;
}
.odx-dossier .odx-a-account:hover,
.odx-dossier .odx-a-account[aria-expanded="true"] { background: rgb(255 255 255 / 0.7); }
.odx-dossier .odx-a-avatar {
  display: grid; place-items: center; flex: none; overflow: hidden;
  width: var(--odx-avatar-sm-d); height: var(--odx-avatar-sm-d); border-radius: 50%;
  background: radial-gradient(closest-side, #ffffff 60%, #f1f4f1);
  box-shadow: 0 calc(3 * var(--odx-u)) calc(10 * var(--odx-u)) rgb(20 40 25 / 0.08), inset 0 0 0 1px rgb(13 13 13 / 0.04);
  font-size: var(--odx-fs-crumb); letter-spacing: 0.02em; color: var(--odx-ink);
}
.odx-dossier .odx-a-avatar img { width: 100%; height: 100%; object-fit: cover; }
.odx-dossier .odx-a-avatar--lg { width: calc(56 * var(--odx-u)); height: calc(56 * var(--odx-u)); }
.odx-dossier .odx-a-account__text { display: flex; flex-direction: column; min-width: 0; }
.odx-dossier .odx-a-account__name { font-size: var(--odx-fs-doctor); letter-spacing: var(--odx-ls-doctor); white-space: nowrap; max-width: calc(280 * var(--odx-u)); overflow: hidden; text-overflow: ellipsis; }
.odx-dossier .odx-a-account__role { margin-top: calc(3 * var(--odx-u)); font-size: var(--odx-fs-label); letter-spacing: var(--odx-ls-label); color: var(--odx-ink-4); white-space: nowrap; }
.odx-dossier .odx-a-account__chev { width: calc(16 * var(--odx-u)); height: calc(16 * var(--odx-u)); stroke-width: 1.8; opacity: 0.55; transition: transform 200ms ease; }
.odx-dossier .odx-a-account__chev.is-open { transform: rotate(180deg); }
/* ---------------------------------------------------------------- main */
.odx-dossier .odx-a-main { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--odx-gap); margin-top: var(--odx-gap); flex: 1; min-width: 0; }
/* ---------------------------------------------------------------- notifications: the live bell (cheques + radiographs) in the dossier's look.
   ID weight (#odx-a-skin never exists) so the legacy cheques/radiology sheets, loaded later and up to 5 classes deep, lose. */
:is(.odx-dossier, #odx-a-skin) .odx-a-bell { position: relative; display: inline-flex; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-root { position: relative; display: inline-flex; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-bell {
  --d: var(--odx-btn-glow-d); --s: calc(9 * var(--odx-u));
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: calc(var(--d) + var(--s)); height: calc(var(--d) + var(--s)); margin: calc(var(--s) / -2); padding: 0;
  border: 0; border-radius: 50%; color: var(--odx-ink); cursor: pointer;
  background: radial-gradient(closest-side, #fff calc(var(--d) / 2 - var(--s) / 2), rgb(255 255 255 / 0) calc(var(--d) / 2 + var(--s) / 2));
  box-shadow: none;
  transition: transform 160ms ease, filter 160ms ease;
}
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-bell:hover { filter: drop-shadow(0 calc(2 * var(--odx-u)) calc(6 * var(--odx-u)) rgb(20 60 30 / 0.08)); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-bell:active { transform: scale(0.96); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-bell:focus-visible { outline: calc(2 * var(--odx-u)) solid var(--odx-a-emerald); outline-offset: calc(-2 * var(--odx-u)); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-bell > svg { width: calc(23 * var(--odx-u)); height: calc(23 * var(--odx-u)); stroke-width: 1.5; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-badge {
  position: absolute; top: 16%; right: 16%; min-width: calc(19 * var(--odx-u)); height: calc(19 * var(--odx-u)); padding: 0 calc(5 * var(--odx-u));
  display: grid; place-items: center; border-radius: 999px; background: #e2553f; color: #fff;
  font-size: max(calc(11.5 * var(--odx-u)), 9.5px); font-weight: 500; line-height: 1; box-shadow: 0 0 0 calc(2 * var(--odx-u)) #fff;
}
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-error-dot { position: absolute; top: 24%; left: 26%; width: calc(9 * var(--odx-u)); height: calc(9 * var(--odx-u)); border-radius: 50%; background: #e0a800; box-shadow: 0 0 0 calc(2 * var(--odx-u)) #fff; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-panel {
  position: absolute; z-index: 60; top: calc(100% + calc(14 * var(--odx-u))); right: calc(-60 * var(--odx-u)); left: auto;
  width: calc(470 * var(--odx-u)); max-height: min(calc(760 * var(--odx-u)), 78vh); overflow-y: auto; overscroll-behavior: contain;
  padding: calc(16 * var(--odx-u)); border: 0; border-radius: calc(24 * var(--odx-u));
  background: rgb(255 255 255 / 0.97); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 calc(18 * var(--odx-u)) calc(48 * var(--odx-u)) rgb(20 40 25 / 0.14), 0 0 0 1px rgb(0 0 0 / 0.04);
  color: var(--odx-ink); font-size: var(--odx-fs-crumb); text-align: left;
  animation: odx-s-pop 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-panel :is(h2, h3, p) { margin: 0; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-header { display: flex; align-items: center; gap: calc(12 * var(--odx-u)); padding: calc(2 * var(--odx-u)) calc(4 * var(--odx-u)) calc(14 * var(--odx-u)); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-header > span { display: grid; place-items: center; width: calc(44 * var(--odx-u)); height: calc(44 * var(--odx-u)); border-radius: 50%; background: var(--odx-mint-gradient); flex: none; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-header > span svg { width: calc(20 * var(--odx-u)); height: calc(20 * var(--odx-u)); stroke-width: 1.6; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-header > div { flex: 1; min-width: 0; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-header h2 { font-size: var(--odx-fs-title); letter-spacing: var(--odx-ls-title); font-weight: 300; color: var(--odx-ink-strong); line-height: 1.2; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-header p { font-size: var(--odx-fs-label); color: var(--odx-ink-2); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-icon-button { display: grid; place-items: center; width: calc(38 * var(--odx-u)); height: calc(38 * var(--odx-u)); padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / 0.035); color: var(--odx-ink); cursor: pointer; flex: none; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-icon-button svg { width: calc(17 * var(--odx-u)); height: calc(17 * var(--odx-u)); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .rx-notification-group { margin-bottom: calc(12 * var(--odx-u)); padding: calc(12 * var(--odx-u)); border-radius: calc(18 * var(--odx-u)); background: rgb(0 0 0 / 0.025); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .rx-notification-group header { display: flex; justify-content: space-between; align-items: center; gap: calc(10 * var(--odx-u)); margin-bottom: calc(8 * var(--odx-u)); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .rx-notification-group header strong { display: inline-flex; align-items: center; gap: calc(8 * var(--odx-u)); font-weight: 400; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .rx-notification-group header svg { width: calc(17 * var(--odx-u)); height: calc(17 * var(--odx-u)); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .rx-notification-group :is(a, p) { font-size: var(--odx-fs-label); color: var(--odx-ink-2); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .rx-notification-group a { color: var(--odx-a-emerald); text-decoration: none; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .rx-notification-row { display: flex; align-items: center; gap: calc(8 * var(--odx-u)); padding: calc(8 * var(--odx-u)); border-radius: calc(12 * var(--odx-u)); background: #fff; margin-top: calc(6 * var(--odx-u)); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .rx-notification-row a { display: flex; flex-direction: column; flex: 1; min-width: 0; color: var(--odx-ink); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .rx-notification-row strong { font-weight: 400; font-size: var(--odx-fs-crumb); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .rx-notification-row small { color: var(--odx-ink-2); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .rx-notification-row button { display: grid; place-items: center; width: calc(30 * var(--odx-u)); height: calc(30 * var(--odx-u)); border: 0; border-radius: 50%; background: rgb(0 0 0 / 0.04); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .rx-notification-backlog { display: flex; align-items: center; gap: calc(8 * var(--odx-u)); margin-top: calc(8 * var(--odx-u)); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-date { display: flex; align-items: center; gap: calc(10 * var(--odx-u)); padding: calc(6 * var(--odx-u)) calc(4 * var(--odx-u)); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-date strong { font-weight: 400; font-size: var(--odx-fs-value); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-date span { flex: 1; font-size: var(--odx-fs-label); color: var(--odx-ink-2); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-error { display: flex; gap: calc(8 * var(--odx-u)); align-items: flex-start; margin: calc(6 * var(--odx-u)) 0; padding: calc(10 * var(--odx-u)) calc(12 * var(--odx-u)); border-radius: calc(14 * var(--odx-u)); background: #fff3e8; color: #8a4b0f; font-size: var(--odx-fs-label); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-tools { display: flex; align-items: center; justify-content: space-between; gap: calc(10 * var(--odx-u)); margin: calc(6 * var(--odx-u)) 0 calc(10 * var(--odx-u)); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-tabs { display: inline-flex; padding: calc(4 * var(--odx-u)); border-radius: calc(14 * var(--odx-u)); background: rgb(0 0 0 / 0.035); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-tabs button { display: inline-flex; align-items: center; gap: calc(6 * var(--odx-u)); height: calc(34 * var(--odx-u)); padding: 0 calc(14 * var(--odx-u)); border: 0; border-radius: calc(11 * var(--odx-u)); background: none; font-size: var(--odx-fs-label); color: var(--odx-ink); cursor: pointer; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-tabs button[aria-pressed="true"] { background: var(--odx-mint-gradient); font-weight: 400; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-tabs button span { color: var(--odx-ink-2); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-read-all { display: inline-flex; align-items: center; gap: calc(6 * var(--odx-u)); height: calc(34 * var(--odx-u)); padding: 0 calc(12 * var(--odx-u)); border: 0; border-radius: 999px; background: none; font-size: var(--odx-fs-label); color: var(--odx-ink); cursor: pointer; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-read-all:hover { background: rgb(0 0 0 / 0.035); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: calc(8 * var(--odx-u)); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-list li { padding: calc(6 * var(--odx-u)); border-radius: calc(16 * var(--odx-u)); background: rgb(0 0 0 / 0.022); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-list li.cheques-notification-unread { background: rgb(197 252 196 / 0.32); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-open { display: flex; align-items: center; gap: calc(12 * var(--odx-u)); width: 100%; padding: calc(6 * var(--odx-u)); border: 0; background: none; text-align: left; color: var(--odx-ink); cursor: pointer; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-thumbnail { display: grid; place-items: center; width: calc(64 * var(--odx-u)); height: calc(44 * var(--odx-u)); border-radius: calc(10 * var(--odx-u)); overflow: hidden; background: #eef2ef; flex: none; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-thumbnail :is(img, svg) { max-width: 100%; max-height: 100%; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-copy { display: flex; flex-direction: column; gap: calc(2 * var(--odx-u)); flex: 1; min-width: 0; font-size: var(--odx-fs-label); color: var(--odx-ink-2); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-copy strong { display: flex; align-items: center; gap: calc(6 * var(--odx-u)); font-weight: 400; font-size: var(--odx-fs-crumb); color: var(--odx-ink); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-copy b { font-weight: 400; color: var(--odx-ink); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-reminder-overdue { color: #b3261e !important; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-unread-dot { width: calc(8 * var(--odx-u)); height: calc(8 * var(--odx-u)); border-radius: 50%; background: #e2553f; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-open > svg { width: calc(17 * var(--odx-u)); height: calc(17 * var(--odx-u)); color: var(--odx-ink-2); flex: none; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-mark-read { display: inline-flex; align-items: center; gap: calc(6 * var(--odx-u)); margin: 0 0 calc(4 * var(--odx-u)) calc(82 * var(--odx-u)); padding: calc(4 * var(--odx-u)) calc(10 * var(--odx-u)); border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.8); font-size: var(--odx-fs-label); color: var(--odx-ink); cursor: pointer; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-empty { display: flex; flex-direction: column; align-items: center; gap: calc(8 * var(--odx-u)); padding: calc(26 * var(--odx-u)) calc(16 * var(--odx-u)); text-align: center; color: var(--odx-ink-2); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-empty svg { width: calc(30 * var(--odx-u)); height: calc(30 * var(--odx-u)); color: var(--odx-a-emerald); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-empty h3 { font-size: var(--odx-fs-value); font-weight: 400; color: var(--odx-ink); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-empty p { font-size: var(--odx-fs-label); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-loading { padding: calc(16 * var(--odx-u)); color: var(--odx-ink-2); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-footer { display: flex; align-items: center; justify-content: space-between; gap: calc(10 * var(--odx-u)); margin-top: calc(12 * var(--odx-u)); padding: calc(12 * var(--odx-u)) calc(4 * var(--odx-u)) 0; border-top: 1px solid var(--odx-a-line); font-size: var(--odx-fs-label); color: var(--odx-ink-2); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-footer p { display: inline-flex; align-items: center; gap: calc(6 * var(--odx-u)); }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-footer a { display: inline-flex; align-items: center; gap: calc(4 * var(--odx-u)); color: var(--odx-ink); text-decoration: none; font-weight: 400; }
:is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-footer svg { width: calc(15 * var(--odx-u)); height: calc(15 * var(--odx-u)); }
/* ---------------------------------------------------------------- mobile sheet */
.odx-a-sheet-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; justify-content: flex-end;
  background: rgb(20 30 22 / 0.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: odx-a-fade 160ms ease;
}
.odx-dossier .odx-a-sheet {
  display: flex; flex-direction: column;
  width: min(440px, 100%); height: 100%;
  background: var(--odx-window-bg);
  box-shadow: 0 0 60px rgb(20 40 25 / 0.18);
  animation: odx-a-slide 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.odx-dossier .odx-a-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px 22px; }
.odx-dossier .odx-a-sheet__head .odx-brand { --odx-brand-ring: 34px; }
.odx-dossier .odx-a-sheet__scroll { flex: 1; overflow-y: auto; padding: 6px 16px 16px; }
.odx-dossier .odx-a-sheet__section + .odx-a-sheet__section { margin-top: 14px; }
.odx-dossier .odx-a-sheet__label { margin: 0 6px 8px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--odx-ink-2); }
.odx-dossier .odx-a-sheet__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.odx-dossier .odx-a-sheet__item {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px;
  border-radius: 16px; background: rgb(255 255 255 / 0.68);
  font-size: 15px; letter-spacing: -0.02em; line-height: 1.2; color: var(--odx-ink); text-decoration: none;
}
.odx-dossier .odx-a-sheet__item .odx-a-icon { width: 20px; height: 20px; color: rgb(13 13 13 / 0.7); }
.odx-dossier .odx-a-sheet__item.is-current { background: var(--odx-pill-dark); color: var(--odx-on-dark); }
.odx-dossier .odx-a-sheet__item.is-current .odx-a-icon { color: var(--odx-on-dark); }
.odx-dossier .odx-a-sheet__item[aria-disabled="true"] { opacity: 0.4; }
.odx-dossier .odx-a-sheet__foot { display: flex; align-items: center; gap: 12px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--odx-a-line); background: rgb(255 255 255 / 0.6); }
.odx-dossier .odx-a-sheet__foot .odx-a-avatar { width: 44px; height: 44px; font-size: 15px; }
.odx-dossier .odx-a-sheet__foot .odx-a-account__text { flex: 1; }
.odx-dossier .odx-a-sheet__foot .odx-a-account__name { font-size: 16px; }
.odx-dossier .odx-a-sheet__foot .odx-a-account__role { font-size: 13px; }
.odx-dossier .odx-a-sheet .odx-iconbtn { --d: 44px; --s: 6px; }
.odx-dossier .odx-a-sheet .odx-iconbtn svg { width: 20px; height: 20px; }
@keyframes odx-a-fade { from { opacity: 0; } }
@keyframes odx-a-slide { from { transform: translateX(24px); opacity: 0; } }
/* ---------------------------------------------------------------- compact layouts */
@media (max-width: 1180px) {
  .odx-dossier.odx-a-root { --odx-u: 0.8px; }
  .odx-dossier .odx-a-canvas { padding-top: 28px; }
  .odx-dossier .odx-a-nav { display: none; }
  .odx-dossier .odx-a-brand { width: auto; }
  .odx-dossier .odx-a-menubtn { display: inline-grid; }
  .odx-dossier .odx-a-band { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .odx-dossier.odx-a-root { --odx-u: 0.78px; }
  .odx-dossier .odx-a-canvas { padding: 10px 0 24px; }
  .odx-dossier .odx-a-window { width: calc(100% - 20px); padding: 0 14px 18px; border-radius: 30px; min-height: calc(100vh - 34px); }
  .odx-dossier .odx-a-topbar { height: 72px; }
  .odx-dossier .odx-a-brand .odx-brand { --odx-brand-ring: 34px; }
  .odx-dossier .odx-a-band { padding: 16px; gap: 14px; border-radius: 22px; align-items: flex-start; }
  .odx-dossier .odx-a-band__lead { order: 1; flex: 1 1 0; }
  .odx-dossier .odx-a-title { font-size: 26px; }
  .odx-dossier .odx-a-band > .odx-s-popwrap { order: 2; }
  .odx-dossier .odx-a-account { padding: 0; }
  .odx-dossier .odx-a-band .odx-a-account__text, .odx-dossier .odx-a-band .odx-a-account__chev { display: none; }
  .odx-dossier .odx-a-band .odx-a-avatar { width: 44px; height: 44px; font-size: 15px; }
  .odx-dossier .odx-a-search { order: 3; flex: 1 1 100%; max-width: none; min-width: 0; margin-left: 0; }
  .odx-dossier .odx-a-search__field { height: 50px; }
  .odx-dossier .odx-a-search__input { font-size: 16px; }   /* no zoom-on-focus on iOS */
  .odx-dossier .odx-a-session { order: 4; flex-wrap: wrap; }
  .odx-dossier .odx-a-band__actions { order: 5; }
  .odx-dossier .odx-a-menu--account { position: fixed; left: 12px; right: 12px; top: 150px; width: auto; }
  :is(.odx-dossier, #odx-a-skin) .odx-a-bell .cheques-notification-panel { position: fixed; left: 12px; right: 12px; top: 84px; width: auto; max-height: calc(100vh - 100px); }
}
@media (prefers-reduced-motion: reduce) {
  .odx-dossier :is(.odx-a-nav__pill, .odx-a-nav__item, .odx-a-nav__icon, .odx-s-press, .odx-a-sheet, .odx-a-sheet-backdrop, .odx-a-search__panel) { transition: none; animation: none; }
}
/* the shared restyle draws a focus outline on every focused element (ID weight): the search field shows focus on its wrapper */
:is(.odx-dossier, #odx-a-skin) .odx-a-search__input:focus-visible { outline: none; }
/* Odontiax sign-in screens (P2a) in the dossier's language: the dossier backdrop and light glass window (same
   offsets, radius and glows), the Odontiax lockup where the dossier's sits, light Outfit headings, soft round
   controls, mint primary actions. Every class carries "odx-auth-" (the shared restyle skips [class*="odx-"]).
   Lengths are reference px x --odx-u like the dossier; under 900 px the hero folds above the card. */
/* Odontiax dossier — product typeface (Outfit, SIL OFL), four static weights.
   The files live next to this sheet (apps/web/public is a link into a read-only
   platform folder, so nothing is written there). Vite rewrites these relative URLs. */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300;
  font-display: block;
  src: url("/assets/Outfit-Light-BCN5VFdt.ttf") format("truetype");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/assets/Outfit-Regular-BlL8FXaZ.ttf") format("truetype");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("/assets/Outfit-Medium-B8Iwa1n1.ttf") format("truetype");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url("/assets/Outfit-SemiBold-Dyrk4jTU.ttf") format("truetype");
}
/* Odontiax patient dossier — design tokens measured on the owner's reference image
   (reference/reference-design.png, 2000 x 1500; numbers in reference/measurements.json).

   Every length is written in REFERENCE PIXELS multiplied by --odx-u. At a 2000 px wide
   container 1 unit = 1 reference pixel, so the page reproduces the reference 1:1; the unit
   is clamped so the layout stays usable from 1280 to 2560 px wide (0.64 px .. 1.28 px).
   --odx-u is a registered <length>: it is computed once on .odx-dossier (against the nearest
   ancestor with container-type: inline-size, or the viewport when there is none) and
   inherited as an absolute length, so nested containers never change it. */
@property --odx-u {
  syntax: "<length>";
  inherits: true;
  initial-value: 1px;
}
.odx-dossier {
  /* --odx-page-px: page width in px written on <html> by the dossier app (scrollbar excluded); static pages without it
     (odx-kit.html) fall back to the nearest inline-size container or the viewport. */
  --odx-u: clamp(0.64px, var(--odx-page-px, 100cqw) / 2000, 1.28px);

  /* ---------- typeface ---------- */
  --odx-font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --odx-w-body: 300;      /* the reference's running text renders as Outfit Light */
  --odx-w-emph: 400;      /* buttons, active tab, breadcrumb current page, chip, nav pill */
  --odx-w-strong: 500;    /* patient first name, card sub-heading */
  --odx-lh-glyph: 1.26;   /* Outfit ascent 1000 + descent 260 per 1000 em: content-area height (baseline 1 em under the line top) */
  --odx-word-spacing: 0.02em; /* reference spaces are ~0.3 px wider than Outfit's under the negative tracking */

  /* @type-scale:start (written by reference/work/gen_kit.py from typetokens.py) */
  /* type scale: size in reference px, tracking in em, weight; fitted on the reference ink boxes with Outfit */
  --odx-fs-title-lg: calc(27.2 * var(--odx-u)); --odx-ls-title-lg: -0.047em; --odx-w-title-lg: 300; /* "Tooth Analysis" */
  --odx-fs-title: calc(26.15 * var(--odx-u)); --odx-ls-title: -0.036em; --odx-w-title: 300; /* card titles */
  --odx-fs-subtitle: calc(22.2 * var(--odx-u)); --odx-ls-subtitle: -0.009em; --odx-w-subtitle: 500; /* "Preventive Care" */
  --odx-fs-body-lg: calc(21.5 * var(--odx-u)); --odx-ls-body-lg: -0.0435em; --odx-w-body-lg: 300; /* AI paragraph */
  --odx-fs-nav: calc(21.3 * var(--odx-u)); --odx-ls-nav: -0.051em; --odx-w-nav: 300; /* top navigation */
  --odx-fs-nav-active: calc(21.3 * var(--odx-u)); --odx-ls-nav-active: -0.047em; --odx-w-nav-active: 400; /* nav pill label */
  --odx-fs-button: calc(21.15 * var(--odx-u)); --odx-ls-button: -0.032em; --odx-w-button: 400; /* "Schedule Appointment" */
  --odx-fs-value: calc(20.9 * var(--odx-u)); --odx-ls-value: -0.034em; --odx-w-value: 300; /* meta / case values, doctor name */
  --odx-fs-name: calc(20.6 * var(--odx-u)); --odx-ls-name: -0.018em; --odx-w-name: 300; /* patient last name */
  --odx-fs-doctor: calc(20.6 * var(--odx-u)); --odx-ls-doctor: -0.04em; --odx-w-doctor: 300; /* signed-in doctor name */
  --odx-fs-name-strong: calc(20.5 * var(--odx-u)); --odx-ls-name-strong: -0.052em; --odx-w-name-strong: 500; /* patient first name */
  --odx-fs-score: calc(20.25 * var(--odx-u)); --odx-ls-score: -0.045em; --odx-w-score: 300; /* health score value */
  --odx-fs-data: calc(18.65 * var(--odx-u)); --odx-ls-data: -0.046em; --odx-w-data: 300; /* analysis + history values */
  --odx-fs-button-sm: calc(18.5 * var(--odx-u)); --odx-ls-button-sm: -0.027em; --odx-w-button-sm: 400; /* "Schedule Cleaning" */
  --odx-fs-crumb: calc(18.1 * var(--odx-u)); --odx-ls-crumb: -0.032em; --odx-w-crumb: 300; /* breadcrumb */
  --odx-fs-crumb-current: calc(18.1 * var(--odx-u)); --odx-ls-crumb-current: -0.033em; --odx-w-crumb-current: 400; /* breadcrumb current page */
  --odx-fs-tab-idle: calc(18.1 * var(--odx-u)); --odx-ls-tab-idle: -0.048em; --odx-w-tab-idle: 300; /* idle tab */
  --odx-fs-tab: calc(17.9 * var(--odx-u)); --odx-ls-tab: -0.022em; --odx-w-tab: 400; /* active tab */
  --odx-fs-note: calc(16.35 * var(--odx-u)); --odx-ls-note: -0.051em; --odx-w-note: 300; /* analysis note, case sub-line */
  --odx-fs-chip: calc(15.9 * var(--odx-u)); --odx-ls-chip: -0.055em; --odx-w-chip: 400; /* "Low Risk" */
  --odx-fs-label: calc(15.7 * var(--odx-u)); --odx-ls-label: -0.045em; --odx-w-label: 300; /* every small label */
  --odx-fs-status: calc(15.6 * var(--odx-u)); --odx-ls-status: -0.033em; --odx-w-status: 300; /* patient status line */
  --odx-fs-micro: calc(13.6 * var(--odx-u)); --odx-ls-micro: -0.052em; --odx-w-micro: 300; /* "Health Score" */
  --odx-lh-body-lg: calc(29.2 * var(--odx-u));  /* paragraph line pitch */
  /* @type-scale:end */

  /* ---------- colour: grounds ---------- */
  --odx-backdrop-from: #e0e8dc;            /* bottom-left corner of the page */
  --odx-backdrop-to: #e8ece5;              /* top-right corner */
  --odx-backdrop: linear-gradient(63.6deg, var(--odx-backdrop-from), var(--odx-backdrop-to));
  --odx-window-base: #fdfdfd;
  --odx-glow-mint: 214 255 228;            /* top-right glow of the window */
  --odx-glow-leaf: 180 226 169;            /* bottom glow under the lower cards */
  --odx-window-bg:
    radial-gradient(calc(1515 * var(--odx-u)) calc(727 * var(--odx-u)) at calc(518 * var(--odx-u)) calc(1283 * var(--odx-u)),
      rgb(var(--odx-glow-leaf) / 1) 0%, rgb(var(--odx-glow-leaf) / .299) 50%, rgb(var(--odx-glow-leaf) / 0) 100%),
    radial-gradient(calc(777 * var(--odx-u)) calc(929 * var(--odx-u)) at calc(1786 * var(--odx-u)) calc(161 * var(--odx-u)),
      rgb(var(--odx-glow-mint) / 1) 0%, rgb(var(--odx-glow-mint) / .439) 50%, rgb(var(--odx-glow-mint) / 0) 100%),
    var(--odx-window-base);
  /* white "glass" panels: plain white at these opacities over the window ground */
  --odx-glass-header: rgb(255 255 255 / .28);
  --odx-glass-card: rgb(255 255 255 / .68);
  --odx-glass-solid: rgb(255 255 255 / .95);

  /* ---------- colour: ink ---------- */
  --odx-ink: #0d0d0d;                      /* primary text and line icons */
  --odx-ink-strong: #050505;               /* titles */
  --odx-ink-2: rgb(13 13 13 / .62);        /* secondary labels (Tooth, Date:, Procedure ...) */
  --odx-ink-3: rgb(13 13 13 / .63);        /* notes ("Surface cleaning recommended"), patient id */
  --odx-ink-4: rgb(13 13 13 / .63);        /* patient status, doctor role */
  --odx-ink-crumb: #252525;
  --odx-ink-tab: #252525;
  --odx-ink-soft: #232423;                 /* top navigation and the AI paragraph render ~10 % lighter than the values */
  --odx-ink-micro: rgb(13 13 13 / .64);    /* "Health Score" over the tinted tile */
  --odx-on-dark: #fefbfc;

  /* ---------- colour: accents ---------- */
  --odx-pill-dark: #211f1f;                /* active nav pill */
  --odx-mint-1: #e0fac3;                   /* mint button gradient, left */
  --odx-mint-2: #c5fcc4;                   /* middle */
  --odx-mint-3: #aaffc6;                   /* right */
  --odx-mint-gradient: linear-gradient(90deg, var(--odx-mint-1) 0%, var(--odx-mint-2) 50%, var(--odx-mint-3) 100%);
  --odx-score-good: #c8fdc6;               /* health score >= 85 (reference 90 %) */
  --odx-score-fair: #e1fbc4;               /* 70-84 (reference 80 %) */
  --odx-score-watch: #f9f8c0;              /* < 70 (reference 65 %) */
  --odx-chip-lime: #e1f9c3;                /* "Low Risk" */
  --odx-status-yellow: #fcde0b;            /* condition dot */
  --odx-soft-fill: rgb(0 0 0 / .026);      /* soft round icon buttons on white */
  --odx-soft-fill-tinted: rgb(30 60 30 / .02); /* the same on the green-tinted lower cards */
  --odx-glow-fill: #ffffff;                /* round icon buttons on the mint top bar */
  --odx-thumb-fill: #eef2ef;               /* tooth thumbnail disc */
  --odx-rail-line: #e2e2e2;
  --odx-rail-thumb: #1c1c1c;
  --odx-placeholder: #d9dcd9;              /* photo placeholders in the static kit */

  /* ---------- geometry (reference px) ---------- */
  --odx-page-w: calc(2000 * var(--odx-u));
  --odx-page-h: calc(1500 * var(--odx-u));
  --odx-window-x: calc(79 * var(--odx-u));
  --odx-window-y: calc(151 * var(--odx-u));
  --odx-window-w: calc(1843 * var(--odx-u));
  --odx-window-h: calc(1196 * var(--odx-u));
  --odx-window-pad-x: calc(49 * var(--odx-u));
  --odx-window-pad-b: calc(17 * var(--odx-u));
  --odx-gap: calc(28 * var(--odx-u));      /* gap between every panel */
  --odx-topbar-h: calc(111 * var(--odx-u));
  --odx-header-h: calc(202 * var(--odx-u));
  --odx-stage-h: calc(484 * var(--odx-u));
  --odx-bottom-h: calc(326 * var(--odx-u));
  --odx-card-pad: calc(20.5 * var(--odx-u));

  /* radii */
  --odx-r-window: calc(64 * var(--odx-u));
  --odx-r-card: calc(29.5 * var(--odx-u));
  --odx-r-header: calc(27 * var(--odx-u));
  --odx-r-button: calc(14 * var(--odx-u));
  --odx-r-tab: calc(12 * var(--odx-u));
  --odx-r-tile: calc(9 * var(--odx-u));
  --odx-r-thumb: calc(10 * var(--odx-u));

  /* round controls (visible diameter at the 50 % edge / soft edge width) */
  --odx-btn-glow-d: calc(48.4 * var(--odx-u));   /* top bar: white disc on mint */
  --odx-btn-back-d: calc(49 * var(--odx-u));
  --odx-btn-soft-d: calc(41 * var(--odx-u));      /* patient actions */
  --odx-btn-card-d: calc(40 * var(--odx-u));      /* card arrow / kebab */
  --odx-soft-edge: calc(6 * var(--odx-u));
  --odx-avatar-d: calc(68.7 * var(--odx-u));
  --odx-avatar-sm-d: calc(49 * var(--odx-u));
  --odx-thumb-d: calc(58.4 * var(--odx-u));
  --odx-dot-d: calc(20 * var(--odx-u));
  --odx-icon: calc(20 * var(--odx-u));
  --odx-icon-sm: calc(14 * var(--odx-u));
  --odx-icon-stroke: 1.5;                          /* in a 24 x 24 icon grid */

  /* nav pill shadow: a soft ellipse 30 px under the pill */
  --odx-pill-shadow: rgb(0 0 0 / .045);
}
/* Odontiax patient dossier — visual primitives (.odx-<thing>), measured on the reference image.
   Requires tokens.css (+ fonts.css). Sizes are reference px x --odx-u. Screen geometry (where each
   primitive sits on the dossier page) lives in layout.css; these classes only carry the look. */
.odx-dossier,
.odx-dossier *,
.odx-dossier *::before,
.odx-dossier *::after { box-sizing: border-box; }
.odx-dossier {
  font-family: var(--odx-font);
  font-weight: var(--odx-w-body);
  color: var(--odx-ink);
  line-height: var(--odx-lh-glyph);
  font-kerning: normal;
  font-synthesis: none;
  word-spacing: var(--odx-word-spacing);
}
:where(.odx-dossier) button { font: inherit; color: inherit; letter-spacing: inherit; border: 0; padding: 0; margin: 0; background: none; cursor: pointer; }
:where(.odx-dossier) :is(p, h1, h2, h3) { margin: 0; font: inherit; letter-spacing: inherit; }
:where(.odx-dossier) svg { display: block; flex: none; }
/* line icons (24 x 24 grid, stroke 1.5, lucide-like); fill-based marks opt out with .odx-brand__mark */
.odx-icon, .odx-nav__icon { fill: none; stroke: currentColor; stroke-width: var(--odx-icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
/* ---------- text styles: line-height 1.26 em = Outfit content area, so the baseline sits 1 em under the line top ---------- */
.odx-t-title-lg { font-size: var(--odx-fs-title-lg); letter-spacing: var(--odx-ls-title-lg); color: var(--odx-ink-strong); }
.odx-t-title { font-size: var(--odx-fs-title); letter-spacing: var(--odx-ls-title); color: var(--odx-ink-strong); }
.odx-t-subtitle { font-size: var(--odx-fs-subtitle); letter-spacing: var(--odx-ls-subtitle); font-weight: var(--odx-w-strong); color: var(--odx-ink-strong); }
.odx-t-body-lg { font-size: var(--odx-fs-body-lg); letter-spacing: var(--odx-ls-body-lg); line-height: var(--odx-lh-body-lg); color: var(--odx-ink-soft); }
.odx-t-nav { font-size: var(--odx-fs-nav); letter-spacing: var(--odx-ls-nav); }
.odx-t-value { font-size: var(--odx-fs-value); letter-spacing: var(--odx-ls-value); }
.odx-t-data { font-size: var(--odx-fs-data); letter-spacing: var(--odx-ls-data); }
.odx-t-crumb { font-size: var(--odx-fs-crumb); letter-spacing: var(--odx-ls-crumb); color: var(--odx-ink-crumb); }
.odx-t-note { font-size: var(--odx-fs-note); letter-spacing: var(--odx-ls-note); color: var(--odx-ink-3); }
.odx-t-label { font-size: var(--odx-fs-label); letter-spacing: var(--odx-ls-label); color: var(--odx-ink-2); }
.odx-t-status { font-size: var(--odx-fs-status); letter-spacing: var(--odx-ls-status); color: var(--odx-ink-4); }
.odx-t-micro { font-size: var(--odx-fs-micro); letter-spacing: var(--odx-ls-micro); color: var(--odx-ink-micro); }
.odx-t-nowrap { white-space: nowrap; }
.odx-text { display: block; white-space: nowrap; }
/* ---------- page + window ---------- */
.odx-page {
  container-type: inline-size;            /* lets .odx-dossier inside resolve --odx-u from this width */
  background: #e4eae0;
}
.odx-canvas {
  position: relative;
  width: var(--odx-page-w);
  min-height: var(--odx-page-h);
  background: var(--odx-backdrop);
}
.odx-window {
  position: relative;
  width: var(--odx-window-w);
  height: var(--odx-window-h);
  border-radius: var(--odx-r-window);
  background: var(--odx-window-bg);
  isolation: isolate;
}
/* ---------- panels ---------- */
.odx-glass { background: var(--odx-glass-header); border-radius: var(--odx-r-header); }
.odx-card { position: relative; background: var(--odx-glass-card); border-radius: var(--odx-r-card); }
.odx-card--solid { background: var(--odx-glass-solid); }
.odx-card--ai { background: var(--odx-glass-ai, var(--odx-glass-card)); }
/* ---------- brand (replaces the reference wordmark) ----------
   Odontiax lockup: porcelain ring + emerald dot (app-icon geometry) and the ODONTIAX wordmark (Outfit 400, tracking .34 em).
   --odx-brand-ring is the visible ring diameter; the 64-unit SVG box is ring x 4/3 (the margin holds the drop shadow) and is
   pulled back with negative margins so the layout box is the ring itself. Wordmark = ring x 20/42, gap = ring x 14/42.
   In the replica the lockup sits where the reference's ORISYNC wordmark sits (left 128, centred on the bar). */
.odx-brand {
  --odx-brand-ring: calc(42 * var(--odx-u));
  display: inline-flex;
  align-items: center;
  gap: calc(var(--odx-brand-ring) * 14 / 42);
  color: var(--odx-ink);
}
.odx-brand__mark {
  width: calc(var(--odx-brand-ring) * 4 / 3);
  height: calc(var(--odx-brand-ring) * 4 / 3);
  margin: calc(var(--odx-brand-ring) / -6);
}
.odx-wordmark {
  font-size: calc(var(--odx-brand-ring) * 20 / 42);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.34em;
  margin-right: -0.34em;                  /* the trailing tracking is not part of the optical width */
  text-transform: uppercase;
  white-space: nowrap;
}
/* ---------- text navigation + dark active pill ---------- */
.odx-nav { display: flex; align-items: center; }
.odx-nav__item {
  font-size: var(--odx-fs-nav);
  letter-spacing: var(--odx-ls-nav);
  color: var(--odx-ink-soft);
  white-space: nowrap;
  text-decoration: none;
}
.odx-nav__item--active {                  /* lucide: Users */
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(10.5 * var(--odx-u));
  height: calc(52.2 * var(--odx-u));
  padding: 0 calc(20 * var(--odx-u));
  border-radius: var(--odx-r-button);
  background: var(--odx-pill-dark);
  color: var(--odx-on-dark);
  font-weight: var(--odx-w-emph);
  font-size: var(--odx-fs-nav);
  letter-spacing: var(--odx-ls-nav-active);
}
.odx-nav__item--active::after {           /* the soft floating shadow 30 px under the pill */
  content: "";
  position: absolute;
  left: calc(12 * var(--odx-u));
  right: calc(12 * var(--odx-u));
  top: calc(100% + calc(24 * var(--odx-u)));
  height: calc(22 * var(--odx-u));
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--odx-pill-shadow), rgb(0 0 0 / 0));
  pointer-events: none;
}
.odx-nav__icon { width: calc(22 * var(--odx-u)); height: calc(22 * var(--odx-u)); stroke-width: 1.9; }
/* ---------- round icon buttons: a disc with a soft (feathered) edge ----------
   --d = visible diameter (50 % point of the edge), --s = feather width. The element is d + s wide and
   pulls itself back with negative margins, so in the layout it occupies exactly d. */
.odx-iconbtn {
  --d: var(--odx-btn-card-d);
  --s: var(--odx-soft-edge);
  --fill: var(--odx-soft-fill);
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: calc(var(--d) + var(--s));
  height: calc(var(--d) + var(--s));
  margin: calc(var(--s) / -2);
  border-radius: 50%;
  color: var(--odx-ink);
  background: radial-gradient(closest-side, var(--fill) calc(var(--d) / 2 - var(--s) / 2), rgb(255 255 255 / 0) calc(var(--d) / 2 + var(--s) / 2));
}
.odx-iconbtn--glow { --d: var(--odx-btn-glow-d); --s: calc(9 * var(--odx-u)); --fill: var(--odx-glow-fill); }
/* top bar: search, bell, settings */
.odx-iconbtn--back { --d: var(--odx-btn-back-d); --s: calc(7 * var(--odx-u)); --fill: rgb(0 0 0 / .024); }
/* lucide: ChevronLeft */
.odx-iconbtn--soft { --d: var(--odx-btn-soft-d); --s: calc(7 * var(--odx-u)); --fill: rgb(0 0 0 / .02); }
/* patient actions */
.odx-iconbtn--card { --d: var(--odx-btn-card-d); --s: calc(5 * var(--odx-u)); --fill: rgb(0 0 0 / .028); }
/* lucide: ArrowUpRight */
.odx-iconbtn--tinted { --d: var(--odx-btn-card-d); --s: calc(6 * var(--odx-u)); --fill: var(--odx-soft-fill-tinted); }
/* lucide: Ellipsis */
.odx-icon { width: calc(24 * var(--odx-u)); height: calc(24 * var(--odx-u)); }
.odx-icon--sm { width: calc(16 * var(--odx-u)); height: calc(16 * var(--odx-u)); }
/* ---------- mint gradient button ---------- */
.odx-btn-mint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(52 * var(--odx-u));
  padding: 0 calc(24 * var(--odx-u));
  border-radius: var(--odx-r-button);
  background: var(--odx-mint-gradient);
  box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(255 255 255 / .28);
  color: var(--odx-ink);
  font-weight: var(--odx-w-emph);
  font-size: var(--odx-fs-button);
  letter-spacing: var(--odx-ls-button);
  white-space: nowrap;
}
.odx-btn-mint--sm { height: calc(49.7 * var(--odx-u)); font-size: var(--odx-fs-button-sm); letter-spacing: var(--odx-ls-button-sm); border-radius: calc(14.5 * var(--odx-u)); }
/* ---------- pill tabs over the 3D stage ---------- */
.odx-tabs { display: flex; align-items: center; }
.odx-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(47.1 * var(--odx-u));
  border-radius: var(--odx-r-tab);
  font-size: var(--odx-fs-tab-idle);
  letter-spacing: var(--odx-ls-tab-idle);
  color: var(--odx-ink-tab);
  white-space: nowrap;
}
.odx-tab--active {
  background: var(--odx-mint-gradient);
  color: var(--odx-ink);
  font-weight: var(--odx-w-emph);
  font-size: var(--odx-fs-tab);
  letter-spacing: var(--odx-ls-tab);
}
/* ---------- label / value pair ---------- */
.odx-pair { display: flex; flex-direction: column; align-items: flex-start; }
.odx-pair__label { font-size: var(--odx-fs-label); letter-spacing: var(--odx-ls-label); color: var(--odx-ink-2); white-space: nowrap; }
.odx-pair__value { white-space: nowrap; }
.odx-pair__label.odx-t-label--ink, .odx-t-label--ink { color: var(--odx-ink); }
/* header meta labels and case labels are dark in the reference */
/* ---------- chip ---------- */
.odx-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(31.7 * var(--odx-u));
  padding: 0 calc(14 * var(--odx-u));
  border-radius: 999px;
  background: var(--odx-chip-lime);
  box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(255 255 255 / .35);
  font-weight: var(--odx-w-emph);
  font-size: var(--odx-fs-chip);
  letter-spacing: var(--odx-ls-chip);
  color: var(--odx-ink);
  white-space: nowrap;
}
/* ---------- health score tile ---------- */
.odx-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100.3 * var(--odx-u));
  height: calc(58.1 * var(--odx-u));
  border-radius: var(--odx-r-tile);
  background: var(--odx-score-fair);
  box-shadow: inset 0 0 0 calc(1.5 * var(--odx-u)) rgb(255 255 255 / .3);
}
.odx-score--good { background: var(--odx-score-good); }
.odx-score--fair { background: var(--odx-score-fair); }
.odx-score--watch { background: var(--odx-score-watch); }
.odx-score__label { font-size: var(--odx-fs-micro); letter-spacing: var(--odx-ls-micro); color: var(--odx-ink-micro); white-space: nowrap; }
.odx-score__value { font-size: var(--odx-fs-score); letter-spacing: var(--odx-ls-score); white-space: nowrap; }
/* ---------- avatars, thumbnails, dots ---------- */
.odx-avatar {
  flex: none;
  width: var(--odx-avatar-d);
  height: var(--odx-avatar-d);
  border-radius: 50%;
  background: var(--odx-placeholder);
  object-fit: cover;
  overflow: hidden;
}
.odx-avatar--sm { width: var(--odx-avatar-sm-d); height: var(--odx-avatar-sm-d); }
.odx-thumb {
  --d: var(--odx-thumb-d);
  --s: calc(4 * var(--odx-u));
  flex: none;
  width: calc(var(--d) + var(--s));
  height: calc(var(--d) + var(--s));
  margin: calc(var(--s) / -2);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--odx-thumb-fill) calc(var(--d) / 2 - var(--s) / 2), rgb(255 255 255 / 0) calc(var(--d) / 2 + var(--s) / 2));
}
.odx-dot {
  display: inline-block;
  flex: none;
  width: var(--odx-dot-d);
  height: var(--odx-dot-d);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fde424, var(--odx-status-yellow) 55%, #efc800);
}
/* ---------- doctor chip (signed-in user) ---------- */
.odx-doctor { display: flex; align-items: flex-start; }
.odx-doctor__name { font-size: var(--odx-fs-doctor); letter-spacing: var(--odx-ls-doctor); white-space: nowrap; }
.odx-doctor__role { font-size: var(--odx-fs-label); letter-spacing: var(--odx-ls-label); color: var(--odx-ink-4); white-space: nowrap; }
/* ---------- breadcrumb ---------- */
.odx-crumb { display: flex; align-items: flex-start; }
.odx-crumb__path { font-size: var(--odx-fs-crumb); letter-spacing: var(--odx-ls-crumb); color: var(--odx-ink-crumb); white-space: nowrap; }
.odx-crumb__current { font-weight: var(--odx-w-emph); color: var(--odx-ink); letter-spacing: var(--odx-ls-crumb-current); }
/* ---------- table-like rows with a kebab ---------- */
.odx-hrow { display: flex; align-items: flex-start; }
.odx-hrow__cell { display: flex; flex-direction: column; }
/* ---------- vertical zoom rail ---------- */
.odx-zoom__track { position: absolute; width: calc(2 * var(--odx-u)); background: var(--odx-rail-line); border-radius: 1px; }
.odx-zoom__thumb {
  position: absolute;
  width: calc(20 * var(--odx-u));
  height: calc(40 * var(--odx-u));
  border-radius: var(--odx-r-thumb);
  background: var(--odx-rail-thumb);
}
.odx-zoom__thumb::before {                /* grip: three short light lines */
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(6 * var(--odx-u));
  height: calc(5 * var(--odx-u));
  transform: translate(-50%, -50%);
  background: repeating-linear-gradient(180deg, rgb(255 255 255 / .75) 0 calc(1 * var(--odx-u)), transparent calc(1 * var(--odx-u)) calc(2 * var(--odx-u)));
}
.odx-zoom__buttons {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(40 * var(--odx-u));
  border-radius: calc(20 * var(--odx-u));
  background: rgb(255 255 255 / .9);
  box-shadow: 0 0 calc(8 * var(--odx-u)) calc(2 * var(--odx-u)) rgb(255 255 255 / .8);
}
.odx-zoom__btn { display: grid; place-items: center; width: calc(40 * var(--odx-u)); height: calc(40 * var(--odx-u)); color: var(--odx-ink); }
/* ---------- 3D stage slot (canvas mounts here; transparent in the static kit) ---------- */
.odx-stage-slot { position: absolute; background: transparent; }
html.odx-dossier:has(.odx-auth-page:not(.odx-auth-page--overlay)),
html.odx-dossier:has(.odx-auth-page:not(.odx-auth-page--overlay)) body,
html.odx-dossier:has(.odx-auth-page:not(.odx-auth-page--overlay)) #root { height: auto; min-height: 100%; overflow: visible; }
html.odx-dossier:has(.odx-auth-page) body { background: #e4eae0; min-width: 0; }
.odx-dossier.odx-auth-root {
  --odx-u: clamp(0.64px, var(--odx-page-px, 100vw) / 2000, 1.28px);
  --odx-fs-label: max(calc(15.7 * var(--odx-u)), 12px);
  --odx-fs-note: max(calc(16.35 * var(--odx-u)), 12px);
  --odx-fs-micro: max(calc(13.6 * var(--odx-u)), 10.5px);
  --odx-auth-emerald: #0c8f60;
  --odx-auth-field: rgb(0 0 0 / 0.035);
}
/* ---------------------------------------------------------------- page + window */
.odx-auth-page { min-height: 100vh; background: #e4eae0; }
.odx-auth-page--overlay { position: fixed; inset: 0; z-index: 5000; overflow-y: auto; background: rgb(228 234 224 / 0.82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.odx-dossier .odx-auth-canvas {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  padding: max(24px, calc(70 * var(--odx-u))) var(--odx-window-x);
  background: var(--odx-backdrop);
}
.odx-auth-page--overlay .odx-dossier.odx-auth-canvas { background: transparent; }
.odx-dossier .odx-auth-window {
  display: flex; flex-direction: column;
  height: auto;
  width: min(var(--odx-window-w), 100%);
  min-height: min(var(--odx-window-h), calc(100vh - 2 * max(24px, calc(70 * var(--odx-u)))));
  padding: 0 var(--odx-window-pad-x) calc(49 * var(--odx-u));
  box-shadow: 0 calc(40 * var(--odx-u)) calc(120 * var(--odx-u)) rgb(40 80 50 / 0.08);
}
.odx-dossier .odx-auth-window--single { width: min(calc(1100 * var(--odx-u)), 100%); min-height: min(calc(860 * var(--odx-u)), calc(100vh - 48px)); }
.odx-dossier .odx-auth-top { display: flex; align-items: center; justify-content: space-between; height: var(--odx-topbar-h); flex: none; }
.odx-dossier .odx-auth-top__badge { display: flex; align-items: center; }
.odx-dossier .odx-auth-pill {
  display: inline-flex; align-items: center; gap: calc(9 * var(--odx-u));
  height: calc(44 * var(--odx-u)); padding: 0 calc(18 * var(--odx-u));
  border-radius: 999px; background: rgb(255 255 255 / 0.85);
  box-shadow: 0 calc(4 * var(--odx-u)) calc(14 * var(--odx-u)) rgb(30 70 40 / 0.06);
  font-size: var(--odx-fs-crumb); letter-spacing: var(--odx-ls-crumb); white-space: nowrap;
}
.odx-dossier .odx-auth-pill__dot { width: calc(9 * var(--odx-u)); height: calc(9 * var(--odx-u)); min-width: 7px; min-height: 7px; border-radius: 50%; background: #23b26d; box-shadow: 0 0 0 calc(3 * var(--odx-u)) rgb(35 178 109 / 0.16); flex: none; }
.odx-dossier .odx-auth-pill__dot.is-off { background: #e0a800; box-shadow: 0 0 0 calc(3 * var(--odx-u)) rgb(224 168 0 / 0.18); }
.odx-dossier .odx-auth-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(700 * var(--odx-u));
  gap: calc(56 * var(--odx-u));
  align-items: center;
  padding: calc(10 * var(--odx-u)) calc(30 * var(--odx-u)) 0 calc(14 * var(--odx-u));
}
.odx-dossier .odx-auth-window--single .odx-auth-body { grid-template-columns: minmax(0, calc(640 * var(--odx-u))); justify-content: center; }
/* ---------------------------------------------------------------- hero */
.odx-dossier .odx-auth-hero { position: relative; display: flex; flex-direction: column; align-self: stretch; justify-content: center; padding-bottom: calc(40 * var(--odx-u)); }
.odx-dossier .odx-auth-eyebrow { margin: 0 0 calc(22 * var(--odx-u)); font-size: var(--odx-fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--odx-ink-2); }
.odx-dossier .odx-auth-headline {
  margin: 0; font-size: calc(78 * var(--odx-u)); line-height: 1.04; letter-spacing: -0.055em; font-weight: 300; color: var(--odx-ink-strong);
}
.odx-dossier .odx-auth-intro { margin: calc(28 * var(--odx-u)) 0 0; max-width: calc(560 * var(--odx-u)); font-size: var(--odx-fs-body-lg); letter-spacing: var(--odx-ls-body-lg); line-height: var(--odx-lh-body-lg); color: var(--odx-ink-soft); }
.odx-dossier .odx-auth-art { position: relative; height: calc(330 * var(--odx-u)); margin-top: calc(34 * var(--odx-u)); }
.odx-dossier .odx-auth-art__ring { position: absolute; left: calc(110 * var(--odx-u)); top: calc(30 * var(--odx-u)); --odx-brand-ring: calc(230 * var(--odx-u)); filter: drop-shadow(0 calc(30 * var(--odx-u)) calc(40 * var(--odx-u)) rgb(30 80 50 / 0.12)); }
.odx-dossier .odx-auth-art__chip {
  position: absolute; display: inline-flex; align-items: center; gap: calc(10 * var(--odx-u));
  height: calc(54 * var(--odx-u)); padding: 0 calc(20 * var(--odx-u)) 0 calc(14 * var(--odx-u));
  border-radius: 999px; background: rgb(255 255 255 / 0.78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 calc(12 * var(--odx-u)) calc(30 * var(--odx-u)) rgb(30 70 40 / 0.08), inset 0 0 0 1px rgb(255 255 255 / 0.6);
  font-size: var(--odx-fs-crumb); letter-spacing: var(--odx-ls-crumb); white-space: nowrap; color: var(--odx-ink);
}
.odx-dossier .odx-auth-art__chip .odx-icon { width: calc(30 * var(--odx-u)); height: calc(30 * var(--odx-u)); padding: calc(6 * var(--odx-u)); border-radius: 50%; background: var(--odx-mint-gradient); }
.odx-dossier .odx-auth-art__chip--a { left: calc(330 * var(--odx-u)); top: calc(26 * var(--odx-u)); }
.odx-dossier .odx-auth-art__chip--b { left: 0; top: calc(208 * var(--odx-u)); }
.odx-dossier .odx-auth-art__chip--c { left: calc(380 * var(--odx-u)); top: calc(178 * var(--odx-u)); }
.odx-dossier .odx-auth-note { display: flex; align-items: center; gap: calc(10 * var(--odx-u)); margin: calc(26 * var(--odx-u)) 0 0; font-size: var(--odx-fs-note); color: var(--odx-ink-2); }
.odx-dossier .odx-auth-note .odx-icon { width: calc(20 * var(--odx-u)); height: calc(20 * var(--odx-u)); color: var(--odx-auth-emerald); }
/* ---------------------------------------------------------------- card + form */
.odx-dossier .odx-auth-card {
  position: relative;
  padding: calc(48 * var(--odx-u)) calc(52 * var(--odx-u)) calc(40 * var(--odx-u));
  border-radius: calc(36 * var(--odx-u));
  background: rgb(255 255 255 / 0.86);
  box-shadow: 0 calc(30 * var(--odx-u)) calc(80 * var(--odx-u)) rgb(30 70 40 / 0.09), inset 0 0 0 1px rgb(255 255 255 / 0.7);
}
.odx-dossier .odx-auth-form { display: flex; flex-direction: column; gap: calc(22 * var(--odx-u)); outline: none; }
.odx-dossier .odx-auth-form--keypad { gap: calc(18 * var(--odx-u)); }
.odx-dossier .odx-auth-form--center { align-items: stretch; text-align: center; }
.odx-dossier .odx-auth-form--center .odx-auth-head { align-items: center; }
.odx-dossier .odx-auth-head { display: flex; flex-direction: column; align-items: flex-start; gap: calc(10 * var(--odx-u)); margin-bottom: calc(6 * var(--odx-u)); }
.odx-dossier .odx-auth-head__icon { display: grid; place-items: center; width: calc(56 * var(--odx-u)); height: calc(56 * var(--odx-u)); margin-bottom: calc(6 * var(--odx-u)); border-radius: 50%; background: var(--odx-mint-gradient); box-shadow: 0 calc(8 * var(--odx-u)) calc(20 * var(--odx-u)) rgb(90 200 120 / 0.2); }
.odx-dossier .odx-auth-head__icon .odx-icon { width: calc(26 * var(--odx-u)); height: calc(26 * var(--odx-u)); }
.odx-dossier .odx-auth-head__eyebrow { margin: 0; font-size: var(--odx-fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--odx-auth-emerald); }
.odx-dossier .odx-auth-head__title { margin: 0; font-size: calc(46 * var(--odx-u)); line-height: 1.1; letter-spacing: -0.05em; font-weight: 300; color: var(--odx-ink-strong); }
.odx-dossier .odx-auth-head__text { margin: 0; font-size: var(--odx-fs-value); letter-spacing: var(--odx-ls-value); line-height: 1.45; color: var(--odx-ink-3); }
.odx-dossier .odx-auth-head__text strong { font-weight: 400; color: var(--odx-ink); }
.odx-dossier .odx-auth-field { display: flex; flex-direction: column; gap: calc(9 * var(--odx-u)); min-width: 0; margin: 0; padding: 0; border: 0; }
.odx-dossier .odx-auth-label { padding: 0; font-size: var(--odx-fs-label); letter-spacing: var(--odx-ls-label); color: var(--odx-ink-2); }
.odx-dossier .odx-auth-label__muted { color: var(--odx-ink); }
.odx-dossier .odx-auth-input {
  position: relative; display: flex; align-items: center; gap: calc(12 * var(--odx-u));
  height: calc(62 * var(--odx-u)); min-height: 46px; padding: 0 calc(8 * var(--odx-u)) 0 calc(20 * var(--odx-u));
  border-radius: calc(16 * var(--odx-u)); background: var(--odx-auth-field);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / 0.03);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.odx-dossier .odx-auth-input > .odx-icon { width: calc(21 * var(--odx-u)); height: calc(21 * var(--odx-u)); min-width: 17px; min-height: 17px; color: rgb(13 13 13 / 0.5); flex: none; }
.odx-dossier .odx-auth-input:hover { background: rgb(0 0 0 / 0.045); }
.odx-dossier .odx-auth-input:focus-within { background: #fff; box-shadow: 0 0 0 calc(2 * var(--odx-u)) rgb(12 143 96 / 0.4), 0 calc(8 * var(--odx-u)) calc(22 * var(--odx-u)) rgb(30 70 40 / 0.07); }
.odx-dossier .odx-auth-input.is-match { box-shadow: inset 0 0 0 1px rgb(35 178 109 / 0.35); }
.odx-dossier .odx-auth-input__control {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: none; box-shadow: none; appearance: none;
  font: inherit; font-size: max(var(--odx-fs-value), 15px); letter-spacing: -0.02em; color: var(--odx-ink);
}
.odx-dossier .odx-auth-input__control::placeholder { color: rgb(13 13 13 / 0.38); }
.odx-dossier .odx-auth-input__control:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px transparent inset; transition: background-color 9999s; }
.odx-dossier .odx-auth-input__toggle, .odx-dossier .odx-auth-input__ok {
  display: grid; place-items: center; flex: none; width: calc(46 * var(--odx-u)); height: calc(46 * var(--odx-u)); min-width: 36px; min-height: 36px;
  border-radius: 50%; color: rgb(13 13 13 / 0.6);
}
.odx-dossier .odx-auth-input__toggle:hover { background: rgb(0 0 0 / 0.04); color: var(--odx-ink); }
.odx-dossier .odx-auth-input__toggle .odx-icon { width: calc(20 * var(--odx-u)); height: calc(20 * var(--odx-u)); }
.odx-dossier .odx-auth-input__ok { color: var(--odx-auth-emerald); }
.odx-dossier .odx-auth-options { display: flex; align-items: center; justify-content: space-between; gap: calc(12 * var(--odx-u)); flex-wrap: wrap; }
.odx-dossier .odx-auth-check { display: inline-flex; align-items: center; gap: calc(10 * var(--odx-u)); font-size: var(--odx-fs-crumb); letter-spacing: var(--odx-ls-crumb); color: var(--odx-ink); }
.odx-dossier .odx-auth-check__box { display: grid; place-items: center; width: calc(22 * var(--odx-u)); height: calc(22 * var(--odx-u)); min-width: 18px; min-height: 18px; border-radius: calc(7 * var(--odx-u)); background: rgb(0 0 0 / 0.05); box-shadow: inset 0 0 0 1px rgb(13 13 13 / 0.08); transition: background 160ms ease; }
.odx-dossier .odx-auth-check.is-on .odx-auth-check__box { background: var(--odx-pill-dark); color: var(--odx-on-dark); box-shadow: none; }
.odx-dossier .odx-auth-textlink {
  display: inline-flex; align-items: center; gap: calc(6 * var(--odx-u)); padding: calc(6 * var(--odx-u)) 0;
  font-size: var(--odx-fs-crumb); letter-spacing: var(--odx-ls-crumb); color: var(--odx-ink); text-decoration: underline; text-decoration-color: rgb(13 13 13 / 0.25); text-underline-offset: 4px;
}
.odx-dossier .odx-auth-textlink:hover { text-decoration-color: var(--odx-ink); }
.odx-dossier .odx-auth-textlink:disabled { opacity: 0.45; cursor: not-allowed; }
.odx-dossier .odx-auth-textlink--center { align-self: center; }
.odx-dossier .odx-auth-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: calc(12 * var(--odx-u));
  width: 100%; height: calc(64 * var(--odx-u)); min-height: 48px; margin-top: calc(4 * var(--odx-u));
  border-radius: var(--odx-r-button); background: var(--odx-mint-gradient);
  box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(255 255 255 / 0.28), 0 calc(10 * var(--odx-u)) calc(26 * var(--odx-u)) rgb(110 220 140 / 0.25);
  font-weight: var(--odx-w-emph); font-size: max(var(--odx-fs-button), 15px); letter-spacing: var(--odx-ls-button); color: var(--odx-ink);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}
.odx-dossier .odx-auth-submit:hover:not(:disabled) { filter: saturate(1.15) brightness(0.99); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28), 0 calc(14 * var(--odx-u)) calc(30 * var(--odx-u)) rgb(110 220 140 / 0.34); }
.odx-dossier .odx-auth-submit:active:not(:disabled) { transform: scale(0.985); }
.odx-dossier .odx-auth-submit:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.odx-dossier .odx-auth-submit .odx-icon { width: calc(20 * var(--odx-u)); height: calc(20 * var(--odx-u)); }
.odx-dossier .odx-auth-submit--auto { width: auto; align-self: center; padding: 0 calc(40 * var(--odx-u)); }
.odx-dossier :is(.odx-auth-submit, .odx-auth-textlink, .odx-auth-check, .odx-auth-user, .odx-auth-pad__key, .odx-auth-input__toggle, .odx-auth-dialog__close):focus-visible {
  outline: calc(2 * var(--odx-u)) solid var(--odx-auth-emerald); outline-offset: calc(3 * var(--odx-u));
}
.odx-dossier .odx-auth-foot { margin: calc(4 * var(--odx-u)) 0 0; text-align: center; font-size: var(--odx-fs-label); color: var(--odx-ink-2); }
.odx-dossier .odx-auth-msg {
  display: flex; align-items: flex-start; gap: calc(10 * var(--odx-u)); margin: 0;
  padding: calc(12 * var(--odx-u)) calc(16 * var(--odx-u)); border-radius: calc(14 * var(--odx-u));
  font-size: var(--odx-fs-crumb); letter-spacing: -0.015em; line-height: 1.4; text-align: left;
}
.odx-dossier .odx-auth-msg .odx-icon { width: calc(19 * var(--odx-u)); height: calc(19 * var(--odx-u)); min-width: 16px; min-height: 16px; margin-top: 1px; }
.odx-dossier .odx-auth-msg--error { background: #fdeee9; color: #8f2a1a; }
.odx-dossier .odx-auth-msg--notice { background: rgb(197 252 196 / 0.45); color: #14532d; }
.odx-dossier .odx-auth-msg--hint { padding: 0; color: var(--odx-ink-2); }
.odx-dossier .odx-auth-hint { margin: 0; text-align: center; font-size: var(--odx-fs-label); color: var(--odx-ink-2); }
.odx-dossier .odx-auth-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.odx-dossier .odx-auth-spinner {
  display: inline-block; width: calc(18 * var(--odx-u)); height: calc(18 * var(--odx-u)); min-width: 15px; min-height: 15px; flex: none;
  border-radius: 50%; border: 2px solid rgb(13 13 13 / 0.15); border-top-color: var(--odx-ink);
  animation: odx-auth-spin 800ms linear infinite;
}
@keyframes odx-auth-spin { to { transform: rotate(360deg); } }
/* password rules */
.odx-dossier .odx-auth-rules { display: flex; flex-wrap: wrap; gap: calc(8 * var(--odx-u)); margin: calc(2 * var(--odx-u)) 0 0; padding: 0; list-style: none; }
.odx-dossier .odx-auth-rules li { display: inline-flex; align-items: center; gap: calc(7 * var(--odx-u)); height: calc(32 * var(--odx-u)); min-height: 26px; padding: 0 calc(12 * var(--odx-u)) 0 calc(6 * var(--odx-u)); border-radius: 999px; background: rgb(0 0 0 / 0.035); font-size: var(--odx-fs-label); color: var(--odx-ink-2); }
.odx-dossier .odx-auth-rules li > span:first-child { display: grid; place-items: center; width: calc(20 * var(--odx-u)); height: calc(20 * var(--odx-u)); min-width: 16px; min-height: 16px; border-radius: 50%; background: #fff; }
.odx-dossier .odx-auth-rules li.is-ok { background: var(--odx-chip-lime); color: var(--odx-ink); }
/* ---------------------------------------------------------------- secretary / workstation */
.odx-dossier .odx-auth-badge {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(16 * var(--odx-u));
  padding: calc(16 * var(--odx-u)) calc(18 * var(--odx-u));
  border-radius: calc(22 * var(--odx-u)); background: linear-gradient(110deg, rgb(224 250 195 / 0.7), rgb(170 255 198 / 0.45));
}
.odx-dossier .odx-auth-badge.is-recognised { background: var(--odx-mint-gradient); }
.odx-dossier .odx-auth-badge__icon { display: grid; place-items: center; width: calc(56 * var(--odx-u)); height: calc(56 * var(--odx-u)); border-radius: 50%; background: #fff; box-shadow: 0 calc(6 * var(--odx-u)) calc(16 * var(--odx-u)) rgb(30 70 40 / 0.08); }
.odx-dossier .odx-auth-badge__text { min-width: 0; }
.odx-dossier .odx-auth-badge__text strong { display: block; font-weight: 400; font-size: var(--odx-fs-value); letter-spacing: var(--odx-ls-value); }
.odx-dossier .odx-auth-badge__text p { margin: calc(2 * var(--odx-u)) 0 0; font-size: var(--odx-fs-label); color: var(--odx-ink-3); }
.odx-dossier .odx-auth-badge__reader { display: inline-flex; align-items: center; gap: calc(7 * var(--odx-u)); font-size: var(--odx-fs-label); color: var(--odx-ink-3); white-space: nowrap; }
.odx-dossier .odx-auth-divider { display: flex; align-items: center; gap: calc(14 * var(--odx-u)); font-size: var(--odx-fs-label); color: var(--odx-ink-2); }
.odx-dossier .odx-auth-divider::before, .odx-dossier .odx-auth-divider::after { content: ""; flex: 1; height: 1px; background: rgb(13 13 13 / 0.08); }
.odx-dossier .odx-auth-users { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(200 * var(--odx-u)), 1fr)); gap: calc(12 * var(--odx-u)); }
.odx-dossier .odx-auth-user {
  display: flex; align-items: center; gap: calc(12 * var(--odx-u)); padding: calc(10 * var(--odx-u)) calc(12 * var(--odx-u)) calc(10 * var(--odx-u)) calc(10 * var(--odx-u));
  border-radius: calc(20 * var(--odx-u)); background: rgb(0 0 0 / 0.03); text-align: left;
  transition: background 160ms ease, box-shadow 160ms ease;
}
.odx-dossier .odx-auth-user:hover:not(:disabled) { background: rgb(0 0 0 / 0.05); }
.odx-dossier .odx-auth-user.is-selected { background: #fff; box-shadow: 0 0 0 calc(2 * var(--odx-u)) var(--odx-pill-dark), 0 calc(10 * var(--odx-u)) calc(24 * var(--odx-u)) rgb(30 70 40 / 0.08); }
.odx-dossier .odx-auth-user__avatar { display: grid; place-items: center; width: calc(48 * var(--odx-u)); height: calc(48 * var(--odx-u)); min-width: 38px; min-height: 38px; border-radius: 50%; background: radial-gradient(closest-side, #fff 60%, #eef2ee); box-shadow: inset 0 0 0 1px rgb(13 13 13 / 0.05); font-size: var(--odx-fs-label); letter-spacing: 0.04em; flex: none; }
.odx-dossier .odx-auth-user.is-selected .odx-auth-user__avatar { background: var(--odx-mint-gradient); }
.odx-dossier .odx-auth-user__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.odx-dossier .odx-auth-user__text strong { font-weight: 400; font-size: var(--odx-fs-value); letter-spacing: var(--odx-ls-value); }
.odx-dossier .odx-auth-user__text small { font-size: var(--odx-fs-label); color: var(--odx-ink-2); }
.odx-dossier .odx-auth-user__check { display: grid; place-items: center; width: calc(24 * var(--odx-u)); height: calc(24 * var(--odx-u)); min-width: 20px; min-height: 20px; border-radius: 50%; background: rgb(0 0 0 / 0.04); color: var(--odx-on-dark); flex: none; }
.odx-dossier .odx-auth-user.is-selected .odx-auth-user__check { background: var(--odx-pill-dark); }
.odx-dossier .odx-auth-codeform { display: flex; flex-direction: column; gap: calc(12 * var(--odx-u)); }
.odx-dossier .odx-auth-code {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: calc(70 * var(--odx-u)); min-height: 52px; border-radius: calc(18 * var(--odx-u)); background: var(--odx-auth-field);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.odx-dossier .odx-auth-code:focus-within { background: #fff; box-shadow: 0 0 0 calc(2 * var(--odx-u)) rgb(12 143 96 / 0.4); }
.odx-dossier .odx-auth-code.is-error { box-shadow: 0 0 0 calc(2 * var(--odx-u)) rgb(200 70 50 / 0.35); }
.odx-dossier .odx-auth-code__input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; font-size: 16px; cursor: text; }
.odx-dossier .odx-auth-code__input:disabled { cursor: not-allowed; }
.odx-dossier .odx-auth-code__count { position: absolute; right: calc(20 * var(--odx-u)); display: flex; align-items: center; font-size: var(--odx-fs-label); color: var(--odx-ink-2); pointer-events: none; }
.odx-dossier .odx-auth-dots { display: flex; gap: calc(20 * var(--odx-u)); pointer-events: none; }
.odx-dossier .odx-auth-dots i { width: calc(16 * var(--odx-u)); height: calc(16 * var(--odx-u)); min-width: 12px; min-height: 12px; border-radius: 50%; background: rgb(13 13 13 / 0.12); transition: transform 160ms ease, background 160ms ease; }
.odx-dossier .odx-auth-dots i.is-on { background: var(--odx-pill-dark); transform: scale(1.12); }
.odx-dossier .odx-auth-dots.is-busy i { animation: odx-auth-pulse 900ms ease-in-out infinite; }
.odx-dossier .odx-auth-dots.is-busy i:nth-child(2) { animation-delay: 120ms; }
.odx-dossier .odx-auth-dots.is-busy i:nth-child(3) { animation-delay: 240ms; }
.odx-dossier .odx-auth-dots.is-busy i:nth-child(4) { animation-delay: 360ms; }
@keyframes odx-auth-pulse { 50% { opacity: 0.35; } }
.odx-dossier .odx-auth-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(10 * var(--odx-u)); }
.odx-dossier .odx-auth-pad__key {
  display: grid; place-items: center; height: calc(62 * var(--odx-u)); min-height: 46px;
  border-radius: calc(18 * var(--odx-u)); background: rgb(255 255 255 / 0.9);
  box-shadow: 0 0 0 1px rgb(13 13 13 / 0.05), 0 calc(4 * var(--odx-u)) calc(12 * var(--odx-u)) rgb(30 70 40 / 0.05);
  font-size: max(calc(26 * var(--odx-u)), 19px); letter-spacing: -0.02em; font-weight: 300; color: var(--odx-ink);
  transition: transform 120ms ease, background 120ms ease;
}
.odx-dossier .odx-auth-pad__key:hover:not(:disabled) { background: #fff; }
.odx-dossier .odx-auth-pad__key:active:not(:disabled) { transform: scale(0.96); background: rgb(197 252 196 / 0.6); }
.odx-dossier .odx-auth-pad__key:disabled { opacity: 0.4; cursor: not-allowed; }
.odx-dossier .odx-auth-pad__key--text { background: transparent; box-shadow: none; font-size: var(--odx-fs-crumb); color: var(--odx-ink-3); }
.odx-dossier .odx-auth-feedback { min-height: calc(20 * var(--odx-u)); }
.odx-dossier .odx-auth-feedback:empty { display: none; }
.odx-dossier .odx-auth-cardfoot { display: flex; align-items: center; justify-content: space-between; gap: calc(12 * var(--odx-u)); flex-wrap: wrap; margin-top: calc(4 * var(--odx-u)); font-size: var(--odx-fs-label); color: var(--odx-ink-2); }
/* status screen */
.odx-dossier .odx-auth-status { gap: calc(18 * var(--odx-u)); padding: calc(20 * var(--odx-u)) 0; }
.odx-dossier .odx-auth-status__mark { align-self: center; display: grid; place-items: center; width: calc(84 * var(--odx-u)); height: calc(84 * var(--odx-u)); border-radius: 50%; background: var(--odx-mint-gradient); }
.odx-dossier .odx-auth-status__mark .odx-auth-spinner { width: calc(30 * var(--odx-u)); height: calc(30 * var(--odx-u)); }
.odx-dossier .odx-auth-status__mark.is-error { background: #fdeee9; }
.odx-dossier .odx-auth-status__mark.is-error::before { content: "!"; font-size: calc(40 * var(--odx-u)); color: #8f2a1a; }
/* ---------------------------------------------------------------- forgot-password dialog */
.odx-dossier.odx-auth-modal {
  position: fixed; inset: 0; z-index: 6000; display: grid; place-items: center; padding: 20px;
  background: rgb(30 45 34 / 0.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: odx-auth-fade 160ms ease;
}
.odx-dossier .odx-auth-dialog {
  position: relative; width: min(calc(620 * var(--odx-u)), 100%); min-width: min(440px, 100%);
  max-height: calc(100vh - 40px); overflow-y: auto;
  padding: calc(40 * var(--odx-u)) calc(44 * var(--odx-u)) calc(40 * var(--odx-u));
  border-radius: calc(32 * var(--odx-u)); background: var(--odx-window-bg);
  box-shadow: 0 calc(30 * var(--odx-u)) calc(90 * var(--odx-u)) rgb(20 40 25 / 0.2);
  animation: odx-s-pop 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.odx-dossier .odx-auth-dialog__close { position: absolute; top: calc(22 * var(--odx-u)); right: calc(22 * var(--odx-u)); }
.odx-dossier .odx-auth-dialog__close .odx-icon { width: calc(20 * var(--odx-u)); height: calc(20 * var(--odx-u)); }
.odx-dossier .odx-auth-dialog__head { display: flex; flex-direction: column; align-items: flex-start; gap: calc(12 * var(--odx-u)); }
.odx-dossier .odx-auth-dialog__title { margin: 0; font-size: calc(34 * var(--odx-u)); line-height: 1.15; letter-spacing: -0.045em; font-weight: 300; color: var(--odx-ink-strong); padding-right: calc(50 * var(--odx-u)); }
.odx-dossier .odx-auth-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(8 * var(--odx-u)); margin: calc(26 * var(--odx-u)) 0 calc(24 * var(--odx-u)); padding: 0; list-style: none; counter-reset: step; }
.odx-dossier .odx-auth-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: calc(8 * var(--odx-u)); text-align: center; }
.odx-dossier .odx-auth-step + .odx-auth-step::before { content: ""; position: absolute; top: calc(21 * var(--odx-u)); right: calc(50% + 28 * var(--odx-u)); width: calc(100% - 56 * var(--odx-u)); height: 2px; border-radius: 2px; background: rgb(13 13 13 / 0.08); }
.odx-dossier .odx-auth-step.is-complete + .odx-auth-step::before, .odx-dossier .odx-auth-step.is-active::before { background: #7ee0a0; }
.odx-dossier .odx-auth-step__dot { display: grid; place-items: center; width: calc(44 * var(--odx-u)); height: calc(44 * var(--odx-u)); min-width: 34px; min-height: 34px; border-radius: 50%; background: rgb(0 0 0 / 0.04); color: var(--odx-ink-2); }
.odx-dossier .odx-auth-step__dot .odx-icon { width: calc(19 * var(--odx-u)); height: calc(19 * var(--odx-u)); min-width: 15px; min-height: 15px; }
.odx-dossier .odx-auth-step.is-active .odx-auth-step__dot { background: var(--odx-pill-dark); color: var(--odx-on-dark); }
.odx-dossier .odx-auth-step.is-complete .odx-auth-step__dot { background: var(--odx-mint-gradient); color: var(--odx-ink); }
.odx-dossier .odx-auth-step__label { font-size: var(--odx-fs-label); color: var(--odx-ink-2); }
.odx-dossier .odx-auth-step.is-active .odx-auth-step__label { color: var(--odx-ink); }
.odx-dossier .odx-auth-form--dialog { gap: calc(18 * var(--odx-u)); }
.odx-dossier .odx-auth-otp { gap: calc(10 * var(--odx-u)); }
.odx-dossier .odx-auth-otp__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: calc(10 * var(--odx-u)); }
.odx-dossier .odx-auth-otp__cell {
  width: 100%; height: calc(66 * var(--odx-u)); min-height: 48px; padding: 0; border: 0; outline: none;
  border-radius: calc(16 * var(--odx-u)); background: var(--odx-auth-field); text-align: center;
  font: inherit; font-size: max(calc(28 * var(--odx-u)), 20px); font-weight: 300; color: var(--odx-ink);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.odx-dossier .odx-auth-otp__cell:focus { background: #fff; box-shadow: 0 0 0 calc(2 * var(--odx-u)) rgb(12 143 96 / 0.4); }
@keyframes odx-auth-fade { from { opacity: 0; } }
/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 1180px) {
  .odx-dossier.odx-auth-root { --odx-u: 0.8px; }
  .odx-dossier .odx-auth-body { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 32px; }
  .odx-dossier .odx-auth-art { display: none; }
}
@media (max-width: 900px) {
  .odx-dossier.odx-auth-root { --odx-u: 0.82px; }
  .odx-dossier .odx-auth-canvas { padding: 10px; align-items: stretch; }
  .odx-dossier .odx-auth-window, .odx-dossier .odx-auth-window--single { width: 100%; min-height: calc(100vh - 20px); padding: 0 16px 20px; border-radius: 30px; }
  .odx-dossier .odx-auth-top { height: 72px; padding: 0 4px; }
  .odx-dossier .odx-auth-top .odx-brand { --odx-brand-ring: 34px; }
  .odx-dossier .odx-auth-top .odx-auth-pill { height: 32px; padding: 0 12px; font-size: 13px; }
  .odx-dossier .odx-auth-body, .odx-dossier .odx-auth-window--single .odx-auth-body { display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding: 0; }
  .odx-dossier .odx-auth-hero { align-self: auto; padding: 6px 6px 0; }
  .odx-dossier .odx-auth-eyebrow { margin-bottom: 10px; font-size: 11px; }
  .odx-dossier .odx-auth-headline { font-size: 34px; letter-spacing: -0.045em; }
  .odx-dossier .odx-auth-headline br { display: none; }
  .odx-dossier .odx-auth-intro { margin-top: 10px; font-size: 15px; line-height: 1.45; letter-spacing: -0.02em; }
  .odx-dossier .odx-auth-note { display: none; }
  .odx-dossier .odx-auth-card { padding: 24px 20px 22px; border-radius: 26px; }
  .odx-dossier .odx-auth-form { gap: 16px; }
  .odx-dossier .odx-auth-form--keypad { gap: 14px; }
  .odx-dossier .odx-auth-head__title { font-size: 30px; }
  .odx-dossier .odx-auth-head__text { font-size: 15px; }
  .odx-dossier .odx-auth-head__icon { width: 46px; height: 46px; }
  .odx-dossier .odx-auth-head__icon .odx-icon { width: 22px; height: 22px; }
  .odx-dossier .odx-auth-input__control { font-size: 16px; }   /* no zoom-on-focus on iOS */
  .odx-dossier .odx-auth-users { grid-template-columns: 1fr 1fr; }
  .odx-dossier .odx-auth-badge { grid-template-columns: auto 1fr; }
  .odx-dossier .odx-auth-badge__reader { grid-column: 1 / -1; }
  .odx-dossier .odx-auth-pad__key { height: 54px; font-size: 22px; }
  .odx-dossier .odx-auth-dialog { padding: 28px 20px 24px; border-radius: 26px; min-width: 0; }
  .odx-dossier .odx-auth-dialog__title { font-size: 26px; }
  .odx-dossier .odx-auth-otp__row { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .odx-dossier :is(.odx-auth-dialog, .odx-auth-modal, .odx-auth-dots i, .odx-auth-spinner) { animation: none; }
}
/* the shared restyle draws a focus outline on every focused element (ID weight): fields show focus on their wrapper instead */
:is(.odx-dossier, #odx-auth-skin) :is(.odx-auth-input__control, .odx-auth-code__input, .odx-auth-otp__cell):focus-visible { outline: none; }
:is(.odx-dossier, #odx-auth-skin) .odx-auth-code:has(.odx-auth-code__input:focus-visible) { box-shadow: 0 0 0 calc(2 * var(--odx-u)) rgb(12 143 96 / 0.55); }
/* keypad screens are the tallest card: tighter heading so the whole card fits a 900 px high screen */
.odx-dossier .odx-auth-form--keypad .odx-auth-head__icon { display: none; }
.odx-dossier .odx-auth-form--keypad .odx-auth-head__title { font-size: calc(40 * var(--odx-u)); }
.odx-dossier .odx-auth-form--keypad .odx-auth-head { gap: calc(8 * var(--odx-u)); margin-bottom: 0; }
.odx-dossier .odx-auth-form--keypad .odx-auth-pad__key { height: calc(56 * var(--odx-u)); min-height: 42px; }
.odx-dossier .odx-auth-form--keypad .odx-auth-code { height: calc(62 * var(--odx-u)); min-height: 46px; }
.odx-dossier .odx-auth-form--keypad .odx-auth-submit { height: calc(60 * var(--odx-u)); min-height: 46px; margin-top: 0; }
@media (max-height: 940px) and (min-width: 901px) {
  .odx-dossier .odx-auth-card { padding-top: calc(36 * var(--odx-u)); padding-bottom: calc(30 * var(--odx-u)); }
  .odx-dossier .odx-auth-art { height: calc(270 * var(--odx-u)); margin-top: calc(20 * var(--odx-u)); }
  .odx-dossier .odx-auth-art__ring { --odx-brand-ring: calc(190 * var(--odx-u)); }
  .odx-dossier .odx-auth-art__chip--b { top: calc(170 * var(--odx-u)); }
  .odx-dossier .odx-auth-art__chip--c { top: calc(150 * var(--odx-u)); }
}
.odx-dossier .odx-auth-user { min-width: 0; }
.odx-dossier .odx-auth-user__text strong, .odx-dossier .odx-auth-user__text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .odx-dossier .odx-auth-users { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; } }
@media (max-width: 900px) { .odx-dossier .odx-auth-user:not(.is-selected) .odx-auth-user__check { display: none; } }
.clinical-doctor-scope .primary-nav-link[aria-disabled=true],.clinical-doctor-scope .patient-header-tabs a[aria-disabled=true]{color:#929ba6;background:transparent;opacity:.57;cursor:not-allowed;filter:grayscale(1)}
.clinical-doctor-scope .primary-nav-link[aria-disabled=true]:hover,.clinical-doctor-scope .patient-header-tabs a[aria-disabled=true]:hover{color:#929ba6;background:#f3f4f6}
.clinical-doctor-scope button:disabled{cursor:not-allowed;opacity:.48;filter:grayscale(1)}
.clinical-doctor-scope .patient-operations-table .money-cell,.clinical-doctor-scope .clinical-finance-disabled{color:#a4adb8!important;background:#f8fafb;font-weight:400}
.clinical-doctor-scope .patient-current-operations-table th:nth-child(5),.clinical-doctor-scope .patient-current-operations-table th:nth-child(6),.clinical-doctor-scope .patient-current-operations-table th:nth-child(7),.clinical-doctor-scope .patient-plan-operations-table th:nth-child(5),.clinical-doctor-scope .acts-workspace th:nth-child(5),.clinical-doctor-scope .acts-workspace th:nth-child(6),.clinical-doctor-scope .acts-workspace th:nth-child(7){color:#a4adb8;background:#f6f8fa}
.clinical-doctor-scope .patient-current-operations-table.no-financial-activity th:nth-child(6),.clinical-doctor-scope .patient-current-operations-table.no-financial-activity th:nth-child(7),.clinical-doctor-scope .patient-current-operations-table.no-financial-activity td:nth-child(6),.clinical-doctor-scope .patient-current-operations-table.no-financial-activity td:nth-child(7){display:table-cell}
.clinical-doctor-scope .acts-workspace td:nth-child(5),.clinical-doctor-scope .acts-workspace td:nth-child(6),.clinical-doctor-scope .acts-workspace td:nth-child(7){color:#a4adb8;background:#f8fafb}
.operation-form[data-clinical-only=true] input:disabled{background:#f3f5f7;color:#929ba6;border-color:#e2e6eb;cursor:not-allowed}
.operation-form[data-clinical-only=true] .operation-form-field:has(input:disabled) small{visibility:hidden}
.questionnaire-preview-selectors { display: flex; flex-wrap: wrap; gap: 12px; }
.questionnaire-preview-selectors label { min-width: 180px; flex: 1; }
.questionnaire-save-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.medical-questionnaire-fields .questionnaire-collection-grid { position: sticky; top: 0; z-index: 2; background: #fff; padding: 12px 0; margin-bottom: 12px; border-bottom: 1px solid #d6e6e5; }
.medical-questionnaire-fields[dir="rtl"] { text-align: right; }
.medical-questionnaire-fields[dir="rtl"] legend { float: none; text-align: right; }
.medical-questionnaire-fields[dir="rtl"] input[type="date"] { direction: ltr; text-align: right; }
.medical-questionnaire-fields[dir="rtl"] textarea { font-family: inherit; line-height: 1.8; }
.questionnaire-save-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
@media (max-width: 640px) {
  .questionnaire-save-actions { width: 100%; }
  .questionnaire-save-actions button { flex: 1 1 140px; white-space: normal; }
  .questionnaire-preview-selectors { width: 100%; }
  .questionnaire-preview-selectors label { min-width: 0; flex-basis: 100%; }
  .medical-questionnaire-fields .questionnaire-collection-grid { gap: 10px; }
}
.patient-intake-dialog:has(.document-composer){width:min(1440px,calc(100vw - 32px));height:min(940px,94dvh);max-height:94dvh;display:flex;flex-direction:column;padding:0;overflow:hidden;border-radius:18px}.document-composer{display:flex;flex-direction:column;min-height:0;flex:1;color:#263953}.document-composer-context{display:flex;justify-content:space-between;gap:15px;padding:10px 22px;background:#f1f6fd;border-bottom:1px solid #e2eaf5;font-size:12px}.document-composer-context>span{display:flex;align-items:center;gap:8px}.document-composer-context>span:last-child,.document-composer-context small{color:#7a8da6}.document-draft-status{padding:9px 22px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-bottom:1px solid #e8edf5;background:white;font-size:11px;color:#72859b}.document-draft-status>span{display:inline-flex;align-items:center;gap:6px}.document-draft-status button,.document-draft-status a{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;color:#3771c7;padding:3px;font:inherit;text-decoration:none;cursor:pointer}.document-draft-status p{flex-basis:100%;margin:0;color:#a16028;line-height:1.6}.document-composer-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);min-height:0;flex:1}.document-composer-edit{overflow:hidden;min-height:0;min-width:0;display:flex;flex-direction:column;background:#fff}.document-composer-edit>form{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;padding:22px;gap:14px}.document-composer-edit .document-source-dialog-form,.document-composer-edit .document-form{grid-template-columns:1fr;display:block}.document-composer-edit form>fieldset{min-width:0;border:0;padding:0;margin:0}.document-composer-edit .document-source-dialog-fields,.document-composer-edit .document-source-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.document-composer-edit .modal-actions,.document-composer-actions{position:sticky;bottom:-22px;margin:20px -22px -22px;padding:15px 22px;background:#fafcff;border-top:1px solid #e2eaf4;z-index:2;display:flex;justify-content:flex-end;gap:9px}.document-composer-edit .modal-actions button,.document-composer-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:11px 15px;border:1px solid #d6e1ee;border-radius:9px;background:#fff;color:#3a506e;font:inherit;font-size:12px;cursor:pointer}.document-composer-edit .modal-actions button.primary-button,.document-composer-actions button.primary{background:#276dd7;color:#fff;border-color:#276dd7}.document-composer-actions button:disabled{opacity:.5}.document-composer-preview{background:#edf1f7;overflow-y:auto;min-height:0;padding:17px 21px 28px;border-left:1px solid #dfe7f0}.document-preview-caption{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px;color:#6d7f97;padding:0 0 15px}.document-preview-caption small{font-size:10px;flex-basis:100%;color:#8b99ab}.document-preview-paper{background:#fff;box-shadow:0 5px 22px #253c5b16;border:1px solid #e0e7ef;min-height:650px;aspect-ratio:210/297;padding:30px 33px;box-sizing:border-box;display:flex;flex-direction:column;font-family:'Noto Sans',Arial,sans-serif;color:#24374f;overflow-wrap:anywhere}.document-preview-paper>header{border-bottom:2px solid #2b7f8c;padding-bottom:16px;color:#227b87}.document-preview-paper>header strong{display:block;font-size:15px;letter-spacing:1px}.document-preview-paper>header span{display:block;font-size:9px;margin-top:4px;color:#7a939a}.document-preview-meta{margin:25px 0 19px;font-size:10px}.document-preview-meta>span{display:block;text-align:right;color:#7e8c9e;margin-bottom:18px}.document-preview-meta strong{display:block;font-size:13px}.document-preview-meta small{display:block;color:#8a98a7;margin-top:4px}.document-preview-paper h2{font-size:16px;margin:5px 0 22px}.document-preview-content{font-size:11px;line-height:1.8;flex:1;min-height:180px}.document-preview-content p{white-space:pre-wrap;margin:0 0 11px}.document-preview-content table{width:100%;border-collapse:collapse;font-size:10px}.document-preview-content th,.document-preview-content td{border-bottom:1px solid #e2e8f0;text-align:left;padding:7px 4px}.document-preview-signature{text-align:right;margin:24px 0;font-size:11px}.document-preview-paper>footer{border-top:1px solid #d5e3e7;padding-top:10px;text-align:center;font-size:8px;color:#8ba0a7}.document-composer-edit .document-letter-form{padding:0;overflow:hidden;display:flex;gap:0}.document-letter-fields{padding:22px;overflow-y:auto;min-height:0;flex:1}.document-letter-fields fieldset{padding:0;border:0;margin:0}.document-letter-fields label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:650;margin:0 0 15px;color:#556c8b}.document-input-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.document-letter-fields input,.document-letter-fields select,.document-letter-fields textarea{font:inherit;font-size:13px;color:#263e5c;padding:10px 12px;border:1px solid #d6e1ee;border-radius:8px;width:100%;box-sizing:border-box;background:#fff}.document-editor-label{display:flex;align-items:center;gap:8px;margin:18px 0 12px;font-size:12px}.document-editor-label small{color:#8494a9;font-size:10px;margin-left:auto}.document-letter-fields .courrier-rich-editor{border:1px solid #d8e3ef;border-radius:10px;overflow:hidden}.document-letter-fields .courrier-prose{min-height:250px;padding:16px;font-size:13px;outline:none}.document-letter-fields .courrier-editor-toolbar{padding:7px;background:#f5f8fc;border-bottom:1px solid #e3eaf4;display:flex;gap:4px;flex-wrap:wrap}.document-letter-fields .courrier-editor-toolbar button{padding:5px;border:0;background:transparent;color:#596f8d;border-radius:4px}.document-letter-fields .courrier-editor-toolbar select{width:auto;font-size:10px;padding:4px}.document-letter-fields .courrier-tool-group{display:flex;gap:2px;align-items:center}.document-letter-fields .courrier-editor-toolbar button[aria-pressed=true]{background:#dce9fe;color:#2d6ac7}.document-letter-fields .courrier-color input{width:24px;height:24px;padding:2px}.document-letter-form>.document-composer-actions{position:static;margin:0;flex:none}.document-composer-error{background:#fff0ec;color:#a6483c;padding:12px;border-radius:8px;font-size:12px}.document-composer-mobile-tabs{display:none}.document-letter-recipient{font-weight:600}.document-composer-edit .document-source-summary{margin:16px 0}.document-composer-edit input,.document-composer-edit select,.document-composer-edit textarea{max-width:100%;box-sizing:border-box}.document-composer-edit .source-select-menu{max-height:250px;overflow-y:auto}.document-preview-content .courrier-prose{font-size:11px;padding:0;min-height:0}.document-preview-content .courrier-prose table{border-collapse:collapse}.document-preview-content .courrier-prose td,.document-preview-content .courrier-prose th{border:1px solid #cad7df}.document-draft-list{border:1px solid #dfe7f1;border-radius:12px;padding:15px;margin:15px 0;background:#f8fbff}.document-draft-list h3{font-size:13px;color:#577196;margin:0 0 12px}.document-draft-list button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px;border:0;border-bottom:1px solid #e5ecf5;background:transparent;font:inherit;font-size:12px;text-align:left;color:#3c587a;cursor:pointer}.document-draft-list small{color:#8d9aab}
@media(max-width:850px){.document-composer-grid{grid-template-columns:1fr}.document-composer-mobile-tabs{display:flex;gap:4px;padding:9px 16px;background:#fff;border-bottom:1px solid #e0e8f1}.document-composer-mobile-tabs button{display:flex;align-items:center;gap:6px;border:0;border-radius:7px;background:#f3f6fa;color:#74859d;font:inherit;font-size:12px;padding:9px 15px}.document-composer-mobile-tabs button[aria-pressed=true]{background:#e6efff;color:#2763bc}.document-composer-grid.mobile-edit>.document-composer-preview,.document-composer-grid.mobile-preview>.document-composer-edit{display:none}.document-composer-context{padding:10px 15px}.document-composer-context>span:last-child{display:none}.document-draft-status{padding:9px 15px;gap:6px}.document-preview-paper{min-height:550px;padding:24px}.document-composer-preview{border-left:0;padding:15px}.patient-intake-dialog:has(.document-composer){width:calc(100vw - 16px);height:96dvh;max-height:96dvh;border-radius:12px}.document-letter-fields{padding:16px}.document-composer-edit>form{padding:16px}.document-composer-edit .modal-actions{margin:16px -16px -16px;bottom:-16px;padding:12px}.document-input-grid{grid-template-columns:1fr}.document-editor-label small{display:none}.document-composer-edit .document-source-dialog-fields{grid-template-columns:1fr}}

.studio-patient-context{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px 28px;background:#eef5fc;border-top:1px solid #e0eaf5;border-bottom:1px solid #dfe9f3;color:#607994;font-size:12px}.studio-patient-context>span:first-child{display:flex;align-items:center;gap:7px}.studio-patient-context>span:last-child{font-size:11px;color:#748da5}.studio-footer .studio-save-draft{margin-left:auto;border:1px solid #d6e2ee;border-radius:9px;padding:11px 15px;background:white;color:#507397;font:inherit;font-size:12px;cursor:pointer}.studio-footer .studio-save-draft:disabled{opacity:.5}@media(max-width:700px){.studio-patient-context{padding:10px 15px;align-items:flex-start;flex-direction:column;font-size:11px}.studio-footer .studio-save-draft{font-size:10px;padding:9px}.studio-footer{gap:6px;flex-wrap:wrap}}

/* Keep the complete paper visible inside narrow previews. */
.document-composer-preview{min-width:0}.document-preview-paper{width:100%;min-width:0}@media(max-width:850px){.document-preview-paper{aspect-ratio:auto}}
.document-preview-paper.document-preview-paper-a5{aspect-ratio:148/210;min-height:0;height:auto;width:100%;max-width:100%;flex:none;display:block;padding:0;container-type:inline-size;background:#fff url('/assets/letter-a5-stationery-67625fc2bb7d.png') center/100% 100% no-repeat;color:#1b3b47;font-size:inherit;font-family:'Noto Sans',Arial,sans-serif}
.document-preview-paper-a5>.ceph-a5-layout>.ceph-date{text-align:right;font-size:.82em;line-height:1.3;margin:0;color:#70838d}
.document-preview-paper-a5>.ceph-a5-layout>h2{font-size:1.13em;line-height:1.45;font-weight:700;margin:8% 0 7.2%;color:#1b3b47}
.document-preview-paper-a5>.ceph-a5-layout>.ceph-patient{margin-bottom:9.2%}
.document-preview-paper-a5>.ceph-a5-layout>.ceph-patient>span{display:block;text-transform:uppercase;letter-spacing:.06em;font-size:.72em;color:#738690;margin-bottom:4px}
.document-preview-paper-a5>.ceph-a5-layout>.ceph-patient>strong{display:block;font-size:1em}
 .document-preview-paper-a5>.ceph-a5-layout>.document-preview-content{min-height:0;flex:none;font-size:inherit;line-height:1.6}
.document-preview-paper-a5 .courrier-prose{min-height:0;font-size:inherit;line-height:inherit;padding:0}
.document-preview-paper-a5 .courrier-prose p, .document-preview-paper-a5>.ceph-a5-layout>.document-preview-content>p{margin:0 0 6%;line-height:1.6}
.document-preview-paper-a5>.ceph-a5-layout>.document-preview-signature{font-weight:700;margin:7% 0 0;font-size:1em;text-align:right}
.document-preview-paper-a5>.ceph-a5-layout{padding:26.35% 8.1% 16%;font-size:2.57cqw;line-height:1.6}
.document-preview-paper-a5 .courrier-prose p:last-child{margin-bottom:0}
.rvg-launch{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;border:1px solid #b9d8dc;border-radius:10px;padding:10px 15px;background:#eff8f8;color:#155563;font:inherit;font-weight:650;cursor:pointer}.rvg-launch:hover{background:#e5f3f4;border-color:#78b8bd}.rvg-backdrop{position:fixed;inset:0;z-index:1600;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(15,35,55,.45);backdrop-filter:blur(4px)}.rvg-dialog{width:min(1140px,100%);max-height:calc(100dvh - 48px);display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #d8e5eb;border-radius:19px;box-shadow:0 24px 90px #102c4540;color:#16334b;font-size:14px;outline:none}.rvg-dialog *{box-sizing:border-box}.rvg-dialog button,.rvg-dialog input{font:inherit}.rvg-dialog button{cursor:pointer}.rvg-dialog button:disabled{cursor:not-allowed;opacity:.52}.rvg-dialog button:focus-visible,.rvg-dialog summary:focus-visible,.rvg-dialog input:focus-visible,.rvg-launch:focus-visible{outline:3px solid #79b8ee;outline-offset:3px}.rvg-header{display:flex;align-items:center;gap:13px;padding:21px 25px;border-bottom:1px solid #e4edf1}.rvg-heading-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:#eaf6f6;color:#0d7a83}.rvg-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:750;color:#65828e}.rvg-header h2{margin:3px 0 0;font-size:22px;line-height:1.3;letter-spacing:-.025em;color:#142e47}.rvg-header>.rvg-icon-button{margin-left:auto}.rvg-icon-button{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border:1px solid transparent;background:transparent;border-radius:10px;color:#58717d}.rvg-icon-button:hover{background:#edf3f6;color:#173b50}.rvg-patient{display:flex;align-items:center;gap:17px;padding:15px 25px;background:#f1f7fc;border-bottom:1px solid #dce8ef}.rvg-patient>div{display:flex;flex-direction:column;gap:4px;min-width:0}.rvg-patient>div>span{font-size:11px;color:#607d8d}.rvg-patient strong{font-size:16px;word-break:break-word;letter-spacing:.015em}.rvg-fiche{margin-left:auto;white-space:nowrap;padding:7px 10px;background:#fff;border:1px solid #d8e6ee;border-radius:7px;color:#3e6177;font-size:12px;font-weight:650}.rvg-patient>svg{color:#2d8c87;flex-shrink:0}.rvg-body{display:grid;grid-template-columns:1fr 1.12fr;min-height:0;overflow:auto;overscroll-behavior:contain}.rvg-options{padding:23px 25px;border-right:1px solid #e5edf2}.rvg-device{display:flex;align-items:center;gap:11px;border:1px solid #dfe8ed;background:#f8fafb;border-radius:11px;padding:12px;color:#607884}.rvg-device>div{display:flex;flex:1;flex-direction:column;gap:5px;min-width:0}.rvg-device strong{font-size:13px;color:#274a5e}.rvg-device>div>span{font-size:12px;line-height:1.4}.rvg-device .rvg-icon-button{width:32px;height:36px}.rvg-status-dot{width:8px;height:8px;flex-shrink:0;background:#97a9b2;border-radius:50%}.rvg-device.ready{border-color:#c4e4dd;background:#f3fbf8}.rvg-device.ready .rvg-status-dot{background:#19a485;box-shadow:0 0 0 4px #19a48515}.rvg-help{font-size:12px;line-height:1.6;color:#637c89;margin:12px 1px}.rvg-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:25px 0 13px}.rvg-section-heading h3{font-size:14px;margin:0 0 5px;color:#1b3b50}.rvg-section-heading p{font-size:12px;margin:0;color:#6c818c}.rvg-count{display:grid;place-items:center;min-width:27px;height:27px;border-radius:7px;background:#e2f3f2;color:#0f786f;font-weight:700}.rvg-dentition{display:flex;gap:4px;margin:0 0 13px;padding:3px;width:max-content;max-width:100%;border-radius:8px;background:#eef3f6}.rvg-dentition button{min-height:34px;padding:5px 13px;background:transparent;border:0;border-radius:6px;color:#587180;font-size:12px;font-weight:600}.rvg-dentition button[aria-pressed=true]{background:#fff;color:#1a5169;box-shadow:0 1px 4px #223d5015}.rvg-teeth{display:flex;flex-direction:column;gap:9px}.rvg-tooth-row{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}.rvg-teeth.primary .rvg-tooth-row{grid-template-columns:repeat(5,minmax(0,1fr))}.rvg-tooth-row button{display:grid;place-items:center;min-height:39px;border:1px solid #dce6eb;border-radius:7px;background:#fff;color:#4c6979;font-size:12px;transition:background .15s,border-color .15s}.rvg-tooth-row button[aria-pressed=true]{background:#e1f2f2;border-color:#349a9b;color:#086e72;font-weight:750;box-shadow:inset 0 0 0 1px #349a9b}.rvg-tooth-row button:hover:not(:disabled){border-color:#349a9b}.rvg-selection{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;font-size:12px;line-height:1.6;color:#256a75}.rvg-selection button{padding:0;border:0;background:none;color:#607d8d;text-decoration:underline;font-size:11px}.rvg-guide{display:grid;grid-template-columns:24px 1fr;align-items:start;gap:11px 10px;margin-top:24px;padding-top:20px;border-top:1px solid #e9eff2}.rvg-guide>span{display:grid;place-items:center;width:23px;height:23px;background:#f0f5f8;border-radius:50%;font-size:11px;font-weight:700;color:#4f7287}.rvg-guide p{font-size:12px;line-height:1.65;color:#69808c;margin:1px 0 0}.rvg-preview{display:flex;flex-direction:column;padding:23px 25px;background:#fbfcfd;min-width:0}.rvg-progress{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;list-style:none;padding:0;margin:0 0 22px}.rvg-progress li{display:flex;align-items:center;gap:7px;font-size:11px;color:#91a2ac;white-space:nowrap}.rvg-progress li>span{display:grid;place-items:center;width:23px;height:23px;flex-shrink:0;border:1px solid #d9e4ea;border-radius:50%;font-size:10px;background:#fff}.rvg-progress li.current{color:#167e89;font-weight:650}.rvg-progress li.current>span{border-color:#64b4ba;background:#edf8f8}.rvg-progress li.complete{color:#1c7c72}.rvg-progress li.complete>span{background:#168c80;border-color:#168c80;color:#fff}.rvg-preview-stage{display:flex;align-items:center;justify-content:center;min-height:325px;flex:1;border:1px dashed #ccdde6;border-radius:13px;background:radial-gradient(ellipse at top,#f7fbfe,#edf3f7);overflow:hidden}.rvg-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:17px;text-align:center;padding:32px;max-width:390px;color:#8da7b6}.rvg-empty strong{font-size:16px;line-height:1.5;color:#355a70}.rvg-empty p{font-size:12px;line-height:1.7;margin:0;color:#738b98}.rvg-preview-stage.saved{background:#13232c;border-color:#1c3644;border-style:solid}.rvg-preview-stage.saved .rvg-empty strong{color:#d2efe7}.rvg-preview-stage.saved .rvg-empty{color:#55c2ad}.rvg-preview-stage.saved .rvg-empty p{color:#a4bbc4}.rvg-preview-stage>img{display:block;width:100%;height:100%;max-height:440px;object-fit:contain}.rvg-result{display:flex;align-items:flex-start;gap:10px;margin-top:16px;border-radius:9px;padding:13px;background:#eef6fa;color:#36728a}.rvg-result>svg{flex-shrink:0;margin-top:2px}.rvg-result strong{font-size:13px;line-height:1.5}.rvg-result p{font-size:12px;line-height:1.6;margin:5px 0 0}.rvg-result.saved{background:#eaf7f1;color:#1a7666}.rvg-result.failed,.rvg-result.review_required{background:#fff6e9;color:#93611c}.rvg-preview-caption{font-size:11px;line-height:1.6;color:#7d929e;text-align:center;margin:17px 0 0}.rvg-warning{display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.6;margin:14px 0 0;border:1px solid #ebdfba;background:#fffaf0;border-radius:9px;padding:12px;color:#846b35}.rvg-warning p{margin:0}.rvg-warning svg{flex-shrink:0;margin-top:2px}.rvg-error{display:flex;gap:9px;align-items:flex-start;margin:0;padding:13px 25px;background:#fff2ef;border-top:1px solid #f0d9d2;color:#a34332;font-size:12px;line-height:1.6;max-height:140px;overflow:auto}.rvg-error svg{flex-shrink:0;margin-top:2px}.rvg-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 25px;border-top:1px solid #e2ebf0;background:#fff}.rvg-actions>div{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.rvg-primary,.rvg-secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:9px;min-height:44px;padding:10px 15px;font-size:13px;font-weight:650;line-height:1.35}.rvg-primary{border:1px solid #087e83;background:#087e83;color:#fff;box-shadow:0 2px 5px #087e8315}.rvg-primary:hover:not(:disabled){background:#066f74}.rvg-secondary{border:1px solid #cfdee7;background:#fff;color:#3a5e74}.rvg-secondary:hover:not(:disabled){background:#f3f7fa}.rvg-pairing{margin:15px 0;background:#f6f9fb;border:1px solid #dbe7ee;border-radius:9px;padding:12px}.rvg-pairing summary{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:650;cursor:pointer}.rvg-pairing p{font-size:12px;line-height:1.6;color:#6c818c}.rvg-pairing label{display:flex;flex-direction:column;gap:7px;font-size:12px;margin:13px 0}.rvg-pairing input{min-height:40px;width:100%;border:1px solid #d1dee6;border-radius:7px;background:#fff;padding:9px;color:#23465e}.rvg-pairing .rvg-secondary{min-height:38px;font-size:12px}.rvg-spin{animation:rvg-spin 1.2s linear infinite}@keyframes rvg-spin{to{transform:rotate(360deg)}}
@media(min-width:1100px){.rvg-tooth-row button{min-height:43px}}@media(max-width:800px){.rvg-backdrop{padding:12px}.rvg-dialog{max-height:calc(100dvh - 24px)}.rvg-header,.rvg-patient{padding:16px 19px}.rvg-body{grid-template-columns:1fr 1fr}.rvg-options,.rvg-preview{padding:20px 17px}.rvg-progress{gap:6px}.rvg-progress li{flex-direction:column;gap:5px;font-size:10px;text-align:center;white-space:normal}.rvg-preview-stage{min-height:330px}.rvg-actions{padding:15px 19px}.rvg-primary,.rvg-secondary{font-size:12px;padding:10px 12px}.rvg-tooth-row{gap:4px}.rvg-tooth-row button{min-height:36px;font-size:11px}}
@media(max-width:580px){.rvg-backdrop{padding:0}.rvg-dialog{width:100%;max-height:100dvh;height:100dvh;border:0;border-radius:0}.rvg-header{padding:15px 17px}.rvg-header h2{font-size:18px}.rvg-heading-icon{width:39px;height:39px}.rvg-eyebrow{font-size:9px}.rvg-patient{padding:13px 17px;gap:9px}.rvg-patient strong{font-size:14px}.rvg-patient>svg{display:none}.rvg-fiche{font-size:11px;padding:6px 8px}.rvg-body{display:flex;flex-direction:column}.rvg-options{padding:19px 17px;border-right:0;border-bottom:1px solid #e4edf1}.rvg-preview{padding:18px 17px}.rvg-section-heading{margin-top:21px}.rvg-tooth-row button{min-height:42px;font-size:12px}.rvg-guide{margin-top:20px}.rvg-preview-stage{min-height:250px}.rvg-progress{margin-bottom:14px}.rvg-progress li{flex-direction:row;font-size:10px}.rvg-empty{padding:25px}.rvg-actions{padding:12px 14px;gap:9px}.rvg-actions>div{gap:7px}.rvg-actions>.rvg-secondary{max-width:100px}.rvg-primary,.rvg-secondary{padding:10px 11px;min-height:43px}.rvg-error{padding:11px 17px}}
@media(prefers-reduced-motion:reduce){.rvg-spin{animation:none}.rvg-dialog *{transition:none!important}}
.rvg-setup-page{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at top,#eef9fb,#edf2f8);color:#18364d}.rvg-setup-card{width:min(490px,100%);padding:38px;border:1px solid #d6e7ed;border-radius:20px;background:#fff;box-shadow:0 18px 65px #183c5414}.rvg-setup-card>.rvg-heading-icon{margin-bottom:24px;width:54px;height:54px}.rvg-setup-card h1{font-size:26px;line-height:1.3;letter-spacing:-.035em;margin:10px 0 15px}.rvg-setup-card>p{font-size:14px;line-height:1.8;color:#617c8b;margin-bottom:25px}.rvg-setup-card label{display:flex;flex-direction:column;gap:9px;font-size:12px;font-weight:600;color:#446576}.rvg-setup-card input{width:100%;min-height:45px;border:1px solid #ccdde5;border-radius:9px;padding:10px;font:inherit;margin-bottom:17px}.rvg-setup-card>.rvg-primary{width:100%;text-decoration:none;cursor:pointer}.rvg-setup-card>.rvg-primary:disabled{opacity:.5;cursor:not-allowed}.rvg-setup-card small{display:block;font-size:11px;line-height:1.7;color:#8498a3;margin-top:20px}.rvg-setup-card .rvg-error{padding:13px;border:1px solid #eed4cd;border-radius:8px;margin-top:20px}.rvg-setup-success{display:flex;align-items:center;gap:9px;color:#1a8875;background:#eaf8f3;padding:13px;border-radius:9px;margin-bottom:21px;font-size:13px}

/* Native reception: deliberate review stays usable on touch screens. */
.rvg-review-confirm{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid #b8d7d3;border-radius:12px;background:#f1faf8;color:#24545a;font-size:13px;line-height:1.65;min-height:48px;cursor:pointer}.rvg-review-confirm input{flex:0 0 20px;width:20px;height:20px;margin:2px 0 0;accent-color:#07857d}.rvg-review-confirm:focus-within{outline:2px solid #07857d;outline-offset:3px}
.patient-intake-dialog:has(.scan-dialog-body){width:min(980px,calc(100vw - 32px));max-height:94vh;padding:0;overflow:hidden}.scan-dialog-body{padding:22px 26px;max-height:calc(94vh - 180px);overflow:auto;background:#fff}.scan-switch{display:flex;gap:5px;padding:5px;background:#eef2f7;border-radius:11px;width:fit-content;margin-bottom:20px}.scan-switch button{display:flex;align-items:center;gap:8px;border:0;background:transparent;padding:9px 22px;border-radius:8px;color:#64748b}.scan-switch button.active{color:#174bb5;background:#fff;box-shadow:0 1px 5px #20304716;font-weight:650}.scan-device{display:flex;gap:13px;align-items:center;background:#f5f7fa;border:1px solid #dfe6ef;padding:16px;border-radius:12px}.scan-device-icon{display:grid;place-items:center;background:#e7edf8;color:#315486;width:46px;height:46px;border-radius:11px}.scan-device div{flex:1;display:flex;flex-direction:column;gap:5px}.scan-device strong{font-size:15px;color:#15324f}.scan-device div>span{font-size:12px;color:#65748a}.scan-state-dot{height:9px;width:9px;background:#a5adbb;border-radius:100%}.scan-device.ready .scan-state-dot{background:#1aa675;box-shadow:0 0 0 4px #1aa67517}.scan-device.ready{background:#f3fbf7;border-color:#d3e9de}.scan-settings{display:grid;grid-template-columns:1fr 1fr 1.2fr 1fr;gap:12px;margin-top:15px}.scan-settings label,.scan-save-fields label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#4c5f73}.scan-settings select,.scan-save-fields select,.scan-save-fields input{border:1px solid #d5dee9;border-radius:8px;background:#fff;min-height:38px;padding:8px;color:#213950;font:inherit}.scan-settings label.scan-duplex{flex-direction:row;align-items:center;padding-top:20px;gap:7px}.scan-loading-help{font-size:12px;color:#627388;line-height:1.55;margin:12px 0}.scan-setup>.primary-button{display:inline-flex;gap:8px;align-items:center}.scan-cancel{margin-left:13px;border:0;background:transparent;color:#a84040}.scan-dropzone{width:100%;display:flex;flex-direction:column;align-items:center;gap:10px;border:1.5px dashed #b6c8e0;background:#f7faff;border-radius:13px;padding:26px;color:#3566ab}.scan-dropzone strong{font-size:15px}.scan-dropzone span,.scan-dropzone small{color:#64748b;font-size:12px}.scan-preview-head{display:flex;align-items:center;justify-content:space-between;margin:23px 0 14px}.scan-preview-head h3{font-size:15px;color:#263e56;margin:0}.scan-preview-head h3 span{padding:2px 7px;border-radius:7px;background:#eaf0f8;margin-left:7px;font-size:12px}.scan-preview-head>button{display:flex;align-items:center;gap:5px;border:0;background:none;color:#2e60ac;font-size:12px}.scan-empty,.attachment-empty{display:flex;align-items:center;justify-content:center;gap:12px;padding:25px;background:#f8fafc;border:1px solid #e7edf4;border-radius:10px;color:#8a99a9;font-size:13px}.scan-empty{flex-direction:column;gap:4px}.scan-pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:13px}.scan-page{border:1px solid #dce5ef;border-radius:10px;overflow:hidden;min-width:0;background:#fff}.scan-page-image{height:158px;background:#f4f6f9;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:14px}.scan-page-image img{max-height:100%;max-width:100%;object-fit:contain;box-shadow:0 2px 6px #33415515}.scan-page-image>span{position:absolute;bottom:7px;left:8px;font-size:10px;background:#fff;border:1px solid #d5deea;border-radius:5px;padding:2px 6px}.scan-page-caption{font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:7px 8px;color:#62748a}.scan-page-actions{display:flex;justify-content:space-around;border-top:1px solid #edf0f4;padding:5px}.scan-page-actions button{background:transparent;border:0;color:#6a7a8d;padding:5px}.scan-save-fields{display:grid;grid-template-columns:1fr 230px;gap:15px;margin-top:22px}.scan-preservation{display:flex;align-items:center;gap:7px;font-size:11px;line-height:1.5;color:#748497;margin:14px 0 0}.scan-dialog-footer{border-top:1px solid #e5eaf0;background:#f9fbfd;padding:16px 25px;display:flex;justify-content:space-between;gap:12px;align-items:center}.scan-dialog-footer>button{border:1px solid #d5dfeb;border-radius:8px;background:white;padding:10px 14px;font-size:12px;color:#4d6279}.scan-dialog-footer>button.primary-button{background:#285bd2;color:#fff;border-color:#285bd2;display:inline-flex;align-items:center;gap:7px}.scan-error{display:flex;align-items:flex-start;gap:8px;background:#fff4ef;border:1px solid #f1d1bf;border-radius:9px;padding:11px 13px;color:#9b4d27;font-size:12px;line-height:1.5;margin:14px 0}.scan-error svg{flex-shrink:0}.scan-recovery{margin-top:16px;border:1px solid #d7e3f0;border-radius:9px;padding:12px}.scan-recovery>strong{font-size:12px;color:#3b587b}.scan-recovery>button{display:flex;width:100%;gap:8px;align-items:center;background:none;border:0;padding:10px 0;color:#3b587b;text-align:left;font-size:12px}.scan-recovery>button>span{margin-left:auto;color:#285bd2}.patient-attachments{margin:18px 0;padding:24px;border:1px solid #e0e7ef;border-radius:13px;background:#fff}.patient-attachments.compact{padding:14px;margin:12px 0 0;border-style:dashed}.attachment-title-row{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.scan-eyebrow{font-size:9px;letter-spacing:1.2px;color:#70849a;font-weight:700}.attachment-title-row h2{font-size:18px;color:#223e59;margin:5px 0}.attachment-title-row p{font-size:12px;color:#7a899a;margin:0}.scan-entry-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.scan-entry-buttons button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 13px;border-radius:8px;font-size:12px;white-space:nowrap}.scan-entry-buttons .secondary-button{background:#fff;border:1px solid #ccd8e7;color:#486580}.scan-entry-buttons .primary-button{background:#285bd2;color:white;border:1px solid #285bd2}.attachment-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:15px}.attachment-card{border:1px solid #e0e7ef;border-radius:11px;overflow:hidden}.attachment-thumb{width:100%;height:150px;display:flex;align-items:center;justify-content:center;position:relative;background:#f1f5fa;border:0;padding:13px;cursor:pointer}.attachment-thumb img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 2px 5px #344c6817}.attachment-thumb>span{position:absolute;bottom:8px;right:8px;padding:3px 5px;background:white;border-radius:4px;font-size:8px;color:#4f6781}.attachment-card-body{padding:12px}.attachment-kind{display:inline-block;background:#edf2f9;color:#516d8d;border-radius:5px;font-size:9px;padding:3px 6px}.attachment-kind.radiograph{background:#eaf5f4;color:#24777a}.attachment-kind.identity{background:#f0effa;color:#695893}.attachment-card h3{margin:8px 0 5px;font-size:13px;color:#2a435b;overflow-wrap:anywhere}.attachment-card p{font-size:10px;color:#7b8999}.attachment-actions{display:flex;gap:15px;margin-top:12px}.attachment-actions button,.attachment-actions a{display:flex;gap:5px;align-items:center;background:none;border:0;padding:0;font-size:11px;color:#3b66a8;text-decoration:none}.scan-saved-viewer{height:70vh;overflow:auto;display:flex;justify-content:center;background:#e9eef4;padding:15px}.scan-saved-viewer iframe{width:100%;height:100%;border:0}.scan-saved-viewer img{max-width:100%;object-fit:contain}.patient-id-capture{border:1px solid #dce5ef;padding:15px;border-radius:10px;background:#f9fbfe;margin:8px 0}.patient-id-capture-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.patient-id-capture-head>div:first-child{display:flex;flex-direction:column;gap:5px}.patient-id-capture strong{font-size:13px;color:#36536e}.patient-id-capture small{font-size:11px;color:#7c8b9b}.patient-id-capture .compact .scan-entry-buttons{display:none}.patient-id-capture .compact .attachment-title-row h2{font-size:13px}.patient-id-capture .compact .scan-eyebrow{display:none}.scan-prepared-id{display:flex;align-items:center;gap:13px;padding-top:13px}.scan-prepared-thumbnails{display:flex;gap:5px}.scan-prepared-thumbnails img{width:65px;height:43px;object-fit:contain;background:#fff;border:1px solid #dce5f0;border-radius:4px}.scan-prepared-id>span{display:flex;align-items:center;gap:5px;font-size:11px;color:#25815d}.scan-prepared-id>button{margin-left:auto;background:none;border:0;font-size:10px;color:#77899a}.scan-muted{display:flex;align-items:center;gap:7px;color:#7c8da0;font-size:12px}.scan-switch button:focus-visible,.scan-page-actions button:focus-visible,.scan-entry-buttons button:focus-visible{outline:2px solid #285bd2;outline-offset:2px}.scan-dialog-body button:disabled,.scan-dialog-footer button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:680px){.scan-dialog-body{padding:15px}.scan-settings{grid-template-columns:1fr 1fr}.scan-save-fields{grid-template-columns:1fr}.scan-dialog-footer{padding:13px;flex-direction:column-reverse;align-items:stretch}.attachment-title-row,.patient-id-capture-head{align-items:flex-start;flex-direction:column}.patient-attachments{padding:15px}.scan-pages{grid-template-columns:repeat(2,minmax(0,1fr))}.scan-dialog-body{max-height:calc(94vh - 230px)}.scan-prepared-id{flex-wrap:wrap}.scan-prepared-id>button{margin-left:0}.attachment-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}}

.patient-intake-dialog .scan-page-actions button{width:32px;min-width:0;height:32px;min-height:32px;flex:0 1 32px;display:grid;place-items:center;padding:0;border:0;border-radius:5px}.patient-intake-dialog .scan-page-actions{gap:3px}.patient-intake-dialog .scan-settings label.scan-duplex input[type=checkbox]{width:16px;min-width:16px;height:16px;min-height:16px;flex:0 0 16px;padding:0;margin:0;appearance:auto}

/* Measure the rotated paper bounds so every corner remains in the preview. */
.scan-page-image{padding:0}.scan-page-paper{width:100%;height:100%;box-sizing:border-box;padding:14px;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0}.scan-page-image .scan-page-paper img{max-width:none;max-height:none;flex-shrink:0;object-fit:contain;transform-origin:center center}.scan-orientation-help{margin:-4px 0 12px;font-size:11px;line-height:1.5;color:#627388}

.scan-prepared-page{width:90px;height:60px;overflow:hidden;border:1px solid #dce5f0;border-radius:5px;background:#fff;box-sizing:border-box;flex:0 0 90px}.scan-prepared-page .scan-page-paper{padding:4px}.scan-prepared-thumbnails .scan-prepared-page img{max-width:none;max-height:none;flex-shrink:0;border:0;border-radius:0;object-fit:contain;transform-origin:center center}

.scan-prepared-thumbnails{flex-wrap:wrap;max-width:100%}
.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-pane-toolbar .rxv-display-toggle { flex-shrink:0; border-color:#536777; background:#162530; }
.rxv-workspace .rxv-display-toggle button { min-height:30px; padding:4px 9px; font-size:10px; }
.rxv-workspace .rxv-display-toggle button[aria-pressed=true] { background:#32696b; color:#effffc; border-color:#5b9c9d; }
@media (max-width:740px) { .rxv-pane-toolbar:has(.rxv-display-toggle) { flex-wrap:wrap; justify-content:center; padding:5px; }.rxv-pane-toolbar .rxv-display-toggle { width:100%; justify-content:center; } }
.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; }
}

/* Reading workspace: calm dark surfaces, permanent annotation rail and generous canvas. */
.rxv-workspace { --rxv-bg:#10161d; --rxv-panel:#1b2530; --rxv-border:#344351; --rxv-muted:#a2b2c2; --rxv-text:#ecf2f7; --rxv-accent:#68d3c3; font-family:"Work Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.rxv-header { background:#18212b; min-height:86px; padding:14px 22px; gap:16px; }
.rxv-clinic-mark { color:#83d4ce; flex-shrink:0; }
.rxv-header-rule { background:#344654; }
.rxv-patient { flex:1; min-width:0; }
.rxv-patient .rxv-eyebrow { display:block; font-size:9px; letter-spacing:.12em; color:#9fb8c8; margin-bottom:3px; }
.rxv-patient h2 { font-size:18px; font-weight:600; overflow-wrap:anywhere; line-height:1.25; }
.rxv-patient p { color:#a9bbc9; font-size:11px; }
.rxv-header-actions { gap:6px; }
.rxv-workspace .rxv-print-button { background:#357e82; border-color:#519c9d; color:#f4ffff; padding:10px 15px; border-radius:8px; }
.rxv-workspace .rxv-print-button:hover:not(:disabled) { background:#438f91; }
.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-color:#7adfd2; }
.rxv-workspace button[aria-pressed=true],.rxv-workspace button.is-on { background:#23484b; border-color:#467e80; color:#a6ece2; }
.rxv-commandbar { min-height:50px; background:#131c25; padding:7px 21px; align-items:center; }
.rxv-exam-context { display:flex; align-items:center; flex-wrap:wrap; gap:12px; color:#b0c0cd; font-size:12px; min-width:0; }
.rxv-exam-pill { border:1px solid #3e5565; background:#223342; color:#d5e6f0; padding:4px 10px; border-radius:6px; font-size:11px; }
.rxv-context-permission { color:#8fabb8; font-size:10px; }
.rxv-toolrail { display:flex; flex-direction:column; flex-shrink:0; gap:18px; width:172px; padding:20px 12px 14px; overflow-y:auto; scrollbar-width:thin; background:#19232e; border-right:1px solid #344351; }
.rxv-toolrail>.rxv-eyebrow { color:#a4b9c7; text-align:center; font-size:10px; letter-spacing:.13em; }
.rxv-toolrail-tools,.rxv-toolrail-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.rxv-workspace .rxv-toolrail button,.rxv-pen-color { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; min-height:63px; width:100%; padding:8px 3px; border:1px solid #364654; border-radius:10px; background:#232f3d; color:#c9d9e3; }
.rxv-toolrail .rxv-tool>span,.rxv-toolrail-actions button>span,.rxv-pen-color>span { display:block; font-size:9px; line-height:1.2; max-width:100%; white-space:nowrap; overflow-wrap:normal; word-break:normal; text-align:center; }
.rxv-toolrail button[aria-pressed=true] { background:#214e50; border-color:#73cabe; color:#d0fff5; }
.rxv-toolrail-tools>.rxv-tool:hover:not(:disabled),.rxv-toolrail-actions button:hover:not(:disabled) { background:#354454; }
.rxv-pen-color { cursor:pointer; }
.rxv-workspace .rxv-pen-color input[type=color] { width:26px; height:25px; border-radius:6px; padding:1px; cursor:pointer; }
.rxv-toolrail-actions { border-top:1px solid #344351; padding-top:15px; }
.rxv-rail-history { display:flex; gap:8px; margin-top:auto; }
.rxv-workspace .rxv-rail-history button { min-height:38px; padding:7px; }
.rxv-panes { padding:16px; gap:14px; }
.rxv-pane { border-radius:10px; border-color:#405363; background:#0c1117; }
.rxv-pane.is-active { border-color:#679b9d; box-shadow:none; }
.rxv-pane-heading { min-height:47px; background:#202d3a; padding:8px 12px; font-size:12px; border-bottom-color:#374a58; }
.rxv-pane-heading strong { font-weight:550; }
.rxv-segmented { background:#15212c; border-color:#415565; border-radius:6px; }
.rxv-workspace .rxv-segmented button { font-size:11px; min-height:29px; }
.rxv-workspace .rxv-segmented button[aria-pressed=true] { background:#315459; color:#d7fff7; border-color:#568489; }
.rxv-teeth-label { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px; background:#182733; color:#bcd0de; padding:7px 13px; font-size:11px; }
.rxv-teeth-label strong { color:#efd3a5; font-size:10px; font-weight:500; }
.rxv-stage { background:#090f15; min-height:100px; }
.rxv-stage-meta { color:#b4c6d1; }
.rxv-tool-hint { color:#a3b6c5; background:#101c28cc; border-radius:5px; width:max-content; max-width:calc(100% - 24px); padding:5px 9px; margin:auto; }
.rxv-pane-toolbar { min-height:44px; background:#1b2936; border-top-color:#354958; }
.rxv-pane-toolbar output { color:#cce5eb; font-size:12px; }
.rxv-workspace .rxv-pane-toolbar button { min-height:34px; font-size:11px; border-radius:6px; }
.rxv-inspector { width:310px; background:#1b2632; border-left-color:#344351; }
.rxv-inspector>header { padding:18px 20px 15px; }
.rxv-inspector>header strong { font-size:17px; color:#e4eff4; font-weight:550; }
.rxv-inspector-tabs { background:#15202a; border-color:#344351; padding:0 7px; }
.rxv-workspace .rxv-inspector-tabs button { min-height:54px; padding:8px 7px; font-size:11px; gap:6px; }
.rxv-workspace .rxv-inspector-tabs button[aria-selected=true] { color:#adede0; border-bottom-color:#7dd6c5; }
.rxv-inspector-scroll { padding:22px 20px; }
.rxv-section-heading h3,.rxv-calibration h3 { font-size:14px; color:#d9e9f0; font-weight:550; }
.rxv-explainer { font-size:12px; line-height:1.65; color:#a6bac8; }
.rxv-orientation-tools { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:18px 0 22px; }
.rxv-workspace .rxv-orientation-tools button { flex-direction:column; min-height:67px; border:1px solid #3b5060; background:#223241; border-radius:9px; font-size:11px; gap:8px; white-space:normal; text-align:center; }
.rxv-orientation-warning,.rxv-measurement-caution { display:flex; gap:8px; align-items:flex-start; font-size:11px; line-height:1.55; color:#ead0a5; padding:10px; background:#352e26; border:1px solid #5e4e3c; border-radius:7px; margin:12px 0 18px!important; }
.rxv-adjustment { margin:22px 0; }
.rxv-adjustment-heading>label { font-size:12px; color:#c7dbe5; }
.rxv-control-row { font-size:12px; }
.rxv-field { font-size:12px; }
.rxv-source-card { border-color:#38545d; border-radius:8px; background:#172d34; margin-top:24px; padding:16px; }
.rxv-source-card strong { color:#c4e8e7; font-size:12px; }
.rxv-source-card p { font-size:11px; line-height:1.7; color:#a7c0c7; }
.rxv-filmstrip { background:#17212c; border-top-color:#344958; }
.rxv-filmstrip-heading { padding:6px 20px 4px; min-height:37px; }
.rxv-filmstrip-heading>span { color:#9db3c3; font-size:10px; }
.rxv-filmstrip-items { padding:4px 20px 13px; gap:10px; }
.rxv-workspace .rxv-thumbnail { background:#23323f; border-color:#3b5363; border-radius:8px; flex-basis:149px; padding:6px; }
.rxv-workspace .rxv-thumbnail.is-current { background:#274547; border-color:#80d4c4; box-shadow:inset 0 0 0 1px #80d4c433; }
.rxv-thumbnail>div { height:61px; border-radius:5px; }
.rxv-thumbnail>strong { font-size:11px; }
.rxv-thumbnail>span { font-size:9px; color:#b2c6d3; }
.rxv-bottom-bar { background:#121d27; height:auto; min-height:33px; padding:4px 20px; font-size:10px; color:#a0b5c5; gap:12px; }
.rxv-workspace .rxv-bottom-bar button { color:#bacdd9; font-size:10px; }
.rxv-compare-picker { top:138px; background:#213342; border-color:#587384; }
.rxv-inspector>footer { color:#a4bbc8; }
.rxv-research-panel .rxv-section-heading h3 { display:flex; align-items:center; gap:7px; }
.rxv-research-panel .rxv-source-card { margin:14px 0 18px; }
.rxv-research-panel .rxv-source-card strong { display:block; margin:7px 0; }
.rxv-research-gate { display:flex; align-items:flex-start; gap:9px; padding:13px 12px; border:1px solid #426064; border-radius:8px; background:#1d343a; color:#bedbd9; margin:16px 0; font-size:12px; line-height:1.6; }
.rxv-research-run { padding:16px 12px; border:1px solid #3d5364; border-radius:9px; background:#192c3a; margin:15px 0; font-size:12px; line-height:1.6; }
.rxv-research-run>.rxv-section-heading { align-items:flex-start; flex-wrap:wrap; }
.rxv-research-run .rxv-text-button { display:inline-flex; gap:5px; color:#a3dddc; font-size:11px; }
.rxv-research-finding { border-top:1px solid #3b5362; padding-top:15px; margin-top:15px; overflow-wrap:anywhere; }
.rxv-research-finding>strong { display:block; color:#e2eff5; font-size:13px; margin-bottom:5px; }
.rxv-research-finding>small { display:block; color:#acbfcd; margin-top:8px; font-size:10px; }
.rxv-research-actions { display:flex; flex-wrap:wrap; gap:6px; }
.rxv-workspace .rxv-research-actions button { flex:1; min-height:36px; padding:6px 8px; background:#263e4e; border:1px solid #516d7e; border-radius:6px; font-size:11px; }
.rxv-research-panel .rxv-error-text { padding:11px; border:1px solid #6c5243; background:#382d29; border-radius:7px; margin:12px 0; }
@media (max-width:1200px) {
  .rxv-toolrail { width:164px; padding:16px 9px; gap:13px; }
  .rxv-inspector { width:282px; }
  .rxv-header { padding:12px 15px; gap:10px; }
  .rxv-context-permission { display:none; }
  .rxv-patient h2 { font-size:16px; }
  .rxv-workspace .rxv-toolrail button,.rxv-pen-color { min-height:57px; }
  .rxv-header .rxv-back span { display:none; }
  .rxv-inspector-scroll { padding:20px 16px; }
  .rxv-panes { padding:12px; }
}
@media (max-width:1000px) {
  .rxv-inspector { position:absolute; width:min(310px,calc(100vw - 34px)); z-index:4; right:0; top:0; bottom:0; box-shadow:-14px 0 34px #0007; }
  .rxv-toolrail { width:158px; padding:14px 7px; }
  .rxv-toolrail-tools,.rxv-toolrail-actions { gap:6px; }
  .rxv-workspace .rxv-toolrail button,.rxv-pen-color { min-height:55px; }
  .rxv-toolrail .rxv-tool>span { display:block; }
  .rxv-commandbar { padding:7px 14px; }
  .rxv-exam-context { gap:8px; font-size:11px; }
}
@media (max-width:740px) {
  .rxv-header { min-height:90px; padding:9px 11px; flex-wrap:wrap; gap:8px; }
  .rxv-header .rxv-back { flex:0; min-height:34px; }
  .rxv-clinic-mark { width:30px; height:30px; order:0; }
  .rxv-patient { flex-basis:calc(100% - 79px); order:0; display:block; margin-right:0; }
  .rxv-patient .rxv-eyebrow { font-size:8px; }
  .rxv-patient h2 { font-size:14px; }
  .rxv-patient p { font-size:10px; margin-top:3px; }
  .rxv-header-rule { display:none; }
  .rxv-header-actions { order:1; width:100%; justify-content:flex-end; border-top:1px solid #2f4351; padding-top:4px; }
  .rxv-header-actions .rxv-print-button span { display:inline; }
  .rxv-header-actions button,.rxv-header-actions .rxv-button { min-height:34px; padding:5px 8px; }
  .rxv-commandbar { min-height:47px; overflow:visible; gap:7px; padding:5px 9px; }
  .rxv-exam-context { font-size:10px; gap:5px; }
  .rxv-exam-pill { padding:3px 5px; font-size:9px; }
  .rxv-exam-context>span:nth-child(2) { font-size:9px; }
  .rxv-main { flex-direction:column; }
  .rxv-toolrail { flex-direction:row; width:100%; padding:6px 8px; gap:7px; min-height:58px; max-height:65px; overflow-x:auto; overflow-y:hidden; border-right:0; border-bottom:1px solid #344351; align-items:center; }
  .rxv-toolrail>.rxv-eyebrow { display:none; }
  .rxv-toolrail-tools,.rxv-toolrail-actions { display:flex; flex-shrink:0; gap:5px; }
  .rxv-workspace .rxv-toolrail button,.rxv-pen-color { min-height:44px; width:43px; padding:5px; gap:2px; border-radius:7px; }
  .rxv-toolrail .rxv-tool>span,.rxv-toolrail-actions button>span,.rxv-pen-color>span { display:none; }
  .rxv-toolrail-actions { border-top:0; border-left:1px solid #344351; padding:0 0 0 7px; }
  .rxv-rail-history { margin:0; flex-shrink:0; gap:5px; }
  .rxv-panes { padding:6px; gap:6px; }
  .rxv-pane-heading { min-height:40px; font-size:10px; padding:5px 7px; }
  .rxv-workspace .rxv-segmented button { min-height:29px; font-size:9px; padding:3px 6px; }
  .rxv-teeth-label { padding:5px 8px; font-size:10px; }
  .rxv-pane-toolbar { min-height:37px; padding:2px 4px; }
  .rxv-workspace .rxv-pane-toolbar button { min-width:29px; min-height:30px; padding:4px 5px; }
  .rxv-filmstrip-heading { padding:4px 10px; }
  .rxv-filmstrip-heading>span { font-size:8px; }
  .rxv-filmstrip-items { padding:3px 10px 7px; gap:7px; }
  .rxv-workspace .rxv-thumbnail { flex-basis:112px; padding:4px; }
  .rxv-thumbnail>div { height:38px; }
  .rxv-thumbnail>strong { font-size:9px; }
  .rxv-thumbnail>span { font-size:8px; }
  .rxv-bottom-bar { padding:4px 10px; flex-wrap:wrap; font-size:9px; gap:2px; }
  .rxv-bottom-bar>div { margin-left:auto; gap:2px; }
  .rxv-compare-picker { top:165px; }
}
@media (max-height:650px) and (min-width:741px) {
  .rxv-header { min-height:67px; padding-top:8px; padding-bottom:8px; }
  .rxv-commandbar { min-height:43px; }
  .rxv-toolrail { padding-top:12px; gap:10px; }
  .rxv-workspace .rxv-toolrail button,.rxv-pen-color { min-height:46px; }
  .rxv-thumbnail>div { height:37px; }
  .rxv-compare-picker { top:110px; }
}
@media (pointer:coarse) {
  .rxv-workspace .rxv-toolrail button,.rxv-workspace .rxv-rail-history button { min-width:44px!important; min-height:44px!important; }
}

/* Never trade the image away for its controls at native zoom or short heights.
   Compact comparison rows may scroll, but every stage retains a usable floor. */
@media (max-height:560px) {
  .rxv-main { overflow:hidden; }
  .rxv-panes { overflow:auto; overscroll-behavior:contain; grid-auto-rows:minmax(240px,1fr); scrollbar-width:thin; scrollbar-color:#4d6474 #10161d; }
  .rxv-panes.comparing { grid-template-rows:minmax(240px,1fr); }
  .rxv-pane { min-height:240px; }
  .rxv-stage { min-height:100px; }
  .rxv-inspector { position:absolute; z-index:4; right:0; top:0; bottom:0; width:min(310px,calc(100vw - 34px)); box-shadow:-14px 0 34px #0007; }
  .rxv-inspector>header { padding:10px 16px 8px; }
  .rxv-inspector>header strong { font-size:15px; }
  .rxv-workspace .rxv-inspector-tabs button { min-height:42px; padding:5px; font-size:10px; }
  .rxv-inspector-scroll { padding:14px 16px; }
}
@media (max-height:560px) and (min-width:600px) and (max-width:740px) {
  .rxv-header { min-height:62px; flex-wrap:nowrap; padding:7px 9px; gap:7px; }
  .rxv-patient { flex-basis:auto; flex:1; }
  .rxv-patient .rxv-eyebrow { font-size:7px; letter-spacing:.06em; }
  .rxv-patient h2 { font-size:12px; }
  .rxv-patient p { font-size:9px; }
  .rxv-header-actions { width:auto; border:0; padding:0; gap:2px; }
  .rxv-header-actions .rxv-print-button span { display:none; }
  .rxv-header-actions button,.rxv-header-actions .rxv-button { padding:5px; }
  .rxv-commandbar { min-height:42px; }
  .rxv-toolrail { min-height:54px; max-height:54px; padding:4px 8px; }
  .rxv-panes.comparing { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rxv-panes.comparing .rxv-pane-heading { min-height:40px; flex-wrap:wrap; gap:3px; }
  .rxv-panes.comparing .rxv-pane-heading>div:first-child { flex:1; }
  .rxv-panes.comparing .rxv-segmented { width:auto; }
  .rxv-filmstrip-heading { min-height:32px; padding:3px 10px; }
  .rxv-bottom-bar { min-height:28px; padding:3px 10px; }
  .rxv-bottom-bar>span { display:none; }
  .rxv-compare-picker { top:106px; }
}
@media (max-height:560px) and (max-width:599px) {
  .rxv-panes.comparing { grid-template-columns:minmax(0,1fr); grid-template-rows:repeat(2,minmax(240px,1fr)); }
}
/* Approved imaging atelier. Glass belongs to controls; clinical pixels stay opaque and unfiltered. */
.imaging-atelier{--atelier-ink:#202423;--atelier-muted:#737b82;--atelier-line:#d8dfe5;--atelier-blue:#d4e9fc;--atelier-radius:24px;container-type:inline-size;container-name:imaging;position:relative;background:radial-gradient(ellipse at 87% 14%,#f4f7fa80,transparent 50%),#e9eef2;color:var(--atelier-ink);font-family:"Work Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.5;padding:28px;margin:0;border:0!important;border-radius:24px;box-shadow:none!important;min-width:0}
.imaging-atelier *{box-sizing:border-box}.imaging-atelier h1,.imaging-atelier h2,.imaging-atelier h3,.imaging-atelier p{color:inherit;margin:0}.imaging-atelier h1{font-size:38px!important;line-height:1.15;font-weight:400!important;letter-spacing:-1.8px}.imaging-atelier h2{font-size:23px;font-weight:450;letter-spacing:-.7px;line-height:1.3}.imaging-atelier h3{font-size:18px;font-weight:500;letter-spacing:-.4px}
.imaging-atelier button,.imaging-atelier a,.imaging-atelier input,.imaging-atelier select{font:inherit;color:inherit}.imaging-atelier button,.imaging-atelier a{touch-action:manipulation}.imaging-atelier button{cursor:pointer}.imaging-atelier button:disabled{opacity:.4;cursor:not-allowed}.imaging-atelier button:focus-visible,.imaging-atelier a:focus-visible,.imaging-atelier input:focus-visible,.imaging-atelier select:focus-visible{outline:3px solid #1679ea;outline-offset:3px}.imaging-atelier svg{flex:none}
.atelier-page-heading,.imaging-atelier .pimg-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0;margin:0 0 25px;border:0;background:none}.atelier-page-heading>div:first-child,.imaging-atelier .pimg-title{display:flex;align-items:baseline;gap:24px;flex-wrap:wrap}.atelier-page-heading p,.imaging-atelier .pimg-title p{font-size:13px;color:#737b82;margin:0}.atelier-page-heading p>span,.pimg-title p>span{margin:0 10px;color:#a1a7ac}
.atelier-columns{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px;align-items:start;min-width:0}.atelier-library{min-width:0}.atelier-context{background:linear-gradient(137deg,#ffffff70,#f2f6f93d);border:1px solid #ffffffd9;border-radius:28px;padding:26px 22px;box-shadow:inset 0 1px 0 #fff,0 12px 35px #526d8610;backdrop-filter:blur(18px) saturate(1.12);min-width:0}.atelier-context>section+section,.atelier-context-foot{border-top:1px solid #bdc9d27a;padding-top:24px;margin-top:24px}.atelier-context p{font-size:13px;color:#707981;line-height:1.65;margin:12px 0}.atelier-context h2{font-size:25px;line-height:1.2;margin:0 0 14px}.atelier-context h3{margin:0 0 15px}.atelier-eyebrow{font-size:10px;letter-spacing:1.2px;color:#7a858f;display:block;margin-bottom:10px;font-weight:500}.atelier-context dl{margin:0}.atelier-context dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-bottom:1px solid #cdd7df80;padding:10px 0;font-size:12px}.atelier-context dt{color:#707981}.atelier-context dd{margin:0;text-align:right}.atelier-context-foot{display:flex;gap:10px;color:#73818e}.atelier-context-foot p{font-size:12px;margin:0}
.atelier-source-row{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 312px 22px 0}.atelier-source-tabs{display:inline-flex;align-items:center;gap:5px;padding:5px;background:linear-gradient(140deg,#ffffff8c,#ffffff30);border:1px solid #ffffffd9;box-shadow:inset 0 1px 0 #fff,0 6px 15px #5a718414;backdrop-filter:blur(16px);border-radius:50px;max-width:100%}.atelier-source-tabs button{min-height:42px;border:0;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:9px 18px;border-radius:40px;background:none;white-space:nowrap;font-size:13px;font-weight:450}.atelier-source-tabs button[aria-selected=true]{color:#fff;background:linear-gradient(#373b3b,#141716);box-shadow:inset 0 1px 1px #ffffff55,0 3px 7px #15212730}.atelier-source-tabs button>span{font-size:10px;opacity:.7}.atelier-layout{display:flex;gap:6px;flex:none}.atelier-layout button{display:grid;place-items:center;min-height:44px;min-width:46px;border:1px solid #ffffffbb;background:#ffffff55;box-shadow:inset 0 1px 1px #fff,0 5px 12px #3d566b0d;border-radius:16px}.atelier-layout button[aria-pressed=true]{background:#d9eafa;box-shadow:inset 0 1px 2px #fff,0 5px 12px #3d566b18}
.atelier-text-action{display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:0;border:0;background:none;font-size:13px!important}.atelier-primary-link,.atelier-review-card>button{display:flex;align-items:center;justify-content:center;gap:14px;min-height:44px;width:100%;padding:11px 18px;border-radius:30px;color:white!important;text-decoration:none;background:linear-gradient(#383b3b,#161918);box-shadow:inset 0 1px 0 #ffffff55,0 6px 15px #14242d1c;border:1px solid #1e2425}.atelier-state{display:inline-flex;gap:8px;align-items:center;border-radius:30px;padding:5px 10px;font-size:12px;line-height:1.4;background:#fff0dc;color:#79541e;max-width:100%}.atelier-state i{width:8px;height:8px;background:#ef942b;border-radius:50%;box-shadow:0 0 0 2px #ffffff;flex:none}.atelier-state.is-active{background:#e0f1e8;color:#33725a}.atelier-state.is-active i{background:#3ca776}.atelier-review-card{background:linear-gradient(135deg,#ebf6ff,#cfe6fc);border:1px solid #ffffffd4;border-radius:22px;padding:19px;margin:24px -9px 0;box-shadow:inset 0 1px 0 #fff,0 9px 24px #496e8d12}.atelier-review-card h3{display:flex;align-items:center;justify-content:space-between;font-size:19px}.atelier-review-card h3>span{border-radius:50%;background:#242b2c;color:#fff;min-width:23px;height:23px;text-align:center;font-size:12px;line-height:23px}.atelier-review-card p{font-size:12px;margin:10px 0 16px}
.imaging-atelier .pimg-head-actions{display:flex;gap:12px;align-items:center}.imaging-atelier .pimg-import{min-height:46px;padding:11px 22px;background:linear-gradient(#393d3e,#171a1a);border:1px solid #232728;border-radius:30px;color:#fff;box-shadow:inset 0 1px 0 #ffffff50,0 6px 15px #35495717;font-size:14px}.imaging-atelier .pimg-segment{background:none;border:0;display:flex;gap:5px;padding:0}.imaging-atelier .pimg-segment button{border:1px solid #ffffffbc;border-radius:16px;min-width:44px;min-height:44px;background:#ffffff5c;box-shadow:inset 0 1px 0 #fff,0 5px 12px #384c5b0d;display:flex;align-items:center;gap:7px;padding:8px 12px}.imaging-atelier .pimg-segment button[aria-selected=true]{background:#fff}.imaging-atelier .pimg-mode-label{font-size:11px}.imaging-atelier .pimg-toolbar{border:0;background:none;padding:0 0 16px;margin:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap;box-shadow:none}.imaging-atelier .pimg-search{background:#f6f9fc7a;border:1px solid #ffffffc7;border-radius:24px;min-height:44px;padding:0 15px;flex:1;min-width:220px;box-shadow:inset 0 1px 0 #fff,0 4px 12px #3d566b08}.imaging-atelier .pimg-search input{font-size:13px;background:none;color:#313b42;border:0;padding:11px 0;box-shadow:none;min-width:0}.imaging-atelier .pimg-filter-toggle{display:inline-flex;min-height:44px;border:1px solid #ffffffc0;background:#ffffff75;border-radius:24px;padding:8px 18px}.imaging-atelier .pimg-advanced{display:none;flex-basis:100%;flex-wrap:wrap;gap:8px}.imaging-atelier .pimg-advanced.open{display:flex}.imaging-atelier .pimg-select-field select{max-width:100%;min-height:40px;border:1px solid #d6dfe5;border-radius:20px;background:#f8fafb;color:#596771;padding:8px 12px;font-size:12px}.imaging-atelier .pimg-summary{display:flex;gap:12px;align-items:center;margin:0 0 15px;padding:0;font-size:12px;color:#7a858c;flex-wrap:wrap;border:0}.imaging-atelier .pimg-summary>.pimg-trash-note{display:none}.imaging-atelier .pimg-group{border-radius:24px;background:#ffffffee;box-shadow:0 8px 25px #3b526b08;border:1px solid #ffffffc0;padding:20px;margin:0 0 18px;min-width:0}.imaging-atelier .pimg-group>header{display:flex;gap:10px;align-items:center;padding:0;margin:0 0 17px;border:0}.imaging-atelier .pimg-group h2{font-size:20px;font-weight:450}.imaging-atelier .pimg-group header>span{font-size:12px;color:#7a848b}.imaging-atelier .pimg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;list-style:none;padding:0;margin:0}.imaging-atelier .pimg-grid>li{border:0;border-radius:15px;background:#f6f8fa;box-shadow:none;overflow:hidden;min-width:0;position:relative}.imaging-atelier .pimg-grid>li.selected{outline:2px solid #1479f4;outline-offset:3px}.imaging-atelier .pimg-thumb{border-radius:14px 14px 0 0;aspect-ratio:1.28;height:auto;min-height:0;background:#15191c;border:0;padding:0;overflow:hidden;width:100%;display:flex;align-items:center;justify-content:center}.imaging-atelier .pimg-thumb img{width:100%;height:100%;object-fit:contain;filter:none}.imaging-atelier .pimg-meta{padding:12px;display:flex;flex-direction:column;gap:5px}.imaging-atelier .pimg-meta strong{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.imaging-atelier .pimg-meta>span{font-size:11px;color:#7c878e}.imaging-atelier .chip{border-radius:20px;padding:4px 7px;background:#e9eff3;font-size:10px;color:#5b6b76;font-style:normal}.imaging-atelier .pimg-select{position:absolute;top:10px;left:10px;background:#ffffffd9;border-radius:8px;min-width:36px;min-height:36px;display:grid;place-items:center;box-shadow:0 2px 7px #0002}.imaging-atelier input[type=checkbox]{accent-color:#1479f4;width:17px;height:17px}.imaging-atelier .pimg-empty,.atelier-empty{border:1px solid #ffffffd9;background:#ffffffbb;border-radius:24px;min-height:300px;padding:48px 26px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;text-align:center;color:#7b878e}.imaging-atelier .pimg-empty h2,.atelier-empty h3{font-size:24px;font-weight:400;letter-spacing:-.6px;color:#374149}.imaging-atelier .pimg-empty p,.atelier-empty p{font-size:13px;max-width:420px}.imaging-atelier .pimg-empty button,.atelier-empty button{min-height:44px;padding:10px 20px;border:1px solid #d3dee7;border-radius:30px;background:#f7fbff;color:#405e73}
.atelier-comparison{background:#ffffffee;border:1px solid #fff;border-radius:26px;padding:24px;margin-bottom:20px;box-shadow:0 9px 30px #526c8208}.atelier-comparison>header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.atelier-comparison>header h2{font-size:26px}.atelier-comparison>header h2>span{font-size:14px;color:#7f888e;letter-spacing:0;margin-left:12px}.atelier-comparison>header>div{display:flex;gap:12px}.atelier-comparison button{display:inline-flex;align-items:center;gap:8px;min-height:40px;border:0;background:none;padding:6px;color:#3a454d;font-size:12px}.atelier-photo-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}.atelier-photo-pair figure{margin:0;min-width:0}.atelier-photo-pair figcaption{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:13px}.atelier-photo-pair figure:first-child figcaption>span:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#187ef1;margin-right:8px}.atelier-photo-original{aspect-ratio:1.5;background:#11181b;border-radius:15px;overflow:auto;display:flex;align-items:center;justify-content:center}.atelier-photo-original img{width:100%;height:100%;object-fit:contain;filter:none;flex:none;transform-origin:center}.atelier-photo-pair figure small{display:block;font-size:11px;color:#7b8790;margin-top:8px}.atelier-photo-pair figure>a{display:inline-flex;gap:6px;align-items:center;text-decoration:none;color:#5e7181;font-size:11px;min-height:32px}.atelier-comparison-dock{display:flex;align-items:center;justify-content:center;gap:14px;max-width:400px;margin:15px auto -2px;border:1px solid #ffffffd4;border-radius:40px;padding:4px 17px;background:linear-gradient(130deg,#eff4f9d9,#ffffff7a);box-shadow:inset 0 1px 0 #fff,0 5px 20px #71899f22;backdrop-filter:blur(18px)}.atelier-comparison-dock>span{font-size:13px}.atelier-dock-divider{height:20px;width:1px;background:#c6d3df;margin:0 5px}.imaging-atelier .pimg-group.is-filmstrip .pimg-grid{display:flex;overflow-x:auto;gap:10px;padding:4px}.imaging-atelier .is-filmstrip .pimg-grid>li{width:118px;flex:none;overflow:visible;background:none}.imaging-atelier .is-filmstrip .pimg-thumb{aspect-ratio:1.5;border-radius:12px;overflow:hidden}.imaging-atelier .is-filmstrip .pimg-meta{display:none}.imaging-atelier .is-filmstrip .pimg-select{min-width:25px;min-height:25px;top:3px;left:3px;border-radius:50%;background:#ffffffdc}.imaging-atelier .pimg-bulkbar{position:sticky;bottom:16px;z-index:4;background:#f9fcffec;border:1px solid #fff;box-shadow:0 8px 25px #4a657b22;backdrop-filter:blur(18px);border-radius:22px;padding:12px 15px;gap:10px;flex-wrap:wrap}.imaging-atelier .pimg-bulkbar .primary-button{background:#252d32;border-color:#252d32;color:#fff;border-radius:25px}.imaging-atelier .pimg-banner,.atelier-notice{display:flex;align-items:center;gap:10px;padding:13px 16px;border:1px solid #d8e6ee;border-radius:17px;background:#edf5fb;color:#4d6a7e;margin:0 0 16px;font-size:12px}.imaging-atelier .pimg-banner.error,.atelier-notice.error{background:#fff3ec;border-color:#f0d9c9;color:#9a5d3b}.atelier-notice span{flex:1}.atelier-notice button{min-height:36px;border:0;background:none}
.rx-atelier .atelier-page-heading>.patient-attachments{margin:0;padding:0;border:0;background:none;box-shadow:none;flex:none}.rx-atelier .attachment-title-row{margin:0;padding:0;border:0}.rx-atelier .attachment-title-row>div:first-child{display:none}.rx-atelier .scan-entry-buttons{display:flex;gap:12px}.rx-atelier .scan-entry-buttons button{min-height:46px;display:flex;align-items:center;gap:8px;padding:10px 21px;border-radius:30px;box-shadow:inset 0 1px 0 #ffffffbb,0 5px 15px #354a6010;background:#ffffff60;border:1px solid #ffffffd9;color:#27323a}.rx-atelier .scan-entry-buttons button:first-child{order:2;color:#fff;background:linear-gradient(#383c3d,#171a1a);border-color:#272c2d;box-shadow:inset 0 1px 0 #ffffff60,0 6px 16px #354a601c}.rx-atelier-filters{display:flex;align-items:center;gap:14px;margin-bottom:22px;flex-wrap:wrap}.rx-atelier-filters .atelier-source-tabs{flex:none}.rx-atelier-filters .atelier-source-tabs button{padding:8px 16px}.atelier-search{display:flex;align-items:center;gap:9px;flex:1;min-width:190px;background:#ffffff66;border:1px solid #ffffffc9;border-radius:30px;padding:0 14px;min-height:46px;box-shadow:inset 0 1px 0 #fff,0 4px 10px #48607708;color:#7e8a95}.atelier-search input{border:0;background:none;padding:10px 0;min-width:0;width:100%;outline:none;box-shadow:none;color:#34434e}.atelier-search button{border:0;background:none;display:flex;align-items:center;min-height:38px}.atelier-date{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;background:#ffffff66;border:1px solid #ffffffbc;border-radius:30px;box-shadow:inset 0 1px 0 #fff,0 4px 10px #48607708;font-size:12px}.atelier-date select{background:none;border:0;max-width:170px;padding:9px 6px;box-shadow:none;min-width:0}.rx-atelier-gallery{padding:22px;background:#ffffffdc;border:1px solid #ffffff;border-radius:26px;min-width:0;box-shadow:0 9px 24px #526b8008}.rx-atelier-gallery>header{display:flex;gap:12px;align-items:baseline;margin-bottom:18px}.rx-atelier-gallery>header h2{font-size:20px;font-weight:450}.rx-atelier-gallery>header>span{color:#7b858e;font-size:13px}.rx-atelier-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;align-items:start}.rx-atelier-card{position:relative;background:#f8fafbf5;border:1px solid #e8eef2;border-radius:19px;overflow:hidden;padding:17px;min-width:0;box-shadow:0 4px 14px #4a607308}.rx-atelier-card-context{display:flex;flex-direction:column;gap:5px;margin-bottom:16px;padding-right:20px}.atelier-chip{display:inline-flex;align-items:center;background:linear-gradient(#e6f3ff,#bcdcff);box-shadow:inset 0 1px 0 #ffffff;border-radius:30px;padding:4px 11px;font-size:12px;line-height:1.4;width:fit-content;color:#264e6c}.rx-atelier-card-context>span:nth-child(2){font-size:12px;margin-top:7px;color:#3f4b54}.rx-atelier-card-context small{color:#828d96;font-size:11px}.rx-atelier-card-images>div+div{margin-top:18px;border-top:1px solid #e2e8ed;padding-top:18px}.rx-atelier-preview{position:relative;display:flex;align-items:center;justify-content:center;background:#101417;border:0;border-radius:13px;width:100%;aspect-ratio:1.35;max-height:330px;padding:9px;overflow:hidden}.rx-atelier-preview img{width:100%;height:100%;object-fit:contain;filter:none;border-radius:0}.rx-atelier-preview>span:not(.rx-atelier-thumb-fallback){position:absolute;bottom:12px;right:12px;padding:6px 11px;color:#fff;background:#1a242ddd;border-radius:30px;display:flex;gap:7px;align-items:center;font-size:11px;opacity:0;transition:opacity .15s}.rx-atelier-preview:hover>span,.rx-atelier-preview:focus-visible>span{opacity:1}.rx-atelier-preview>em{position:absolute;bottom:9px;left:9px;background:#fff;color:#32414c;font-size:10px;padding:4px 8px;border-radius:20px;font-style:normal}.rx-atelier-thumb-fallback{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;color:#93a2af;font-size:11px;padding:18px}.rx-atelier-image-actions{display:flex;align-items:center;gap:5px;margin-top:10px;flex-wrap:wrap}.rx-atelier-image-actions button,.rx-atelier-image-actions a{border:1px solid #e7ecf1;border-radius:25px;background:linear-gradient(#fff,#f3f6f9);box-shadow:0 3px 7px #354a6009;min-height:35px;display:flex;align-items:center;justify-content:center;gap:5px;padding:5px 9px;font-size:10px;text-decoration:none;white-space:nowrap}.rx-atelier-image-actions a{padding:5px 8px}.rx-atelier-teeth{display:flex;align-items:center;gap:5px;margin-top:9px;min-height:34px;border:0;background:none;padding:0;font-size:10px!important;color:#7e8a93!important;text-align:left}.rx-atelier-archive{position:absolute;top:14px;right:9px;min-height:32px;min-width:32px;background:none;border:0;color:#8d98a0!important;display:grid;place-items:center}.rx-atelier-card.is-panoramic-lead{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 230px;column-gap:22px;align-items:center;padding:12px}.is-panoramic-lead .rx-atelier-card-context{grid-column:2;grid-row:1;align-self:start;margin:14px 0 0;border-left:1px solid #dde5eb;padding:0 0 0 20px;gap:7px}.is-panoramic-lead .rx-atelier-card-images{grid-column:1;grid-row:1}.is-panoramic-lead .rx-atelier-preview{aspect-ratio:2.6;max-height:400px;padding:10px}.is-panoramic-lead .rx-atelier-image-actions{position:absolute;right:16px;bottom:18px;width:214px}.is-panoramic-lead .rx-atelier-teeth{margin-left:4px}.atelier-confirm-source{display:flex;gap:15px;align-items:center;padding:20px;background:#edf5fb;border-radius:18px;margin:20px 0}.atelier-confirm-source>div{display:flex;flex-direction:column;gap:6px}.atelier-confirm-source span{font-size:12px;color:#788b99}
/* Viewer controls use the same pearl surfaces; only the diagnostic canvas is dark. */
body .rxv-workspace{--rxv-bg:#e8edf2;--rxv-panel:#ffffffde;--rxv-border:#d4dee6;--rxv-muted:#778590;--rxv-text:#26343e;--rxv-accent:#1479ed;color-scheme:light;background:#e8edf2;color:#273843;font-family:"Work Sans",sans-serif}
body .rxv-header{background:#f8fafceb;border-color:#d9e1e8;padding:13px 24px;gap:17px}body .rxv-patient h2{font-weight:500;color:#243742}body .rxv-patient p,body .rxv-eyebrow,body .rxv-save-status{color:#7b8d99}body .rxv-clinic-mark{display:none}body .rxv-header-rule{background:#d2dce4}body .rxv-workspace button,body .rxv-workspace .rxv-button{min-height:40px;border-radius:24px;color:#4a5b67}body .rxv-workspace button:hover:not(:disabled),body .rxv-workspace .rxv-button:hover{background:#e1edf8;color:#263f52}body .rxv-workspace button[aria-pressed=true],body .rxv-workspace button.is-on{background:#daebfc;border-color:#c0dcf5;color:#2a648f}body .rxv-workspace .rxv-print-button{color:#fff;background:linear-gradient(#3b4145,#1e262b);border-color:#27343d;min-height:42px;padding:9px 19px;box-shadow:inset 0 1px 0 #ffffff4f,0 4px 12px #30495e1a}body .rxv-commandbar{background:#f1f5f9b3;border-color:#d5e0e8;padding:9px 20px}body .rxv-exam-pill{color:#32648b;background:#d9ebfb;border:1px solid #e8f6ff;border-radius:25px}body .rxv-exam-context{color:#6a7e8c}body .rxv-main{padding:12px 16px;gap:13px}body .rxv-toolrail{border:1px solid #ffffff;background:#f8fbfde6;border-radius:23px;padding:13px 8px;width:77px;box-shadow:inset 0 1px 0 #fff,0 7px 22px #4a647f0a}body .rxv-toolrail .rxv-tool,body .rxv-toolrail-actions>button{border-radius:17px;min-height:49px}body .rxv-toolrail span{font-size:9px}body .rxv-panes{background:none;padding:0;gap:14px}body .rxv-pane{border:1px solid #d7e2eb;border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 7px 24px #314e650b}body .rxv-pane.is-active{border-color:#7eafe2;box-shadow:0 0 0 2px #1479ed10}body .rxv-pane-header{background:#f8fbfd;border-color:#e0e7ed;color:#405b6d}body .rxv-stage{background:#11171c}body .rxv-inspector{background:#ffffffd9;color:#314c5e;border:1px solid #fff;border-radius:23px;width:285px;box-shadow:inset 0 1px 0 #fff,0 7px 24px #526e840f;overflow:auto}body .rxv-inspector-header,body .rxv-inspector-tabs{background:#ffffff4d;border-color:#dce6ee}body .rxv-inspector-tabs button{border-radius:20px;min-height:38px}body .rxv-inspector p,body .rxv-inspector small{color:#788d9d}body .rxv-inspector input,body .rxv-inspector select,body .rxv-inspector textarea{background:#f8fafc;color:#304c60;border-color:#d5e1eb;border-radius:10px}body .rxv-inspector input[type=range]{accent-color:#1681f0}body .rxv-inspector section{border-color:#e1e8ee}body .rxv-filmstrip{margin:0 16px 10px;background:#ffffffcf;border:1px solid #fff;border-radius:22px;color:#5e778a}body .rxv-filmstrip-heading{border-color:#e3eaf0;color:#657c8e}body .rxv-thumbnail{background:#f6fafc;border-radius:14px!important;color:#486073}body .rxv-thumbnail>div{border-radius:10px;background:#131a20}body .rxv-thumbnail.is-current{background:#dfedfc;border-color:#90b7e2}body .rxv-bottom-bar{background:#eff4f8;border-color:#d9e5ee;color:#7a8f9e}body .rxv-compare-picker,body .rxv-guard{background:#fafdff;color:#2b475d;border-color:#d7e4ee;border-radius:24px;box-shadow:0 20px 70px #293f5633}body .rxv-guard p{color:#758da0}body .rxv-workspace .rxv-primary{background:#283b47;color:#fff;border-color:#283b47}body .rxv-unavailable{color:#8ca4b5}body .rxv-guard-backdrop{background:#263b5066;backdrop-filter:blur(12px)}
/* Printed paper is never restyled here; this is the preview workspace only. */
body .rx-print-backdrop,body .rvg-backdrop,body .scan-backdrop,body .rx-confirm-backdrop{background:#24374866;backdrop-filter:blur(12px)}body .rx-print-dialog{border-radius:28px;border:1px solid #ffffff;background:#f6f9fc;color:#2b4152;font-family:"Work Sans",sans-serif;box-shadow:0 28px 90px #142d4538}body .rx-print-header{padding:24px 28px;border-color:#e0e8ef;background:#ffffffb3}body .rx-print-header h2{font-size:27px;font-weight:450;letter-spacing:-.8px}body .rx-print-header p{font-size:12px;color:#8396a4}body .rx-print-dialog button{min-height:44px;border-radius:26px;background:#ffffffa8;border-color:#dbe5ed;padding:10px 17px}body .rx-print-dialog .rx-print-primary{background:linear-gradient(#3b4247,#1e2b34);border-color:#263c4b;color:#fff}body .rx-print-content{grid-template-columns:300px minmax(0,1fr)}body .rx-print-options{padding:25px;border-color:#dbe5ed;gap:18px;background:#ffffff80}body .rx-print-options label{font-weight:450;font-size:13px}body .rx-print-options select,body .rx-print-options input[type=number]{border-radius:13px;min-height:43px;border-color:#d5e2ed;background:#fff}body .rx-print-preview{background:#e6edf3;padding:28px}body .rx-print-paper{background:#dfecf8;border:1px solid #f7fcff;border-radius:18px;padding:17px;font-weight:400}body .rx-print-paper strong{font-weight:500}body .rx-print-actions{padding:17px 26px;background:#ffffffb3;border-color:#dae5ed}body .rx-print-status,body .rx-print-error{border-radius:16px;padding:14px 18px;font-size:12px}body .rx-confirm{border-radius:26px;border:1px solid #ffffff;padding:30px;background:#fbfdff;color:#31495b;box-shadow:0 25px 80px #253e5738;font-family:"Work Sans",sans-serif}body .rx-confirm h2{font-size:27px;font-weight:450;letter-spacing:-.8px}body .rx-confirm p{font-size:13px;color:#768b9a;line-height:1.7}body .rx-confirm button{min-height:44px;border-radius:25px;padding:9px 18px}body .radiology-tooth-dialog{border-radius:26px;padding:26px;background:#f8fbfe;color:#31495d;box-shadow:0 25px 90px #233d5633}body .radiology-tooth-grid button{min-height:44px;border-radius:12px;background:#fff;border-color:#dce6ee}body .radiology-tooth-grid button.selected{background:#d8ebff;border-color:#75aee8;color:#296190}body .radiology-tooth-dialog footer{border-color:#dfe8ef}body .radiology-tooth-dialog .dentalome-primary-button{background:#2b3f4c;color:white;border-color:#2b3f4c;border-radius:25px}
body .rx-inbox{--rx-accent:#2278c4;--rx-line:#dae4ec;background:#e9eef3;border-radius:25px;color:#293c4c;font-family:"Work Sans",sans-serif}body .rx-inbox h1{font-size:35px;font-weight:400;letter-spacing:-1.3px}body .rx-inbox-eyebrow{color:#8296a7;font-size:10px;font-weight:500}body .rx-inbox-count{background:#f9fcff91;border-color:#fff;border-radius:25px;box-shadow:inset 0 1px 0 #fff,0 5px 20px #526c8412;font-weight:400}body .rx-inbox-count strong{font-weight:450}body .rx-inbox-toolbar{background:#ffffff79;border-color:#fff;border-radius:25px;padding:12px 16px;box-shadow:0 5px 20px #526c8409}body .rx-inbox-toolbar select,body .rx-inbox-toolbar input[type=date],body .rx-inbox-search{border-color:#e3eaf0;border-radius:23px;background:#ffffffa8;min-height:44px}body .rx-inbox-list,body .rx-inbox-detail{border-radius:24px;border-color:#ffffff;background:#fffffff2;box-shadow:0 8px 26px #526c8409}body .rx-inbox-item.selected{background:#dfedfa;border-color:#8bb8df}body .rx-inbox .primary-button{min-height:44px;border-radius:25px;background:linear-gradient(#3b4248,#202e39);color:white;font-weight:450;box-shadow:inset 0 1px 0 #ffffff45}body .rx-inbox-preview{background:#12191e}body .rx-inbox-association{padding:27px}body .rx-inbox-source-identity{background:#f0f5fa;border-color:#9db9ce;border-radius:13px}body .rx-inbox-confirm-backdrop{background:#243c5266;backdrop-filter:blur(12px)}body .rx-inbox-confirm-dialog{width:min(530px,100%);border-radius:28px;padding:32px;color:#314a5e;box-shadow:0 25px 90px #233d5638}body .rx-inbox-confirm-dialog h2{font-size:26px;font-weight:450;letter-spacing:-.8px}body .rx-inbox-confirm-dialog>div{background:#e0edf9;border:1px solid #f5fbff;border-radius:18px}body .rx-inbox-confirm-dialog p{color:#7b91a2}body .rx-inbox-confirm-dialog footer button{min-height:44px;border-radius:25px}body .rx-inbox .rx-reception-health{border-color:#fff;border-radius:23px;background:#fbfdffa6}body .rx-notification-group{background:#f2f7fc}
/* Camera receiver remains a single patient-bound instance outside the workspace. */
body .patient-camera{border-radius:18px;background:#f5f9fc;border-color:#dde6ee;box-shadow:0 4px 14px #30445a05}body .patient-camera-copy strong{font-weight:500}body .patient-camera-actions button{border-radius:22px;min-height:40px}.imaging-atelier .atelier-context .patient-camera{margin:0}
@container imaging (max-width:1120px){.atelier-columns{grid-template-columns:minmax(0,1fr) 250px;gap:18px}.atelier-context{padding:22px 18px}.atelier-source-row{margin-right:268px}.atelier-page-heading>div:first-child,.imaging-atelier .pimg-title{gap:12px}.rx-atelier-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.rx-atelier-card.is-panoramic-lead{grid-template-columns:minmax(0,1fr) 190px;gap:13px}.is-panoramic-lead .rx-atelier-image-actions{width:177px}.imaging-atelier .pimg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.atelier-source-tabs button{padding:8px 13px;font-size:12px}.atelier-source-tabs button svg{display:none}.atelier-source-row{flex-wrap:wrap}.atelier-comparison{padding:20px}.atelier-comparison>header{flex-wrap:wrap}.atelier-photo-pair{gap:14px}}
@container imaging (max-width:850px){.atelier-columns{grid-template-columns:1fr}.atelier-context{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:23px}.atelier-context>section+section,.atelier-context-foot{border:0;margin:0;padding:0}.atelier-context-foot{grid-column:1/-1}.atelier-source-row{margin-right:0}.atelier-page-heading,.imaging-atelier .pimg-head{flex-wrap:wrap;gap:17px}.imaging-atelier .pimg-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.rx-atelier-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.rx-atelier-card.is-panoramic-lead{grid-template-columns:minmax(0,1fr) 210px}.is-panoramic-lead .rx-atelier-image-actions{width:195px}.atelier-context .atelier-review-card{margin:18px 0 0}.atelier-context .rx-reception-stages{gap:10px}}
@container imaging (max-width:600px){.imaging-atelier h1{font-size:31px!important;letter-spacing:-1.2px}.atelier-page-heading>div:first-child,.imaging-atelier .pimg-title{display:block}.atelier-page-heading p,.imaging-atelier .pimg-title p{margin-top:9px}.atelier-source-tabs{width:100%}.atelier-source-tabs button{flex:1;padding:9px 10px;font-size:11px;white-space:normal}.atelier-source-tabs button>span{display:none}.atelier-context{display:block}.atelier-context>section+section,.atelier-context-foot{margin-top:21px;padding-top:21px;border-top:1px solid #cdd8e1}.rx-atelier-cards,.imaging-atelier .pimg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rx-atelier-gallery{padding:15px}.rx-atelier-card{padding:12px}.rx-atelier-card.is-panoramic-lead{display:flex;flex-direction:column;align-items:stretch}.is-panoramic-lead .rx-atelier-card-context{border:0;margin:0 0 12px;padding:0}.is-panoramic-lead .rx-atelier-card-images{order:2}.is-panoramic-lead .rx-atelier-image-actions{position:static;width:auto}.is-panoramic-lead .rx-atelier-preview{min-height:150px}.atelier-comparison{padding:17px}.atelier-photo-pair{gap:12px;grid-template-columns:1fr}.atelier-photo-original{aspect-ratio:1.7}.atelier-comparison-dock{gap:8px;padding:4px 10px}.atelier-date{flex:1}.atelier-search{min-width:140px}.atelier-page-heading .scan-entry-buttons button{padding:9px 17px;font-size:12px}.imaging-atelier .pimg-group{padding:16px}.imaging-atelier .pimg-group>header{flex-wrap:wrap}.imaging-atelier .pimg-mode-label{display:none}.atelier-layout{margin-left:auto}}
@media(max-width:700px){.imaging-atelier{padding:19px 14px;border-radius:20px}body .rxv-header{padding:10px 13px;gap:10px}body .rxv-header .rxv-back span{display:none}body .rxv-main{padding:8px;gap:7px}body .rxv-inspector{width:min(310px,85vw)}body .rxv-filmstrip{margin:0 8px 8px;border-radius:18px}body .rx-print-content{grid-template-columns:1fr}body .rx-print-options{display:grid;grid-template-columns:1fr 1fr;padding:17px}body .rx-print-preview{padding:15px}body .rx-print-header{padding:19px}body .rx-print-header h2{font-size:23px}body .rx-print-dialog{border-radius:20px}body .rx-inbox{padding:17px}}
@media(pointer:coarse){.imaging-atelier button,.imaging-atelier a,body .rxv-workspace button,body .rxv-workspace .rxv-button{min-height:44px}.rx-atelier-preview>span:not(.rx-atelier-thumb-fallback){opacity:1}.imaging-atelier .pimg-select{min-width:40px;min-height:40px}}
@media(prefers-reduced-motion:no-preference){.imaging-atelier button,.imaging-atelier a{transition:background-color .16s ease,box-shadow .16s ease,border-color .16s ease}.imaging-atelier .pimg-group,.rx-atelier-card{animation:atelier-enter .18s ease both}@keyframes atelier-enter{from{opacity:.7;transform:translateY(3px)}to{opacity:1;transform:none}}}
@media(prefers-reduced-motion:reduce){.imaging-atelier *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(prefers-reduced-transparency:reduce){.atelier-source-tabs,.atelier-context,.atelier-comparison-dock,.imaging-atelier .pimg-bulkbar{backdrop-filter:none;background:#f5f8fb}}
/* Final density pass: retain legible clinical captions and compact multipage cards. */
.rx-atelier .atelier-context p{font-size:14px}.rx-atelier-card-context>span:nth-child(2){font-size:13px}.rx-atelier-card-context small{font-size:12px}.rx-atelier-image-actions button,.rx-atelier-image-actions a{font-size:11px;min-height:38px;padding:6px 10px}.rx-atelier-teeth{font-size:11px!important}.rx-atelier-pages{display:flex;align-items:center;justify-content:space-between;gap:9px;border-top:1px solid #e4ebf1;padding-top:8px;margin-top:10px;font-size:11px;color:#7a8e9e}.rx-atelier-pages button{min-width:35px;min-height:35px;border:1px solid #dce6ee;border-radius:20px;background:#fff;font-size:20px}.atelier-camera-guide{padding-left:18px;color:#6c8192;font-size:12px;line-height:1.7}.atelier-camera-guide li{padding:5px 0}.rx-atelier-card.is-panoramic-lead{min-height:260px}.is-panoramic-lead .rx-atelier-preview{min-height:230px}
/* Contrast and control pass against the rendered viewer, including the original dark widget selectors. */
.imaging-atelier button,.imaging-atelier input,.imaging-atelier select,.imaging-atelier a{letter-spacing:-.01em}.rx-atelier-card-images>div{position:relative}.rx-atelier-image-actions>a{position:absolute;top:12px;right:12px;z-index:1;background:#f7fbffed;border-color:#fff;box-shadow:0 3px 9px #07111a26;min-width:35px}.rx-atelier-image-actions{flex-wrap:nowrap;gap:4px}.rx-atelier-image-actions button{padding:5px 8px;font-size:11px}
body .rxv-workspace .rxv-back{color:#415d72;background:none}body .rxv-workspace .rxv-toolrail{width:112px;padding:12px 8px;gap:12px}body .rxv-workspace .rxv-toolrail-tools{display:grid;grid-template-columns:1fr;gap:4px}body .rxv-workspace .rxv-toolrail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;border-color:#dbe5ed;padding-top:10px}body .rxv-workspace .rxv-toolrail button,body .rxv-workspace .rxv-pen-color{background:#f2f7fc;border:1px solid #dfe8ef;color:#5f7789;border-radius:14px;min-height:46px;padding:5px 3px;gap:3px}body .rxv-workspace .rxv-toolrail button[aria-pressed=true]{background:#d7eafa;color:#235b85;border-color:#a9cce9}body .rxv-workspace .rxv-toolrail button:disabled{opacity:.38}body .rxv-workspace .rxv-toolrail button>span,body .rxv-workspace .rxv-pen-color>span{font-size:9px;line-height:1.2}body .rxv-workspace .rxv-toolrail-actions button>span{display:none}body .rxv-workspace .rxv-rail-history{display:flex;gap:5px;margin-top:auto}body .rxv-workspace .rxv-rail-history button{min-width:44px;min-height:40px}body .rxv-workspace .rxv-inspector>header strong{color:#2e485c;font-weight:500}body .rxv-workspace .rxv-inspector h3,body .rxv-workspace .rxv-inspector label,body .rxv-workspace .rxv-inspector .rxv-section-heading{color:#405c70;font-weight:500}body .rxv-workspace .rxv-inspector p,body .rxv-workspace .rxv-inspector small,body .rxv-workspace .rxv-inspector .rxv-muted{color:#7a8f9e}body .rxv-workspace .rxv-inspector button{background:#f7fbff;color:#526f84;border-color:#dce7ef}body .rxv-workspace .rxv-inspector-tabs button[aria-selected=true]{background:#e0eefb;color:#2c6b9b;border-color:#b5d4ee}body .rxv-workspace .rxv-orientation-tools button{background:#eef5fb;border-color:#d8e5ee;color:#486a83;border-radius:13px}body .rxv-workspace .rxv-inspector input,body .rxv-workspace .rxv-inspector select,body .rxv-workspace .rxv-inspector textarea{background:#f7fbff;color:#365870;border-color:#d9e6f0}body .rxv-workspace .rxv-range-limits{color:#90a2af}body .rxv-workspace .rxv-source-card{background:#e8f2fa;border-color:#d1e4f4;color:#426984;border-radius:17px}body .rxv-workspace .rxv-source-card strong{color:#365c79}body .rxv-workspace .rxv-explainer{color:#7d929f}body .rxv-workspace .rxv-inspector footer{background:#eff6fc;color:#7490a4;border-color:#d9e7f2}body .rxv-workspace .rxv-thumbnail{background:#eef5fb;border-color:#d4e3ef;color:#527089;border-radius:15px;box-shadow:none}body .rxv-workspace .rxv-thumbnail>span{color:#859aaa}body .rxv-workspace .rxv-thumbnail.is-current{background:#d9eafa;border-color:#82b4df;box-shadow:inset 0 0 0 1px #b7d6ef}body .rxv-workspace .rxv-pane-heading{background:#edf4f9;color:#4e697d;border-color:#d8e5ef}body .rxv-workspace .rxv-teeth-label{background:#e1edf7;color:#6a879d}body .rxv-workspace .rxv-pane-toolbar{background:#f2f7fb;border-color:#dce8f1;color:#5d7d94}body .rxv-workspace .rxv-pane-toolbar output{color:#4d7089}body .rxv-workspace .rxv-pane-toolbar button{background:none;color:#5c7d95}body .rxv-workspace .rxv-orientation-warning,body .rxv-workspace .rxv-measurement-caution{color:#956b3e;background:#fff5e8;border-color:#e9d6ba}body .rxv-workspace .rxv-switch{background:#c9d7e2!important;border-color:#b5cada!important}body .rxv-workspace .rxv-switch[aria-checked=true]{background:#6fa7d5!important}body .rxv-workspace .rxv-inspector-scroll{padding:20px 18px}
@media(max-width:760px){body .rxv-workspace .rxv-toolrail{width:100%;max-height:62px;min-height:62px;display:flex;flex-direction:row;padding:7px;gap:8px;border-radius:18px}body .rxv-workspace .rxv-toolrail-tools,body .rxv-workspace .rxv-toolrail-actions{display:flex;flex-direction:row;gap:5px;padding:0;border:0}body .rxv-workspace .rxv-toolrail button,body .rxv-workspace .rxv-pen-color{width:44px;min-width:44px;height:44px;min-height:44px}body .rxv-workspace .rxv-toolrail button>span,body .rxv-workspace .rxv-pen-color>span{display:none}.rx-atelier-image-actions{flex-wrap:wrap}.rx-atelier-image-actions>a{top:8px;right:8px}}

body .rxv-workspace .rxv-pane-heading strong{color:#3c5d75}body .rxv-workspace .rxv-thumbnail>strong{color:#456c87}body .rxv-workspace .rxv-control-row{color:#52758e;border-color:#dbe7f0}body .rxv-workspace .rxv-inspector input[type=range]{background:#b3c8d9;border:0;height:4px;padding:0;border-radius:8px}body .rxv-workspace .rxv-inspector input[type=range]::-webkit-slider-thumb{background:#e1effb;border-color:#5e8fb5;box-shadow:0 0 0 1px #9cbed8}body .rxv-workspace .rxv-pane-heading .rxv-source-toggle button{background:#e5f0f9;color:#3a6585;border-color:#c3dbed}

.imaging-atelier .pimg-search>svg{position:static;left:auto;margin-right:9px;transform:none}.imaging-atelier .pimg-search input{padding-right:28px}.imaging-atelier .pimg-search button{right:8px}
/* Complete acquisition, paired PDF and import surfaces, using the existing native dialog semantics. */
body .rvg-dialog{border:1px solid #ffffff;border-radius:28px;background:#f8fbfe;color:#334f64;font-family:"Work Sans",sans-serif;box-shadow:0 28px 90px #1a344d38}body .rvg-header{background:#ffffffb3;padding:22px 27px;border-color:#dce6ef}body .rvg-header h2{font-size:27px;font-weight:450;letter-spacing:-.8px}body .rvg-eyebrow{color:#839aaa;font-size:10px;letter-spacing:1.2px;font-weight:500}body .rvg-heading-icon{background:#dfedfa;color:#5881a3;border-radius:15px}body .rvg-patient{background:#e5f0f9;border-color:#d7e6f2;padding:15px 28px}body .rvg-patient strong{font-weight:500;color:#31526a}body .rvg-fiche{background:#ffffffa1;border:1px solid #fff;border-radius:25px;color:#608199}body .rvg-options{background:#ffffffb3;padding:25px;border-color:#dce7f0}body .rvg-preview{padding:25px;background:#eef4f9}body .rvg-device{background:#f0f6fb;border-color:#d6e6f2;border-radius:19px}body .rvg-device.ready{background:#e8f3ed;border-color:#d4e7dc}body .rvg-section-heading h3{font-size:18px;font-weight:450;letter-spacing:-.4px}body .rvg-dentition{border-radius:25px;padding:4px;background:#eaf2f9;border:1px solid #ffffff}body .rvg-dentition button{min-height:42px;border-radius:24px}body .rvg-dentition button[aria-pressed=true]{background:#d3e6f7;color:#396686}body .rvg-tooth-row button{min-height:40px;min-width:35px;background:#fff;border:1px solid #d5e3ee;border-radius:12px;color:#5c7a91}body .rvg-tooth-row button[aria-pressed=true]{color:#276496;background:#d3e9fb;border-color:#91bfe3}body .rvg-progress{background:none;color:#7390a5}body .rvg-preview-stage{border-radius:20px;background:#e6eef5;border:1px solid #d5e3ef;color:#6e899f}body .rvg-preview-stage.saved{background:#121a20}body .rvg-guide{border-radius:18px;border-color:#d6e6f2;background:#eef6fc}body .rvg-guide span{background:#d6e9f9;color:#608aaa}body .rvg-help,body .rvg-guide p{font-size:12px;color:#7a91a3;line-height:1.7}body .rvg-actions{background:#ffffffb3;padding:17px 25px;border-color:#d8e6f1}body .rvg-dialog button{min-height:44px;border-radius:25px;font-family:inherit}body .rvg-dialog .rvg-primary{background:linear-gradient(#3a444b,#21333f);border-color:#2a414f;color:white;box-shadow:inset 0 1px 0 #ffffff44}body .rvg-dialog .rvg-secondary{background:#f9fcff;border-color:#d6e4ef;color:#55768f}body .rvg-dialog .rvg-icon-button{min-width:44px}body .rvg-result{border-radius:17px;background:#e6f0f8;border-color:#d0e3f1;color:#4f768f}body .rvg-warning{border-radius:17px;background:#fff3e4;border-color:#eed5b8;color:#94704a}body .rvg-error{border-radius:17px;background:#fff1eb;border-color:#eccfc2;color:#9a6650}body .rvg-comparison-selection{background:#ffffffb3;border-color:#dce7ef}body .rvg-comparison-grid>button{border-radius:17px;background:#f5f9fc;border-color:#dde7ef}body .rvg-comparison-grid>button[aria-pressed=true]{background:#daeafb;border-color:#83b6e2}body .rvg-comparison-slots{background:#e6f0f9;border-color:#d0e3f3;border-radius:20px}body .rvg-comparison-paper{background:#e7eef4;border-radius:20px}body .rvg-comparison-body{background:#f3f7fa}body .rvg-comparison-paper-stage{background:#e4edf4}
body .patient-intake-dialog.imaging-scan-dialog,body .patient-intake-dialog.imaging-recovery-dialog{border:1px solid #ffffff;border-radius:28px;background:#f7fbff;box-shadow:0 25px 90px #1b344e3d;color:#36566e;font-family:"Work Sans",sans-serif;width:min(1120px,calc(100vw - 32px));max-height:calc(100dvh - 32px)}body .imaging-scan-dialog::backdrop,body .imaging-recovery-dialog::backdrop{background:#2c435966;backdrop-filter:blur(12px)}body .imaging-scan-dialog .patient-intake-dialog-head{padding:23px 28px;background:#ffffffa6;border-color:#dce7f1}body .imaging-scan-dialog .patient-intake-dialog-head h2{font-weight:450;font-size:28px;letter-spacing:-.8px}body .imaging-scan-dialog .patient-intake-dialog-head p{font-size:12px;color:#8098aa}body .imaging-scan-dialog .scan-dialog-body{background:#f4f8fc;padding:25px 28px;max-height:calc(100dvh - 225px)}body .imaging-scan-dialog .scan-switch{border:1px solid #fff;background:#e8f0f7aa;border-radius:28px;box-shadow:inset 0 1px 0 #fff,0 5px 14px #59768d13}body .imaging-scan-dialog .scan-switch button{min-height:43px;border-radius:25px;font-weight:450}body .imaging-scan-dialog .scan-switch button.active{background:linear-gradient(#3d4850,#263945);color:#fff;box-shadow:inset 0 1px 0 #ffffff38}body .imaging-scan-dialog .scan-dropzone{min-height:165px;background:#eaf4fc;border-color:#b3d0e5;border-radius:22px;color:#4b789b;gap:13px}body .imaging-scan-dialog .scan-dropzone strong{font-weight:500;font-size:18px}body .imaging-scan-dialog .scan-dropzone span{font-size:13px}body .imaging-scan-dialog .scan-empty{border-radius:20px;background:#fff;border-color:#e2ecf4;min-height:100px}body .imaging-scan-dialog .scan-device{border-radius:20px;border-color:#d6e6f2;background:#eaf3fa}body .imaging-scan-dialog .scan-device strong{font-weight:500}body .imaging-scan-dialog .scan-settings select,body .imaging-scan-dialog .scan-save-fields input,body .imaging-scan-dialog .scan-save-fields select{min-height:44px;border-radius:13px;border-color:#d2e1ed;background:#fff}body .imaging-scan-dialog .scan-settings label,body .imaging-scan-dialog .scan-save-fields label{font-weight:450;font-size:12px}body .imaging-scan-dialog .scan-page{border-radius:19px;border-color:#dce7ef;box-shadow:0 4px 14px #2f4c620b}body .imaging-scan-dialog .scan-page-image{background:#edf4f9;height:190px}body .imaging-scan-dialog .scan-page-actions button{min-width:40px;min-height:40px}body .imaging-scan-dialog .scan-dialog-footer{background:#ffffffd9;border-color:#dce7f0;padding:18px 26px}body .imaging-scan-dialog button,body .imaging-recovery-dialog button{min-height:44px;border-radius:24px}body .imaging-scan-dialog .primary-button{background:linear-gradient(#3b454d,#223744);border-color:#2a404f;color:#fff}body .imaging-scan-dialog .scan-dialog-footer .primary-button{background:linear-gradient(#3b454d,#223744);border-color:#2a404f}body .imaging-scan-dialog .scan-error{border-radius:17px}body .imaging-recovery-dialog{width:min(560px,calc(100vw - 32px))}
body .rxv-workspace .rxv-back{min-width:44px;min-height:44px}body .radiology-tooth-dialog{max-height:calc(100dvh - 32px);overflow:auto}body .radiology-tooth-dialog .radiology-tooth-grid{grid-template-columns:repeat(8,minmax(44px,1fr))}body .radiology-tooth-dialog .radiology-tooth-grid button{min-width:44px}
@media(max-width:600px){body .imaging-scan-dialog .scan-settings{grid-template-columns:1fr 1fr}body .imaging-scan-dialog .scan-save-fields{grid-template-columns:1fr}body .imaging-scan-dialog .scan-dialog-body{padding:19px}body .imaging-scan-dialog .patient-intake-dialog-head{padding:20px}body .imaging-scan-dialog .patient-intake-dialog-head h2{font-size:23px}body .rvg-header h2{font-size:23px}body .rvg-options,body .rvg-preview{padding:19px}body .rvg-tooth-row button{min-width:40px;min-height:44px}}
@media(max-width:480px){body .radiology-tooth-dialog .radiology-tooth-grid{grid-template-columns:repeat(4,minmax(44px,1fr))}body .imaging-scan-dialog .scan-dialog-footer{flex-wrap:wrap;padding:15px 18px}}
/* Keep lead-card actions in their metadata column and never overlay a label. */
.rx-atelier-card.is-panoramic-lead .rx-atelier-card-images>div{position:static}
.rx-atelier-card.is-panoramic-lead .rx-atelier-image-actions{flex-wrap:wrap;justify-content:flex-start;align-content:flex-end;bottom:18px}
.rx-atelier-card.is-panoramic-lead .rx-atelier-image-actions>a{position:static;min-width:40px}
.rx-atelier-image-actions{flex-wrap:wrap}
.rx-atelier-image-actions button,.rx-atelier-image-actions a{min-height:42px}
@container imaging (max-width:600px){.rx-atelier-card.is-panoramic-lead .rx-atelier-image-actions{position:static;width:auto}.rx-atelier-card.is-panoramic-lead .rx-atelier-image-actions>a{position:static}}

.imaging-atelier .pimg-bulkbar.is-comparing{position:static;margin-top:16px;box-shadow:0 3px 14px #4a657b10}

/* Patient radiography tools */
.rx-atelier > .atelier-columns {
  grid-template-areas: "library";
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.rx-atelier > .atelier-columns.rx-atelier-with-tools {
  grid-template-areas: "library tools";
  grid-template-columns: minmax(0, 1fr) clamp(220px, 23%, 246px);
}

.rx-atelier > .atelier-columns > .atelier-library {
  grid-area: library;
}

.rx-atelier .rx-atelier-tools {
  grid-area: tools;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #ffffffef;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff9, #f1f7fd58);
  box-shadow: inset 0 1px 0 #fff, 0 8px 24px #324e6714;
}

.rx-atelier-tools > .rvg-launch,
.rx-atelier-tools > .rx-tool-stellaris {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #fff;
  border-radius: 13px;
  background: linear-gradient(165deg, #ffffffec, #f1f7fb);
  color: #253e50;
  box-shadow: 0 2px 5px #30495812;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
}

.rx-atelier-tools > .rvg-launch > svg:first-child,
.rx-atelier-tools > .rx-tool-stellaris > svg:first-child {
  box-sizing: content-box;
  padding: 4px;
  border-radius: 7px;
  background: #e7eff7;
  color: #3b617e;
}

.rx-atelier-tools > .rvg-launch:not(.rvg-compare-launch) {
  border-color: #315766;
  background: linear-gradient(160deg, #325f6d, #193c4b);
  color: #fff;
  box-shadow: inset 0 1px 1px #ffffff34, 0 3px 8px #1939482e;
}

.rx-atelier-tools > .rvg-launch:not(.rvg-compare-launch) > svg:first-child {
  background: #ffffff27;
  color: #edfaff;
}

.rx-atelier-tools > .rvg-launch:not(.rvg-compare-launch):hover {
  background: #254c5b;
}

.rx-atelier-tools > .rvg-compare-launch:hover,
.rx-atelier-tools > .rx-tool-stellaris:hover {
  border-color: #bed2df;
  background: #fff;
}

.rx-atelier-tools > .rx-tool-stellaris {
  background: #f6f9fc94;
}

.rx-tool-stellaris-label {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.rx-tool-receiver-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #536a7b;
  font-size: 11px;
  font-weight: 550;
}

.rx-tool-receiver-status::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.rx-tool-receiver-status[data-tone="online"] {
  color: #146c54;
}

.rx-tool-receiver-status[data-tone="attention"] {
  color: #8c521c;
}

@container imaging (max-width: 850px) {
  .rx-atelier > .atelier-columns.rx-atelier-with-tools {
    grid-template-areas: "tools" "library";
    grid-template-columns: minmax(0, 1fr);
  }

  .rx-atelier .rx-atelier-tools {
    flex-flow: row wrap;
  }

  .rx-atelier-tools > .rvg-launch {
    flex: 1 1 148px;
  }

  .rx-atelier-tools > .rx-tool-stellaris {
    flex: 1 0 100%;
  }
}

@container imaging (max-width: 395px) {
  .rx-atelier-tools > .rvg-launch {
    gap: 7px;
    padding-inline: 8px;
    font-size: 12px;
  }
}
/* Plein cadre. A neutral reading plane with controls outside the fitted image. */
.rxv-workspace.rxv-focus {
  --rxv-bg: #0b0d10;
  --rxv-panel: #171c23;
  --rxv-border: #313943;
  --rxv-text: #eef2f6;
  --rxv-muted: #a6b2bf;
  --rxv-accent: #aad8f2;
  --rxv-motion: 220ms cubic-bezier(.2,.8,.2,1);
  background: var(--rxv-bg);
  color: var(--rxv-text);
  color-scheme: dark;
  width: 100%;
  font-family: "Work Sans", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

.rxv-workspace.rxv-focus .rxv-header {
  min-height: 62px;
  padding: 8px 18px;
  gap: 13px;
  background: linear-gradient(180deg, #22272e, #15191f);
  border-color: #333841;
}
.rxv-focus .rxv-header-rule { height: 26px; flex: 0 0 1px; background: #46505b; }
.rxv-focus .rxv-patient { flex: 1; min-width: 0; }
.rxv-focus .rxv-patient h2 {
  color: #f2f5f9; font-size: 14px; font-weight: 630;
  letter-spacing: .005em; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rxv-focus .rxv-patient p {
  color: #aab7c6; font-size: 11px; margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rxv-workspace.rxv-focus :is(.rxv-header,.rxv-pane-toolbar,.rxv-filmstrip-heading) :is(button,.rxv-button) {
  min-height: 36px; padding: 7px 9px; border-radius: 10px;
  color: #d7e2ed; background: transparent; border: 1px solid transparent; box-shadow: none;
}
.rxv-workspace.rxv-focus :is(.rxv-header,.rxv-pane-toolbar,.rxv-filmstrip-heading) :is(button,.rxv-button):hover:not(:disabled),
.rxv-workspace.rxv-focus :is(.rxv-header,.rxv-pane-toolbar) button[aria-expanded=true],
.rxv-workspace.rxv-focus :is(.rxv-header,.rxv-pane-toolbar) button[aria-pressed=true] {
  background: #313e4a; color: #e6f5ff; border-color: #455665;
}
.rxv-workspace.rxv-focus .rxv-header .rxv-back { background: #ffffff0b; border-color: #ffffff24; }
.rxv-workspace.rxv-focus .rxv-header-actions { gap: 4px; min-width: 0; }
.rxv-focus .rxv-header-actions > a > span, .rxv-focus .rxv-print-button > span { display: none; }
.rxv-workspace.rxv-focus .rxv-header .rxv-new-capture {
  min-height: 40px; margin-left: 5px; padding: 8px 13px; border-radius: 12px;
  border-color: #cee9fa; background: linear-gradient(180deg, #c8e7f9, #9fcee9);
  box-shadow: inset 0 1px 0 #ffffff9c, 0 3px 12px #0004;
  color: #132839; font-size: 13px; font-weight: 650;
}
.rxv-workspace.rxv-focus .rxv-header .rxv-new-capture:hover:not(:disabled) {
  background: #d3efff; border-color: #e2f3fc; color: #101f2a;
}
.rxv-focus .rxv-save-status {
  display: inline-flex; margin: 0 4px 0 0; padding: 5px 8px; min-height: 26px; border-radius: 16px;
  color: #b7d5c9; font-size: 11px; white-space: nowrap; background: #9de3c50b;
}
.rxv-focus .rxv-save-status > svg { color: #a4dcc4; }

.rxv-workspace.rxv-focus .rxv-main {
  display: flex; flex-direction: row; flex: 1 1 0; min-height: 0;
  padding: 9px 12px 4px; gap: 10px;
}
.rxv-workspace.rxv-focus .rxv-panes {
  min-width: 0; min-height: 0; padding: 0; gap: 8px;
}
.rxv-focus .rxv-pane, .rxv-workspace.rxv-focus .rxv-pane.is-active {
  background: #0d1013; border: 1px solid #262e36; border-radius: 14px; box-shadow: none;
}
.rxv-focus .rxv-panes.comparing .rxv-pane.is-active { border-color: #719cb5; }
.rxv-workspace.rxv-focus :is(.rxv-stage,.rxv-pane-heading,.rxv-teeth-label) {
  color: #bdcdda; background: #0d1013; border-color: #20272f;
}
.rxv-workspace.rxv-focus .rxv-stage { min-height: 0; cursor: grab; }
.rxv-workspace.rxv-focus .rxv-stage.tool-pan:active { cursor: grabbing; }
.rxv-workspace.rxv-focus .rxv-stage:not(.tool-pan) { cursor: crosshair; }
.rxv-workspace.rxv-focus .rxv-stage.tool-select { cursor: default; }
.rxv-workspace.rxv-focus .rxv-stage.tool-text { cursor: text; }
.rxv-workspace.rxv-focus .rxv-pane-heading { padding: 3px 10px; min-height: 29px; }
.rxv-workspace.rxv-focus .rxv-pane-heading strong { color: #d5e0ec; }
.rxv-workspace.rxv-focus .rxv-teeth-label { padding: 2px 9px; color: #a4b4c6; line-height: 1.5; font-size: 11px; }
.rxv-focus .rxv-teeth-label > strong { color: #ffd393; margin-left: 7px; }
.rxv-workspace.rxv-focus .rxv-pane-toolbar {
  min-height: 38px; padding: 2px 5px; gap: 4px;
  background: #151a20; color: #a4b4c6; border-color: #283039;
}
.rxv-workspace.rxv-focus .rxv-pane-toolbar button {
  min-height: 30px; border-radius: 8px; padding: 4px 7px;
}
.rxv-workspace.rxv-focus .rxv-pane-toolbar output {
  color: #dceaf4; font-size: 11px; min-width: 39px; font-variant-numeric: tabular-nums;
}
.rxv-workspace.rxv-focus .rxv-pane-toolbar .rxv-segmented {
  background: #0e151c; border-color: #303b46;
}
.rxv-workspace.rxv-focus .rxv-pane-toolbar .rxv-segmented button { min-height: 24px; font-size: 11px; }
.rxv-focus .rxv-source-note { margin-right: 6px; color: #a2b3c2; }
.rxv-workspace.rxv-focus .rxv-tool-hint {
  bottom: 7px; font-size: 12px; background: #121920ee; border: 1px solid #3c4b59; color: #dfebf6;
}
.rxv-focus .rxv-stage-message { color: #c2d1dd; }

/* The horizontal expansion stays outside the stage, so a panoramic never sits under the tools. */
.rxv-workspace.rxv-focus .rxv-toolrail {
  align-self: flex-start; flex: 0 0 auto; position: relative; inset: auto;
  --rxv-rail-offset: clamp(8px, 16dvh, 145px);
  width: 52px; max-height: calc(100% - var(--rxv-rail-offset)); min-height: 0; height: auto; margin: var(--rxv-rail-offset) 0 0;
  padding: 5px; gap: 4px; display: flex; flex-direction: column;
  overflow: hidden auto; scrollbar-width: none;
  border: 1px solid #343c45; border-radius: 17px; background: linear-gradient(150deg,#232a33,#181c21 70%);
  box-shadow: inset 0 1px 0 #ffffff14, 0 9px 24px #0004; transition: width var(--rxv-motion);
}
.rxv-workspace.rxv-focus .rxv-toolrail[data-expanded=true] { width: 143px; }
.rxv-workspace.rxv-focus .rxv-toolrail .rxv-zoom-controls {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0;
  border-block: 1px solid #39424b; padding-block: 4px;
}
.rxv-workspace.rxv-focus .rxv-toolrail .rxv-zoom-controls output {
  color: #aabfcd; font-size: 10px; text-align: center; font-variant-numeric: tabular-nums;
}
.rxv-focus .rxv-rail-controls {
  display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto;
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height var(--rxv-motion), opacity 130ms ease;
}
.rxv-focus .rxv-toolrail[data-expanded=true] .rxv-rail-controls { max-height: 520px; opacity: 1; }
.rxv-workspace.rxv-focus .rxv-toolrail :is(.rxv-toolrail-tools,.rxv-toolrail-actions,.rxv-rail-history) {
  display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0;
}
.rxv-workspace.rxv-focus .rxv-toolrail :is(.rxv-toolrail-actions,.rxv-rail-history) { border: 0; border-top: 1px solid #39424b; padding-top: 4px; }
.rxv-workspace.rxv-focus .rxv-toolrail :is(button,.rxv-pen-color) {
  display: flex; flex: 0 0 auto; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px;
  width: 100%; height: 33px; min-height: 33px; min-width: 0; padding: 0 10px;
  background: transparent; color: #c0cdd9; border: 1px solid transparent; border-radius: 9px;
  box-shadow: none; white-space: nowrap; font-size: 12px;
}
.rxv-workspace.rxv-focus .rxv-toolrail .rxv-rail-toggle {
  background: #ffffff0d; color: #daf0ff; border-color: #ffffff18;
}
.rxv-workspace.rxv-focus .rxv-toolrail .rxv-adjust-button[aria-expanded=true] { background: #aad8f220; color: #c6e9ff; border-color: #aad8f243; }
.rxv-workspace.rxv-focus .rxv-toolrail button[aria-pressed=true] {
  background: #aad8f220; color: #c6e9ff; border-color: #aad8f243;
}
.rxv-workspace.rxv-focus .rxv-toolrail button:hover:not(:disabled) {
  background: #3a4856; color: #eff8ff; border-color: #526778;
}
.rxv-workspace.rxv-focus .rxv-toolrail :is(button,.rxv-pen-color) > span {
  display: block; opacity: 0; transform: translateX(-5px); font-size: 12px; line-height: 1.25;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left;
  transition: opacity 110ms ease, transform var(--rxv-motion);
}
.rxv-workspace.rxv-focus .rxv-toolrail[data-expanded=true] :is(button,.rxv-pen-color) > span {
  opacity: 1; transform: translateX(0); transition-delay: 55ms;
}
.rxv-focus .rxv-pen-color input { margin: 0; width: 19px; height: 19px; flex: 0 0 19px; }

/* Glass inspector. The canvas remains a separate fit region in every state. */
.rxv-workspace.rxv-focus .rxv-inspector {
  flex: 0 0 min(325px, 34vw); width: min(325px,34vw); min-width: 0; min-height: 0;
  position: relative; inset: auto; display: flex; flex-direction: column;
  background: linear-gradient(150deg, #252c35, #1a2028 58%);
  color: #d5e3ef; border: 1px solid #414c58; border-radius: 15px;
  box-shadow: inset 0 1px 0 #ffffff17, 0 10px 28px #0004;
  overflow: hidden; animation: rxv-inspector-in var(--rxv-motion) both;
}
@keyframes rxv-inspector-in { from { opacity: .15; transform: translateX(7px); } to { opacity: 1; transform: translateX(0); } }
.rxv-workspace.rxv-focus .rxv-inspector > header {
  flex: 0 0 auto; padding: 8px 12px; background: #ffffff06; border-color: #424f5c;
}
.rxv-workspace.rxv-focus .rxv-inspector > header > div {
  display: flex; align-items: center; gap: 8px; color: #b6e2fc;
}
.rxv-workspace.rxv-focus .rxv-inspector > header strong { color: #f2f6fb; font-size: 16px; font-weight: 610; }
.rxv-workspace.rxv-focus .rxv-inspector button {
  background: #ffffff08; color: #d0deec; border-color: #ffffff19; border-radius: 9px;
}
.rxv-workspace.rxv-focus .rxv-inspector button:hover:not(:disabled) { background: #41546a; color: #f2f9ff; }
.rxv-workspace.rxv-focus .rxv-inspector-tabs {
  display: flex; min-width: 0; gap: 3px; padding: 6px; background: #171c24; border-color: #374350;
}
.rxv-workspace.rxv-focus .rxv-inspector-tabs button {
  flex: 1 1 auto; min-width: 0; gap: 4px; min-height: 32px; padding: 4px; font-size: 11px;
}
.rxv-workspace.rxv-focus .rxv-inspector-tabs button svg { width: 14px; height: 14px; }
.rxv-workspace.rxv-focus .rxv-inspector-tabs button[aria-selected=true] {
  background: #aad8f225; border-color: #94c9ee55; color: #d7efff;
}
.rxv-workspace.rxv-focus .rxv-inspector-scroll {
  min-height: 0; padding: 12px; overflow: auto; scrollbar-width: thin; scrollbar-color: #667686 #232a33;
}
.rxv-workspace.rxv-focus .rxv-inspector :is(h3,label,.rxv-section-heading,.rxv-control-row) { color: #e1ecf4; }
.rxv-workspace.rxv-focus .rxv-inspector :is(p,small,.rxv-muted,.rxv-explainer) { color: #abbac9; }
.rxv-workspace.rxv-focus .rxv-inspector :is(input:not([type=range]),select,textarea) {
  background: #101923; color: #ecf4f9; border-color: #43546a; border-radius: 8px;
}
.rxv-focus .rxv-tones {
  display: flex; flex-direction: column; gap: 0; padding: 1px 10px;
  border: 1px solid #3f4c5a; border-radius: 12px; background: #101923c2;
}
.rxv-workspace.rxv-focus .rxv-adjustment { padding: 7px 0 9px; margin: 0; border-bottom: 1px solid #ffffff1a; }
.rxv-workspace.rxv-focus .rxv-adjustment:last-child { border-bottom: 0; }
.rxv-focus .rxv-adjustment-heading label { display: flex; align-items: center; gap: 6px; }
.rxv-focus .rxv-adjustment-heading label svg { color: #a7c6d9; }
.rxv-workspace.rxv-focus .rxv-adjustment-values { gap: 3px; }
.rxv-workspace.rxv-focus .rxv-adjustment-values input { width: 48px; min-height: 28px; padding: 3px; font-variant-numeric: tabular-nums; }
.rxv-workspace.rxv-focus .rxv-adjustment-values button { min-height: 27px; padding: 3px 5px; }
.rxv-workspace.rxv-focus .rxv-inspector input[type=range] {
  display: block; margin: 8px 0 4px; height: 5px; width: 100%;
  background: linear-gradient(90deg, #a7d8f1 var(--rxv-fill), #465465 var(--rxv-fill));
  border: 0; border-radius: 8px; accent-color: #b2e3ff;
}
.rxv-workspace.rxv-focus .rxv-inspector input[type=range]::-webkit-slider-thumb {
  background: #d0edff; border-color: #87a8ba; box-shadow: none;
}
.rxv-workspace.rxv-focus .rxv-inspector .rxv-control-row { border-color: #3c4b59; margin: 0; }
.rxv-workspace.rxv-focus .rxv-orientation-heading { margin-top: 6px; }
.rxv-workspace.rxv-focus .rxv-orientation-tools { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
.rxv-workspace.rxv-focus .rxv-orientation-tools button { min-width: 0; min-height: 46px; padding: 4px; font-size: 10px; }
.rxv-workspace.rxv-focus .rxv-inspector :is(.rxv-orientation-warning,.rxv-measurement-caution) {
  background: #3a2b23; color: #ffdaaa; border-color: #a57350;
}
.rxv-workspace.rxv-focus .rxv-inspector footer { min-height: 30px; padding: 4px 10px; background: #111a24; border-color: #414b57; color: #b7c6d5; }
.rxv-workspace.rxv-focus .rxv-inspector .rxv-switch { background: #596673 !important; border-color: #6a7785 !important; }
.rxv-workspace.rxv-focus .rxv-inspector .rxv-switch[aria-checked=true] { background: #9ccceb !important; border-color: #b2dbf6 !important; }

.rxv-workspace.rxv-focus .rxv-filmstrip {
  min-height: 0; margin: 0 12px 5px; border: 1px solid #313d49; border-radius: 12px;
  background: #151b22; color: #b8c6d4; box-shadow: none;
}
.rxv-workspace.rxv-focus .rxv-filmstrip-heading { min-height: 34px; padding: 0 7px; border-color: #334250; color: #aebbca; }
.rxv-workspace.rxv-focus .rxv-filmstrip-heading button { min-height: 30px; padding: 3px 7px; }
.rxv-workspace.rxv-focus .rxv-thumbnail { background: #222b34; color: #c5d5e6; border-color: #394856; }
.rxv-workspace.rxv-focus .rxv-thumbnail :is(strong,span) { color: inherit; }
.rxv-workspace.rxv-focus .rxv-thumbnail.is-current { background: #2a4052; color: #eefaff; border-color: #97c9ed; box-shadow: none; }
.rxv-focus :is(.rxv-compare-picker,.rxv-guard) { color-scheme: light; }

/* One compact row on the gallery. The same preparation flow can dock beside an open image. */
.rx-atelier .atelier-columns.rx-atelier-with-tools {
  grid-template-columns: minmax(0,1fr); grid-template-areas: "tools" "library"; align-items: start;
  gap: 14px;
}
.rx-atelier .rx-atelier-tools {
  grid-area: tools; grid-template-columns: minmax(190px,max-content) max-content max-content;
  justify-content: start; gap: 7px; padding: 6px; width: 100%; margin: 0;
  box-shadow: 0 6px 20px #253a5012, inset 0 1px 0 #fff;
}
.rx-atelier .atelier-library { grid-area: library; }
.rx-atelier .rx-atelier-tools > :is(.rvg-launch,.rx-tool-stellaris) {
  min-height: 42px; padding: 6px 13px; white-space: nowrap;
}
.rx-atelier .rx-atelier-tools > :is(.rvg-launch,.rx-tool-stellaris) svg:first-child { height: 24px; width: 24px; }
.rvg-focus-flow .rvg-dialog {
  width: min(800px, 100%); border-radius: 19px;
  color-scheme: light; background: #f8fbfe; color: #193449;
}
.rvg-focus-flow .rvg-header { padding: 13px 16px; background: #fff; }
.rvg-focus-flow .rvg-header h2 { margin: 0; font-size: 20px; color: #153247; }
.rvg-focus-flow .rvg-header p { margin: 2px 0 0; color: #536d81; font-size: 12px; }
.rvg-focus-flow .rvg-patient { padding: 10px 16px; }
.rvg-focus-flow .rvg-body { grid-template-columns: minmax(0,1.18fr) minmax(0,1fr); }
.rvg-focus-flow :is(.rvg-options,.rvg-preview) { padding: 14px 16px; }
.rvg-focus-flow .rvg-progress { margin: 0 0 8px; gap: 6px; }
.rvg-focus-flow .rvg-progress li { color: #536778; }
.rvg-focus-flow .rvg-progress li.complete { color: #156954; }
.rvg-focus-flow .rvg-progress li.current { color: #146771; }
.rvg-focus-flow .rvg-section-heading { margin: 14px 0 8px; }
.rvg-focus-flow .rvg-pairing { margin: 10px 0; }
.rvg-focus-flow .rvg-result { margin-top: 7px; }
.rvg-focus-flow .rvg-actions { padding: 10px 14px; flex-shrink: 0; }
.rvg-focus-flow .rvg-actions .rvg-primary {
  min-height: 40px; border-radius: 10px; border: 1px solid #254d5f;
  background: linear-gradient(180deg,#2f596a,#204351); color: #fff;
}
.rvg-focus-flow .rvg-actions .rvg-secondary { min-height: 38px; background: #f3f8fc; color: #2b4b62; }
.rvg-focus-flow .rvg-error { max-height: 92px; padding: 8px 13px; }
.rvg-focus-flow.rvg-from-viewer {
  position: absolute; align-items: flex-start; justify-content: flex-end;
  padding: 69px 13px 11px; background: #090d1314; backdrop-filter: none;
}
.rvg-focus-flow.rvg-from-viewer .rvg-dialog {
  width: min(432px, 100%); max-height: calc(100dvh - 80px);
  border: 1px solid #c1d3e2; box-shadow: 0 15px 42px #0007;
  animation: rxv-inspector-in 180ms ease-out both;
}
.rvg-focus-flow.rvg-from-viewer .rvg-body { display: flex; flex-direction: column; }
.rvg-focus-flow.rvg-from-viewer .rvg-options { border-right: 0; border-bottom: 1px solid #ccdce6; }
.rxv-workspace.rxv-focus .rvg-focus-flow :is(button,input,select) { color-scheme: light; }
.rxv-workspace.rxv-focus .rvg-focus-flow .rvg-icon-button { color: #37596c; background: #edf4f8; }
.rxv-workspace.rxv-focus .rvg-focus-flow .rvg-dentition button { color: #365269; }
.rxv-workspace.rxv-focus .rvg-focus-flow .rvg-tooth-row button { color: #2a4a60; border-color: #ccdae4; }
.rxv-workspace.rxv-focus .rvg-focus-flow .rvg-tooth-row button[aria-pressed=true] { color: #225f66; background: #d7eeef; border-color: #78aeb6; }

@media (max-width: 1050px) {
  .rxv-focus .rxv-patient-fiche { display: none; }
  .rxv-workspace.rxv-focus .rxv-header { gap: 8px; padding-inline: 9px; }
}
@media (max-width: 760px) {
  .rxv-workspace.rxv-focus .rxv-header { flex-wrap: wrap; min-height: 50px; padding: 7px 8px; gap: 4px 7px; }
  .rxv-focus :is(.rxv-header-rule,.rxv-back > span) { display: none; }
  .rxv-workspace.rxv-focus .rxv-header-actions { flex: 1 0 100%; justify-content: space-between; }
  .rxv-workspace.rxv-focus .rxv-header-actions > button, .rxv-workspace.rxv-focus .rxv-header-actions > a { min-height: 38px; }
  .rxv-focus .rxv-save-status { position: relative; min-width: 26px; margin: 0; padding: 5px; }
  .rxv-focus .rxv-save-copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rxv-workspace.rxv-focus .rxv-main { flex-direction: column; padding: 3px 6px; gap: 4px; }
  .rxv-workspace.rxv-focus .rxv-toolrail, .rxv-workspace.rxv-focus .rxv-toolrail[data-expanded=true] {
    width: 100%; display: flex; flex-direction: row; flex-shrink: 0; height: auto; max-height: none;
    margin: 0; padding: 3px; border-radius: 11px; overflow: auto hidden;
  }
  .rxv-workspace.rxv-focus .rxv-toolrail :is(button,.rxv-pen-color) {
    min-width: 37px; width: auto; height: 35px; min-height: 35px; padding-inline: 9px; justify-content: center;
  }
  .rxv-workspace.rxv-focus .rxv-toolrail .rxv-rail-toggle { margin: 0; }
  .rxv-workspace.rxv-focus .rxv-toolrail :is(.rxv-rail-controls,.rxv-toolrail-tools,.rxv-toolrail-actions,.rxv-rail-history,.rxv-zoom-controls) {
    flex-direction: row; align-items: center; border: 0; padding: 0; gap: 2px;
  }
  .rxv-workspace.rxv-focus .rxv-toolrail[data-expanded=false] .rxv-rail-controls { display: none; }
  .rxv-workspace.rxv-focus .rxv-toolrail :is(button,.rxv-pen-color) > span { display: none; }
  .rxv-workspace.rxv-focus .rxv-inspector {
    flex: 0 1 auto; width: 100%; max-height: min(44dvh, 425px); border-radius: 11px;
  }
  .rxv-workspace.rxv-focus .rxv-pane { border-radius: 10px; }
  .rxv-workspace.rxv-focus .rxv-source-note { display: none; }
  .rxv-workspace.rxv-focus .rxv-filmstrip { margin-inline: 6px; }
  .rx-atelier .rx-atelier-tools { display: flex; flex-wrap: wrap; }
  .rx-atelier .rx-atelier-tools > :is(.rvg-launch,.rx-tool-stellaris) { flex: 1 0 auto; }
  .rvg-focus-flow .rvg-body { display: flex; flex-direction: column; }
  .rvg-focus-flow.rvg-from-viewer { align-items: flex-end; padding: 0 7px 7px; }
  .rvg-focus-flow.rvg-from-viewer .rvg-dialog { width: 100%; max-height: min(74dvh, 650px); }
}
@media (max-width: 380px) {
  .rxv-workspace.rxv-focus .rxv-pane-toolbar { flex-wrap: wrap; justify-content: center; }
  .rxv-focus .rxv-zoom-controls button:first-child > span { display: none; }
}
@media (pointer: coarse) {
  .rxv-workspace.rxv-focus :is(.rxv-header,.rxv-toolrail,.rxv-pane-toolbar,.rxv-inspector) button { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .rxv-workspace.rxv-focus *, .rvg-focus-flow * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.rvg-compare-launch{margin-left:9px;background:#fff}.rvg-comparison-dialog{width:min(1250px,100%)}.rvg-comparison-body{display:grid;grid-template-columns:minmax(310px,.8fr) minmax(0,1.35fr);overflow:auto;min-height:0}.rvg-comparison-selection{padding:21px 24px;border-right:1px solid #e2ebf0;min-width:0}.rvg-comparison-selection .rvg-section-heading{margin:0 0 17px}.rvg-comparison-slots{display:grid;grid-template-columns:1fr 1fr;gap:11px;position:relative}.rvg-comparison-slots>button:not(.rvg-comparison-swap){display:flex;flex-direction:column;align-items:center;gap:10px;border:1px solid #d8e5ec;border-radius:11px;padding:12px;background:#f8fafc;min-height:150px;color:#839da9}.rvg-comparison-slots>button.active:not(.rvg-comparison-swap){border-color:#319d9e;box-shadow:0 0 0 2px #dff3f2;background:#f0fafa}.rvg-comparison-slots>button>span{align-self:flex-start;font-weight:700;font-size:12px;color:#386077}.rvg-comparison-slots img{display:block;height:82px;object-fit:contain;width:100%;border-radius:5px;background:#17252e}.rvg-comparison-slots small{font-size:10px;color:#6d8795;line-height:1.4}.rvg-comparison-swap{position:absolute;top:calc(50% - 17px);left:calc(50% - 17px);z-index:1;display:grid;place-items:center;border:1px solid #c7dde6;background:#fff;color:#3c7b8e;border-radius:50%;width:35px;height:35px;padding:0;box-shadow:0 2px 8px #183c5715}.rvg-comparison-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0 20px;max-height:290px;overflow:auto;padding:3px}.rvg-comparison-grid>button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:6px 6px 9px;border:1px solid #dce6ec;background:#fff;border-radius:9px;text-align:left;color:#4a6b7d;min-width:0}.rvg-comparison-grid>button[aria-pressed=true]{border-color:#3a9f9e;background:#eff9f8;box-shadow:0 0 0 1px #3a9f9e}.rvg-comparison-grid img{width:100%;height:76px;display:block;object-fit:contain;border-radius:5px;background:#192b36}.rvg-comparison-grid span{font-size:10px;font-weight:700;display:flex;align-items:center;gap:4px;padding:2px 3px}.rvg-comparison-grid small{font-size:9px;line-height:1.5;padding:0 3px;color:#78909c;overflow-wrap:anywhere}.rvg-comparison-paper{display:flex;flex-direction:column;padding:22px 25px;background:#f4f7fa;min-width:0}.rvg-comparison-paper-heading{display:flex;flex-direction:column;gap:6px;margin-bottom:18px}.rvg-comparison-paper-heading strong{font-size:14px;color:#2f5268}.rvg-comparison-paper-heading span{font-size:11px;line-height:1.5;color:#78909e}.rvg-comparison-paper-stage{display:flex;align-items:center;justify-content:center;min-height:320px;flex:1;overflow:hidden;border:1px solid #d8e3e9;border-radius:11px;background:#eaf0f4;padding:15px}.rvg-comparison-paper-stage>img{display:block;width:100%;max-height:440px;object-fit:contain;filter:drop-shadow(0 2px 4px #16354a20)}.rvg-comparison-placeholder{background:#fff;width:100%;aspect-ratio:297/210;box-shadow:0 2px 8px #19395114;border:1px solid #e1e8ed;padding:16px;display:flex;flex-direction:column}.rvg-comparison-fake-header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:12px;border-bottom:2px solid #176a87;color:#204e68;font-size:10px;font-weight:700}.rvg-comparison-fake-header small{font-size:8px;font-weight:500}.rvg-comparison-placeholder>div:nth-child(2){display:grid;grid-template-columns:1fr 1fr;gap:15px;flex:1;min-height:0;margin-top:17px}.rvg-comparison-placeholder section{display:flex;align-items:center;justify-content:flex-start;flex-direction:column;gap:12px;color:#a8bac4;min-height:0}.rvg-comparison-placeholder section strong{font-size:11px;color:#58778b}.rvg-comparison-placeholder section img{display:block;object-fit:contain;max-height:155px;height:100%;width:100%;min-height:0}.rvg-comparison-placeholder>p{font-size:8px;line-height:1.5;color:#91a4b0;text-align:center;margin:15px 0 0}.rvg-comparison-repeat{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-top:13px}.rvg-comparison-repeat label{display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.6;color:#5f7b8c}.rvg-comparison-repeat input{width:17px;height:17px;accent-color:#0d8985;flex-shrink:0;margin:0}.rvg-comparison-repeat .rvg-secondary{font-size:11px;min-height:37px;padding:7px 10px}.rvg-comparison-dialog .rvg-preview-caption{text-align:left;font-size:10px;line-height:1.7}
@media(max-width:900px){.rvg-comparison-body{grid-template-columns:minmax(290px,.85fr) minmax(0,1fr)}.rvg-comparison-selection,.rvg-comparison-paper{padding:19px 16px}.rvg-comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rvg-comparison-paper-stage{padding:9px;min-height:295px}.rvg-comparison-placeholder{padding:10px}.rvg-comparison-placeholder section img{max-height:125px}.rvg-comparison-fake-header{font-size:8px;gap:6px}.rvg-comparison-fake-header small{font-size:7px}.rvg-comparison-placeholder>div:nth-child(2){gap:9px;margin-top:12px}.rvg-comparison-placeholder section{gap:8px}}
@media(max-width:650px){.rvg-comparison-body{display:flex;flex-direction:column}.rvg-comparison-selection{border-right:0;border-bottom:1px solid #dde8ee}.rvg-comparison-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:240px}.rvg-comparison-grid img{height:80px}.rvg-comparison-paper-stage{min-height:270px}.rvg-comparison-placeholder section img{max-height:150px}.rvg-comparison-dialog .rvg-actions>div{flex-wrap:wrap}.rvg-comparison-dialog .rvg-primary,.rvg-comparison-dialog .rvg-secondary{font-size:11px;padding:9px 10px}.rvg-comparison-dialog .rvg-actions{align-items:flex-end}.rvg-compare-launch{margin-left:0;margin-top:8px}}
.charge-invoice-summary{display:inline-flex;gap:9px;align-items:center;border:1px solid #dce6f2;border-radius:8px;padding:5px 9px;background:#f7faff;color:#52749b;font:inherit;font-size:12px;min-height:38px;white-space:nowrap}.charge-invoice-summary.has-invoices{background:#eff6ff;color:#2358a7;border-color:#d3e3fb}.charge-invoice-summary img{width:28px;height:32px;object-fit:contain;background:#fff;border:1px solid #e0e6ed;border-radius:3px}.charge-invoice-summary-icon{display:flex;align-items:center;justify-content:center;width:24px;color:#8295ae}.charge-invoice-summary:focus-visible,.charge-invoices button:focus-visible,.charge-invoice-download:focus-visible{outline:2px solid #285bd2;outline-offset:3px}.charge-form-modal.charge-form-with-invoices{width:min(730px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow-y:auto}.charge-invoices{border:1px solid #dde6ef;border-radius:12px;padding:20px;background:#fff}.charge-invoices-form{margin-top:24px;background:#f9fbfe}.charge-invoices-head{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-bottom:16px}.charge-invoices h3{display:flex;gap:7px;align-items:center;font-size:16px;line-height:1.4;color:#24405d;margin:4px 0}.charge-invoices h3>span{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;border-radius:6px;background:#e8eff9;color:#46678e;font-size:11px}.charge-invoices-head p{margin:0;font-size:11px;line-height:1.5;color:#788b9e}.charge-invoices .scan-entry-buttons{flex-shrink:0;gap:7px}.charge-invoice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}.charge-invoice-card{display:grid;grid-template-columns:76px minmax(0,1fr);gap:13px;border:1px solid #dfe7f1;border-radius:9px;padding:12px;background:#fff;align-items:start}.charge-invoice-thumb{height:105px;width:76px;display:flex;align-items:center;justify-content:center;border:1px solid #e2e8ef;border-radius:6px;background:#f1f5fa;position:relative;padding:7px;color:#a6b5c6;overflow:hidden;cursor:pointer}.charge-invoice-thumb img{position:absolute;inset:7px;width:calc(100% - 14px);height:calc(100% - 14px);object-fit:contain;z-index:1;background:#f1f5fa}.charge-invoice-thumb>span{position:absolute;z-index:2;bottom:5px;right:5px;font-size:8px;letter-spacing:.3px;border-radius:3px;padding:2px 4px;background:#fff;color:#5d7290}.charge-invoice-details{min-width:0}.charge-invoice-saved{display:flex;align-items:center;gap:4px;color:#29906c;font-size:9px;font-weight:600}.charge-invoice-details h4{font-size:12px;line-height:1.4;color:#2b4560;margin:7px 0 4px;overflow-wrap:anywhere}.charge-invoice-details p{font-size:10px;line-height:1.6;color:#7a8b9c;margin:0}.charge-invoice-details .attachment-actions{gap:12px;flex-wrap:wrap;margin-top:9px}.charge-invoice-details .attachment-actions button,.charge-invoice-details .attachment-actions a{font-size:10px}.charge-invoice-empty{display:flex;align-items:center;justify-content:center;gap:13px;background:#f5f8fc;border:1px dashed #d9e3ef;padding:22px 15px;border-radius:9px;color:#8b9cb1}.charge-invoice-empty>div{display:flex;flex-direction:column;gap:4px}.charge-invoice-empty strong{font-size:12px;font-weight:500;color:#5f7591}.charge-invoice-empty span{font-size:11px;line-height:1.5;max-width:360px;color:#8294a9}.charge-invoice-pending{display:flex;flex-direction:column;gap:9px;margin-top:12px}.charge-invoice-pending-row{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid #d9e8df;border-radius:9px;padding:10px}.charge-invoice-pending-row>div:nth-child(2){display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}.charge-invoice-pending-row strong{font-size:12px;line-height:1.4;color:#35536c;overflow-wrap:anywhere}.charge-invoice-pending-row>div>span{display:flex;gap:4px;align-items:center;font-size:10px;color:#2b8c68}.charge-invoice-pending-row>button{border:0;background:transparent;color:#8a9caf;display:grid;place-items:center;padding:6px}.charge-invoice-pending-row .scan-prepared-page{width:52px;height:66px;flex-basis:52px}.charge-invoice-note{display:flex;gap:6px;align-items:flex-start;color:#738b82;font-size:10px;line-height:1.6;margin:12px 0 0}.charge-invoice-note svg{flex-shrink:0;margin-top:1px}.charge-invoices .scan-error{align-items:center}.charge-invoices .scan-error button{margin-left:auto;flex-shrink:0;background:none;border:0;color:#a55d37;text-decoration:underline;font:inherit}.patient-intake-dialog:has(.charge-invoice-modal-content){width:min(870px,calc(100vw - 32px));max-height:92dvh;overflow:hidden;padding:0}.charge-invoice-modal-content{padding:22px;max-height:calc(92dvh - 170px);overflow:auto;background:#f6f9fd}.charge-invoice-modal-content .charge-invoices{border:0;padding:0;background:transparent}.charge-invoice-modal-content .charge-invoice-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.charge-invoice-modal-content .charge-invoice-card{grid-template-columns:90px minmax(0,1fr);padding:15px}.charge-invoice-modal-content .charge-invoice-thumb{height:125px;width:90px}.charge-invoice-modal-content .charge-invoice-empty{background:#fff}.charge-invoice-viewer img{max-height:none;object-fit:contain;align-self:flex-start}.charge-invoice-download{display:inline-flex;align-items:center;gap:7px;padding:10px 14px;border-radius:8px;background:#285bd2;color:#fff;text-decoration:none;font-size:12px}.charge-invoices button:disabled{opacity:.5;cursor:not-allowed}.charge-invoice-unconfirmed{margin:12px 0 0;padding:11px 13px;border-radius:8px;border:1px solid #efd9b4;background:#fff9ee;font-size:12px;line-height:1.6;color:#8b652f}
.charge-invoice-recovery{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:1px solid #d4e2f5;border-radius:10px;background:#f1f6fd;padding:13px 16px;margin:0 0 16px;color:#4c6d96}.charge-invoice-recovery>div{display:flex;align-items:center;gap:11px;flex:1;min-width:200px}.charge-invoice-recovery>div>span{display:flex;flex-direction:column;gap:4px}.charge-invoice-recovery strong{font-size:12px;color:#345b88}.charge-invoice-recovery small{font-size:11px;color:#748aa6}.charge-invoice-recovery>button{display:flex;align-items:center;gap:12px;padding:8px 10px;background:#fff;border:1px solid #d3e2f5;border-radius:7px;color:#285eb3;font-size:11px}.charge-invoice-recovery>button>span{color:#597795;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.charge-invoice-capture-recovery>button{gap:6px}
.charge-recovery-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e6edf5;flex-wrap:wrap;padding:8px 0}.charge-recovery-row:last-child{border-bottom:0}.charge-recovery-row>button:first-child{display:flex;flex:1;align-items:center;gap:6px;border:0;background:none;color:#3b587b;text-align:left;padding:5px 0;font-size:12px}.charge-recovery-row>button:first-child>span{margin-left:auto;color:#285bd2;font-size:11px;white-space:nowrap}.charge-recovery-row .charge-recovery-abandon{border:0;background:none;color:#98706a;font-size:10px;padding:6px}.charge-capture-abandon{background:#fff8f2;border:1px solid #edd7c8;border-radius:9px;padding:14px;margin-top:12px;color:#795a45}.charge-capture-abandon strong{font-size:12px}.charge-capture-abandon p{font-size:11px;line-height:1.6;margin:7px 0 12px}.charge-capture-abandon>div{display:flex;gap:9px;flex-wrap:wrap}.charge-capture-abandon button{padding:8px 11px;border:1px solid #e0c8b7;border-radius:6px;background:#fff;color:#795a45;font-size:11px}.charge-capture-abandon button:last-child{background:#986146;color:#fff;border-color:#986146}
@media(max-width:680px){.charge-form-modal.charge-form-with-invoices{max-height:calc(100dvh - 24px);padding:20px 16px 14px}.charge-form-modal.charge-form-with-invoices>.modal-head{width:calc(100% + 32px);margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:35px}.charge-invoices{padding:14px}.charge-invoices-head{align-items:flex-start;flex-direction:column;gap:12px}.charge-invoices-head .scan-entry-buttons{width:100%}.charge-invoices-head .scan-entry-buttons>button{flex:1}.charge-invoice-grid{grid-template-columns:1fr}.charge-invoice-modal-content{padding:16px;max-height:calc(92dvh - 200px)}.charge-invoice-modal-content .charge-invoice-grid{grid-template-columns:1fr}.charge-invoice-pending-row{flex-wrap:wrap}.charge-invoice-pending-row .scan-prepared-thumbnails{max-width:110px}.charges-workspace .dentalome-table-wrap table:has(.charge-invoice-summary){min-width:650px}.charge-invoice-recovery>button{width:100%;justify-content:space-between}}
.patient-intake-dialog:has(> .charge-entry-form) {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  border-color: #dce5f0;
  border-radius: 16px;
  color: #243b5b;
}
.patient-intake-dialog[open]:has(> .charge-entry-form) { display: flex; flex-direction: column; }
.patient-intake-dialog:has(> .charge-entry-form) > .patient-intake-dialog-head { flex-shrink: 0; padding: 23px 26px 20px; border-color: #e5ebf3; }
.patient-intake-dialog:has(> .charge-entry-form) > .patient-intake-dialog-head h2 { color: #142849; font-size: 23px; letter-spacing: -.5px; }
.patient-intake-dialog:has(> .charge-entry-form) > .patient-intake-dialog-head p { color: #718097; font-size: 13px; }
.charge-entry-form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; margin: 0; }
.charge-entry-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 26px; }
.charge-entry-intro { display: flex; align-items: center; gap: 12px; margin-bottom: 23px; }
.charge-entry-icon { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; border-radius: 11px; color: #2563eb; background: #eef4ff; }
.charge-entry-intro h3 { margin: 0 0 4px; font-size: 15px; font-weight: 650; color: #293f60; }
.charge-entry-intro p { margin: 0; font-size: 12px; color: #78879b; line-height: 1.5; }
.charge-entry-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 20px; }
.charge-entry-field { min-width: 0; }
.charge-entry-label { grid-column: 1 / -1; }
.patient-intake-dialog .charge-entry-field label { display: flex; flex-direction: row; align-items: center; gap: 5px; margin-bottom: 8px; color: #435775; font-size: 13px; font-weight: 550; }
.charge-entry-field label > span { color: #bd5454; }
.patient-intake-dialog .charge-entry-field input { height: 46px; border-color: #d6e0ec; border-radius: 8px; color: #243b5b; padding: 11px 13px; font-size: 14px; font-weight: 400; background: #fff; }
.patient-intake-dialog .charge-entry-field input::placeholder { color: #94a0b2; }
.patient-intake-dialog .charge-entry-field input:focus-visible { outline: 3px solid #2563eb18; outline-offset: 1px; border-color: #7ba2f0; }
.patient-intake-dialog .charge-entry-field input[aria-invalid=true] { border-color: #d98585; background: #fffafa; }
.charge-entry-amount { position: relative; }
.patient-intake-dialog .charge-entry-amount input { padding-right: 48px; font-weight: 550; }
.charge-entry-amount input[type=number] { appearance: textfield; -moz-appearance: textfield; }
.charge-entry-amount input::-webkit-inner-spin-button, .charge-entry-amount input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.charge-entry-amount > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #7b8ba2; pointer-events: none; }
.charge-entry-error { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; color: #af4545; }
.charge-entry-body .charge-invoices { margin-top: 25px; padding: 18px; background: #f8faff; border-color: #e1e8f4; }
.charge-entry-body .charge-invoices .scan-eyebrow { display: none; }
.charge-entry-body .charge-invoices-head { margin-bottom: 13px; }
.charge-entry-body .charge-invoices h3 { font-size: 14px; color: #354e71; }
.charge-entry-body .charge-invoice-empty { min-height: 74px; background: #fff; padding: 16px; border-color: #dce6f4; }
.charge-entry-body .charge-invoices .scan-entry-buttons button { min-height: 36px; padding: 8px 12px; font-size: 12px; }
.charge-entry-body .charge-invoices .scan-entry-buttons .primary-button { color: #2563eb; background: #eef4ff; border-color: #d4e1fa; }
.charge-entry-footer { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 26px; background: #fff; border-top: 1px solid #e3eaf3; }
.charge-entry-total { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.charge-entry-total > span { color: #78879a; font-size: 11px; }
.charge-entry-total strong { font-size: 21px; font-weight: 650; letter-spacing: -.5px; color: #203b60; overflow-wrap: anywhere; }
.charge-entry-actions { display: flex; align-items: center; gap: 9px; }
.patient-intake-dialog:has(> .charge-entry-form) .charge-entry-actions button { min-height: 42px; padding: 11px 16px; font-size: 13px; border-color: #d8e2ef; color: #536783; white-space: nowrap; }
.patient-intake-dialog:has(> .charge-entry-form) .charge-entry-actions .primary-button { background: #2563eb; border-color: #2563eb; color: #fff; }
.patient-intake-dialog:has(> .charge-entry-form) .charge-entry-actions .primary-button:hover { background: #1e56d2; }
.charge-entry-body > .form-error { font-size: 13px; line-height: 1.6; }
@media (max-width: 560px) {
  .patient-intake-dialog:has(> .charge-entry-form) { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .patient-intake-dialog:has(> .charge-entry-form) > .patient-intake-dialog-head { padding: 19px 18px 16px; }
  .patient-intake-dialog:has(> .charge-entry-form) > .patient-intake-dialog-head h2 { font-size: 21px; }
  .charge-entry-body { padding: 20px 18px; }
  .charge-entry-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .patient-intake-dialog .charge-entry-field input { font-size: 16px; }
  .charge-entry-intro { align-items: flex-start; margin-bottom: 20px; }
  .charge-entry-body .charge-invoices { padding: 14px; margin-top: 22px; }
  .charge-entry-footer { padding: 14px 18px; flex-wrap: wrap; gap: 14px; }
  .charge-entry-total { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
  .charge-entry-total strong { font-size: 19px; }
  .charge-entry-actions { width: 100%; }
  .charge-entry-actions > button { flex: 1; }
}
.cheques-workspace { --cheques-blue: #0757e9; --cheques-ink: #153252; --cheques-muted: #71849e; color: var(--cheques-ink); font-size: 14px; min-width: 0; }
.cheques-workspace *, .cheques-dialog *, .cheques-notification-panel * { box-sizing: border-box; }
.cheques-workspace button, .cheques-dialog button, .cheques-notification-panel button { font: inherit; cursor: pointer; }
.cheques-workspace button:disabled, .cheques-dialog button:disabled, .cheques-notification-panel button:disabled { cursor: default; opacity: .55; }
.cheques-workspace button:focus-visible, .cheques-dialog :is(button,input,select,textarea,a,summary):focus-visible, .cheques-notification-panel :is(button,a):focus-visible { outline: 3px solid #91b6ff; outline-offset: 3px; }
.cheques-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.cheques-page-heading h1, .cheques-page-heading h2 { font-size: 25px; font-weight: 600; letter-spacing: -.7px; line-height: 1.25; margin: 0 0 6px; color: #153252; }
.cheques-page-heading h1 { font-size: 32px; }
.cheques-page-heading p { margin: 0; color: #7486a0; font-size: 14px; line-height: 1.6; }
.cheques-heading-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cheques-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid #cdd9e9; border-radius: 7px; padding: 9px 14px; background: #fff; color: #245786; font-family: inherit; font-size: 13px; font-weight: 500; text-decoration: none; line-height: 1.35; white-space: nowrap; }
.cheques-button:hover:not(:disabled) { background: #f1f6ff; border-color: #a3c0f1; }
.cheques-button.cheques-primary { color: #fff; background: #0757e9; border-color: #0757e9; }
.cheques-button.cheques-primary:hover:not(:disabled) { background: #0049ce; }
.cheques-button.cheques-small { font-size: 12px; min-height: 35px; padding: 8px 11px; }
.cheques-button.cheques-subtle { color: #667e9c; }
.cheques-icon-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 0; background: transparent; color: #667d9b; border-radius: 6px; padding: 7px; min-width: 32px; min-height: 32px; }
.cheques-icon-button:hover:not(:disabled) { background: #edf3fc; }
.cheques-alert, .cheques-notice { display: flex; gap: 9px; align-items: flex-start; border: 1px solid #ecd3ac; border-radius: 7px; background: #fff9ef; color: #865b20; padding: 12px 14px; margin-bottom: 15px; line-height: 1.6; font-size: 13px; }
.cheques-alert svg, .cheques-notice svg { flex-shrink: 0; margin-top: 2px; }
.cheques-alert > span { flex: 1; }
.cheques-alert .cheques-button { font-size: 11px; min-height: 32px; }
.cheques-notice { background: #effaf5; color: #26775c; border-color: #cbe6d9; }
.cheques-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 22px 20px; border: 1px solid #dce5f0; background: #fff; border-radius: 10px; margin-bottom: 18px; }
.cheques-summary > div { display: flex; align-items: center; gap: 14px; padding: 0 15px; min-width: 0; }
.cheques-summary > div + div { border-left: 1px solid #e4ebf3; }
.cheques-summary small { display: block; font-size: 12px; color: #607693; margin-bottom: 5px; }
.cheques-summary strong { display: block; font-size: 23px; line-height: 1.25; font-weight: 600; letter-spacing: -.6px; }
.cheques-metric-icon { width: 43px; height: 43px; border-radius: 50%; background: #edf4ff; color: #376bc4; display: grid; place-items: center; flex-shrink: 0; }
.cheques-metric-amber { background: #fff6e4; color: #bb8730; }
.cheques-metric-green { background: #eaf7f1; color: #1c8a6d; }
.cheques-review-note { display: flex; gap: 8px; align-items: flex-start; background: #fff8e8; color: #89651f; border-radius: 6px; padding: 11px 12px; font-size: 12px; line-height: 1.6; margin: 12px 0; }
.cheques-review-note svg { flex-shrink: 0; margin-top: 2px; }
.cheques-ledger-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(310px,1fr); gap: 17px; align-items: start; }
.cheques-lots { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cheques-panel { border: 1px solid #dce5f0; border-radius: 10px; background: #fff; overflow: hidden; }
.cheques-lot-heading { display: flex; align-items: flex-start; gap: 11px; padding: 16px 17px; background: #edf4ff; border-bottom: 1px solid #dce7f7; color: #254a79; font-size: 13px; line-height: 1.5; }
.cheques-lot-heading > svg { color: #1261e9; flex-shrink: 0; }
.cheques-lot-heading strong { font-weight: 600; }
.cheques-lot-heading small { display: block; color: #6c83a3; margin-top: 3px; font-size: 11px; }
.cheques-lot-heading span > span { margin-inline: 5px; color: #8298b8; }
.cheques-table-scroll { overflow-x: auto; padding: 10px 12px 0; }
.cheques-table { border-collapse: collapse; width: 100%; min-width: 0; font-size: 12px; }
.cheques-table th { background: #f5f7fb; border-block: 1px solid #e4eaf2; padding: 11px 8px; text-align: left; color: #647a97; font-size: 11px; font-weight: 500; white-space: nowrap; }
.cheques-table td { border-bottom: 1px solid #e5ebf3; padding: 14px 8px; vertical-align: middle; white-space: nowrap; }
.cheques-table td:last-child { padding: 3px; width: 28px; }
.cheques-row-selected td { background: #eaf2ff; }
.cheques-row-select { display: flex; align-items: center; gap: 11px; padding: 0; border: 0; background: transparent; text-align: left; color: #214568; }
.cheques-row-select strong { font-size: 13px; font-weight: 600; }
.cheques-row-select > span { min-width: 0; }
.cheques-row-origin { display: block; margin-top: 4px; color: #647a97; font-size: 11px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.cheques-row-amount { color: #27486d; font-weight: 500; }
.cheques-thumbnail { width: 77px; height: 46px; border: 1px solid #bfcfe1; border-radius: 3px; flex-shrink: 0; display: block; overflow: hidden; background: #f3f7fc; padding: 0; }
.cheques-thumbnail img { height: 100%; width: 100%; display: block; object-fit: contain; }
.cheques-row-due { display: block; font-size: 10px; color: #a76e22; margin-top: 5px; white-space: normal; }
.cheques-status { display: inline-block; padding: 5px 8px; border-radius: 5px; font-size: 11px; font-weight: 500; line-height: 1.25; white-space: nowrap; }
.cheques-status-received { color: #0758df; background: #dce9ff; }
.cheques-status-deposited { color: #336aa5; background: #e4effc; }
.cheques-status-cleared { color: #16744d; background: #e2f5eb; }
.cheques-status-rejected { color: #af4038; background: #ffebe8; }
.cheques-status-returned, .cheques-status-replaced { color: #6f8098; background: #edf1f6; }
.cheques-status-review { color: #8d671d; background: #fff0cb; }
.cheques-add-to-lot { border: 1px dashed #c5d5ed; border-radius: 7px; background: #fff; color: #0c5cdd; min-height: 43px; width: calc(100% - 28px); margin: 15px 14px 17px; padding: 12px; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.cheques-add-to-lot:hover:not(:disabled) { background: #f3f7ff; border-color: #82aaed; }
.cheques-filter { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #68809f; }
.cheques-filter select { border: 1px solid #cfdbeb; border-radius: 6px; background: #fff; padding: 8px; font: inherit; color: #365a85; }
.cheques-detail-heading { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: #fff; padding: 15px; text-align: left; color: #214a7d; }
.cheques-detail-heading strong { font-size: 12px; font-weight: 600; }
.cheques-detail-heading svg:last-child { margin-left: auto; }
.cheques-detail-body { padding: 2px 15px 17px; }
.cheques-scan-tabs { display: flex; background: #f6f9fd; border: 1px solid #dce6f2; border-radius: 6px; overflow: hidden; margin-bottom: 13px; }
.cheques-scan-tabs button { border: 1px solid transparent; background: transparent; color: #6c819d; padding: 9px; font-size: 12px; width: 50%; border-radius: 5px; }
.cheques-scan-tabs button[aria-selected=true] { border-color: #91b7fa; background: #f2f7ff; color: #0757df; }
.cheques-scan { position: relative; aspect-ratio: 2.2/1; width: 100%; padding: 0; background: #f4f7fb; border: 1px solid #b8cadd; border-radius: 5px; overflow: hidden; display: block; }
.cheques-scan img { display: block; height: 100%; width: 100%; object-fit: contain; }
.cheques-scan-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #7690b3; gap: 8px; height: 100%; width: 100%; font-size: 12px; }
.cheques-scan-expand { position: absolute; right: 6px; bottom: 6px; border-radius: 4px; padding: 5px; background: #fffffff0; display: grid; place-items: center; color: #456c9d; }
.cheques-fields { margin: 13px 0 0; font-size: 12px; }
.cheques-fields > div { display: grid; grid-template-columns: 47% 53%; padding: 8px 0; border-bottom: 1px solid #e7edf5; column-gap: 8px; }
.cheques-fields dt { color: #7186a2; }
.cheques-fields dd { margin: 0; color: #264a73; overflow-wrap: anywhere; padding-right: 8px; }
.cheques-verification { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 11px; margin-top: 17px; }
.cheques-verification > span { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.cheques-verified { color: #218669; }
.cheques-unverified { color: #b77d20; }
.cheques-verification .cheques-button { margin-left: auto; }
.cheques-tracking { border-top: 1px solid #e3ebf4; margin-top: 18px; padding-top: 15px; }
.cheques-tracking-title { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #536f91; }
.cheques-tracking-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.cheques-tracking-actions .cheques-button { font-size: 12px; padding-inline: 10px; }
.cheques-text-button { border: 0; padding: 7px 0; background: transparent; color: #2264c2; font-size: 12px; text-align: left; }
.cheques-text-button.cheques-danger { color: #ac4a3c; }
.cheques-cleared-note { display: flex; gap: 7px; align-items: flex-start; color: #228165; font-size: 12px; margin: 0; line-height: 1.6; }
.cheques-muted { color: #7186a2; font-size: 12px; line-height: 1.65; margin: 10px 0; }
.cheques-history { padding: 18px 20px; margin-top: 18px; }
.cheques-history h3 { display: flex; gap: 10px; align-items: center; margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.cheques-history ol { list-style: none; padding: 0; margin: 0; }
.cheques-history li { display: flex; align-items: flex-start; gap: 18px; padding: 8px 0; font-size: 12px; color: #607c9d; line-height: 1.5; }
.cheques-history time { flex-shrink: 0; width: 100px; color: #8295af; font-size: 11px; }
.cheques-history li small { display: block; color: #8a9ab0; font-size: 10px; margin-top: 3px; }
.cheques-explanation { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 1.6; color: #7a8ea9; margin: 15px 0 0; }
.cheques-explanation svg { flex-shrink: 0; margin-top: 1px; }
.cheques-empty { min-height: 290px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 35px 25px; color: #6f88a9; gap: 13px; }
.cheques-empty h2, .cheques-empty h3 { font-size: 18px; font-weight: 500; color: #35587f; margin: 0; }
.cheques-empty p { max-width: 390px; font-size: 13px; line-height: 1.7; margin: 0; }
.cheques-detail-empty { min-height: 290px; }
.cheques-loading { padding: 70px 20px; display: flex; justify-content: center; gap: 12px; color: #6c86a8; }
.cheques-eyebrow { display: block; text-transform: uppercase; font-size: 10px; letter-spacing: 1.1px; font-weight: 600; color: #6886ae; margin-bottom: 8px; }
.cheques-registry { padding: 20px 25px; }
.cheques-registry-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.cheques-registry-toolbar > span { display: flex; gap: 7px; align-items: center; font-size: 12px; color: #7085a1; }
.cheques-search { display: flex; align-items: center; gap: 10px; border: 1px solid #d5e0ef; background: #fff; border-radius: 8px; padding: 0 12px; max-width: 440px; width: 100%; height: 43px; color: #8095af; }
.cheques-search input { font: inherit; font-size: 13px; border: 0; outline: none; min-width: 0; width: 100%; color: #345a89; background: transparent; }
.cheques-registry-row { width: 100%; display: grid; grid-template-columns: 46px minmax(0,1fr) 125px 125px 20px; align-items: center; gap: 17px; padding: 21px; border: 0; background: #fff; text-align: left; color: #254a74; }
.cheques-registry-row + .cheques-registry-row { border-top: 1px solid #e5edf7; }
.cheques-registry-row:hover:not(:disabled) { background: #f5f9ff; }
.cheques-registry-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; color: #3979cc; background: #edf4ff; }
.cheques-registry-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; border: 1px solid #ccdbee; border-radius: 5px; background: #fff; }
.cheques-registry-person strong { display: block; font-weight: 600; font-size: 15px; }
.cheques-registry-person > small { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; font-size: 11px; color: #8094ae; margin-top: 6px; }
.cheques-overdue-tag { display: inline-block; margin-top: 8px; border-radius: 4px; padding: 4px 7px; background: #fff1df; color: #a27531; font-size: 10px; }
.cheques-registry-money { text-align: right; font-size: 15px; }
.cheques-registry-money small { display: block; font-size: 10px; color: #8296b0; margin-bottom: 5px; }
.cheques-registry-money strong { font-weight: 500; }
.cheques-registry-credit strong { color: #238469; }
.cheques-list-loading { padding: 14px 20px; margin: 0; color: #7c91ae; font-size: 12px; background: #f7faff; }
.cheques-pagination { display: flex; align-items: center; justify-content: center; gap: 15px; font-size: 12px; color: #6c84a3; margin-top: 18px; }
.cheques-dialog-shade { position: fixed; inset: 0; z-index: 1500; background: #16325265; backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 22px; color: #1d426d; }
.cheques-dialog { width: min(660px,100%); max-height: calc(100dvh - 44px); background: #fff; border: 1px solid #d4e0f0; border-radius: 12px; box-shadow: 0 20px 65px #102b5030; overflow: auto; font-family: inherit; }
.cheques-dialog-wide { width: min(980px,100%); }
.cheques-dialog > header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 23px; border-bottom: 1px solid #e3eaf4; }
.cheques-dialog h2 { font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -.3px; margin: 0; color: #1e426e; }
.cheques-dialog-body { padding: 22px 23px; }
.cheques-dialog fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.cheques-dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 23px; border-top: 1px solid #e3eaf4; background: #fafcff; }
.cheques-dialog-footer > span { font-size: 12px; color: #8194ae; margin-right: auto; }
.cheques-form-intro { margin: 0 0 20px; font-size: 13px; color: #7389a5; line-height: 1.7; }
.cheques-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 20px; }
.cheques-form-grid.cheques-common { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 23px; }
.cheques-form-grid.cheques-row-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cheques-field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: #637e9f; min-width: 0; }
.cheques-field input, .cheques-field select, .cheques-field textarea { border: 1px solid #cbd9ea; border-radius: 6px; font: inherit; font-size: 14px; color: #244b79; background: #fff; min-height: 42px; padding: 9px 11px; width: 100%; min-width: 0; }
.cheques-field input:disabled, .cheques-field select:disabled { background: #f3f6fb; color: #91a0b6; }
.cheques-field textarea { min-height: 84px; resize: vertical; }
.cheques-field input::placeholder { color: #9aaac0; }
.cheques-new-row { padding: 20px 0 24px; border-top: 1px solid #e0e8f3; }
.cheques-new-row > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 17px; }
.cheques-new-row h3 { font-size: 16px; font-weight: 600; margin: 0; color: #315780; }
.cheques-uploads { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 19px; }
.cheques-upload { position: relative; border: 1px dashed #bed1ec; background: #f6faff; border-radius: 7px; padding: 18px 12px; text-align: center; display: flex; align-items: center; flex-direction: column; gap: 7px; color: #3574be; overflow: hidden; }
.cheques-upload strong { font-size: 12px; font-weight: 500; }
.cheques-upload span { font-size: 11px; color: #8297b3; overflow-wrap: anywhere; max-width: 100%; }
.cheques-upload input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.cheques-upload:focus-within { outline: 3px solid #91b6ff; outline-offset: 3px; }
.cheques-form-error { color: #a23b32; background: #fff0ec; border: 1px solid #f0c9c2; border-radius: 6px; padding: 11px 13px; font-size: 13px; line-height: 1.6; }
.cheques-progress { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #517cae; margin: 13px 0 0; }
.cheques-verification-scan { max-width: 420px; margin: 0 auto 23px; }
.cheques-replace-scans { margin-top: 20px; font-size: 12px; color: #597da9; }
.cheques-replace-scans summary { cursor: pointer; padding: 8px 0; }
.cheques-transition-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px; border-radius: 7px; background: #eef5ff; margin-bottom: 20px; font-size: 13px; color: #3d6697; }
.cheques-transition-summary strong { font-size: 23px; font-weight: 600; color: #24548e; }
.cheques-dialog fieldset > .cheques-field + .cheques-field, .cheques-payment-choice { margin-top: 20px; }
.cheques-payment-choice + .cheques-field { margin-top: 20px; }
.cheques-payment-choice > .cheques-field { margin-bottom: 15px; }
.cheques-confirm { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #496e99; line-height: 1.65; margin-top: 22px; }
.cheques-confirm input { width: 17px; height: 17px; flex-shrink: 0; margin: 3px 0 0; accent-color: #0757e9; }
.cheques-enlarged-scan { padding: 22px; background: #f5f8fc; min-height: 150px; }
.cheques-enlarged-scan img { display: block; max-width: 100%; height: auto; margin: auto; }
.cheques-media-preview { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; }
.cheques-media-preview canvas { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.cheques-pdf-viewer { min-width: 0; width: 100%; background: #f2f5fa; border: 1px solid #d5deeb; border-radius: 8px; overflow: hidden; }
.cheques-pdf-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 10px; background: #fff; border-bottom: 1px solid #d5deeb; }
.cheques-pdf-toolbar>span { min-width: 90px; text-align: center; font-size: 13px; }
.cheques-pdf-status { padding: 12px; text-align: center; color: #52657c; }
.cheques-pdf-paper { min-height: 150px; max-height: 65dvh; padding: 16px; overflow: auto; text-align: center; }
.cheques-pdf-paper canvas { display: block; margin: 0 auto; background: white; box-shadow: 0 2px 8px #21354720; }
.cheques-upload>.cheques-upload-preview { display: block; height: 110px; width: 100%; margin-bottom: 5px; overflow: hidden; border-radius: 7px; }
.cheques-notification-root { position: relative; display: flex; align-items: center; }
.cheques-bell { position: relative; overflow: visible !important; }
.cheques-notification-badge { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 12px; background: #ce4646; color: #fff; font-size: 9px; font-weight: 600; line-height: 1; }
.cheques-notification-error-dot { position: absolute; bottom: 0; left: 0; width: 8px; height: 8px; border: 1px solid #fff; background: #c99029; border-radius: 50%; }
.cheques-notification-panel { position: absolute; top: calc(100% + 13px); right: 0; width: 425px; max-width: calc(100vw - 30px); border: 1px solid #dce5f1; border-radius: 11px; background: #fff; box-shadow: 0 15px 50px #14376328; z-index: 100; color: #244a76; font-size: 12px; overflow: hidden; }
.cheques-notification-header { display: flex; align-items: center; gap: 11px; padding: 17px 16px; }
.cheques-notification-header > span { width: 38px; height: 38px; border-radius: 10px; background: #edf4ff; color: #1761d7; display: grid; place-items: center; flex-shrink: 0; }
.cheques-notification-header h2 { font-size: 17px; letter-spacing: -.3px; font-weight: 600; margin: 0 0 4px; color: #24466e; }
.cheques-notification-header p { margin: 0; color: #8093ad; font-size: 10px; }
.cheques-notification-header > button { margin-left: auto; }
.cheques-notification-date { display: flex; align-items: center; justify-content: space-between; padding: 5px 14px 5px 17px; border-block: 1px solid #e6edf5; background: #f6f9fd; color: #6f88a8; font-size: 10px; }
.cheques-notification-date .cheques-icon-button { min-width: 28px; min-height: 28px; }
.cheques-notification-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; border-bottom: 1px solid #e8eef6; }
.cheques-notification-tabs { display: flex; gap: 3px; border-radius: 7px; padding: 3px; background: #f2f5f9; }
.cheques-notification-tabs button { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; border-radius: 5px; color: #8193ad; font-size: 11px; padding: 7px 8px; }
.cheques-notification-tabs button[aria-pressed=true] { background: #fff; color: #1761d7; box-shadow: 0 1px 4px #193f7710; }
.cheques-notification-tabs span { background: #e7edf6; padding: 1px 4px; border-radius: 4px; font-size: 10px; }
.cheques-read-all { display: flex; gap: 5px; align-items: center; padding: 6px 0; border: 0; background: transparent; color: #4b7fc3; font-size: 10px; white-space: nowrap; }
.cheques-notification-list { max-height: min(450px, 52dvh); overflow-y: auto; overscroll-behavior: contain; }
.cheques-notification-list ul { padding: 0; margin: 0; list-style: none; }
.cheques-notification-list li { padding: 15px 16px 11px; border-bottom: 1px solid #e7eef8; }
.cheques-notification-list li:last-child { border: 0; }
.cheques-notification-unread { background: #f3f7ff; }
.cheques-notification-open { display: flex; width: 100%; align-items: flex-start; gap: 11px; padding: 0; border: 0; background: transparent; text-align: left; color: #315780; }
.cheques-notification-thumbnail { display: grid; place-items: center; height: 41px; width: 64px; border: 1px solid #c7d7ec; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: #fff; color: #7297c4; margin-top: 3px; }
.cheques-notification-thumbnail img { display: block; object-fit: contain; width: 100%; height: 100%; }
.cheques-notification-copy { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; line-height: 1.45; }
.cheques-notification-copy strong { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.cheques-unread-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #0e62e6; flex-shrink: 0; }
.cheques-notification-copy > span { font-size: 10px; color: #6f87a7; }
.cheques-notification-copy b { font-size: 10px; font-weight: 500; color: #ab7b2a; }
.cheques-notification-copy b.cheques-reminder-overdue { color: #b66b5a; }
.cheques-notification-copy small { font-size: 9px; color: #8297b3; }
.cheques-notification-open > svg { color: #9aadc5; margin-top: 6px; }
.cheques-mark-read { display: flex; align-items: center; gap: 5px; margin: 6px 0 0 75px; padding: 5px 0; border: 0; background: transparent; color: #6a8dbd; font-size: 10px; }
.cheques-read-all:hover:not(:disabled), .cheques-mark-read:hover:not(:disabled) { color: #0757d8; text-decoration: underline; }
.cheques-notification-empty { padding: 28px 26px; text-align: center; color: #79a895; }
.cheques-notification-empty h3 { font-size: 14px; font-weight: 500; color: #4b6d93; margin: 15px 0 7px; }
.cheques-notification-empty p { font-size: 11px; line-height: 1.7; color: #8095b0; max-width: 270px; margin: auto; }
.cheques-notification-error { display: flex; gap: 7px; align-items: flex-start; background: #fff8e9; color: #987336; padding: 10px 14px; font-size: 11px; line-height: 1.6; }
.cheques-notification-error > svg { flex-shrink: 0; }
.cheques-notification-loading { padding: 30px 20px; color: #899fba; text-align: center; }
.cheques-notification-footer { padding: 12px 16px; border-top: 1px solid #e4edf7; background: #fcfdff; }
.cheques-notification-footer p { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #8599b3; margin: 0 0 10px; }
.cheques-notification-footer a { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #3977c9; text-decoration: none; }
.cheques-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* The legacy account zone colors and hides every nested span on small screens. */
.user-zone .cheques-notification-panel span { display: inline; color: inherit; white-space: normal; }
.user-zone .cheques-notification-panel .cheques-notification-header > span { display: grid; color: #1761d7; }
.user-zone .cheques-notification-panel .cheques-notification-thumbnail { display: grid; color: #7297c4; }
.user-zone .cheques-notification-panel .cheques-notification-copy { display: flex; }
.user-zone .cheques-notification-panel .cheques-notification-copy > span { color: #6f87a7; }
.user-zone .cheques-notification-panel .cheques-unread-dot { display: inline-block; }
.user-zone .cheques-notification-root .cheques-notification-badge { display: grid; color: #fff; white-space: nowrap; }
.user-zone .cheques-notification-root .cheques-notification-error-dot { display: block; }
.user-zone .cheques-notification-root > .cheques-sr-only { display: block; color: inherit; white-space: nowrap; }
@media(max-width:1250px) {
  .cheques-summary { padding: 19px 12px; }
  .cheques-summary > div { gap: 9px; padding-inline: 10px; }
  .cheques-summary strong { font-size: 21px; }
  .cheques-summary small { font-size: 11px; }
  .cheques-metric-icon { width: 36px; height: 36px; }
  .cheques-ledger-layout { grid-template-columns: minmax(0,1.5fr) minmax(290px,1fr); gap: 14px; }
  .cheques-table-scroll { padding-inline: 7px; }
  .cheques-table td { font-size: 11px; padding-inline: 6px; }
  .cheques-thumbnail { width: 60px; height: 39px; }
  .cheques-row-select { gap: 8px; }
  .cheques-row-select strong { font-size: 12px; }
  .cheques-table th { font-size: 10px; padding-inline: 6px; }
  .cheques-table .cheques-status { font-size: 10px; padding-inline: 6px; }
  .cheques-registry-row { grid-template-columns: 44px minmax(0,1fr) 105px 105px 17px; gap: 12px; padding-inline: 17px; }
}
@media(max-width:1000px) {
  .cheques-metric-icon { display: none; }
  .cheques-ledger-layout { grid-template-columns: 1fr; }
  .cheques-detail-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; align-items: start; }
  .cheques-scan-tabs, .cheques-detail-body > .cheques-scan { grid-column: 1; }
  .cheques-fields { grid-column: 2; grid-row: 1/4; margin: 0; }
  .cheques-verification, .cheques-tracking { grid-column: 1/-1; }
  .cheques-thumbnail { width: 90px; height: 47px; }
  .cheques-row-select strong { font-size: 14px; }
  .cheques-table td { font-size: 13px; }
  .cheques-table th { font-size: 12px; }
  .cheques-table .cheques-status { font-size: 11px; }
  .cheques-table td:last-child { width: 35px; }
  .cheques-row-select { gap: 15px; }
}
@media(max-width:760px) {
  .cheques-page-heading { align-items: flex-start; gap: 15px; }
  .cheques-page-heading h1 { font-size: 28px; }
  .cheques-page-heading h2 { font-size: 23px; }
  .cheques-page-heading p { font-size: 12px; }
  .cheques-heading-actions { flex-wrap: wrap; justify-content: flex-end; }
  .cheques-heading-actions .cheques-button { font-size: 12px; padding-inline: 10px; }
  .cheques-form-grid.cheques-common, .cheques-form-grid.cheques-row-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cheques-registry { padding: 18px 16px; }
  .cheques-registry-row { grid-template-columns: 38px minmax(0,1fr) 105px 18px; gap: 11px; }
  .cheques-registry-credit { display: none; }
  .cheques-registry-avatar { width: 38px; height: 38px; }
  .cheques-registry-person strong { font-size: 14px; }
  .cheques-registry-money { font-size: 14px; }
  .cheques-registry-toolbar { flex-wrap: wrap; gap: 10px; }
  .cheques-search { max-width: 100%; }
}
@media(max-width:560px) {
  .cheques-page-heading { flex-direction: column; align-items: stretch; gap: 13px; }
  .cheques-heading-actions { justify-content: flex-start; }
  .cheques-page-heading h2 { font-size: 22px; }
  .cheques-summary { grid-template-columns: 1fr; padding: 0 14px; margin-bottom: 16px; }
  .cheques-summary > div { padding: 12px 0; }
  .cheques-summary > div + div { border-left: 0; border-top: 1px solid #e6edf6; }
  .cheques-summary > div > span:last-child { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
  .cheques-summary small { margin: 0; font-size: 11px; }
  .cheques-summary strong { font-size: 19px; white-space: nowrap; }
  .cheques-detail-body { display: block; padding-inline: 12px; }
  .cheques-fields { margin-top: 13px; }
  .cheques-lot-heading { padding: 13px 11px; font-size: 11px; gap: 8px; }
  .cheques-lot-heading > svg { width: 18px; }
  .cheques-table-scroll { padding: 7px 0 0; }
  .cheques-table { table-layout: fixed; }
  .cheques-table th, .cheques-table td { white-space: normal; overflow-wrap: anywhere; padding-inline: 5px; }
  .cheques-table th { font-size: 10px; }
  .cheques-table td { font-size: 11px; padding-block: 12px; }
  .cheques-table th:first-child { width: 32%; padding-left: 10px; }
  .cheques-table td:first-child { padding-left: 10px; }
  .cheques-table th:nth-child(2) { width: 21%; }
  .cheques-table th:nth-child(3) { width: 25%; }
  .cheques-table th:nth-child(4) { width: 22%; }
  .cheques-table th:last-child, .cheques-table td:last-child { display: none; }
  .cheques-row-select { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cheques-row-select strong { font-size: 11px; }
  .cheques-thumbnail { width: 62px; height: 35px; }
  .cheques-table .cheques-status { font-size: 9px; white-space: normal; padding: 5px; }
  .cheques-row-due { font-size: 9px; }
  .cheques-add-to-lot { font-size: 12px; }
  .cheques-history { padding: 16px 12px; }
  .cheques-history li { font-size: 11px; gap: 10px; }
  .cheques-history time { font-size: 10px; width: 85px; }
  .cheques-alert { flex-wrap: wrap; font-size: 12px; }
  .cheques-alert .cheques-button { margin-left: 26px; }
  .cheques-registry-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 18px; gap: 13px; padding: 17px 14px; }
  .cheques-registry-avatar { display: none; }
  .cheques-registry-person { grid-column: 1/3; }
  .cheques-registry-person strong { font-size: 14px; }
  .cheques-registry-person small { font-size: 10px; line-height: 1.5; }
  .cheques-registry-money { grid-row: 2; text-align: left; font-size: 14px; }
  .cheques-registry-credit { display: block; }
  .cheques-registry-row > svg:last-child { grid-column: 3; grid-row: 1/3; }
  .cheques-registry-credit small { font-size: 10px; }
  .cheques-dialog-shade { padding: 9px; }
  .cheques-dialog { max-height: calc(100dvh - 18px); border-radius: 10px; }
  .cheques-dialog > header { padding: 16px; }
  .cheques-dialog h2 { font-size: 17px; }
  .cheques-dialog-body { padding: 18px 16px; }
  .cheques-dialog-footer { padding: 14px 16px; flex-wrap: wrap; }
  .cheques-dialog-footer .cheques-button { font-size: 12px; }
  .cheques-dialog-footer > span { width: 100%; }
  .cheques-form-grid, .cheques-form-grid.cheques-common, .cheques-form-grid.cheques-row-grid { grid-template-columns: 1fr; }
  .cheques-field input, .cheques-field select, .cheques-field textarea { font-size: 16px; }
  .cheques-upload { padding: 16px 8px; }
  .cheques-upload strong { font-size: 11px; }
  .cheques-upload span { font-size: 10px; }
  .cheques-notification-panel { position: fixed; top: 65px; left: 9px; right: 9px; width: auto; max-width: none; max-height: calc(100dvh - 76px); overflow-y: auto; }
  .cheques-notification-header { padding-inline: 13px; }
  .cheques-notification-header p { font-size: 9px; }
  .cheques-notification-tools { padding-inline: 12px; gap: 5px; }
  .cheques-notification-tabs button { min-height: 36px; }
  .cheques-read-all { min-height: 36px; }
  .cheques-notification-list li { padding-inline: 13px; }
  .cheques-notification-thumbnail { width: 56px; height: 38px; }
  .cheques-notification-open { gap: 10px; }
  .cheques-notification-copy strong { font-size: 12px; }
  .cheques-mark-read { margin-left: 66px; min-height: 35px; }
  .cheques-notification-header .cheques-icon-button { min-height: 36px; min-width: 36px; }
}
@media(prefers-reduced-motion:reduce) { .cheques-workspace *, .cheques-dialog *, .cheques-notification-panel * { scroll-behavior: auto !important; } }

.cheques-capture-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:16px 0 10px}.cheques-capture-row>span{font-size:12px;color:#657289}.cheques-upload>img.cheques-upload-preview{display:block;max-height:110px;width:100%;object-fit:contain;border-radius:7px;margin-bottom:5px}
/* Saved consultation summaries inside the patient's Documents section.
   The table itself uses the section's existing classes. */
.patient-documents-summary-hint { margin: 8px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.managed-practitioner-directory{margin:20px 0;padding:20px;border:1px solid #dbe7ed;border-radius:14px;background:#fff;color:#203943}.managed-practitioner-heading{display:flex;align-items:flex-start;gap:12px}.managed-practitioner-symbol{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:#e6f3f3;color:#126d75}.managed-practitioner-heading h2{font-size:18px;margin:0 0 5px}.managed-practitioner-heading p,.managed-practitioner-directory small{color:#617784}.managed-practitioner-heading p{margin:0;line-height:1.55;max-width:850px}.managed-practitioner-missing{margin-top:18px;padding:14px;border:1px solid #d2e9eb;border-radius:10px;background:#f4fbfb}.managed-practitioner-missing h3{margin:0 0 8px;font-size:14px;color:#256774}.managed-practitioner-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid #edf2f5}.managed-practitioner-row:last-child{border-bottom:0}.managed-practitioner-row>div{min-width:0}.managed-practitioner-row strong,.managed-practitioner-row small{display:block;overflow-wrap:anywhere}.managed-practitioner-row small{margin-top:4px;font-size:12px;line-height:1.5}.managed-practitioner-profiles{margin-top:12px}.managed-practitioner-link,.managed-practitioner-archive{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 12px;border-radius:8px;font:inherit;font-size:13px;cursor:pointer;white-space:normal;flex-shrink:0}.managed-practitioner-link{color:#08666c;background:#e7f5f3;border:1px solid #c7e5e1}.managed-practitioner-archive{color:#8d4a31;background:#fff8f3;border:1px solid #ecd9ce}.managed-practitioner-link:disabled,.managed-practitioner-archive:disabled{opacity:.55;cursor:not-allowed}.managed-practitioner-directory button:focus-visible,.managed-practitioner-dialog button:focus-visible,.managed-practitioner-dialog textarea:focus-visible{outline:3px solid #268e99;outline-offset:3px}.managed-practitioner-protected,.managed-practitioner-state{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#56757b;padding:7px 10px;background:#f1f6f7;border-radius:8px}.managed-practitioner-notice{padding:11px 13px;border-radius:9px;background:#e9f7ef;color:#236146}.managed-practitioner-dialog{padding:0;border:1px solid #d9e6ed;border-radius:16px;max-width:560px;width:calc(100% - 28px);max-height:calc(100dvh - 40px);color:#203943;box-shadow:0 24px 90px #0b263647}.managed-practitioner-dialog::backdrop{background:#102a3d85}.managed-practitioner-dialog-body{padding:25px;overflow:auto}.managed-practitioner-dialog h2{margin:0 0 18px;font-size:22px}.managed-practitioner-exact-identity{padding:14px;border-radius:11px;background:#f2f7f9}.managed-practitioner-exact-identity strong,.managed-practitioner-exact-identity small{display:block;overflow-wrap:anywhere}.managed-practitioner-exact-identity strong{font-size:17px}.managed-practitioner-exact-identity small{margin-top:7px;font-size:12px;color:#587381}.managed-practitioner-dialog p{line-height:1.65;margin:18px 0}.managed-practitioner-dialog label{display:block;font-size:13px;font-weight:600}.managed-practitioner-dialog textarea{display:block;box-sizing:border-box;width:100%;padding:10px;margin-top:7px;border:1px solid #cddde5;border-radius:9px;font:inherit;resize:vertical}.managed-practitioner-dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:22px}.managed-practitioner-dialog-actions>button:first-child{border:1px solid #d7e2e9;background:#fff;border-radius:8px;padding:10px 13px;font:inherit;font-size:13px;cursor:pointer}@media(max-width:640px){.managed-practitioner-directory{padding:15px}.managed-practitioner-row{align-items:flex-start;flex-wrap:wrap;gap:9px}.managed-practitioner-row>div{flex:1 0 100%}.managed-practitioner-dialog-body{padding:19px}.managed-practitioner-dialog-actions button{flex:1 1 auto}}
.workstation-access{min-height:100dvh;display:grid;place-items:center;padding:30px;background:radial-gradient(ellipse at 15% 5%,#e9f0ff 0,transparent 50%),#f6f8fc;color:#17223b;font-family:inherit}.workstation-access-card{width:min(100%,450px);background:#fff;border:1px solid #e3e9f2;border-radius:25px;padding:32px 38px 25px;text-align:center;box-shadow:0 22px 70px #24447a12}.workstation-brand{display:grid;justify-items:center;gap:8px;margin-bottom:27px}.workstation-brand svg{max-width:135px;max-height:33px}.workstation-brand>span{font-size:9px;font-weight:700;letter-spacing:1.8px;color:#8a96ad}.workstation-lock{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:17px;background:#eef4ff;color:#346be4;margin-bottom:17px}.workstation-eyebrow{font-size:10px!important;letter-spacing:1.5px;font-weight:750;color:#6c83aa;margin:0 0 9px}.workstation-access-card h1{font-size:25px;line-height:1.2;letter-spacing:-.8px;margin:0 0 11px}.workstation-intro{font-size:13px;color:#768198;line-height:1.6;margin:0 0 25px}.workstation-code-label{font-size:12px;font-weight:650;display:block;text-align:left;margin-bottom:8px}.workstation-pin-wrap{position:relative}.workstation-pin-wrap input{box-sizing:border-box;width:100%;height:58px;border:1px solid #d9e1ef;border-radius:12px;background:#f8faff;font-size:28px;letter-spacing:13px;padding:8px 50px 8px 20px;color:#183361;outline:none}.workstation-pin-wrap input:focus{border-color:#4f7dea;box-shadow:0 0 0 3px #eaf0ff}.workstation-pin-wrap input::placeholder{color:#b4c1d6}.workstation-pin-wrap>span{position:absolute;right:16px;top:20px;font-size:11px;letter-spacing:0;color:#8d9ab0}.workstation-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:17px}.workstation-keypad button{height:51px;border:1px solid #e6ebf3;border-radius:10px;background:#fff;color:#263958;font-size:20px;cursor:pointer;font-weight:550;transition:background .15s,border-color .15s}.workstation-keypad button:hover:not(:disabled){background:#f0f5ff;border-color:#bdcef4}.workstation-keypad button:focus-visible{outline:3px solid #b8ccff;outline-offset:2px}.workstation-keypad .is-secondary{font-size:11px;color:#8090a8;background:#f8f9fc;display:grid;place-items:center}.workstation-keypad button:disabled{opacity:.5;cursor:default}.workstation-feedback{min-height:43px;display:grid;align-items:center}.workstation-feedback p{font-size:11px;color:#8591a5;margin:10px 0}.workstation-feedback [role=alert]{color:#ba3b50}.workstation-security{border-top:1px solid #edf0f6;padding-top:16px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:10px;color:#8a98ae}.workstation-text-button{border:0;background:transparent;color:#6c7e9c;text-decoration:underline;font:inherit;font-size:11px;padding:15px 6px 0;cursor:pointer}.workstation-pending{color:#708098;text-align:center;padding:35px}.workstation-pending h1{font-size:23px;color:#233852}.workstation-primary{background:#326ce5;color:white;border:0;padding:12px 20px;border-radius:10px;font:inherit;cursor:pointer;font-size:13px}.workstation-toolbar{position:fixed;right:20px;bottom:18px;z-index:90;display:flex;gap:6px;padding:5px;background:#ffffffed;border:1px solid #dee6f2;box-shadow:0 5px 20px #2536541a;border-radius:12px}.workstation-toolbar button{display:flex;align-items:center;gap:6px;background:none;border:0;padding:8px;color:#62738e;font-size:11px;cursor:pointer}.workstation-toolbar button:hover{background:#f0f4fc;border-radius:7px}@media(max-width:520px){.workstation-access{padding:18px}.workstation-access-card{border-radius:20px;padding:26px 24px 20px}.workstation-access-card h1{font-size:23px}.workstation-brand{margin-bottom:22px}.workstation-toolbar{bottom:10px;right:10px}}
.pan-root{--pan-ink:#183b50;--pan-muted:#607584;--pan-line:#dbe4eb;--pan-blue:#075ee5;--pan-soft:#f4f7fa;color:var(--pan-ink);font-family:inherit;font-size:14px;line-height:1.55;min-width:0}
.pan-root *{box-sizing:border-box}.pan-root button,.pan-root input,.pan-root select,.pan-root textarea{font:inherit}.pan-root button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;border:1px solid var(--pan-line);border-radius:7px;padding:7px 12px;background:#fff;color:var(--pan-ink);cursor:pointer}.pan-root button:hover:not(:disabled){background:#edf4fb;border-color:#a9bfce}.pan-root button:disabled{opacity:.5;cursor:default}.pan-root :is(button,input,select,textarea):focus-visible{outline:3px solid #90b9ed;outline-offset:2px}.pan-root .pan-primary{background:var(--pan-blue);border-color:var(--pan-blue);color:#fff;font-weight:650}.pan-root .pan-primary:hover:not(:disabled){background:#034dbd;border-color:#034dbd}.pan-root .pan-icon{padding:7px;width:34px;height:34px;min-height:34px}.pan-root .is-danger{color:#b6373c}.pan-root .pan-text-action{border-color:transparent;background:transparent;color:#1d5e9d;padding-inline:0;justify-content:flex-start}.pan-root input,.pan-root textarea,.pan-root select{width:100%;min-width:0;border:1px solid #cad8e2;border-radius:7px;padding:10px 11px;color:var(--pan-ink);background:#fff;box-shadow:none}.pan-root textarea{resize:vertical;line-height:1.65}.pan-root label{display:grid;gap:6px;font-size:12px;font-weight:650}.pan-root .pan-muted{color:var(--pan-muted);font-weight:400}.pan-root p{overflow-wrap:anywhere}.pan-error{color:#a32e35;margin:5px 0}.pan-success{color:#23654f;display:flex;align-items:center;gap:7px;margin:5px 0}.pan-loading{display:flex;align-items:center;gap:8px;padding:20px 0}
.pan-backdrop{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:28px;background:#13334880}.pan-dialog{background:#fff;border-radius:14px;width:min(560px,100%);max-height:calc(100dvh - 56px);overflow:hidden;display:flex;flex-direction:column;box-shadow:0 24px 90px #082c3b35}.pan-dialog.is-wide{width:min(1480px,100%)}.pan-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:21px 26px 17px;border-bottom:1px solid var(--pan-line);flex:none}.pan-dialog-heading h2{font-size:23px;letter-spacing:-.4px;line-height:1.3;margin:0;color:var(--pan-ink)}.pan-dialog-heading p{font-size:13px;color:var(--pan-muted);margin:5px 0 0}.pan-dialog-heading .pan-icon{border:0;color:var(--pan-muted)}
.pan-composer-meta{display:flex;flex:none;align-items:center;justify-content:space-between;gap:20px;padding:14px 26px;background:#fafcfd;border-bottom:1px solid var(--pan-line)}.pan-composer-meta label{width:220px}.pan-composer-meta input{height:40px}.pan-document-identity{display:flex;align-items:center;gap:12px;color:#3e6177}.pan-document-identity span{display:grid;font-size:11px}.pan-document-identity strong{font-size:13px;font-weight:600}.pan-composer-grid{display:grid;grid-template-columns:minmax(0,1.07fr) minmax(0,1fr);min-height:0;flex:1;grid-auto-rows:minmax(0,1fr);overflow:hidden}.pan-edit-side{padding:22px 26px;overflow-y:auto;min-width:0;min-height:0;max-height:65dvh}.pan-preview-side{padding:20px;background:#eaf0f4;border-left:1px solid var(--pan-line);overflow:auto;min-width:0;min-height:0;max-height:65dvh}.pan-section-heading h3,.pan-observations-heading h3{font-size:15px;line-height:1.4;margin:0;font-weight:700}.pan-section-heading p{margin:5px 0 14px;color:var(--pan-muted);font-size:12px}.pan-phrase-controls{display:grid;grid-template-columns:minmax(0,1fr) 165px;gap:8px}.pan-root .pan-search{position:relative;display:flex;align-items:center}.pan-search>svg{position:absolute;left:11px;color:#6b8799}.pan-root .pan-search input{padding-left:38px;min-height:43px;font-weight:400}.pan-category select{height:43px;font-size:12px;padding-inline:8px}.pan-phrase-results{border:1px solid #b8cbda;border-radius:8px;margin-top:8px;overflow:hidden;background:#fff;box-shadow:0 4px 14px #17384b10}.pan-phrase-results-heading{display:flex;justify-content:space-between;align-items:center;padding:4px 11px;background:#f6f9fb;font-size:11px;color:var(--pan-muted)}.pan-root .pan-phrase-results-heading button{border:0;background:none;padding:3px 0;min-height:28px;font-size:11px}.pan-phrase-results ul{list-style:none;padding:0;margin:0;max-height:300px;overflow:auto}.pan-root .pan-phrase-results li>button{display:flex;justify-content:space-between;align-items:center;text-align:left;width:100%;border:0;border-radius:0;min-height:65px;padding:11px 13px;gap:10px}.pan-phrase-results li+li{border-top:1px solid #eef2f5}.pan-phrase-results li.is-active>button{background:#edf4ff;box-shadow:inset 3px 0 0 var(--pan-blue)}.pan-phrase-results li>button>span{display:grid;gap:4px;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.55}.pan-phrase-results small{color:#4c6c83;font-size:10px}.pan-phrase-results svg{flex:none}.pan-no-results,.pan-phrase-results>p{padding:12px;font-size:12px;color:var(--pan-muted)}.pan-library>.pan-text-action{font-size:12px;margin-top:5px}.pan-observations-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:23px 0 12px}.pan-observations-heading>span{font-size:11px;color:var(--pan-muted);white-space:nowrap}.pan-points{list-style:none;padding:0;margin:0;display:grid;gap:12px}.pan-point{border:1px solid var(--pan-line);border-radius:10px;padding:12px 14px;background:#fff}.pan-point.is-active{border-color:#a5bbcf;box-shadow:0 2px 6px #17384b09}.pan-point-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.pan-root .pan-point-select{padding:0;min-height:32px;font-weight:700;font-size:12px;border:0;background:none;justify-content:flex-start}.pan-point-select>span{display:grid;place-items:center;background:#e9f0f7;width:25px;height:25px;border-radius:50%;color:#2c5875;font-size:11px}.pan-point-tools{display:flex;gap:3px}.pan-root .pan-point-tools button{width:29px;height:29px;min-height:29px;padding:5px;border-color:transparent}.pan-point-text{font-size:11px!important;color:var(--pan-muted)}.pan-point-text textarea{font-size:13px;font-weight:400;min-height:92px}.pan-token-help{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:10px;color:#61778a;padding-top:4px}.pan-root .pan-token-help button{background:transparent;border:0;font-size:10px;min-height:25px;padding:2px 0;color:#075ba3}.pan-token-help p{flex-basis:100%;margin:0;color:#a32e35}.pan-point-context{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:11px}.pan-point-context label{max-width:220px;flex:1;font-size:10px}.pan-point-context select{font-size:11px;min-height:35px;padding:6px 8px}.pan-point-context>.pan-text-action{font-size:10px;min-height:32px}.pan-point-literal{padding:8px 10px;background:#f1f6fa;border-radius:5px;font-size:12px;line-height:1.6;margin:10px 0 0}.pan-empty-draft{text-align:center;padding:35px 20px;color:var(--pan-muted);border:1px dashed #cad8e2;border-radius:10px;background:#fcfdfe}.pan-empty-draft svg{color:#7998ad}.pan-empty-draft h4{font-size:15px;color:#35566d;margin:12px 0 6px}.pan-empty-draft p{font-size:12px;max-width:350px;margin:0 auto}
.pan-teeth{border:0;border-top:1px solid var(--pan-line);padding:10px 0 0;margin:12px 0 0;min-width:0}.pan-teeth legend{font-size:11px;font-weight:650;padding:0 7px 0 0}.pan-teeth-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.pan-teeth-heading>span{font-size:9px;color:var(--pan-muted);white-space:nowrap}.pan-dentition{display:flex;gap:2px}.pan-root .pan-dentition button{font-size:10px;padding:5px 8px;min-height:30px;border:0;background:#f1f4f7}.pan-root .pan-dentition button[aria-pressed=true]{background:#e4edfb;color:#074eaa;box-shadow:inset 0 -2px 0 #286ccc}.pan-quadrants{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px}.pan-quadrants h4{font-size:9px;font-weight:500;margin:0 0 6px;color:var(--pan-muted)}.pan-tooth-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px}.is-primary .pan-tooth-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.pan-root .pan-tooth-grid button{display:flex;flex-direction:column;gap:3px;min-width:0;min-height:55px;padding:5px 0;border-radius:5px;border-color:transparent;font-size:10px;background:#f7f9fb}.pan-tooth-grid button>span{height:29px;width:19px;display:flex;align-items:center;justify-content:center}.pan-tooth-grid svg{width:100%;height:100%}.pan-root .pan-tooth-grid button[aria-pressed=true]{color:#075bd0;background:#e6efff;border-color:#a6c1ed;box-shadow:inset 0 -2px 0 #075ee5}.pan-tooth-grid button strong{font-size:10px;font-weight:600}.pan-teeth-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;padding-top:8px}.pan-root .pan-teeth-summary button{min-height:24px;padding:2px 0;background:none;border:0;font-size:10px;color:#647989}
.pan-preview-heading{display:grid;gap:4px;margin-bottom:14px}.pan-preview-heading>span{font-size:9px;letter-spacing:.13em;color:#668193}.pan-preview-heading>strong{font-size:15px;font-weight:650}.pan-preview-empty{min-height:390px;background:#fff;border:1px solid #d9e2e9;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:35px;text-align:center;box-shadow:0 5px 18px #1c3d4b0d}.pan-preview-empty svg{color:#7f9aab}.pan-preview-empty h3{font-size:17px;line-height:1.5;max-width:290px;margin:16px 0 8px;font-weight:600}.pan-preview-empty p{font-size:12px;color:var(--pan-muted);max-width:320px}.pan-preview-note{font-size:10px;color:#627b8c;line-height:1.65;margin:12px 0 0}.pan-root .studio-pdf{background:transparent}.pan-root .studio-pdf-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:12px}.pan-root .studio-pdf-toolbar h3{font-size:11px;font-weight:500;margin:0}.pan-root .studio-pdf-toolbar>div{display:flex;align-items:center;gap:3px;flex-wrap:wrap;font-size:10px}.pan-root .studio-pdf-toolbar button{padding:4px;width:28px;min-height:28px;height:28px;font-size:10px;border-color:#cbd7e0;background:#f7fafc}.pan-root .studio-pdf-toolbar button.studio-zoom{width:auto;min-width:44px}.pan-root .studio-paper{min-height:240px;padding:24px;overflow:auto;display:flex;justify-content:flex-start;background:#dfe8ee}.pan-root .studio-paper canvas{display:block;margin:auto;box-shadow:0 5px 20px #193a4d25}.pan-root .studio-pdf-status{font-size:12px;padding:6px 0}.pan-view-pdf{padding:20px;overflow:auto;background:#eaf0f4;min-height:0;flex:1;max-height:70dvh}.pan-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--pan-line);padding:14px 26px;background:#fff;flex:none}.pan-composer-footer>div:first-child{font-size:12px;min-width:0;max-width:530px}.pan-composer-footer p{margin:0}.pan-footer-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:none}.pan-root .pan-footer-actions button{font-size:12px;min-height:39px}.pan-phrase-save{padding:20px 25px;overflow:auto;display:grid;gap:15px}.pan-phrase-save p{font-size:12px;color:var(--pan-muted);margin:0}.pan-mobile-tabs{display:none;flex:none}.pan-report-table-scroll{overflow:auto}.pan-report-table{min-width:480px}.pan-report-table th:last-child{width:160px}.pan-row-actions{display:flex;gap:4px}.pan-row-actions .pan-icon{width:30px;min-height:30px;height:30px;padding:5px;border-color:transparent}.pan-empty-list{padding:32px;text-align:center;color:var(--pan-muted);display:flex;align-items:center;flex-direction:column}.pan-empty-list h3{color:var(--pan-ink);font-size:17px;margin:10px 0 4px}.pan-empty-list p{font-size:13px;margin:0 0 16px}.pan-reports .dentalome-table-footer{margin-top:14px}.patient-documents-card .document-subtabs.pan-document-tabs{width:auto;max-width:100%;height:auto;flex-wrap:wrap}.patient-documents-card .document-subtabs.pan-document-tabs button{width:auto;white-space:normal;min-height:36px;height:auto}.patient-documents-card .patient-documents-toolbar.pan-document-toolbar{height:auto;flex-wrap:wrap;gap:12px}.patient-documents-panoramic{min-width:0}
@media(max-width:1100px){.pan-backdrop{padding:12px}.pan-dialog{max-height:calc(100dvh - 24px)}.pan-composer-grid{grid-template-columns:1fr}.pan-mobile-tabs{display:flex;padding:0 20px;border-bottom:1px solid var(--pan-line);background:#fff}.pan-root .pan-mobile-tabs button{border:0;border-radius:0;padding:10px 17px;color:var(--pan-muted)}.pan-root .pan-mobile-tabs button[aria-selected=true]{color:#0758ba;box-shadow:inset 0 -2px 0 #075ee5}.pan-composer-grid.show-editor .pan-preview-side,.pan-composer-grid.show-preview .pan-edit-side{display:none}.pan-edit-side,.pan-preview-side{max-height:60dvh}.pan-preview-side{border-left:0}.pan-composer-footer{align-items:flex-start;flex-wrap:wrap}.pan-footer-actions{margin-left:auto}.pan-quadrants{max-width:700px}}
@media(max-width:600px){.pan-backdrop{padding:0;align-items:stretch}.pan-dialog,.pan-dialog.is-wide{width:100%;max-height:100dvh;border-radius:0}.pan-dialog-heading{padding:17px 16px 13px}.pan-dialog-heading h2{font-size:20px}.pan-dialog-heading p{font-size:12px}.pan-composer-meta{padding:12px 16px;gap:12px;flex-wrap:wrap}.pan-composer-meta label{width:100%;max-width:230px}.pan-document-identity{font-size:10px}.pan-document-identity strong{font-size:11px}.pan-edit-side{padding:18px 16px}.pan-preview-side{padding:16px}.pan-root input,.pan-root textarea,.pan-root select{font-size:16px}.pan-phrase-controls{grid-template-columns:1fr}.pan-category{max-width:220px}.pan-category select{font-size:14px}.pan-root .pan-point-text textarea{font-size:16px}.pan-point{padding:10px}.pan-point-context{align-items:stretch;flex-direction:column;gap:5px}.pan-point-context label{max-width:none}.pan-point-context select{font-size:14px}.pan-point-heading{gap:4px}.pan-root .pan-point-tools button{width:32px;height:32px}.pan-point-literal{font-size:13px}.pan-quadrants{grid-template-columns:1fr;gap:14px}.pan-tooth-grid{grid-template-columns:repeat(4,minmax(44px,1fr));gap:5px}.is-primary .pan-tooth-grid{grid-template-columns:repeat(5,minmax(40px,1fr))}.pan-root .pan-tooth-grid button{min-height:61px}.pan-tooth-grid button>span{height:32px;width:23px}.pan-tooth-grid button strong{font-size:12px}.pan-teeth-heading{align-items:flex-start;flex-direction:column}.pan-teeth-summary{font-size:11px;flex-wrap:wrap}.pan-preview-empty{min-height:320px;padding:24px}.pan-composer-footer{padding:12px 16px;gap:12px}.pan-composer-footer>div:first-child{max-width:100%}.pan-footer-actions{width:100%;justify-content:stretch}.pan-root .pan-footer-actions button{flex:1;font-size:12px}.pan-root .pan-footer-actions .pan-primary{flex:1 1 100%}.pan-root .studio-paper{padding:12px}.pan-phrase-save{padding:18px 16px}.pan-point-context>.pan-text-action{font-size:12px}.pan-dialog .pan-phrase-save{max-height:65dvh}.pan-composer-grid{min-height:0;flex:1}.pan-edit-side,.pan-preview-side{max-height:none}.pan-mobile-tabs{padding-inline:16px}.pan-empty-draft{padding:28px 14px}.pan-observations-heading{align-items:flex-start;flex-direction:column;gap:4px}}
@media(prefers-reduced-motion:reduce){.pan-root *{animation-duration:.001ms!important;transition:none!important;scroll-behavior:auto!important}}

.pan-document-toolbar .document-generate-dropdown button{display:block;width:100%;text-align:left;background:#fff;border:0;border-radius:0;padding:11px 14px;font:inherit;color:#183b50;min-height:40px;cursor:pointer}.pan-document-toolbar .document-generate-dropdown button:hover,.pan-document-toolbar .document-generate-dropdown button:focus-visible{background:#edf4fb;outline:2px solid #90b9ed;outline-offset:-2px}

.pan-tooth-required{font-size:11px;color:#8d5622;margin:9px 0 0}

.pan-tooth-grid button>*{pointer-events:none}

/* Keep controls and the scrollable document visible in short/zoomed viewports. */
@media(max-height:500px){.pan-dialog-heading{padding-top:10px;padding-bottom:10px}.pan-composer-meta{padding-top:7px;padding-bottom:7px}.pan-root .pan-mobile-tabs button{padding-top:6px;padding-bottom:6px}.pan-composer-footer{padding-top:8px;padding-bottom:8px}.pan-edit-side,.pan-preview-side,.pan-view-pdf{padding-top:12px;padding-bottom:12px}}
.agenda-workspace .agenda-category-filter { display: flex; flex-direction: column; gap: 6px; margin-block-start: 16px; height: calc(100% - 356.2px); min-height: 0; overflow: hidden; padding-inline-end: 8px; }
.agenda-category-heading { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.agenda-category-heading h3 { margin: 0; font-size: 14px; font-weight: 600; line-height: 20px; color: #18181b; }
.agenda-category-heading button { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e4e4e7; border-radius: 7px; background: #fff; color: #3f3f46; }
.agenda-category-all { flex: 0 0 auto; min-height: 36px; padding: 7px 10px; border: 1px solid #e4e4e7; border-radius: 8px; background: #fff; color: #3f3f46; text-align: start; font-size: 13px; line-height: 20px; }
.agenda-category-all[aria-pressed="true"] { border-color: #b6cdec; background: #edf4ff; color: #174e96; font-weight: 600; }
.agenda-category-choices { display: flex; flex: 0 0 auto; flex-direction: column; gap: 7px; min-width: 0; padding: 0; margin: 0; border: 0; }
.agenda-category-filter .agenda-category-choices { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 2px; }
.agenda-category-filter .agenda-category-all { min-height: 32px; padding-block: 5px; }
.agenda-category-filter .agenda-category-hint { display: none; }
.agenda-category-option { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px; border: 1px solid #e4e4e7; border-radius: 8px; background: #fff; color: #52525b; cursor: pointer; font-size: 14px; line-height: 20px; }
.agenda-category-option:hover { background: #f5f7fa; }
.agenda-category-option.is-selected { border-color: #b6cdec; background: #edf4ff; color: #174e96; }
.agenda-category-option input { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; accent-color: #025ce2; }
.agenda-category-option i { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; }
.agenda-category-option span { min-width: 0; overflow-wrap: anywhere; }
.agenda-category-hint { margin: 0; color: #71717a; font-size: 12px; line-height: 17px; }
.agenda-category-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.agenda-category-option:focus-within, .agenda-category-all:focus-visible, .agenda-category-trigger:focus-visible, .agenda-category-heading button:focus-visible { outline: 2px solid #025ce2; outline-offset: 2px; }
.agenda-category-option input:focus-visible { outline: none; }
.agenda-workspace .agenda-category-mobile-control { display: none; }
.agenda-category-trigger { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 6px 9px; border: 1px solid #d4d4d8; border-radius: 8px; background: #fff; color: #3f3f46; font-size: 13px; line-height: 18px; text-align: start; }
.agenda-category-trigger small { margin-inline-start: auto; color: #52525b; font-size: 12px; }
.agenda-category-popover { position: fixed; z-index: 1150; display: flex; flex-direction: column; box-sizing: border-box; gap: 12px; padding: 14px; border: 1px solid #d4d4d8; border-radius: 12px; background: #fff; box-shadow: 0 10px 32px rgb(15 23 42 / 18%); }
.agenda-category-popover-body { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding: 2px; }
.agenda-category-popover .agenda-category-option { min-height: 42px; }
.agenda-workspace .agenda-category-empty { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; background: #f0f4fa; color: #475569; font-size: 13px; line-height: 19px; }
.agenda-workspace .agenda-category-empty button { flex: 0 0 auto; min-height: 30px; padding: 5px 8px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #174e96; font-size: 12px; }
@media (max-width: 900px) {
  .agenda-workspace .agenda-toolbar.has-category-filter { height: 112px; flex: 0 0 112px; }
  .agenda-workspace .agenda-category-mobile-control { display: block; position: absolute; inset: 80px 0 auto; height: 32px; z-index: 2; }
  .agenda-workspace .agenda-category-empty { align-items: flex-start; flex-direction: column; }
}
@media (forced-colors: active) {
  .agenda-category-option.is-selected, .agenda-category-all[aria-pressed="true"] { border-color: Highlight; }
}
.agenda-patient-balance-tooltip {
  position: fixed;
  z-index: 1200;
  box-sizing: border-box;
  padding: 16px 18px;
  border: 1px solid #dce3e9;
  border-radius: 12px;
  background: #fff;
  color: #263345;
  box-shadow: 0 8px 28px rgb(31 45 61 / 18%);
  font-family: inherit;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.agenda-balance-patient { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.agenda-balance-value { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.agenda-balance-value span { font-size: 13px; color: #526174; }
.agenda-balance-value strong { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.agenda-balance-value.due strong { color: #a6372b; }
.agenda-balance-value.paid strong, .agenda-balance-value.credit strong { color: #216953; }
.agenda-balance-status { font-size: 14px; color: #526174; min-height: 29px; }
.agenda-balance-status.unavailable { color: #7a423b; }
.agenda-patient-balance-tooltip small, .agenda-patient-balance-inline small { display: block; margin-top: 9px; font-size: 11px; color: #617084; }
.agenda-patient-balance-inline { border: 1px solid #dce3e9; border-radius: 10px; padding: 12px 16px; margin-block: 12px; background: #f8fafb; }
@media (max-width: 900px) {
  .agenda-patient-balance-inline .agenda-balance-value span { font-size: 14px; }
}
.appointment-form-date-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #c8dfe1;
  border-radius: 10px;
  background: #f0f8f8;
  color: #184b55;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.appointment-form-date-summary > svg { flex: 0 0 auto; }
.appointment-form-date-summary strong { font-weight: 600; }
.appointment-form-date-text { flex: 1 1 220px; min-width: 0; }
.appointment-form-date-control { max-width: 100%; flex: 0 1 180px; }
.appointment-form-date-control .dentalome-date-input { width: 100%; }
.appointment-form-date-control button { min-height: 44px; }
.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}}
.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-catalog-select > small {display:block;margin-top:5px;line-height:1.5;}
.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-sheet-texture,.studio-sheet-texture canvas{position:absolute;inset:0;width:100%;height:100%}.studio-sheet-front .studio-sheet-edge{position:absolute;top:-18px;left:0;right:0;margin:0;padding:3px;font-size:8px;border-top:2px solid #087d74}.studio-sheet-object .studio-sheet-unavailable{margin:0;font-size:9px;padding:3px;background:#fff;pointer-events:auto}.studio-sheet-unavailable button{font-size:9px!important;padding:3px!important;min-height:24px!important}.studio-animation-controls a{color:inherit;text-decoration:underline}
.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}}

/* Document-only age alternative; original insurer backgrounds stay unchanged. */
.insurance-studio .studio-age-panel{min-width:0;border:1px solid #c6ddd9;border-radius:10px;background:#f5faf9;margin:0 0 18px;padding:14px;display:grid;gap:12px}
.insurance-studio .studio-age-panel legend{padding:0 5px;color:#17675f;font-size:14px;font-weight:600}
.insurance-studio .studio-age-panel label{min-width:0;display:grid;gap:6px;font-size:13px;line-height:1.4}
.insurance-studio .studio-age-panel input,.insurance-studio .studio-age-panel select{width:100%;min-width:0;box-sizing:border-box;min-height:44px}
.insurance-studio .studio-age-panel input:focus-visible,.insurance-studio .studio-age-panel select:focus-visible{outline:3px solid #247dba;outline-offset:2px}
.insurance-studio .studio-age-fields{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:10px}
.insurance-studio .studio-age-or{font-size:12px;color:#536f78}
.insurance-studio .studio-age-panel>small{font-size:12px;line-height:1.55;color:#476573;overflow-wrap:anywhere}
.insurance-studio .studio-age-panel .insurance-field-error{margin:0;font-size:12px;line-height:1.55}
@media(min-width:601px) and (max-width:1100px){.insurance-studio .studio-age-fields{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.insurance-studio .studio-summary .studio-age-panel{padding:14px}.insurance-studio .studio-age-fields{grid-template-columns:minmax(0,1fr)}}
.patient-duplicate-notice {
  margin: 10px 0;
  padding: 14px;
  border: 1px solid #c5d9e6;
  border-radius: 12px;
  background: #f4f9fc;
  color: #17344b;
  max-height: min(260px, 35vh);
  overflow-y: auto;
}
.patient-duplicate-notice h3 { margin: 0 0 6px; font-size: 16px; }
.patient-duplicate-notice p { margin: 5px 0 10px; }
.patient-duplicate-notice ul { margin: 8px 0; padding: 0; list-style: none; }
.patient-duplicate-notice li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid #dce7ee; }
.patient-duplicate-notice li span { min-width: 0; overflow-wrap: anywhere; }
.patient-duplicate-notice li small { display: block; }
.patient-duplicate-confirm { display: flex !important; align-items: flex-start; gap: 8px; margin-top: 12px; }
.patient-duplicate-confirm input { width: 18px !important; height: 18px; flex: 0 0 18px; margin: 2px 0 0; }
.medical-history-modal .medical-choice-row { flex-wrap: wrap; }
.medical-history-modal .medical-yes-no button { white-space: normal; }
.medical-history-modal .medical-question-row { min-width: 0; }
.patient-save-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.patient-save-fields[inert] { opacity: .75; }
/* Reserve the header and footer; only the questionnaire body should scroll. */
.modal.medical-history-modal {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
}

.modal.medical-history-modal .modal-head {
  flex: 0 0 auto;
  height: auto;
  min-height: 101px;
}

.modal.medical-history-modal .medical-history-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.modal.medical-history-modal .medical-history-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

.modal.medical-history-modal .medical-history-actions,
.patient-form-modal .modal.medical-history-modal .medical-history-actions {
  flex: 0 0 auto;
  height: auto;
  min-height: 69px;
}

/* Keep the questionnaire inside its card, including three-state answers. */
.medical-history-modal .medical-history-section,
.medical-history-modal .medical-section-body,
.medical-history-modal .medical-question-row,
.medical-history-modal .medical-question-row > div,
.medical-history-modal .medical-dependent-block,
.medical-history-modal .medical-checkbox-line,
.medical-history-modal .medical-section-head > div {
  min-width: 0;
}

.medical-history-modal .medical-yes-no {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.medical-history-modal .medical-yes-no button {
  max-width: 100%;
  height: auto;
  min-height: 36px;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Three fixed columns cannot contain long French labels in a narrow card. */
.medical-history-modal .medical-flag-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.medical-history-modal .medical-checkbox-line button {
  flex: 0 0 16px;
}

.medical-history-modal .medical-checkbox-line span,
.medical-history-modal .medical-question-row p,
.medical-history-modal .medical-section-head p {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  .medical-history-modal .medical-lifestyle-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* The waiting room is portalled out of the calendar's clipping container. */
.modal.agenda-presence-dialog {
  display: flex;
  flex-direction: column;
  width: min(720px, calc(100vw - 48px));
  min-width: 0;
  padding: 0;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
}

.modal.agenda-presence-dialog .modal-head {
  flex: 0 0 auto;
  min-width: 0;
  padding: 20px;
  margin: 0;
}

.modal.agenda-presence-dialog .agenda-presence-columns {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 16px 20px;
  overflow-y: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modal.agenda-presence-dialog .agenda-presence-column {
  height: auto;
  min-height: 180px;
  min-width: 0;
  overflow-y: visible;
}

.modal.agenda-presence-dialog .agenda-presence-list article,
.modal.agenda-presence-dialog .agenda-presence-list b {
  min-width: 0;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

.modal.agenda-presence-dialog .agenda-presence-list article[draggable="false"] {
  cursor: default;
}

.modal.agenda-presence-dialog .agenda-presence-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  padding: 12px 20px;
  border-top: 1px solid #e1e7ec;
}

.modal.agenda-presence-dialog .agenda-presence-error {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 160px;
  margin: 12px 20px 0;
  padding: 12px;
  overflow-y: auto;
  overflow-wrap: anywhere;
  color: #922b2b;
  background: #fff1f1;
  border: 1px solid #eec6c6;
  border-radius: 6px;
}

.modal.agenda-presence-dialog .agenda-presence-error span {
  display: block;
  margin-top: 6px;
}

@media (max-width: 640px) {
  .modal.agenda-presence-dialog .agenda-presence-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .modal.agenda-presence-dialog .agenda-presence-column {
    min-height: 100px;
  }
}
/* Hidden controls must not intercept the appointment's primary click target.
   Compact cards omit these shortcuts in JSX; the full dialog retains actions. */
.appointment-block .appointment-tools {
  pointer-events: none;
}

.appointment-block:hover .appointment-tools,
.appointment-block:focus-within .appointment-tools {
  pointer-events: auto;
}

.appointment-block.suppress-tools-after-resize .appointment-tools {
  pointer-events: none;
}
.patient-merged-medical-source { margin-block: 16px; padding: 14px 16px; border-inline-start: 3px solid #bdd6d5; background: #f7faf9; overflow-wrap: anywhere; }
.patient-merged-medical-source h3 { margin: 0; font-size: 15px; line-height: 1.5; color: #244c57; }
.patient-merged-medical-source h3 span { font-weight: 400; }
.patient-merged-medical-source h4 { margin: 16px 0 7px; font-size: 14px; color: #244c57; }
.patient-merged-medical-source dl { margin: 6px 0 12px; }
.patient-merged-medical-alert { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 9px; margin-block: 12px; padding: 10px 12px; border-inline-start: 3px solid #9c7023; background: #fff8e8; color: #71501d; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.patient-merged-medical-alert svg { flex: 0 0 auto; margin-block-start: 2px; }
.patient-merged-medical-alert span { flex-basis: 100%; }
.patient-merged-medical-history .intake-error svg { vertical-align: text-bottom; }
@media (max-width: 640px) { .patient-merged-medical-source { padding: 12px; } }
/* Patient « Images » workspace — 14 Nov 2026. Scoped to .pimg / .pimg-dialog / .pimg-viewer; restrained blue accent. */
.pimg { --pi-ink: #17203a; --pi-muted: #5d667f; --pi-line: #e3e7f0; --pi-soft: #f5f7fb; --pi-blue: #1f4fe0; --pi-blue-soft: #edf2ff; --pi-danger: #b42318; --pi-r: 12px;
  display: flex; flex-direction: column; gap: 14px; padding-bottom: 88px; color: var(--pi-ink); }
.pimg .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pimg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pimg .pimg-title h1 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; color: var(--pi-ink); }
.pimg-title p { margin: 4px 0 0; color: var(--pi-muted); font-size: 13.5px; }
.pimg-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pimg-file { display: none; }
.pimg .pimg-import, .pimg .pimg-import:hover { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--pi-blue); color: #fff; box-shadow: none; font-size: 14px; font-weight: 500; }
.pimg .pimg-import:hover { background: #1942c0; }
.pimg .pimg-import:focus-visible { outline: 3px solid color-mix(in srgb, var(--pi-blue) 35%, transparent); outline-offset: 2px; }
.pimg-segment { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--pi-soft); border: 1px solid var(--pi-line); }
.pimg-segment button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--pi-muted); font: inherit; font-size: 13px; cursor: pointer; }
.pimg-segment button span { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #fff; color: var(--pi-muted); font-size: 11.5px; }
.pimg-segment button[aria-selected="true"] { background: #fff; color: var(--pi-ink); box-shadow: 0 1px 2px rgba(23, 32, 58, .08); }
.pimg-segment button[aria-selected="true"] span { background: var(--pi-blue-soft); color: var(--pi-blue); }

.pimg-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px; border: 1px solid var(--pi-line); border-radius: var(--pi-r); background: #fff; }
.pimg-search { position: relative; display: flex; align-items: center; flex: 1 1 300px; min-width: 240px; }
.pimg-search > svg { position: absolute; left: 11px; color: var(--pi-muted); }
.pimg-search input { width: 100%; min-height: 36px; padding: 0 34px 0 34px; border: 1px solid var(--pi-line); border-radius: 9px; background: var(--pi-soft); font: inherit; font-size: 13.5px; color: var(--pi-ink); }
.pimg-search input:focus { outline: 2px solid color-mix(in srgb, var(--pi-blue) 35%, transparent); outline-offset: 1px; background: #fff; }
.pimg-search button { position: absolute; right: 6px; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: var(--pi-muted); cursor: pointer; }
.pimg-select-field select { max-width: 190px; min-height: 36px; padding: 0 28px 0 10px; border: 1px solid var(--pi-line); border-radius: 9px; background: #fff; font: inherit; font-size: 13px; color: var(--pi-ink); }
.pimg-select-field.active select { border-color: color-mix(in srgb, var(--pi-blue) 45%, white); background: var(--pi-blue-soft); color: var(--pi-blue); }
.pimg-toolbar-gap { flex: 1 1 auto; }

.pimg-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--pi-muted); }
.pimg-summary > span:first-child { color: var(--pi-ink); font-weight: 500; }
.pimg-check-all { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pimg-trash-note { color: var(--pi-muted); font-size: 12.5px; }
.pimg-link { padding: 0; border: 0; background: none; color: var(--pi-blue); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.pimg-link:disabled { opacity: .5; cursor: default; }

.pimg-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--pi-line); background: #fff; font-size: 13.5px; }
.pimg-banner.success { border-color: #cfe8d8; background: #f2fbf5; color: #135b2e; }
.pimg-banner.error, .pimg-banner.warn { border-color: #f1d0cc; background: #fff6f5; color: #8a2a1f; }
.pimg-banner > span { flex: 1 1 260px; }
.pimg .secondary-button, .pimg-dialog .secondary-button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--pi-line, #e3e7f0); border-radius: 9px; background: #fff; color: #17203a; font: inherit; font-size: 13px; cursor: pointer; }
.pimg .danger-button, .pimg-dialog .danger-button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: #b42318; color: #fff; font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.pimg .danger-button:disabled, .pimg-dialog .danger-button:disabled, .pimg .secondary-button:disabled { opacity: .55; cursor: default; }
.pimg-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: inherit; cursor: pointer; }
.pimg-icon:hover { background: rgba(23, 32, 58, .06); }
.pimg-icon.danger { color: #b42318; }
.pimg-icon:disabled { opacity: .35; cursor: default; }

.pimg-uploads { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pimg-uploads li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9px; background: var(--pi-soft); font-size: 13px; }
.pimg-uploads li.failed { background: #fff6f5; color: #8a2a1f; }

.pimg-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 16px; border: 1px dashed var(--pi-line); border-radius: var(--pi-r); color: var(--pi-muted); text-align: center; }
.pimg-empty p { margin: 0; color: var(--pi-ink); font-size: 15px; }

.pimg-group { display: flex; flex-direction: column; gap: 10px; }
.pimg-group > header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 8px 2px; background: color-mix(in srgb, #fff 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--pi-line); }
.pimg .pimg-group > header h2 { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 500; letter-spacing: 0; color: var(--pi-ink); }
.pimg-group > header > span { color: var(--pi-muted); font-size: 12.5px; }
.pimg-group-check input, .pimg-check-all input, .pimg-select input { width: 17px; height: 17px; accent-color: var(--pi-blue); cursor: pointer; }
.pimg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pimg-grid li { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--pi-line); border-radius: var(--pi-r); background: #fff; transition: box-shadow .15s, border-color .15s; }
.pimg-grid li:hover { box-shadow: 0 6px 18px rgba(23, 32, 58, .08); }
.pimg-grid li.selected { border-color: var(--pi-blue); box-shadow: 0 0 0 2px color-mix(in srgb, var(--pi-blue) 30%, transparent); }
.pimg .pimg-thumb { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; overflow: hidden; margin: 0; padding: 0; border: 0; border-radius: 0; background: #e9ecf3; cursor: zoom-in; }
.pimg-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pimg-thumb:disabled { cursor: default; }
.pimg-thumb:focus-visible { outline: 3px solid var(--pi-blue); outline-offset: -3px; }
.pimg-nofile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; color: var(--pi-muted); font-size: 12px; }
.pimg-select { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.pimg-meta { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px 10px; min-width: 0; }
.pimg-meta strong { overflow: hidden; font-size: 13.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.pimg-meta > span { color: var(--pi-muted); font-size: 12px; }
.pimg-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.pimg .chip, .pimg-viewer .chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; background: #eef1f6; color: #3d4660; font-size: 11px; font-style: normal; }
.pimg .chip.app, .pimg-viewer .chip.app { background: var(--pi-blue-soft, #edf2ff); color: #1f4fe0; }
.pimg .chip.phase.before { background: #eef6ff; color: #12519c; }
.pimg .chip.phase.during, .pimg .chip.phase.progress { background: #f4f0ff; color: #5b3aa8; }
.pimg .chip.phase.after { background: #eefaf2; color: #17683a; }
.pimg-viewer .chip.muted { background: transparent; border: 1px dashed rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .75); }
.pimg-viewer .chip.warn { background: #fff1ef; color: #9a2b1f; }

.pimg-bulkbar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--pi-line); border-radius: 14px; background: rgba(255, 255, 255, .96); box-shadow: 0 12px 32px rgba(23, 32, 58, .16); backdrop-filter: blur(10px); font-size: 13.5px; }
.pimg-bulkbar strong { font-weight: 500; }

.pimg-dialog { width: min(480px, calc(100vw - 32px)); padding: 22px; border-radius: 16px; background: #fff; color: #17203a; box-shadow: 0 24px 60px rgba(15, 20, 40, .28); }
.pimg-dialog h2 { margin: 10px 0 8px; font-size: 18px; font-weight: 500; }
.pimg-dialog p { margin: 0 0 8px; color: #3d4660; font-size: 14px; line-height: 1.45; }
.pimg-dialog-patient { padding: 8px 10px; border-radius: 9px; background: #f5f7fb; }
.pimg-dialog-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff1ef; color: #b42318; }
.pimg-dialog-list { margin: 0 0 14px; padding-left: 18px; color: #5d667f; font-size: 13px; }
.pimg-dialog .modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

.pimg-viewer-backdrop { background: rgba(9, 12, 22, .82) !important; }
.pimg-viewer { display: flex; flex-direction: column; width: min(1280px, calc(100vw - 32px)); height: min(900px, calc(100vh - 32px)); overflow: hidden; border-radius: 16px; background: #0f1320; color: #fff; outline: none; }
.pimg-viewer header, .pimg-viewer footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: #151a2a; }
.pimg-viewer header > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.pimg-viewer header strong { font-size: 15px; font-weight: 500; }
.pimg-viewer header span { color: rgba(255, 255, 255, .7); font-size: 12.5px; }
.pimg-viewer .pimg-icon:hover { background: rgba(255, 255, 255, .1); }
.pimg-viewer .pimg-icon.danger { color: #ff9b8f; }
.pimg-viewer .pimg-trash-note { color: rgba(255, 255, 255, .6); }
.pimg-viewer-tools { display: flex; align-items: center; gap: 2px; }
.pimg-zoom { min-width: 52px; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; }
.pimg-stage { position: relative; flex: 1 1 auto; display: grid; place-items: center; overflow: hidden; touch-action: none; }
.pimg-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .12s ease-out; user-select: none; }
/* High-resolution originals are measured inside a definite stage, never used as its intrinsic minimum size. */
.pimg-viewer { width: min(1400px, calc(100vw - 40px)); height: min(1000px, calc(100vh - 40px)); height: min(1000px, calc(100dvh - 40px)); min-width: 0; min-height: 0; border: 1px solid rgba(204,223,246,.15); box-shadow: 0 32px 100px rgba(0,0,0,.38); }
.pimg-viewer header, .pimg-viewer footer { flex: 0 0 auto; }
.pimg-viewer header { padding: 12px 16px; border-bottom: 1px solid rgba(212,228,246,.08); }
.pimg-viewer header strong { font-weight: 600; }
.pimg-viewer-tools { flex-wrap: wrap; justify-content: flex-end; }
.pimg-viewer-tools .pimg-icon { width: 44px; height: 44px; min-width: 44px; border-radius: 12px; color: #d5e4f7; }
.pimg-viewer-tools .pimg-icon:focus-visible, .pimg-nav:focus-visible { outline: 2px solid #83b8f6; outline-offset: 2px; }
.pimg-zoom { min-width: 58px; }
.pimg-measured-stage { flex: 1 1 0; width: 100%; min-width: 0; min-height: 0; background: radial-gradient(ellipse at 50% 45%, #1c293c, #0d1725 90%); }
.pimg-measured-stage > img { position: absolute; left: 50%; top: 50%; max-width: none; max-height: none; object-fit: contain; transform-origin: center; transition: none; pointer-events: none; filter: none; }
.pimg-image-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #b6c7dc; padding: 24px; text-align: center; font-size: 13px; }
.pimg-image-state p { margin: 0; color: #839bb7; }
.pimg-image-state button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid #8eadd146; border-radius: 12px; background: #ffffff0a; color: #d7e9ff; padding: 10px 15px; cursor: pointer; font: inherit; }
.pimg-viewer footer { border-top: 1px solid rgba(212,228,246,.08); padding: 11px 16px; }
.atelier-photo-original { position: relative; overflow: hidden; }
.atelier-photo-original > .pimg-measured-stage { position: absolute; inset: 0; height: 100%; }
.pimg .pimg-thumb img { object-fit: contain; }
@media (max-width: 720px) {
  .pimg-viewer-backdrop { padding: 0 !important; }
  .pimg-viewer { width: 100vw; height: 100vh; height: 100dvh; border: 0; border-radius: 0; }
  .pimg-viewer header { gap: 8px; padding: 10px 10px 8px; }
  .pimg-viewer header > div:first-child { flex-basis: 100%; }
  .pimg-viewer header strong { font-size: 14px; }
  .pimg-viewer header span { font-size: 11px; line-height: 1.5; }
  .pimg-viewer-tools { width: 100%; justify-content: flex-start; gap: 1px; }
  .pimg-viewer-tools .pimg-icon { width: 40px; min-width: 40px; height: 44px; }
  .pimg-viewer footer { gap: 6px; padding: 9px 10px max(9px, env(safe-area-inset-bottom)); }
  .pimg-viewer footer .pimg-trash-note { display: none; }
  .pimg-nav.prev { left: 6px; } .pimg-nav.next { right: 6px; }
}
.pimg-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.pimg-nav.prev { left: 14px; } .pimg-nav.next { right: 14px; }
.pimg-nav:disabled { opacity: .25; cursor: default; }
@media (prefers-reduced-motion: reduce) { .pimg-stage img, .pimg-grid li { transition: none; } }
@media (max-width: 720px) { .pimg-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } .pimg-toolbar-gap { display: none; } }
.images-radiograph-tools { margin-top: 28px; padding-top: 18px; border-top: 1px solid #e3e7f0; }
.images-radiograph-tools .images-radiograph-tools-title { margin: 0 0 12px; font-size: 16px; font-weight: 500; color: #17203a; }
/* Desktop: the advanced filters sit inline in the toolbar. Compact (≤ 720 px): behind « Filtres », 44 px targets. */
.pimg-advanced { display: contents; }
.pimg .pimg-filter-toggle { display: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--pi-line); border-radius: 10px; background: #fff; color: var(--pi-ink); font: inherit; font-size: 14px; cursor: pointer; }
@media (max-width: 720px) {
  .pimg-toolbar { gap: 8px; padding: 8px; }
  .pimg-search { flex: 1 1 160px; min-width: 0; }
  .pimg-search input { min-height: 44px; }
  .pimg .pimg-filter-toggle { display: inline-flex; align-items: center; }
  .pimg-advanced { display: none; }
  .pimg-advanced.open { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
  .pimg-advanced.open .pimg-select-field, .pimg-advanced.open .pimg-select-field select { flex: 1 1 140px; max-width: none; min-height: 44px; width: 100%; }
  .pimg-advanced .pimg-toolbar-gap { display: none; }
}

.pimg-measured-stage .pimg-nav { background: rgba(13, 28, 46, .68); border: 1px solid rgba(211, 231, 255, .18); backdrop-filter: blur(8px); }
.patient-camera{border:1px solid #dbe5ee;background:#fff;border-radius:14px;padding:16px 19px;color:#234357;margin:0 0 20px;box-shadow:0 3px 12px #183e5804}.patient-camera.is-active{background:#f5fbfa;border-color:#bcded6}.patient-camera-row{display:flex;align-items:center;gap:13px}.patient-camera-icon{height:42px;width:42px;display:grid;place-items:center;border-radius:12px;background:#edf4fa;color:#277a86;flex-shrink:0}.patient-camera-copy{flex:1;min-width:0}.patient-camera-copy strong{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px;line-height:1.6}.patient-camera-copy strong span[role=status]{font-size:13px;font-weight:500;color:#5e7788}.patient-camera-copy small{display:block;margin-top:3px;font-size:12px;line-height:1.6;color:#6a8190}.camera-state-dot{width:7px;height:7px;border-radius:50%;background:#9aabb5}.is-active .camera-state-dot{background:#12a18c;box-shadow:0 0 0 4px #12a18c12}.patient-camera-actions{display:flex;gap:7px;flex-wrap:wrap}.patient-camera button{display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:42px;border:1px solid #d5e2e9;border-radius:9px;padding:9px 12px;background:#fff;color:#31586a;cursor:pointer;font-size:12px}.patient-camera button:hover{border-color:#158a88;background:#f5fbfa}.patient-camera button:focus-visible,.camera-setup button:focus-visible,.camera-setup input:focus-visible{outline:3px solid #25aca37a;outline-offset:3px}.patient-camera button:disabled{opacity:.5;cursor:default}.patient-camera .camera-error,.camera-setup .camera-error{display:flex;align-items:flex-start;gap:8px;padding:12px;border-radius:9px;background:#fff4ef;color:#984d30;line-height:1.6;font-size:13px;margin:12px 0 0}.camera-queue{font-size:12px;color:#6e7f8c;margin:10px 0 0 55px}.camera-review{border-top:1px solid #dce6ed;margin-top:17px;padding-top:17px}.camera-review header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.camera-review h3{margin:0;font-size:15px}.camera-review p{font-size:12px;line-height:1.7;color:#6b8090}.camera-review-list{display:grid;gap:8px}.camera-review-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf2f5}.camera-review-list article span,.camera-review-list article>div{display:flex;align-items:center;gap:8px;font-size:13px}.camera-review-preview{background:#eef3f6;border-radius:10px;padding:12px;display:grid;place-items:center;margin:10px 0}.camera-review-preview img{max-width:100%;max-height:380px;object-fit:contain;border-radius:6px}.camera-setup{min-height:100vh;display:grid;place-items:center;padding:25px;background:#f2f6fa;color:#183e55}.camera-setup>section{max-width:510px;padding:38px;background:#fff;border:1px solid #dce7ee;border-radius:20px;box-shadow:0 15px 50px #1d4b7010}.camera-setup h1{font-size:25px;line-height:1.3;margin:15px 0}.camera-setup p{font-size:14px;color:#637d8e;line-height:1.8}.camera-setup small{font-size:11px;color:#78909f;display:block;line-height:1.7}.camera-setup-icon{color:#147f88;margin-bottom:20px}.camera-setup form{display:grid;gap:15px;margin:25px 0}.camera-setup label{display:grid;gap:9px;font-size:13px;font-weight:600}.camera-setup input{border:1px solid #cddfe7;border-radius:9px;padding:13px;font-size:16px}.camera-setup button,.camera-setup a{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 20px;background:#0b8582;border:0;border-radius:10px;color:#fff;text-decoration:none;font-size:14px;cursor:pointer}.camera-success{display:flex;align-items:center;gap:10px;color:#11866f!important}.camera-setup button:disabled{opacity:.6;cursor:default}@media(max-width:720px){.patient-camera-row{align-items:flex-start;flex-wrap:wrap}.patient-camera-copy{flex-basis:calc(100% - 60px)}.patient-camera-actions{margin-left:55px}.camera-review-list article{align-items:flex-start;flex-direction:column}.camera-review-list article>div{flex-wrap:wrap}.camera-setup>section{padding:26px}}@media(prefers-reduced-motion:reduce){.patient-camera *,.camera-setup *{animation:none!important;transition:none!important}}
.camera-guide{border-top:1px solid #dce7ec;margin-top:16px;padding-top:17px}.camera-guide h3{margin:0 0 14px;font-size:15px}.camera-guide ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;list-style:none;padding:0;margin:0;counter-reset:camera-step}.camera-guide li{counter-increment:camera-step;padding:13px;background:#f5f9fb;border:1px solid #e1eaf0;border-radius:10px;line-height:1.6}.camera-guide li:before{content:counter(camera-step);display:inline-grid;place-items:center;background:#e0f0ef;color:#0c7a79;width:24px;height:24px;border-radius:50%;font-weight:700;margin-bottom:8px}.camera-guide li b,.camera-guide li span{display:block;font-size:12px}.camera-guide li span{color:#668090;margin-top:4px}.camera-guide>p{font-size:12px;line-height:1.7;color:#668090;margin:14px 0 0}.camera-confirm{margin-top:15px;padding:18px;border:1px solid #9dcac3;background:#f2faf8;border-radius:12px}.camera-confirm>strong{font-size:13px}.camera-confirm p{margin:8px 0;color:#234357}.camera-confirm small{font-size:12px;color:#668090}.camera-confirm>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.patient-camera .camera-confirm-primary{background:#0c807d;color:white;border-color:#0c807d}.patient-camera .camera-confirm-primary:hover{background:#096d6b}@media(max-width:720px){.camera-guide ol{grid-template-columns:1fr}.camera-guide li{display:grid;grid-template-columns:32px 1fr;column-gap:8px}.camera-guide li:before{grid-row:span 2;margin:0}.camera-guide li b,.camera-guide li span{grid-column:2}}
.camera-global-shortcut a,.patient-camera .camera-inbox-link{display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:42px;border:1px solid #d5e2e9;border-radius:9px;padding:9px 12px;background:#fff;color:#31586a;text-decoration:none;font-size:12px}.camera-global-shortcut a:focus-visible,.patient-camera .camera-inbox-link:focus-visible{outline:3px solid #25aca37a;outline-offset:3px}

/* Compact persistent status; details remain available on demand. */
.patient-camera{padding:8px 12px;margin-bottom:12px;border-radius:12px;background:linear-gradient(115deg,#f9fcfc,#fff);box-shadow:none}.patient-camera.is-active{background:#f3fbf8}.patient-camera-row{gap:10px;min-height:34px}.patient-camera-icon{height:30px;width:30px;border-radius:9px}.patient-camera-icon svg{width:17px;height:17px}.patient-camera-copy strong{font-size:12px;gap:8px}.patient-camera-copy strong span[role=status]{font-size:12px}.patient-camera button,.patient-camera .camera-inbox-link{min-height:30px;padding:5px 8px;font-size:11px;border-radius:8px;background:#ffffffc9}.patient-camera-actions{gap:5px}.patient-camera .camera-error{padding:8px 10px;font-size:12px;margin-top:8px}.camera-queue{font-size:11px;margin:6px 0 0 40px}@media(max-width:720px){.patient-camera-copy{flex-basis:calc(100% - 42px)}.patient-camera-actions{margin-left:40px}.patient-camera-row{gap:8px}}
.patient-clinical-tools{--clinical-ink:#17333e;--clinical-teal:#087f84;--clinical-border:rgba(112,150,165,.25);margin:0 0 20px;min-width:0}
.clinical-tools-rail{display:flex;align-items:stretch;gap:12px;max-width:780px}
.clinical-tool-trigger{appearance:none;display:flex;flex:1 1 0;align-items:center;gap:11px;min-width:0;min-height:62px;padding:11px 15px;border:1px solid var(--clinical-border);border-radius:17px;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(245,251,252,.88));box-shadow:inset 0 1px 0 #fff,0 2px 4px rgba(33,66,80,.025),0 9px 22px rgba(33,66,80,.045);color:var(--clinical-ink);text-align:left;font-family:inherit;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s}
.clinical-tool-trigger:hover{border-color:rgba(51,132,144,.45);background:linear-gradient(145deg,#fff,#edf8f8);box-shadow:inset 0 1px 0 #fff,0 6px 22px rgba(25,96,107,.08)}
.clinical-tool-trigger:focus-visible{outline:3px solid #55a8bc;outline-offset:3px}
.clinical-tool-trigger.is-open{border-color:rgba(14,129,135,.5);background:linear-gradient(145deg,#fff,#eaf7f7);box-shadow:inset 0 1px 0 #fff,0 4px 16px rgba(21,104,117,.08)}
.clinical-tool-icon{flex:0 0 35px;display:grid;place-items:center;width:35px;height:35px;border:1px solid rgba(126,177,187,.14);border-radius:12px;background:linear-gradient(145deg,#f1fafa,#e1f0f3);box-shadow:inset 0 1px 0 rgba(255,255,255,.95);color:var(--clinical-teal)}
.clinical-tool-label{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.clinical-tool-label strong{font-size:13px;font-weight:650;line-height:1.25;letter-spacing:-.01em}
.clinical-tool-status{display:flex;align-items:center;gap:6px;color:#68818c;font-size:11px;line-height:1.35;font-weight:450}
.clinical-tool-status i{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#9aaeb5;box-shadow:0 0 0 3px rgba(154,174,181,.1)}
.is-receiving .clinical-tool-status{color:#168178}.is-receiving .clinical-tool-status i{background:#13ad9b;box-shadow:0 0 0 3px rgba(19,173,155,.1)}
.clinical-tool-count{flex:0 0 auto;display:grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border:1px solid #e8dfc5;border-radius:8px;color:#88702f;background:linear-gradient(145deg,#fffdf7,#f6f0de);font-size:11px;line-height:1;font-weight:700}
.clinical-tool-chevron{flex:0 0 auto;color:#8aa0a8;transition:transform .18s}.is-open .clinical-tool-chevron{transform:rotate(180deg);color:var(--clinical-teal)}
.clinical-tools-panel{margin-top:12px;min-width:0;border:1px solid var(--clinical-border);border-radius:19px;background:linear-gradient(145deg,rgba(255,255,255,.99),rgba(248,252,253,.96));box-shadow:inset 0 1px 0 #fff,0 8px 28px rgba(24,62,78,.045);overflow:clip;animation:clinical-tools-reveal .18s ease-out}
.clinical-tools-panel[hidden]{display:none!important}
.clinical-tools-panel .patient-medical-summary{border:0;margin:0;background:transparent;box-shadow:none;padding:20px 22px}
.clinical-tools-panel .patient-medical-summary-head h2{font-size:17px;letter-spacing:-.025em}.clinical-tools-panel .patient-medical-summary-head p{font-size:12px}
.clinical-tools-panel .patient-camera{border:0;margin:0;border-radius:0;background:transparent;box-shadow:none}
.clinical-tools-panel .patient-camera-row{padding:16px 18px}.clinical-tools-panel .patient-camera-copy strong{font-size:13px}.clinical-tools-panel .patient-camera-copy strong>span[role=status]{font-size:12px}
.clinical-tools-panel .patient-camera-actions{gap:7px}.clinical-tools-panel .patient-camera-actions button,.clinical-tools-panel .camera-inbox-link{min-height:38px;font-size:12px;border-radius:11px;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.clinical-tools-camera-availability{padding:18px 20px 0;margin:0;color:#68818c;font-size:13px;line-height:1.6}
.clinical-tools-panel .camera-global-shortcut{padding:14px 20px;margin:0}
@keyframes clinical-tools-reveal{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media(min-width:900px){.clinical-tool-trigger{backdrop-filter:blur(12px)}}
@media(max-width:600px){.clinical-tools-rail{gap:8px}.clinical-tool-trigger{padding:10px;gap:8px;min-height:64px;border-radius:14px}.clinical-tool-icon{width:29px;height:32px;flex-basis:29px;border-radius:10px}.clinical-tool-label strong{font-size:12px}.clinical-tool-status{font-size:10px;gap:5px}.clinical-tool-chevron{width:12px}.clinical-tool-count{min-width:19px;height:21px;font-size:10px;padding:0 4px}.clinical-tools-panel .patient-medical-summary{padding:16px}.clinical-tools-panel .patient-camera-row{padding:14px}.clinical-tools-panel .patient-camera-actions{flex-wrap:wrap}}
@media(max-width:390px){.clinical-tool-trigger{gap:6px;padding:9px}.clinical-tool-icon{width:26px;flex-basis:26px}.clinical-tool-label strong{font-size:11px}.clinical-tool-chevron{display:none}}
@media(prefers-reduced-motion:reduce){.clinical-tool-trigger,.clinical-tool-chevron{transition:none}.clinical-tools-panel{animation:none}}
.camera-inbox{--cam-ink:#214454;--cam-muted:#6b828c;max-width:1480px;min-height:100vh;margin:auto;padding:34px 38px 50px;color:var(--cam-ink);background:radial-gradient(ellipse at 13% 0,#ddf2ec85,transparent 48%),#f4f8fa;font-family:inherit;box-sizing:border-box}.camera-inbox *{box-sizing:border-box}.camera-inbox-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:22px}.camera-inbox-back{display:flex;align-items:center;gap:7px;color:var(--cam-muted);font-size:12px;text-decoration:none;margin-bottom:26px}.camera-inbox-eyebrow{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:700;letter-spacing:.13em;color:#4f8f88}.camera-inbox h1{font-size:32px;letter-spacing:-.04em;margin:12px 0 8px}.camera-inbox p{font-size:13px;line-height:1.7;color:var(--cam-muted);margin:6px 0}.camera-inbox-count{display:grid;grid-template-columns:auto auto auto;gap:3px 12px;align-items:center;padding:18px 22px;border:1px solid #d6e6e5;background:#ffffffb0;border-radius:18px;color:#33887c;box-shadow:0 8px 25px #294f6005}.camera-inbox-count strong{font-size:30px;font-weight:650}.camera-inbox-count>span{grid-column:2;font-size:11px;color:var(--cam-muted)}.camera-inbox-count>button{grid-column:3;grid-row:1 / 3}.camera-inbox button{font:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 12px;border:1px solid #d4e2e5;background:#fff;color:var(--cam-ink);border-radius:9px;font-size:12px}.camera-inbox button:hover{border-color:#6dafa3;background:#f3faf7}.camera-inbox button:disabled{opacity:.5;cursor:default}.camera-inbox :is(button,input,a):focus-visible{outline:3px solid #50b4a885;outline-offset:3px}.camera-inbox-note,.camera-inbox-success,.camera-inbox-error{display:flex;align-items:center;gap:10px;padding:13px 17px;border-radius:12px;margin-bottom:18px;background:#eaf5f18c;border:1px solid #d6e9e2;color:#388172}.camera-inbox-note p{margin:0;color:#5b7e76;font-size:12px}.camera-inbox-success{background:#e8f6ed;font-size:13px}.camera-inbox-success>button{margin-left:auto}.camera-inbox-error{background:#fff5ee;border-color:#eed9c7;color:#9a583b;font-size:13px;flex-wrap:wrap}.camera-inbox-error>span{flex:1;min-width:180px}.camera-inbox-error a{color:inherit}.camera-inbox-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:24px 0 18px}.camera-inbox-toolbar label{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--cam-muted)}.camera-inbox-toolbar input{font:inherit;border:1px solid #d6e3e8;border-radius:10px;padding:12px;color:var(--cam-ink);background:#ffffffb8;min-width:0}.camera-inbox-search{flex:1;min-width:220px;position:relative}.camera-inbox-search svg{position:absolute;left:14px}.camera-inbox-search input{width:100%;padding-left:42px;font-size:13px}.camera-inbox-toolbar>small{font-size:10px;color:var(--cam-muted)}.camera-inbox-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:20px;align-items:start}.camera-inbox-list,.camera-inbox-detail{background:#ffffffc9;border:1px solid #dce7eb;border-radius:19px;overflow:hidden;box-shadow:0 8px 30px #234b6004}.camera-inbox-list-title{padding:18px 20px;border-bottom:1px solid #e5edef;display:flex;justify-content:space-between;font-size:12px}.camera-inbox .camera-inbox-item{border:0;border-bottom:1px solid #e7edef;border-radius:0;width:100%;display:grid;grid-template-columns:48px minmax(0,1fr) 16px;text-align:left;padding:17px 18px;gap:12px;background:transparent}.camera-inbox .camera-inbox-item.selected{background:#eaf5f1;box-shadow:inset 3px 0 #389d8d}.camera-inbox-mini{display:grid;place-items:center;width:48px;height:51px;border:1px solid #dfeae9;border-radius:10px;background:linear-gradient(145deg,#edf5f3,#e0edea);color:#6c9d93}.camera-inbox-item>span:nth-child(2){display:grid;gap:5px}.camera-inbox-item strong{font-size:13px}.camera-inbox-item small{font-size:10px;color:var(--cam-muted);line-height:1.5}.camera-inbox-item>span>span{font-size:11px;color:#587784}.camera-inbox-pagination{display:flex;align-items:center;justify-content:center;gap:16px;padding:15px;border-top:1px solid #e5edef;font-size:11px;color:var(--cam-muted)}.camera-inbox-detail>header{padding:25px 27px 20px}.camera-inbox h2{font-size:20px;margin:10px 0 5px;letter-spacing:-.02em}.camera-inbox-preview{min-height:260px;height:350px;background:linear-gradient(140deg,#edf3f3,#e4eded);display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;border-block:1px solid #e1eaeb;padding:18px;text-align:center}.camera-inbox-preview img{max-width:100%;max-height:100%;object-fit:contain;border-radius:7px}.camera-inbox-association{padding:21px 27px 27px}.camera-inbox-reason{display:flex;gap:7px;align-items:center;font-size:11px!important;color:#9a7955!important;margin-bottom:17px!important}.camera-inbox h3{font-size:15px;margin:0 0 17px}.camera-inbox-confirm-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px}.camera-inbox-confirm-row>span{font-size:11px;color:var(--cam-muted)}.camera-inbox .camera-inbox-primary{background:#208c7c;border-color:#208c7c;color:#fff;padding-inline:16px}.camera-inbox .camera-inbox-primary:hover{background:#137b6d;border-color:#137b6d}.camera-inbox-empty{padding:40px 25px;min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#8ca6ae}.camera-inbox-empty h2{font-size:16px;color:var(--cam-ink)}.camera-inbox-pick{min-height:500px}.camera-inbox-pick p{max-width:320px}.camera-inbox-backdrop{position:fixed;inset:0;z-index:6000;background:#153e4a55;backdrop-filter:blur(5px);display:grid;place-items:center;padding:20px}.camera-inbox-dialog{background:#fff;border:1px solid #e0e9e9;border-radius:20px;padding:30px;max-width:510px;width:100%;box-shadow:0 25px 80px #153e4a22;max-height:90vh;overflow:auto}.camera-inbox-dialog>svg{color:#2c9481}.camera-inbox-dialog>div{display:grid;gap:7px;padding:18px;background:#edf7f2;border:1px solid #cfe6dc;border-radius:12px;margin:19px 0}.camera-inbox-dialog>div span{font-size:12px;color:var(--cam-muted)}.camera-inbox-dialog footer{display:flex;gap:9px;justify-content:flex-end;margin-top:23px;flex-wrap:wrap}.camera-inbox .patient-smart-results{z-index:10}.camera-inbox .patient-smart-picker{font-size:13px}@media(max-width:1000px){.camera-inbox{padding:25px 22px}.camera-inbox-layout{grid-template-columns:300px minmax(0,1fr)}.camera-inbox-confirm-row{align-items:flex-start;flex-direction:column}.camera-inbox-preview{height:300px}}@media(max-width:720px){.camera-inbox{padding:20px 16px}.camera-inbox-heading{align-items:flex-start;gap:12px}.camera-inbox h1{font-size:26px}.camera-inbox-count{padding:12px;gap:2px 6px}.camera-inbox-count>svg{display:none}.camera-inbox-count strong{grid-column:2;font-size:25px}.camera-inbox-count>button{padding:7px;min-width:33px}.camera-inbox-toolbar label:not(.camera-inbox-search){flex:1}.camera-inbox-search{flex-basis:100%}.camera-inbox-toolbar input[type=date]{width:100%}.camera-inbox-toolbar>small{width:100%}.camera-inbox-layout{grid-template-columns:1fr}.camera-inbox-list{max-height:470px;overflow:auto}.camera-inbox-detail>header,.camera-inbox-association{padding:21px 18px}.camera-inbox-preview{height:290px}.camera-inbox-pick{min-height:280px}.camera-inbox-dialog{padding:23px}.camera-inbox-dialog footer button{width:100%}.camera-inbox-note{align-items:flex-start}}@media(prefers-reduced-motion:reduce){.camera-inbox *{animation:none!important;transition:none!important}}
@media(min-width:721px){.camera-inbox-list{max-height:720px;overflow:auto;overscroll-behavior:contain}.camera-inbox-list-title{position:sticky;top:0;z-index:1;background:#fff}.camera-inbox-pagination{position:sticky;bottom:0;background:#fff;z-index:1}}

.camera-inbox-view-toggle,.camera-inbox-trash{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #d5dfdc;border-radius:10px;background:#fff;padding:10px 12px;color:#526860;font:inherit;cursor:pointer}.camera-inbox-trash{margin-top:16px;color:#8d4c49;background:#fffafa;border-color:#eedbd9}.camera-inbox-trash:disabled{opacity:.45;cursor:not-allowed}
/* 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; }
}

/* Recruitment triage, contacts and campaign categories (5 November 2026) */
.hr-applications-workspace .hr-filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; }
.hr-applications-workspace .hr-filter-bar .hr-search { flex: 1 1 280px; min-width: 0; }
.hr-applications-workspace .hr-filter-bar .hr-filter-select { flex: 0 1 210px; min-width: 0; }
.hr-applications-workspace .hr-filter-bar .hr-filter-select select { width: 100%; min-width: 0; }
.hr-applications-workspace .hr-result-count { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-left: auto; padding-bottom: 6px; }
.hr-keyboard-hint { color: #a4adba; font-size: 9px; }
.hr-triage-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.hr-triage-strip button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; color: #3e4c60; border: 1px solid #dfe5ec; border-radius: 999px; background: #fff; font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; }
.hr-triage-strip button b { min-width: 18px; padding: 1px 6px; border-radius: 999px; background: #eef2f7; font-size: 10px; text-align: center; }
.hr-triage-strip button:hover { border-color: #b9cee7; }
.hr-triage-strip button.active { color: #fff; border-color: var(--hr-blue); background: var(--hr-blue); }
.hr-triage-strip button.active b { color: var(--hr-blue); background: #fff; }
.hr-triage-unavailable { display: flex; align-items: center; gap: 7px; margin: 4px 0 12px; color: #765718; font-size: 11.5px; }
.hr-triage { margin-top: 14px; padding: 13px 14px; border: 1px solid #dfe7f1; border-radius: 12px; background: #f9fbfe; }
.hr-triage-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hr-triage-head h3 { margin: 0; color: #26354a; font-size: 13px; }
.hr-star-button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; color: #6a5520; border: 1px solid #ecdcae; border-radius: 9px; background: #fffaf0; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.hr-star-button.active { color: #8a5d00; border-color: #e6b94a; background: #fff1c9; }
.hr-star-button.active svg { fill: #e6a700; color: #c58f00; }
.hr-status-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.hr-status-button { min-height: 34px; padding: 0 12px; color: #3e4c60; border: 1px solid #d8e1ec; border-radius: 9px; background: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.hr-status-button:hover:not(:disabled) { border-color: #9dbbe0; }
.hr-status-button:disabled { cursor: default; }
.hr-status-button.active { color: #fff; border-color: transparent; }
.hr-status-button.to_review.active { background: #5b6b80; }
.hr-status-button.shortlisted.active { background: #025ce2; }
.hr-status-button.interview.active { background: #7049b8; }
.hr-status-button.hired.active { background: #08766f; }
.hr-status-button.rejected.active { background: #b54141; }
.hr-note-field { display: grid; gap: 5px; margin-top: 11px; }
.hr-note-field span { color: #8792a2; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hr-note-field textarea { width: 100%; min-height: 70px; padding: 9px 10px; resize: vertical; color: #26354a; border: 1px solid #d8e1ec; border-radius: 9px; background: #fff; font: inherit; font-size: 12px; line-height: 1.45; box-sizing: border-box; }
.hr-triage-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.hr-triage-actions small { color: #7d899a; font-size: 10.5px; }
.hr-triage-actions .primary-button { min-height: 34px; padding: 0 13px; font-size: 11px; }
.hr-triage-actions .primary-button:disabled { opacity: .45; cursor: default; box-shadow: none; }
.hr-triage-error { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 9px; padding: 8px 10px; color: #8a2f2f; border: 1px solid #f0caca; border-radius: 9px; background: #fff5f5; font-size: 11.5px; }
.hr-triage-error button { margin-left: auto; padding: 5px 10px; color: #8a2f2f; border: 1px solid #e3a9a9; border-radius: 8px; background: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.hr-contact-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hr-contact-actions a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; max-width: 100%; padding: 0 10px; overflow: hidden; color: #075fc9; border: 1px solid #d5e4f6; border-radius: 9px; background: #f7fbff; font-size: 11px; font-weight: 650; text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.hr-contact-actions a:hover { border-color: #8db7e8; }
.hr-tag-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.hr-tag-list.compact { margin-top: 6px; }
.hr-tag { padding: 3px 8px; color: #4b5b70; border-radius: 999px; background: #eef2f7; font-size: 10px; font-weight: 650; }
.hr-tag-list.compact .hr-tag { font-size: 8.5px; padding: 2px 6px; }
.hr-decision-chip { color: #fff; }
.hr-rank-badges .hr-decision-chip.shortlisted { background: #025ce2; }
.hr-rank-badges .hr-decision-chip.interview { background: #7049b8; }
.hr-rank-badges .hr-decision-chip.hired { background: #08766f; }
.hr-rank-badges .hr-decision-chip.rejected { background: #b54141; }
.hr-inline-star { margin-left: 5px; vertical-align: -1px; fill: #e6a700; color: #c58f00; }
.hr-card-note { margin: 6px 0 0 !important; color: #6a5520 !important; font-style: italic; -webkit-line-clamp: 1 !important; }
.hr-candidate-card.rejected { opacity: .62; }
.hr-candidate-card.rejected.selected { opacity: 1; }
.hr-card-score.muted b { color: #8792a2; font-size: 14px; }
.hr-category-legend { margin: 0 0 12px; padding-left: 16px; color: #4e5f74; font-size: 12px; line-height: 1.55; }
.hr-category-legend li + li { margin-top: 5px; }
@media (max-width: 600px) {
  .hr-applications-workspace .hr-filter-bar .hr-filter-select { flex: 1 1 100%; }
  .hr-applications-workspace .hr-result-count { display: none; }
  .hr-status-button { flex: 1 1 calc(50% - 6px); }
  .hr-triage-actions { flex-direction: column; align-items: stretch; }
  .hr-triage-actions .primary-button { width: 100%; }
  .hr-contact-actions a { flex: 1 1 auto; justify-content: center; }
}

/* 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;
  flex-direction: column;
  align-items: stretch;
  width: calc(100% - 8px);
  height: auto;
  min-height: 44px;
  margin: 4px;
  gap: 2px;
  text-align: left;
  padding: 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 {
  min-width: 0;
  margin-left: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  color: oklch(0.552 0.016 285.938);
  font-size: 12px;
  line-height: 16px;
}

.search-result-name {
  display: block;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: start;
}

.search-result-details {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  column-gap: 8px;
  row-gap: 2px;
}

.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-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(760px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  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 > * {
  flex-shrink: 0;
}

.appointment-form-modal .modal-head {
  height: auto;
  min-height: 28px;
  padding-right: 24px;
  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: auto;
  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: repeat(2, minmax(0, 1fr));
  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: none;
  grid-auto-rows: auto;
  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"] {
  color: oklch(0.577 0.245 27.325);
}

.appointment-form-grid.creating > .appointment-form-field.wide,
.appointment-form-grid.editing > .appointment-form-field.wide {
  grid-column: 1 / -1;
}

.appointment-form-grid.editing {
  height: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: none;
  column-gap: 24px;
  row-gap: 24px;
}

.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: 2; }
.appointment-form-grid.editing > .appointment-form-end-field { grid-column: 2; grid-row: 2; }
.appointment-form-grid.editing > .appointment-form-category-field { grid-column: 1; grid-row: 3; }
.appointment-form-grid.editing > .appointment-form-status-field { grid-column: 2; grid-row: 3; }
.appointment-form-grid.editing > .appointment-form-note-field { grid-column: 1 / -1; grid-row: 4; }

.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: auto;
  position: sticky;
  bottom: -16px;
  z-index: 4;
  background: #fff;
  width: calc(100% + 48px);
  min-height: 53px;
  height: auto;
  margin: 0 -24px;
  padding: 16px 24px;
  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: auto;
  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;
}

/* Search results take their own space in the appointment form. */
.appointment-form-patient-field .patient-smart-results {
  position: static;
  margin-top: 8px;
  max-height: min(280px, 40dvh);
}

.appointment-form-modal .appointment-source-combobox-menu,
.appointment-form-modal .patient-source-dropdown-menu {
  max-width: 100%;
}

.modal.appointment-form-modal {
  max-height: calc(100dvh - 48px);
}

.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[data-search-status] {
  height: auto;
}

.appointment-source-combobox-menu[data-search-status] .appointment-source-combobox-options {
  height: 0;
  flex: 0 0 0;
  padding: 0;
}

.appointment-source-search-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.45;
  white-space: normal;
}

.appointment-source-search-status button {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #b8cbd9;
  border-radius: 6px;
  color: #17486a;
  background: #f4f9fc;
}

.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: static;
  display: block;
  z-index: 5;
  margin-top: 8px;
  width: 100%;
  min-width: 0;
  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, minmax(0, 1fr));
  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: 100%;
  min-width: 0;
  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-source-two-column.calendar-open > .charge-date-field {
  grid-column: 1 / -1;
}

.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;
  grid-template-columns: minmax(0, 1fr);
  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;
  min-width: 0;
}

.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: 100%;
  height: auto;
  min-height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
}

.document-source-dialog-modal.ordonnance-source-dialog-modal .modal-head h2 {
  width: 100%;
  padding-right: 24px;
  overflow-wrap: anywhere;
  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;
}

@media (max-width: 640px) {
  .document-source-dialog-modal.ordonnance-source-dialog-modal .modal-actions {
    height: auto;
    flex-wrap: wrap;
    margin: 12px 0 0;
    padding: 12px 0 0;
  }
  .document-source-dialog-modal.ordonnance-source-dialog-modal .modal-actions > button {
    flex: 1 1 100px;
  }
  .ordonnance-source-medication-name {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.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);
}

.operation-delete-confirm-modal .modal-head h2 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.operation-delete-confirm-modal .modal-head,
.catalog-medication-delete-modal .modal-head {
  margin-bottom: 0;
}

.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;
  row-gap: 8px;
  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 .modal-head h2 {
  width: 100%;
  margin: 0;
  color: oklch(0.141 0.005 285.823);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
}

.catalog-medication-delete-modal > p:not(.form-error) {
  text-align: center;
}

.catalog-medication-delete-modal > .form-error,
.catalog-medication-delete-modal .catalog-medication-delete-actions {
  margin-top: 8px;
}

.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-modal .modal-head h2,
  .catalog-medication-delete-modal > p:not(.form-error) {
    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;
}

.document-action-status {
  display: inline-block;
  max-width: 24rem;
  padding: 8px 12px;
  border-radius: 6px;
  background: #e8f5f2;
  color: #145b55;
  white-space: normal;
  font-size: 0.875rem;
  line-height: 1.45;
}

.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;
  container-type: inline-size;
  container-name: v1-print-settings;
}

.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;
}

.generic-print-history-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  align-items: start;
  gap: 12px 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e4e7ec;
  overflow-wrap: anywhere;
}

.generic-print-history-row > div { min-width: 0; }
.generic-print-history-row strong {
  display: block;
  color: #101828;
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
}
.generic-print-history-row p { margin: 6px 0; font-size: 13px; line-height: 1.5; }
.generic-print-history-row small { color: #667085; font-size: 12px; }
.generic-print-history-actions { display: grid; gap: 8px; }
.generic-print-history-row .generic-print-history-actions button {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.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;
}

.printing-settings-section > label {
  min-width: 0;
  max-width: 100%;
}

.printing-settings-section select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.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-badge.pending {
  background: #eef2f6;
  color: #475467;
  white-space: normal;
}

.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(160px, .9fr) minmax(200px, 1.4fr) 100px 120px 90px 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(130px, .8fr) minmax(180px, 1.4fr) 90px 110px 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: auto;
  min-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;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-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: auto;
  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: auto;
  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;
  min-width: 0;
  max-width: 100%;
  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;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  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 label.field-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.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;
  overflow-y: auto;
}

.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;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.reminders-day-switch,
.reminders-filter {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
  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: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #596579;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
}

.reminders-day-switch button:focus-visible,
.reminders-filter button:focus-visible {
  outline: 2px solid #1261d7;
  outline-offset: 2px;
}

.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 > .appointment-form-field,
  .appointment-form-grid.editing > .appointment-form-field,
  .appointment-form-grid.creating > .appointment-form-submit-error,
  .appointment-form-grid.editing > .appointment-form-submit-error,
  .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-grid .modal-actions {
    bottom: 0;
  }

  .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;
  }

  .catalog-medication-form-modal .catalog-category-menu {
    position: static;
    margin-top: 6px;
  }

  .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;
}

.patient-receipt-download-control {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 280px;
  min-width: 0;
}

.patient-receipt-download-control .document-action-error {
  display: block;
  color: #b42318;
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

.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: auto;
    min-height: 93px;
    flex: 0 0 auto;
    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: auto;
    min-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;
    min-width: 0;
    height: auto;
    min-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;
    min-width: 0;
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .primary-nav-user strong {
    width: 119px;
    height: auto;
    overflow: visible;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .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: space-between;
    gap: 8px;
    padding: 8px 12px;
    flex-shrink: 0;
  }

  .app-shell.mobile-nav-open .primary-nav-brand .dentalome-logo {
    min-width: 0;
    flex: 1;
    transform: none;
  }

  .app-shell.mobile-nav-open .primary-nav-brand .dentalome-logo-wordmark {
    display: block;
    width: 100%;
    max-width: 200px;
  }

  .app-shell.mobile-nav-open .primary-nav-brand .dentalome-logo-symbol {
    display: none;
  }

  .app-shell.mobile-nav-open .primary-nav-link > span,
  .app-shell.mobile-nav-open .nav-section-label {
    display: block;
  }

  .mobile-nav-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
    color: #344054;
  }

  .mobile-nav-close:focus-visible,
  .app-shell.mobile-nav-open .primary-nav a:focus-visible,
  .app-shell.mobile-nav-open .nav-logout:focus-visible {
    outline: 2px solid #025ce2;
    outline-offset: 2px;
  }

  .app-shell.mobile-nav-open .primary-nav-user-card,
  .app-shell.mobile-nav-open .primary-nav-user-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
    height: auto;
  }

  .app-shell.mobile-nav-open .primary-nav-user-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: auto;
    gap: 2px;
  }

  .app-shell.mobile-nav-open .primary-nav-user-copy strong,
  .app-shell.mobile-nav-open .primary-nav-user-copy > span {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 20px;
  }

  .app-shell.mobile-nav-open .primary-nav-avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .app-shell.mobile-nav-open .primary-nav-initials {
    display: block;
  }

  .app-shell.mobile-nav-open .primary-nav-user .nav-logout {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .app-shell.mobile-nav-open .primary-nav-scroll {
    flex: 1;
    padding: 14px 8px;
  }

  .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 {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 68px;
    flex-shrink: 0;
    padding: 8px 12px;
  }

  .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;
}

/* While the jaw picture loads (or failed), its box keeps the picture's exact proportions (the SVG viewBox), so nothing moves
   when it arrives; the status or the retry sits over that reserved box. */
.prothese-jaw-chart:empty {
  aspect-ratio: 1255.85 / 1871.23;
}

.prothese-jaw-loading {
  position: absolute;
  inset: 16px 16px 64px;
  display: grid;
  place-items: center;
  margin: 0;
  text-align: center;
  color: oklch(0.552 0.016 285.938);
  font-size: 14px;
}

.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;
  }
}

/* Keep the familiar side navigation on tablets; narrow screens reflow below. */
@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: 700px) {
  .dentalome-settings-workspace:not(.radiology-settings-workspace) {
    padding: 12px;
  }
  .dentalome-settings-workspace:not(.radiology-settings-workspace) .dentalome-settings-card {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 84px);
    gap: 0;
    padding: 0;
  }
  .dentalome-settings-workspace:not(.radiology-settings-workspace) .account-settings-nav {
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid #e4e4e7;
  }
  .dentalome-settings-workspace:not(.radiology-settings-workspace) .account-settings-nav nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: 4px;
  }
  .dentalome-settings-workspace:not(.radiology-settings-workspace) .account-settings-nav nav > a {
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 8px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .dentalome-settings-workspace:not(.radiology-settings-workspace) .account-settings-nav nav > a svg {
    flex-shrink: 0;
  }
  .dentalome-settings-workspace:not(.radiology-settings-workspace) .account-settings-content {
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    padding: 16px 12px;
  }
  .dentalome-settings-workspace:not(.radiology-settings-workspace) .printing-settings-panel {
    height: auto;
    overflow-y: visible;
    padding-right: 0;
  }
}

/* The two navigation rails can leave a narrow form even on a wide viewport.
   Reflow the printer controls to that actual width; never hide overflow. */
@container v1-print-settings (max-width: 760px) {
  .printing-profile-row,
  .qz-signing-details,
  .qz-signing-file-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .printing-settings-heading,
  .printing-settings-footer,
  .printing-section-title,
  .printing-template-row,
  .qz-signing-setup {
    align-items: stretch;
    flex-direction: column;
  }
  .printing-profile-name strong,
  .qz-signing-details span,
  .printing-template-row span {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .printing-calibration-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .printing-calibration-row > div {
    grid-column: 1 / -1;
  }
  .printing-calibration-row > div,
  .printing-calibration-row label {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .printing-agent-status,
  .printing-template-actions {
    flex-wrap: wrap;
  }
  .printing-agent-status > button {
    width: 100%;
    margin-left: 0;
  }
  .printing-test-button,
  .printing-availability {
    justify-self: start;
  }
  .printing-log-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .printing-log-row > * {
    grid-column: 1 / -1;
  }
}

@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;
  }
}

.dashboard-greeting-card {
  width: fit-content;
  max-width: 100%;
}

.dashboard-greeting-card h1,
.dashboard-greeting-card p {
  white-space: normal;
  overflow-wrap: anywhere;
}

.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-access-buttons { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.managed-supplier-access-modal { max-width: 580px; }
.supplier-access-options { display: grid; gap: 14px; margin: 20px 0; padding: 16px; border: 1px solid #dbe5f2; border-radius: 10px; }
.supplier-access-options legend { padding: 0 6px; color: #344054; font-weight: 600; }
.supplier-access-options label { display: flex; align-items: center; gap: 10px; line-height: 1.5; }
.supplier-access-options input { flex: 0 0 auto; width: 17px; height: 17px; }

.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%; }
}

/* V1 note recovery remains inside the same dialog at narrow/short viewports. */
.patient-note-source-modal.note-form-modal,
.patient-note-source-modal.note-form-modal:has(.note-title-field.has-error) {
  /* Recovery/validation content is variable. Never let it escape a fixed-height dialog. */
  height: auto;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.patient-note-source-modal .patient-note-source-form,
.patient-note-source-modal:has(.note-title-field.has-error) .patient-note-source-form {
  height: auto;
  min-height: 0;
  flex: 0 0 auto;
}
.note-form-modal .note-conflict-recovery {
  min-width: 0;
  padding: 14px;
  border: 1px solid #c5d8ee;
  border-radius: 8px;
  background: #f4f8fd;
  overflow-wrap: anywhere;
}

/* Keep the global editor in normal flow; the modal backdrop handles short/zoomed viewports. */
.note-form-modal:not(.patient-note-source-modal) {
  max-height: none;
}
.note-form-modal:not(.patient-note-source-modal) .note-form-grid {
  flex: 0 0 auto;
}
.appointment-source-combobox .combobox-option-row[data-keyboard-active="true"],
.agenda-practitioner-list button[data-keyboard-active="true"] {
  background: #e8f3f4;
  outline: 2px solid #167a79;
  outline-offset: -2px;
}
.agenda-page-head:has(.agenda-practitioner-combobox.open) {
  position: relative;
  z-index: 30;
}

.agenda-compact-actions { display: none; }
.agenda-compact-dialog { max-height: none; gap: 18px; }
.agenda-compact-dialog .agenda-cancelled-popover { position: static; width: 100%; box-shadow: none; }
.agenda-compact-dialog .mini-calendar { width: 100%; }
@media (max-width: 900px) {
  .agenda-arrows .agenda-filter-menu { left: auto; right: 0; transform: none; width: min(318px, calc(100vw - 80px)); }
  .agenda-weekend-control label { white-space: normal; }
  .agenda-compact-actions { display: grid; gap: 8px; margin-top: 14px; }
  .agenda-compact-actions button { text-align: left; white-space: normal; padding: 10px; border: 1px solid #d7e3e7; border-radius: 7px; background: white; }
  .modal.agenda-presence-dialog .agenda-presence-columns { grid-template-columns: minmax(0, 1fr); }
  .modal.agenda-presence-dialog .agenda-presence-column { min-height: 120px; }
}
.modal.agenda-presence-dialog .agenda-presence-status { width: 100%; min-width: 0; min-height: 36px; margin-top: 8px; padding: 6px; border: 1px solid #ccd7df; border-radius: 6px; background: #fff; font: inherit; }
@media (max-height: 600px) {
  .agenda-card {
    min-height: 420px;
  }
}
.note-form-modal .note-conflict-recovery p {
  margin: 0 0 12px;
}
.note-form-modal .note-conflict-recovery h3 {
  margin: 14px 0 8px;
}
.note-form-modal .note-conflict-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.note-form-modal .note-conflict-recovery button {
  max-width: 100%;
  padding: 8px 12px;
  white-space: normal;
  text-align: left;
}

/* 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; }
}

/* V1 Notes: long labels and touch actions stay inside the available panel. */
.dentalome-notes-workspace {
  container-type: inline-size;
  container-name: v1-notes;
}
.dentalome-notes-workspace .notes-mini-list,
.dentalome-notes-workspace .notes-mini-row,
.dentalome-notes-workspace .notes-category-list,
.dentalome-notes-workspace .notes-category-row,
.dentalome-notes-workspace .notes-category-select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.dentalome-notes-workspace .notes-mini-list {
  grid-auto-rows: minmax(69px, auto);
}
.dentalome-notes-workspace .notes-mini-row > button:first-child {
  flex: 1 1 0;
}
.dentalome-notes-workspace .notes-mini-row strong,
.dentalome-notes-workspace .notes-mini-category,
.dentalome-notes-workspace .notes-category-name {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.dentalome-notes-workspace .notes-category-row.active .notes-category-copy {
  padding-right: 0;
}
.dentalome-notes-workspace .notes-category-actions {
  position: static;
  transform: none;
  opacity: 1;
  justify-content: flex-end;
  padding: 0 8px 6px;
}
.dentalome-notes-workspace .notes-detail-header,
.dentalome-notes-workspace .notes-detail-leading,
.dentalome-notes-workspace .notes-detail-meta {
  height: auto;
  flex-wrap: wrap;
}
.dentalome-notes-workspace .notes-detail-category {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.dentalome-notes-workspace .notes-select-empty-copy {
  width: auto;
  max-width: 100%;
}
@container v1-notes (max-width: 1000px) {
  .dentalome-notes-workspace .page-header {
    height: auto;
    flex-wrap: wrap;
    gap: 12px;
  }
  .dentalome-notes-workspace .page-header-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .dentalome-notes-workspace .notes-parity-layout {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }
  .dentalome-notes-workspace .notes-list-panel {
    max-height: 24rem;
  }
  .dentalome-notes-workspace .notes-main-panel {
    min-height: 22rem;
  }
  .dentalome-notes-workspace .notes-category-panel {
    max-height: 24rem;
  }
  .dentalome-notes-workspace .notes-detail-header {
    flex-basis: auto;
  }
}

/* Receipt errors must expand the old fixed-height treatment header, never
   overlap its tooth controls or escape the card. Normal layout stays intact. */
.patient-treatment-layout .odontogram-panel.dentalome-odontogram-card:has(.patient-receipt-download-control [role="alert"]) {
  height: auto;
}
.patient-treatment-layout .odontogram-panel.dentalome-odontogram-card .treatment-card-top:has(.patient-receipt-download-control [role="alert"]) {
  height: auto;
  flex: 0 0 auto;
  align-items: flex-start;
  padding-bottom: 12px;
}
.patient-treatment-layout .odontogram-panel.dentalome-odontogram-card .treatment-summary-actions:has(.patient-receipt-download-control [role="alert"]) {
  height: auto;
  align-items: flex-start;
}

/* Native tooth buttons preserve the existing drawing but now work with Tab,
   Enter and Space. Selection and focus are separate visible states. */
.patient-workspace .tooth.dentalome-tooth {
  font: inherit;
  cursor: pointer;
}
.patient-workspace .tooth.dentalome-tooth:focus-visible {
  outline: 2px solid #025ce2;
  outline-offset: 2px;
}
.patient-workspace .odontogram:focus-visible {
  outline: 2px solid #025ce2;
  outline-offset: 2px;
}

/* The legacy 1191px treatment canvas must not hide controls on a tablet or
   a zoomed browser. Only the detailed tooth drawing scrolls horizontally. */
@media (max-width: 1599px) {
  .patient-workspace .patient-treatment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    gap: 16px;
  }
  .patient-workspace .patient-treatment-layout .odontogram-column,
  .patient-workspace .patient-treatment-layout .odontogram-panel.dentalome-odontogram-card,
  .patient-workspace .patient-treatment-layout .act-status-card,
  .patient-workspace .patient-treatment-layout .act-status-card.has-status-operations {
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    box-sizing: border-box;
  }
  .patient-workspace .patient-treatment-layout .odontogram-panel.dentalome-odontogram-card,
  .patient-workspace .patient-treatment-layout .act-status-card {
    padding: 16px;
    gap: 16px;
    overflow: visible;
  }
  .patient-workspace .patient-treatment-layout .treatment-card-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    height: auto;
    flex: 0 0 auto;
    gap: 16px;
    padding-bottom: 16px;
  }
  .patient-workspace .patient-treatment-layout .treatment-tabs {
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    height: auto;
    flex: 0 0 auto;
    flex-wrap: wrap;
    overflow: visible;
  }
  .patient-workspace .patient-treatment-layout .treatment-summary-actions {
    width: 100%;
    min-width: 0;
    height: auto;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }
  .patient-workspace .patient-treatment-layout .treatment-financials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    height: auto;
    flex: 1 1 290px;
    gap: 12px;
  }
  .patient-workspace .patient-treatment-layout .treatment-financials .metric {
    width: auto;
    min-width: 0;
    height: auto;
    grid-template-rows: auto auto;
  }
  .patient-workspace .patient-treatment-layout .treatment-financials .metric span {
    white-space: normal;
  }
  .patient-workspace .patient-treatment-layout .patient-receipt-download-control {
    max-width: 100%;
  }
  .patient-workspace .patient-treatment-layout .odontogram-stack {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    align-items: stretch;
    gap: 16px;
    transform: none;
  }
  .patient-workspace .patient-treatment-layout .odontogram-panel .odontogram-control-row,
  .patient-workspace .patient-treatment-layout .odontogram-panel .odontogram-control-row.top,
  .patient-workspace .patient-treatment-layout .odontogram-panel .odontogram-control-row.bottom {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 44px;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 12px;
  }
  .patient-workspace .patient-treatment-layout .child-schema-inline {
    margin: 0;
    min-height: 44px;
  }
  .patient-workspace .patient-treatment-layout .tooth-hover-menu {
    display: none;
  }
  .patient-workspace .patient-treatment-layout .odontogram {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    padding: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }
  .patient-workspace .patient-treatment-layout .odontogram-row {
    width: max-content;
    min-width: 100%;
    justify-content: space-between;
  }
  .patient-workspace .patient-treatment-layout .tooth-group {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    margin: 0;
  }
  .patient-workspace .patient-treatment-layout .tooth.dentalome-tooth {
    min-width: 44px;
    flex-shrink: 0;
  }
  .patient-workspace .patient-treatment-layout .act-status-card .add-act-button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }
  .patient-workspace .patient-treatment-layout .act-status-empty {
    min-height: 120px;
  }
}

/* A wide-screen receipt error must also grow the parent column, not merely
   the header inside the old 504px card. Keep ordinary desktop sizing intact. */
@media (min-width: 1600px) {
  .patient-workspace .patient-treatment-layout:has(.patient-receipt-download-control [role="alert"]),
  .patient-workspace .patient-treatment-layout:has(.patient-receipt-download-control [role="alert"]) .odontogram-column {
    height: auto;
  }
  .patient-workspace .patient-treatment-layout:has(.patient-receipt-download-control [role="alert"]) .odontogram-panel.dentalome-odontogram-card {
    height: auto;
    max-height: none;
  }
  .patient-workspace .patient-treatment-layout:has(.patient-receipt-download-control [role="alert"]) .odontogram-stack {
    height: auto;
    min-height: 361px;
    flex: 0 0 auto;
  }
}

/* Keep keyboard navigation inside the patient tab strip, not the dossier. */
.dentalome-patient-header .patient-header-tabs-shell {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
}

.dentalome-patient-header .patient-header-tabs a[role="tab"]:focus-visible {
  outline: 3px solid #025ce2;
  outline-offset: -3px;
}
/* Keep printer and tray controls usable when the settings navigation stacks. */
.printing-settings-panel .printing-calibration-row select {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 12px;
}
@media (max-width: 900px) {
  .printing-settings-workspace.dentalome-settings-workspace {
    padding: 16px;
  }
  .printing-settings-workspace .dentalome-settings-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: calc(100vh - 92px);
    gap: 0;
    padding: 0;
  }
  .printing-settings-workspace .account-settings-nav {
    width: auto;
    height: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid #e4e4e7;
  }
  .printing-settings-workspace .account-settings-nav nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .printing-settings-workspace .account-settings-nav nav > a {
    width: auto;
  }
  .printing-settings-workspace .account-settings-content {
    height: auto;
    padding: 18px;
  }
  .printing-settings-workspace .printing-profile-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    padding: 14px 0;
  }
}

.printing-calibration-row.printing-duplex-row { grid-template-columns: minmax(0, 1fr) 220px; }
@media (max-width: 900px) { .printing-calibration-row.printing-duplex-row { grid-template-columns: minmax(0, 1fr); } }

/* Patient intake: calm operating form, with clear identity and paper handoff. */
.patient-form-modal { width: min(840px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 40px); }
.patient-form-modal .patient-form-scroll { display: block; padding: 0 6px 8px 0; scrollbar-width: thin; }
.patient-intake-section { gap: 16px; padding: 20px 0; border-bottom: 1px solid #dde8ec; }
.patient-intake-section:first-child { padding-top: 8px; }
.patient-intake-section > label, .patient-intake-section > .patient-source-dropdown-field, .patient-intake-section > .patient-phone-field { min-width: 0; }
.patient-intake-section-head h3, .patient-intake-questionnaire-card h3 { margin: 0 0 4px; color: #183c47; font-size: 18px; line-height: 1.35; }
.patient-intake-section-head p, .patient-intake-questionnaire-card p { margin: 0; color: #546873; font-size: 14px; line-height: 1.5; }
.intake-eyebrow { display: block; margin: 0 0 5px; color: #0d746d; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.patient-form-modal .patient-intake-section .wide { grid-column: 1 / -1; }
.patient-form-modal .patient-intake-section label { display: flex; flex-direction: column; gap: 7px; color: #254550; font-size: 14px; font-weight: 500; }
.patient-form-modal .patient-intake-section input, .patient-form-modal .patient-intake-section select, .patient-form-modal .patient-intake-section textarea { width: 100%; min-width: 0; min-height: 44px; padding: 11px 12px; border: 1px solid #c4d5db; border-radius: 9px; background: white; color: #173743; font: inherit; font-size: 16px; }
.patient-form-modal .patient-intake-section .patient-phone-country-button { width: auto; }
.patient-form-modal .patient-intake-section input:focus-visible, .patient-form-modal .patient-intake-section select:focus-visible, .patient-intake-dialog :is(input,select,textarea,button,a):focus-visible, .patient-medical-summary :is(button,summary):focus-visible { outline: 3px solid #188a80; outline-offset: 3px; }
.patient-form-modal .patient-intake-section [data-invalid="true"] :is(input,select) { border-color: #b42338; }
.patient-identification-fields { min-width: 0; }
.patient-identification-fields > .form-grid { gap: 16px; }
.patient-form-modal .patient-guardian-choice { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; padding: 12px 14px; margin: 0 0 14px; border-radius: 8px; background: #eff7f5; font-weight: 500; line-height: 1.5; }
.patient-form-modal .patient-guardian-choice input { width: 18px; min-width: 18px; min-height: 18px; margin: 2px 0 0; padding: 0; accent-color: #0d766c; }
.patient-guardian-help { margin: 0 0 12px; color: #435f69; font-size: 13px; line-height: 1.5; }
.patient-identification-fields small { color: #596d76; font-size: 12px; font-weight: 400; line-height: 1.5; }
.patient-intake-questionnaire-card { margin: 20px 0 6px; padding: 18px; border: 1px solid #badbd5; border-radius: 12px; background: #f2faf8; }
.patient-intake-questionnaire-card > div:first-child { display: flex; align-items: flex-start; gap: 12px; }
.patient-intake-questionnaire-card svg { flex: 0 0 auto; color: #0e736b; }
.patient-intake-questionnaire-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 15px 0 10px; }
.patient-intake-questionnaire-actions button, .patient-medical-summary button, .patient-intake-dialog button, .intake-download { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 42px; padding: 10px 14px; border: 1px solid #c0d4d9; border-radius: 8px; background: white; color: #164c59; font: inherit; font-size: 14px; line-height: 1.35; cursor: pointer; text-decoration: none; white-space: normal; }
.patient-intake-questionnaire-actions button:hover, .patient-medical-summary button:hover, .patient-intake-dialog button:hover, .intake-download:hover { background: #edf7f5; border-color: #759f9e; }
.patient-intake-questionnaire-actions button:first-child { border-color: #77b5a9; }
.patient-intake-questionnaire-card > small { color: #4b696f; font-size: 12px; }
.patient-intake-dialog { width: min(1060px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #ccdcdf; border-radius: 16px; color: #1d3d48; background: white; box-shadow: 0 24px 90px #082c3d30; font-family: 'Work Sans', sans-serif; overflow: hidden; }
.patient-intake-dialog::backdrop { background: #102d3d73; }
.patient-intake-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 23px 26px; border-bottom: 1px solid #dce7ea; }
.patient-intake-dialog-head h2 { margin: 0 0 5px; font-size: 24px; line-height: 1.25; }
.patient-intake-dialog-head p { margin: 0; color: #5b7078; font-size: 14px; line-height: 1.5; }
.patient-intake-dialog-head button { flex: 0 0 auto; padding: 8px; min-height: 36px; width: 36px; border-color: transparent; }
.patient-questionnaire-content, .patient-intake-body { padding: 22px 26px; max-height: calc(100dvh - 232px); overflow: auto; overscroll-behavior: contain; }
.patient-questionnaire-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 20px; }
.patient-questionnaire-intro > div { max-width: 620px; }
.patient-questionnaire-intro p { margin: 0 0 5px; font-size: 14px; line-height: 1.5; }
.patient-questionnaire-intro label { min-width: 190px; flex: 0 0 230px; }
.patient-intake-dialog :is(label,input,select,textarea) { font-size: 16px; }
.patient-intake-dialog label { display: flex; flex-direction: column; gap: 8px; font-weight: 500; }
.patient-intake-dialog :is(input:not([type="radio"]),select,textarea) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #bfd1d7; border-radius: 8px; background: white; color: #21434e; font: inherit; font-size: 16px; }
.patient-intake-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 26px; border-top: 1px solid #dce7ea; background: #f8fbfb; }
.patient-intake-footer > div { display: flex; flex-wrap: wrap; gap: 9px; }
.patient-intake-dialog button.primary-button { color: white; background: #087b70; border-color: #087b70; }
.patient-intake-dialog button.primary-button:hover { background: #07665e; }
.patient-intake-dialog button:disabled, .patient-medical-summary button:disabled { opacity: .6; cursor: not-allowed; }
.intake-loading, .intake-notice { display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; }
.intake-notice { margin: 16px 0 0; padding: 13px 15px; border-radius: 9px; background: #edf7f1; color: #236346; font-size: 14px; }
.intake-notice small { display: block; margin-top: 3px; overflow-wrap: anywhere; }
.intake-notice svg { flex: 0 0 auto; margin-top: 2px; }
.intake-error { margin: 15px 0 0; padding: 13px 15px; border: 1px solid #edc4cb; border-radius: 9px; background: #fff7f7; color: #98273a; font-size: 14px; line-height: 1.5; }
.intake-error button { margin-inline-start: 10px; }
.intake-copy-confirm { margin-top: 14px; padding: 14px; border: 1px solid #ccdfe2; border-radius: 9px; }
.intake-copy-confirm p { margin: 0 0 10px; }
.intake-copy-confirm button + button { margin-inline-start: 10px; }
.questionnaire-collection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.questionnaire-entry-help { margin: 17px 0 24px; color: #576b74; font-size: 14px; line-height: 1.55; }
.questionnaire-answer-section { margin: 0 0 26px; }
.questionnaire-answer-section h3 { margin: 0; padding-bottom: 12px; color: #096e66; font-size: 18px; border-bottom: 2px solid #c8e5df; }
.questionnaire-answer { min-width: 0; margin: 0; padding: 17px 0; border: 0; border-bottom: 1px solid #e2eaed; }
.questionnaire-answer legend { padding-top: 17px; color: #264753; font-size: 15px; font-weight: 550; line-height: 1.55; }
.questionnaire-answer-hint { margin: 4px 0 12px; color: #576d74; font-size: 13px; line-height: 1.5; }
.questionnaire-answer-options { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.patient-intake-dialog .questionnaire-answer-options label { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; min-height: 40px; padding: 7px 11px; border: 1px solid #cbdade; border-radius: 7px; background: white; color: #35525f; font-size: 14px; cursor: pointer; }
.questionnaire-answer-options label:has(input:checked) { border-color: #1c8e80; background: #eaf7f2; }
.questionnaire-answer-options input { width: 17px; height: 17px; margin: 0; accent-color: #087b70; }
.patient-intake-dialog .questionnaire-answer-detail { margin-top: 13px; font-size: 14px; font-weight: 400; }
.questionnaire-confidential-note small { color: #627780; font-size: 13px; font-weight: 400; line-height: 1.5; }
.patient-medical-summary { margin: 18px 0 22px; padding: 18px 22px; border: 1px solid #d0e2e4; border-radius: 12px; background: white; }
.patient-medical-summary-head, .patient-medical-summary-head > div { display: flex; align-items: flex-start; gap: 12px; }
.patient-medical-summary-head { justify-content: space-between; }
.patient-medical-summary-head > div:last-child { flex-wrap: wrap; justify-content: flex-end; }
.patient-medical-summary-head > div > svg { color: #128477; margin-top: 2px; flex: 0 0 auto; }
.patient-medical-summary h2 { margin: 0 0 4px; font-size: 18px; color: #1d4651; }
.patient-medical-summary-head p, .patient-medical-empty { margin: 0; color: #5c7077; font-size: 13px; line-height: 1.5; }
.patient-medical-empty { margin-top: 13px; }
.patient-medical-summary-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; padding-top: 16px; }
.patient-medical-summary-items > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.patient-medical-summary-items strong { font-size: 13px; color: #244c57; }
.patient-medical-summary-items span, .patient-medical-summary-items p { margin: 0; color: #5a6d76; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.patient-medical-all-answers { margin-top: 15px; padding-top: 13px; border-top: 1px solid #e0e9ec; }
.patient-medical-all-answers summary { display: flex; align-items: center; gap: 7px; width: fit-content; min-height: 36px; color: #116f68; font-size: 14px; font-weight: 550; cursor: pointer; }
.patient-medical-all-answers dl { margin: 13px 0; }
.patient-medical-all-answers dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #e6edef; font-size: 13px; line-height: 1.5; }
.patient-medical-all-answers dt { font-weight: 550; }
.patient-medical-all-answers dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.patient-medical-all-answers dd p { margin: 5px 0 0; }
.questionnaire-provenance { font-size: 12px; color: #647780; line-height: 1.5; overflow-wrap: anywhere; }
.medical-additional-note { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .patient-form-modal { width: calc(100vw - 20px); max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 18px; }
  .patient-intake-section, .patient-identification-fields > .form-grid { grid-template-columns: minmax(0, 1fr); }
  .patient-intake-section-head h3 { font-size: 17px; }
  .patient-intake-questionnaire-card { padding: 14px; }
  .patient-intake-questionnaire-actions { flex-direction: column; }
  .patient-intake-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .patient-intake-dialog-head { padding: 18px; }
  .patient-intake-dialog-head h2 { font-size: 21px; }
  .patient-questionnaire-content, .patient-intake-body { padding: 18px; max-height: calc(100dvh - 240px); }
  .patient-questionnaire-intro { flex-direction: column; gap: 14px; }
  .patient-questionnaire-intro label { flex: 0 0 auto; width: 100%; }
  .patient-intake-footer { padding: 14px 18px; align-items: stretch; }
  .patient-intake-footer > div { width: 100%; }
  .patient-intake-footer > div > :is(a,button) { flex: 1 1 160px; }
  .questionnaire-collection-grid, .patient-medical-summary-items, .patient-medical-all-answers dl > div { grid-template-columns: minmax(0, 1fr); }
  .patient-medical-summary { padding: 16px; }
  .patient-medical-summary-head { flex-direction: column; gap: 13px; }
  .patient-medical-summary-head > div:last-child { justify-content: flex-start; }
  .patient-medical-summary-head button { min-height: 44px; }
}

/* Patient documents: keep error messages below, not between, action buttons. */
.patient-document-table .row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.patient-document-table .row-actions .form-error,
.patient-document-table .row-actions .document-action-status {
  order: 1;
  flex: 1 0 100%;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}

/* A calm, read-only medical-history shortcut beside the patient identity. */
.dentalome-patient-identity .patient-title-line:has(.patient-medical-alert-trigger) { flex-wrap: wrap; row-gap: 8px; }
.dentalome-patient-identity .patient-title-line:has(.patient-medical-alert-trigger) .patient-display-name { white-space: normal; overflow-wrap: anywhere; }
.patient-medical-alert-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; min-height: 40px; min-width: 40px; padding: 6px 10px 6px 6px; border: 1px solid #e7c88d; border-radius: 10px; color: #754610; background: #fff7e7; font: inherit; font-size: 12px; font-weight: 600; line-height: 1.25; cursor: pointer; transition: background-color 120ms ease, border-color 120ms ease; }
.patient-medical-alert-trigger:hover { background: #ffefd3; border-color: #caa367; }
.patient-medical-alert-trigger:active { background: #ffe7be; }
.patient-medical-alert-trigger:focus-visible { outline: 3px solid #187e76; outline-offset: 3px; }
.patient-medical-alert-symbol { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #d8b775; border-radius: 50%; background: #ffedc6; color: #70400c; font-size: 19px; font-weight: 700; line-height: 1; }
.patient-intake-dialog[open]:has(> .patient-medical-alert-dialog) { display: flex; flex-direction: column; width: min(780px, calc(100vw - 32px)); }
.patient-intake-dialog:has(> .patient-medical-alert-dialog) .patient-intake-dialog-head { flex: 0 0 auto; padding: 24px 28px 21px; }
.patient-intake-dialog:has(> .patient-medical-alert-dialog) .patient-intake-dialog-head h2 { color: #183f49; font-size: 23px; letter-spacing: -.025em; }
.patient-intake-dialog:has(> .patient-medical-alert-dialog) .patient-intake-dialog-head p { overflow-wrap: anywhere; }
.patient-medical-alert-dialog { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.patient-medical-alert-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 25px 28px 28px; }
.patient-medical-alert-intro { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 17px; }
.patient-medical-alert-intro-icon { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border: 1px solid #efd7a6; border-radius: 13px; background: #fff4de; color: #845015; font-size: 27px; font-weight: 650; line-height: 1; }
.patient-medical-alert-intro h3 { margin: 1px 0 6px; color: #1d4650; font-size: 19px; line-height: 1.35; letter-spacing: -.015em; }
.patient-medical-alert-intro p { margin: 0; color: #5c7079; font-size: 14px; line-height: 1.55; }
.patient-medical-alert-summary { display: flex; flex-wrap: wrap; gap: 8px 17px; margin: 0 0 24px; padding: 12px 0 16px; border-bottom: 1px solid #e0e9eb; color: #48616b; font-size: 13px; line-height: 1.5; }
.patient-medical-alert-summary strong { color: #214a55; font-weight: 650; }
.patient-medical-alert-summary-unknown { color: #78541e; }
.patient-medical-alert-summary-unknown strong { color: inherit; }
.patient-medical-alert-section { margin-top: 25px; }
.patient-medical-alert-section-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #18786e; }
.patient-medical-alert-section-heading svg { flex: 0 0 auto; }
.patient-medical-alert-section-heading h3 { margin: 0; color: #224c56; font-size: 16px; line-height: 1.4; font-weight: 600; }
.patient-medical-alert-section-help { margin: -4px 0 13px; color: #60757c; font-size: 13px; line-height: 1.5; }
.patient-medical-alert-rows { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.patient-medical-alert-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 15px 17px; border: 1px solid #d7e5e6; border-inline-start: 3px solid #77ada4; border-radius: 9px; background: #fbfdfc; }
.patient-medical-alert-row-unknown { border-color: #eadcbd; border-inline-start-color: #cfac66; background: #fffdf8; }
.patient-medical-alert-row dt { margin: 0; color: #234650; font-size: 14px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.patient-medical-alert-row dd { margin: 0; color: #435e68; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.patient-medical-alert-row dd p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.patient-medical-alert-answer { display: inline-block; vertical-align: baseline; padding: 3px 8px; border-radius: 5px; background: #e9f4f0; color: #235f51; font-size: 12px; font-weight: 550; line-height: 1.45; }
.patient-medical-alert-answer-unknown { background: #fff0d2; color: #775218; }
.patient-medical-alert-answer-information { background: #edf2f4; color: #47616b; }
.patient-medical-alert-answer-detail { margin-inline-start: 8px; color: #6e6552; font-size: 13px; }
.patient-medical-alert-note-source { display: block; margin-top: 9px; color: #5e747e; font-size: 12px; line-height: 1.5; }
.patient-medical-alert-section-legacy .patient-medical-alert-row { border-inline-start-color: #adbfc4; background: #f8fafb; }
.patient-medical-alert-section-legacy .patient-medical-alert-section-heading { color: #64828a; }
.patient-medical-alert-provenance { display: flex; align-items: flex-start; gap: 9px; margin-top: 23px; padding: 13px 14px; border: 1px solid #e0e9eb; border-radius: 8px; background: #f6f9f9; color: #5e747e; }
.patient-medical-alert-provenance svg { flex: 0 0 auto; margin-top: 2px; color: #698a90; }
.patient-medical-alert-provenance p { margin: 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.patient-medical-alert-footer { flex: 0 0 auto; padding: 16px 28px; }
.patient-medical-alert-footer p { flex: 1 1 240px; margin: 0; color: #64767e; font-size: 12px; line-height: 1.5; }
.patient-medical-alert-footer button { min-width: 108px; min-height: 44px; }
.patient-medical-alert-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 38px 8px 42px; color: #197b70; }
.patient-medical-alert-state h3 { margin: 15px 0 7px; color: #224c56; font-size: 18px; line-height: 1.4; }
.patient-medical-alert-state p { max-width: 440px; margin: 0; color: #58717b; font-size: 14px; line-height: 1.65; }
.patient-medical-alert-state button { margin-top: 19px; }
.patient-medical-alert-error > svg { color: #8a651d; }
@media (max-width: 700px) {
  .patient-medical-alert-trigger { min-height: 42px; min-width: 42px; padding: 6px; }
  .patient-medical-alert-trigger-label { display: none; }
  .patient-intake-dialog[open]:has(> .patient-medical-alert-dialog) { width: calc(100vw - 16px); }
  .patient-intake-dialog:has(> .patient-medical-alert-dialog) .patient-intake-dialog-head { padding: 18px; gap: 12px; }
  .patient-intake-dialog:has(> .patient-medical-alert-dialog) .patient-intake-dialog-head h2 { font-size: 20px; }
  .patient-medical-alert-body { padding: 19px 18px 23px; }
  .patient-medical-alert-intro { gap: 11px; }
  .patient-medical-alert-intro h3 { font-size: 17px; }
  .patient-medical-alert-intro-icon { width: 36px; height: 36px; flex-basis: 36px; font-size: 24px; border-radius: 10px; }
  .patient-medical-alert-summary { gap: 7px 12px; }
  .patient-medical-alert-row { padding: 14px; }
  .patient-medical-alert-footer { padding: 14px 18px; }
  .patient-medical-alert-footer p { flex-basis: 100%; }
  .patient-medical-alert-footer button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .patient-medical-alert-trigger { transition: none; }
  .patient-medical-alert-state .spin { animation: none; }
}

/* Keep patient-document actions readable instead of squeezing the last column. */
.patient-documents-card { min-width: 0; max-width: 100%; }
.patient-documents-card .dentalome-patient-table-scroll { max-width: 100%; overflow-x: auto; }
.patient-documents-card .patient-document-table { table-layout: auto !important; width: 100%; min-width: 780px; }
.patient-documents-card .patient-document-table th,
.patient-documents-card .patient-document-table td { width: auto !important; word-break: normal; overflow-wrap: normal; vertical-align: middle; }
.patient-documents-card .patient-document-table .patient-document-action-cell { width: 340px !important; min-width: 340px; white-space: normal; }
.patient-documents-card .patient-document-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 7px; width: 100%; }
.patient-document-actions .document-labelled-action { display: inline-flex; align-items: center; gap: 6px; width: auto !important; height: 34px; padding: 7px 10px; border: 1px solid #dce4ee; border-radius: 7px; white-space: nowrap; font-size: 12px; }
.patient-document-actions .document-labelled-action:hover { background: #edf4ff; }
.patient-document-actions .document-labelled-action.danger { color: #b91c1c; }
.patient-document-actions .form-error,.patient-document-actions .document-action-status { flex-basis: 100%; white-space: normal; }

/* Patient file: "Consultation" is the entry to the guided consultation, shown as a button (12 Nov 2026). */
.dentalome-patient-header .patient-header-tabs a[data-patient-tab="consultation"]:not(.active):not([aria-disabled="true"]) { margin: 6px 10px 6px 0; padding-inline: 16px; border-radius: 10px; background: #0755e9; color: #fff; font-weight: 700; box-shadow: 0 1px 2px rgba(7, 85, 233, 0.24); }
.dentalome-patient-header .patient-header-tabs a[data-patient-tab="consultation"]:not(.active):not([aria-disabled="true"]):hover { background: #0646c2; color: #fff; }
.dentalome-patient-header .patient-header-tabs a[data-patient-tab="consultation"]:not(.active):not([aria-disabled="true"]) svg { color: #fff; }
/* 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;
}

/* The two laboratory tabs and their actions must remain usable on small screens. */
@media (max-width: 767px) {
  .laboratories-workspace .page-header p { white-space: normal; }
  .laboratories-workspace .catalog-toolbar-row { flex-wrap: wrap; gap: 12px; }
  .laboratories-workspace .catalog-toolbar-row > .dentalome-blue-button {
    width: 100%; height: auto; min-height: 44px; justify-content: center; white-space: normal;
  }
  .laboratories-workspace .dentalome-segmented-tabs { max-width: 100%; }
  .laboratories-workspace .dentalome-table-wrap table { table-layout: fixed; }
  .laboratories-workspace .dentalome-table-wrap th:first-child,
  .laboratories-workspace .dentalome-table-wrap td:first-child { white-space: normal; overflow-wrap: anywhere; }
  .laboratories-workspace .dentalome-table-wrap th:last-child,
  .laboratories-workspace .dentalome-table-wrap td:last-child { width: 104px; }
  .laboratories-tab-nature-acte .dentalome-table-wrap th:nth-child(2),
  .laboratories-tab-nature-acte .dentalome-table-wrap td:nth-child(2) { width: 72px; }
  .laboratories-workspace .row-actions .plain-icon.small { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }
}
.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; }
}

/* Appointment fields use div/span wrappers; reset their desktop grid placements too. */
@media (max-width: 767px) {
  .appointment-form-modal .appointment-form-grid.creating,
  .appointment-form-modal .appointment-form-grid.editing {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 22px;
  }
  .appointment-form-modal .appointment-form-grid.creating > *,
  .appointment-form-modal .appointment-form-grid.editing > * {
    grid-column: 1 / -1;
    grid-row: auto;
    min-width: 0;
    max-width: 100%;
  }
  .appointment-form-modal .appointment-form-field { grid-template-columns: minmax(0, 1fr); }
  .appointment-form-modal .appointment-form-patient-field .combobox-trigger { width: 100%; }
  .appointment-form-modal .appointment-form-grid .modal-actions {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 16px 0 12px;
    flex-wrap: wrap;
  }
  .appointment-form-modal .appointment-form-footer-actions { flex-wrap: wrap; }
  .appointment-form-modal .appointment-form-submit-actions { margin-left: auto; flex-wrap: wrap; }
  .appointment-form-modal .appointment-form-submit-actions > button { min-height: 44px; }
}

/* Embedded calendars must not inherit the patient section's clinical-table cells. */
.dentalome-date-calendar .dentalome-date-calendar-grid th,
.dentalome-date-calendar .dentalome-date-calendar-grid td {
  padding: 0;
  width: 32px;
}
.dentalome-date-calendar .dentalome-date-calendar-grid th {
  height: 19.2px;
  font-size: 12.8px;
  line-height: 19.2px;
  white-space: nowrap;
}
.dentalome-date-calendar .dentalome-date-calendar-grid td {
  height: 32px;
  font-size: 16px;
}

/* Save/conflict errors need real space, not the eight-pixel spacer above actions. */
.appointment-form-modal .appointment-form-grid > .appointment-form-submit-error {
  grid-column: 1 / -1;
  grid-row: auto;
  align-self: start;
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 6px;
  background: #fff0f0;
  overflow-wrap: anywhere;
}

/* Older cached ClinicalObserver styles can load after the current stylesheet.
   Keep appointment edit rows natural regardless of that stylesheet order. */
.modal.appointment-form-modal .appointment-form-grid.editing {
  grid-template-rows: none;
}
.modal.appointment-form-modal .appointment-form-grid.editing > .appointment-form-submit-error {
  grid-row: auto;
}

/* Let the appointment category list grow within the scrollable form, so every
   category remains reachable when the trigger is near the viewport edge. */
.modal.appointment-form-modal .appointment-category-dropdown-field .patient-source-dropdown-menu {
  position: static;
  max-height: min(240px, 40dvh);
  margin: 4px 0 0;
}

/* Numbered devis tabs must scroll inside their card, never move the patient page. */
@media (max-width: 900px) {
  .patient-operations-card .treatment-plan-tabs {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }
  .patient-operations-card .treatment-plan-tabs button {
    flex: 0 0 auto;
    height: 44px;
    min-height: 44px;
  }
}
/* Message templates: stack the list and editor on narrow screens. */
@media (max-width: 767px) {
  .message-templates-workspace {
    height: auto;
    overflow: visible;
  }

  .message-templates-workspace .page-header {
    height: auto;
  }

  .message-templates-workspace .page-header p,
  .message-templates-workspace .template-list-pane h2 {
    width: auto;
    max-width: 100%;
  }

  .message-templates-workspace .template-settings-shell {
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .message-templates-workspace .template-list-pane,
  .message-templates-workspace .template-detail-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }

  .message-templates-workspace .template-list-pane {
    padding-bottom: 16px;
  }

  .message-templates-workspace .template-list-scroll {
    width: 100%;
    max-height: min(320px, 40dvh);
    margin: 0;
    overflow-y: auto;
  }

  .message-templates-workspace .template-list-table {
    display: block;
  }

  .message-templates-workspace .template-list-stack {
    width: 100%;
    padding-right: 0;
  }

  .message-templates-workspace .template-list-title {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .message-templates-workspace .template-detail-toolbar {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    gap: 8px;
  }

  .message-templates-workspace .template-detail-toolbar h2 {
    margin: 0;
  }

  .message-templates-workspace .page-header .primary-button.compact,
  .message-templates-workspace .template-detail-toolbar .primary-button.compact,
  .message-templates-workspace .template-detail-empty .primary-button.compact {
    max-width: 100%;
    height: auto;
    min-height: 44px;
    white-space: normal;
  }

  .message-templates-workspace .message-template-form input,
  .message-templates-workspace .message-template-form textarea {
    min-width: 0;
    font-size: 16px;
  }

  .message-templates-workspace .template-list-empty,
  .message-templates-workspace .template-detail-empty,
  .message-templates-workspace .template-detail-select-empty {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .message-templates-workspace .template-clinical-summary {
    grid-template-columns: minmax(0, 1fr);
    margin: 0 0 16px;
    overflow-wrap: anywhere;
  }

  .message-templates-workspace .template-placeholder-warning p {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
/* Historical doctor detail: contain the cards; scroll wide tables locally. */
@media (max-width: 900px) {
  .admin-medecin-detail-workspace > .admin-medecin-current-section {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .admin-medecin-detail-workspace .dentalome-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
  }
}

/* Keep every deletion recovery action reachable on narrow screens. */
.prothese-delete-confirm-modal .modal-actions { flex-wrap: wrap; }
@media (max-width: 540px) {
  .prothese-delete-confirm-modal .modal-actions > button {
    flex: 1 1 120px;
    min-width: 0;
    min-height: 44px;
    white-space: normal;
  }
}
@media (min-width: 901px) {
  /* Keep the existing 72 px grid track while the navigation expands over the workspace. */
  .app-shell.sidebar-collapsed > .app-body > #primary-navigation {
    --nav-width: 72px;
    --nav-label-opacity: 0;
    --nav-label-offset: -5px;
    --nav-label-delay: 0ms;
    --nav-logout: hidden;
    --nav-shadow: transparent;
    width: var(--nav-width);
    min-width: 0;
    max-width: none;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
    box-shadow: 12px 0 30px var(--nav-shadow);
    transition: width 220ms cubic-bezier(.22, .68, .23, 1), box-shadow 220ms ease;
  }

  .app-shell.sidebar-pinned > .app-body > #primary-navigation,
  .app-shell.sidebar-collapsed > .app-body > #primary-navigation:has(:focus-visible) {
    --nav-width: 256px;
    --nav-label-opacity: 1;
    --nav-label-offset: 0px;
    --nav-label-delay: 60ms;
    --nav-logout: visible;
    --nav-shadow: rgb(35 51 77 / .13);
  }

  .app-shell.sidebar-collapsed > .app-body > #primary-navigation .primary-nav-brand {
    width: 71px;
    justify-content: center;
    padding: 0;
  }

  #primary-navigation .primary-nav-brand .dentalome-logo {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    transform: none;
  }

  #primary-navigation .primary-nav-brand .dentalome-logo-wordmark {
    display: none;
  }

  #primary-navigation .primary-nav-brand .dentalome-logo-symbol {
    display: block;
    width: 34px;
    height: 34px;
  }

  #primary-navigation .primary-nav-scroll {
    padding: 8px 8px 10px;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
  }

  #primary-navigation .nav-section {
    margin-block-end: 13px;
  }

  #primary-navigation .nav-section-label {
    display: flex;
    height: 24px;
    padding-inline: 11px;
    white-space: nowrap;
  }

  #primary-navigation .primary-nav-link {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    justify-content: start;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }

  #primary-navigation .primary-nav-link > svg {
    justify-self: center;
    flex-shrink: 0;
  }

  #primary-navigation .primary-nav-link > span {
    display: block;
    padding-inline-end: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #primary-navigation :is(.nav-section-label, .primary-nav-link > span, .primary-nav-user-copy, .nav-logout) {
    opacity: var(--nav-label-opacity);
    transform: translateX(var(--nav-label-offset));
    transition: opacity 130ms ease var(--nav-label-delay), transform 165ms ease var(--nav-label-delay);
  }

  #primary-navigation .primary-nav-user {
    display: flex;
    width: 100%;
    min-height: 62px;
    padding: 7px 8px;
  }

  #primary-navigation .primary-nav-user-card {
    min-height: 46px;
    min-width: 0;
    gap: 4px;
    padding: 0;
    overflow: hidden;
  }

  #primary-navigation .primary-nav-user-main {
    width: auto;
    flex: 1 1 auto;
    min-width: 54px;
    min-height: 0;
    gap: 0;
  }

  #primary-navigation .primary-nav-user .primary-nav-avatar {
    display: grid;
    margin-inline: 11px;
  }

  #primary-navigation .primary-nav-user .primary-nav-initials,
  #primary-navigation .primary-nav-user-copy > span {
    display: block;
  }

  #primary-navigation .primary-nav-user-copy,
  #primary-navigation .primary-nav-user-copy strong {
    width: auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #primary-navigation .nav-logout {
    margin-inline-end: 7px;
    visibility: var(--nav-logout);
  }

  #primary-navigation .primary-nav-link:focus-visible,
  #primary-navigation .nav-logout:focus-visible {
    outline: 2px solid #025ce2;
    outline-offset: -2px;
  }
}

@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  .app-shell.sidebar-collapsed > .app-body > #primary-navigation:hover {
    --nav-width: 256px;
    --nav-label-opacity: 1;
    --nav-label-offset: 0px;
    --nav-label-delay: 60ms;
    --nav-logout: visible;
    --nav-shadow: rgb(35 51 77 / .13);
  }
}

@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .app-shell.sidebar-collapsed > .app-body > #primary-navigation,
  #primary-navigation :is(.nav-section-label, .primary-nav-link > span, .primary-nav-user-copy, .nav-logout) {
    transition: none;
  }
}
.secretary-access {
  --sa-ink: #153b52; --sa-muted: #5a6d77; --sa-blue: #005fe5; --sa-line: #d9e2e8;
  position: fixed; inset: 0; z-index: 2147483000; overflow: auto; display: grid; place-items: center; align-items: safe center;
  padding: 36px; background: #eef2f5; color: var(--sa-ink); font-family: "Work Sans", system-ui, sans-serif;
}
html[data-nfc-private="blocked"] body > * { visibility: hidden !important; }
html[data-nfc-private="blocked"] [data-secretary-access-root="true"], html[data-nfc-private="blocked"] [data-secretary-access-root="true"] * { visibility: visible !important; }
html[data-nfc-private="blocked"] [data-nfc-public="true"], html[data-nfc-private="blocked"] [data-nfc-public="true"] * { visibility: visible !important; }
.secretary-badge-panel { display:flex; gap:15px; align-items:flex-start; padding:18px; border:1px solid #badbd6; border-radius:14px; background:#eff9f6; margin-bottom:22px; }
.secretary-badge-icon { display:grid; place-items:center; width:48px; height:48px; flex:0 0 48px; color:#08746c; border:1px solid #c8e5de; background:#fff; border-radius:12px; }
.secretary-badge-panel strong { font-size:16px; color:#145950; }
.secretary-badge-panel p { margin:5px 0 9px; color:#40665f; font-size:12px; line-height:1.6; }
.secretary-badge-panel small { display:flex; gap:7px; align-items:center; color:#496962; font-size:11px; }
.secretary-reader-dot { width:7px; height:7px; border-radius:50%; background:#91a3a0; }
.secretary-reader-dot.ready { background:#008378; }
.secretary-auth-divider { display:flex; align-items:center; gap:12px; font-size:11px; color:var(--sa-muted); margin:18px 0; }
.secretary-auth-divider:before,.secretary-auth-divider:after { content:""; height:1px; background:var(--sa-line); flex:1; }
.nfc-draft-reminder { position:fixed; right:24px; bottom:24px; z-index:1000; display:flex; align-items:center; gap:8px; padding:12px 17px; color:#145950; background:#eff9f6; border:1px solid #badbd6; border-radius:12px; box-shadow:0 4px 20px #153b5217; cursor:pointer; }
.nfc-draft-overlay { position:fixed; inset:0; z-index:2147482000; display:grid; place-items:center; overflow:auto; padding:24px; background:#102b4090; }
.nfc-draft-card { width:min(100%,620px); max-height:90dvh; overflow:auto; padding:28px; border-radius:20px; background:#fff; font-family:"Work Sans",system-ui,sans-serif; color:#153b52; }
.nfc-draft-card header { display:flex; justify-content:space-between; gap:20px; }.nfc-draft-card h2 { font-size:22px; margin:6px 0 16px; }
.nfc-draft-card small { font-size:11px; color:#5a6d77; }.nfc-draft-card p { font-size:13px; line-height:1.65; white-space:pre-wrap; }
.nfc-draft-card button { border:1px solid #d9e2e8; background:#fff; color:#153b52; padding:10px 13px; border-radius:9px; cursor:pointer; }
.nfc-draft-values article { border-top:1px solid #e1e8ec; padding:12px 0; }.nfc-draft-values strong { font-size:12px; }.nfc-draft-values p { margin:6px 0; }
.nfc-draft-card footer { display:flex; gap:10px; flex-wrap:wrap; margin:18px 0; }.nfc-draft-card footer button:first-child { background:#08746c; color:#fff; border-color:#08746c; }
.nfc-draft-card button:focus-visible,.nfc-draft-reminder:focus-visible { outline:3px solid #005fe5; outline-offset:3px; }
.secretary-access.is-locked { background: #eaf0f4; backdrop-filter: blur(20px); }
.secretary-access, .secretary-access * { box-sizing: border-box; }
.secretary-access-frame { display: grid; grid-template-columns: 0.95fr 1fr; width: min(100%, 980px); min-height: 740px; border: 1px solid #dce5eb; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 20px 70px #153b5214; outline: none; }
.secretary-access-identity { display: flex; flex-direction: column; justify-content: space-between; padding: 52px 44px 42px; background: #153b52; color: #fff; }
.secretary-access-brand { display: flex; align-items: center; gap: 13px; width: 230px; max-width: 100%; color: white; }
.secretary-access-brand > svg { width: 250px; height: auto; max-width: 100%; }
.secretary-access-intro h2 { margin: 18px 0; font-size: clamp(28px, 3vw, 39px); font-weight: 600; letter-spacing: -1.1px; line-height: 1.2; color: #fff; }
.secretary-access-eyebrow { display: block; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; line-height: 1.6; }
.secretary-access-intro .secretary-access-eyebrow { color: #afc8d8; }
.secretary-access-intro p { max-width: 31ch; margin: 0; font-size: 15px; line-height: 1.7; color: #d3e2eb; }
.secretary-access-privacy { display: flex; align-items: flex-start; gap: 12px; padding-top: 22px; border-top: 1px solid #ffffff26; font-size: 12px; line-height: 1.6; color: #d3e2eb; }
.secretary-access-privacy svg { flex: 0 0 auto; margin-top: 1px; }
.secretary-access-form { padding: 36px 44px 26px; }
.secretary-access-form header { margin-bottom: 26px; }
.secretary-access-lock { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 16px; border: 1px solid #dce6ee; border-radius: 12px; background: #f5f8fb; color: #2a5470; }
.secretary-access-form .secretary-access-eyebrow { color: var(--sa-muted); }
.secretary-access-form h1 { margin: 7px 0 9px; font-size: 27px; line-height: 1.23; letter-spacing: -0.6px; font-weight: 600; color: var(--sa-ink); }
.secretary-access-form header p { margin: 0; color: var(--sa-muted); font-size: 13px; line-height: 1.65; }
.secretary-user-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 25px; }
.secretary-user-cards button { display: flex; align-items: center; gap: 9px; min-height: 75px; padding: 12px 10px; border: 1px solid var(--sa-line); border-radius: 11px; background: #fff; color: var(--sa-ink); text-align: start; cursor: pointer; transition: border-color 120ms, background 120ms; }
.secretary-user-cards button:hover { background: #f4f8fb; border-color: #a3b9c9; }
.secretary-user-cards button.selected { border-color: #005fe5; background: #f0f6ff; box-shadow: 0 0 0 1px #005fe5; }
.secretary-user-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; background: #edf1f4; color: #416076; font-size: 12px; font-weight: 600; }
.secretary-user-cards button.selected .secretary-user-avatar { background: #dbeaff; color: #0754bd; }
.secretary-user-cards strong { display: block; font-size: 14px; line-height: 1.4; }
.secretary-user-cards small { display: block; font-size: 10px; line-height: 1.5; color: var(--sa-muted); }
.secretary-user-check { display: grid; place-items: center; width: 16px; flex: 0 0 16px; margin-left: auto; color: var(--sa-blue); }
.secretary-code-label { display: block; font-size: 12px; font-weight: 600; line-height: 1.6; margin-bottom: 8px; }
.secretary-code-label span { font-weight: 400; color: var(--sa-muted); }
.secretary-code-wrap { position: relative; }
.secretary-code-wrap input { width: 100%; height: 55px; border: 1px solid var(--sa-line); border-radius: 9px; background: #f9fbfc; padding: 0 52px 0 18px; color: var(--sa-ink); font-family: inherit; font-size: 26px; letter-spacing: 15px; }
.secretary-code-wrap input::placeholder { color: #a6b4bd; opacity: 1; }
.secretary-code-wrap input:disabled { opacity: 0.65; }
.secretary-code-wrap input[aria-invalid="true"] { border-color: #b32935; }
.secretary-code-wrap > span { position: absolute; right: 14px; top: 19px; color: var(--sa-muted); font-size: 10px; line-height: 16px; }
.secretary-code-hint { margin: 7px 0 15px; color: var(--sa-muted); font-size: 10px; line-height: 1.6; }
.secretary-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.secretary-keypad button { min-height: 44px; border: 1px solid #e2e8ed; border-radius: 8px; background: #fff; color: var(--sa-ink); font-size: 18px; font-weight: 500; display: grid; place-items: center; cursor: pointer; transition: background 120ms, border-color 120ms; }
.secretary-keypad button:hover { background: #edf4fb; border-color: #b6cbd9; }
.secretary-keypad button:active { background: #dceafe; }
.secretary-keypad button.secretary-keypad-secondary { font-size: 10px; color: var(--sa-muted); background: #f8fafb; }
.secretary-access button:disabled { cursor: default; opacity: 0.45; }
.secretary-access button:focus-visible, .secretary-access input:focus-visible { outline: 3px solid #477dca; outline-offset: 3px; }
.secretary-access-feedback { min-height: 37px; display: flex; align-items: center; padding-top: 4px; }
.secretary-access-feedback p { margin: 0; font-size: 11px; line-height: 1.5; color: #9f2432; }
.secretary-access-submit { display: flex; gap: 9px; align-items: center; justify-content: center; width: 100%; min-height: 46px; border: 0; border-radius: 9px; padding: 11px 16px; color: #fff; background: var(--sa-blue); font-size: 13px; font-weight: 500; cursor: pointer; }
.secretary-access-submit:hover { background: #0754bd; }
.secretary-access-form footer { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 19px; color: var(--sa-muted); font-size: 10px; line-height: 1.6; }
.secretary-access-form footer button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 4px; color: #44677d; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 760px) {
  .secretary-access { padding: 18px; align-items: start; }
  .secretary-access-frame { max-width: 450px; grid-template-columns: 1fr; min-height: 0; border-radius: 16px; }
  .secretary-access-identity { padding: 22px 25px; gap: 15px; }
  .secretary-access-brand { width: 175px; }
  .secretary-access-intro { display: none; }
  .secretary-access-privacy { padding-top: 12px; font-size: 11px; }
  .secretary-access-form { padding: 25px; }
  .secretary-access-form header { margin-bottom: 21px; }
  .secretary-access-form h1 { font-size: 24px; }
}
@media (max-width: 360px) {
  .secretary-access { padding: 8px; }
  .secretary-access-form { padding: 23px 17px; }
  .secretary-user-cards { gap: 7px; }
  .secretary-user-cards button { padding: 10px 8px; gap: 7px; }
  .secretary-user-avatar { width: 31px; height: 31px; }
  .secretary-user-check { display: none; }
}
@media (prefers-reduced-motion: reduce) { .secretary-access * { transition: none !important; animation: none !important; } }
/* SERVING-PARITY (green switch candidate, round 3, 25 Nov 2026) — generated by tools/extract-serving-parity.mjs.
   Rules served in production by focused releases as separate add-on sheets but ABSENT from the production source tree
   (bundle-only CSS). Copied verbatim from the serving assets so a full build keeps production styling. */

/* from recruitment-exclusive-20261109/web/assets/hr-review-queues-e0d0e11ff16e.css (3 rules) */
.hr-applications-workspace .hr-category-overview{align-items:start}
.hr-applications-workspace .hr-category-panel .hr-category-person{align-items:flex-start}
.hr-applications-workspace .hr-category-panel .hr-avatar{flex-shrink:0}

/* from rvg-plein-cadre-20261123/baseline/imaging-atelier-0ef86ed058a8.css (15 rules) */
.rx-atelier-reception .rx-reception-health{background:none;border:0;padding:0;margin:10px 0 20px;font:inherit;box-shadow:none;color:#637580}
.rx-atelier-reception .rx-reception-health>header{font-weight:400;font-size:13px;gap:8px}
.rx-atelier-reception .rx-reception-stages{display:flex;flex-direction:column;gap:17px;border-top:1px solid #cbd5dd;margin-top:19px;padding-top:20px;align-items:stretch}
.rx-atelier-reception .rx-reception-stages>svg{display:none}
.rx-atelier-reception .rx-reception-stages>div:first-child{display:none}
.rx-atelier-reception .rx-reception-stages>div{font-size:12px;color:#536570;gap:10px}
.rx-atelier-reception .rx-reception-stages small{color:#7a8c9b;font-size:11px}
.rx-atelier-reception .rx-reception-help{font-size:11px;line-height:1.6}
.rx-atelier-reception .rx-reception-health details{display:none}
.rx-atelier-reception .rvg-launch,.rx-atelier-reception .rvg-comparison-launch{width:100%;min-height:46px;padding:10px 14px;border-radius:30px;border:1px solid #ffffffd9;background:#ffffff85;color:#354650;box-shadow:inset 0 1px 0 #fff,0 7px 20px #536c8312;justify-content:center;display:flex;gap:9px;font-size:12px;margin:12px 0 0}
.rx-atelier-reception .rx-reception-help{font-size:12px}
.rx-atelier-reception .rx-reception-stages small{font-size:12px}
.rx-atelier-reception .rx-reception-health details.rx-reception-guide{display:block;border:0;margin:4px 0 0;padding:0;font-size:12px}
.rx-atelier-reception .rx-reception-guide summary{min-height:36px;display:flex;align-items:center;font-size:12px;color:#6d8394;cursor:pointer}
.rx-atelier-reception .rx-reception-guide .rx-reception-help{font-size:12px}

/* from rvg-intraoral-continuation-20261120/baseline/camera-reliability-0cc986738a69.css (20 rules) */
.camera-inbox .patient-smart-picker>label{display:block;font-size:13px;font-weight:650;margin-bottom:7px}
.camera-inbox .patient-smart-input{display:flex;align-items:center;gap:8px;border:1px solid #dce5e3;border-radius:10px;padding:0 10px;background:#fff;color:#748782}
.camera-inbox .patient-smart-input:focus-within{border-color:#4b9684;box-shadow:0 0 0 3px #e8f5ef}
.camera-inbox .patient-smart-input input{border:0!important;background:transparent!important;box-shadow:none!important;outline:none;min-width:0;width:100%;padding:11px 0!important}
.camera-inbox .patient-smart-input button{border:0;background:none;color:#647c74;padding:3px;display:flex}
.camera-inbox .patient-smart-current+.patient-smart-results{top:80px}
.camera-inbox .patient-smart-results>p,.camera-inbox .patient-smart-results>small{display:block;padding:10px;font-size:12px;color:#6d807a}
.camera-inbox .patient-smart-results div>button{width:100%;border:0;background:#fff;padding:10px;border-radius:7px;display:flex;text-align:left;align-items:center;justify-content:space-between;gap:8px}
.camera-inbox .patient-smart-results div>button:hover,.camera-inbox .patient-smart-results div>button.is-active{background:#edf6f1}
.camera-inbox .patient-suggestion-identity{min-width:0;display:flex;flex-direction:column;gap:4px}
.camera-inbox .patient-suggestion-identity>span{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.camera-inbox .patient-suggestion-identity strong{font-size:13px;color:#2f4940}
.camera-inbox .patient-suggestion-identity>small{font-size:11px;color:#78877f;line-height:1.5}
.camera-inbox .patient-near-badge{background:#fff3d7;color:#846219;border-radius:20px;padding:2px 7px;font-size:10px;font-weight:600;white-space:nowrap;vertical-align:middle}
.camera-inbox .patient-near-heading{font-size:10px!important;text-transform:uppercase;letter-spacing:.06em;color:#927039;padding:8px 9px 3px;margin:0}
.camera-inbox .patient-smart-current{background:#f1f7f3;border:1px solid #e1ebe5;border-radius:9px;padding:9px;margin-top:9px}
.camera-inbox .patient-smart-current>small{display:block;font-size:10px;color:#779080;margin-bottom:5px}
.camera-inbox .patient-search-more{display:block;padding:10px;color:#71827a;font-size:11px}
.camera-inbox .search-result-name .patient-near-badge{margin-left:7px}
.camera-inbox .patient-smart-results p button{display:inline-flex;gap:4px;align-items:center;border:0;background:none;color:#317160;font-size:12px}
/* Odontiax isolated patient dossier — stylesheet entry (imported once by main.tsx).
   <html> carries the class "odx-dossier", so every rule below must be scoped under .odx-dossier
   (dialogs and popovers render in portals at <body> level and are still inside that scope).
   Each builder adds exactly ONE @import line for its own stylesheet at the end of this file. */
/* Odontiax dossier — product typeface (Outfit, SIL OFL), four static weights.
   The files live next to this sheet (apps/web/public is a link into a read-only
   platform folder, so nothing is written there). Vite rewrites these relative URLs. */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300;
  font-display: block;
  src: url("/assets/Outfit-Light-BCN5VFdt.ttf") format("truetype");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/assets/Outfit-Regular-BlL8FXaZ.ttf") format("truetype");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("/assets/Outfit-Medium-B8Iwa1n1.ttf") format("truetype");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url("/assets/Outfit-SemiBold-Dyrk4jTU.ttf") format("truetype");
}
/* Odontiax patient dossier — design tokens measured on the owner's reference image
   (reference/reference-design.png, 2000 x 1500; numbers in reference/measurements.json).

   Every length is written in REFERENCE PIXELS multiplied by --odx-u. At a 2000 px wide
   container 1 unit = 1 reference pixel, so the page reproduces the reference 1:1; the unit
   is clamped so the layout stays usable from 1280 to 2560 px wide (0.64 px .. 1.28 px).
   --odx-u is a registered <length>: it is computed once on .odx-dossier (against the nearest
   ancestor with container-type: inline-size, or the viewport when there is none) and
   inherited as an absolute length, so nested containers never change it. */
@property --odx-u {
  syntax: "<length>";
  inherits: true;
  initial-value: 1px;
}
.odx-dossier {
  /* --odx-page-px: page width in px written on <html> by the dossier app (scrollbar excluded); static pages without it
     (odx-kit.html) fall back to the nearest inline-size container or the viewport. */
  --odx-u: clamp(0.64px, var(--odx-page-px, 100cqw) / 2000, 1.28px);

  /* ---------- typeface ---------- */
  --odx-font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --odx-w-body: 300;      /* the reference's running text renders as Outfit Light */
  --odx-w-emph: 400;      /* buttons, active tab, breadcrumb current page, chip, nav pill */
  --odx-w-strong: 500;    /* patient first name, card sub-heading */
  --odx-lh-glyph: 1.26;   /* Outfit ascent 1000 + descent 260 per 1000 em: content-area height (baseline 1 em under the line top) */
  --odx-word-spacing: 0.02em; /* reference spaces are ~0.3 px wider than Outfit's under the negative tracking */

  /* @type-scale:start (written by reference/work/gen_kit.py from typetokens.py) */
  /* type scale: size in reference px, tracking in em, weight; fitted on the reference ink boxes with Outfit */
  --odx-fs-title-lg: calc(27.2 * var(--odx-u)); --odx-ls-title-lg: -0.047em; --odx-w-title-lg: 300; /* "Tooth Analysis" */
  --odx-fs-title: calc(26.15 * var(--odx-u)); --odx-ls-title: -0.036em; --odx-w-title: 300; /* card titles */
  --odx-fs-subtitle: calc(22.2 * var(--odx-u)); --odx-ls-subtitle: -0.009em; --odx-w-subtitle: 500; /* "Preventive Care" */
  --odx-fs-body-lg: calc(21.5 * var(--odx-u)); --odx-ls-body-lg: -0.0435em; --odx-w-body-lg: 300; /* AI paragraph */
  --odx-fs-nav: calc(21.3 * var(--odx-u)); --odx-ls-nav: -0.051em; --odx-w-nav: 300; /* top navigation */
  --odx-fs-nav-active: calc(21.3 * var(--odx-u)); --odx-ls-nav-active: -0.047em; --odx-w-nav-active: 400; /* nav pill label */
  --odx-fs-button: calc(21.15 * var(--odx-u)); --odx-ls-button: -0.032em; --odx-w-button: 400; /* "Schedule Appointment" */
  --odx-fs-value: calc(20.9 * var(--odx-u)); --odx-ls-value: -0.034em; --odx-w-value: 300; /* meta / case values, doctor name */
  --odx-fs-name: calc(20.6 * var(--odx-u)); --odx-ls-name: -0.018em; --odx-w-name: 300; /* patient last name */
  --odx-fs-doctor: calc(20.6 * var(--odx-u)); --odx-ls-doctor: -0.04em; --odx-w-doctor: 300; /* signed-in doctor name */
  --odx-fs-name-strong: calc(20.5 * var(--odx-u)); --odx-ls-name-strong: -0.052em; --odx-w-name-strong: 500; /* patient first name */
  --odx-fs-score: calc(20.25 * var(--odx-u)); --odx-ls-score: -0.045em; --odx-w-score: 300; /* health score value */
  --odx-fs-data: calc(18.65 * var(--odx-u)); --odx-ls-data: -0.046em; --odx-w-data: 300; /* analysis + history values */
  --odx-fs-button-sm: calc(18.5 * var(--odx-u)); --odx-ls-button-sm: -0.027em; --odx-w-button-sm: 400; /* "Schedule Cleaning" */
  --odx-fs-crumb: calc(18.1 * var(--odx-u)); --odx-ls-crumb: -0.032em; --odx-w-crumb: 300; /* breadcrumb */
  --odx-fs-crumb-current: calc(18.1 * var(--odx-u)); --odx-ls-crumb-current: -0.033em; --odx-w-crumb-current: 400; /* breadcrumb current page */
  --odx-fs-tab-idle: calc(18.1 * var(--odx-u)); --odx-ls-tab-idle: -0.048em; --odx-w-tab-idle: 300; /* idle tab */
  --odx-fs-tab: calc(17.9 * var(--odx-u)); --odx-ls-tab: -0.022em; --odx-w-tab: 400; /* active tab */
  --odx-fs-note: calc(16.35 * var(--odx-u)); --odx-ls-note: -0.051em; --odx-w-note: 300; /* analysis note, case sub-line */
  --odx-fs-chip: calc(15.9 * var(--odx-u)); --odx-ls-chip: -0.055em; --odx-w-chip: 400; /* "Low Risk" */
  --odx-fs-label: calc(15.7 * var(--odx-u)); --odx-ls-label: -0.045em; --odx-w-label: 300; /* every small label */
  --odx-fs-status: calc(15.6 * var(--odx-u)); --odx-ls-status: -0.033em; --odx-w-status: 300; /* patient status line */
  --odx-fs-micro: calc(13.6 * var(--odx-u)); --odx-ls-micro: -0.052em; --odx-w-micro: 300; /* "Health Score" */
  --odx-lh-body-lg: calc(29.2 * var(--odx-u));  /* paragraph line pitch */
  /* @type-scale:end */

  /* ---------- colour: grounds ---------- */
  --odx-backdrop-from: #e0e8dc;            /* bottom-left corner of the page */
  --odx-backdrop-to: #e8ece5;              /* top-right corner */
  --odx-backdrop: linear-gradient(63.6deg, var(--odx-backdrop-from), var(--odx-backdrop-to));
  --odx-window-base: #fdfdfd;
  --odx-glow-mint: 214 255 228;            /* top-right glow of the window */
  --odx-glow-leaf: 180 226 169;            /* bottom glow under the lower cards */
  --odx-window-bg:
    radial-gradient(calc(1515 * var(--odx-u)) calc(727 * var(--odx-u)) at calc(518 * var(--odx-u)) calc(1283 * var(--odx-u)),
      rgb(var(--odx-glow-leaf) / 1) 0%, rgb(var(--odx-glow-leaf) / .299) 50%, rgb(var(--odx-glow-leaf) / 0) 100%),
    radial-gradient(calc(777 * var(--odx-u)) calc(929 * var(--odx-u)) at calc(1786 * var(--odx-u)) calc(161 * var(--odx-u)),
      rgb(var(--odx-glow-mint) / 1) 0%, rgb(var(--odx-glow-mint) / .439) 50%, rgb(var(--odx-glow-mint) / 0) 100%),
    var(--odx-window-base);
  /* white "glass" panels: plain white at these opacities over the window ground */
  --odx-glass-header: rgb(255 255 255 / .28);
  --odx-glass-card: rgb(255 255 255 / .68);
  --odx-glass-solid: rgb(255 255 255 / .95);

  /* ---------- colour: ink ---------- */
  --odx-ink: #0d0d0d;                      /* primary text and line icons */
  --odx-ink-strong: #050505;               /* titles */
  --odx-ink-2: rgb(13 13 13 / .62);        /* secondary labels (Tooth, Date:, Procedure ...) */
  --odx-ink-3: rgb(13 13 13 / .63);        /* notes ("Surface cleaning recommended"), patient id */
  --odx-ink-4: rgb(13 13 13 / .63);        /* patient status, doctor role */
  --odx-ink-crumb: #252525;
  --odx-ink-tab: #252525;
  --odx-ink-soft: #232423;                 /* top navigation and the AI paragraph render ~10 % lighter than the values */
  --odx-ink-micro: rgb(13 13 13 / .64);    /* "Health Score" over the tinted tile */
  --odx-on-dark: #fefbfc;

  /* ---------- colour: accents ---------- */
  --odx-pill-dark: #211f1f;                /* active nav pill */
  --odx-mint-1: #e0fac3;                   /* mint button gradient, left */
  --odx-mint-2: #c5fcc4;                   /* middle */
  --odx-mint-3: #aaffc6;                   /* right */
  --odx-mint-gradient: linear-gradient(90deg, var(--odx-mint-1) 0%, var(--odx-mint-2) 50%, var(--odx-mint-3) 100%);
  --odx-score-good: #c8fdc6;               /* health score >= 85 (reference 90 %) */
  --odx-score-fair: #e1fbc4;               /* 70-84 (reference 80 %) */
  --odx-score-watch: #f9f8c0;              /* < 70 (reference 65 %) */
  --odx-chip-lime: #e1f9c3;                /* "Low Risk" */
  --odx-status-yellow: #fcde0b;            /* condition dot */
  --odx-soft-fill: rgb(0 0 0 / .026);      /* soft round icon buttons on white */
  --odx-soft-fill-tinted: rgb(30 60 30 / .02); /* the same on the green-tinted lower cards */
  --odx-glow-fill: #ffffff;                /* round icon buttons on the mint top bar */
  --odx-thumb-fill: #eef2ef;               /* tooth thumbnail disc */
  --odx-rail-line: #e2e2e2;
  --odx-rail-thumb: #1c1c1c;
  --odx-placeholder: #d9dcd9;              /* photo placeholders in the static kit */

  /* ---------- geometry (reference px) ---------- */
  --odx-page-w: calc(2000 * var(--odx-u));
  --odx-page-h: calc(1500 * var(--odx-u));
  --odx-window-x: calc(79 * var(--odx-u));
  --odx-window-y: calc(151 * var(--odx-u));
  --odx-window-w: calc(1843 * var(--odx-u));
  --odx-window-h: calc(1196 * var(--odx-u));
  --odx-window-pad-x: calc(49 * var(--odx-u));
  --odx-window-pad-b: calc(17 * var(--odx-u));
  --odx-gap: calc(28 * var(--odx-u));      /* gap between every panel */
  --odx-topbar-h: calc(111 * var(--odx-u));
  --odx-header-h: calc(202 * var(--odx-u));
  --odx-stage-h: calc(484 * var(--odx-u));
  --odx-bottom-h: calc(326 * var(--odx-u));
  --odx-card-pad: calc(20.5 * var(--odx-u));

  /* radii */
  --odx-r-window: calc(64 * var(--odx-u));
  --odx-r-card: calc(29.5 * var(--odx-u));
  --odx-r-header: calc(27 * var(--odx-u));
  --odx-r-button: calc(14 * var(--odx-u));
  --odx-r-tab: calc(12 * var(--odx-u));
  --odx-r-tile: calc(9 * var(--odx-u));
  --odx-r-thumb: calc(10 * var(--odx-u));

  /* round controls (visible diameter at the 50 % edge / soft edge width) */
  --odx-btn-glow-d: calc(48.4 * var(--odx-u));   /* top bar: white disc on mint */
  --odx-btn-back-d: calc(49 * var(--odx-u));
  --odx-btn-soft-d: calc(41 * var(--odx-u));      /* patient actions */
  --odx-btn-card-d: calc(40 * var(--odx-u));      /* card arrow / kebab */
  --odx-soft-edge: calc(6 * var(--odx-u));
  --odx-avatar-d: calc(68.7 * var(--odx-u));
  --odx-avatar-sm-d: calc(49 * var(--odx-u));
  --odx-thumb-d: calc(58.4 * var(--odx-u));
  --odx-dot-d: calc(20 * var(--odx-u));
  --odx-icon: calc(20 * var(--odx-u));
  --odx-icon-sm: calc(14 * var(--odx-u));
  --odx-icon-stroke: 1.5;                          /* in a 24 x 24 icon grid */

  /* nav pill shadow: a soft ellipse 30 px under the pill */
  --odx-pill-shadow: rgb(0 0 0 / .045);
}
/* Odontiax patient dossier — visual primitives (.odx-<thing>), measured on the reference image.
   Requires tokens.css (+ fonts.css). Sizes are reference px x --odx-u. Screen geometry (where each
   primitive sits on the dossier page) lives in layout.css; these classes only carry the look. */
.odx-dossier,
.odx-dossier *,
.odx-dossier *::before,
.odx-dossier *::after { box-sizing: border-box; }
.odx-dossier {
  font-family: var(--odx-font);
  font-weight: var(--odx-w-body);
  color: var(--odx-ink);
  line-height: var(--odx-lh-glyph);
  font-kerning: normal;
  font-synthesis: none;
  word-spacing: var(--odx-word-spacing);
}
:where(.odx-dossier) button { font: inherit; color: inherit; letter-spacing: inherit; border: 0; padding: 0; margin: 0; background: none; cursor: pointer; }
:where(.odx-dossier) :is(p, h1, h2, h3) { margin: 0; font: inherit; letter-spacing: inherit; }
:where(.odx-dossier) svg { display: block; flex: none; }
/* line icons (24 x 24 grid, stroke 1.5, lucide-like); fill-based marks opt out with .odx-brand__mark */
.odx-icon, .odx-nav__icon { fill: none; stroke: currentColor; stroke-width: var(--odx-icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
/* ---------- text styles: line-height 1.26 em = Outfit content area, so the baseline sits 1 em under the line top ---------- */
.odx-t-title-lg { font-size: var(--odx-fs-title-lg); letter-spacing: var(--odx-ls-title-lg); color: var(--odx-ink-strong); }
.odx-t-title { font-size: var(--odx-fs-title); letter-spacing: var(--odx-ls-title); color: var(--odx-ink-strong); }
.odx-t-subtitle { font-size: var(--odx-fs-subtitle); letter-spacing: var(--odx-ls-subtitle); font-weight: var(--odx-w-strong); color: var(--odx-ink-strong); }
.odx-t-body-lg { font-size: var(--odx-fs-body-lg); letter-spacing: var(--odx-ls-body-lg); line-height: var(--odx-lh-body-lg); color: var(--odx-ink-soft); }
.odx-t-nav { font-size: var(--odx-fs-nav); letter-spacing: var(--odx-ls-nav); }
.odx-t-value { font-size: var(--odx-fs-value); letter-spacing: var(--odx-ls-value); }
.odx-t-data { font-size: var(--odx-fs-data); letter-spacing: var(--odx-ls-data); }
.odx-t-crumb { font-size: var(--odx-fs-crumb); letter-spacing: var(--odx-ls-crumb); color: var(--odx-ink-crumb); }
.odx-t-note { font-size: var(--odx-fs-note); letter-spacing: var(--odx-ls-note); color: var(--odx-ink-3); }
.odx-t-label { font-size: var(--odx-fs-label); letter-spacing: var(--odx-ls-label); color: var(--odx-ink-2); }
.odx-t-status { font-size: var(--odx-fs-status); letter-spacing: var(--odx-ls-status); color: var(--odx-ink-4); }
.odx-t-micro { font-size: var(--odx-fs-micro); letter-spacing: var(--odx-ls-micro); color: var(--odx-ink-micro); }
.odx-t-nowrap { white-space: nowrap; }
.odx-text { display: block; white-space: nowrap; }
/* ---------- page + window ---------- */
.odx-page {
  container-type: inline-size;            /* lets .odx-dossier inside resolve --odx-u from this width */
  background: #e4eae0;
}
.odx-canvas {
  position: relative;
  width: var(--odx-page-w);
  min-height: var(--odx-page-h);
  background: var(--odx-backdrop);
}
.odx-window {
  position: relative;
  width: var(--odx-window-w);
  height: var(--odx-window-h);
  border-radius: var(--odx-r-window);
  background: var(--odx-window-bg);
  isolation: isolate;
}
/* ---------- panels ---------- */
.odx-glass { background: var(--odx-glass-header); border-radius: var(--odx-r-header); }
.odx-card { position: relative; background: var(--odx-glass-card); border-radius: var(--odx-r-card); }
.odx-card--solid { background: var(--odx-glass-solid); }
.odx-card--ai { background: var(--odx-glass-ai, var(--odx-glass-card)); }
/* ---------- brand (replaces the reference wordmark) ----------
   Odontiax lockup: porcelain ring + emerald dot (app-icon geometry) and the ODONTIAX wordmark (Outfit 400, tracking .34 em).
   --odx-brand-ring is the visible ring diameter; the 64-unit SVG box is ring x 4/3 (the margin holds the drop shadow) and is
   pulled back with negative margins so the layout box is the ring itself. Wordmark = ring x 20/42, gap = ring x 14/42.
   In the replica the lockup sits where the reference's ORISYNC wordmark sits (left 128, centred on the bar). */
.odx-brand {
  --odx-brand-ring: calc(42 * var(--odx-u));
  display: inline-flex;
  align-items: center;
  gap: calc(var(--odx-brand-ring) * 14 / 42);
  color: var(--odx-ink);
}
.odx-brand__mark {
  width: calc(var(--odx-brand-ring) * 4 / 3);
  height: calc(var(--odx-brand-ring) * 4 / 3);
  margin: calc(var(--odx-brand-ring) / -6);
}
.odx-wordmark {
  font-size: calc(var(--odx-brand-ring) * 20 / 42);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.34em;
  margin-right: -0.34em;                  /* the trailing tracking is not part of the optical width */
  text-transform: uppercase;
  white-space: nowrap;
}
/* ---------- text navigation + dark active pill ---------- */
.odx-nav { display: flex; align-items: center; }
.odx-nav__item {
  font-size: var(--odx-fs-nav);
  letter-spacing: var(--odx-ls-nav);
  color: var(--odx-ink-soft);
  white-space: nowrap;
  text-decoration: none;
}
.odx-nav__item--active {                  /* lucide: Users */
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(10.5 * var(--odx-u));
  height: calc(52.2 * var(--odx-u));
  padding: 0 calc(20 * var(--odx-u));
  border-radius: var(--odx-r-button);
  background: var(--odx-pill-dark);
  color: var(--odx-on-dark);
  font-weight: var(--odx-w-emph);
  font-size: var(--odx-fs-nav);
  letter-spacing: var(--odx-ls-nav-active);
}
.odx-nav__item--active::after {           /* the soft floating shadow 30 px under the pill */
  content: "";
  position: absolute;
  left: calc(12 * var(--odx-u));
  right: calc(12 * var(--odx-u));
  top: calc(100% + calc(24 * var(--odx-u)));
  height: calc(22 * var(--odx-u));
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--odx-pill-shadow), rgb(0 0 0 / 0));
  pointer-events: none;
}
.odx-nav__icon { width: calc(22 * var(--odx-u)); height: calc(22 * var(--odx-u)); stroke-width: 1.9; }
/* ---------- round icon buttons: a disc with a soft (feathered) edge ----------
   --d = visible diameter (50 % point of the edge), --s = feather width. The element is d + s wide and
   pulls itself back with negative margins, so in the layout it occupies exactly d. */
.odx-iconbtn {
  --d: var(--odx-btn-card-d);
  --s: var(--odx-soft-edge);
  --fill: var(--odx-soft-fill);
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: calc(var(--d) + var(--s));
  height: calc(var(--d) + var(--s));
  margin: calc(var(--s) / -2);
  border-radius: 50%;
  color: var(--odx-ink);
  background: radial-gradient(closest-side, var(--fill) calc(var(--d) / 2 - var(--s) / 2), rgb(255 255 255 / 0) calc(var(--d) / 2 + var(--s) / 2));
}
.odx-iconbtn--glow { --d: var(--odx-btn-glow-d); --s: calc(9 * var(--odx-u)); --fill: var(--odx-glow-fill); }
/* top bar: search, bell, settings */
.odx-iconbtn--back { --d: var(--odx-btn-back-d); --s: calc(7 * var(--odx-u)); --fill: rgb(0 0 0 / .024); }
/* lucide: ChevronLeft */
.odx-iconbtn--soft { --d: var(--odx-btn-soft-d); --s: calc(7 * var(--odx-u)); --fill: rgb(0 0 0 / .02); }
/* patient actions */
.odx-iconbtn--card { --d: var(--odx-btn-card-d); --s: calc(5 * var(--odx-u)); --fill: rgb(0 0 0 / .028); }
/* lucide: ArrowUpRight */
.odx-iconbtn--tinted { --d: var(--odx-btn-card-d); --s: calc(6 * var(--odx-u)); --fill: var(--odx-soft-fill-tinted); }
/* lucide: Ellipsis */
.odx-icon { width: calc(24 * var(--odx-u)); height: calc(24 * var(--odx-u)); }
.odx-icon--sm { width: calc(16 * var(--odx-u)); height: calc(16 * var(--odx-u)); }
/* ---------- mint gradient button ---------- */
.odx-btn-mint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(52 * var(--odx-u));
  padding: 0 calc(24 * var(--odx-u));
  border-radius: var(--odx-r-button);
  background: var(--odx-mint-gradient);
  box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(255 255 255 / .28);
  color: var(--odx-ink);
  font-weight: var(--odx-w-emph);
  font-size: var(--odx-fs-button);
  letter-spacing: var(--odx-ls-button);
  white-space: nowrap;
}
.odx-btn-mint--sm { height: calc(49.7 * var(--odx-u)); font-size: var(--odx-fs-button-sm); letter-spacing: var(--odx-ls-button-sm); border-radius: calc(14.5 * var(--odx-u)); }
/* ---------- pill tabs over the 3D stage ---------- */
.odx-tabs { display: flex; align-items: center; }
.odx-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(47.1 * var(--odx-u));
  border-radius: var(--odx-r-tab);
  font-size: var(--odx-fs-tab-idle);
  letter-spacing: var(--odx-ls-tab-idle);
  color: var(--odx-ink-tab);
  white-space: nowrap;
}
.odx-tab--active {
  background: var(--odx-mint-gradient);
  color: var(--odx-ink);
  font-weight: var(--odx-w-emph);
  font-size: var(--odx-fs-tab);
  letter-spacing: var(--odx-ls-tab);
}
/* ---------- label / value pair ---------- */
.odx-pair { display: flex; flex-direction: column; align-items: flex-start; }
.odx-pair__label { font-size: var(--odx-fs-label); letter-spacing: var(--odx-ls-label); color: var(--odx-ink-2); white-space: nowrap; }
.odx-pair__value { white-space: nowrap; }
.odx-pair__label.odx-t-label--ink, .odx-t-label--ink { color: var(--odx-ink); }
/* header meta labels and case labels are dark in the reference */
/* ---------- chip ---------- */
.odx-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(31.7 * var(--odx-u));
  padding: 0 calc(14 * var(--odx-u));
  border-radius: 999px;
  background: var(--odx-chip-lime);
  box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(255 255 255 / .35);
  font-weight: var(--odx-w-emph);
  font-size: var(--odx-fs-chip);
  letter-spacing: var(--odx-ls-chip);
  color: var(--odx-ink);
  white-space: nowrap;
}
/* ---------- health score tile ---------- */
.odx-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100.3 * var(--odx-u));
  height: calc(58.1 * var(--odx-u));
  border-radius: var(--odx-r-tile);
  background: var(--odx-score-fair);
  box-shadow: inset 0 0 0 calc(1.5 * var(--odx-u)) rgb(255 255 255 / .3);
}
.odx-score--good { background: var(--odx-score-good); }
.odx-score--fair { background: var(--odx-score-fair); }
.odx-score--watch { background: var(--odx-score-watch); }
.odx-score__label { font-size: var(--odx-fs-micro); letter-spacing: var(--odx-ls-micro); color: var(--odx-ink-micro); white-space: nowrap; }
.odx-score__value { font-size: var(--odx-fs-score); letter-spacing: var(--odx-ls-score); white-space: nowrap; }
/* ---------- avatars, thumbnails, dots ---------- */
.odx-avatar {
  flex: none;
  width: var(--odx-avatar-d);
  height: var(--odx-avatar-d);
  border-radius: 50%;
  background: var(--odx-placeholder);
  object-fit: cover;
  overflow: hidden;
}
.odx-avatar--sm { width: var(--odx-avatar-sm-d); height: var(--odx-avatar-sm-d); }
.odx-thumb {
  --d: var(--odx-thumb-d);
  --s: calc(4 * var(--odx-u));
  flex: none;
  width: calc(var(--d) + var(--s));
  height: calc(var(--d) + var(--s));
  margin: calc(var(--s) / -2);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--odx-thumb-fill) calc(var(--d) / 2 - var(--s) / 2), rgb(255 255 255 / 0) calc(var(--d) / 2 + var(--s) / 2));
}
.odx-dot {
  display: inline-block;
  flex: none;
  width: var(--odx-dot-d);
  height: var(--odx-dot-d);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fde424, var(--odx-status-yellow) 55%, #efc800);
}
/* ---------- doctor chip (signed-in user) ---------- */
.odx-doctor { display: flex; align-items: flex-start; }
.odx-doctor__name { font-size: var(--odx-fs-doctor); letter-spacing: var(--odx-ls-doctor); white-space: nowrap; }
.odx-doctor__role { font-size: var(--odx-fs-label); letter-spacing: var(--odx-ls-label); color: var(--odx-ink-4); white-space: nowrap; }
/* ---------- breadcrumb ---------- */
.odx-crumb { display: flex; align-items: flex-start; }
.odx-crumb__path { font-size: var(--odx-fs-crumb); letter-spacing: var(--odx-ls-crumb); color: var(--odx-ink-crumb); white-space: nowrap; }
.odx-crumb__current { font-weight: var(--odx-w-emph); color: var(--odx-ink); letter-spacing: var(--odx-ls-crumb-current); }
/* ---------- table-like rows with a kebab ---------- */
.odx-hrow { display: flex; align-items: flex-start; }
.odx-hrow__cell { display: flex; flex-direction: column; }
/* ---------- vertical zoom rail ---------- */
.odx-zoom__track { position: absolute; width: calc(2 * var(--odx-u)); background: var(--odx-rail-line); border-radius: 1px; }
.odx-zoom__thumb {
  position: absolute;
  width: calc(20 * var(--odx-u));
  height: calc(40 * var(--odx-u));
  border-radius: var(--odx-r-thumb);
  background: var(--odx-rail-thumb);
}
.odx-zoom__thumb::before {                /* grip: three short light lines */
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(6 * var(--odx-u));
  height: calc(5 * var(--odx-u));
  transform: translate(-50%, -50%);
  background: repeating-linear-gradient(180deg, rgb(255 255 255 / .75) 0 calc(1 * var(--odx-u)), transparent calc(1 * var(--odx-u)) calc(2 * var(--odx-u)));
}
.odx-zoom__buttons {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(40 * var(--odx-u));
  border-radius: calc(20 * var(--odx-u));
  background: rgb(255 255 255 / .9);
  box-shadow: 0 0 calc(8 * var(--odx-u)) calc(2 * var(--odx-u)) rgb(255 255 255 / .8);
}
.odx-zoom__btn { display: grid; place-items: center; width: calc(40 * var(--odx-u)); height: calc(40 * var(--odx-u)); color: var(--odx-ink); }
/* ---------- 3D stage slot (canvas mounts here; transparent in the static kit) ---------- */
.odx-stage-slot { position: absolute; background: transparent; }
/* Odontiax dossier — restyle of the SHARED legacy UI in the reference language (entry, imported once from
   ../index.css). Every rule is scoped  :is(.odx-dossier, #odx-skin)  (ID weight, see base.css) and never
   targets elements carrying an "odx-" class. Tune locally through the --odx-ui-* properties (tokens.css). */
/* Odontiax dossier — restyle tokens for the SHARED legacy UI (buttons, fields, dialogs, tables, chips…).
   Built on theme/tokens.css (reference measurements). Sizes follow the reference scale (--odx-u: 1 unit =
   1 reference px at 2000 px wide) with a legibility floor, so dialogs and tables stay readable at 1280 px.

   HOW TO TUNE FROM ANOTHER STYLESHEET: every restyle rule reads these custom properties, so a section can
   re-skin a primitive locally without fighting specificity, e.g.
     .odx-dossier .patient-rdv-card { --odx-ui-row-pad-y: calc(14 * var(--odx-u)); }
   Custom properties inherit, so setting one on a container re-skins every primitive inside it. */
.odx-dossier {
  /* ---------- type (reference sizes, floored) ---------- */
  --odx-ui-font: var(--odx-font);
  --odx-ui-fs-micro: max(11px, calc(13.6 * var(--odx-u)));
  --odx-ui-fs-label: max(12px, calc(15.7 * var(--odx-u)));     /* small grey labels, column heads */
  --odx-ui-fs-chip: max(12px, calc(15.9 * var(--odx-u)));
  --odx-ui-fs-note: max(12.5px, calc(16.35 * var(--odx-u)));   /* helper text, sub-lines */
  --odx-ui-fs-tab: max(13.5px, calc(18.1 * var(--odx-u)));
  --odx-ui-fs-button: max(14px, calc(18.5 * var(--odx-u)));
  --odx-ui-fs-body: max(14px, calc(18.65 * var(--odx-u)));     /* table values, field values, paragraphs */
  --odx-ui-fs-value: max(14.5px, calc(20.9 * var(--odx-u)));
  --odx-ui-fs-subtitle: max(15.5px, calc(22.2 * var(--odx-u)));
  --odx-ui-fs-title: max(19px, calc(26.15 * var(--odx-u)));    /* dialog + card titles */
  --odx-ui-fs-display: max(24px, calc(34 * var(--odx-u)));     /* section page titles */
  --odx-ui-ls-body: -0.03em;
  --odx-ui-ls-label: -0.025em;
  --odx-ui-ls-title: -0.036em;
  --odx-ui-w-light: 300;    /* running text (reference body) */
  --odx-ui-w-regular: 400;  /* buttons, active tab, emphasis */
  --odx-ui-w-medium: 500;   /* strong labels, first names */
  --odx-ui-lh: 1.4;

  /* ---------- ink ---------- */
  --odx-ui-ink: var(--odx-ink);                       /* #0d0d0d */
  --odx-ui-ink-2: rgb(13 13 13 / .64);                /* labels: 5.3:1 on white */
  --odx-ui-ink-3: rgb(13 13 13 / .58);                /* placeholders, helper text: 4.7:1 on white */
  --odx-ui-ink-disabled: rgb(13 13 13 / .38);
  --odx-ui-on-dark: var(--odx-on-dark);

  /* ---------- accents ---------- */
  --odx-ui-mint: var(--odx-mint-gradient);            /* primary surfaces (buttons, active pills) */
  --odx-ui-mint-hover: linear-gradient(90deg, #d5f7b2 0%, #b4f8b3 50%, #94fbb4 100%);
  --odx-ui-mint-press: linear-gradient(90deg, #cbf2a4 0%, #a6f2a6 50%, #86f4a8 100%);
  --odx-ui-mint-solid: #c5fcc4;
  --odx-ui-mint-glow: 0 calc(10 * var(--odx-u)) calc(26 * var(--odx-u)) calc(-12 * var(--odx-u)) rgb(74 190 112 / .55);
  --odx-ui-emerald: #0c8f60;                          /* small state marks + focus (4.0:1, non-text 3:1 ok) */
  --odx-ui-emerald-ink: #0a7350;                      /* emerald TEXT on white: 5.9:1 */
  --odx-ui-emerald-soft: rgb(12 143 96 / .1);
  --odx-ui-dark: var(--odx-pill-dark);                /* #211f1f: the reference's active nav pill */
  --odx-ui-focus: 0 0 0 3px rgb(12 143 96 / .22);
  --odx-ui-focus-ring: 2px solid var(--odx-ui-emerald);

  /* ---------- surfaces + lines ---------- */
  --odx-ui-surface: rgb(255 255 255 / .78);           /* secondary buttons, idle controls */
  --odx-ui-surface-hover: #ffffff;
  --odx-ui-field: rgb(255 255 255 / .9);
  --odx-ui-field-hover: #ffffff;
  --odx-ui-field-disabled: rgb(13 13 13 / .035);
  --odx-ui-soft: rgb(13 13 13 / .035);                /* round icon buttons on white (reference .026-.028) */
  --odx-ui-soft-hover: rgb(13 13 13 / .07);
  --odx-ui-line: rgb(13 13 13 / .07);                 /* hairlines between rows */
  --odx-ui-line-2: rgb(13 13 13 / .11);               /* card / sheet inner borders */
  --odx-ui-line-field: rgb(13 13 13 / .16);           /* field borders */
  --odx-ui-line-field-hover: rgb(13 13 13 / .3);
  --odx-ui-row-hover: rgb(13 13 13 / .022);
  --odx-ui-row-selected: rgb(197 252 196 / .32);

  /* ---------- status palette (meaning → tint + ink; ink is AA on its tint) ---------- */
  --odx-ui-ok-bg: #dcf8d4;      --odx-ui-ok-ink: #1d5f35;      --odx-ui-ok-dot: #2c9a55;      /* Fini, Présent(e), Encaissé, Réglé */
  --odx-ui-progress-bg: #f7f3c4; --odx-ui-progress-ink: #5f4f00; --odx-ui-progress-dot: #e0bf00; /* En cours, Actif, En banque */
  --odx-ui-warn-bg: #fdefd6;    --odx-ui-warn-ink: #7a4a05;    --odx-ui-warn-dot: #e39a1c;    /* Reporté, À régulariser, alerts */
  --odx-ui-danger-bg: #fbe7e5;  --odx-ui-danger-ink: #9d2117;  --odx-ui-danger-dot: #d0453a;  /* Annulé, Absent(e), Rejeté */
  --odx-ui-info-bg: #e3f1ee;    --odx-ui-info-ink: #1d554a;    --odx-ui-info-dot: #3f9b88;    /* informative, payment types */
  --odx-ui-neutral-bg: rgb(13 13 13 / .055); --odx-ui-neutral-ink: rgb(13 13 13 / .72); --odx-ui-neutral-dot: rgb(13 13 13 / .38);
  --odx-ui-danger: #b42318;                           /* destructive text/outline on white: 6.3:1 */
  --odx-ui-danger-line: rgb(180 35 24 / .34);
  --odx-ui-danger-soft: rgb(180 35 24 / .06);

  /* ---------- geometry ---------- */
  --odx-ui-h: max(38px, calc(50 * var(--odx-u)));            /* buttons + fields */
  --odx-ui-h-sm: max(32px, calc(42 * var(--odx-u)));         /* compact buttons */
  --odx-ui-icon-d: max(32px, calc(40 * var(--odx-u)));       /* round icon buttons (reference card buttons) */
  --odx-ui-icon-d-sm: max(28px, calc(34 * var(--odx-u)));
  --odx-ui-pad-x: max(14px, calc(22 * var(--odx-u)));
  --odx-ui-r-control: max(10px, calc(14 * var(--odx-u)));    /* reference button radius 14 */
  --odx-ui-r-field: max(10px, calc(13 * var(--odx-u)));
  --odx-ui-r-tab: max(9px, calc(12 * var(--odx-u)));         /* reference active tab 12 */
  --odx-ui-r-menu: max(14px, calc(20 * var(--odx-u)));
  --odx-ui-r-sheet: max(22px, calc(32 * var(--odx-u)));      /* reference cards 29.5-32 */
  --odx-ui-r-card: max(18px, calc(29.5 * var(--odx-u)));
  --odx-ui-chip-h: max(24px, calc(31.7 * var(--odx-u)));
  --odx-ui-sheet-pad: max(20px, calc(30 * var(--odx-u)));
  --odx-ui-gap: max(14px, calc(20 * var(--odx-u)));
  --odx-ui-row-pad-y: max(10px, calc(17 * var(--odx-u)));    /* reference history rows repeat every 71.8 */
  --odx-ui-row-pad-x: max(10px, calc(14 * var(--odx-u)));

  /* ---------- glass + shadows ---------- */
  --odx-ui-sheet-bg:
    radial-gradient(120% 70% at 100% 0%, rgb(var(--odx-glow-mint) / .5) 0%, rgb(var(--odx-glow-mint) / 0) 60%),
    radial-gradient(90% 60% at 0% 100%, rgb(var(--odx-glow-leaf) / .16) 0%, rgb(var(--odx-glow-leaf) / 0) 65%),
    rgb(255 255 255 / .93);
  --odx-ui-sheet-border: rgb(255 255 255 / .9);
  --odx-ui-sheet-shadow:
    0 calc(40 * var(--odx-u)) calc(90 * var(--odx-u)) calc(-24 * var(--odx-u)) rgb(24 48 30 / .28),
    0 calc(2 * var(--odx-u)) calc(8 * var(--odx-u)) rgb(24 48 30 / .06),
    inset 0 0 0 1px rgb(255 255 255 / .7);
  --odx-ui-backdrop: rgb(222 231 218 / .52);
  --odx-ui-backdrop-blur: blur(12px) saturate(1.15);
  --odx-ui-menu-bg: rgb(255 255 255 / .96);
  --odx-ui-menu-shadow:
    0 calc(22 * var(--odx-u)) calc(50 * var(--odx-u)) calc(-14 * var(--odx-u)) rgb(24 48 30 / .26),
    0 1px 3px rgb(24 48 30 / .07),
    inset 0 0 0 1px rgb(13 13 13 / .05);
  --odx-ui-card-bg: var(--odx-glass-card);
  --odx-ui-raise: 0 1px 2px rgb(13 13 13 / .04), 0 calc(6 * var(--odx-u)) calc(16 * var(--odx-u)) calc(-8 * var(--odx-u)) rgb(13 13 13 / .12);
  --odx-ui-ease: cubic-bezier(.2, .7, .2, 1);
  --odx-ui-dur: 160ms;
}
/* Odontiax dossier restyle — base: typeface everywhere, tabular figures, focus rings, scrollbars, selection.

   SKIN SCOPE. Every restyle rule starts with  :is(.odx-dossier, #odx-skin)  — the fake id gives the rule
   ID weight (1,0,0) while it still only matches <html class="odx-dossier">. The legacy platform CSS is
   class-only (rules up to 5 classes deep, many loaded lazily after this sheet), so the skin wins without
   !important. To override a restyle rule from a section stylesheet, either set the --odx-ui-* custom
   properties (see tokens.css) or reuse the same prefix with a more specific selector. Elements that carry
   an "odx-" class (the new shell, 3D viewers) are never targeted by element-level rules here. */
/* ---------- typeface: Outfit everywhere (legacy CSS hard-codes "Work Sans" in places) ---------- */
:is(.odx-dossier, #odx-skin) body {
  font-family: var(--odx-ui-font);
  color: var(--odx-ui-ink);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
:is(.odx-dossier, #odx-skin) body :not(svg, svg *, code, kbd, samp, pre, .radiology-checksum, .document-preview-paper, .document-preview-paper *, .purchase-print-root, .purchase-print-root *) {
  font-family: inherit;
}
:is(.odx-dossier, #odx-skin) :is(code, kbd, samp, pre, .radiology-checksum) {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
/* form controls do not inherit by default in the UA stylesheet */
:is(.odx-dossier, #odx-skin) :is(button, input, select, textarea, optgroup) { font-family: inherit; }
/* figures line up in every table, amount and date */
:is(.odx-dossier, #odx-skin) :is(table, td, th, input, .money-cell, .metric, [class*="amount"], [class*="total"], [class*="price"], [class*="date"], time) {
  font-variant-numeric: tabular-nums;
}
/* ---------- headings inside legacy panels and dialogs: the reference sets titles light and tight ---------- */
:is(.odx-dossier, #odx-skin) :is(.modal, dialog, [aria-modal="true"], .simple-section, .patient-operations-card, .page-card) :is(h1, h2, h3):not([class*="odx-"]) {
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: var(--odx-ui-ls-title);
  color: var(--odx-ink-strong);
}
:is(.odx-dossier, #odx-skin) :is(strong, b):not([class*="odx-"]) { font-weight: var(--odx-ui-w-medium); }
/* ---------- focus: emerald, always visible for keyboard users, never for mouse clicks ---------- */
:is(.odx-dossier, #odx-skin) :focus-visible {
  outline: var(--odx-ui-focus-ring);
  outline-offset: 2px;
}
:is(.odx-dossier, #odx-skin) :focus:not(:focus-visible) { outline: none; }
/* dialogs and regions receive programmatic focus: no ring around the whole sheet */
:is(.odx-dossier, #odx-skin) :is([role="dialog"], [role="alertdialog"], dialog, [role="region"], .modal, section[tabindex="-1"], main[tabindex="-1"]):focus-visible { outline: none; }
/* ---------- selection + scrollbars ---------- */
:is(.odx-dossier, #odx-skin) ::selection { background: rgb(170 255 198 / .7); color: var(--odx-ui-ink); }
:is(.odx-dossier, #odx-skin) { scrollbar-color: rgb(13 13 13 / .22) transparent; }
:is(.odx-dossier, #odx-skin) * { scrollbar-width: thin; scrollbar-color: rgb(13 13 13 / .2) transparent; }
:is(.odx-dossier, #odx-skin) ::-webkit-scrollbar { width: 10px; height: 10px; }
:is(.odx-dossier, #odx-skin) ::-webkit-scrollbar-track { background: transparent; }
:is(.odx-dossier, #odx-skin) ::-webkit-scrollbar-thumb {
  background: rgb(13 13 13 / .2) padding-box;
  border: 3px solid transparent;
  border-radius: 999px;
}
:is(.odx-dossier, #odx-skin) ::-webkit-scrollbar-thumb:hover { background-color: rgb(13 13 13 / .34); }
/* ---------- links ---------- */
:is(.odx-dossier, #odx-skin) :is(.modal, dialog, [aria-modal="true"], .simple-section, .patient-operations-card) a:not([class]) {
  color: var(--odx-ui-emerald-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
/* ---------- reduced motion: the restyle's own transitions collapse ---------- */
@media (prefers-reduced-motion: reduce) {
  :is(.odx-dossier, #odx-skin) { --odx-ui-dur: 0ms; }
}
/* ---------- section text tracking: legacy paragraphs default to 0 letter-spacing; the dossier sets type tight ---------- */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard p:not([class*="odx-"]) { letter-spacing: -0.02em; }
/* Odontiax dossier restyle — buttons.
   primary   → the reference's mint gradient button ("Schedule Appointment")
   secondary → white glass round-rect
   danger    → restrained red outline
   dark      → the reference's dark pill (active nav item)
   icon      → the reference's round soft discs (card arrow / kebab buttons)
   Legacy classes covered are listed per group. Loading spinners (.spin) and icons keep their markup. */
/* ---------- shared geometry for every text button ---------- */
:is(.odx-dossier, #odx-skin) :is(
  .primary-button, .dentalome-primary-button, .dentalome-blue-button, .retail-primary, .cheques-primary, .pan-primary,
  .rxv-primary, .camera-inbox-primary, .pimg-import, .document-composer-actions > button,
  .secondary-button, .dentalome-secondary-button, .dentalome-outline-button, .muted-button, .dentalome-download-button,
  .row-action, .retail-btn, .cheques-button, .dark-button, .danger-button, .retail-danger, .rxv-danger,
  .modal-actions > button:not([class]), .modal-actions > button.secondary,
  .patient-intake-dialog .modal-actions button, .patient-intake-footer button
):not([class*="odx-"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: max(6px, calc(9 * var(--odx-u)));
  min-height: var(--odx-ui-h);
  height: auto;
  padding: 0 var(--odx-ui-pad-x);
  border: 1px solid transparent;
  border-radius: var(--odx-ui-r-control);
  font-family: var(--odx-ui-font);
  font-size: var(--odx-ui-fs-button);
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: -0.027em;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease),
    border-color var(--odx-ui-dur) var(--odx-ui-ease), color var(--odx-ui-dur) var(--odx-ui-ease), transform var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) :is(.primary-button, .secondary-button, .dentalome-outline-button, .dentalome-secondary-button, .dentalome-blue-button, .muted-button, .danger-button, .cheques-small, .dark-button).compact:not([class*="odx-"]),
:is(.odx-dossier, #odx-skin) .cheques-small:not([class*="odx-"]) {
  min-height: var(--odx-ui-h-sm);
  padding: 0 max(12px, calc(18 * var(--odx-u)));
  font-size: max(13px, calc(17 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) :is(.primary-button, .secondary-button, .danger-button, .dentalome-outline-button, .dentalome-blue-button, .dentalome-secondary-button, .retail-btn, .cheques-button, .dark-button) svg:not(.spin) {
  flex: none;
  width: max(15px, calc(19 * var(--odx-u)));
  height: max(15px, calc(19 * var(--odx-u)));
  stroke-width: 1.7;
}
/* ---------- primary: mint gradient ---------- */
:is(.odx-dossier, #odx-skin) :is(.primary-button, .dentalome-primary-button, .dentalome-blue-button, .retail-primary, .cheques-primary, .pan-primary, .rxv-primary, .camera-inbox-primary, .pimg-import, .document-composer-actions > button.primary):not([class*="odx-"]) {
  background: var(--odx-ui-mint);
  border-color: transparent;
  color: var(--odx-ui-ink);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .32), 0 1px 1px rgb(30 90 40 / .06);
}
:is(.odx-dossier, #odx-skin) :is(.primary-button, .dentalome-primary-button, .dentalome-blue-button, .retail-primary, .cheques-primary, .pan-primary, .rxv-primary, .camera-inbox-primary, .pimg-import, .document-composer-actions > button.primary):not([class*="odx-"]):hover:not(:disabled, [aria-disabled="true"]) {
  background: var(--odx-ui-mint-hover);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .36), var(--odx-ui-mint-glow);
  color: var(--odx-ui-ink);
}
:is(.odx-dossier, #odx-skin) :is(.primary-button, .dentalome-primary-button, .dentalome-blue-button, .retail-primary, .cheques-primary, .pan-primary, .rxv-primary, .camera-inbox-primary, .pimg-import, .document-composer-actions > button.primary):not([class*="odx-"]):active:not(:disabled, [aria-disabled="true"]) {
  background: var(--odx-ui-mint-press);
  box-shadow: inset 0 1px 2px rgb(30 90 40 / .12);
  transform: translateY(1px);
}
:is(.odx-dossier, #odx-skin) :is(.primary-button, .dentalome-primary-button, .dentalome-blue-button, .retail-primary, .cheques-primary, .pan-primary, .rxv-primary, .camera-inbox-primary, .pimg-import, .document-composer-actions > button.primary):not([class*="odx-"]) :is(svg, span, b, strong) { color: inherit; }
/* ---------- secondary: white glass round-rect ---------- */
:is(.odx-dossier, #odx-skin) :is(
  .secondary-button, .dentalome-secondary-button, .dentalome-outline-button, .muted-button, .dentalome-download-button,
  .row-action, .retail-btn:not(.retail-primary, .retail-danger), .cheques-button:not(.cheques-primary),
  .modal-actions > button:not([class]), .modal-actions > button.secondary, .document-composer-actions > button:not(.primary),
  .patient-intake-dialog .modal-actions button:not(.primary-button, .danger-button), .patient-intake-footer button:not(.primary-button, .danger-button)
):not([class*="odx-"]) {
  background: var(--odx-ui-surface);
  border-color: var(--odx-ui-line-2);
  color: var(--odx-ui-ink);
  box-shadow: 0 1px 2px rgb(13 13 13 / .04);
}
:is(.odx-dossier, #odx-skin) :is(
  .secondary-button, .dentalome-secondary-button, .dentalome-outline-button, .muted-button, .dentalome-download-button,
  .row-action, .retail-btn:not(.retail-primary, .retail-danger), .cheques-button:not(.cheques-primary),
  .modal-actions > button:not([class]), .modal-actions > button.secondary, .document-composer-actions > button:not(.primary),
  .patient-intake-dialog .modal-actions button:not(.primary-button, .danger-button), .patient-intake-footer button:not(.primary-button, .danger-button)
):not([class*="odx-"]):hover:not(:disabled, [aria-disabled="true"]) {
  background: var(--odx-ui-surface-hover);
  border-color: rgb(13 13 13 / .18);
  box-shadow: var(--odx-ui-raise);
  color: var(--odx-ui-ink);
}
:is(.odx-dossier, #odx-skin) :is(.secondary-button, .dentalome-secondary-button, .dentalome-outline-button, .muted-button, .row-action, .retail-btn, .cheques-button, .modal-actions > button):not([class*="odx-"]):active:not(:disabled, [aria-disabled="true"]) {
  transform: translateY(1px);
  box-shadow: none;
}
:is(.odx-dossier, #odx-skin) .cheques-subtle:not([class*="odx-"]) { background: transparent; box-shadow: none; }
/* the patient form's "Antécédents existants" — legacy paints it blue with !important (styles.css .patient-history-button) */
:is(.odx-dossier, #odx-skin) .patient-history-button:not([class*="odx-"]) {
  border-color: var(--odx-ui-line-2) !important;
  background: var(--odx-ui-surface) !important;
  color: var(--odx-ui-ink) !important;
}
:is(.odx-dossier, #odx-skin) .patient-history-button:not([class*="odx-"]):hover:not(:disabled) { background: #fff !important; }
/* ---------- dark: the reference's active-nav pill (strong neutral action) ---------- */
:is(.odx-dossier, #odx-skin) .dark-button:not([class*="odx-"]) {
  background: var(--odx-ui-dark);
  border-color: var(--odx-ui-dark);
  color: var(--odx-ui-on-dark);
  box-shadow: 0 calc(10 * var(--odx-u)) calc(22 * var(--odx-u)) calc(-12 * var(--odx-u)) rgb(0 0 0 / .45);
}
:is(.odx-dossier, #odx-skin) .dark-button:not([class*="odx-"]):hover:not(:disabled) { background: #343131; color: var(--odx-ui-on-dark); }
/* ---------- destructive: restrained red outline ---------- */
:is(.odx-dossier, #odx-skin) :is(.danger-button, .retail-danger, .rxv-danger, .cheques-danger):not([class*="odx-"]) {
  background: rgb(255 255 255 / .85);
  border-color: var(--odx-ui-danger-line);
  color: var(--odx-ui-danger);
  box-shadow: none;
}
:is(.odx-dossier, #odx-skin) :is(.danger-button, .retail-danger, .rxv-danger, .cheques-danger):not([class*="odx-"]):hover:not(:disabled, [aria-disabled="true"]) {
  background: var(--odx-ui-danger-soft);
  border-color: rgb(180 35 24 / .55);
  color: #8f1b12;
}
:is(.odx-dossier, #odx-skin) :is(.danger-button, .retail-danger, .rxv-danger):not([class*="odx-"]) svg { color: inherit; }
/* ---------- text / link buttons ---------- */
:is(.odx-dossier, #odx-skin) :is(.link-button, .atelier-text-action, .cheques-text-button):not([class*="odx-"]) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 2px 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--odx-ui-emerald-ink);
  font-family: var(--odx-ui-font);
  font-size: inherit;
  font-weight: var(--odx-ui-w-regular);
  text-decoration: underline;
  text-decoration-color: rgb(10 115 80 / .35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) :is(.link-button, .atelier-text-action, .cheques-text-button):not([class*="odx-"]):hover { text-decoration-color: currentColor; color: #075c40; }
:is(.odx-dossier, #odx-skin) .cheques-text-button.cheques-danger:not([class*="odx-"]) { color: var(--odx-ui-danger); background: none; border: 0; }
/* ---------- round icon buttons: soft discs like the reference's card arrow and kebab ---------- */
:is(.odx-dossier, #odx-skin) :is(.plain-icon, .icon-button, .modal-close-button, .cheques-icon-button, .retail-icon-button):not([class*="odx-"]) {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--odx-ui-icon-d);
  height: var(--odx-ui-icon-d);
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--odx-ui-soft);
  color: var(--odx-ui-ink);
  box-shadow: none;
  opacity: 1;
  cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease), color var(--odx-ui-dur) var(--odx-ui-ease), transform var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) :is(.plain-icon, .icon-button, .cheques-icon-button).small:not([class*="odx-"]),
:is(.odx-dossier, #odx-skin) .plain-icon.small:not([class*="odx-"]) {
  width: var(--odx-ui-icon-d-sm);
  height: var(--odx-ui-icon-d-sm);
}
:is(.odx-dossier, #odx-skin) :is(.plain-icon, .icon-button, .modal-close-button, .cheques-icon-button, .retail-icon-button):not([class*="odx-"]):hover:not(:disabled, [aria-disabled="true"]) {
  background: var(--odx-ui-soft-hover);
  color: var(--odx-ui-ink);
}
:is(.odx-dossier, #odx-skin) :is(.plain-icon, .icon-button, .modal-close-button, .cheques-icon-button):not([class*="odx-"]):active:not(:disabled) { transform: scale(.94); }
:is(.odx-dossier, #odx-skin) :is(.plain-icon, .icon-button, .modal-close-button, .cheques-icon-button):not([class*="odx-"]) svg {
  width: max(15px, calc(19 * var(--odx-u)));
  height: max(15px, calc(19 * var(--odx-u)));
  stroke-width: 1.6;
  color: inherit;
}
:is(.odx-dossier, #odx-skin) :is(.plain-icon, .icon-button).small:not([class*="odx-"]) svg {
  width: max(14px, calc(17 * var(--odx-u)));
  height: max(14px, calc(17 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) :is(.plain-icon.danger, .plain-icon.destructive, .rxv-danger-icon):not([class*="odx-"]) { color: var(--odx-ui-danger); }
:is(.odx-dossier, #odx-skin) :is(.plain-icon.danger, .plain-icon.destructive, .rxv-danger-icon):not([class*="odx-"]):hover:not(:disabled) {
  background: var(--odx-ui-danger-soft);
  color: #8f1b12;
}
/* a labelled icon action (icon + short word) keeps its label but takes the disc language */
:is(.odx-dossier, #odx-skin) .plain-icon.document-labelled-action:not([class*="odx-"]) {
  width: auto;
  padding: 0 max(12px, calc(16 * var(--odx-u)));
  border-radius: 999px;
  gap: 6px;
  font-size: var(--odx-ui-fs-label);
  font-weight: var(--odx-ui-w-regular);
}
/* ---------- disabled: quiet, never a colour change alone (opacity + cursor + no shadow) ---------- */
:is(.odx-dossier, #odx-skin) :is(
  .primary-button, .dentalome-primary-button, .dentalome-blue-button, .retail-primary, .cheques-primary, .pan-primary, .rxv-primary, .camera-inbox-primary, .pimg-import, .document-composer-actions > button.primary,
  .secondary-button, .dentalome-secondary-button, .dentalome-outline-button, .muted-button, .dentalome-download-button, .row-action, .retail-btn, .cheques-button,
  .dark-button, .danger-button, .retail-danger, .rxv-danger, .link-button, .plain-icon, .icon-button, .modal-close-button, .cheques-icon-button,
  .modal-actions > button, .patient-intake-dialog button
):not([class*="odx-"]):is(:disabled, [aria-disabled="true"], .disabled) {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
/* ---------- focus on buttons: emerald ring with a white gap so it reads on mint and on white ---------- */
:is(.odx-dossier, #odx-skin) :is(
  .primary-button, .dentalome-primary-button, .dentalome-blue-button, .retail-primary, .cheques-primary, .pan-primary, .rxv-primary, .camera-inbox-primary, .pimg-import, .document-composer-actions > button.primary,
  .secondary-button, .dentalome-secondary-button, .dentalome-outline-button, .muted-button, .dentalome-download-button, .row-action, .retail-btn, .cheques-button,
  .dark-button, .danger-button, .plain-icon, .icon-button, .modal-close-button, .cheques-icon-button, .modal-actions > button, .patient-intake-dialog button
):not([class*="odx-"]):focus-visible {
  outline: var(--odx-ui-focus-ring);
  outline-offset: 2px;
}
/* Odontiax dossier restyle — form controls: text fields, textareas, selects, custom comboboxes, native date/time,
   the app's date calendar (DentalomeDateCalendar) and react-day-picker, checkboxes, radios, switches, labels.
   Padding is only set on controls whose markup is known (legacy icon-padded inputs keep their own padding). */
/* ---------- text-like fields ---------- */
:is(.odx-dossier, #odx-skin) :is(
  input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="number"],
  input[type="password"], input[type="url"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"],
  select, textarea
):not([class*="odx-"], :is(.combobox-search-row, .operation-act-command-search, .appointment-time-field) input, .dentalome-date-calendar-dropdown > select, .ProseMirror) {
  border: 1px solid var(--odx-ui-line-field);
  border-radius: var(--odx-ui-r-field);
  background-color: var(--odx-ui-field);
  color: var(--odx-ui-ink);
  font-family: var(--odx-ui-font);
  font-size: var(--odx-ui-fs-body);
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: -0.02em;
  box-shadow: inset 0 1px 1px rgb(13 13 13 / .025);
  transition: border-color var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease), background-color var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) :is(
  input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="number"],
  input[type="password"], input[type="url"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], select
):not([class*="odx-"], :is(.combobox-search-row, .operation-act-command-search, .appointment-time-field) input, .dentalome-date-calendar-dropdown > select, [multiple]) {
  min-height: var(--odx-ui-h);
}
:is(.odx-dossier, #odx-skin) textarea:not([class*="odx-"]) {
  min-height: calc(var(--odx-ui-h) * 2);
  padding: max(10px, calc(13 * var(--odx-u))) max(12px, calc(16 * var(--odx-u)));
  line-height: 1.5;
  resize: vertical;
}
:is(.odx-dossier, #odx-skin) :is(input, select, textarea):not([class*="odx-"], [type="checkbox"], [type="radio"], [type="range"], :is(.combobox-search-row, .operation-act-command-search, .appointment-time-field) input):hover:not(:disabled, :focus) {
  border-color: var(--odx-ui-line-field-hover);
  background-color: var(--odx-ui-field-hover);
}
:is(.odx-dossier, #odx-skin) :is(input, select, textarea):not([class*="odx-"], [type="checkbox"], [type="radio"], [type="range"], [type="file"], :is(.combobox-search-row, .operation-act-command-search, .appointment-time-field) input, .dentalome-date-calendar-dropdown > select):focus {
  border-color: var(--odx-ui-emerald);
  background-color: #fff;
  box-shadow: var(--odx-ui-focus);
  outline: none;
}
:is(.odx-dossier, #odx-skin) :is(input, select, textarea):not([class*="odx-"])::placeholder {
  color: var(--odx-ui-ink-3);
  font-weight: var(--odx-ui-w-light);
  opacity: 1;
}
/* disabled / read-only: grey ground + muted ink + cursor (beats the base field rule: extra :not(:focus) weight) */
:is(.odx-dossier, #odx-skin) :is(input, select, textarea):not([class*="odx-"], [type="checkbox"], [type="radio"], :is(.combobox-search-row, .operation-act-command-search, .appointment-time-field) input):disabled:not(:focus),
:is(.odx-dossier, #odx-skin) :is(input, textarea):not([class*="odx-"], [type="checkbox"], [type="radio"], :is(.combobox-search-row, .operation-act-command-search, .appointment-time-field) input)[readonly]:not(:focus) {
  background-color: var(--odx-ui-field-disabled);
  color: rgb(13 13 13 / .6);
  cursor: not-allowed;
}
:is(.odx-dossier, #odx-skin) :is(input, textarea):not([class*="odx-"])[readonly]:not([type="checkbox"], [type="radio"]) { cursor: default; }
/* error state: red border + a second channel (aria-invalid fields also get the message from the form) */
:is(.odx-dossier, #odx-skin) :is(input, select, textarea, .combobox-trigger):not([class*="odx-"]):is([aria-invalid="true"], :user-invalid) {
  border-color: rgb(180 35 24 / .6);
  box-shadow: 0 0 0 3px rgb(180 35 24 / .1);
}
/* select: one chevron in the reference's line style */
:is(.odx-dossier, #odx-skin) select:not([class*="odx-"], .dentalome-date-calendar-dropdown > select, [multiple]) {
  appearance: none;
  -webkit-appearance: none;
  padding-right: max(34px, calc(44 * var(--odx-u)));
  padding-left: max(12px, calc(16 * var(--odx-u)));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230d0d0d' stroke-opacity='.55' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right max(10px, calc(14 * var(--odx-u))) center;
  background-size: max(16px, calc(20 * var(--odx-u)));
  cursor: pointer;
}
/* native date / time pickers: quieter indicator */
:is(.odx-dossier, #odx-skin) input:is([type="date"], [type="time"], [type="datetime-local"], [type="month"]):not([class*="odx-"])::-webkit-calendar-picker-indicator {
  opacity: .55;
  cursor: pointer;
  border-radius: 6px;
  padding: 2px;
}
:is(.odx-dossier, #odx-skin) input:is([type="date"], [type="time"], [type="datetime-local"], [type="month"]):not([class*="odx-"])::-webkit-calendar-picker-indicator:hover { opacity: .9; background: var(--odx-ui-soft-hover); }
:is(.odx-dossier, #odx-skin) input[type="file"]:not([class*="odx-"])::file-selector-button {
  margin-right: 12px;
  padding: 6px 14px;
  border: 1px solid var(--odx-ui-line-2);
  border-radius: var(--odx-ui-r-field);
  background: var(--odx-ui-surface);
  color: var(--odx-ui-ink);
  font: inherit;
  cursor: pointer;
}
/* ---------- custom comboboxes + the app's date input (buttons that look like fields) ---------- */
:is(.odx-dossier, #odx-skin) :is(.combobox-trigger, .dentalome-date-input > button, .pimg-select, .appointment-time-field):not([class*="odx-"]) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: var(--odx-ui-h);
  padding: 0 max(12px, calc(16 * var(--odx-u)));
  border: 1px solid var(--odx-ui-line-field);
  border-radius: var(--odx-ui-r-field);
  background: var(--odx-ui-field);
  color: var(--odx-ui-ink);
  font-family: var(--odx-ui-font);
  font-size: var(--odx-ui-fs-body);
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: -0.02em;
  text-align: left;
  box-shadow: inset 0 1px 1px rgb(13 13 13 / .025);
  transition: border-color var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) :is(.combobox-trigger, .dentalome-date-input > button):not([class*="odx-"]):hover:not(:disabled) {
  border-color: var(--odx-ui-line-field-hover);
  background: var(--odx-ui-field-hover);
}
:is(.odx-dossier, #odx-skin) :is(.combobox-trigger, .dentalome-date-input > button):not([class*="odx-"]) > svg:last-child:not(:first-child) { margin-left: auto; }
:is(.odx-dossier, #odx-skin) :is(.combobox-trigger, .dentalome-date-input > button):not([class*="odx-"]) > span:first-child:last-child { flex: 1; }
/* the ordonnance composer's legacy rule moves the calendar icon first (order:-1 + margin-right); with the auto
   margin above that pushed icon AND date to the right edge. Same layout as every other date field instead:
   value left, icon right. */
:is(.odx-dossier, #odx-skin) .ordonnance-source-date-field .dentalome-date-input > button:not([class*="odx-"]) > svg { order: 0; margin-right: 0; }
:is(.odx-dossier, #odx-skin) .appointment-time-field:not([class*="odx-"]) { height: auto; gap: 2px; overflow: visible; cursor: text; }
:is(.odx-dossier, #odx-skin) .appointment-time-field:not([class*="odx-"]):focus-within {
  border-color: var(--odx-ui-emerald);
  background: #fff;
  box-shadow: var(--odx-ui-focus);
}
:is(.odx-dossier, #odx-skin) .appointment-time-field:not([class*="odx-"]) input {
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: var(--odx-ui-ink);
  font-family: var(--odx-ui-font);
  font-size: var(--odx-ui-fs-body);
  font-weight: var(--odx-ui-w-regular);
  font-variant-numeric: tabular-nums;
}
:is(.odx-dossier, #odx-skin) .appointment-time-field:not([class*="odx-"]) input:focus { background: rgb(197 252 196 / .55); outline: none; }
:is(.odx-dossier, #odx-skin) :is(.combobox-trigger, .dentalome-date-input > button):not([class*="odx-"]):is(:focus-visible, [aria-expanded="true"]) {
  border-color: var(--odx-ui-emerald);
  background: #fff;
  box-shadow: var(--odx-ui-focus);
  outline: none;
}
:is(.odx-dossier, #odx-skin) .combobox-trigger.placeholder:not([class*="odx-"]) { color: var(--odx-ui-ink-3); font-weight: var(--odx-ui-w-light); }
:is(.odx-dossier, #odx-skin) :is(.combobox-trigger, .dentalome-date-input > button):not([class*="odx-"]) svg {
  flex: none;
  width: max(15px, calc(18 * var(--odx-u)));
  height: max(15px, calc(18 * var(--odx-u)));
  color: var(--odx-ui-ink);
  opacity: .5;
  stroke-width: 1.6;
}
:is(.odx-dossier, #odx-skin) :is(.combobox-trigger, .dentalome-date-input > button):not([class*="odx-"]):disabled {
  background: var(--odx-ui-field-disabled);
  color: rgb(13 13 13 / .55);
  cursor: not-allowed;
  box-shadow: none;
}
/* ---------- labels, required marks, helper text ---------- */
:is(.odx-dossier, #odx-skin) :is(.field-label, .form-grid > label, .form-grid label:not(.switch, .inline-control, .checkbox-row), :is(.modal, dialog.patient-intake-dialog) label:not(.switch, .inline-control, [class*="check"], [class*="radio"], [class*="choice"], .questionnaire-answer-options label)):not([class*="odx-"]) {
  color: var(--odx-ui-ink);
  font-size: max(13px, calc(16.35 * var(--odx-u)));
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: var(--odx-ui-ls-label);
}
:is(.odx-dossier, #odx-skin) .field-label:not([class*="odx-"]) svg {
  width: max(14px, calc(17 * var(--odx-u)));
  height: max(14px, calc(17 * var(--odx-u)));
  color: var(--odx-ui-ink-2);
  stroke-width: 1.6;
}
:is(.odx-dossier, #odx-skin) .required-mark:not([class*="odx-"]) {
  color: var(--odx-ui-danger);
  font-weight: var(--odx-ui-w-regular);
  margin-left: 1px;
}
:is(.odx-dossier, #odx-skin) :is(.field-hint, .form-hint, .input-hint, .field-help, .operation-price-hint, .modal-subtitle, .modal-head-subtitle):not([class*="odx-"]) {
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-note);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.02em;
  line-height: 1.45;
}
/* ---------- checkboxes (native + the app's role="checkbox" button) ---------- */
:is(.odx-dossier, #odx-skin) input[type="checkbox"]:not([class*="odx-"], [role="switch"], .switch input, .insurance-choice-native, [hidden]),
:is(.odx-dossier, #odx-skin) :is(.dentalome-checkbox-control, button[role="checkbox"]:not([class])):not([class*="odx-"]) {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  border: 1.5px solid rgb(13 13 13 / .42);       /* 3.4:1 against white */
  border-radius: 6px;
  background: #fff;
  color: #fff;
  box-shadow: 0 1px 1px rgb(13 13 13 / .04);
  cursor: pointer;
  vertical-align: middle;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease), border-color var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) input[type="checkbox"]:not([class*="odx-"], [role="switch"], .switch input, .insurance-choice-native):hover:not(:disabled),
:is(.odx-dossier, #odx-skin) :is(.dentalome-checkbox-control, button[role="checkbox"]:not([class])):not([class*="odx-"]):hover { border-color: rgb(13 13 13 / .7); }
:is(.odx-dossier, #odx-skin) input[type="checkbox"]:not([class*="odx-"], [role="switch"], .switch input, .insurance-choice-native):is(:checked, :indeterminate),
:is(.odx-dossier, #odx-skin) :is(.dentalome-checkbox-control, button[role="checkbox"]:not([class])):not([class*="odx-"]):is([aria-checked="true"], [aria-checked="mixed"], [data-state="checked"]) {
  border-color: var(--odx-ui-emerald);
  background: var(--odx-ui-emerald);
}
:is(.odx-dossier, #odx-skin) input[type="checkbox"]:not([class*="odx-"], [role="switch"], .switch input, .insurance-choice-native):checked {
  background: var(--odx-ui-emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
:is(.odx-dossier, #odx-skin) input[type="checkbox"]:not([class*="odx-"], [role="switch"], .switch input, .insurance-choice-native):indeterminate {
  background: var(--odx-ui-emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 13px no-repeat;
}
:is(.odx-dossier, #odx-skin) :is(.dentalome-checkbox-control, button[role="checkbox"]:not([class])):not([class*="odx-"]) svg { width: 12px; height: 12px; color: #fff; stroke-width: 3.2; }
:is(.odx-dossier, #odx-skin) :is(input[type="checkbox"], input[type="radio"]):not([class*="odx-"], [role="switch"], .switch input):focus-visible,
:is(.odx-dossier, #odx-skin) :is(.dentalome-checkbox-control, button[role="checkbox"]:not([class])):not([class*="odx-"]):focus-visible {
  outline: var(--odx-ui-focus-ring);
  outline-offset: 2px;
}
:is(.odx-dossier, #odx-skin) :is(input[type="checkbox"], input[type="radio"]):not([class*="odx-"]):disabled,
:is(.odx-dossier, #odx-skin) :is(.dentalome-checkbox-control, button[role="checkbox"]:not([class])):not([class*="odx-"]):disabled { opacity: .45; cursor: not-allowed; }
/* ---------- radios ---------- */
:is(.odx-dossier, #odx-skin) input[type="radio"]:not([class*="odx-"], [hidden]) {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  flex: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  border: 1.5px solid rgb(13 13 13 / .42);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  vertical-align: middle;
  transition: border-color var(--odx-ui-dur) var(--odx-ui-ease), background var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) input[type="radio"]:not([class*="odx-"]):hover:not(:disabled) { border-color: rgb(13 13 13 / .7); }
:is(.odx-dossier, #odx-skin) input[type="radio"]:not([class*="odx-"]):checked {
  border-color: var(--odx-ui-emerald);
  background: radial-gradient(circle, var(--odx-ui-emerald) 0 4px, #fff 4.5px);
}
/* ---------- switches: label.switch > input[role=switch] + span (track) ---------- */
:is(.odx-dossier, #odx-skin) label.switch:not([class*="odx-"]) {
  align-items: center;
  gap: max(8px, calc(12 * var(--odx-u)));
  color: var(--odx-ui-ink);
  font-size: var(--odx-ui-fs-body);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: var(--odx-ui-ls-body);
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) label.switch:not([class*="odx-"]) > span {
  position: relative;
  flex: none;
  width: max(36px, calc(46 * var(--odx-u)));
  height: max(20px, calc(26 * var(--odx-u)));
  border-radius: 999px;
  background: rgb(13 13 13 / .1);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .42);    /* track outline 3.4:1 so the off state is visible */
  transition: background var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) label.switch:not([class*="odx-"]) > span::after {
  top: 3px;
  left: 3px;
  width: calc(max(20px, calc(26 * var(--odx-u))) - 6px);
  height: calc(max(20px, calc(26 * var(--odx-u))) - 6px);
  background: #fff;
  box-shadow: 0 1px 2px rgb(13 13 13 / .3), 0 0 0 .5px rgb(13 13 13 / .12);
  transform: none;
  transition: transform var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) label.switch:not([class*="odx-"]) > input:checked + span {
  background: var(--odx-ui-emerald);
  box-shadow: inset 0 0 0 1px var(--odx-ui-emerald);
}
:is(.odx-dossier, #odx-skin) label.switch:not([class*="odx-"]) > input:checked + span::after {
  transform: translateX(calc(max(36px, calc(46 * var(--odx-u))) - max(20px, calc(26 * var(--odx-u)))));
}
:is(.odx-dossier, #odx-skin) label.switch:not([class*="odx-"]) > input:focus-visible + span { outline: var(--odx-ui-focus-ring); outline-offset: 2px; }
:is(.odx-dossier, #odx-skin) label.switch:not([class*="odx-"]) > input:disabled + span { opacity: .5; }
:is(.odx-dossier, #odx-skin) label.switch:not([class*="odx-"]):has(> input:disabled) { cursor: not-allowed; }
/* ---------- the app's date calendar popover (DentalomeDateCalendar) ---------- */
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar:not([class*="odx-"]) {
  width: max(288px, calc(330 * var(--odx-u)));
  border: 0;
  border-radius: var(--odx-ui-r-menu);
  background: var(--odx-ui-menu-bg);
  box-shadow: var(--odx-ui-menu-shadow);
  backdrop-filter: blur(18px) saturate(1.2);
  color: var(--odx-ui-ink);
  font-family: var(--odx-ui-font);
}
:is(.odx-dossier, #odx-skin) .dentalome-date-popover:not([class*="odx-"]) { width: auto; z-index: 140; }
/* date controls that sit at the right end of their row (appointment dialog summary, last column of the
   three-column prothese dates): open the calendar leftwards from the trigger's right edge, so every weekday
   and the month arrows stay inside the dialog's scroll box (the dialog clips with overflow:auto) */
:is(.odx-dossier, #odx-skin) :is(.appointment-form-date-control, .prothese-date-grid > :last-child:not(:first-child)) .dentalome-date-popover:not([class*="odx-"]) {
  left: auto;
  right: 0;
}
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-inner:not([class*="odx-"]) { width: 100%; padding: 14px; }
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-nav:not([class*="odx-"]) { top: 14px; left: 14px; right: 14px; width: auto; height: 34px; }
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-nav button:not([class*="odx-"]) {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: var(--odx-ui-soft);
  color: var(--odx-ui-ink);
}
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-nav button:not([class*="odx-"]):hover { background: var(--odx-ui-soft-hover); }
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-caption:not([class*="odx-"]) { top: 14px; height: 34px; }
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-dropdown:not([class*="odx-"]) { height: 34px; font-size: var(--odx-ui-fs-body); font-weight: var(--odx-ui-w-regular); letter-spacing: -0.02em; }
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-dropdown:not([class*="odx-"]) > span { height: 34px; border-radius: 10px; padding: 0 6px 0 10px; text-transform: capitalize; }
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-dropdown:not([class*="odx-"]):hover > span { background: var(--odx-ui-soft); }
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-dropdown:not([class*="odx-"]) > select:focus-visible + span { outline: var(--odx-ui-focus-ring); outline-offset: 1px; }
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-grid:not([class*="odx-"]) { width: 100%; min-width: 0; max-width: none; margin-top: 50px; }
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-grid:not([class*="odx-"]) tr { width: 100%; justify-content: space-between; }
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-grid:not([class*="odx-"]) tbody tr { height: auto; margin-top: 4px; }
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-grid:not([class*="odx-"]) th {
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-label);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.02em;
}
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-grid:not([class*="odx-"]) :is(td, th) { width: 14.28%; display: grid; place-items: center; background: none; }
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-grid:not([class*="odx-"]) td button {
  width: max(34px, calc(40 * var(--odx-u)));
  height: max(34px, calc(40 * var(--odx-u)));
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--odx-ui-ink);
  font-size: var(--odx-ui-fs-body);
  font-weight: var(--odx-ui-w-light);
  font-variant-numeric: tabular-nums;
  box-shadow: none;
}
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-grid:not([class*="odx-"]) td button:hover { background: var(--odx-ui-soft-hover); }
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-grid:not([class*="odx-"]) td.outside button { color: rgb(13 13 13 / .38); }
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-grid:not([class*="odx-"]) td.selected { background: none; }
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-grid:not([class*="odx-"]) td.selected button,
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-grid:not([class*="odx-"]) td[aria-selected="true"] button {
  background: var(--odx-ui-dark);
  color: var(--odx-ui-on-dark);
  font-weight: var(--odx-ui-w-regular);
  box-shadow: 0 6px 14px -8px rgb(0 0 0 / .6);
}
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-grid:not([class*="odx-"]) td button[aria-label*="aujourd"],
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-grid:not([class*="odx-"]) td button[aria-label*="Today"],
:is(.odx-dossier, #odx-skin) .dentalome-date-calendar-grid:not([class*="odx-"]) td button[aria-label*="today"] {
  box-shadow: inset 0 0 0 1.5px var(--odx-ui-emerald);
}
/* ---------- react-day-picker (v9 CSS variables + class names) ---------- */
:is(.odx-dossier, #odx-skin) .rdp-root {
  --rdp-accent-color: var(--odx-ui-dark);
  --rdp-accent-background-color: rgb(197 252 196 / .45);
  --rdp-day-height: max(34px, calc(40 * var(--odx-u)));
  --rdp-day-width: max(34px, calc(40 * var(--odx-u)));
  --rdp-day_button-height: max(32px, calc(38 * var(--odx-u)));
  --rdp-day_button-width: max(32px, calc(38 * var(--odx-u)));
  --rdp-day_button-border-radius: 50%;
  --rdp-selected-border: 0;
  --rdp-today-color: var(--odx-ui-emerald-ink);
  --rdp-range_middle-background-color: rgb(197 252 196 / .45);
  --rdp-range_start-date-background-color: var(--odx-ui-dark);
  --rdp-range_end-date-background-color: var(--odx-ui-dark);
  font-family: var(--odx-ui-font);
  font-weight: var(--odx-ui-w-light);
}
:is(.odx-dossier, #odx-skin) .rdp-root :is(.rdp-selected .rdp-day_button, .rdp-range_start .rdp-day_button, .rdp-range_end .rdp-day_button) {
  background: var(--odx-ui-dark);
  color: var(--odx-ui-on-dark);
  border: 0;
}
:is(.odx-dossier, #odx-skin) .rdp-root .rdp-caption_label { font-weight: var(--odx-ui-w-regular); text-transform: capitalize; }
:is(.odx-dossier, #odx-skin) .rdp-root .rdp-weekday { color: var(--odx-ui-ink-2); font-weight: var(--odx-ui-w-light); font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .rdp-root :is(.rdp-button_previous, .rdp-button_next) { border-radius: 50%; background: var(--odx-ui-soft); }
:is(.odx-dossier, #odx-skin) .rdp-root .rdp-chevron { fill: var(--odx-ui-ink); }
/* Odontiax dossier restyle — tab lists and segmented controls → the reference's stage pills
   ("Treatment Plan" mint pill + "History" plain label). Covers every legacy [role=tablist] (treatment states,
   Devis 1…10, document sub-tabs, radiology filters…) and the non-ARIA segmented groups. Elements with an
   "odx-" class (the new shell's own pills) are left alone. */
:is(.odx-dossier, #odx-skin) :is([role="tablist"], .segmented, .pimg-segment, .notes-filter-tabs):not([class*="odx-"], .patient-header-tabs) {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: max(4px, calc(6 * var(--odx-u)));
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 0;
  overflow-x: auto;                 /* long lists (Devis 1…10) scroll instead of clipping */
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: max(3px, calc(4 * var(--odx-u)));
  border: 0;
  border-radius: calc(var(--odx-ui-r-tab) + max(3px, calc(4 * var(--odx-u))));
  background: rgb(255 255 255 / .55);
  box-shadow: inset 0 0 0 1px var(--odx-ui-line);
}
:is(.odx-dossier, #odx-skin) :is([role="tablist"], .segmented, .pimg-segment, .notes-filter-tabs):not([class*="odx-"], .patient-header-tabs) > :is([role="tab"], button):not([class*="odx-"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: max(6px, calc(8 * var(--odx-u)));
  flex: none;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: max(32px, calc(44 * var(--odx-u)));
  padding: 0 max(12px, calc(20 * var(--odx-u)));
  border: 0;
  border-radius: var(--odx-ui-r-tab);
  background: transparent;
  box-shadow: none;
  color: var(--odx-ink-tab);
  font-family: var(--odx-ui-font);
  font-size: var(--odx-ui-fs-tab);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.035em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease), color var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) :is([role="tablist"], .segmented, .pimg-segment, .notes-filter-tabs):not([class*="odx-"], .patient-header-tabs) > :is([role="tab"], button):not([class*="odx-"]):hover:not(:is([aria-selected="true"], .active, [aria-pressed="true"], [aria-current="page"], :disabled)) {
  background: rgb(13 13 13 / .045);
  color: var(--odx-ui-ink);
}
/* selected: mint gradient pill, regular weight (state also exposed by aria-selected, and by the weight change) */
:is(.odx-dossier, #odx-skin) :is([role="tablist"], .segmented, .pimg-segment, .notes-filter-tabs):not([class*="odx-"], .patient-header-tabs) > :is([role="tab"], button):not([class*="odx-"]):is([aria-selected="true"], .active, [aria-pressed="true"], [aria-current="page"]) {
  background: var(--odx-ui-mint);
  color: var(--odx-ui-ink);
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: -0.022em;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35), 0 calc(8 * var(--odx-u)) calc(18 * var(--odx-u)) calc(-12 * var(--odx-u)) rgb(74 190 112 / .55);
}
:is(.odx-dossier, #odx-skin) :is([role="tablist"], .segmented, .pimg-segment, .notes-filter-tabs):not([class*="odx-"], .patient-header-tabs) > :is([role="tab"], button):not([class*="odx-"]):is(:disabled, [aria-disabled="true"]) {
  opacity: .45;
  cursor: not-allowed;
}
:is(.odx-dossier, #odx-skin) :is([role="tablist"], .segmented, .pimg-segment, .notes-filter-tabs):not([class*="odx-"], .patient-header-tabs) > :is([role="tab"], button):not([class*="odx-"]):focus-visible {
  outline: var(--odx-ui-focus-ring);
  outline-offset: 2px;
}
:is(.odx-dossier, #odx-skin) :is([role="tablist"], .segmented, .pimg-segment):not([class*="odx-"]) > :is([role="tab"], button):not([class*="odx-"]) svg {
  width: max(14px, calc(18 * var(--odx-u)));
  height: max(14px, calc(18 * var(--odx-u)));
  stroke-width: 1.6;
}
/* legacy underline indicators are replaced by the pill */
:is(.odx-dossier, #odx-skin) :is([role="tablist"], .segmented, .pimg-segment, .notes-filter-tabs):not([class*="odx-"], .patient-header-tabs, .treatment-plan-tabs) > :is([role="tab"], button):not([class*="odx-"])::after { content: none; }
/* Devis 1…10: a quote that holds acts keeps the app's "populated" dot (a shape, not a colour change) */
:is(.odx-dossier, #odx-skin) .treatment-plan-tabs:not([class*="odx-"]) > button.populated::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--odx-ui-emerald);
}
:is(.odx-dossier, #odx-skin) .treatment-plan-tabs:not([class*="odx-"]) > button.populated:is(.active, [aria-selected="true"])::before { background: var(--odx-ui-ink); }
/* Odontiax dossier restyle — data tables → the reference's airy "Treatment History" rows:
   small grey Light column labels, generous rows (~72 reference px), hairline separators, no grid lines,
   values in Outfit Light with tabular figures, round soft action buttons at the row end.
   Covered: .patient-operations-table (ACTUEL/PLAN/INITIAL), .dentalome-patient-table (RDV, paiements, factures,
   devis, ordonnances, feuilles de soins, mutuelle, panoramic reports, synthèses), .cheques-table,
   .document-source-table (act pickers in document dialogs), .data-table, .dentalome-table, DataTable wrappers.
   Section stylesheets can tune --odx-ui-row-pad-y / --odx-ui-row-pad-x on a container. */
/* ---------- containers ---------- */
:is(.odx-dossier, #odx-skin) :is(.dentalome-table-wrap, .table-wrap, .patient-operations-wrap, .dentalome-patient-table-scroll):not([class*="odx-"]) {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
/* ---------- table ---------- */
:is(.odx-dossier, #odx-skin) :is(.patient-operations-table, .dentalome-patient-table, .cheques-table, .document-source-table, .data-table, .dentalome-table, .dentalome-table-wrap > table, .table-wrap > table):not([class*="odx-"]) {
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  box-shadow: none;
  color: var(--odx-ui-ink);
  font-family: var(--odx-ui-font);
  font-size: var(--odx-ui-fs-body);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: var(--odx-ui-ls-body);
  font-variant-numeric: tabular-nums;
}
:is(.odx-dossier, #odx-skin) :is(.patient-operations-table, .dentalome-patient-table, .cheques-table, .document-source-table, .data-table, .dentalome-table, .dentalome-table-wrap > table, .table-wrap > table):not([class*="odx-"]) :is(thead, thead tr, tbody, tbody tr, tfoot, tfoot tr) {
  border: 0;
  background: transparent;
  box-shadow: none;
}
/* column labels: the reference's small grey "Date:" / "Procedure" labels */
:is(.odx-dossier, #odx-skin) :is(.patient-operations-table, .dentalome-patient-table, .cheques-table, .document-source-table, .data-table, .dentalome-table, .dentalome-table-wrap > table, .table-wrap > table):not([class*="odx-"]) > thead > tr > th {
  height: auto;
  padding: max(8px, calc(12 * var(--odx-u))) var(--odx-ui-row-pad-x);
  border: 0;
  border-bottom: 1px solid var(--odx-ui-line);
  background: transparent;
  box-shadow: none;
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-label);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: var(--odx-ui-ls-label);
  line-height: 1.3;
  text-transform: none;
  white-space: nowrap;
  vertical-align: bottom;
}
:is(.odx-dossier, #odx-skin) :is(.patient-operations-table, .dentalome-patient-table, .cheques-table, .document-source-table, .data-table, .dentalome-table, .dentalome-table-wrap > table, .table-wrap > table):not([class*="odx-"]) > thead > tr > th:first-child { border-top-left-radius: 0; }
/* values */
:is(.odx-dossier, #odx-skin) :is(.patient-operations-table, .dentalome-patient-table, .cheques-table, .document-source-table, .data-table, .dentalome-table, .dentalome-table-wrap > table, .table-wrap > table):not([class*="odx-"]) > tbody > tr > td:not(.green-text, .red-text, .money-green, .money-red) {
  color: var(--odx-ui-ink);
}
:is(.odx-dossier, #odx-skin) :is(.patient-operations-table, .dentalome-patient-table, .cheques-table, .document-source-table, .data-table, .dentalome-table, .dentalome-table-wrap > table, .table-wrap > table):not([class*="odx-"]) > tbody > tr > td {
  height: auto;
  padding: var(--odx-ui-row-pad-y) var(--odx-ui-row-pad-x);
  border: 0;
  border-bottom: 1px solid var(--odx-ui-line);
  background: transparent;
  font-size: var(--odx-ui-fs-body);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: var(--odx-ui-ls-body);
  line-height: 1.35;
  vertical-align: middle;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) :is(.patient-operations-table, .dentalome-patient-table, .cheques-table, .document-source-table, .data-table, .dentalome-table, .dentalome-table-wrap > table, .table-wrap > table):not([class*="odx-"]) > tbody > tr:last-child > td { border-bottom: 0; }
/* row hover + selection: soft wash with rounded ends, like a reference glass row */
:is(.odx-dossier, #odx-skin) :is(.patient-operations-table, .dentalome-patient-table, .cheques-table, .document-source-table, .data-table, .dentalome-table, .dentalome-table-wrap > table, .table-wrap > table):not([class*="odx-"]) > tbody > tr:not(.dentalome-empty-row, .dentalome-patient-empty-row, :has(> td:is(.dentalome-empty-row, .dentalome-patient-empty-row, .empty-cell, .dentalome-empty-cell, .empty-table-cell))):hover > td {
  background: var(--odx-ui-row-hover);
}
:is(.odx-dossier, #odx-skin) :is(.patient-operations-table, .dentalome-patient-table, .cheques-table, .document-source-table, .data-table, .dentalome-table, .dentalome-table-wrap > table, .table-wrap > table):not([class*="odx-"]) > tbody > tr:is([aria-selected="true"], .selected, .is-selected, .cheques-row-selected, :has(> td .dentalome-checkbox-control[aria-checked="true"]), :has(> td > input[type="checkbox"]:checked)) > td {
  background: var(--odx-ui-row-selected);
}
:is(.odx-dossier, #odx-skin) :is(.patient-operations-table, .dentalome-patient-table, .cheques-table, .document-source-table, .data-table, .dentalome-table):not([class*="odx-"]) > tbody > tr > td:first-child {
  border-top-left-radius: max(10px, calc(14 * var(--odx-u)));
  border-bottom-left-radius: max(10px, calc(14 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) :is(.patient-operations-table, .dentalome-patient-table, .cheques-table, .document-source-table, .data-table, .dentalome-table):not([class*="odx-"]) > tbody > tr > td:last-child {
  border-top-right-radius: max(10px, calc(14 * var(--odx-u)));
  border-bottom-right-radius: max(10px, calc(14 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) :is(.patient-operations-table, .dentalome-patient-table, .cheques-table, .data-table, .dentalome-table):not([class*="odx-"]) > tfoot td {
  padding: var(--odx-ui-row-pad-y) var(--odx-ui-row-pad-x);
  border: 0;
  border-top: 1px solid var(--odx-ui-line-2);
  background: transparent;
  color: var(--odx-ui-ink);
  font-weight: var(--odx-ui-w-regular);
}
/* sortable column labels */
:is(.odx-dossier, #odx-skin) .dentalome-sort-header:not([class*="odx-"]) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .dentalome-sort-header:not([class*="odx-"]) svg { width: 12px; height: 12px; opacity: .55; }
:is(.odx-dossier, #odx-skin) .dentalome-sort-header:not([class*="odx-"]):hover { color: var(--odx-ui-ink); }
/* the acts table's selection cell (checkbox + sessions shortcut) loses its legacy grey slab */
:is(.odx-dossier, #odx-skin) .operation-select-cell:not([class*="odx-"]) { background: transparent; gap: max(6px, calc(8 * var(--odx-u))); }
/* row action clusters: soft round buttons, aligned at the row end like the reference kebab */
:is(.odx-dossier, #odx-skin) :is(.dentalome-actions, .row-actions, .dentalome-row-actions, .patient-note-actions, .operation-receipt-actions):not([class*="odx-"]) {
  display: inline-flex;
  align-items: center;
  gap: max(4px, calc(6 * var(--odx-u)));
}
/* money tones keep their meaning with AA contrast (the column label is the second channel) */
:is(.odx-dossier, #odx-skin) :is(.green-text, .money-green, .metric.green p, .metric.green p > :is(strong, b)):not([class*="odx-"]) { color: #177245; }
:is(.odx-dossier, #odx-skin) :is(.red-text, .money-red, .metric.red p, .metric.red p > :is(strong, b)):not([class*="odx-"]) { color: var(--odx-ui-danger); }
/* ---------- empty + loading rows ---------- */
:is(.odx-dossier, #odx-skin) :is(.empty-cell, .dentalome-empty-cell, .empty-table-cell):not([class*="odx-"]),
:is(.odx-dossier, #odx-skin) :is(.dentalome-empty-row, .dentalome-patient-empty-row):not([class*="odx-"]) > td,
:is(.odx-dossier, #odx-skin) td:is(.dentalome-empty-row, .dentalome-patient-empty-row):not([class*="odx-"]) {
  /* !important only where styles.css itself forces the property with !important:
     .empty-table-cell (height, padding, colour, weight), .dentalome-empty-cell (height, colour, alignment),
     .dentalome-empty-row (text-align: left) */
  height: auto !important;
  padding: max(28px, calc(44 * var(--odx-u))) var(--odx-ui-row-pad-x) !important;
  border-bottom: 0;
  background: transparent;
  color: var(--odx-ui-ink-2) !important;
  font-size: var(--odx-ui-fs-body);
  font-weight: var(--odx-ui-w-light) !important;
  text-align: center !important;
}
:is(.odx-dossier, #odx-skin) .dentalome-empty-text:not([class*="odx-"]) { color: inherit; font: inherit; }
/* ---------- table footers + pagination ---------- */
:is(.odx-dossier, #odx-skin) :is(.dentalome-table-footer, .table-pagination, .dentalome-pagination-row):not([class*="odx-"]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--odx-ui-gap);
  padding: max(10px, calc(14 * var(--odx-u))) var(--odx-ui-row-pad-x) 0;
  border: 0;
  background: transparent;
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-label);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: var(--odx-ui-ls-label);
  font-variant-numeric: tabular-nums;
}
:is(.odx-dossier, #odx-skin) :is(.dentalome-pagination, .table-pagination, .dentalome-pagination-row):not([class*="odx-"]) {
  display: inline-flex;
  align-items: center;
  gap: max(6px, calc(8 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) :is(.dentalome-pagination, .table-pagination, .dentalome-pagination-row):not([class*="odx-"]) button {
  display: inline-grid;
  place-items: center;
  width: var(--odx-ui-icon-d-sm);
  height: var(--odx-ui-icon-d-sm);
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--odx-ui-soft);
  color: var(--odx-ui-ink);
  box-shadow: none;
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) :is(.dentalome-pagination, .table-pagination, .dentalome-pagination-row):not([class*="odx-"]) button:hover:not(:disabled) { background: var(--odx-ui-soft-hover); }
:is(.odx-dossier, #odx-skin) :is(.dentalome-pagination, .table-pagination, .dentalome-pagination-row):not([class*="odx-"]) button:disabled { opacity: .35; cursor: not-allowed; }
:is(.odx-dossier, #odx-skin) :is(.dentalome-pagination, .table-pagination, .dentalome-pagination-row):not([class*="odx-"]) button svg { width: 16px; height: 16px; stroke-width: 1.7; }
/* act picker of the Facture / Devis / Feuille de soins dialogs: the legacy global  table { min-width: 760px }
   made it wider than its 684–701 px wrap (overflow hidden), cutting the Montant column ("300 MA") */
:is(.odx-dossier, #odx-skin) .document-source-table:not([class*="odx-"]) { width: 100%; min-width: 0; }
/* Odontiax dossier restyle — chips, badges and status pills → the reference's "Low Risk" chip
   (31.7 px pill, Outfit 400, soft tint). Each meaning keeps its colour logic in the reference palette, and the
   state never rests on colour alone: the label is always visible and a leading mark changes SHAPE per tone
   (filled dot = done, half dot = in progress, diamond = attention, ring = cancelled/refused, small dot = neutral).

   Tones (set the custom properties, or a data-odx-tone attribute = ok | progress | warn | danger | info | neutral):
     ok        Fini, Présent(e), Encaissé, Remboursé, Payée, premium badges
     progress  En cours, Actif, En banque, Déposé
     warn      Reporté, À régulariser, warnings
     danger    Annulé, Absent(e), Rejeté, destructive badges
     info      Reçu (chèque), Généré / Imprimé / Signé (mutuelle), app source
     neutral   Brouillon, Obsolète, Restitué, Remplacé, Remboursée (vente), muted
   Act statuses carry no status class in the markup: restyle/statusTones.ts tags them with data-odx-tone. */
:is(.odx-dossier, #odx-skin) :is(
  .status-pill, .dentalome-status-pill, .dentalome-status, .chip, .atelier-chip, .mutuelle-total-pill, .admin-source-badge,
  .cheques-status, .retail-status-paid, .retail-status-refunded, [data-odx-tone]
):not([class*="odx-"]) {
  --odx-chip-bg: var(--odx-ui-neutral-bg);
  --odx-chip-ink: var(--odx-ui-neutral-ink);
  --odx-chip-dot: var(--odx-ui-neutral-dot);
  --odx-chip-mark: radial-gradient(circle, var(--odx-chip-dot) 0 2.5px, transparent 3px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: max(5px, calc(7 * var(--odx-u)));
  width: auto;
  min-width: 0;
  height: auto;
  min-height: var(--odx-ui-chip-h);
  padding: 0 max(10px, calc(13 * var(--odx-u))) 0 max(9px, calc(11 * var(--odx-u)));
  border: 0;
  border-radius: 999px;
  background: var(--odx-chip-bg);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .4);
  color: var(--odx-chip-ink);
  font-family: var(--odx-ui-font);
  font-size: var(--odx-ui-fs-chip);
  font-style: normal;
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-transform: none;
  white-space: nowrap;
}
:is(.odx-dossier, #odx-skin) :is(
  .status-pill, .dentalome-status-pill, .dentalome-status, .atelier-chip, .admin-source-badge, .cheques-status,
  .retail-status-paid, .retail-status-refunded, [data-odx-tone]
):not([class*="odx-"])::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--odx-chip-mark);
}
:is(.odx-dossier, #odx-skin) :is(.status-pill, .dentalome-status-pill, .dentalome-status, .chip, .cheques-status):not([class*="odx-"]) svg {
  width: 13px;
  height: 13px;
  color: inherit;
}
/* ---------- tones ---------- */
:is(.odx-dossier, #odx-skin) :is(
  [data-odx-tone="ok"], .dentalome-status-pill.realise, .mutuelle-status-reimbursed, .cheques-status-cleared, .retail-status-paid,
  .admin-source-badge.premium
):not([class*="odx-"]) {
  --odx-chip-bg: var(--odx-ui-ok-bg);
  --odx-chip-ink: var(--odx-ui-ok-ink);
  --odx-chip-dot: var(--odx-ui-ok-dot);
  --odx-chip-mark: radial-gradient(circle, var(--odx-chip-dot) 0 3.6px, transparent 4px);             /* filled dot */
}
:is(.odx-dossier, #odx-skin) :is(
  [data-odx-tone="progress"], .dentalome-status-pill.actif, .dentalome-status-pill.active, .cheques-status-deposited, .mutuelle-status-submitted
):not([class*="odx-"]) {
  --odx-chip-bg: var(--odx-ui-progress-bg);
  --odx-chip-ink: var(--odx-ui-progress-ink);
  --odx-chip-dot: #b89600;                                                                             /* half dot in a ring (below) */
}
:is(.odx-dossier, #odx-skin) :is([data-odx-tone="progress"], .dentalome-status-pill.actif, .dentalome-status-pill.active, .cheques-status-deposited, .mutuelle-status-submitted):not([class*="odx-"])::before {
  box-shadow: inset 0 0 0 1.5px var(--odx-chip-dot);
  background: linear-gradient(90deg, var(--odx-chip-dot) 50%, transparent 50%);
}
:is(.odx-dossier, #odx-skin) :is(
  [data-odx-tone="warn"], .dentalome-status-pill.reporte, .cheques-status-review, .admin-source-badge.warning, .chip.warn
):not([class*="odx-"]) {
  --odx-chip-bg: var(--odx-ui-warn-bg);
  --odx-chip-ink: var(--odx-ui-warn-ink);
  --odx-chip-dot: var(--odx-ui-warn-dot);
}
:is(.odx-dossier, #odx-skin) :is([data-odx-tone="warn"], .dentalome-status-pill.reporte, .cheques-status-review, .admin-source-badge.warning):not([class*="odx-"])::before {
  flex-basis: 7px;
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
  background: var(--odx-chip-dot);
  transform: rotate(45deg);                                                                            /* diamond */
}
:is(.odx-dossier, #odx-skin) :is(
  [data-odx-tone="danger"], .dentalome-status-pill.absent, .dentalome-status-pill.annule, .mutuelle-status-rejected, .cheques-status-rejected,
  .admin-source-badge.destructive
):not([class*="odx-"]) {
  --odx-chip-bg: var(--odx-ui-danger-bg);
  --odx-chip-ink: var(--odx-ui-danger-ink);
  --odx-chip-dot: var(--odx-ui-danger-dot);
}
:is(.odx-dossier, #odx-skin) :is([data-odx-tone="danger"], .dentalome-status-pill.absent, .dentalome-status-pill.annule, .mutuelle-status-rejected, .cheques-status-rejected, .admin-source-badge.destructive):not([class*="odx-"])::before {
  background: none;
  box-shadow: inset 0 0 0 1.6px var(--odx-chip-dot);                                                  /* ring */
}
:is(.odx-dossier, #odx-skin) :is(
  [data-odx-tone="info"], .cheques-status-received, .mutuelle-status-generated, .mutuelle-status-printed, .mutuelle-status-signed, .chip.app
):not([class*="odx-"]) {
  --odx-chip-bg: var(--odx-ui-info-bg);
  --odx-chip-ink: var(--odx-ui-info-ink);
  --odx-chip-dot: var(--odx-ui-info-dot);
  --odx-chip-mark: radial-gradient(circle, var(--odx-chip-dot) 0 3.6px, transparent 4px);
}
:is(.odx-dossier, #odx-skin) :is(
  [data-odx-tone="neutral"], .mutuelle-status-draft, .mutuelle-status-outdated, .cheques-status-returned, .cheques-status-replaced,
  .retail-status-refunded, .chip.muted, .admin-source-badge.outline
):not([class*="odx-"]) {
  --odx-chip-bg: var(--odx-ui-neutral-bg);
  --odx-chip-ink: var(--odx-ui-neutral-ink);
  --odx-chip-dot: var(--odx-ui-neutral-dot);
}
/* the mutuelle total is a value, not a state: the reference lime chip, no mark */
:is(.odx-dossier, #odx-skin) .mutuelle-total-pill:not([class*="odx-"]) {
  --odx-chip-bg: var(--odx-chip-lime);
  --odx-chip-ink: var(--odx-ui-ink);
  font-variant-numeric: tabular-nums;
}
/* ---------- the act status control: the chip IS the trigger of the status menu ---------- */
:is(.odx-dossier, #odx-skin) .operation-status-trigger:not([class*="odx-"]) {
  display: inline-flex;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  box-shadow: none;
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .operation-status-trigger:not([class*="odx-"]):not(:disabled) .operation-status-badge::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: 1px;
  background: currentColor;
  opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is(.odx-dossier, #odx-skin) .operation-status-trigger:not([class*="odx-"]):hover:not(:disabled) .operation-status-badge { filter: brightness(.97); box-shadow: inset 0 0 0 1px rgb(13 13 13 / .12); }
:is(.odx-dossier, #odx-skin) .operation-status-trigger:not([class*="odx-"]):focus-visible { outline: var(--odx-ui-focus-ring); outline-offset: 2px; }
:is(.odx-dossier, #odx-skin) .operation-status-trigger:not([class*="odx-"]):disabled { cursor: default; opacity: 1; }
:is(.odx-dossier, #odx-skin) .operation-status-error:not([class*="odx-"]) { display: block; margin-top: 4px; color: var(--odx-ui-danger); font-size: var(--odx-ui-fs-label); font-weight: var(--odx-ui-w-light); }
/* ---------- tooth numbers (TeethPills): porcelain discs like the reference's tooth thumbnails ---------- */
:is(.odx-dossier, #odx-skin) .teeth-pills:not([class*="odx-"]) {
  display: inline-flex;
  flex-wrap: wrap;
  gap: max(4px, calc(5 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .teeth-pills:not([class*="odx-"]) > b {
  display: inline-grid;
  place-items: center;
  min-width: max(28px, calc(36 * var(--odx-u)));
  height: max(24px, calc(30 * var(--odx-u)));
  padding: 0 max(7px, calc(9 * var(--odx-u)));
  border: 0;
  border-radius: 999px;
  background: var(--odx-thumb-fill);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .08);
  color: var(--odx-ui-ink);
  font-size: var(--odx-ui-fs-chip);
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
:is(.odx-dossier, #odx-skin) .teeth-pills.empty:not([class*="odx-"]) > b {
  min-width: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  color: var(--odx-ui-ink-3);
  font-weight: var(--odx-ui-w-light);
}
/* ---------- count badges (clinical tool rail, menus) ---------- */
:is(.odx-dossier, #odx-skin) :is(.clinical-tool-count, .badge, .count-badge):not([class*="odx-"]) {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  background: var(--odx-ui-warn-bg);
  color: var(--odx-ui-warn-ink);
  font-size: var(--odx-ui-fs-micro);
  font-weight: var(--odx-ui-w-medium);
  font-variant-numeric: tabular-nums;
}
/* Odontiax dossier restyle — dropdown menus, listboxes and popovers → white glass panel, large radius, soft
   shadow; items are rounded rows with a soft hover and a mint selected state (+ check mark / aria state).
   Covered: every legacy [role=menu] / [role=listbox] popover, the combobox popovers (.act-catalog-menu,
   .appointment-source-combobox-menu, .patient-source-dropdown-menu), the act / teeth pickers of the act form
   (.operation-act-command-dialog, .operation-teeth-command-dialog), date-range and small popovers. */
:is(.odx-dossier, #odx-skin) :is(
  [role="menu"], .act-catalog-menu, .appointment-source-combobox-menu, .patient-source-dropdown-menu, .operation-act-command-dialog,
  .operation-teeth-command-dialog, .note-category-combobox-menu, .patient-phone-country-menu, .payments-date-range-popover,
  .topbar-popover, .document-generate-dropdown, .patient-actions-dropdown, .operation-status-menu, .agenda-category-popover, .prothese-teeth-menu
):not([class*="odx-"]) {
  border: 0;
  border-radius: var(--odx-ui-r-menu);
  background: var(--odx-ui-menu-bg);
  box-shadow: var(--odx-ui-menu-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
          backdrop-filter: blur(18px) saturate(1.2);
  color: var(--odx-ui-ink);
  font-family: var(--odx-ui-font);
  font-size: var(--odx-ui-fs-body);
  font-weight: var(--odx-ui-w-light);
  overflow: hidden;
}
:is(.odx-dossier, #odx-skin) :is([role="menu"], .document-generate-dropdown, .patient-actions-dropdown, .operation-status-menu):not([class*="odx-"], .act-catalog-menu) {
  padding: max(5px, calc(6 * var(--odx-u)));
}
/* ---------- items ---------- */
:is(.odx-dossier, #odx-skin) :is(
  [role="menu"] > :is(button, a, [role^="menuitem"]),
  [role="menu"] [role^="menuitem"],
  [role="listbox"] [role="option"],
  .act-catalog-menu .combobox-option-row,
  .operation-act-command-dialog [role="option"],
  .document-generate-dropdown > button, .patient-actions-dropdown > button, .operation-status-menu > button
):not([class*="odx-"]) {
  display: flex;
  align-items: center;
  gap: max(8px, calc(10 * var(--odx-u)));
  width: 100%;
  min-height: max(36px, calc(44 * var(--odx-u)));
  padding: 0 max(10px, calc(14 * var(--odx-u)));
  border: 0;
  border-radius: max(9px, calc(12 * var(--odx-u)));
  background: transparent;
  box-shadow: none;
  color: var(--odx-ui-ink);
  font-family: var(--odx-ui-font);
  font-size: var(--odx-ui-fs-body);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.025em;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) :is(
  [role="menu"] > :is(button, a, [role^="menuitem"]),
  [role="menu"] [role^="menuitem"],
  [role="listbox"] [role="option"],
  .act-catalog-menu .combobox-option-row,
  .operation-act-command-dialog [role="option"],
  .document-generate-dropdown > button, .patient-actions-dropdown > button, .operation-status-menu > button
):not([class*="odx-"]):is(:hover, :focus-visible, .is-active, .highlighted, [data-highlighted="true"], [data-active="true"]) {
  background: rgb(13 13 13 / .045);
  outline: none;
}
:is(.odx-dossier, #odx-skin) :is(
  [role="menu"] [role^="menuitem"], [role="listbox"] [role="option"], .act-catalog-menu .combobox-option-row, .operation-act-command-dialog [role="option"]
):not([class*="odx-"]):is([aria-selected="true"], [aria-checked="true"], [aria-current="true"]) {
  background: rgb(197 252 196 / .5);
  font-weight: var(--odx-ui-w-regular);
}
:is(.odx-dossier, #odx-skin) :is(
  [role="menu"] [role^="menuitem"], [role="listbox"] [role="option"], .act-catalog-menu .combobox-option-row, .document-generate-dropdown > button, .patient-actions-dropdown > button
):not([class*="odx-"]):focus-visible {
  box-shadow: inset 0 0 0 2px var(--odx-ui-emerald);
}
:is(.odx-dossier, #odx-skin) :is([role="menu"] [role^="menuitem"], [role="listbox"] [role="option"], .act-catalog-menu .combobox-option-row, .document-generate-dropdown > button, .patient-actions-dropdown > button):not([class*="odx-"]) svg {
  width: max(15px, calc(18 * var(--odx-u)));
  height: max(15px, calc(18 * var(--odx-u)));
  color: var(--odx-ui-ink-2);
  stroke-width: 1.6;
}
:is(.odx-dossier, #odx-skin) :is([role="menu"] [role^="menuitem"], [role="listbox"] [role="option"], .act-catalog-menu .combobox-option-row):not([class*="odx-"]):disabled { opacity: .45; cursor: not-allowed; }
/* destructive entries keep their red ink */
:is(.odx-dossier, #odx-skin) [role="menu"] :is(.danger, .destructive, [data-danger="true"]):not([class*="odx-"]) { color: var(--odx-ui-danger); }
/* ---------- embedded search rows (combobox / act picker) ---------- */
:is(.odx-dossier, #odx-skin) :is(.combobox-search-row, .operation-act-command-search):not([class*="odx-"]) {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: max(42px, calc(52 * var(--odx-u)));
  padding: 0 max(12px, calc(16 * var(--odx-u)));
  border: 0;
  border-bottom: 1px solid var(--odx-ui-line);
  background: transparent;
  color: var(--odx-ui-ink-3);
}
:is(.odx-dossier, #odx-skin) :is(.combobox-search-row, .operation-act-command-search):not([class*="odx-"]) input {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--odx-ui-ink);
  font-family: var(--odx-ui-font);
  font-size: var(--odx-ui-fs-body);
  font-weight: var(--odx-ui-w-regular);
  outline: none;
}
:is(.odx-dossier, #odx-skin) :is(.combobox-search-row, .operation-act-command-search):not([class*="odx-"]) input::placeholder { color: var(--odx-ui-ink-3); font-weight: var(--odx-ui-w-light); }
:is(.odx-dossier, #odx-skin) :is(.combobox-search-row, .operation-act-command-search):not([class*="odx-"]):focus-within { box-shadow: inset 0 -2px 0 var(--odx-ui-emerald); }
:is(.odx-dossier, #odx-skin) :is(.combobox-search-row, .operation-act-command-search):not([class*="odx-"]) svg { width: 17px; height: 17px; flex: none; stroke-width: 1.6; }
:is(.odx-dossier, #odx-skin) :is(.appointment-source-combobox-options, .act-catalog-list, .operation-act-command-list):not([class*="odx-"]) { padding: max(5px, calc(6 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) :is(.act-catalog-menu, .operation-act-command-dialog) em:not([class*="odx-"]) {
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-note);
  font-weight: var(--odx-ui-w-light);
}
/* ---------- tooth picker of the act form: group headings + checkbox rows ---------- */
:is(.odx-dossier, #odx-skin) .operation-teeth-command-dialog:not([class*="odx-"]) p {
  margin: max(8px, calc(10 * var(--odx-u))) max(10px, calc(14 * var(--odx-u))) 4px;
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-label);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: var(--odx-ui-ls-label);
  text-transform: none;
}
:is(.odx-dossier, #odx-skin) .operation-tooth-choice:not([class*="odx-"]) {
  border-radius: max(9px, calc(12 * var(--odx-u)));
  font-variant-numeric: tabular-nums;
}
:is(.odx-dossier, #odx-skin) .operation-tooth-choice:not([class*="odx-"]):hover { background: rgb(13 13 13 / .045); }
:is(.odx-dossier, #odx-skin) .operation-tooth-choice:not([class*="odx-"]):has(> button[aria-checked="true"]) { background: rgb(197 252 196 / .45); }
/* Odontiax dossier restyle — modals and dialogs → white glass sheet (the reference's card language at dialog
   scale): large radius, soft deep shadow, the window's mint glow in the top-right corner, blurred light backdrop,
   reference typography. Widths, inner grids and paddings stay with each legacy dialog (they carry the layout);
   this sheet only replaces the skin, the head/footer rhythm and the backdrop.

   Families covered (sheet / backdrop):
     .modal (+ every className variant: act form, payment, refund, sessions, delete/archive confirms, WhatsApp,
       appointment, note editor, prothèse, physical fiche, radiograph tooth tagging…) / .modal-backdrop
     dialog.patient-intake-dialog (patient form, medical alert, ordonnance/certificate/letter composers) / ::backdrop
     .pan-dialog / .pan-backdrop · .cheques-dialog / .cheques-dialog-shade · .retail-dialog / .retail-overlay
     .courrier-modal / .courrier-modal-layer · .rx-confirm, .rx-inbox-confirm-dialog, .rx-print-dialog, .rvg-dialog,
     .rxv-guard / their backdrops · .pimg-dialog · .camera-inbox-dialog · .clinical-print-dialog
     .operation-edit-impact-dialog · .managed-practitioner-dialog · .prevention-v2-dialog · .clinical-media-dialog
   Image/radiograph VIEWERS (.patient-image-viewer-dialog, .pimg-viewer, .rxv-workspace) stay dark by design. */
/* ---------- backdrops: light, blurred ---------- */
:is(.odx-dossier, #odx-skin) :is(
  .modal-backdrop, .pan-backdrop, .cheques-dialog-shade, .retail-overlay, .courrier-modal-layer, .rx-confirm-backdrop,
  .rx-inbox-confirm-backdrop, .rx-print-backdrop, .rvg-backdrop, .rxv-guard-backdrop, .camera-inbox-backdrop,
  .operation-edit-impact-backdrop, .nfc-draft-overlay
):not([class*="odx-"], .patient-image-viewer-backdrop) {
  background: var(--odx-ui-backdrop);
  -webkit-backdrop-filter: var(--odx-ui-backdrop-blur);
          backdrop-filter: var(--odx-ui-backdrop-blur);
  animation: odx-ui-fade-in 180ms var(--odx-ui-ease) both;
}
:is(.odx-dossier, #odx-skin) :is(dialog.patient-intake-dialog, dialog.managed-practitioner-dialog, dialog.procurement-dialog, dialog.purchase-picker)::backdrop {
  background: var(--odx-ui-backdrop);
  -webkit-backdrop-filter: var(--odx-ui-backdrop-blur);
          backdrop-filter: var(--odx-ui-backdrop-blur);
}
/* ---------- the sheet ---------- */
:is(.odx-dossier, #odx-skin) :is(
  .modal, dialog.patient-intake-dialog, .pan-dialog, .cheques-dialog, .retail-dialog, .courrier-modal, .rx-confirm, .rx-inbox-confirm-dialog,
  .rx-print-dialog, .rvg-dialog, .rxv-guard, .pimg-dialog, .camera-inbox-dialog, .clinical-print-dialog, .operation-edit-impact-dialog,
  dialog.managed-practitioner-dialog, .prevention-v2-dialog, .clinical-media-dialog
):not([class*="odx-"]) {
  border: 1px solid var(--odx-ui-sheet-border);
  border-radius: var(--odx-ui-r-sheet);
  background: var(--odx-ui-sheet-bg);
  box-shadow: var(--odx-ui-sheet-shadow);
  /* no backdrop-filter on the sheet itself: it would become the containing block of fixed-position menus */
  color: var(--odx-ui-ink);
  font-family: var(--odx-ui-font);
  font-size: var(--odx-ui-fs-body);
  font-weight: var(--odx-ui-w-regular);  /* legacy dialog content is small: Regular base keeps it legible; primitives set their own weights */
  letter-spacing: -0.02em;
  animation: odx-ui-sheet-in 220ms var(--odx-ui-ease) both;
}
/* clip children to the large radius without breaking popovers that escape the sheet (act form keeps overflow:visible) */
:is(.odx-dossier, #odx-skin) :is(dialog.patient-intake-dialog, .pan-dialog, .cheques-dialog, .retail-dialog, .courrier-modal, .clinical-print-dialog):not([class*="odx-"]):not(.insurance-studio) { overflow: hidden; }
/* RC3: the full-screen care-sheet studio scrolls itself (insurance-studio.css: overflow:auto, scroll-padding for its sticky
   footer); clipping it hid the end of the page behind the footer on phones */
/* ---------- head: title + subtitle + round close button ---------- */
:is(.odx-dossier, #odx-skin) :is(.modal-head, .patient-intake-dialog-head, .pan-dialog-heading, .physical-fiche-dialog-head):not([class*="odx-"]) {
  height: auto;
  border-color: var(--odx-ui-line);
  background: transparent;
  gap: max(12px, calc(16 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) :is(.modal, dialog.patient-intake-dialog, .pan-dialog, .cheques-dialog, .retail-dialog, .courrier-modal, .rx-confirm, .rvg-dialog, .rx-print-dialog, .camera-inbox-dialog, .clinical-print-dialog, .operation-edit-impact-dialog, .pimg-dialog):not([class*="odx-"]) :is(.modal-head h2, .patient-intake-dialog-head h2, .pan-dialog-heading h2, > header h2, > h2, .physical-fiche-dialog-head h2, .delete-confirm-heading h2) {
  margin: 0;
  color: var(--odx-ink-strong);
  font-family: var(--odx-ui-font);
  font-size: var(--odx-ui-fs-title);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: var(--odx-ui-ls-title);
  line-height: 1.22;
}
:is(.odx-dossier, #odx-skin) :is(.modal-head h2, .patient-intake-dialog-head h2):not([class*="odx-"]) > svg { width: 22px; height: 22px; stroke-width: 1.6; }
:is(.odx-dossier, #odx-skin) :is(.modal-head-subtitle, .modal-subtitle, .patient-intake-dialog-head p, .pan-dialog-heading p):not([class*="odx-"]) {
  margin-top: max(4px, calc(6 * var(--odx-u)));
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-note);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.02em;
  line-height: 1.45;
}
/* the close control: a reference round disc, kept in its legacy corner */
:is(.odx-dossier, #odx-skin) :is(.modal-close-button, .patient-intake-dialog-head .plain-icon, .pan-dialog-heading > button, .cheques-dialog > header button, .retail-dialog > header button, .courrier-modal > header button):not([class*="odx-"]) {
  display: inline-grid;
  place-items: center;
  width: var(--odx-ui-icon-d);
  min-width: 0;
  height: var(--odx-ui-icon-d);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--odx-ui-soft);
  color: var(--odx-ui-ink);
  opacity: 1;
  box-shadow: none;
}
:is(.odx-dossier, #odx-skin) :is(.modal-close-button, .patient-intake-dialog-head .plain-icon, .pan-dialog-heading > button, .cheques-dialog > header button, .retail-dialog > header button, .courrier-modal > header button):not([class*="odx-"]):hover:not(:disabled) {
  background: var(--odx-ui-soft-hover);
}
:is(.odx-dossier, #odx-skin) .modal > .modal-close-button:not([class*="odx-"]),
:is(.odx-dossier, #odx-skin) .modal > .modal-head > .modal-close-button:not([class*="odx-"]) {
  top: max(14px, calc(20 * var(--odx-u)));
  right: max(14px, calc(20 * var(--odx-u)));
}
/* ---------- footer action rows ---------- */
:is(.odx-dossier, #odx-skin) :is(.modal, dialog.patient-intake-dialog) :is(.modal-actions, .patient-intake-footer, .physical-fiche-dialog-actions):not([class*="odx-"]) {
  height: auto;
  border-color: var(--odx-ui-line);
}
/* ---------- confirmation dialogs (delete, archive, cancel) ---------- */
:is(.odx-dossier, #odx-skin) :is(.delete-confirm-modal, .dentalome-delete-alert-modal):not([class*="odx-"]) {
  width: min(520px, calc(100vw - 32px));
}
:is(.odx-dossier, #odx-skin) .delete-confirm-icon:not([class*="odx-"]) {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: max(36px, calc(46 * var(--odx-u)));
  height: max(36px, calc(46 * var(--odx-u)));
  margin-right: max(10px, calc(12 * var(--odx-u)));
  border-radius: 50%;
  background: var(--odx-ui-danger-bg);
  color: var(--odx-ui-danger);
  vertical-align: middle;
}
:is(.odx-dossier, #odx-skin) .delete-confirm-icon:not([class*="odx-"]) svg { width: 20px; height: 20px; stroke-width: 1.7; color: inherit; }
:is(.odx-dossier, #odx-skin) :is(.patient-archive-alert-modal) .delete-confirm-icon:not([class*="odx-"]) { background: var(--odx-ui-warn-bg); color: var(--odx-ui-warn-ink); }
:is(.odx-dossier, #odx-skin) .modal-head:has(> h2 > .delete-confirm-icon) h2,
:is(.odx-dossier, #odx-skin) .delete-confirm-heading:not([class*="odx-"]) {
  display: flex;
  align-items: center;
}
:is(.odx-dossier, #odx-skin) .dentalome-delete-alert-body:not([class*="odx-"]) {
  gap: max(6px, calc(10 * var(--odx-u)));
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-body);
  font-weight: var(--odx-ui-w-light);
  line-height: 1.5;
}
:is(.odx-dossier, #odx-skin) .dentalome-delete-alert-body:not([class*="odx-"]) :is(p strong, p b) { color: var(--odx-ui-ink); font-weight: var(--odx-ui-w-regular); }
:is(.odx-dossier, #odx-skin) .dentalome-delete-alert-body:not([class*="odx-"]) > p { margin: 0 0 max(8px, calc(10 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .dentalome-delete-alert-body:not([class*="odx-"]) > .modal-actions { margin-top: max(16px, calc(22 * var(--odx-u))); }
/* ---------- motion (collapses with prefers-reduced-motion) ---------- */
@keyframes odx-ui-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes odx-ui-sheet-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.odx-dossier, #odx-skin) :is(
    .modal-backdrop, .pan-backdrop, .cheques-dialog-shade, .retail-overlay, .courrier-modal-layer, .rx-confirm-backdrop, .rx-inbox-confirm-backdrop,
    .rx-print-backdrop, .rvg-backdrop, .rxv-guard-backdrop, .camera-inbox-backdrop, .operation-edit-impact-backdrop,
    .modal, dialog.patient-intake-dialog, .pan-dialog, .cheques-dialog, .retail-dialog, .courrier-modal, .rx-confirm, .rx-inbox-confirm-dialog,
    .rx-print-dialog, .rvg-dialog, .rxv-guard, .pimg-dialog, .camera-inbox-dialog, .clinical-print-dialog, .operation-edit-impact-dialog
  ) { animation: none; }
}
/* ---------- document composers (ordonnance, certificat, lettre: DocumentWorkspaceDialog chrome) ----------
   context bar, draft status line and preview caption: reference glass bands + AA-legible small text.
   The preview "paper" itself mimics the printed PDF and keeps its own typography on purpose. */
:is(.odx-dossier, #odx-skin) .document-composer-context:not([class*="odx-"]) {
  background: rgb(197 252 196 / .16);
  border-color: var(--odx-ui-line);
  color: var(--odx-ui-ink);
  font-size: var(--odx-ui-fs-label);
}
:is(.odx-dossier, #odx-skin) :is(.document-composer-context > span:last-child, .document-composer-context small, .document-preview-caption, .document-preview-caption small, .document-editor-label small):not([class*="odx-"]) {
  color: var(--odx-ui-ink-2);
  font-size: max(12px, calc(14.5 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .document-draft-status:not([class*="odx-"]) {
  background: transparent;
  border-color: var(--odx-ui-line);
  color: var(--odx-ui-ink-2);
  font-size: max(12px, calc(14.5 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .document-draft-status:not([class*="odx-"]) :is(button:not(.primary-button, .secondary-button, [class*="button"]), a) { color: var(--odx-ui-emerald-ink); }
:is(.odx-dossier, #odx-skin) .document-draft-status:not([class*="odx-"]) p { color: var(--odx-ui-warn-ink); }
:is(.odx-dossier, #odx-skin) .document-composer-preview:not([class*="odx-"]) { background-color: rgb(13 13 13 / .025); }
:is(.odx-dossier, #odx-skin) .document-composer-actions:not([class*="odx-"]) { background: transparent; border-color: var(--odx-ui-line); }
:is(.odx-dossier, #odx-skin) .document-composer-error:not([class*="odx-"]) {
  padding: max(8px, calc(10 * var(--odx-u))) max(12px, calc(14 * var(--odx-u)));
  border-radius: max(12px, calc(14 * var(--odx-u)));
  background: var(--odx-ui-danger-soft);
  color: var(--odx-ui-danger-ink);
  font-size: var(--odx-ui-fs-note);
}
/* ---------- scan / import dialog (« Ajouter une radiographie », documents scan) ----------
   the legacy 230 px « Enregistrer sous » column clipped « Images - une par page » once the restyle's larger type
   and chevron padding applied: the column takes the select's own width (at least 230 px). Two columns only where
   the legacy keeps two (its single-column breakpoints are 680 / 600 px). */
@media (min-width: 681px) {
  :is(.odx-dossier, #odx-skin) .scan-save-fields:not([class*="odx-"]) { grid-template-columns: minmax(0, 1fr) minmax(230px, max-content); }
}
/* document preview paper: its table follows the paper's own 10 px scale (the legacy global th / td 19–20 px /
   900 rules overrode it and the global 760 px table minimum pushed « Montant » out of the 580 px paper) */
:is(.odx-dossier, #odx-skin) .document-preview-paper table { width: 100%; min-width: 0; }
:is(.odx-dossier, #odx-skin) .document-preview-paper :is(th, td) { height: auto; font-size: inherit; line-height: 1.5; letter-spacing: normal; background: none; }
:is(.odx-dossier, #odx-skin) .document-preview-paper th { font-weight: 600; }
:is(.odx-dossier, #odx-skin) .document-preview-paper td { font-weight: 400; }
/* ---------- patient form (« Modifier un patient » / new patient): one type scale with the rest of the dossier ----------
   the legacy fixed 11–14 px helpers, sub-headings and the uppercase emerald eyebrow sat next to 16–18.6 px fields */
:is(.odx-dossier, #odx-skin) .patient-form-modal :is(small, p, .attachment-empty span):not([class*="odx-"]) {
  font-size: var(--odx-ui-fs-label);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.02em;
  line-height: 1.45;
}
:is(.odx-dossier, #odx-skin) .patient-form-modal :is(small, p):not([class*="odx-"]) { color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .patient-form-modal .intake-eyebrow:not([class*="odx-"]) {
  font-size: var(--odx-ui-fs-label);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--odx-ui-ink-2);
}
/* identity-document block: its title and list heading read as sub-headings, not 13 px captions */
:is(.odx-dossier, #odx-skin) .patient-form-modal :is(h2, strong):not(.modal-head h2, [class*="odx-"]) {
  font-size: var(--odx-ui-fs-note);
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: -0.02em;
  color: var(--odx-ink-strong);
}
:is(.odx-dossier, #odx-skin) .attachment-empty span:not([class*="odx-"]) { font-size: var(--odx-ui-fs-label); letter-spacing: -0.02em; }
/* Odontiax dossier restyle — feedback: toasts, inline errors, warnings/notices, loading text + skeletons,
   empty states, spinners. Errors are never colour alone: a leading glyph (!) and the message text carry them. */
/* ---------- toasts: the reference's dark pill, floating glass, mint success mark ---------- */
:is(.odx-dossier, #odx-skin) .patient-toast-region:not([class*="odx-"]) {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  z-index: 200;
}
:is(.odx-dossier, #odx-skin) :is(.operation-toast-list, .payment-toast-list):not([class*="odx-"]) { width: auto; height: auto; }
:is(.odx-dossier, #odx-skin) .patient-toast-message:not([class*="odx-"]) {
  display: flex;
  align-items: center;
  gap: max(9px, calc(12 * var(--odx-u)));
  box-sizing: border-box;
  width: auto;
  min-width: max(260px, calc(320 * var(--odx-u)));
  max-width: min(440px, calc(100vw - 32px));
  height: auto;
  min-height: max(46px, calc(58 * var(--odx-u)));
  padding: max(10px, calc(14 * var(--odx-u))) max(16px, calc(22 * var(--odx-u)));
  border: 0;
  border-radius: max(14px, calc(18 * var(--odx-u)));
  background: rgb(33 31 31 / .94);
  box-shadow: 0 calc(18 * var(--odx-u)) calc(40 * var(--odx-u)) calc(-14 * var(--odx-u)) rgb(0 0 0 / .5), inset 0 0 0 1px rgb(255 255 255 / .06);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  color: var(--odx-ui-on-dark);
  font-family: var(--odx-ui-font);
  font-size: var(--odx-ui-fs-body);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.02em;
  line-height: 1.35;
  pointer-events: auto;
  animation: odx-ui-toast-in 240ms var(--odx-ui-ease) both;
}
:is(.odx-dossier, #odx-skin) .patient-toast-message:not([class*="odx-"]) :is(.document-generation-toast-text, .operation-success-toast-content, span, p) { color: inherit; font: inherit; margin: 0; }
:is(.odx-dossier, #odx-skin) .patient-toast-message:not([class*="odx-"]) :is(.operation-success-toast-icon, .payment-success-toast-icon, .document-generation-toast-icon, .users-toast-icon, > svg) {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  color: var(--odx-mint-3);
}
:is(.odx-dossier, #odx-skin) .patient-toast-message:not([class*="odx-"]) :is(.operation-success-toast-icon, .payment-success-toast-icon, .document-generation-toast-icon) svg { width: 22px; height: 22px; color: inherit; }
:is(.odx-dossier, #odx-skin) .patient-toast-message:not([class*="odx-"]) > button {
  margin-left: auto;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / .12);
  color: inherit;
  font: inherit;
  font-size: var(--odx-ui-fs-label);
  cursor: pointer;
}
/* error toasts: same pill, a red-tinted ring and a "!" glyph */
:is(.odx-dossier, #odx-skin) .patient-toast-message:is(.error, [data-tone="error"]):not([class*="odx-"]) {
  box-shadow: 0 calc(18 * var(--odx-u)) calc(40 * var(--odx-u)) calc(-14 * var(--odx-u)) rgb(0 0 0 / .5), inset 0 0 0 1px rgb(255 120 110 / .45);
}
:is(.odx-dossier, #odx-skin) .patient-toast-message:is(.error, [data-tone="error"]):not([class*="odx-"])::before {
  content: "!";
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff8a80;
  color: #2b0b08;
  font-weight: var(--odx-ui-w-medium);
  font-size: 13px;
}
@keyframes odx-ui-toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* ---------- inline errors ---------- */
:is(.odx-dossier, #odx-skin) :is(.form-error, .payment-submit-error, .document-source-submit-error, .operation-save-error, .inline-error, .error-text, .prothese-source-error, .charge-entry-error, .overdue-unpaid-error):not([class*="odx-"]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: max(10px, calc(13 * var(--odx-u))) max(12px, calc(16 * var(--odx-u)));
  border: 0;
  border-radius: max(12px, calc(14 * var(--odx-u)));
  background: var(--odx-ui-danger-soft);
  box-shadow: inset 0 0 0 1px rgb(180 35 24 / .16);
  color: var(--odx-ui-danger-ink);
  font-family: var(--odx-ui-font);
  font-size: var(--odx-ui-fs-note);
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: -0.015em;
  line-height: 1.45;
}
:is(.odx-dossier, #odx-skin) :is(.form-error, .payment-submit-error, .document-source-submit-error, .operation-save-error, .inline-error, .error-text, .prothese-source-error, .charge-entry-error, .overdue-unpaid-error):not([class*="odx-"])::before {
  content: "!";
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--odx-ui-danger);
  color: #fff;
  font-size: 12px;
  font-weight: var(--odx-ui-w-medium);
  line-height: 1;
}
:is(.odx-dossier, #odx-skin) .form-error:not([class*="odx-"]) > p { margin: 0; color: inherit; }
:is(.odx-dossier, #odx-skin) .form-error:not([class*="odx-"]) button {
  margin-left: auto;
  padding: 2px 12px;
  min-height: 28px;
  border: 1px solid rgb(180 35 24 / .3);
  border-radius: 999px;
  background: #fff;
  color: var(--odx-ui-danger);
  font: inherit;
  cursor: pointer;
}
/* expected isolated-page status (printing not linked, ticket handed to this computer, scanner not linked…): the platform
   shows it in its error slot, but it is not a failure. The isolated layer tags it (data-odx-notice="isolated", by its
   « Dossier isolé : » text; isolated/handlers/notices.ts) and it reads as a calm neutral note with an « i » mark.
   (:not(#odx-none) only lifts the rule over the section-specific error tints.) */
:is(.odx-dossier, #odx-skin) :is(.form-error, .payment-submit-error, .document-source-submit-error, .operation-save-error, .inline-error, .error-text, .document-action-status, [role="alert"])[data-odx-notice="isolated"]:not(#odx-none) {
  background: var(--odx-ui-info-bg);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .07);
  color: var(--odx-ui-info-ink);
}
:is(.odx-dossier, #odx-skin) :is(.form-error, .payment-submit-error, .document-source-submit-error, .operation-save-error, .inline-error, .error-text, .document-action-status, [role="alert"])[data-odx-notice="isolated"]:not(#odx-none)::before {
  content: "i";
  background: var(--odx-ui-info-ink);
  color: #fff;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
}
:is(.odx-dossier, #odx-skin) .form-error[data-odx-notice="isolated"]:not(#odx-none) button { border-color: rgb(13 13 13 / .14); color: var(--odx-ui-info-ink); }
/* per-field errors: short red line under the field */
:is(.odx-dossier, #odx-skin) :is(.patient-field-error, .document-source-field-error, .payment-field-error, .appointment-field-error, .catalog-field-error, .patient-note-title-error, .users-field-error):not([class*="odx-"]) {
  color: var(--odx-ui-danger);
  font-size: var(--odx-ui-fs-label);
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: -0.015em;
}
/* ---------- warnings + notices ---------- */
:is(.odx-dossier, #odx-skin) :is(.patient-whatsapp-warning, .mutuelle-inline-warning, .workspace-update-notice, .patient-duplicate-notice, .temporary-credential-warning):not([class*="odx-"]) {
  padding: max(8px, calc(10 * var(--odx-u))) max(12px, calc(14 * var(--odx-u)));
  border: 0;
  border-radius: max(12px, calc(14 * var(--odx-u)));
  background: var(--odx-ui-warn-bg);
  box-shadow: inset 0 0 0 1px rgb(227 154 28 / .25);
  color: var(--odx-ui-warn-ink);
  font-size: var(--odx-ui-fs-note);
  font-weight: var(--odx-ui-w-regular);
  line-height: 1.45;
}
:is(.odx-dossier, #odx-skin) :is(.document-action-status, .patient-whatsapp-empty):not([class*="odx-"]) {
  padding: max(8px, calc(10 * var(--odx-u))) max(12px, calc(14 * var(--odx-u)));
  border-radius: max(12px, calc(14 * var(--odx-u)));
  background: var(--odx-ui-info-bg);
  color: var(--odx-ui-info-ink);
  font-size: var(--odx-ui-fs-note);
  font-weight: var(--odx-ui-w-light);
}
/* ---------- empty states ---------- */
:is(.odx-dossier, #odx-skin) :is(.act-status-empty, .patient-operation-empty-state, .attachment-empty, .retail-empty, .patient-notes-empty-card, .overdue-unpaid-empty, .atelier-empty, .pimg-empty, .cheques-empty):not([class*="odx-"]) {
  border-color: var(--odx-ui-line-2);
  border-radius: var(--odx-ui-r-card);
  background-color: rgb(255 255 255 / .45);
  color: var(--odx-ui-ink-2);
  font-family: var(--odx-ui-font);
  font-weight: var(--odx-ui-w-light);
}
:is(.odx-dossier, #odx-skin) :is(.act-status-empty, .patient-operation-empty-state, .attachment-empty, .retail-empty, .patient-notes-empty-card, .atelier-empty, .pimg-empty, .cheques-empty):not([class*="odx-"]) :is(h2, h3, h4, strong, b) {
  color: var(--odx-ui-ink);
  font-size: var(--odx-ui-fs-subtitle);
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: -0.03em;
}
:is(.odx-dossier, #odx-skin) :is(.act-status-empty, .patient-operation-empty-state, .attachment-empty, .retail-empty, .patient-notes-empty-card, .atelier-empty, .pimg-empty, .cheques-empty):not([class*="odx-"]) p {
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-note);
  font-weight: var(--odx-ui-w-light);
}
:is(.odx-dossier, #odx-skin) :is(.empty-search-mark, .notes-empty-icon):not([class*="odx-"]) {
  background: var(--odx-thumb-fill);
  color: var(--odx-ui-ink-2);
  box-shadow: none;
}
/* ---------- loading: status text, spinners, skeletons ---------- */
:is(.odx-dossier, #odx-skin) :is(.page-card, .simple-section, .patient-workspace, .patient-operations-card, .modal) > p[role="status"]:not([class]) {
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-body);
  font-weight: var(--odx-ui-w-light);
}
:is(.odx-dossier, #odx-skin) :is(.page-card, .simple-section, .patient-workspace, .patient-operations-card, .modal) > p[role="status"]:not([class])::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid rgb(13 13 13 / .14);
  border-top-color: var(--odx-ui-emerald);
  animation: odx-ui-spin 900ms linear infinite;
}
:is(.odx-dossier, #odx-skin) svg.spin { color: var(--odx-ui-emerald); }
:is(.odx-dossier, #odx-skin) :is(.primary-button, .danger-button, .secondary-button) svg.spin { color: currentColor; }
:is(.odx-dossier, #odx-skin) :is(.skeleton, [class*="-skeleton"], [data-skeleton="true"]):not([class*="odx-"], [class*="-skeleton-stack"]) {
  border-radius: max(8px, calc(10 * var(--odx-u)));
  background: linear-gradient(90deg, rgb(13 13 13 / .045) 0%, rgb(13 13 13 / .085) 50%, rgb(13 13 13 / .045) 100%) 0 0 / 200% 100%;
  animation: odx-ui-shimmer 1.4s ease-in-out infinite;
}
@keyframes odx-ui-spin { to { transform: rotate(360deg); } }
@keyframes odx-ui-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  :is(.odx-dossier, #odx-skin) .patient-toast-message { animation: none; }
  :is(.odx-dossier, #odx-skin) :is(.skeleton, [class*="-skeleton"], [data-skeleton="true"]) { animation: none; }
  :is(.odx-dossier, #odx-skin) :is(.page-card, .simple-section, .patient-workspace, .patient-operations-card, .modal) > p[role="status"]:not([class])::before { animation-duration: 2.4s; }
}
/* Odontiax dossier — chrome of the isolated patient dossier (window, top bar, patient band, sections, popovers).
   Geometry ported from the measured replica (odx-kit.html / reference/measurements.json): every length is reference
   px x --odx-u (1 unit = 1 px of the 2000 px reference). Text placement follows the theme's rule: line-height 1.26 em,
   so a line's top = baseline - font size. Scoped under .odx-dossier. */
/* Odontiax dossier — Soins page (the reference screen): 3D stage + Analyse dentaire, the three bottom cards, then the
   acts table card. Reference geometry (px x --odx-u): stage row 484 high (stage 1184.3 | gap 28 | analysis 533),
   bottom row 326 high (414.5 | 28 | 859.5 | 28 | 415). Scoped under .odx-dossier; imported by shell/shell.css. */
.odx-dossier .odx-o-soins { display: flex; flex-direction: column; min-width: 0; }
.odx-dossier .odx-o-row1 { display: flex; gap: var(--odx-gap); height: var(--odx-stage-h); flex: none; }
.odx-dossier .odx-o-row2 {
  display: grid;
  grid-template-columns: calc(414.5 * var(--odx-u)) calc(859.5 * var(--odx-u)) minmax(0, 1fr);
  column-gap: var(--odx-gap);
  height: var(--odx-bottom-h);
  margin-top: var(--odx-gap);
  flex: none;
}
/* static glass cards like the reference: hover feedback only on what acts (rows, buttons, kebabs) */
.odx-dossier .odx-o-row2 > .odx-card { min-width: 0; }
.odx-dossier .odx-o-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---------------------------------------------------------------- stage */
.odx-dossier .odx-o-stage { position: relative; flex: 1 1 auto; min-width: 0; }
.odx-dossier .odx-o-layer {
  /* The engine frames the arches including their (faded) roots, so its visible teeth fill ~76 % of the frame height:
     the layer is inset 114 / 52 units horizontally (the arch fills the frame width) and overhangs the bottom row gap by 28 units (inside the 28-unit row gaps) so the teeth reach the reference size. */
  position: absolute; left: calc(114 * var(--odx-u)); top: calc(4 * var(--odx-u)); right: calc(52 * var(--odx-u)); bottom: calc(-28 * var(--odx-u));
  opacity: 0; pointer-events: none;
  /* The frame melts into the window ground on its four edges (never a hard rectangle, even zoomed in): the soft top fade
     under the pills (alpha --odx-o-head0 at the top, half at --odx-o-head-a, opaque from --odx-o-head), feathered sides and
     foot; --odx-o-cut leaves a clear band at the very bottom when the frame is shifted down (same visible bottom). Zoomed
     in (.is-zoomed), the feathers widen so the cropped teeth fade out instead of being cut by straight lines. */
  --odx-o-head0: 0;
  --odx-o-head-a: calc(22 * var(--odx-u));
  --odx-o-head: calc(66 * var(--odx-u));
  --odx-o-side: calc(24 * var(--odx-u));
  --odx-o-foot: calc(18 * var(--odx-u));
  --odx-o-cut: 0px;
  -webkit-mask-image:
    linear-gradient(to bottom, rgb(0 0 0 / var(--odx-o-head0)) 0, rgb(0 0 0 / 0.5) var(--odx-o-head-a), #000 var(--odx-o-head), #000 calc(100% - var(--odx-o-cut) - var(--odx-o-foot)), rgb(0 0 0 / 0) calc(100% - var(--odx-o-cut))),
    linear-gradient(to right, rgb(0 0 0 / 0) 0, #000 var(--odx-o-side), #000 calc(100% - var(--odx-o-side)), rgb(0 0 0 / 0) 100%);
  mask-image:
    linear-gradient(to bottom, rgb(0 0 0 / var(--odx-o-head0)) 0, rgb(0 0 0 / 0.5) var(--odx-o-head-a), #000 var(--odx-o-head), #000 calc(100% - var(--odx-o-cut) - var(--odx-o-foot)), rgb(0 0 0 / 0) calc(100% - var(--odx-o-cut))),
    linear-gradient(to right, rgb(0 0 0 / 0) 0, #000 var(--odx-o-side), #000 calc(100% - var(--odx-o-side)), rgb(0 0 0 / 0) 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  transition: opacity var(--odx-o-fade, 320ms) ease, --odx-o-head-a var(--odx-o-fade, 320ms) ease, --odx-o-head var(--odx-o-fade, 320ms) ease,
    --odx-o-side var(--odx-o-fade, 320ms) ease, --odx-o-foot var(--odx-o-fade, 320ms) ease;
}
/* registered so the feathers animate when the zoom starts / ends */
@property --odx-o-head-a { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --odx-o-head { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --odx-o-side { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --odx-o-foot { syntax: '<length>'; inherits: false; initial-value: 0px; }
.odx-dossier .odx-o-stage.is-zoomed .odx-o-layer {
  --odx-o-head-a: calc(46 * var(--odx-u)); --odx-o-head: calc(104 * var(--odx-u));
  --odx-o-side: calc(84 * var(--odx-u)); --odx-o-foot: calc(70 * var(--odx-u));
}
/* zoomed in: the pills (and the quote chips) keep a soft white ground so the crowns sliding under them never fight the labels */
.odx-dossier .odx-o-pills::before, .odx-dossier .odx-qc::before { transition: opacity var(--odx-o-fade, 320ms) ease; }
.odx-dossier .odx-o-stage.is-zoomed .odx-o-pills::before {
  left: calc(-70 * var(--odx-u)); right: calc(-70 * var(--odx-u)); bottom: calc(-40 * var(--odx-u));
  background: radial-gradient(closest-side, rgb(255 255 255 / 0.97) 0%, rgb(255 255 255 / 0.86) 62%, rgb(255 255 255 / 0) 100%);
}
.odx-dossier .odx-o-layer--scan, .odx-dossier .odx-o-layer--ortho { top: 0; bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0) 0, rgb(0 0 0 / 0.5) calc(26 * var(--odx-u)), #000 calc(70 * var(--odx-u)));
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0) 0, rgb(0 0 0 / 0.5) calc(26 * var(--odx-u)), #000 calc(70 * var(--odx-u))); }
.odx-dossier .odx-o-layer.is-shown { opacity: 1; pointer-events: auto; }
/* tooth numbers on (Préférences): the odontogram starts under the pill row so the upper numbers are never covered */
.odx-dossier .odx-o-stage.has-numbers .odx-o-layer:not(.odx-o-layer--scan):not(.odx-o-layer--ortho):not(.odx-o-layer--2d) {
  top: calc(60 * var(--odx-u));
  --odx-o-head0: 0.35; --odx-o-head-a: calc(8 * var(--odx-u)); --odx-o-head: calc(20 * var(--odx-u));
}
.odx-dossier .odx-o-stage.has-numbers.is-zoomed .odx-o-layer:not(.odx-o-layer--scan):not(.odx-o-layer--ortho):not(.odx-o-layer--2d) {
  --odx-o-head0: 0; --odx-o-head-a: calc(22 * var(--odx-u)); --odx-o-head: calc(52 * var(--odx-u));
}
/* quote chips under the pills, tooth numbers off (standard page): the frame moves down by the chip row (same size, so the
   arches keep their framing; same visible bottom thanks to the clear band) and the upper crowns no longer touch the chips */
.odx-dossier .odx-o-row1 .odx-o-stage.has-quotes:not(.has-numbers) .odx-o-layer:not(.odx-o-layer--scan):not(.odx-o-layer--ortho):not(.odx-o-layer--2d) {
  top: calc(42 * var(--odx-u)); bottom: calc(-66 * var(--odx-u)); --odx-o-cut: calc(38 * var(--odx-u));
}
.odx-dossier .odx-o-row1 .odx-o-stage.has-quotes.is-zoomed:not(.has-numbers) .odx-o-layer:not(.odx-o-layer--scan):not(.odx-o-layer--ortho):not(.odx-o-layer--2d) {
  --odx-o-head-a: calc(58 * var(--odx-u)); --odx-o-head: calc(108 * var(--odx-u));
}
.odx-dossier .odx-o-chart { position: absolute; inset: 0; min-height: 0; }
.odx-dossier .odx-o-chart .odx-label { font-family: var(--odx-font); }
.odx-dossier .odx-o-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: var(--odx-fs-label); color: var(--odx-ink-2); }
.odx-dossier .odx-o-scan, .odx-dossier .odx-o-ortho { position: absolute; inset: 0; }
.odx-dossier .odx-o-layer--scan .odx-scan, .odx-dossier .odx-o-layer--scan .odx-scan-stage-compact { background: transparent; border: 0; box-shadow: none; border-radius: 0; height: 100%; }
.odx-dossier .odx-o-topfade { display: none; }
/* 3D unavailable: the platform's 2D chart in the stage frame (below the pills, right of the rail), and a discreet note */
.odx-dossier .odx-o-layer--2d { left: calc(120 * var(--odx-u)); right: calc(36 * var(--odx-u)); top: calc(66 * var(--odx-u)); bottom: calc(40 * var(--odx-u)); overflow: hidden; -webkit-mask-image: none; mask-image: none; }
.odx-dossier .odx-o-chart2d { position: absolute; inset: 0; display: grid; place-items: center; }
.odx-dossier .odx-o-chart2d .odontogram.clinical-odontogram { width: 100%; max-width: none; height: 100%; margin: 0; padding: 0; gap: 0; display: grid; place-items: center; background: none; border: 0; box-shadow: none; }
/* (the chart's own sheet loads later and lifts the height limit inside .clinical-odontogram: same selector + scope) */
.odx-dossier .odx-o-chart2d .odontogram.clinical-odontogram .consult-chart { --consult-chart-max: calc(370 * var(--odx-u)); max-height: calc(378 * var(--odx-u)); width: 100%; }
.odx-dossier .odx-o-chart2d .odontogram.clinical-odontogram .consult-chart.is-zoomed { border: 0; background: rgb(255 255 255 / 0.5); border-radius: calc(20 * var(--odx-u)); scrollbar-width: thin; }
.odx-dossier .odx-o-no3d {
  position: absolute; z-index: 4; left: calc(50% + 42 * var(--odx-u)); bottom: calc(4 * var(--odx-u)); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: calc(7 * var(--odx-u));
  margin: 0; padding: calc(6 * var(--odx-u)) calc(14 * var(--odx-u)) calc(6 * var(--odx-u)) calc(10 * var(--odx-u));
  border-radius: 999px; background: rgb(255 255 255 / 0.78); box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(0 0 0 / 0.05);
  font-size: var(--odx-fs-micro); letter-spacing: -0.01em; color: var(--odx-ink-2); white-space: nowrap;
}
.odx-dossier .odx-o-no3d .odx-icon { width: calc(15 * var(--odx-u)); height: calc(15 * var(--odx-u)); color: #9a6a12; }
.odx-dossier .odx-o-unavailable { position: absolute; inset: calc(70 * var(--odx-u)) calc(60 * var(--odx-u)) calc(40 * var(--odx-u)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(8 * var(--odx-u)); text-align: center; }
.odx-dossier .odx-o-unavailable .odx-o-empty__text { max-width: calc(460 * var(--odx-u)); }
/* pills over the stage: three 215.5-wide tabs; the active (mint) one sits on the reference's "Treatment Plan" box */
.odx-dossier .odx-o-pills { position: absolute; z-index: 4; left: calc(381.6 * var(--odx-u)); top: calc(9.7 * var(--odx-u)); width: max-content; }
.odx-dossier .odx-o-pills .odx-s-pill { width: calc(215.5 * var(--odx-u)); }
/* the reference's white haze around the tabs: the incisal/root tips melt into the window ground under the pill row */
.odx-dossier .odx-o-pills::before {
  content: ""; position: absolute; z-index: -2;
  left: calc(-46 * var(--odx-u)); right: calc(-46 * var(--odx-u)); top: calc(-24 * var(--odx-u)); bottom: calc(-34 * var(--odx-u));
  background: radial-gradient(closest-side, rgb(255 255 255 / 0.9) 0%, rgb(255 255 255 / 0.62) 58%, rgb(255 255 255 / 0) 100%);
  pointer-events: none;
}
/* view switch: a column of round toggles in the stage's empty right gutter (between the arch and the Analyse card), so
   the pill row keeps the reference geometry whatever views the patient has; the active toggle is dark like the nav pill.
   Items stretch to the widest label so the discs stay aligned. */
.odx-dossier .odx-o-switch { position: absolute; z-index: 5; right: calc(-12 * var(--odx-u)); top: calc(64 * var(--odx-u)); display: flex; flex-direction: column; align-items: stretch; gap: calc(12 * var(--odx-u)); }
.odx-dossier .odx-o-switch__item { display: flex; flex-direction: column; align-items: center; gap: calc(5 * var(--odx-u)); min-width: calc(76 * var(--odx-u)); }
.odx-dossier .odx-o-switch__disc {
  display: grid; place-items: center;
  width: calc(42 * var(--odx-u)); height: calc(42 * var(--odx-u)); border-radius: 50%;
  background: #fff; color: var(--odx-ink);
  box-shadow: 0 calc(2 * var(--odx-u)) calc(10 * var(--odx-u)) rgb(30 70 40 / 0.08), inset 0 0 0 calc(1 * var(--odx-u)) rgb(0 0 0 / 0.03);
  transition: background 260ms ease, color 260ms ease, transform 160ms ease;
}
.odx-dossier .odx-o-switch__disc .odx-icon { width: calc(21 * var(--odx-u)); height: calc(21 * var(--odx-u)); }
.odx-dossier .odx-o-switch__item.is-active .odx-o-switch__disc { background: var(--odx-pill-dark); color: var(--odx-on-dark); }
.odx-dossier .odx-o-switch__item:hover:not(.is-active) .odx-o-switch__disc { transform: translateY(calc(-1 * var(--odx-u))); }
.odx-dossier .odx-o-switch__item:focus-visible { outline: none; }
.odx-dossier .odx-o-switch__item:focus-visible .odx-o-switch__disc { outline: calc(2 * var(--odx-u)) solid #0c8f60; outline-offset: calc(2 * var(--odx-u)); }
.odx-dossier .odx-o-switch__label { font-size: max(11px, calc(12.5 * var(--odx-u))); letter-spacing: -0.02em; line-height: 1.12; text-align: center; white-space: nowrap; color: rgb(13 13 13 / 0.72); }
.odx-dossier .odx-o-switch__item.is-active .odx-o-switch__label { color: var(--odx-ink); font-weight: 400; }
/* zoom rail (reference: line x 31..33, y 48..276; thumb 20 x 40 whose centre travels 95.5 .. 256; capsule 40 x 106 at 12.5, 334) */
.odx-dossier .odx-o-rail { position: absolute; z-index: 4; left: 0; top: 0; width: calc(62 * var(--odx-u)); height: 100%; }
.odx-dossier .odx-o-rail.is-disabled { opacity: 0.45; pointer-events: none; }
.odx-dossier .odx-o-rail__line { position: absolute; left: calc(31 * var(--odx-u)); top: calc(48 * var(--odx-u)); width: calc(2 * var(--odx-u)); height: calc(228 * var(--odx-u)); border-radius: 1px; background: var(--odx-rail-line); }
.odx-dossier .odx-o-rail__capsule {
  position: absolute; left: calc(12.5 * var(--odx-u)); top: calc(334 * var(--odx-u));
  width: calc(40 * var(--odx-u)); height: calc(106 * var(--odx-u)); border-radius: calc(20 * var(--odx-u));
  background: rgb(255 255 255 / 0.9); box-shadow: 0 0 calc(8 * var(--odx-u)) calc(2 * var(--odx-u)) rgb(255 255 255 / 0.8);
}
.odx-dossier .odx-o-rail .odx-o-rail__control { position: absolute; inset: 0; display: block; gap: 0; }
.odx-dossier .odx-o-rail .odx-zoom-track {
  position: absolute; left: calc(22 * var(--odx-u));
  top: calc(95.5 * var(--odx-u) - 17px);
  width: calc(20 * var(--odx-u)); height: calc(160.5 * var(--odx-u) + 34px);
}
.odx-dossier .odx-o-rail .odx-zoom-track::before { display: none; }
.odx-dossier .odx-o-rail .odx-zoom-thumb {
  width: calc(20 * var(--odx-u)); height: calc(40 * var(--odx-u)); border-radius: var(--odx-r-thumb);
  background: var(--odx-rail-thumb); box-shadow: 0 calc(2 * var(--odx-u)) calc(6 * var(--odx-u)) rgb(0 0 0 / 0.12);
  transition: top 160ms ease;
}
.odx-dossier .odx-o-rail .odx-zoom-thumb::after {
  width: calc(6 * var(--odx-u)); height: calc(5 * var(--odx-u));
  background: repeating-linear-gradient(180deg, rgb(255 255 255 / 0.78) 0 calc(1 * var(--odx-u)), transparent calc(1 * var(--odx-u)) calc(2 * var(--odx-u)));
}
.odx-dossier .odx-o-rail .odx-zoom-track:focus-visible { outline: calc(2 * var(--odx-u)) solid #0c8f60; outline-offset: calc(4 * var(--odx-u)); border-radius: calc(10 * var(--odx-u)); }
.odx-dossier .odx-o-rail .odx-zoom-button {
  position: absolute; left: calc(12.5 * var(--odx-u));
  width: calc(40 * var(--odx-u)); height: calc(53 * var(--odx-u)); border-radius: calc(20 * var(--odx-u));
  color: var(--odx-ink); background: transparent;
}
.odx-dossier .odx-o-rail .odx-zoom-button:hover:not(:disabled) { background: rgb(0 0 0 / 0.04); }
.odx-dossier .odx-o-rail .odx-zoom-button svg { width: calc(22 * var(--odx-u)); height: calc(22 * var(--odx-u)); }
.odx-dossier .odx-o-rail .odx-zoom-button svg path { stroke-width: 1.45; }
.odx-dossier .odx-o-rail .odx-zoom-out { top: calc(334 * var(--odx-u)); }
.odx-dossier .odx-o-rail .odx-zoom-in { top: calc(387 * var(--odx-u)); }
.odx-dossier .odx-o-rail .odx-zoom-button:disabled { opacity: 0.42; }
/* rail foot: whole-arch selection + child chart (a column as tall as the zoom capsule, right of it) */
.odx-dossier .odx-o-foot { position: absolute; z-index: 4; left: calc(64 * var(--odx-u)); top: calc(334 * var(--odx-u)); display: flex; flex-direction: column; gap: calc(5 * var(--odx-u)); }
.odx-dossier .odx-o-foot__btn {
  display: grid; place-items: center;
  width: calc(32 * var(--odx-u)); height: calc(32 * var(--odx-u)); border-radius: 50%;
  background: rgb(255 255 255 / 0.9); color: rgb(13 13 13 / 0.82);
  box-shadow: 0 0 calc(6 * var(--odx-u)) calc(1 * var(--odx-u)) rgb(255 255 255 / 0.8), inset 0 0 0 calc(1 * var(--odx-u)) rgb(0 0 0 / 0.04);
  transition: background 220ms ease, color 220ms ease, transform 160ms ease;
}
.odx-dossier .odx-o-foot__btn .odx-icon { width: calc(19 * var(--odx-u)); height: calc(19 * var(--odx-u)); stroke-width: 1.6; }
.odx-dossier .odx-o-foot__btn:hover:not(:disabled) { transform: scale(1.06); color: var(--odx-ink); }
.odx-dossier .odx-o-foot__btn.is-on { background: var(--odx-mint-gradient); color: var(--odx-ink); }
.odx-dossier .odx-o-foot__btn:disabled { opacity: 0.5; cursor: progress; }
.odx-dossier .odx-o-foot__btn:focus-visible { outline: calc(2 * var(--odx-u)) solid #0c8f60; outline-offset: calc(2 * var(--odx-u)); }
.odx-dossier .odx-o-stage__error { position: absolute; z-index: 5; left: calc(110 * var(--odx-u)); bottom: calc(10 * var(--odx-u)); max-width: calc(560 * var(--odx-u)); padding: calc(8 * var(--odx-u)) calc(14 * var(--odx-u)); border-radius: calc(12 * var(--odx-u)); background: #fff1ee; color: #8f1f17; font-size: var(--odx-fs-label); }
/* scan presets row (bottom of the stage) */
.odx-dossier .odx-o-presets { position: absolute; z-index: 4; left: calc(62 * var(--odx-u)); right: 0; bottom: calc(6 * var(--odx-u)); display: flex; justify-content: center; gap: calc(8 * var(--odx-u)); }
.odx-dossier .odx-o-preset {
  height: calc(36 * var(--odx-u)); padding: 0 calc(16 * var(--odx-u)); border-radius: calc(12 * var(--odx-u));
  background: rgb(255 255 255 / 0.82); font-size: var(--odx-fs-label); letter-spacing: -0.03em; color: var(--odx-ink-tab);
  box-shadow: 0 0 calc(6 * var(--odx-u)) calc(1 * var(--odx-u)) rgb(255 255 255 / 0.7), inset 0 0 0 calc(1 * var(--odx-u)) rgb(0 0 0 / 0.04);
}
.odx-dossier .odx-o-preset.is-active { background: var(--odx-mint-gradient); color: var(--odx-ink); font-weight: 400; }
.odx-dossier .odx-o-preset:disabled { opacity: 0.5; }
/* ortho timeline */
/* (raised above the simulation's own bottom row, which keeps the permanent "Simulation indicative" label) */
.odx-dossier .odx-o-timeline {
  position: absolute; z-index: 4; left: calc(62 * var(--odx-u) + 50%); bottom: max(calc(46 * var(--odx-u)), 46px); transform: translateX(calc(-50% - calc(31 * var(--odx-u))));
  display: flex; align-items: center; gap: calc(12 * var(--odx-u));
  padding: calc(8 * var(--odx-u)) calc(14 * var(--odx-u)) calc(8 * var(--odx-u)) calc(8 * var(--odx-u));
  border-radius: calc(18 * var(--odx-u)); background: rgb(255 255 255 / 0.88);
  box-shadow: 0 calc(6 * var(--odx-u)) calc(20 * var(--odx-u)) rgb(30 70 40 / 0.08);
  font-size: var(--odx-fs-label);
}
.odx-dossier .odx-o-timeline { margin: 0; border: 0; min-inline-size: 0; }
.odx-dossier .odx-o-timeline.is-disabled { opacity: 0.55; }
.odx-dossier .odx-o-timeline.is-disabled * { cursor: default; }
.odx-dossier .odx-o-timeline__play { display: grid; place-items: center; width: calc(38 * var(--odx-u)); height: calc(38 * var(--odx-u)); border-radius: 50%; background: var(--odx-pill-dark); color: #fff; }
.odx-dossier .odx-o-timeline__play .odx-icon { width: calc(18 * var(--odx-u)); height: calc(18 * var(--odx-u)); fill: currentColor; }
.odx-dossier .odx-o-timeline .odx-o-range { width: calc(300 * var(--odx-u)); margin: 0; accent-color: #2f9b6e; cursor: pointer; }
.odx-dossier .odx-o-timeline .odx-o-range:focus-visible { outline: calc(2 * var(--odx-u)) solid #0c8f60; outline-offset: calc(4 * var(--odx-u)); border-radius: 999px; }
.odx-dossier .odx-o-timeline__label { font-variant-numeric: tabular-nums; white-space: nowrap; min-width: calc(110 * var(--odx-u)); }
.odx-dossier .odx-o-timeline .odx-o-speed {
  height: calc(32 * var(--odx-u)); padding: 0 calc(26 * var(--odx-u)) 0 calc(10 * var(--odx-u));
  border: 0; border-radius: calc(10 * var(--odx-u)); appearance: none; -webkit-appearance: none; cursor: pointer;
  background: rgb(0 0 0 / 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E") no-repeat right calc(7 * var(--odx-u)) center / calc(14 * var(--odx-u));
  font: inherit; font-variant-numeric: tabular-nums; color: var(--odx-ink);
}
.odx-dossier .odx-o-timeline .odx-o-speed:hover { background-color: rgb(0 0 0 / 0.07); }
.odx-dossier .odx-o-timeline .odx-o-speed:focus-visible { outline: calc(2 * var(--odx-u)) solid #0c8f60; outline-offset: calc(2 * var(--odx-u)); }
.odx-dossier .odx-o-timeline__play:focus-visible, .odx-dossier .odx-o-timeline__ghost:focus-visible, .odx-dossier .odx-o-preset:focus-visible { outline: calc(2 * var(--odx-u)) solid #0c8f60; outline-offset: calc(2 * var(--odx-u)); }
.odx-dossier .odx-o-timeline__ghost { display: inline-flex; align-items: center; gap: calc(6 * var(--odx-u)); height: calc(32 * var(--odx-u)); padding: 0 calc(10 * var(--odx-u)); border-radius: calc(10 * var(--odx-u)); background: rgb(0 0 0 / 0.04); }
.odx-dossier .odx-o-timeline__ghost.is-on { background: var(--odx-mint-gradient); }
.odx-dossier .odx-o-timeline__ghost .odx-icon { width: calc(16 * var(--odx-u)); height: calc(16 * var(--odx-u)); }
.odx-dossier .odx-o-disclaimer { position: absolute; left: 0; right: 0; top: calc(100% + calc(6 * var(--odx-u))); text-align: center; font-size: calc(12.5 * var(--odx-u)); color: var(--odx-ink-2); white-space: nowrap; }
/* ---------------------------------------------------------------- Analyse dentaire (533 x 484) */
.odx-dossier .odx-o-analysis { display: flex; flex-direction: column; width: calc(533 * var(--odx-u)); flex: none; min-height: 0; overflow: hidden; }
.odx-dossier .odx-o-analysis__head { display: flex; align-items: flex-start; flex: none; padding: calc(28.6 * var(--odx-u)) calc(18.9 * var(--odx-u)) 0 0; }
.odx-dossier .odx-o-analysis__head h2 { margin: calc(1.66 * var(--odx-u)) auto 0 calc(19.85 * var(--odx-u)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odx-dossier .odx-o-analysis__add { margin-right: calc(10 * var(--odx-u)); flex: none; }
/* three rows fit exactly (28.6 + 2 x 131.5 + 117 = 408.6 of 415 units): the list only scrolls from the fourth row, and the
   page wheel passes through at its edges (no overscroll containment) */
.odx-dossier .odx-o-arows {
  list-style: none; margin: 0; padding: calc(28.6 * var(--odx-u)) 0 0;
  flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgb(0 0 0 / 0.14) transparent;
}
/* plan: an act billed once for all its teeth (full orthodontic treatment…), shown once above the rows (« Inclus » on each) */
.odx-dossier .odx-o-analysis__groups { flex: none; display: grid; gap: calc(6 * var(--odx-u)); margin: calc(18 * var(--odx-u)) calc(34.6 * var(--odx-u)) 0 calc(34.5 * var(--odx-u)); }
.odx-dossier .odx-o-analysis__group {
  display: flex; align-items: center; gap: calc(8 * var(--odx-u)); min-width: 0; margin: 0;
  padding: calc(8 * var(--odx-u)) calc(12 * var(--odx-u)); border-radius: calc(14 * var(--odx-u));
  background: rgb(0 0 0 / 0.028); box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(0 0 0 / 0.04);
  font-size: var(--odx-fs-label); letter-spacing: var(--odx-ls-label); line-height: 1.2; color: var(--odx-ink);
}
.odx-dossier .odx-o-analysis__group .odx-icon { flex: none; width: calc(16 * var(--odx-u)); height: calc(16 * var(--odx-u)); color: rgb(13 13 13 / 0.45); }
.odx-dossier .odx-o-analysis__groupname { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odx-dossier .odx-o-analysis__groupmeta { flex: none; margin-left: auto; color: var(--odx-ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.odx-dossier .odx-o-analysis__groups + .odx-o-arows { padding-top: calc(22 * var(--odx-u)); }
.odx-dossier .odx-o-arow { position: relative; height: calc(131.5 * var(--odx-u)); }
.odx-dossier .odx-o-arow:last-child { height: calc(117 * var(--odx-u)); }
.odx-dossier .odx-o-arow__hit {
  position: absolute; z-index: 1; left: calc(16 * var(--odx-u)); right: calc(16 * var(--odx-u)); top: calc(-14 * var(--odx-u)); height: calc(118 * var(--odx-u));
  border-radius: calc(20 * var(--odx-u)); background: transparent; transition: background 200ms ease;
}
.odx-dossier .odx-o-arow__hit:hover { background: rgb(0 0 0 / 0.022); }
.odx-dossier .odx-o-arow.is-selected .odx-o-arow__hit { background: rgb(198 252 196 / 0.32); box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(12 143 96 / 0.14); }
.odx-dossier .odx-o-arow__hit:focus-visible { outline: calc(2 * var(--odx-u)) solid #0c8f60; outline-offset: calc(-2 * var(--odx-u)); }
.odx-dossier .odx-o-arow__line, .odx-dossier .odx-o-arow__note { position: relative; z-index: 2; pointer-events: none; }
/* one fixed five-column grid for every row (the reference's rows are slightly misaligned) */
.odx-dossier .odx-o-arow__line {
  display: grid;
  grid-template-columns: calc(58.4 * var(--odx-u)) calc(47 * var(--odx-u)) calc(104 * var(--odx-u)) minmax(0, 1fr) calc(100.3 * var(--odx-u));
  /* 8 units (was 10): the « Acte » column gains 8 units so complete short names fit (« Couronne CCM », « Inlay céramique ») */
  column-gap: calc(8 * var(--odx-u));
  align-items: start;
  padding: 0 calc(34.6 * var(--odx-u)) 0 calc(34.5 * var(--odx-u));
}
.odx-dossier .odx-o-thumb { position: relative; margin-top: calc(-1.9 * var(--odx-u)); margin-left: calc(var(--s) / -2); transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.odx-dossier .odx-o-thumb img {
  position: absolute; left: calc(var(--s) / 2); top: calc(var(--s) / 2); width: var(--d); height: var(--d);
  object-fit: contain; border-radius: 50%; animation: odx-o-in 360ms ease both;
}
.odx-dossier .odx-o-arow.is-focused .odx-o-thumb { transform: scale(1.06); }
/* no 3D thumbnail (yet, or no WebGL): a line tooth in the porcelain disc */
.odx-dossier .odx-o-thumb .odx-o-thumb__ph { position: absolute; left: calc(var(--s) / 2 + var(--d) / 2 - calc(13 * var(--odx-u))); top: calc(var(--s) / 2 + var(--d) / 2 - calc(13 * var(--odx-u))); width: calc(26 * var(--odx-u)); height: calc(26 * var(--odx-u)); color: rgb(13 13 13 / 0.32); stroke-width: 1.4; animation: odx-o-in 600ms ease 300ms both; }
@keyframes odx-o-in { from { opacity: 0; } to { opacity: 1; } }
.odx-dossier .odx-o-col { min-width: 0; margin-top: calc(6.73 * var(--odx-u)); }
.odx-dossier .odx-o-col .odx-pair__value { margin-top: calc(-0.58 * var(--odx-u)); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.odx-dossier .odx-o-col .odx-pair__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.odx-dossier .odx-o-score { padding-top: calc(7.94 * var(--odx-u)); }
.odx-dossier .odx-o-score .odx-score__value { margin-top: calc(-0.93 * var(--odx-u)); font-variant-numeric: tabular-nums; }
.odx-dossier .odx-o-score--good { background: var(--odx-score-good); }
.odx-dossier .odx-o-score--watch { background: var(--odx-score-watch); }
.odx-dossier .odx-o-score--neutral { background: #eff2ef; }
.odx-dossier .odx-o-score--neutral .odx-score__value { font-size: calc(17.5 * var(--odx-u)); margin-top: calc(1 * var(--odx-u)); }
.odx-dossier .odx-o-arow__note { position: absolute; left: calc(34.5 * var(--odx-u)); right: calc(34.6 * var(--odx-u)); top: calc(67.99 * var(--odx-u)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odx-dossier .odx-o-analysis__foot {
  display: flex; align-items: center; gap: calc(12 * var(--odx-u)); flex: none;
  padding: calc(12 * var(--odx-u)) calc(18.9 * var(--odx-u)) calc(18 * var(--odx-u)) calc(34.5 * var(--odx-u));
  border-top: calc(1 * var(--odx-u)) solid rgb(0 0 0 / 0.05);
  animation: odx-o-rise 260ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes odx-o-rise { from { opacity: 0; transform: translateY(calc(10 * var(--odx-u))); } to { opacity: 1; transform: none; } }
.odx-dossier .odx-o-analysis__hint {
  display: flex; align-items: center; gap: calc(12 * var(--odx-u)); flex: none;
  margin: 0; padding: 0 calc(34.6 * var(--odx-u)) calc(26 * var(--odx-u)) calc(34.5 * var(--odx-u));
  font-size: var(--odx-fs-label); letter-spacing: var(--odx-ls-label); line-height: 1.3; color: var(--odx-ink-2);
}
.odx-dossier .odx-o-analysis__hint-icon { display: grid; place-items: center; flex: none; width: calc(36 * var(--odx-u)); height: calc(36 * var(--odx-u)); border-radius: 50%; background: var(--odx-thumb-fill); color: rgb(13 13 13 / 0.45); }
.odx-dossier .odx-o-analysis__hint-icon .odx-icon { width: calc(18 * var(--odx-u)); height: calc(18 * var(--odx-u)); }
.odx-dossier .odx-o-analysis__sel { font-size: var(--odx-fs-label); color: var(--odx-ink-2); white-space: nowrap; }
.odx-dossier .odx-o-linkbtn { font-size: var(--odx-fs-label); color: #0a7550; text-decoration: underline; text-underline-offset: 0.18em; }
.odx-dossier .odx-o-addact { margin-left: auto; height: calc(44 * var(--odx-u)); gap: calc(8 * var(--odx-u)); padding: 0 calc(20 * var(--odx-u)); }
.odx-dossier .odx-o-addact .odx-icon { width: calc(18 * var(--odx-u)); height: calc(18 * var(--odx-u)); }
.odx-dossier .odx-o-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(8 * var(--odx-u)); flex: 1; padding: calc(24 * var(--odx-u)) calc(40 * var(--odx-u)); text-align: center; }
.odx-dossier .odx-o-empty__icon { display: grid; place-items: center; width: calc(58 * var(--odx-u)); height: calc(58 * var(--odx-u)); border-radius: 50%; background: var(--odx-thumb-fill); color: rgb(13 13 13 / 0.5); margin-bottom: calc(6 * var(--odx-u)); }
.odx-dossier .odx-o-empty__icon .odx-icon { width: calc(26 * var(--odx-u)); height: calc(26 * var(--odx-u)); }
.odx-dossier .odx-o-empty__title { font-size: var(--odx-fs-value); letter-spacing: var(--odx-ls-value); }
.odx-dossier .odx-o-empty__text { font-size: var(--odx-fs-label); color: var(--odx-ink-2); line-height: 1.4; max-width: calc(380 * var(--odx-u)); }
.odx-dossier .odx-o-movement { margin: calc(24 * var(--odx-u)) calc(34.5 * var(--odx-u)) 0; display: grid; gap: calc(14 * var(--odx-u)); }
.odx-dossier .odx-o-movement__row { display: flex; justify-content: space-between; gap: calc(16 * var(--odx-u)); padding-bottom: calc(10 * var(--odx-u)); border-bottom: calc(1 * var(--odx-u)) solid rgb(0 0 0 / 0.05); }
.odx-dossier .odx-o-movement__row dd { margin: 0; font-variant-numeric: tabular-nums; }
.odx-dossier .odx-o-movement__note { margin-top: calc(6 * var(--odx-u)); }
/* ---------------------------------------------------------------- Détails de la dent (414.5 x 326) */
.odx-dossier .odx-o-case { padding: 0 calc(19 * var(--odx-u)); overflow: hidden; }
.odx-dossier .odx-o-case > h2 { margin: calc(26.82 * var(--odx-u)) 0 0 calc(-0.22 * var(--odx-u)); white-space: nowrap; }
.odx-dossier .odx-o-case__sub { margin-top: calc(7.57 * var(--odx-u)); color: var(--odx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* left column as wide as its longest value (« Maxillaire gauche (Q2) »), the rest (≈ 176 units) for the practitioner and
   the last act, which may take two lines */
.odx-dossier .odx-o-case__grid { display: grid; grid-template-columns: calc(196 * var(--odx-u)) minmax(0, 1fr); column-gap: calc(4 * var(--odx-u)); margin: 0 0 0 calc(-0.05 * var(--odx-u)); }
/* practitioner / act values: two lines before an ellipsis (full text in the title) */
.odx-dossier .odx-o-case__pair dd .odx-o-ellipsis.is-wrap { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.12; overflow-wrap: anywhere; }
.odx-dossier .odx-o-case__pair { min-width: 0; margin: calc(16.6 * var(--odx-u)) 0 0; }
.odx-dossier .odx-o-case__pair:nth-child(-n + 2) { margin-top: calc(17.56 * var(--odx-u)); }
.odx-dossier .odx-o-case__pair dt { margin: 0; }
.odx-dossier .odx-o-case__pair dd { display: flex; align-items: center; min-width: 0; max-width: 100%; margin: calc(6.75 * var(--odx-u)) 0 0; }
.odx-dossier .odx-o-dot { flex: none; width: var(--odx-dot-d); height: var(--odx-dot-d); margin-left: calc(5 * var(--odx-u)); border-radius: 50%; }
.odx-dossier .odx-o-dot.is-yellow { background: radial-gradient(circle at 40% 35%, #fde424, var(--odx-status-yellow) 55%, #efc800); }
.odx-dossier .odx-o-dot.is-green { background: radial-gradient(circle at 40% 35%, #8ef0ad, #3fcf78 55%, #23ad5c); }
.odx-dossier .odx-o-dot.is-grey { background: radial-gradient(circle at 40% 35%, #e6e9e6, #c7ccc7 55%, #aeb4ae); }
.odx-dossier .odx-o-dot.is-red { background: radial-gradient(circle at 40% 35%, #ff9a8c, #f0604e 55%, #d8432f); }
.odx-dossier .odx-o-case__empty { margin-top: calc(26 * var(--odx-u)); font-size: var(--odx-fs-crumb); letter-spacing: -0.02em; color: var(--odx-ink-2); line-height: 1.45; max-width: calc(330 * var(--odx-u)); }
/* ---------------------------------------------------------------- Historique des soins (859.5 x 326) */
.odx-dossier .odx-o-history { overflow: visible; }
.odx-dossier .odx-o-history__head { display: flex; align-items: flex-start; padding: calc(29.8 * var(--odx-u)) calc(19.1 * var(--odx-u)) 0 0; }
.odx-dossier .odx-o-history__head h2 { margin: calc(2.7 * var(--odx-u)) auto 0 calc(20.4 * var(--odx-u)); white-space: nowrap; }
.odx-dossier .odx-o-hrows { list-style: none; margin: calc(20.05 * var(--odx-u)) 0 0; padding: 0; }
.odx-dossier .odx-o-hrow {
  display: grid;
  grid-template-columns: calc(202.2 * var(--odx-u)) calc(202.1 * var(--odx-u)) calc(186.4 * var(--odx-u)) minmax(0, 1fr) auto;
  align-items: start;
  height: calc(72 * var(--odx-u));
  margin-left: calc(20.7 * var(--odx-u));
  padding-right: calc(19.5 * var(--odx-u));
  animation: odx-o-in 300ms ease both;
}
.odx-dossier .odx-o-hrow > .odx-pair { min-width: 0; padding-right: calc(16 * var(--odx-u)); }
.odx-dossier .odx-o-hrow .odx-pair__label, .odx-dossier .odx-o-hrow .odx-pair__value { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.odx-dossier .odx-o-hrow .odx-pair__value { margin-top: calc(-2.93 * var(--odx-u)); }
.odx-dossier .odx-o-hrow .odx-pair__value.is-wrap { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.12; }
.odx-dossier .odx-o-kebab { margin-top: calc(1.15 * var(--odx-u)); }
.odx-dossier .odx-o-history__empty { margin: calc(40 * var(--odx-u)) calc(20.4 * var(--odx-u)) 0; font-size: var(--odx-fs-crumb); letter-spacing: -0.02em; color: var(--odx-ink-2); }
/* ---------------------------------------------------------------- Suivi du patient (415 x 326) */
.odx-dossier .odx-o-follow { position: relative; overflow: hidden; }
.odx-dossier .odx-o-follow > h2 { margin: calc(26.83 * var(--odx-u)) 0 0 calc(20.54 * var(--odx-u)); white-space: nowrap; }
.odx-dossier .odx-o-follow__sub { display: flex; align-items: flex-start; gap: calc(12 * var(--odx-u)); margin: calc(17.48 * var(--odx-u)) calc(19.9 * var(--odx-u)) 0 calc(19.69 * var(--odx-u)); }
.odx-dossier .odx-o-follow__sub h3 { margin: calc(2.25 * var(--odx-u)) auto 0 0; white-space: nowrap; }
.odx-dossier .odx-o-chip { flex: none; padding: 0 calc(14 * var(--odx-u)); }
.odx-dossier .odx-o-chip--lime { background: var(--odx-chip-lime); }
.odx-dossier .odx-o-chip--amber { background: #fff0cf; box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) #f0d59b; color: #6c430c; }
.odx-dossier .odx-o-follow__text {
  margin: calc(15.73 * var(--odx-u)) calc(20 * var(--odx-u)) 0 calc(19.18 * var(--odx-u));
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.odx-dossier .odx-o-follow__btn {
  position: absolute; left: calc(20.2 * var(--odx-u)); bottom: calc(19.1 * var(--odx-u));
  min-width: calc(220.6 * var(--odx-u)); height: calc(49.7 * var(--odx-u));
  align-items: flex-start; padding: calc(11.5 * var(--odx-u)) calc(24 * var(--odx-u)) 0;
}
/* ---------------------------------------------------------------- acts table card (below the fold) */
.odx-dossier .odx-o-acts { margin-top: var(--odx-gap); padding: calc(28 * var(--odx-u)) calc(30 * var(--odx-u)) calc(30 * var(--odx-u)); scroll-margin-top: calc(24 * var(--odx-u)); }
.odx-dossier .odx-o-acts__head { display: flex; align-items: center; gap: calc(18 * var(--odx-u)); margin-bottom: calc(18 * var(--odx-u)); }
.odx-dossier .odx-o-acts__title { display: flex; align-items: baseline; gap: calc(14 * var(--odx-u)); }
.odx-dossier .odx-o-acts__add { order: 3; flex: none; }
.odx-dossier .odx-o-acts__state { display: inline-flex; align-items: center; height: calc(30 * var(--odx-u)); padding: 0 calc(14 * var(--odx-u)); border-radius: 999px; background: var(--odx-mint-gradient); font-size: var(--odx-fs-label); font-weight: 400; transform: translateY(calc(-3 * var(--odx-u))); }
.odx-dossier .odx-o-filter { display: inline-flex; align-items: center; gap: calc(8 * var(--odx-u)); height: calc(34 * var(--odx-u)); padding: 0 calc(6 * var(--odx-u)) 0 calc(14 * var(--odx-u)); border-radius: 999px; background: rgb(12 143 96 / 0.08); color: #0a5c40; font-size: var(--odx-fs-label); animation: odx-o-in 220ms ease both; }
.odx-dossier .odx-o-filter .odx-icon { width: calc(16 * var(--odx-u)); height: calc(16 * var(--odx-u)); }
.odx-dossier .odx-o-filter button { display: grid; place-items: center; width: calc(24 * var(--odx-u)); height: calc(24 * var(--odx-u)); border-radius: 50%; }
.odx-dossier .odx-o-filter button:hover { background: rgb(12 143 96 / 0.14); }
.odx-dossier .odx-o-filter button .odx-icon { width: calc(14 * var(--odx-u)); height: calc(14 * var(--odx-u)); }
.odx-dossier .odx-o-flash > td { animation: odx-o-flash 2.2s ease; }
@keyframes odx-o-flash { 0%, 30% { background: rgb(198 252 196 / 0.75); } 100% { background: transparent; } }
/* the platform's acts table, restyled in the reference language */
.odx-dossier .odx-o-acts .patient-operations-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "summary summary summary" "tools tabs docs" "table table table" "pager pager pager";
  align-items: center;
  column-gap: calc(16 * var(--odx-u)); row-gap: calc(18 * var(--odx-u));
  margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.odx-dossier .odx-o-acts .odx-acts-summary { grid-area: summary; display: flex; align-items: center; gap: calc(14 * var(--odx-u)); flex-wrap: wrap; min-height: 0; }
.odx-dossier .odx-o-acts .odx-acts-summary:not(:has(> *)) { display: none; }
.odx-dossier .odx-o-acts .odx-acts-summary > p[role="status"] { font-size: var(--odx-fs-label); color: var(--odx-ink-2); margin: 0; }
.odx-dossier .odx-o-acts .treatment-financials { display: flex; gap: calc(12 * var(--odx-u)); margin: 0; }
.odx-dossier .odx-o-acts .treatment-financials .metric {
  display: flex; flex-direction: column; justify-content: center; gap: calc(2 * var(--odx-u));
  min-width: calc(176 * var(--odx-u)); height: calc(64 * var(--odx-u)); padding: 0 calc(18 * var(--odx-u));
  border-radius: calc(16 * var(--odx-u)); background: rgb(0 0 0 / 0.025); border: 0; box-shadow: none;
}
.odx-dossier .odx-o-acts .treatment-financials .metric span { font-size: var(--odx-fs-micro); letter-spacing: 0.04em; color: var(--odx-ink-2); font-weight: 400; }
.odx-dossier .odx-o-acts .treatment-financials .metric p { margin: 0; font-size: var(--odx-fs-value); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--odx-ink); }
.odx-dossier .odx-o-acts .treatment-financials .metric p strong, .odx-dossier .odx-o-acts .treatment-financials .metric p b { font-weight: 400; font-size: inherit; color: inherit; }
.odx-dossier .odx-o-acts .treatment-financials .metric.green { background: rgb(200 253 198 / 0.55); }
.odx-dossier .odx-o-acts .treatment-financials .metric.red { background: rgb(255 228 222 / 0.6); }
.odx-dossier .odx-o-acts .treatment-financials .metric.green p, .odx-dossier .odx-o-acts .treatment-financials .metric.red p { color: var(--odx-ink); }
.odx-dossier .odx-o-acts .patient-receipt-download-control { margin-left: auto; display: inline-flex; align-items: center; gap: calc(10 * var(--odx-u)); }
.odx-dossier .odx-o-acts .patient-receipt-download-button,
.odx-dossier .odx-o-acts .patient-document-actions button {
  display: inline-flex; align-items: center; gap: calc(8 * var(--odx-u));
  height: calc(44 * var(--odx-u)); padding: 0 calc(18 * var(--odx-u));
  border: 0; border-radius: var(--odx-r-button);
  background: #fff; color: var(--odx-ink);
  box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(0 0 0 / 0.07);
  font-family: var(--odx-font); font-size: var(--odx-fs-label); font-weight: 400; letter-spacing: -0.02em;
  transition: background 180ms ease, box-shadow 180ms ease;
}
.odx-dossier .odx-o-acts .patient-receipt-download-button:hover, .odx-dossier .odx-o-acts .patient-document-actions button:hover { background: var(--odx-mint-gradient); box-shadow: none; }
.odx-dossier .odx-o-acts .patient-document-actions button strong { font-weight: 400; color: rgb(13 13 13 / 0.6); }
.odx-dossier .odx-o-acts .patient-document-actions { grid-area: docs; display: flex; gap: calc(10 * var(--odx-u)); margin: 0; padding: 0; justify-content: flex-end; }
.odx-dossier .odx-o-acts .treatment-plan-tabs { grid-area: tabs; margin: 0; justify-self: start; }
/* PLAN: the ten Devis tabs (≈ 711 px) get their own full-width row under the filter and the document buttons */
.odx-dossier .odx-o-acts .patient-operations-card:has(> .treatment-plan-tabs) {
  grid-template-areas: "summary summary summary" "tools . docs" "tabs tabs tabs" "table table table" "pager pager pager";
}
.odx-dossier .odx-o-acts .patient-operations-toolbar { grid-area: tools; margin: 0; padding: 0; }
.odx-dossier .odx-o-acts .patient-operations-wrap { grid-area: table; margin: 0; }
.odx-dossier .odx-o-acts .table-pagination { grid-area: pager; display: flex; align-items: center; justify-content: space-between; font-size: var(--odx-fs-label); color: var(--odx-ink-2); }
/* cell look comes from the shared restyle (restyle/tables.css, chips.css); only the type sizes are evened out here */
.odx-dossier .odx-o-acts .patient-operations-table :is(.operation-name, .money-cell) { font-size: inherit; }
/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .odx-dossier .odx-o-layer, .odx-dossier .odx-o-switch__disc, .odx-dossier .odx-o-foot__btn,
  .odx-dossier .odx-o-thumb, .odx-dossier .odx-o-rail .odx-zoom-thumb, .odx-dossier .odx-o-arow__hit { transition: none !important; }
  .odx-dossier .odx-o-thumb img, .odx-dossier .odx-o-analysis__foot, .odx-dossier .odx-o-hrow, .odx-dossier .odx-o-filter, .odx-dossier .odx-o-flash > td { animation: none !important; }
}
/* ---- P1-07 (green switch candidate, 25 Nov 2026): phone Soins page without overlaps ----------------------------
   - the treatment-state pills take the full stage width (no fixed reference geometry) and « Légende » moves below them;
   - the acts card stacks summary / practitioner filter / document buttons / quote tabs / table on one column. */
@media (max-width: 1023px) {
  .odx-dossier-route .odx-dossier .odx-o-pills { left: 8px; right: 8px; transform: none; width: auto; max-width: none; top: 8px; display: flex; }
  .odx-dossier-route .odx-dossier .odx-o-pills .odx-s-pill { width: auto; flex: 1 1 0; min-width: 0; padding-left: 6px; padding-right: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .odx-dossier-route .odx-dossier .odx-al-pop { top: 60px; right: 8px; }
  .odx-dossier-route .odx-dossier .odx-o-acts .patient-operations-card,
  .odx-dossier-route .odx-dossier .odx-o-acts .patient-operations-card:has(.treatment-plan-tabs) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "summary" "tools" "docs" "tabs" "table" "pager";
    row-gap: 10px;
  }
  .odx-dossier-route .odx-dossier .odx-o-acts .patient-document-actions { justify-content: flex-start; flex-wrap: wrap; }
  .odx-dossier-route .odx-dossier .odx-o-acts .patient-operations-toolbar { min-width: 0; }
  .odx-dossier-route .odx-dossier .odx-o-acts .treatment-plan-tabs { max-width: 100%; overflow-x: auto; }
}
/* ---------------------------------------------------------------- page, canvas, window */
/* The legacy shell pins html/body/#root to the viewport and scrolls a workspace pane; the dossier page itself scrolls. */
html.odx-dossier:has(.odx-dossier-route),
html.odx-dossier:has(.odx-dossier-route) body,
html.odx-dossier:has(.odx-dossier-route) #root { height: auto; min-height: 100%; overflow: visible; }
html.odx-dossier:has(.odx-dossier-route) body { background: #e4eae0; }
.odx-dossier .odx-dossier-route { min-height: 100vh; background: #e4eae0; }
.odx-dossier .odx-s-page {
  /* No container-type here: a size container is a containing block for position:fixed descendants, which trapped every
     legacy dialog (.modal-backdrop) inside the page instead of the viewport. The page width now comes from
     --odx-page-px, written on <html> by main.tsx (document width without the scrollbar). */
  min-height: 100vh;
  background: #e4eae0;
  overflow-x: clip;
}
/* legibility floor for the smallest styles below ~1600 px wide (no effect at the reference's 2000 px and above) */
.odx-dossier.odx-s-canvas {
  --odx-fs-micro: max(calc(13.6 * var(--odx-u)), 10.5px);
  --odx-fs-label: max(calc(15.7 * var(--odx-u)), 11.5px);
  --odx-fs-status: max(calc(15.6 * var(--odx-u)), 11.5px);
  --odx-fs-note: max(calc(16.35 * var(--odx-u)), 11.8px);
  --odx-fs-chip: max(calc(15.9 * var(--odx-u)), 11.5px);
}
.odx-dossier .odx-s-canvas {
  position: relative;
  width: var(--odx-page-w);
  min-height: var(--odx-page-h);
  margin: 0 auto;
  padding: var(--odx-window-y) 0 calc(153 * var(--odx-u)) var(--odx-window-x);
  background: var(--odx-backdrop);
}
.odx-dossier .odx-s-window {
  display: flex;
  flex-direction: column;
  width: var(--odx-window-w);
  height: auto;
  min-height: var(--odx-window-h);
  padding: 0 var(--odx-window-pad-x) calc(49 * var(--odx-u));
}
.odx-dossier .odx-s-press { transition: transform 160ms ease, filter 160ms ease; }
.odx-dossier .odx-s-press:active:not(:disabled) { transform: scale(0.96); }
.odx-dossier .odx-s-press:focus-visible,
.odx-dossier .odx-s-nav__item:focus-visible,
.odx-dossier .odx-s-pill:focus-visible { outline: calc(2 * var(--odx-u)) solid #0c8f60; outline-offset: calc(3 * var(--odx-u)); }
.odx-dossier .odx-iconbtn:disabled,
.odx-dossier .odx-iconbtn.is-disabled { opacity: 0.38; cursor: not-allowed; }
.odx-dossier .odx-iconbtn:not(:disabled):not(.is-disabled):hover { filter: brightness(0.97); }
.odx-dossier .odx-iconbtn--glow:not(:disabled):hover { filter: drop-shadow(0 calc(2 * var(--odx-u)) calc(6 * var(--odx-u)) rgb(20 60 30 / 0.08)); }
.odx-dossier .odx-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;
}
/* ---------------------------------------------------------------- top bar (111 high, everything centred on its middle) */
.odx-dossier .odx-s-topbar { position: relative; z-index: 40; display: flex; align-items: center; height: var(--odx-topbar-h); flex: none; }
.odx-dossier .odx-s-brand { display: flex; align-items: center; width: calc(366.26 * var(--odx-u)); flex: none; }
.odx-dossier .odx-s-nav { position: relative; display: flex; align-items: center; gap: calc(44 * var(--odx-u)); height: calc(52.2 * var(--odx-u)); }
.odx-dossier .odx-s-nav__pill {
  position: absolute; left: 0; top: 0; height: 100%;
  border-radius: var(--odx-r-button);
  background: var(--odx-pill-dark);
  transition: transform 420ms cubic-bezier(0.32, 0.72, 0.2, 1), width 420ms cubic-bezier(0.32, 0.72, 0.2, 1);
}
.odx-dossier .odx-s-nav__pill::after {           /* the soft floating shadow ~30 px under the pill (reference) */
  content: ""; position: absolute;
  left: calc(12 * var(--odx-u)); right: calc(12 * var(--odx-u)); top: calc(100% + calc(24 * var(--odx-u)));
  height: calc(22 * var(--odx-u)); border-radius: 50%;
  background: radial-gradient(closest-side, var(--odx-pill-shadow), rgb(0 0 0 / 0));
  pointer-events: none;
}
.odx-dossier .odx-s-nav__item {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: calc(10.27 * var(--odx-u));
  height: 100%;
  border-radius: var(--odx-r-button);
  font-size: var(--odx-fs-nav); letter-spacing: var(--odx-ls-nav);
  color: var(--odx-ink-soft); text-decoration: none; white-space: nowrap;
  transition: color 260ms ease, padding 420ms cubic-bezier(0.32, 0.72, 0.2, 1);
}
.odx-dossier .odx-s-nav__item:not(.is-active):hover { color: #000; }
/* idle item hover: a faint pill that grows out of the text (layout never moves) */
.odx-dossier .odx-s-nav__item:not(.is-active)::before {
  content: ""; position: absolute; z-index: -1; inset: calc(4 * var(--odx-u)) calc(-18 * var(--odx-u));
  border-radius: var(--odx-r-button); background: rgb(13 13 13 / 0.045);
  opacity: 0; transform: scale(0.92); transition: opacity 200ms ease, transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.odx-dossier .odx-s-nav__item:not(.is-active):hover::before { opacity: 1; transform: none; }
.odx-dossier .odx-s-nav__item:not(.is-active):active::before { background: rgb(13 13 13 / 0.07); }
.odx-dossier .odx-s-nav__item.is-active {
  padding: 0 calc(39.7 * var(--odx-u));
  color: var(--odx-on-dark);
  font-weight: var(--odx-w-emph);
  letter-spacing: var(--odx-ls-nav-active);
}
/* The icon grows in with the pill (no pop): idle items keep a zero-width icon; the label of the item the pill moves to
   turns light only as the pill arrives, the label it leaves darkens at once (never light text on the white bar). */
.odx-dossier .odx-s-nav__icon {
  flex: none; width: calc(22 * var(--odx-u)); height: calc(22 * var(--odx-u)); stroke-width: 1.7;
  transition: width 420ms cubic-bezier(0.32, 0.72, 0.2, 1), margin 420ms cubic-bezier(0.32, 0.72, 0.2, 1), opacity 200ms ease 200ms;
}
.odx-dossier .odx-s-nav__item:not(.is-active) .odx-s-nav__icon {
  width: 0; margin-right: calc(-10.27 * var(--odx-u)); opacity: 0;
  transition: width 420ms cubic-bezier(0.32, 0.72, 0.2, 1), margin 420ms cubic-bezier(0.32, 0.72, 0.2, 1), opacity 100ms ease;
}
.odx-dossier .odx-s-nav__item.is-active { transition: color 200ms ease 130ms, padding 420ms cubic-bezier(0.32, 0.72, 0.2, 1); }
.odx-dossier .odx-s-nav__item:not(.is-active) { transition: color 120ms ease, padding 420ms cubic-bezier(0.32, 0.72, 0.2, 1); }
.odx-dossier .odx-s-topactions { display: flex; gap: calc(10.05 * var(--odx-u)); margin-left: auto; margin-right: calc(0.3 * var(--odx-u)); }
.odx-dossier .odx-s-popwrap { position: relative; display: inline-flex; }
.odx-dossier .odx-s-badge-dot {
  position: absolute; top: 27%; right: 28%;
  width: calc(9 * var(--odx-u)); height: calc(9 * var(--odx-u)); border-radius: 50%;
  background: #e2553f; box-shadow: 0 0 0 calc(2 * var(--odx-u)) #fff;
}
/* ---------------------------------------------------------------- popovers (search, alerts, settings, menus) */
.odx-dossier .odx-s-popover {
  position: absolute; z-index: 60;
  top: calc(100% + calc(12 * var(--odx-u)));
  right: 0;
  min-width: calc(300 * var(--odx-u));
  padding: calc(14 * var(--odx-u));
  border-radius: calc(22 * var(--odx-u));
  background: rgb(255 255 255 / 0.96);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 calc(18 * var(--odx-u)) calc(48 * var(--odx-u)) rgb(20 40 25 / 0.14), 0 0 0 calc(1 * var(--odx-u)) rgb(0 0 0 / 0.04);
  color: var(--odx-ink);
  transform-origin: top right;
  animation: odx-s-pop 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: left;
}
.odx-dossier .odx-s-popover--left { left: 0; right: auto; transform-origin: top left; }
.odx-dossier .odx-s-popover--right { right: 0; }
.odx-dossier .odx-s-popover--search { width: calc(520 * var(--odx-u)); }
.odx-dossier .odx-s-popover--alerts { width: calc(440 * var(--odx-u)); }
.odx-dossier .odx-s-popover--settings { width: calc(400 * var(--odx-u)); }
.odx-dossier .odx-s-popover--menu { min-width: calc(260 * var(--odx-u)); padding: calc(8 * var(--odx-u)); border-radius: calc(18 * var(--odx-u)); }
/* panel heading in the cards' title language (light, tight), one step smaller */
.odx-dossier .odx-s-popover__title { margin: calc(4 * var(--odx-u)) calc(8 * var(--odx-u)) calc(12 * var(--odx-u)); font-size: var(--odx-fs-value); letter-spacing: var(--odx-ls-value); color: var(--odx-ink-strong); font-weight: 300; line-height: 1.26; }
/* item titles inside the popovers: regular (the shared restyle sets bare <strong> to medium) */
:is(.odx-dossier, #odx-skin) .odx-s-popover strong { font-weight: 400; }
@keyframes odx-s-pop { from { opacity: 0; transform: translateY(calc(-6 * var(--odx-u))) scale(0.98); } to { opacity: 1; transform: none; } }
.odx-dossier .odx-s-menu__item {
  display: flex; align-items: center; gap: calc(12 * var(--odx-u)); width: 100%;
  padding: calc(10 * var(--odx-u)) calc(12 * var(--odx-u));
  border-radius: calc(12 * var(--odx-u));
  font-size: var(--odx-fs-crumb); letter-spacing: -0.02em; text-align: left; white-space: nowrap;
}
.odx-dossier .odx-s-menu__item .odx-icon { width: calc(20 * var(--odx-u)); height: calc(20 * var(--odx-u)); color: rgb(13 13 13 / 0.7); }
.odx-dossier .odx-s-menu__item:hover,
.odx-dossier .odx-s-menu__item:focus-visible { background: rgb(197 252 196 / 0.45); outline: none; }
.odx-dossier .odx-s-menu__item.is-danger { color: #b3261e; }
.odx-dossier .odx-s-menu__item.is-danger .odx-icon { color: #b3261e; }
.odx-dossier .odx-s-menu__info {
  display: flex; gap: calc(12 * var(--odx-u)); align-items: flex-start;
  margin-top: calc(6 * var(--odx-u)); padding: calc(12 * var(--odx-u)) calc(12 * var(--odx-u)) calc(8 * var(--odx-u));
  border-top: calc(1 * var(--odx-u)) solid rgb(0 0 0 / 0.06);
}
.odx-dossier .odx-s-menu__info .odx-icon { width: calc(20 * var(--odx-u)); height: calc(20 * var(--odx-u)); color: rgb(13 13 13 / 0.55); margin-top: calc(1 * var(--odx-u)); }
.odx-dossier .odx-s-menu__info span { display: flex; flex-direction: column; gap: calc(3 * var(--odx-u)); min-width: 0; }
.odx-dossier .odx-s-menu__info strong { font-weight: 400; font-size: var(--odx-fs-label); color: var(--odx-ink-2); }
.odx-dossier .odx-s-menu__info small { font-size: var(--odx-fs-crumb); letter-spacing: -0.02em; white-space: normal; max-width: calc(260 * var(--odx-u)); }
/* search */
.odx-dossier .odx-s-search__field {
  display: flex; align-items: center; gap: calc(10 * var(--odx-u));
  height: calc(50 * var(--odx-u)); padding: 0 calc(16 * var(--odx-u));
  border-radius: calc(14 * var(--odx-u)); background: rgb(0 0 0 / 0.035);
}
.odx-dossier .odx-s-search__field .odx-icon { width: calc(20 * var(--odx-u)); height: calc(20 * var(--odx-u)); color: rgb(13 13 13 / 0.6); }
.odx-dossier .odx-s-search__field input {
  flex: 1; min-width: 0; border: 0; outline: none; background: none;
  font: inherit; font-size: var(--odx-fs-crumb); letter-spacing: -0.02em; color: var(--odx-ink);
}
.odx-dossier .odx-s-search__field:focus-within { box-shadow: 0 0 0 calc(2 * var(--odx-u)) rgb(12 143 96 / 0.35); }
/* the shared restyle draws its own field and focus ring on every input (ID weight): the search field keeps one ring */
:is(.odx-dossier, #odx-skin) .odx-s-search__field input { height: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none; appearance: none; }
:is(.odx-dossier, #odx-skin) .odx-s-search__field input:focus-visible { outline: none; box-shadow: none; }
.odx-dossier .odx-s-search__field input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.odx-dossier .odx-s-search__hint { margin: calc(14 * var(--odx-u)) calc(8 * var(--odx-u)) calc(6 * var(--odx-u)); font-size: var(--odx-fs-label); color: var(--odx-ink-2); line-height: 1.4; }
.odx-dossier .odx-s-search__list { list-style: none; margin: calc(10 * var(--odx-u)) 0 0; padding: 0; max-height: calc(420 * var(--odx-u)); overflow-y: auto; overscroll-behavior: contain; }
.odx-dossier .odx-s-search__item { display: flex; gap: calc(12 * var(--odx-u)); align-items: center; padding: calc(9 * var(--odx-u)) calc(10 * var(--odx-u)); border-radius: calc(12 * var(--odx-u)); cursor: pointer; }
.odx-dossier .odx-s-search__item.is-active { background: rgb(197 252 196 / 0.45); }
.odx-dossier .odx-s-search__icon { display: grid; place-items: center; flex: none; width: calc(36 * var(--odx-u)); height: calc(36 * var(--odx-u)); border-radius: 50%; background: #f1f5f1; }
.odx-dossier .odx-s-search__icon .odx-icon { width: calc(18 * var(--odx-u)); height: calc(18 * var(--odx-u)); }
.odx-dossier .odx-s-search__text { display: flex; flex-direction: column; min-width: 0; }
.odx-dossier .odx-s-search__text strong { font-weight: 400; font-size: var(--odx-fs-crumb); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odx-dossier .odx-s-search__text small { font-size: var(--odx-fs-label); color: var(--odx-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* alerts */
.odx-dossier .odx-s-alerts__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: calc(8 * var(--odx-u)); }
.odx-dossier .odx-s-alert { display: flex; align-items: center; gap: calc(12 * var(--odx-u)); padding: calc(12 * var(--odx-u)); border-radius: calc(16 * var(--odx-u)); background: rgb(0 0 0 / 0.025); }
.odx-dossier .odx-s-alert__icon { display: grid; place-items: center; flex: none; width: calc(38 * var(--odx-u)); height: calc(38 * var(--odx-u)); border-radius: 50%; background: #fff; }
.odx-dossier .odx-s-alert__icon .odx-icon { width: calc(19 * var(--odx-u)); height: calc(19 * var(--odx-u)); }
.odx-dossier .odx-s-alert--amber { background: #fff7e6; }
.odx-dossier .odx-s-alert--amber .odx-s-alert__icon { color: #9a5b00; }
.odx-dossier .odx-s-alert--red { background: #fff1ee; }
.odx-dossier .odx-s-alert--red .odx-s-alert__icon { color: #b3261e; }
.odx-dossier .odx-s-alert--mint { background: rgb(224 250 195 / 0.55); }
.odx-dossier .odx-s-alert--mint .odx-s-alert__icon { color: #0a7550; }
.odx-dossier .odx-s-alert__text { display: flex; flex-direction: column; gap: calc(2 * var(--odx-u)); flex: 1; min-width: 0; }
.odx-dossier .odx-s-alert__text strong { font-weight: 400; font-size: var(--odx-fs-crumb); letter-spacing: -0.02em; }
.odx-dossier .odx-s-alert__text small { font-size: var(--odx-fs-label); color: var(--odx-ink-2); line-height: 1.35; overflow-wrap: anywhere; }
.odx-dossier .odx-s-alert__go { flex: none; height: calc(34 * var(--odx-u)); padding: 0 calc(14 * var(--odx-u)); border-radius: calc(11 * var(--odx-u)); background: #fff; font-size: var(--odx-fs-label); font-weight: 400; box-shadow: 0 0 0 calc(1 * var(--odx-u)) rgb(0 0 0 / 0.06); }
.odx-dossier .odx-s-alert__go:hover { background: var(--odx-mint-gradient); }
/* settings */
.odx-dossier .odx-s-toggle { display: flex; align-items: center; gap: calc(14 * var(--odx-u)); padding: calc(10 * var(--odx-u)) calc(8 * var(--odx-u)); border-radius: calc(12 * var(--odx-u)); cursor: pointer; position: relative; }
.odx-dossier .odx-s-toggle:hover { background: rgb(0 0 0 / 0.025); }
.odx-dossier .odx-s-toggle.is-disabled { cursor: default; opacity: 0.55; }
.odx-dossier .odx-s-toggle__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.odx-dossier .odx-s-toggle__text strong { font-weight: 400; font-size: var(--odx-fs-crumb); letter-spacing: -0.02em; }
.odx-dossier .odx-s-toggle__text small { font-size: var(--odx-fs-label); color: var(--odx-ink-2); }
.odx-dossier .odx-s-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.odx-dossier .odx-s-toggle__track { position: relative; flex: none; width: calc(46 * var(--odx-u)); height: calc(28 * var(--odx-u)); border-radius: 999px; background: #e3e7e3; transition: background 200ms ease; }
.odx-dossier .odx-s-toggle__track span { position: absolute; top: calc(3 * var(--odx-u)); left: calc(3 * var(--odx-u)); width: calc(22 * var(--odx-u)); height: calc(22 * var(--odx-u)); border-radius: 50%; background: #fff; box-shadow: 0 calc(1 * var(--odx-u)) calc(3 * var(--odx-u)) rgb(0 0 0 / 0.18); transition: transform 220ms cubic-bezier(0.3, 0.7, 0.2, 1); }
.odx-dossier .odx-s-toggle input:checked + .odx-s-toggle__track { background: #2f9b6e; }
.odx-dossier .odx-s-toggle input:checked + .odx-s-toggle__track span { transform: translateX(calc(18 * var(--odx-u))); }
.odx-dossier .odx-s-toggle input:focus-visible + .odx-s-toggle__track { box-shadow: 0 0 0 calc(2 * var(--odx-u)) rgb(12 143 96 / 0.4); }
.odx-dossier .odx-s-settings__source { display: flex; gap: calc(10 * var(--odx-u)); align-items: center; margin: calc(8 * var(--odx-u)) calc(8 * var(--odx-u)) calc(2 * var(--odx-u)); padding-top: calc(12 * var(--odx-u)); border-top: calc(1 * var(--odx-u)) solid rgb(0 0 0 / 0.06); font-size: var(--odx-fs-label); color: var(--odx-ink-2); }
.odx-dossier .odx-s-settings__source .odx-icon { width: calc(18 * var(--odx-u)); height: calc(18 * var(--odx-u)); flex: none; }
/* local (offline) changes of the isolated dossier and the reset */
.odx-dossier .odx-s-local { margin: calc(10 * var(--odx-u)) 0 0; padding: calc(10 * var(--odx-u)) calc(8 * var(--odx-u)) calc(4 * var(--odx-u)); border-radius: calc(14 * var(--odx-u)); background: #fff7e6; box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) #f1dca9; }
.odx-dossier .odx-s-local__status { display: flex; gap: calc(10 * var(--odx-u)); align-items: flex-start; margin: 0 calc(4 * var(--odx-u)) calc(6 * var(--odx-u)); }
.odx-dossier .odx-s-local__status > span:last-child { display: flex; flex-direction: column; gap: calc(2 * var(--odx-u)); }
.odx-dossier .odx-s-local__status strong { font-size: var(--odx-fs-label); color: #5f3b06; }
.odx-dossier .odx-s-local__status small { font-size: var(--odx-fs-micro); color: #7a5418; line-height: 1.35; }
.odx-dossier .odx-s-local__dot { flex: none; width: calc(9 * var(--odx-u)); height: calc(9 * var(--odx-u)); margin-top: calc(6 * var(--odx-u)); border-radius: 50%; background: #e0a526; }
.odx-dossier .odx-s-local__reset { color: #8f1f17; }
.odx-dossier .odx-s-local__reset .odx-icon { color: #8f1f17; }
.odx-dossier .odx-s-local__confirm { margin: calc(4 * var(--odx-u)) calc(4 * var(--odx-u)) calc(6 * var(--odx-u)); }
.odx-dossier .odx-s-local__confirm p { margin: 0 0 calc(10 * var(--odx-u)); font-size: var(--odx-fs-label); line-height: 1.4; color: var(--odx-ink); }
.odx-dossier .odx-s-local__buttons { display: flex; justify-content: flex-end; gap: calc(8 * var(--odx-u)); }
.odx-dossier .odx-s-local__btn { height: calc(38 * var(--odx-u)); padding: 0 calc(16 * var(--odx-u)); border-radius: calc(12 * var(--odx-u)); background: #fff; box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(0 0 0 / 0.08); font-size: var(--odx-fs-label); color: var(--odx-ink); }
.odx-dossier .odx-s-local__btn.is-danger { background: #b3261e; color: #fff; box-shadow: none; }
.odx-dossier .odx-s-local__btn:focus-visible { outline: calc(2 * var(--odx-u)) solid #0c8f60; outline-offset: calc(2 * var(--odx-u)); }
.odx-dossier .odx-s-local__btn:disabled { opacity: 0.6; cursor: progress; }
.odx-dossier .odx-s-local__error { margin: calc(6 * var(--odx-u)) calc(4 * var(--odx-u)) 0; font-size: var(--odx-fs-micro); color: #8f1f17; }
/* small amber dot on the settings button while the dossier holds local changes */
.odx-dossier .odx-s-badge-dot.is-local { background: #e0a526; }
/* ---------------------------------------------------------------- patient band (glass, 202 high) */
.odx-dossier .odx-s-band {
  position: relative; z-index: 30;
  flex: none;
  height: var(--odx-header-h);
  padding: calc(29.8 * var(--odx-u)) calc(19.7 * var(--odx-u)) 0 calc(19 * var(--odx-u));
}
.odx-dossier .odx-s-band__top { display: flex; align-items: flex-start; height: calc(49 * var(--odx-u)); min-width: 0; }
.odx-dossier .odx-s-band__spacer { flex: 1; }
.odx-dossier .odx-s-crumb {
  display: flex; align-items: flex-start; flex: 0 1 auto; min-width: 0;
  max-width: calc(620 * var(--odx-u));
  margin: calc(11.76 * var(--odx-u)) 0 0 calc(12.6 * var(--odx-u));
  white-space: nowrap;
}
.odx-dossier .odx-s-crumb > span { flex: none; }
.odx-dossier .odx-s-crumb__sep { white-space: pre; }
.odx-dossier .odx-s-crumb .odx-s-crumb__name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* infoImportant: one line = the slim amber pill; long texts wrap to two lines at most, the rest behind "Lire" */
.odx-dossier .odx-s-info {
  position: relative;
  display: inline-flex; align-items: center; gap: calc(9 * var(--odx-u));
  flex: 0 1 auto; min-width: 0; max-width: calc(780 * var(--odx-u));
  min-height: calc(34 * var(--odx-u));
  margin: calc(7.5 * var(--odx-u)) calc(24 * var(--odx-u)) 0 calc(26 * var(--odx-u));
  padding: calc(4 * var(--odx-u)) calc(16 * var(--odx-u)) calc(4 * var(--odx-u)) calc(11 * var(--odx-u));
  border-radius: calc(17 * var(--odx-u));
  background: #fff6e1;
  box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) #f0d9a6;
  color: #6b4610;
  font-size: var(--odx-fs-label); letter-spacing: -0.03em;
}
.odx-dossier .odx-s-info.is-clipped { margin-top: calc(1 * var(--odx-u)); padding-right: calc(6 * var(--odx-u)); }
.odx-dossier .odx-s-info > .odx-icon { flex: none; width: calc(18 * var(--odx-u)); height: calc(18 * var(--odx-u)); color: #b06d00; }
.odx-dossier .odx-s-info__body {
  min-width: 0; margin: 0;
  line-height: 1.24;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  overflow-wrap: anywhere;
}
.odx-dossier .odx-s-info__label { font-weight: 400; color: #8a5a0f; margin-right: calc(4 * var(--odx-u)); }
.odx-dossier .odx-s-info__read { flex: none; align-self: center; }
.odx-dossier .odx-s-info__more {
  height: calc(28 * var(--odx-u)); padding: 0 calc(12 * var(--odx-u)); border-radius: 999px;
  background: rgb(255 255 255 / 0.85); box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) #ecd29b;
  color: #6b4610; font-size: var(--odx-fs-micro); font-weight: 400; letter-spacing: -0.01em; white-space: nowrap;
  transition: background 160ms ease, transform 160ms ease;
}
.odx-dossier .odx-s-info__more:hover { background: #fff; }
.odx-dossier .odx-s-info__more:focus-visible { outline: calc(2 * var(--odx-u)) solid #0c8f60; outline-offset: calc(2 * var(--odx-u)); }
.odx-dossier .odx-s-popover--info { width: calc(460 * var(--odx-u)); }
.odx-dossier .odx-s-info__full { margin: 0 calc(6 * var(--odx-u)) calc(4 * var(--odx-u)); font-size: var(--odx-fs-crumb); letter-spacing: -0.02em; line-height: 1.45; color: var(--odx-ink); white-space: pre-line; overflow-wrap: anywhere; max-height: calc(360 * var(--odx-u)); overflow-y: auto; }
.odx-dossier .odx-s-doctor { flex: none; margin-left: auto; margin-right: calc(0.94 * var(--odx-u)); }
.odx-dossier .odx-s-doctor__text { margin: calc(-1.75 * var(--odx-u)) 0 0 calc(10.09 * var(--odx-u)); }
.odx-dossier .odx-s-doctor .odx-doctor__name { max-width: calc(320 * var(--odx-u)); overflow: hidden; text-overflow: ellipsis; }
.odx-dossier .odx-s-doctor .odx-doctor__role { margin-top: calc(4.3 * var(--odx-u)); margin-left: calc(0.49 * var(--odx-u)); }
.odx-dossier .odx-s-initials {
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 26%, #ffffff 0%, #f1f6f1 42%, #d9eedf 100%);
  box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(255 255 255 / 0.9), 0 calc(3 * var(--odx-u)) calc(10 * var(--odx-u)) rgb(25 60 35 / 0.09);
  color: #24342b; font-weight: 400; letter-spacing: 0.02em;
  font-size: calc(17 * var(--odx-u)); line-height: 1;
}
.odx-dossier .odx-s-avatar { font-size: calc(23.5 * var(--odx-u)); letter-spacing: 0.03em; }
.odx-dossier .odx-s-avatar.is-archived { filter: grayscale(1); opacity: 0.8; }
.odx-dossier .odx-s-band__patient { display: flex; align-items: flex-start; margin-top: calc(28.55 * var(--odx-u)); }
.odx-dossier .odx-s-band__patient > .odx-avatar { margin-left: calc(0.05 * var(--odx-u)); }
.odx-dossier .odx-s-lead { display: flex; align-items: flex-start; flex: none; min-width: calc(478.4 * var(--odx-u)); }
.odx-dossier .odx-s-identity {
  flex: 0 1 auto;
  min-width: calc(167.79 * var(--odx-u)); max-width: calc(470 * var(--odx-u));
  margin: calc(-1.16 * var(--odx-u)) 0 0 calc(14.06 * var(--odx-u));
  padding-right: calc(18 * var(--odx-u));
}
.odx-dossier .odx-s-identity__id { color: var(--odx-ink-3); white-space: nowrap; }
.odx-dossier .odx-s-identity__line { display: flex; align-items: center; gap: calc(10 * var(--odx-u)); height: calc(25.96 * var(--odx-u)); margin-top: calc(1.83 * var(--odx-u)); min-width: 0; }
.odx-dossier .odx-s-identity__name {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--odx-fs-name); letter-spacing: var(--odx-ls-name); font-weight: var(--odx-w-name);
  margin-left: calc(0.69 * var(--odx-u));
}
.odx-dossier .odx-s-identity__name b { font-weight: var(--odx-w-strong); font-size: var(--odx-fs-name-strong); letter-spacing: var(--odx-ls-name-strong); }
.odx-dossier .odx-s-identity__alert { flex: none; display: inline-flex; }
.odx-dossier .odx-s-identity__sub { display: flex; align-items: center; gap: calc(8 * var(--odx-u)); margin: calc(2.48 * var(--odx-u)) 0 0 calc(0.63 * var(--odx-u)); white-space: nowrap; }
.odx-dossier .odx-s-tag { display: inline-flex; align-items: center; height: calc(20 * var(--odx-u)); padding: 0 calc(8 * var(--odx-u)); border-radius: 999px; background: #eceeec; color: #4a504b; font-size: var(--odx-fs-micro); letter-spacing: 0; }
/* the platform's medical-alert chip, in the reference's chip language (amber variant) */
.odx-dossier .odx-s-identity__alert .patient-medical-alert-trigger {
  display: inline-flex; align-items: center; gap: calc(6 * var(--odx-u));
  height: calc(26 * var(--odx-u)); min-height: 0; margin: 0;
  padding: 0 calc(11 * var(--odx-u)) 0 calc(4 * var(--odx-u));
  border: 0; border-radius: 999px;
  background: #fff3d9; box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) #eed39a;
  color: #6f4510; font-family: var(--odx-font); font-weight: 400;
  font-size: var(--odx-fs-micro); letter-spacing: -0.02em; line-height: 1; cursor: pointer;
  transition: background 160ms ease;
}
.odx-dossier .odx-s-identity__alert .patient-medical-alert-trigger:hover { background: #ffecc2; }
.odx-dossier .odx-s-identity__alert .patient-medical-alert-symbol {
  display: grid; place-items: center; flex: none;
  width: calc(18 * var(--odx-u)); height: calc(18 * var(--odx-u)); margin: 0; border: 0; border-radius: 50%;
  background: #f2bf55; color: #3d2704; font-size: calc(12 * var(--odx-u)); font-weight: 600; line-height: 1;
}
.odx-dossier .odx-s-identity__alert .patient-medical-alert-trigger-label { font-size: var(--odx-fs-micro); }
/* the four round actions; a long name pushes them right but always keeps a clear gap before the label/value pairs
   (reference: 97 units, within the lead's 478.4 minimum; never less than 60 units) */
.odx-dossier .odx-s-actions { display: flex; gap: calc(12.4 * var(--odx-u)); margin: calc(14.15 * var(--odx-u)) calc(60 * var(--odx-u)) 0 calc(-1.1 * var(--odx-u)); flex: none; }
.odx-dossier .odx-s-meta { display: flex; gap: calc(28.5 * var(--odx-u)); margin: calc(-1.75 * var(--odx-u)) 0 0; min-width: 0; }
.odx-dossier .odx-s-meta__pair { min-width: 0; margin: 0; }
.odx-dossier .odx-s-meta__pair dt { margin: 0; }
.odx-dossier .odx-s-meta__pair dd { margin: calc(6.54 * var(--odx-u)) 0 0; max-width: calc(250 * var(--odx-u)); overflow: hidden; text-overflow: ellipsis; }
.odx-dossier .odx-s-meta__pair dd.is-muted { color: rgb(13 13 13 / 0.62); }
/* the practitioner (first pair) uses the room left before the CTA before it is cut */
.odx-dossier .odx-s-meta__pair:first-child dd { max-width: calc(350 * var(--odx-u)); }
.odx-dossier .odx-s-cta { flex: none; margin: calc(0.45 * var(--odx-u)) 0 0 auto; width: calc(277.6 * var(--odx-u)); padding: 0; transition: transform 160ms ease, box-shadow 220ms ease, filter 160ms ease; }
/* every mint button of the chrome lifts its glow on hover (CTA, Suivi du patient, Ajouter un acte, Réessayer) */
.odx-dossier .odx-btn-mint { transition: transform 160ms ease, box-shadow 220ms ease, filter 160ms ease; }
.odx-dossier .odx-btn-mint:hover:not(:disabled) { box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(255 255 255 / 0.4), 0 calc(8 * var(--odx-u)) calc(22 * var(--odx-u)) rgb(90 200 120 / 0.28); }
.odx-dossier .odx-btn-mint:focus-visible { outline: calc(2 * var(--odx-u)) solid #0c8f60; outline-offset: calc(3 * var(--odx-u)); }
.odx-dossier .odx-s-cta:disabled { opacity: 0.5; cursor: not-allowed; }
.odx-dossier .odx-s-banner:empty { display: none; }
.odx-dossier .odx-s-banner { margin-top: calc(16 * var(--odx-u)); }
/* ---------------------------------------------------------------- sections */
.odx-dossier .odx-s-main { display: flex; flex-direction: column; margin-top: var(--odx-gap); min-width: 0; }
.odx-dossier .odx-s-section { min-width: 0; }
/* "backwards", not "both": a retained end transform (even an identity matrix) makes the section the containing block of
   fixed dialogs, so the add-act form landed at the bottom of the section and could not be scrolled. */
.odx-dossier .odx-s-fade { animation: odx-s-fade 300ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
@keyframes odx-s-fade { from { opacity: 0; transform: translateY(calc(8 * var(--odx-u))); } to { opacity: 1; transform: none; } }
.odx-dossier .odx-s-sectioncard { min-height: calc(560 * var(--odx-u)); padding: calc(26 * var(--odx-u)) calc(30 * var(--odx-u)) calc(30 * var(--odx-u)); }
.odx-dossier .odx-s-sectioncard > .page-card { margin: 0; }
/* empty state of a dossier-only section (Simulation ortho without a plan) */
.odx-dossier .odx-s-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(8 * var(--odx-u)); min-height: calc(480 * var(--odx-u)); text-align: center; }
.odx-dossier .odx-s-empty__icon { display: grid; place-items: center; width: calc(64 * var(--odx-u)); height: calc(64 * var(--odx-u)); margin-bottom: calc(8 * var(--odx-u)); border-radius: 50%; background: var(--odx-thumb-fill, #eef1ee); color: rgb(13 13 13 / 0.5); }
.odx-dossier .odx-s-empty__icon .odx-icon { width: calc(28 * var(--odx-u)); height: calc(28 * var(--odx-u)); }
.odx-dossier .odx-s-empty__title { margin: 0; font-size: var(--odx-fs-value); letter-spacing: var(--odx-ls-value); color: var(--odx-ink); }
.odx-dossier .odx-s-empty__text { margin: 0; max-width: calc(460 * var(--odx-u)); font-size: var(--odx-fs-label); line-height: 1.45; color: var(--odx-ink-2); }
/* search result reached in a platform section: the row flashes mint once */
.odx-dossier .odx-s-flash > td, .odx-dossier li.odx-s-flash, .odx-dossier [role="row"].odx-s-flash { animation: odx-s-flash 2.4s ease; }
@keyframes odx-s-flash { 0%, 35% { background-color: rgb(198 252 196 / 0.8); } 100% { background-color: transparent; } }
/* Consultation: the platform's focus workspace drawn INSIDE the dossier window. Its own full-screen positioning is
   neutralised (the top bar, the nav and the patient band stay visible and usable); its layout, sized in viewport units,
   gets one viewport of height in the card and scrolls inside it; the page keeps its own scroll. */
.odx-dossier .odx-s-sectioncard--consultation { padding: 0; overflow: hidden; }
.odx-dossier .odx-s-sectioncard--consultation .consult-root.is-focus {
  position: relative; inset: auto; z-index: auto;
  height: max(640px, calc(100vh - 40px)); min-height: 0;
  border-radius: inherit; background: transparent;
}
.odx-dossier .odx-s-sectioncard--consultation .consult-root.is-focus.is-plain { height: auto; min-height: calc(560 * var(--odx-u)); }
/* its work area hands the wheel back to the page at its edges (the page, not the card, is the scroller) */
.odx-dossier .odx-s-sectioncard--consultation .consult-root.is-focus .cf-main { overscroll-behavior: auto; }
html.odx-dossier.consult-focus-open:has(.odx-dossier-route),
html.odx-dossier.consult-focus-open:has(.odx-dossier-route) body { overflow: visible; }
/* sub-section pills (same look as the stage pills, content-sized) */
.odx-dossier .odx-s-pills { position: relative; display: flex; align-items: center; isolation: isolate; }
.odx-dossier .odx-s-pills__indicator {
  position: absolute; left: 0; top: 0; z-index: -1; height: 100%;
  border-radius: var(--odx-r-tab);
  background: var(--odx-mint-gradient);
  box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(255 255 255 / 0.28);
  transition: transform 380ms cubic-bezier(0.32, 0.72, 0.2, 1), width 380ms cubic-bezier(0.32, 0.72, 0.2, 1);
}
.odx-dossier .odx-s-pill {
  display: inline-flex; align-items: flex-start; justify-content: center;
  height: calc(47.1 * var(--odx-u));
  padding-top: calc(11.26 * var(--odx-u));
  border-radius: var(--odx-r-tab);
  font-size: var(--odx-fs-tab-idle); letter-spacing: var(--odx-ls-tab-idle);
  color: var(--odx-ink-tab); white-space: nowrap;
  transition: color 200ms ease;
}
.odx-dossier .odx-s-pill.is-active { padding-top: calc(10.9 * var(--odx-u)); font-size: var(--odx-fs-tab); letter-spacing: var(--odx-ls-tab); font-weight: var(--odx-w-emph); color: var(--odx-ink); }
.odx-dossier .odx-s-pill { transition: color 200ms ease, background 200ms ease, transform 160ms ease; }
.odx-dossier .odx-s-pill:not(.is-active):hover { color: #000; background: rgb(197 252 196 / 0.3); }
.odx-dossier .odx-s-pill:active { transform: scale(0.98); }
.odx-dossier .odx-s-pills.is-disabled { opacity: 0.5; }
.odx-dossier .odx-s-pills.is-disabled .odx-s-pill { cursor: default; pointer-events: none; }
.odx-dossier .odx-s-subpills { align-self: flex-start; margin: 0 0 calc(22 * var(--odx-u)) calc(4 * var(--odx-u)); padding: calc(5 * var(--odx-u)); border-radius: calc(17 * var(--odx-u)); background: rgb(255 255 255 / 0.55); }
.odx-dossier .odx-s-subpills .odx-s-pill { padding-left: calc(30 * var(--odx-u)); padding-right: calc(30 * var(--odx-u)); }
/* Antécédents section: questionnaire and intraoral camera side by side on wide screens */
.odx-dossier .odx-antecedents { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: calc(28 * var(--odx-u)); align-items: start; }
.odx-dossier .odx-antecedents__camera { padding: calc(20 * var(--odx-u)); border-radius: calc(22 * var(--odx-u)); background: rgb(255 255 255 / 0.7); }
.odx-dossier .odx-antecedents__note { margin: 0 0 calc(14 * var(--odx-u)); font-size: var(--odx-fs-label); color: var(--odx-ink-2); line-height: 1.45; }
.odx-dossier .odx-antecedents__title { margin: 0 0 calc(14 * var(--odx-u)); font-size: var(--odx-fs-title); letter-spacing: var(--odx-ls-title); font-weight: 300; }
/* a section that failed to render (error boundary) */
.odx-dossier .odx-s-failure { display: flex; flex-direction: column; align-items: flex-start; gap: calc(12 * var(--odx-u)); padding: calc(20 * var(--odx-u)) calc(6 * var(--odx-u)); }
.odx-dossier .odx-s-failure__title { margin: 0; font-size: var(--odx-fs-title); letter-spacing: var(--odx-ls-title); font-weight: 300; }
.odx-dossier .odx-s-failure__text { margin: 0 0 calc(6 * var(--odx-u)); font-size: var(--odx-fs-crumb); letter-spacing: -0.02em; color: var(--odx-ink-2); max-width: calc(620 * var(--odx-u)); line-height: 1.45; }
/* ---------------------------------------------------------------- loading window, toast */
.odx-dossier .odx-s-window--loading { min-height: var(--odx-window-h); }
.odx-dossier .odx-s-loading { display: flex; flex-direction: column; align-items: flex-start; gap: calc(16 * var(--odx-u)); padding: calc(40 * var(--odx-u)); }
.odx-dossier .odx-s-loading__text { display: flex; align-items: center; gap: calc(12 * var(--odx-u)); font-size: var(--odx-fs-value); letter-spacing: var(--odx-ls-value); }
.odx-dossier .odx-s-spinner { width: calc(22 * var(--odx-u)); height: calc(22 * var(--odx-u)); border-radius: 50%; border: calc(2.5 * var(--odx-u)) solid rgb(12 143 96 / 0.2); border-top-color: #0c8f60; animation: odx-s-spin 900ms linear infinite; }
@keyframes odx-s-spin { to { transform: rotate(360deg); } }
.odx-dossier .odx-s-toast-region { position: fixed; z-index: 2000; left: 50%; bottom: 28px; transform: translateX(-50%); pointer-events: none; }
.odx-dossier .odx-s-toast {
  padding: 12px 20px; border-radius: 14px;
  background: rgb(33 31 31 / 0.94); color: #fefbfc;
  font-family: var(--odx-font); font-size: 15px; font-weight: 300; letter-spacing: -0.01em;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.18);
  animation: odx-s-pop 200ms ease;
}
/* ---------------------------------------------------------------- reduced motion (system or dossier preference) */
@media (prefers-reduced-motion: reduce) {
  .odx-dossier .odx-s-nav__pill, .odx-dossier .odx-s-nav__item, .odx-dossier .odx-s-pills__indicator, .odx-dossier .odx-s-press,
  .odx-dossier .odx-s-toggle__track, .odx-dossier .odx-s-toggle__track span, .odx-dossier .odx-s-cta,
  .odx-dossier .odx-s-nav__item::before, .odx-dossier .odx-s-nav__icon, .odx-dossier .odx-btn-mint, .odx-dossier .odx-s-pill, .odx-dossier .odx-s-info__more { transition: none !important; }  .odx-dossier .odx-s-fade, .odx-dossier .odx-s-popover, .odx-dossier .odx-s-toast { animation: none !important; }
}
.odx-dossier .odx-s-reduce *, .odx-dossier .odx-s-reduce *::before, .odx-dossier .odx-s-reduce *::after { transition: none !important; animation: none !important; }
/* Odontiax dossier — Paiements (Paiements · Chèques · Achats) and Documents (Factures · Devis · Ordonnances ·
   Feuilles de soins · Documents · Mutuelle) sections in the reference language.

   The shell puts every section body in ONE solid glass card (.odx-s-sectioncard--<tab>); the platform's own
   components render inside it unchanged. This sheet only restyles their existing class names:
   - the legacy bordered "page card" inside the shell card is flattened (one card, never a card in a card);
   - section heads use the reference card-title scale (27.2 u Light) with the action at the top right;
   - nested panels (cheque lots, mutuelle panels, attachments, drafts) become soft porcelain tiles;
   - section-specific dialogs (cheques, achats, mutuelle review, scans) get the reference sheet geometry.
   Shared primitives (buttons, fields, tables, chips, dialogs) come from ../restyle; tune them here through the
   --odx-ui-* properties. Selector prefix :is(.odx-dossier, #odx-skin) = the restyle's own weight (see
   restyle/base.css), and this sheet loads after it, so equal-weight rules win without !important. */
.odx-dossier {
  /* tiles inside the solid section card: porcelain with a hint of mint (reference thumbnail disc #eef2ef) */
  --fd-tile: rgb(238 243 239 / .62);
  --fd-tile-strong: rgb(232 239 234 / .85);
  --fd-tile-line: rgb(13 13 13 / .045);
  --fd-tile-r: max(16px, calc(22 * var(--odx-u)));
  --fd-tile-pad: max(16px, calc(22 * var(--odx-u)));
  --fd-mint-tile: linear-gradient(135deg, rgb(224 250 195 / .55) 0%, rgb(197 252 196 / .42) 55%, rgb(170 255 198 / .32) 100%);
  --fd-head-gap: max(18px, calc(24 * var(--odx-u)));
  --fd-block-gap: max(20px, calc(28 * var(--odx-u)));
  --fd-title-fs: max(20px, var(--odx-fs-title-lg));
  --fd-subtitle-fs: max(16px, var(--odx-fs-subtitle));
  --fd-note-fs: max(12.5px, var(--odx-fs-note));
  --fd-label-fs: max(12px, var(--odx-fs-label));
  --fd-micro-fs: max(11px, var(--odx-fs-micro));
  --fd-value-fs: max(15px, var(--odx-fs-value));
}
/* ======================================================================================= 1. section frame */
/* the platform's bordered "page card" sits inside the shell card: flatten it */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.simple-section, .dentalome-patient-list-card, .patient-documents-card, .mutuelle-patient-card, .retail-patient-purchases, .cheques-workspace) {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
  color: var(--odx-ui-ink);
  font-size: var(--odx-ui-fs-body);
}
/* ---- section head: title + subline on the left, primary action on the right (same row) */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.patient-payments-card, .patient-documents-card:not(.mutuelle-patient-card)) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: var(--odx-ui-gap);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.patient-payments-card, .patient-documents-card:not(.mutuelle-patient-card)) > * { grid-column: 1 / -1; min-width: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.patient-payments-card, .patient-documents-card) > :is(.dentalome-list-title, .patient-documents-title-row) { grid-column: 1; grid-row: 1; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-documents-card > .patient-documents-action-row {
  grid-column: 2; grid-row: 1;
  display: flex; align-items: center; justify-content: flex-end;
  margin: 0; padding: 0; border: 0; background: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.dentalome-list-title, .patient-documents-title-row, .mutuelle-title-row, .retail-section-heading, .cheques-page-heading) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--odx-ui-gap);
  margin: 0 0 var(--fd-head-gap);
  padding: 0;
  border: 0;
  background: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .dentalome-list-title { display: block; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-documents-title-row > .dentalome-list-title { display: block; margin: 0; flex: 1 1 auto; min-width: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.dentalome-list-title, .patient-documents-title-row, .mutuelle-title-row, .retail-section-heading, .cheques-page-heading) :is(h1, h2) {
  display: flex;
  align-items: center;
  gap: max(8px, calc(12 * var(--odx-u)));
  margin: 0;
  padding: 0;
  font-size: var(--fd-title-fs);
  font-weight: var(--odx-w-title-lg);
  letter-spacing: var(--odx-ls-title-lg);
  line-height: 1.2;
  color: var(--odx-ink-strong);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.dentalome-list-title, .patient-documents-title-row, .mutuelle-title-row, .retail-section-heading, .cheques-page-heading) p {
  margin: max(4px, calc(7 * var(--odx-u))) 0 0;
  padding: 0;
  font-size: var(--fd-note-fs);
  font-weight: var(--odx-w-note);
  letter-spacing: -0.03em;
  line-height: 1.4;
  color: var(--odx-ui-ink-2);
}
/* documents sub-tabs without the list title (Pièces jointes): the bare h1 takes the same title style */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-documents-card > h1 {
  margin: 0 0 var(--fd-head-gap);
  font-size: var(--fd-title-fs);
  font-weight: var(--odx-w-title-lg);
  letter-spacing: var(--odx-ls-title-lg);
  line-height: 1.2;
  color: var(--odx-ink-strong);
}
/* ---- the head's primary action: the reference's mint button, aligned on the title */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.patient-document-action, .document-generate-button, .retail-section-heading .retail-primary, .cheques-heading-actions .cheques-primary) {
  flex: none;
  white-space: nowrap;
  gap: max(6px, calc(9 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.patient-document-action, .document-generate-button) svg { flex: none; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-documents-action-row .patient-document-action { width: auto; min-width: 0; max-width: none; }
/* ---- tables: a breath under the head, airy rows, actions at the row end */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .dentalome-patient-table-scroll { margin: 0; overflow-x: auto; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.patient-payments-table, .patient-document-table, .pan-report-table) { width: 100%; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.patient-payments-table, .patient-document-table, .pan-report-table) > thead > tr > th:last-child,
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.patient-payments-table, .patient-document-table, .pan-report-table) > tbody > tr > td:last-child:not([colspan]) { text-align: right; white-space: nowrap; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.patient-payments-table, .patient-document-table, .pan-report-table) > tbody > tr > td:last-child:not([colspan]) > :is(.row-actions, .dentalome-row-actions, .pan-row-actions) { justify-content: flex-end; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.patient-payments-table, .patient-document-table, .mutuelle-documents-table) .money-green,
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.patient-payments-table, .patient-document-table) .money-red { font-weight: var(--odx-ui-w-regular); white-space: nowrap; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-document-care-sheet-total { white-space: nowrap; }
/* legacy fixes % column widths on document tables: let the table size columns by content instead */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-documents-card .patient-document-table > :is(thead, tbody) > tr > :is(th, td) { width: auto; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-documents-card .patient-document-table { table-layout: auto; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-document-table > tbody > tr > td:last-child:not([colspan]) .patient-document-actions { flex-wrap: nowrap; }
/* row actions with a visible label (Voir / Télécharger / Imprimer…): compact soft pills */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-document-actions { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: max(6px, calc(8 * var(--odx-u))); width: auto; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-document-actions .document-labelled-action,
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-document-actions .plain-icon.small:not(.document-labelled-action) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: max(6px, calc(7 * var(--odx-u)));
  height: var(--odx-ui-icon-d-sm);
  min-height: 0;
  padding: 0 max(12px, calc(15 * var(--odx-u))) 0 max(10px, calc(12 * var(--odx-u)));
  border: 0;
  border-radius: 999px;
  background: var(--odx-ui-soft);
  color: var(--odx-ui-ink);
  box-shadow: none;
  font-size: var(--fd-label-fs);
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-document-actions .plain-icon.small:not(.document-labelled-action) { width: var(--odx-ui-icon-d-sm); padding: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-document-actions .document-labelled-action svg { width: 15px; height: 15px; flex: none; stroke-width: 1.7; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-document-actions .document-labelled-action span { display: inline; font: inherit; color: inherit; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-document-actions :is(.document-labelled-action, .plain-icon.small):hover:not(:disabled) { background: var(--odx-ui-mint); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-document-actions .document-labelled-action.danger { background: var(--odx-ui-danger-soft); color: var(--odx-ui-danger); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-document-actions .document-labelled-action.danger:hover:not(:disabled) { background: var(--odx-ui-danger-bg); color: var(--odx-ui-danger-ink); }
/* inline row feedback (print queued / print or download failed): it goes on its own line UNDER the pills, inside
   the Actions cell. The pill row stays on one line (min-width:max-content) and the feedback is size-contained on
   the inline axis, so its text never widens the cell — it wraps to the pill row's width instead of pushing the
   right-aligned pills out of the cell over Praticien / Montant. */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-document-table > tbody > tr > td:last-child:not([colspan]) .patient-document-actions:has(> :is(.form-error, .document-action-status)) { flex-wrap: wrap; min-width: max-content; height: auto; row-gap: max(4px, calc(6 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-document-actions > :is(.form-error, .document-action-status) {
  order: 1;
  flex: 1 0 100%;
  contain: inline-size;
  min-width: 0;
  max-width: none;
  margin: 2px 0 0;
  padding: max(5px, calc(6 * var(--odx-u))) max(10px, calc(12 * var(--odx-u)));
  border-radius: max(10px, calc(12 * var(--odx-u)));
  justify-content: flex-end;
  text-align: right;
  font-size: var(--fd-label-fs);
  line-height: 1.4;
  white-space: normal;
}
/* the row's error is a calm note under the pills, not a red panel: light tint, no ring, small mark */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-document-actions > .form-error { background: rgb(180 35 24 / .045); box-shadow: none; align-items: center; gap: 8px; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-document-actions > .form-error::before { width: 15px; height: 15px; margin-top: 0; font-size: 10px; }
/* error + loading lines between the head and the table */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.patient-payments-card, .patient-documents-card) > .form-error { margin: 0 0 var(--odx-ui-gap); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.patient-payments-card, .patient-documents-card) > .form-error button { margin-left: max(8px, calc(10 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-documents-card > p[role="status"] { margin: 0 0 var(--odx-ui-gap); }
/* ======================================================================================= 2. documents: sub-tabs, drafts, attachments */
/* toolbar: sub-tab pills on the left, "Générer un document" on the right */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-documents-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--odx-ui-gap);
  flex-wrap: wrap;
  margin: 0 0 var(--fd-head-gap);
  padding: 0;
  border: 0;
  background: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-documents-toolbar .document-subtabs { flex: 0 1 auto; min-width: 0; margin: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-documents-toolbar .document-generate-menu { position: relative; flex: none; margin-left: auto; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-documents-toolbar .document-generate-dropdown {
  position: absolute; right: 0; top: calc(100% + max(6px, calc(8 * var(--odx-u)))); z-index: 30;
  min-width: max(240px, calc(300 * var(--odx-u)));
}
/* the sub-tabs always sit right under the section title (the drafts panel and the table follow them) */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-documents-card > :is(.patient-documents-title-row, h1) { order: -2; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-documents-card > .patient-documents-toolbar { order: -1; }
/* the Pièces jointes variant has no list-title block: its h1 sits above the toolbar */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-documents-card > h1 + .patient-documents-toolbar { margin-top: calc(-6 * var(--odx-u)); }
/* "Vos documents en préparation" (drafts): a mint-tinted tile with one soft row per draft */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .document-draft-list {
  display: flex;
  flex-direction: column;
  gap: max(6px, calc(8 * var(--odx-u)));
  margin: 0 0 var(--fd-head-gap);
  padding: var(--fd-tile-pad);
  border: 0;
  border-radius: var(--fd-tile-r);
  background: var(--fd-mint-tile);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .document-draft-list > h3 {
  margin: 0 0 max(4px, calc(6 * var(--odx-u)));
  font-size: var(--fd-subtitle-fs);
  font-weight: var(--odx-w-subtitle);
  letter-spacing: var(--odx-ls-subtitle);
  color: var(--odx-ink-strong);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .document-draft-list > button {
  display: flex; align-items: center; justify-content: space-between; gap: var(--odx-ui-gap);
  width: 100%; min-height: var(--odx-ui-h); padding: 0 max(14px, calc(18 * var(--odx-u)));
  border: 0; border-radius: var(--odx-ui-r-control);
  background: rgb(255 255 255 / .78); box-shadow: 0 1px 2px rgb(13 13 13 / .04);
  color: var(--odx-ui-ink); font-size: var(--odx-ui-fs-body); font-weight: var(--odx-ui-w-regular); letter-spacing: var(--odx-ui-ls-body);
  text-align: left; cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .document-draft-list > button:hover:not(:disabled) { background: #fff; box-shadow: var(--odx-ui-raise); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .document-draft-list > button > span { display: flex; align-items: center; gap: max(6px, calc(9 * var(--odx-u))); min-width: 0; flex-wrap: wrap; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .document-draft-list > button small { color: var(--odx-ui-ink-2); font-size: var(--fd-label-fs); font-weight: var(--odx-ui-w-light); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .document-draft-list > button svg { flex: none; color: var(--odx-ui-emerald); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .document-draft-list > p[role="alert"] { margin: 0; color: var(--odx-ui-warn-ink); font-size: var(--fd-label-fs); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .document-draft-list > p[role="alert"] button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--odx-ui-emerald-ink); cursor: pointer; padding: 0; font: inherit; }
/* Pièces jointes panel: a porcelain tile, its own small head, a card grid of attachments */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments {
  margin: 0;
  padding: var(--fd-tile-pad);
  border: 0;
  border-radius: var(--fd-tile-r);
  background: var(--fd-tile);
  box-shadow: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-title-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--odx-ui-gap);
  margin: 0 0 max(14px, calc(20 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .scan-eyebrow {
  display: block; margin: 0 0 max(3px, calc(5 * var(--odx-u)));
  font-size: var(--fd-label-fs); font-weight: var(--odx-ui-w-light); letter-spacing: -0.02em; text-transform: lowercase;
  color: var(--odx-ui-ink-2);
}
/* the platform writes « DOSSIER PATIENT »: sentence case like every other label of the dossier */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .scan-eyebrow::first-letter { text-transform: uppercase; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-title-row h2 {
  margin: 0; font-size: var(--fd-subtitle-fs); font-weight: var(--odx-w-subtitle); letter-spacing: var(--odx-ls-subtitle); line-height: 1.25; color: var(--odx-ink-strong);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-title-row p {
  margin: max(3px, calc(5 * var(--odx-u))) 0 0; font-size: var(--fd-note-fs); font-weight: var(--odx-w-note); letter-spacing: -0.03em; color: var(--odx-ui-ink-2);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .scan-entry-buttons { display: flex; gap: max(8px, calc(10 * var(--odx-u))); flex: none; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-empty {
  margin: 0; min-height: max(110px, calc(150 * var(--odx-u)));
  border: 0; border-radius: calc(var(--fd-tile-r) - 4px); background: rgb(255 255 255 / .72);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .scan-muted,
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .scan-error { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fd-label-fs); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .scan-error { color: var(--odx-ui-danger); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .scan-error button { margin-left: auto; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(190px, calc(250 * var(--odx-u))), 1fr));
  gap: max(12px, calc(16 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 0; border-radius: max(14px, calc(18 * var(--odx-u)));
  background: rgb(255 255 255 / .92);
  box-shadow: 0 1px 2px rgb(13 13 13 / .04), 0 calc(10 * var(--odx-u)) calc(24 * var(--odx-u)) calc(-14 * var(--odx-u)) rgb(24 48 30 / .22);
  transition: transform var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgb(13 13 13 / .05), 0 calc(16 * var(--odx-u)) calc(30 * var(--odx-u)) calc(-14 * var(--odx-u)) rgb(24 48 30 / .28); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 0;
  background: var(--odx-thumb-fill); overflow: hidden; cursor: zoom-in;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-thumb > span {
  position: absolute; left: max(8px, calc(10 * var(--odx-u))); top: max(8px, calc(10 * var(--odx-u)));
  padding: 2px max(8px, calc(10 * var(--odx-u))); border-radius: 999px;
  background: rgb(255 255 255 / .9); color: var(--odx-ui-ink); font-size: var(--fd-micro-fs); font-weight: var(--odx-ui-w-regular); letter-spacing: .06em;
  box-shadow: 0 1px 2px rgb(13 13 13 / .08);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-card-body { display: flex; flex-direction: column; gap: max(4px, calc(6 * var(--odx-u))); padding: max(12px, calc(16 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-kind {
  align-self: flex-start; display: inline-flex; align-items: center; height: max(22px, calc(28 * var(--odx-u))); padding: 0 max(9px, calc(12 * var(--odx-u)));
  border-radius: 999px; background: var(--odx-ui-info-bg); color: var(--odx-ui-info-ink); font-size: var(--fd-micro-fs); font-weight: var(--odx-ui-w-regular);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-kind.identity { background: var(--odx-ui-progress-bg); color: var(--odx-ui-progress-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-card-body h3 {
  margin: 0; font-size: var(--odx-ui-fs-body); font-weight: var(--odx-ui-w-regular); letter-spacing: var(--odx-ui-ls-body); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--odx-ink-strong);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-card-body p { margin: 0; font-size: var(--fd-label-fs); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-actions { display: flex; gap: max(6px, calc(8 * var(--odx-u))); margin-top: max(4px, calc(6 * var(--odx-u))); flex-wrap: wrap; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-actions > :is(button, a) {
  display: inline-flex; align-items: center; gap: 6px; height: var(--odx-ui-h-sm); padding: 0 max(12px, calc(14 * var(--odx-u)));
  border: 0; border-radius: 999px; background: var(--odx-ui-soft); color: var(--odx-ui-ink);
  font-size: var(--fd-label-fs); font-weight: var(--odx-ui-w-regular); text-decoration: none; cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-actions > :is(button, a):hover { background: var(--odx-ui-mint); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-documents-card > .document-draft-list + .patient-attachments { margin-top: 0; }
/* Synthèses: hint line + link to the consultation tab */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-documents-summary-hint { margin: 0 0 var(--odx-ui-gap); font-size: var(--fd-note-fs); color: var(--odx-ui-ink-2); }
/* Compte rendu panoramique (PanoramicReports inside the documents card) */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .pan-root.pan-reports { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .pan-reports .pan-report-table-scroll { border: 0; background: none; overflow-x: auto; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .pan-reports .pan-empty-list {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: max(6px, calc(8 * var(--odx-u))); text-align: center;
  min-height: max(140px, calc(190 * var(--odx-u))); margin: 0; padding: var(--fd-tile-pad);
  border: 0; border-radius: var(--fd-tile-r); background: var(--fd-tile); color: var(--odx-ui-ink-2);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .pan-reports .pan-empty-list :is(h2, h3, strong) { margin: 0; font-size: var(--fd-subtitle-fs); font-weight: var(--odx-ui-w-regular); letter-spacing: var(--odx-ls-subtitle); color: var(--odx-ink-strong); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .pan-reports .pan-empty-list p { margin: 0; font-size: var(--fd-note-fs); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .pan-reports :is(.pan-error, .pan-success, .pan-loading) { margin: 0 0 var(--odx-ui-gap); font-size: var(--fd-label-fs); }
/* ======================================================================================= 3. achats (retail) */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail.retail-patient-purchases { font-size: var(--odx-ui-fs-body); line-height: 1.4; color: var(--odx-ui-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-section-heading h2 svg { width: max(18px, calc(22 * var(--odx-u))); height: max(18px, calc(22 * var(--odx-u))); color: var(--odx-ui-ink-2); stroke-width: 1.5; flex: none; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-history { margin: 0; padding: 0; border: 0; background: none; }
/* filters: one search field (icon inside) + two compact dates with their label on the left */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-history-filters {
  display: flex; align-items: center; flex-wrap: nowrap; gap: max(10px, calc(14 * var(--odx-u)));
  margin: 0 0 var(--odx-ui-gap);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-history-filters > label.retail-search {
  display: flex; flex-direction: row; align-items: center; flex: 1 1 auto; gap: max(8px, calc(10 * var(--odx-u)));
  height: var(--odx-ui-h); min-width: 0; margin: 0; padding: 0 max(14px, calc(18 * var(--odx-u)));
  border: 1px solid var(--odx-ui-line-field); border-radius: 999px; background: var(--odx-ui-field);
  color: var(--odx-ui-ink-3); box-shadow: none; font-size: var(--odx-ui-fs-body);
  transition: border-color var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-history-filters > label.retail-search:hover { border-color: var(--odx-ui-line-field-hover); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-history-filters > label.retail-search:focus-within { border-color: var(--odx-ui-emerald); box-shadow: var(--odx-ui-focus); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-history-filters > label.retail-search svg { flex: none; width: 18px; height: 18px; stroke-width: 1.6; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-history-filters > label.retail-search input {
  flex: 1 1 auto; width: auto; min-width: 0; height: 100%; min-height: 0; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none; outline: none;
  color: var(--odx-ui-ink); font-size: var(--odx-ui-fs-body); font-weight: var(--odx-ui-w-light); line-height: normal;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-history-filters > label.retail-search input:focus-visible { outline: none; box-shadow: none; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-history-filters > label:not(.retail-search) {
  display: flex; flex-direction: row; align-items: center; flex: none; gap: max(8px, calc(10 * var(--odx-u)));
  width: auto; max-width: none; margin: 0;
  color: var(--odx-ui-ink-2); font-size: var(--fd-label-fs); font-weight: var(--odx-ui-w-light);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-history-filters > label:not(.retail-search) input[type="date"] { width: max(150px, calc(190 * var(--odx-u))); font-size: var(--odx-ui-fs-body); }
/* purchase rows: thumbnails · number/date/products · amount + status */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-history-list { display: flex; flex-direction: column; gap: 0; margin: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-sale-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: max(14px, calc(20 * var(--odx-u)));
  width: 100%; margin: 0; padding: var(--odx-ui-row-pad-y) var(--odx-ui-row-pad-x);
  border: 0; border-bottom: 1px solid var(--odx-ui-line); border-radius: 0;
  background: transparent; box-shadow: none; color: var(--odx-ui-ink); text-align: left; cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-sale-row:last-child { border-bottom: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-sale-row:hover { background: var(--odx-ui-row-hover); border-radius: max(10px, calc(14 * var(--odx-u))); border-bottom-color: transparent; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-sale-thumbs { display: flex; align-items: center; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-sale-thumbs > * {
  padding: 0; border: 0;
  width: max(40px, calc(52 * var(--odx-u))); height: max(40px, calc(52 * var(--odx-u))); flex: none;
  border-radius: 50%; overflow: hidden; background: var(--odx-thumb-fill);
  box-shadow: 0 0 0 3px #fff; display: grid; place-items: center;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-sale-thumbs > * + * { margin-left: calc(-12 * var(--odx-u)); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-sale-thumbs img { width: 100%; height: 100%; object-fit: cover; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-sale-thumbs > span { font-size: var(--fd-label-fs); color: var(--odx-ui-ink-2); }
/* a product without a photo: the package glyph alone, centred in the porcelain disc */
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard .retail-sale-thumbs, .retail-dialog) .retail-photo-missing { display: grid; place-items: center; gap: 0; width: 100%; height: 100%; color: var(--odx-ui-ink-3); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-sale-thumbs .retail-photo-missing small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-sale-thumbs .retail-photo-missing svg { width: max(16px, calc(20 * var(--odx-u))); height: max(16px, calc(20 * var(--odx-u))); stroke-width: 1.5; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-sale-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-sale-copy strong { font-size: var(--odx-ui-fs-body); font-weight: var(--odx-ui-w-regular); letter-spacing: var(--odx-ui-ls-body); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-sale-copy small { font-size: var(--fd-label-fs); color: var(--odx-ui-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-sale-amount { display: flex; flex-direction: column; align-items: flex-end; gap: max(4px, calc(6 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-sale-amount b { font-size: var(--fd-value-fs); font-weight: var(--odx-ui-w-regular); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-pagination { display: flex; align-items: center; justify-content: flex-end; gap: max(8px, calc(10 * var(--odx-u))); padding-top: max(10px, calc(14 * var(--odx-u))); color: var(--odx-ui-ink-2); font-size: var(--fd-label-fs); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-pagination .retail-icon {
  display: inline-grid; place-items: center; width: var(--odx-ui-icon-d-sm); height: var(--odx-ui-icon-d-sm); padding: 0;
  border: 0; border-radius: 50%; background: var(--odx-ui-soft); color: var(--odx-ui-ink);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-empty { min-height: max(180px, calc(240 * var(--odx-u))); border-radius: var(--fd-tile-r); background: var(--fd-tile); border: 0; }
/* sale detail sheet (RetailDialog): summary pair, items, total, receipts, refund */
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-dialog-body { display: flex; flex-direction: column; gap: var(--odx-ui-gap); }
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-sale-summary {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--odx-ui-gap);
  padding: var(--fd-tile-pad); border-radius: var(--fd-tile-r); background: var(--fd-tile);
}
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-sale-summary > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-sale-summary small { font-size: var(--fd-label-fs); color: var(--odx-ui-ink-2); font-weight: var(--odx-ui-w-light); }
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-sale-summary strong { font-size: var(--fd-value-fs); font-weight: var(--odx-ui-w-light); letter-spacing: var(--odx-ls-value); }
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-saved-items > div { display: flex; align-items: center; gap: max(12px, calc(16 * var(--odx-u))); padding: max(10px, calc(12 * var(--odx-u))) 0; border-bottom: 1px solid var(--odx-ui-line); }
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-saved-items > div:last-child { border-bottom: 0; }
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-saved-items .retail-photo {
  display: grid; place-items: center; flex: none; width: max(40px, calc(52 * var(--odx-u))); height: max(40px, calc(52 * var(--odx-u)));
  padding: 0; border: 0; border-radius: 50%; overflow: hidden; background: var(--odx-thumb-fill);
}
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-saved-items .retail-photo img { width: 100%; height: 100%; object-fit: cover; }
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-saved-items .retail-photo-missing small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-saved-items .retail-photo-missing svg { width: 20px; height: 20px; stroke-width: 1.5; }
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-saved-items strong { display: block; font-size: var(--odx-ui-fs-body); font-weight: var(--odx-ui-w-regular); letter-spacing: var(--odx-ui-ls-body); }
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-saved-items small { display: block; margin-top: 2px; font-size: var(--fd-label-fs); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-saved-items b { font-size: var(--odx-ui-fs-body); font-weight: var(--odx-ui-w-regular); font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-total {
  display: flex; align-items: center; justify-content: space-between; gap: var(--odx-ui-gap);
  padding: max(12px, calc(16 * var(--odx-u))) var(--fd-tile-pad); border-radius: var(--fd-tile-r); background: var(--fd-mint-tile);
}
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-total span { font-size: var(--fd-label-fs); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-total b { font-size: var(--odx-ui-fs-subtitle); font-weight: var(--odx-ui-w-regular); font-variant-numeric: tabular-nums; }
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-receipt-actions { display: flex; flex-wrap: wrap; gap: max(8px, calc(10 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-text { border: 0; background: none; padding: 0; color: var(--odx-ui-emerald-ink); font-size: var(--fd-label-fs); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-text.retail-danger-text { align-self: flex-start; color: var(--odx-ui-danger); }
:is(.odx-dossier, #odx-skin) .retail-dialog form { display: flex; flex-direction: column; gap: var(--odx-ui-gap); }
:is(.odx-dossier, #odx-skin) .retail-dialog form > footer { display: flex; justify-content: flex-end; gap: max(8px, calc(10 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .retail-dialog .retail-check { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-size: var(--odx-ui-fs-body); }
/* ======================================================================================= 4. chèques */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-workspace { font-size: var(--odx-ui-fs-body); line-height: 1.4; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-page-heading h2 { font-weight: var(--odx-w-title-lg); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-heading-actions { display: flex; align-items: center; gap: max(8px, calc(10 * var(--odx-u))); flex: none; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-heading-actions .cheques-subtle {
  width: var(--odx-ui-icon-d); height: var(--odx-ui-icon-d); min-height: 0; padding: 0; border-radius: 50%; background: var(--odx-ui-soft); border: 0; box-shadow: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-heading-actions .cheques-subtle:hover:not(:disabled) { background: var(--odx-ui-soft-hover); }
/* alerts / notices / loading */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.cheques-alert, .cheques-notice) {
  display: flex; align-items: center; gap: max(10px, calc(12 * var(--odx-u)));
  margin: 0 0 var(--odx-ui-gap); padding: max(12px, calc(16 * var(--odx-u))) var(--fd-tile-pad);
  border: 0; border-radius: var(--fd-tile-r);
  background: var(--odx-ui-warn-bg); color: var(--odx-ui-warn-ink);
  font-size: var(--odx-ui-fs-body); line-height: 1.45;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-notice { background: var(--odx-ui-ok-bg); color: var(--odx-ui-ok-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-alert > span { flex: 1 1 auto; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-workspace > .cheques-alert:only-child {
  flex-direction: column; justify-content: center; text-align: center; gap: max(14px, calc(18 * var(--odx-u)));
  min-height: max(220px, calc(300 * var(--odx-u))); margin: 0;
  background: var(--fd-tile); color: var(--odx-ui-ink-2);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-workspace > .cheques-alert:only-child::before {
  content: "!"; display: grid; place-items: center; width: max(40px, calc(52 * var(--odx-u))); height: max(40px, calc(52 * var(--odx-u)));
  border-radius: 50%; background: var(--odx-ui-warn-bg); color: var(--odx-ui-warn-ink);
  font-size: max(18px, calc(24 * var(--odx-u))); font-weight: 500;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-workspace > .cheques-alert:only-child .cheques-button { min-height: var(--odx-ui-h); font-size: var(--odx-ui-fs-button); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-loading {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: max(220px, calc(300 * var(--odx-u))); border-radius: var(--fd-tile-r); background: var(--fd-tile); color: var(--odx-ui-ink-2);
}
/* three metrics: the acts card's money tiles (label micro caps, value 21 u) with a soft round icon */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-summary {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: max(10px, calc(14 * var(--odx-u)));
  margin: 0 0 var(--fd-block-gap); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-summary > div {
  display: flex; align-items: center; gap: max(12px, calc(16 * var(--odx-u)));
  min-width: 0; padding: max(14px, calc(18 * var(--odx-u))) max(16px, calc(22 * var(--odx-u)));
  border: 0; border-radius: max(14px, calc(18 * var(--odx-u)));
  background: rgb(0 0 0 / .025);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-summary > div + div { border-left: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-summary > div:nth-child(2) { background: rgb(253 239 214 / .55); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-summary > div:nth-child(3) { background: rgb(200 253 198 / .5); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-summary small {
  display: block; margin: 0 0 max(2px, calc(4 * var(--odx-u)));
  font-size: var(--fd-label-fs); font-weight: var(--odx-ui-w-light); letter-spacing: -0.02em; line-height: 1.25; color: var(--odx-ui-ink-2);
}
/* same label / figure scale as the Actes totals (« Total à payer » / 27 u figure) */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-summary strong {
  display: block; font-size: max(19px, calc(27 * var(--odx-u))); font-weight: var(--odx-ui-w-regular); letter-spacing: -0.035em; line-height: 1.15; color: var(--odx-ui-ink); font-variant-numeric: tabular-nums;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-metric-icon {
  width: max(38px, calc(48 * var(--odx-u))); height: max(38px, calc(48 * var(--odx-u)));
  border-radius: 50%; background: rgb(255 255 255 / .85); color: var(--odx-ui-ink); box-shadow: 0 1px 2px rgb(13 13 13 / .05);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-metric-icon svg { width: 46%; height: 46%; stroke-width: 1.6; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-metric-amber { color: var(--odx-ui-warn-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-metric-green { color: var(--odx-ui-ok-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-review-note {
  display: flex; align-items: flex-start; gap: 8px; margin: 0 0 var(--odx-ui-gap);
  padding: max(10px, calc(14 * var(--odx-u))) max(14px, calc(18 * var(--odx-u))); border-radius: var(--odx-ui-r-control);
  background: var(--odx-ui-warn-bg); color: var(--odx-ui-warn-ink); font-size: var(--fd-label-fs); line-height: 1.5;
}
/* ledger: lots on the left, the selected-cheque panel on the right (reference stage | analysis rhythm) */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-ledger-layout {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(max(300px, calc(470 * var(--odx-u))), 1fr);
  gap: var(--odx-gap); align-items: start;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-lots { display: flex; flex-direction: column; gap: max(14px, calc(18 * var(--odx-u))); min-width: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-panel {
  border: 0; border-radius: var(--fd-tile-r); background: var(--fd-tile); box-shadow: none; overflow: hidden;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-filter {
  display: flex; align-items: center; gap: max(8px, calc(10 * var(--odx-u))); align-self: flex-start;
  color: var(--odx-ui-ink-2); font-size: var(--fd-label-fs);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-filter select { width: auto; min-width: max(180px, calc(220 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-lot-heading {
  display: flex; align-items: flex-start; gap: max(10px, calc(12 * var(--odx-u)));
  padding: max(14px, calc(18 * var(--odx-u))) var(--fd-tile-pad) max(6px, calc(8 * var(--odx-u)));
  border: 0; background: none; color: var(--odx-ui-ink); font-size: var(--odx-ui-fs-body); line-height: 1.4;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-lot-heading > svg {
  flex: none; box-sizing: content-box; width: 18px; height: 18px; padding: max(7px, calc(9 * var(--odx-u)));
  border-radius: 50%; background: rgb(255 255 255 / .85); color: var(--odx-ui-ink); stroke-width: 1.6;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-lot-heading strong { font-weight: var(--odx-ui-w-regular); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-lot-heading small { display: block; margin-top: 2px; font-size: var(--fd-label-fs); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-lot-heading span > span { margin-inline: 6px; color: var(--odx-ui-ink-3); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-table-scroll { padding: 0 max(8px, calc(10 * var(--odx-u))); overflow-x: auto; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-table { width: 100%; --odx-ui-row-pad-y: max(10px, calc(13 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-table > tbody > tr > td { white-space: nowrap; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-table > tbody > tr > td:last-child { width: 1%; text-align: right; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-row-select { display: flex; align-items: center; gap: max(10px, calc(14 * var(--odx-u))); padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-row-select strong { font-weight: var(--odx-ui-w-regular); font-size: var(--odx-ui-fs-body); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.cheques-row-origin, .cheques-row-due) { display: block; margin-top: 2px; font-size: var(--fd-label-fs); color: var(--odx-ui-ink-2); white-space: normal; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-row-due { color: var(--odx-ui-warn-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-row-amount { font-weight: var(--odx-ui-w-regular); color: var(--odx-ui-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-thumbnail {
  width: max(64px, calc(84 * var(--odx-u))); height: max(38px, calc(50 * var(--odx-u))); padding: 0; flex: none; overflow: hidden;
  border: 0; border-radius: max(7px, calc(9 * var(--odx-u))); background: #fff; box-shadow: 0 0 0 1px var(--fd-tile-line), 0 1px 2px rgb(13 13 13 / .05);
}
:is(.odx-dossier, #odx-skin) :is(.cheques-thumbnail, .cheques-scan) .cheques-scan-placeholder { color: var(--odx-ui-ink-3); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-add-to-lot {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: calc(100% - 2 * var(--fd-tile-pad)); min-height: var(--odx-ui-h); margin: max(10px, calc(12 * var(--odx-u))) var(--fd-tile-pad) var(--fd-tile-pad); padding: 0 var(--odx-ui-pad-x);
  border: 1px dashed rgb(13 13 13 / .16); border-radius: var(--odx-ui-r-control); background: rgb(255 255 255 / .55);
  color: var(--odx-ui-ink); font-size: var(--odx-ui-fs-button); font-weight: var(--odx-ui-w-regular); cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease), border-color var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-add-to-lot:hover:not(:disabled) { background: var(--odx-ui-mint); border-color: transparent; }
/* selected cheque: collapsible heading, Recto/Verso pills, scan, facts list, tracking actions */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-detail { background: rgb(255 255 255 / .82); box-shadow: inset 0 0 0 1px var(--fd-tile-line); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-detail-heading {
  display: flex; align-items: center; gap: max(10px, calc(12 * var(--odx-u))); width: 100%;
  padding: max(16px, calc(20 * var(--odx-u))) var(--fd-tile-pad); border: 0; background: none; color: var(--odx-ui-ink); text-align: left; cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-detail-heading strong { font-size: var(--fd-subtitle-fs); font-weight: var(--odx-w-subtitle); letter-spacing: var(--odx-ls-subtitle); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-detail-heading svg { flex: none; color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-detail-heading svg:last-child {
  margin-left: auto; box-sizing: content-box; padding: max(8px, calc(10 * var(--odx-u))); border-radius: 50%; background: var(--odx-ui-soft); color: var(--odx-ui-ink);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-detail-body { padding: 0 var(--fd-tile-pad) var(--fd-tile-pad); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-scan-tabs {
  display: inline-flex; gap: 0; width: auto; margin: 0 0 max(12px, calc(14 * var(--odx-u)));
  padding: max(3px, calc(4 * var(--odx-u))); border: 0; border-radius: calc(var(--odx-ui-r-tab) + 4px); background: var(--odx-ui-soft); overflow: visible;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-scan {
  position: relative; display: block; width: 100%; aspect-ratio: 2.2 / 1; padding: 0; overflow: hidden;
  border: 0; border-radius: max(12px, calc(16 * var(--odx-u))); background: var(--odx-thumb-fill);
  box-shadow: inset 0 0 0 1px var(--fd-tile-line); cursor: zoom-in;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-scan img { display: block; width: 100%; height: 100%; object-fit: contain; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-scan-expand {
  position: absolute; right: max(8px, calc(10 * var(--odx-u))); bottom: max(8px, calc(10 * var(--odx-u)));
  display: grid; place-items: center; width: var(--odx-ui-icon-d-sm); height: var(--odx-ui-icon-d-sm); padding: 0;
  border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--odx-ui-ink); box-shadow: 0 1px 3px rgb(13 13 13 / .12);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-fields { margin: max(12px, calc(16 * var(--odx-u))) 0 0; font-size: var(--odx-ui-fs-body); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-fields > div {
  display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%); column-gap: 10px;
  padding: max(8px, calc(10 * var(--odx-u))) 0; border-bottom: 1px solid var(--odx-ui-line);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-fields > div:last-child { border-bottom: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-fields dt { color: var(--odx-ui-ink-2); font-size: var(--fd-label-fs); font-weight: var(--odx-ui-w-light); align-self: center; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-fields dd { margin: 0; color: var(--odx-ui-ink); font-weight: var(--odx-ui-w-light); overflow-wrap: anywhere; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-verification { display: flex; flex-wrap: wrap; align-items: center; gap: max(10px, calc(12 * var(--odx-u))); margin-top: max(14px, calc(18 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-verification > span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fd-label-fs); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-verified { color: var(--odx-ui-ok-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-unverified { color: var(--odx-ui-warn-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-verification .cheques-button { margin-left: auto; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-tracking { margin-top: max(16px, calc(20 * var(--odx-u))); padding-top: max(14px, calc(18 * var(--odx-u))); border-top: 1px solid var(--odx-ui-line); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-tracking-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--odx-ui-ink-2); font-size: var(--fd-label-fs); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-tracking-actions { display: flex; flex-wrap: wrap; align-items: center; gap: max(8px, calc(10 * var(--odx-u))); margin-top: max(12px, calc(14 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.cheques-cleared-note, .cheques-muted, .cheques-explanation) { display: flex; align-items: flex-start; gap: 8px; margin: max(10px, calc(12 * var(--odx-u))) 0 0; font-size: var(--fd-label-fs); line-height: 1.55; color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-cleared-note { color: var(--odx-ui-ok-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.cheques-cleared-note, .cheques-explanation) svg { flex: none; margin-top: 2px; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-empty:not(.cheques-detail-empty) { min-height: max(240px, calc(320 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-empty h3 { margin: 0; font-size: var(--fd-subtitle-fs); font-weight: var(--odx-ui-w-regular); letter-spacing: var(--odx-ls-subtitle); color: var(--odx-ink-strong); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-empty p { margin: 0; max-width: 32em; font-size: var(--fd-note-fs); color: var(--odx-ui-ink-2); }
/* history timeline: dates in a light column, a mint dot per event */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-history { margin-top: var(--fd-block-gap); padding: var(--fd-tile-pad) calc(var(--fd-tile-pad) + 4px); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-history h3 {
  display: flex; align-items: center; gap: max(10px, calc(12 * var(--odx-u))); margin: 0 0 max(12px, calc(16 * var(--odx-u)));
  font-size: var(--fd-subtitle-fs); font-weight: var(--odx-w-subtitle); letter-spacing: var(--odx-ls-subtitle); color: var(--odx-ink-strong);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-history h3 svg { color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-history ol { list-style: none; margin: 0; padding: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-history li {
  position: relative; display: grid; grid-template-columns: max(120px, calc(170 * var(--odx-u))) minmax(0, 1fr); gap: var(--odx-ui-gap);
  padding: max(9px, calc(11 * var(--odx-u))) 0 max(9px, calc(11 * var(--odx-u))) max(18px, calc(22 * var(--odx-u)));
  border-bottom: 1px solid var(--odx-ui-line); font-size: var(--odx-ui-fs-body); color: var(--odx-ui-ink); line-height: 1.4;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-history li:last-child { border-bottom: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-history li::before {
  content: ""; position: absolute; left: 2px; top: calc(max(9px, calc(11 * var(--odx-u))) + .45em);
  width: 8px; height: 8px; border-radius: 50%; background: var(--odx-ui-emerald); box-shadow: 0 0 0 3px rgb(12 143 96 / .14);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-history time { width: auto; color: var(--odx-ui-ink-2); font-size: var(--fd-label-fs); padding-top: 2px; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-history li small { display: block; margin-top: 2px; color: var(--odx-ui-ink-2); font-size: var(--fd-label-fs); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-pagination { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: max(10px, calc(12 * var(--odx-u))); margin-top: max(12px, calc(14 * var(--odx-u))); font-size: var(--fd-label-fs); color: var(--odx-ui-ink-2); }
/* cheque sheets (add / verify / transition / enlarged scan) */
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-dialog-body { padding: var(--odx-ui-sheet-pad); }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-form-intro { margin: 0 0 var(--odx-ui-gap); font-size: var(--fd-note-fs); color: var(--odx-ui-ink-2); line-height: 1.55; }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-form-grid { gap: var(--odx-ui-gap); }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-new-row,
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-capture-row { padding: var(--fd-tile-pad); border: 0; border-radius: var(--fd-tile-r); background: var(--fd-tile); }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-uploads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: max(10px, calc(14 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-upload {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  min-height: max(110px, calc(140 * var(--odx-u))); padding: var(--fd-tile-pad);
  border: 1px dashed rgb(13 13 13 / .18); border-radius: var(--fd-tile-r); background: rgb(255 255 255 / .7); color: var(--odx-ui-ink-2); cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-upload:hover { border-color: var(--odx-ui-emerald); background: #fff; }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-upload strong { color: var(--odx-ui-ink); font-size: var(--odx-ui-fs-note); font-weight: var(--odx-ui-w-regular); }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-upload span { font-size: var(--fd-label-fs); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-upload > svg { color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-upload:focus-within { outline: var(--odx-ui-focus-ring); outline-offset: 2px; }
/* field labels: the restyle's label scale and ink (legacy blue-grey 12 px) */
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-field { gap: max(6px, calc(8 * var(--odx-u))); color: var(--odx-ui-ink); font-size: var(--odx-ui-fs-note); font-weight: var(--odx-ui-w-regular); }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-new-row { margin-top: var(--odx-ui-gap); }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-new-row > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 var(--odx-ui-gap); }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-new-row h3 { margin: 0; font-size: var(--odx-ui-fs-subtitle); font-weight: var(--odx-w-subtitle); letter-spacing: var(--odx-ls-subtitle); color: var(--odx-ink-strong); }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-uploads { margin-top: var(--odx-ui-gap); }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-add-to-lot {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: var(--odx-ui-h); margin: var(--odx-ui-gap) 0 0; padding: 0 var(--odx-ui-pad-x);
  border: 1px dashed rgb(13 13 13 / .16); border-radius: var(--odx-ui-r-control); background: rgb(255 255 255 / .55);
  color: var(--odx-ui-ink); font-size: var(--odx-ui-fs-button); font-weight: var(--odx-ui-w-regular); cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-add-to-lot:hover:not(:disabled) { background: var(--odx-ui-mint); border-color: transparent; }
:is(.odx-dossier, #odx-skin) .cheques-dialog :is(.cheques-review-note, .cheques-payment-choice, .cheques-confirm, .cheques-replace-scans) { font-size: var(--odx-ui-fs-note); color: var(--odx-ui-ink); }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-review-note { display: flex; gap: 8px; padding: max(10px, calc(12 * var(--odx-u))) max(14px, calc(16 * var(--odx-u))); border-radius: var(--odx-ui-r-control); background: var(--odx-ui-warn-bg); color: var(--odx-ui-warn-ink); }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-verification-scan { border: 0; border-radius: max(12px, calc(16 * var(--odx-u))); background: var(--odx-thumb-fill); overflow: hidden; }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-transition-summary { padding: var(--fd-tile-pad); border-radius: var(--fd-tile-r); background: var(--fd-tile); }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-dialog-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: max(8px, calc(10 * var(--odx-u)));
  padding: max(14px, calc(18 * var(--odx-u))) var(--odx-ui-sheet-pad); border-top: 1px solid var(--odx-ui-line); background: transparent;
}
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-dialog-footer > span { margin-right: auto; font-size: var(--fd-label-fs); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-enlarged-scan { padding: var(--odx-ui-sheet-pad); background: var(--odx-thumb-fill); }
:is(.odx-dossier, #odx-skin) .cheques-dialog .cheques-enlarged-scan img { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: max(10px, calc(12 * var(--odx-u))); box-shadow: 0 10px 30px -12px rgb(24 48 30 / .35); }
:is(.odx-dossier, #odx-skin) .cheques-dialog :is(.cheques-form-error, .cheques-alert) { border: 0; border-radius: var(--odx-ui-r-control); background: var(--odx-ui-danger-bg); color: var(--odx-ui-danger-ink); }
/* ======================================================================================= 5. mutuelle / feuille de soin */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-patient-card { display: flex; flex-direction: column; gap: var(--fd-block-gap); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-title-row { margin: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-workflow-grid {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.4fr); gap: var(--odx-gap); align-items: stretch;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.mutuelle-coverage-panel, .mutuelle-generation-panel) {
  min-width: 0; margin: 0; padding: var(--fd-tile-pad) calc(var(--fd-tile-pad) + 2px);
  border: 0; border-radius: var(--fd-tile-r); background: var(--fd-tile); box-shadow: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-coverage-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: max(12px, calc(16 * var(--odx-u))) max(14px, calc(18 * var(--odx-u))); align-content: start; align-items: start; }
/* insurer choice (InsuranceChoice: a painted value over the native select) = one reference field */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select { display: flex; flex-direction: column; gap: max(6px, calc(8 * var(--odx-u))); min-width: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select > label { margin: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select .insurance-choice { position: relative; display: block; min-width: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select .insurance-choice-value {
  display: flex; align-items: center; gap: 12px; box-sizing: border-box; min-height: var(--odx-ui-h); height: auto; padding: max(6px, calc(8 * var(--odx-u))) 14px max(6px, calc(8 * var(--odx-u))) 16px; line-height: 1.35;
  border: 1px solid var(--odx-ui-line-field); border-radius: var(--odx-ui-r-field); background: var(--odx-ui-field);
  color: var(--odx-ui-ink); font-size: var(--odx-ui-fs-body); font-weight: var(--odx-ui-w-regular); letter-spacing: var(--odx-ui-ls-body);
  transition: border-color var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select .insurance-choice-value > span { flex: 1 1 auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select .insurance-choice-value svg { flex: 0 0 16px; width: 16px; height: 16px; color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select .insurance-choice:hover .insurance-choice-value { border-color: var(--odx-ui-line-field-hover); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select .insurance-choice:focus-within .insurance-choice-value { border-color: var(--odx-ui-emerald); box-shadow: var(--odx-ui-focus); outline: none; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select .insurance-choice:has(select[aria-invalid="true"]) .insurance-choice-value { border-color: var(--odx-ui-warn-dot); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select .insurance-choice-native { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select .insurance-choice-native:disabled { cursor: not-allowed; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select:has(.insurance-choice-native:disabled) .insurance-choice-value { background: var(--odx-ui-field-disabled); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select > small { display: block; margin: 0; font-size: var(--fd-label-fs); font-weight: var(--odx-ui-w-light); line-height: 1.45; color: var(--odx-ui-ink-2); }
/* catalogue states: unavailable (role=alert) and still loading get a tinted note with a mark */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select > small:is([role="alert"], [role="status"]) {
  position: relative; padding: max(8px, calc(10 * var(--odx-u))) max(12px, calc(14 * var(--odx-u))) max(8px, calc(10 * var(--odx-u))) max(36px, calc(44 * var(--odx-u)));
  border-radius: max(10px, calc(12 * var(--odx-u))); background: var(--odx-ui-warn-bg); color: var(--odx-ui-warn-ink); font-weight: var(--odx-ui-w-regular);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select > small[role="status"] { background: var(--odx-ui-neutral-bg); color: var(--odx-ui-neutral-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select > small:is([role="alert"], [role="status"])::before {
  content: "!"; position: absolute; left: max(10px, calc(12 * var(--odx-u))); top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: max(18px, calc(22 * var(--odx-u))); height: max(18px, calc(22 * var(--odx-u)));
  border-radius: 50%; background: var(--odx-ui-warn-dot); color: #fff; font-size: 12px; font-weight: 600; line-height: 1;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select > small[role="status"]::before { content: ""; background: transparent; border: 2px solid rgb(13 13 13 / .18); border-top-color: var(--odx-ui-emerald); box-sizing: border-box; animation: fd-spin 900ms linear infinite; }
/* empty catalogue (only "Non renseignée" to choose): the closing hint becomes a calm note with an "i" mark */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select:has(.insurance-choice-native option:only-child) > small:last-child:not([role]) {
  position: relative; padding: max(8px, calc(10 * var(--odx-u))) max(12px, calc(14 * var(--odx-u))) max(8px, calc(10 * var(--odx-u))) max(36px, calc(44 * var(--odx-u)));
  border-radius: max(10px, calc(12 * var(--odx-u))); background: rgb(255 255 255 / .8); color: var(--odx-ui-ink); box-shadow: inset 0 0 0 1px var(--fd-tile-line);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .insurance-catalog-select:has(.insurance-choice-native option:only-child) > small:last-child:not([role])::before {
  content: "i"; position: absolute; left: max(10px, calc(12 * var(--odx-u))); top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: max(18px, calc(22 * var(--odx-u))); height: max(18px, calc(22 * var(--odx-u)));
  border-radius: 50%; background: var(--odx-ui-info-bg); color: var(--odx-ui-info-ink); font-size: 12px; font-weight: 600; font-style: normal; line-height: 1;
}
@keyframes fd-spin { to { transform: translateY(-50%) rotate(360deg); } }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-generation-panel { display: flex; flex-direction: column; gap: max(12px, calc(14 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-panel-heading {
  display: flex; align-items: center; gap: max(10px, calc(12 * var(--odx-u))); margin: 0 0 max(2px, calc(4 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-panel-heading strong {
  margin-right: auto; font-size: var(--fd-subtitle-fs); font-weight: var(--odx-w-subtitle); letter-spacing: var(--odx-ls-subtitle); color: var(--odx-ink-strong);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-coverage-panel .mutuelle-panel-heading strong { margin-right: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-coverage-panel .mutuelle-panel-heading > button { margin-left: auto; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-coverage-panel > :is(.mutuelle-panel-heading, .mutuelle-form-actions, .wide) { grid-column: 1 / -1; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-coverage-panel > label,
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-coverage-panel > .field,
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-coverage-panel > div:not([class]) { min-width: 0; margin: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-inline-check {
  display: flex; flex-direction: row; align-items: center; gap: 10px; align-self: end; min-height: var(--odx-ui-h);
  font-size: var(--odx-ui-fs-body); color: var(--odx-ui-ink);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-inline-check input { flex: none; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 0; padding: 0; border: 0; background: none; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-generation-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: max(12px, calc(16 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-generation-controls > * { min-width: 0; margin: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-generation-controls > label {
  display: flex; flex-direction: column; align-items: stretch; gap: max(6px, calc(8 * var(--odx-u)));
  font-size: var(--odx-ui-fs-note); font-weight: var(--odx-ui-w-regular); color: var(--odx-ui-ink);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-generation-controls > label > select { display: block; width: 100%; height: var(--odx-ui-h); }
/* notes inside the panels: soft tinted tiles, a marker per meaning */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.mutuelle-readiness-panel, .mutuelle-guidance-panel, .mutuelle-missing-panel, .mutuelle-source-hints, .mutuelle-appointment-sync, .mutuelle-warning) {
  margin: 0; padding: max(12px, calc(16 * var(--odx-u))) max(14px, calc(18 * var(--odx-u)));
  border: 0; border-radius: max(12px, calc(16 * var(--odx-u)));
  font-size: var(--odx-ui-fs-body); font-weight: var(--odx-ui-w-light); line-height: 1.45; box-shadow: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-readiness-panel { background: rgb(255 255 255 / .78); color: var(--odx-ui-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-readiness-panel.ready { background: var(--fd-mint-tile); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.mutuelle-readiness-panel, .mutuelle-guidance-panel, .mutuelle-missing-panel, .mutuelle-source-hints) strong {
  display: block; margin: 0 0 max(6px, calc(8 * var(--odx-u))); font-size: var(--odx-ui-fs-body); font-weight: var(--odx-ui-w-medium); color: var(--odx-ink-strong);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-readiness-panel ul { display: grid; gap: max(4px, calc(6 * var(--odx-u))); margin: 0; padding: 0; list-style: none; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-readiness-panel li {
  position: relative; padding-left: max(24px, calc(30 * var(--odx-u))); color: var(--odx-ui-ink-2); font-size: var(--odx-ui-fs-body); font-weight: var(--odx-ui-w-light);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-readiness-panel li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: max(14px, calc(18 * var(--odx-u))); height: max(14px, calc(18 * var(--odx-u)));
  box-sizing: border-box; border-radius: 50%; border: 1.5px solid rgb(13 13 13 / .28); background: transparent;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-readiness-panel li.done { color: var(--odx-ui-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-readiness-panel li.done::before {
  border: 0; background: var(--odx-ui-emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4'/%3E%3C/svg%3E") center / 78% no-repeat;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-guidance-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--odx-ui-gap); background: rgb(255 255 255 / .78); color: var(--odx-ui-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.mutuelle-guidance-panel, .mutuelle-missing-panel) ul { margin: 0; padding-left: 1.1em; display: grid; gap: 3px; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-missing-panel { display: block; background: var(--odx-ui-danger-bg); color: var(--odx-ui-danger-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-missing-panel.mutuelle-warning-panel { background: var(--odx-ui-warn-bg); color: var(--odx-ui-warn-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-missing-panel strong { color: inherit; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-source-hints { display: grid; gap: 6px; background: var(--odx-ui-info-bg); color: var(--odx-ui-info-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-source-hints span { display: flex; justify-content: space-between; gap: 10px; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-source-hints small { color: inherit; opacity: .8; font-weight: var(--odx-ui-w-light); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-appointment-sync { display: flex; align-items: center; gap: 10px; background: rgb(255 255 255 / .78); color: var(--odx-ui-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-appointment-sync.ready { background: var(--odx-ui-ok-bg); color: var(--odx-ui-ok-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-appointment-sync.warning { background: var(--odx-ui-warn-bg); color: var(--odx-ui-warn-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-warning { display: flex; align-items: flex-start; gap: 10px; background: var(--odx-ui-warn-bg); color: var(--odx-ui-warn-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.mutuelle-warning, .mutuelle-appointment-sync) svg { flex: none; margin-top: 2px; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-message {
  margin: 0; padding: max(10px, calc(12 * var(--odx-u))) max(14px, calc(18 * var(--odx-u))); border: 0; border-radius: max(12px, calc(16 * var(--odx-u)));
  background: var(--odx-ui-ok-bg); color: var(--odx-ui-ok-ink); font-size: var(--odx-ui-fs-body); font-weight: var(--odx-ui-w-regular);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-action-row { display: flex; flex-wrap: wrap; gap: max(8px, calc(10 * var(--odx-u))); margin-top: auto; padding-top: max(4px, calc(6 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-generation-panel > .dentalome-empty-row { padding: 6px 0; color: var(--odx-ui-ink-2); font-size: var(--fd-label-fs); }
/* tables: "Actes à inclure" + "Documents mutuelle archivés" */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-table-block { display: flex; flex-direction: column; gap: max(10px, calc(12 * var(--odx-u))); min-width: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-table-block > h3 {
  margin: 0; font-size: var(--fd-title-fs); font-weight: var(--odx-w-title); letter-spacing: var(--odx-ls-title); line-height: 1.2; color: var(--odx-ink-strong);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-table-block > .form-error { margin: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-acts-table > thead > tr > th:first-child,
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-acts-table > tbody > tr > td:first-child:not([colspan]) { width: 1%; padding-right: 4px; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-acts-table > thead > tr > th:last-child,
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-acts-table > tbody > tr > td:last-child:not([colspan]) { text-align: right; white-space: nowrap; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-acts-table > tbody > tr:has(input[type="checkbox"]:checked) > td { background: rgb(197 252 196 / .2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-code-cell { display: flex; flex-wrap: wrap; align-items: center; gap: max(6px, calc(8 * var(--odx-u))); min-width: max(220px, calc(280 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-auto-code-card {
  display: inline-flex; flex-direction: column; gap: 1px; min-width: 0; max-width: 100%;
  padding: max(6px, calc(8 * var(--odx-u))) max(10px, calc(12 * var(--odx-u)));
  border: 0; border-radius: max(10px, calc(12 * var(--odx-u))); background: var(--odx-ui-ok-bg); color: var(--odx-ui-ok-ink);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-auto-code-card strong { font-size: var(--fd-label-fs); font-weight: var(--odx-ui-w-medium); letter-spacing: .02em; color: inherit; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-auto-code-card span { font-size: var(--fd-micro-fs); color: inherit; opacity: .85; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-auto-code-card:is(.unresolved, .source_missing, .non_remboursable) { background: var(--odx-ui-warn-bg); color: var(--odx-ui-warn-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-auto-code-card.muted { background: var(--odx-ui-neutral-bg); color: var(--odx-ui-neutral-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-code-status { display: inline-flex; margin: 0; padding: 0; border: 0; background: none; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-code-override-button {
  display: inline-flex; align-items: center; gap: 5px; height: max(26px, calc(32 * var(--odx-u))); padding: 0 max(10px, calc(12 * var(--odx-u)));
  border: 0; border-radius: 999px; background: var(--odx-ui-soft); color: var(--odx-ui-ink); font-size: var(--fd-micro-fs); font-weight: var(--odx-ui-w-regular); cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-code-override-button:hover { background: var(--odx-ui-soft-hover); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-code-select { flex-basis: 100%; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-documents-table .row-actions select { width: auto; min-width: max(130px, calc(160 * var(--odx-u))); height: var(--odx-ui-icon-d); min-height: 0; padding-top: 0; padding-bottom: 0; font-size: var(--fd-label-fs); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-documents-table > thead > tr > th:last-child,
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-documents-table > tbody > tr > td:last-child:not([colspan]) { text-align: right; white-space: nowrap; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-checklist-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: max(28px, calc(34 * var(--odx-u))); padding: 0 max(10px, calc(12 * var(--odx-u)));
  border: 0; border-radius: 999px; background: var(--odx-ui-soft); color: var(--odx-ui-ink); font-size: var(--fd-label-fs); font-variant-numeric: tabular-nums; cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-checklist-toggle.ready { background: var(--odx-ui-ok-bg); color: var(--odx-ui-ok-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-checklist-toggle[aria-expanded="true"] { background: var(--odx-ui-mint); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-document-details-row > td { padding-top: 0; background: transparent; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-document-details {
  display: grid; gap: max(12px, calc(14 * var(--odx-u))); padding: var(--fd-tile-pad); border: 0; border-radius: var(--fd-tile-r); background: var(--fd-tile);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-document-details-head { display: flex; align-items: center; justify-content: space-between; gap: var(--odx-ui-gap); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-document-details-head strong { display: block; font-size: var(--odx-ui-fs-body); font-weight: var(--odx-ui-w-medium); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.mutuelle-document-details-head span, .mutuelle-status-history) { display: block; font-size: var(--fd-label-fs); color: var(--odx-ui-ink-2); font-weight: var(--odx-ui-w-light); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-attachment-list { display: flex; flex-wrap: wrap; gap: max(6px, calc(8 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-attachment-list label {
  display: inline-flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; padding: 0 max(12px, calc(14 * var(--odx-u)));
  min-height: var(--odx-ui-h-sm); border: 0; border-radius: 999px; background: rgb(255 255 255 / .85); font-size: var(--fd-label-fs); color: var(--odx-ui-ink);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-attachment-list label.checked { background: var(--odx-ui-ok-bg); color: var(--odx-ui-ok-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-submission-notes { display: flex; align-items: flex-end; gap: var(--odx-ui-gap); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-submission-notes label { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--odx-ui-fs-note); font-weight: var(--odx-ui-w-medium); color: var(--odx-ui-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-submission-notes textarea { min-height: max(70px, calc(90 * var(--odx-u))); }
/* ======================================================================================= 6. responsive */
@media (max-width: 1500px) {
  :is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-ledger-layout { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); }
  :is(.odx-dossier, #odx-skin) .odx-s-sectioncard .mutuelle-workflow-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}
@media (max-width: 1180px) {
  :is(.odx-dossier, #odx-skin) .odx-s-sectioncard :is(.cheques-ledger-layout, .mutuelle-workflow-grid) { grid-template-columns: minmax(0, 1fr); }
  :is(.odx-dossier, #odx-skin) .odx-s-sectioncard .cheques-summary { grid-template-columns: minmax(0, 1fr); }
  :is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-history-filters { flex-wrap: wrap; }
  :is(.odx-dossier, #odx-skin) .odx-s-sectioncard .retail-history-filters > label.retail-search { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.odx-dossier, #odx-skin) .odx-s-sectioncard .patient-attachments .attachment-card:hover { transform: none; }
}
/* ======================================================================================= 7. letter + certificate composer (rich-text editor) */
/* the editor's own sheet (courriers.css) is only loaded by the platform's Courriers page: re-declare the
   visually-hidden helper so the "Police" / "Couleur du texte" labels stay screen-reader only */
:is(.odx-dossier, #odx-skin) .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;
}
:is(.odx-dossier, #odx-skin) .document-editor-label { display: flex; align-items: center; gap: 8px; margin: max(14px, calc(18 * var(--odx-u))) 0 max(8px, calc(10 * var(--odx-u))); color: var(--odx-ui-ink); }
:is(.odx-dossier, #odx-skin) .document-editor-label strong { font-size: var(--odx-ui-fs-note); font-weight: var(--odx-ui-w-medium); }
:is(.odx-dossier, #odx-skin) .document-editor-label small { margin-left: auto; font-size: var(--fd-label-fs); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .document-editor-label svg { color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .courrier-rich-editor {
  min-width: 0; overflow: hidden;
  border: 1px solid var(--odx-ui-line-field); border-radius: var(--odx-ui-r-field); background: var(--odx-ui-field);
  transition: border-color var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .courrier-rich-editor:focus-within { border-color: var(--odx-ui-emerald); box-shadow: var(--odx-ui-focus); }
/* toolbar: one soft porcelain band of round icon toggles and compact selects */
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-editor-toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: max(4px, calc(6 * var(--odx-u)));
  margin: 0; padding: max(6px, calc(8 * var(--odx-u))) max(8px, calc(10 * var(--odx-u)));
  border: 0; border-bottom: 1px solid var(--odx-ui-line); border-radius: 0; background: var(--fd-tile);
}
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-tool-group {
  display: flex; align-items: center; gap: 2px; margin: 0 2px 0 0; padding: 0 max(5px, calc(6 * var(--odx-u))) 0 0;
  border: 0; border-right: 1px solid var(--odx-ui-line-2);
}
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-editor-toolbar button {
  display: inline-grid; place-items: center; width: var(--odx-ui-icon-d-sm); height: var(--odx-ui-icon-d-sm); min-width: 0; min-height: 0; padding: 0;
  border: 0; border-radius: max(8px, calc(10 * var(--odx-u))); background: transparent; color: var(--odx-ui-ink); box-shadow: none; cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-editor-toolbar button svg { width: 16px; height: 16px; stroke-width: 1.7; }
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-editor-toolbar button:hover:not(:disabled) { background: rgb(255 255 255 / .9); }
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-editor-toolbar button[aria-pressed="true"] { background: var(--odx-ui-mint); }
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-editor-toolbar button:disabled { opacity: .35; cursor: not-allowed; }
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-editor-toolbar select {
  width: auto; max-width: max(130px, calc(160 * var(--odx-u))); height: var(--odx-ui-icon-d-sm); min-height: 0; margin: 0;
  padding: 0 30px 0 12px; border-radius: 999px; background-position: right 10px center;
  font-size: var(--fd-label-fs); font-weight: var(--odx-ui-w-regular);
}
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-color {
  display: inline-grid !important; place-items: center; width: var(--odx-ui-icon-d-sm); height: var(--odx-ui-icon-d-sm); margin: 0; padding: 0; border-radius: 50%; cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-color input { width: 20px; height: 20px; min-height: 0; padding: 0; border: 0; border-radius: 50%; overflow: hidden; background: none; cursor: pointer; }
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-table-tools { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; padding-top: 6px; border-top: 1px solid var(--odx-ui-line); }
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-table-tools button { width: auto; padding: 0 12px; border-radius: 999px; background: rgb(255 255 255 / .85); font-size: var(--fd-label-fs); }
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-template-insert {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: max(8px, calc(10 * var(--odx-u))) max(12px, calc(14 * var(--odx-u)));
  border: 0; border-bottom: 1px solid var(--odx-ui-line); border-radius: 0; background: var(--fd-mint-tile); color: var(--odx-ui-ink); font-size: var(--fd-label-fs);
}
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-link-form {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; margin: 0; padding: max(10px, calc(12 * var(--odx-u))); border-bottom: 1px solid var(--odx-ui-line); background: var(--fd-tile);
}
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-link-form label { flex: 1; min-width: 180px; margin: 0; }
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-prose {
  min-height: max(220px, calc(280 * var(--odx-u))); padding: max(14px, calc(18 * var(--odx-u))) max(16px, calc(20 * var(--odx-u)));
  outline: none; color: var(--odx-ui-ink); font-size: var(--odx-ui-fs-body); font-weight: var(--odx-ui-w-regular); line-height: 1.6; background: #fff;
}
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-prose :is(p, li) { margin: 0 0 .6em; }
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-prose table { width: 100%; border-collapse: collapse; }
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-prose :is(td, th) { border: 1px solid var(--odx-ui-line-2); padding: 6px 8px; }
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-prose blockquote { margin: 0 0 .6em; padding-left: 12px; border-left: 3px solid var(--odx-ui-mint-solid); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .courrier-rich-editor + .courrier-muted,
:is(.odx-dossier, #odx-skin) .courrier-rich-editor .courrier-muted { margin: 6px 0 0; font-size: var(--fd-label-fs); color: var(--odx-ui-ink-2); }
/* the composer's sticky action band (certificate / ordonnance / devis forms): transparent like the letter form */
:is(.odx-dossier, #odx-skin) .document-composer-edit .modal-actions { background: rgb(255 255 255 / .72); border-top: 1px solid var(--odx-ui-line); backdrop-filter: blur(6px); }
:is(.odx-dossier, #odx-skin) .document-composer-edit .patient-certificate-duration-summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: max(10px, calc(12 * var(--odx-u))) max(14px, calc(18 * var(--odx-u)));
  border: 0; border-radius: var(--odx-ui-r-control); background: var(--fd-mint-tile); box-shadow: none;
}
:is(.odx-dossier, #odx-skin) .document-composer-edit .patient-certificate-duration-summary span { font-size: var(--fd-label-fs); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .document-composer-edit .patient-certificate-duration-summary strong { font-size: var(--odx-ui-fs-value); font-weight: var(--odx-ui-w-regular); }
/* Odontiax dossier — Imagerie (Radiographies · Photos · Scans 3D · Simulation ortho), Antécédents and Notes.
   Restyles the platform's own components through their existing class names; no markup, data or behaviour change.

   SCOPE. Every rule starts with  :is(.odx-dossier, #odx-skin)  (same skin prefix as restyle/: ID weight, so the
   legacy component sheets loaded later never win) and then names a section container:
     .odx-s-sectioncard--radiology | --images | --scans3d | --ortho | --antecedents | --notes   (in the dossier window)
   or, for portals rendered at <body> level, the dialog's own root class (.rxv-workspace, .pimg-viewer, ...).
   Viewers follow the design-system rule « base claire et visionneuse sombre »: the radiograph and photo viewers
   turn black, their controls keep the dossier's shapes (round discs, 12-14 unit radii, mint active state).

   Layout language (reference px × --odx-u): section title 34 light, card titles 26 light, values 18.65-20.9,
   labels 15.7 grey, 28-unit gaps, ~22-unit card padding, 24-30 unit radii, mint gradient for the active state. */
/* =============================================================================================== tokens */
.odx-dossier {
  --odx-in-gap: calc(28 * var(--odx-u));
  --odx-in-gap-sm: max(10px, calc(16 * var(--odx-u)));
  --odx-in-pad: max(16px, calc(22 * var(--odx-u)));
  --odx-in-r: max(18px, calc(26 * var(--odx-u)));
  --odx-in-r-sm: max(12px, calc(18 * var(--odx-u)));
  --odx-in-line: rgb(13 13 13 / .065);
  --odx-in-sub-bg: linear-gradient(180deg, rgb(255 255 255 / .96) 0%, rgb(249 252 248 / .96) 100%);
  --odx-in-sub-shadow:
    inset 0 0 0 1px rgb(13 13 13 / .055),
    0 calc(16 * var(--odx-u)) calc(36 * var(--odx-u)) calc(-24 * var(--odx-u)) rgb(24 48 30 / .26),
    0 1px 2px rgb(24 48 30 / .035);
  --odx-in-sub-shadow-hover:
    inset 0 0 0 1px rgb(12 143 96 / .16),
    0 calc(20 * var(--odx-u)) calc(40 * var(--odx-u)) calc(-22 * var(--odx-u)) rgb(24 48 30 / .32),
    0 1px 2px rgb(24 48 30 / .04);
  --odx-in-glow: radial-gradient(90% 70% at 100% 0%, rgb(var(--odx-glow-mint) / .55) 0%, rgb(var(--odx-glow-mint) / 0) 70%);
  --odx-in-disc: rgb(13 13 13 / .035);
  --odx-in-disc-hover: rgb(13 13 13 / .07);
  --odx-in-tile-h: max(40px, calc(52 * var(--odx-u)));

  /* dark viewer palette (« visionneuse sombre ») */
  --odx-dk-bg: #0e100f;
  --odx-dk-chrome: #151816;
  --odx-dk-panel: rgb(255 255 255 / .045);
  --odx-dk-panel-2: rgb(255 255 255 / .07);
  --odx-dk-line: rgb(255 255 255 / .08);
  --odx-dk-line-2: rgb(255 255 255 / .14);
  --odx-dk-ink: #eef3ef;
  --odx-dk-ink-2: rgb(238 243 239 / .66);
  --odx-dk-ink-3: rgb(238 243 239 / .5);
  --odx-dk-disc: rgb(255 255 255 / .07);
  --odx-dk-disc-hover: rgb(255 255 255 / .13);
  --odx-dk-stage: #050606;
}
/* ============================================================================ shared: section page heading
   Same head as the other dossier sections: card-title size (27.2 light) with its sub-line under it, the
   section's actions on the right of the same row. (.imaging-atelier forces its h1 with !important.) */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard:is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images, .odx-s-sectioncard--notes) :is(.atelier-page-heading, .pimg-head, .patient-documents-title-row) {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--odx-in-gap-sm) var(--odx-in-gap);
  margin: 0 0 var(--odx-in-gap);
  padding: 0;
  border: 0;
  background: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard:is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images) :is(.atelier-page-heading, .pimg-head) > div:first-child,
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard.odx-s-sectioncard--notes .patient-documents-title-row > .dentalome-list-title {
  display: block;
  flex: 1 1 0%;          /* a zero basis keeps the actions on the title's row (the legacy title asks for 100 %) */
  min-width: min(100%, 240px);
  width: auto;
  margin: 0;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard:is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images, .odx-s-sectioncard--notes) :is(.atelier-page-heading, .pimg-head, .dentalome-list-title) h1 {
  display: block;
  margin: 0;
  width: auto;
  font-size: max(20px, var(--odx-fs-title-lg)) !important;
  font-weight: 300 !important;
  letter-spacing: var(--odx-ls-title-lg);
  line-height: 1.2;
  color: var(--odx-ink-strong);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard:is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images, .odx-s-sectioncard--notes) :is(.atelier-page-heading, .pimg-head, .dentalome-list-title) p {
  margin: max(4px, calc(7 * var(--odx-u))) 0 0;
  width: auto;
  font-size: max(12.5px, var(--odx-fs-note));
  letter-spacing: -0.03em;
  font-weight: 300;
  color: var(--odx-ui-ink-2);
  line-height: 1.4;
}
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology .atelier-page-heading, .odx-s-sectioncard--images .pimg-head) p > span {
  display: inline-block;
  margin: 0 calc(10 * var(--odx-u));
  color: rgb(13 13 13 / .3);
}
/* the round icon disc shared by the section icon buttons (same family as the reference card arrows) */
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology .rx-atelier-archive, .odx-s-sectioncard--images .atelier-layout > button) {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--odx-ui-icon-d);
  height: var(--odx-ui-icon-d);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--odx-in-disc);
  color: var(--odx-ink);
  box-shadow: none;
  cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease), color var(--odx-ui-dur) var(--odx-ui-ease), transform var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology .rx-atelier-archive, .odx-s-sectioncard--images .atelier-layout > button):hover:not(:disabled) { background: var(--odx-in-disc-hover); }
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology .rx-atelier-archive, .odx-s-sectioncard--images .atelier-layout > button):active:not(:disabled) { transform: scale(.95); }
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology .rx-atelier-archive, .odx-s-sectioncard--images .atelier-layout > button) svg {
  width: max(16px, calc(19 * var(--odx-u)));
  height: max(16px, calc(19 * var(--odx-u)));
  stroke-width: 1.6;
}
/* =================================================================================== RADIOGRAPHIES (list) */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .imaging-atelier {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--odx-ink);
  font-size: var(--odx-ui-fs-body);
  min-height: 0;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .atelier-page-heading > .patient-attachments {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .atelier-page-heading .attachment-title-row { margin: 0; padding: 0; border: 0; gap: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .atelier-page-heading .scan-entry-buttons { display: flex; gap: max(8px, calc(12 * var(--odx-u))); }
/* two columns: library + the tools column on the right */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier > .atelier-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--odx-in-gap);
  align-items: start;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier > .atelier-columns.rx-atelier-with-tools {
  grid-template-columns: minmax(0, 1fr) max(230px, calc(318 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier > .atelier-columns > .atelier-library { grid-column: 1; grid-row: 1; min-width: 0; }
/* tools column: a glass card with tool rows (round icon disc + label), the acquisition row in mint */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier .rx-atelier-tools {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: calc(24 * var(--odx-u));
  display: flex;
  flex-direction: column;
  gap: max(6px, calc(10 * var(--odx-u)));
  padding: max(12px, calc(16 * var(--odx-u)));
  border: 0;
  border-radius: var(--odx-in-r);
  background: var(--odx-in-glow), var(--odx-in-sub-bg);
  box-shadow: var(--odx-in-sub-shadow);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier .rx-atelier-tools::before {
  content: "Outils";
  display: block;
  padding: max(2px, calc(4 * var(--odx-u))) max(6px, calc(8 * var(--odx-u))) max(4px, calc(6 * var(--odx-u)));
  font-size: var(--odx-ui-fs-label);
  letter-spacing: var(--odx-ui-ls-label);
  color: var(--odx-ui-ink-2);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-tools > :is(.rvg-launch, .rx-tool-stellaris) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: max(10px, calc(14 * var(--odx-u)));
  width: 100%;
  min-height: var(--odx-in-tile-h);
  padding: max(6px, calc(8 * var(--odx-u))) max(10px, calc(14 * var(--odx-u))) max(6px, calc(8 * var(--odx-u))) max(6px, calc(8 * var(--odx-u)));
  border: 0;
  border-radius: max(12px, calc(16 * var(--odx-u)));
  background: rgb(255 255 255 / .82);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .06);
  color: var(--odx-ink);
  font-size: var(--odx-ui-fs-body);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease), transform var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-tools > :is(.rvg-launch, .rx-tool-stellaris):hover { background: #fff; box-shadow: inset 0 0 0 1px rgb(12 143 96 / .2), var(--odx-ui-raise); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-tools > :is(.rvg-launch, .rx-tool-stellaris):active { transform: scale(.985); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-tools > .rvg-launch:not(.rvg-compare-launch) {
  background: var(--odx-ui-mint);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35), var(--odx-ui-mint-glow);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-tools > .rvg-launch:not(.rvg-compare-launch):hover { background: var(--odx-ui-mint-hover); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-tools > :is(.rvg-launch, .rx-tool-stellaris) > svg:first-child {
  box-sizing: content-box;
  flex: none;
  width: max(15px, calc(18 * var(--odx-u)));
  height: max(15px, calc(18 * var(--odx-u)));
  padding: max(7px, calc(10 * var(--odx-u)));
  border-radius: 50%;
  background: rgb(13 13 13 / .045);
  color: var(--odx-ink);
  stroke-width: 1.6;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-tools > .rvg-launch:not(.rvg-compare-launch) > svg:first-child { background: rgb(255 255 255 / .55); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-tools > .rx-tool-stellaris > svg:last-child { margin-left: auto; width: max(14px, calc(17 * var(--odx-u))); height: max(14px, calc(17 * var(--odx-u))); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-tool-stellaris-label { display: flex; flex-direction: column; gap: max(2px, calc(3 * var(--odx-u))); min-width: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-tool-stellaris-label > span { font-size: var(--odx-ui-fs-body); font-weight: 400; color: var(--odx-ink); letter-spacing: -0.03em; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-tool-receiver-status {
  display: inline-flex;
  align-items: center;
  gap: max(5px, calc(7 * var(--odx-u)));
  font-size: var(--odx-ui-fs-micro);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--odx-ui-ink-2);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-tool-receiver-status::before {
  width: max(6px, calc(8 * var(--odx-u)));
  height: max(6px, calc(8 * var(--odx-u)));
  border-radius: 50%;
  background: var(--odx-ui-neutral-dot);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-tool-receiver-status[data-tone="online"]::before { background: var(--odx-ui-ok-dot); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-tool-receiver-status[data-tone="attention"]::before { background: var(--odx-ui-warn-dot); }
/* filters: type pills · search · date */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--odx-in-gap-sm);
  margin: 0 0 var(--odx-in-gap);
}
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images) .atelier-source-tabs[role="tablist"] {
  flex: none;
  padding: calc(5 * var(--odx-u));
  border-radius: calc(17 * var(--odx-u));
  background: rgb(13 13 13 / .03);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .04);
}
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images) :is(.atelier-search, .pimg-search) {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 calc(320 * var(--odx-u));
  min-width: 200px;
  height: var(--odx-ui-h);
  min-height: 0;
  margin: 0;
  padding: 0 max(12px, calc(16 * var(--odx-u)));
  gap: max(8px, calc(10 * var(--odx-u)));
  border: 1px solid var(--odx-ui-line-field);
  border-radius: var(--odx-ui-r-field);
  background: var(--odx-ui-field);
  box-shadow: inset 0 1px 1px rgb(13 13 13 / .024);
  color: var(--odx-ui-ink-2);
  transition: border-color var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images) :is(.atelier-search, .pimg-search):hover { border-color: var(--odx-ui-line-field-hover); }
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images) :is(.atelier-search, .pimg-search):focus-within { border-color: var(--odx-ui-emerald); box-shadow: var(--odx-ui-focus); }
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images) :is(.atelier-search, .pimg-search) > svg { flex: none; width: max(15px, calc(19 * var(--odx-u))); height: max(15px, calc(19 * var(--odx-u))); color: var(--odx-ui-ink-2); position: static; }
/* the wrapper is the field: the inner input loses the restyle's own field chrome in every state */
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images) :is(.atelier-search, .pimg-search) > input:is([type], :not([type])):is(*, :hover, :focus) {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  font-size: var(--odx-ui-fs-body);
  font-weight: 300;
  letter-spacing: var(--odx-ui-ls-body);
  color: var(--odx-ink);
}
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images) :is(.atelier-search, .pimg-search) input:focus { box-shadow: none; border: 0; outline: none; }
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images) :is(.atelier-search, .pimg-search) input::placeholder { color: var(--odx-ui-ink-3); }
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images) :is(.atelier-search, .pimg-search) > button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: max(26px, calc(32 * var(--odx-u)));
  height: max(26px, calc(32 * var(--odx-u)));
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--odx-in-disc);
  color: var(--odx-ink);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .atelier-date {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  height: var(--odx-ui-h);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .atelier-date > svg {
  position: absolute;
  left: max(12px, calc(16 * var(--odx-u)));
  top: 50%;
  translate: 0 -50%;
  width: max(15px, calc(18 * var(--odx-u)));
  height: max(15px, calc(18 * var(--odx-u)));
  color: var(--odx-ui-ink-2);
  pointer-events: none;
  z-index: 1;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .atelier-date select {
  height: 100%;
  min-height: 0;
  min-width: max(170px, calc(232 * var(--odx-u)));
  padding-left: max(36px, calc(46 * var(--odx-u)));
  font-weight: 300;
}
/* gallery */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-gallery {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-gallery > header {
  display: flex;
  align-items: baseline;
  gap: calc(14 * var(--odx-u));
  margin: 0 0 calc(20 * var(--odx-u));
  padding: 0 calc(4 * var(--odx-u));
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-gallery > header h2 {
  margin: 0;
  font-size: var(--odx-ui-fs-title);
  font-weight: 300;
  letter-spacing: var(--odx-ls-title);
  color: var(--odx-ink-strong);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-gallery > header span { font-size: var(--odx-ui-fs-label); letter-spacing: var(--odx-ui-ls-label); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(260px, calc(380 * var(--odx-u))), 1fr));
  gap: var(--odx-in-gap);
  align-items: start;
}
/* one exam = one glass card; the lead panoramic spans the row with its context on the right */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: max(10px, calc(14 * var(--odx-u)));
  min-width: 0;
  margin: 0;
  padding: var(--odx-in-pad);
  border: 0;
  border-radius: var(--odx-in-r);
  background: var(--odx-in-sub-bg);
  box-shadow: var(--odx-in-sub-shadow);
  transition: box-shadow 220ms var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-card:hover { box-shadow: var(--odx-in-sub-shadow-hover); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-card.is-panoramic-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max(200px, calc(300 * var(--odx-u)));
  grid-template-rows: auto;
  gap: var(--odx-in-gap);
  align-items: stretch;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-card.is-panoramic-lead > .rx-atelier-card-context { grid-column: 2; grid-row: 1; padding-top: calc(4 * var(--odx-u)); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-card.is-panoramic-lead > .rx-atelier-card-images { grid-column: 1; grid-row: 1; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-card-context {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: max(4px, calc(6 * var(--odx-u)));
  min-width: 0;
  margin: 0;
  padding: 0 calc(48 * var(--odx-u)) 0 0;
  border: 0;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-card-context > .atelier-chip { align-self: flex-start; width: auto; margin-bottom: max(4px, calc(8 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-card-context > span:not(.atelier-chip) {
  font-size: var(--odx-ui-fs-value);
  font-weight: 300;
  letter-spacing: var(--odx-ls-value);
  color: var(--odx-ink);
  line-height: 1.25;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-card-context > small {
  font-size: var(--odx-ui-fs-label);
  letter-spacing: var(--odx-ui-ls-label);
  color: var(--odx-ui-ink-2);
  line-height: 1.35;
  text-transform: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-card-images,
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-card-images > div {
  display: flex;
  flex-direction: column;
  gap: max(8px, calc(12 * var(--odx-u)));
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-card.is-panoramic-lead .rx-atelier-card-images > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
/* radiograph previews stay dark (an image of film), framed like the reference thumbnails */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--odx-in-r-sm);
  background: radial-gradient(120% 90% at 50% 30%, #1d2221 0%, #0b0d0d 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .04);
  color: rgb(238 243 239 / .72);
  cursor: zoom-in;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-card.is-panoramic-lead .rx-atelier-preview { aspect-ratio: auto; height: max(300px, calc(430 * var(--odx-u))); }
/* the image is pinned to the frame (the grid row is content-sized, so height:100% alone let tall films overflow
   and get clipped at the bottom): the whole radiograph is letterboxed inside the frame */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-preview > img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; border-radius: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-preview > span:not(.rx-atelier-thumb-fallback) {
  position: absolute;
  left: 50%;
  bottom: max(10px, calc(16 * var(--odx-u)));
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: max(6px, calc(8 * var(--odx-u)));
  height: max(30px, calc(38 * var(--odx-u)));
  padding: 0 max(12px, calc(16 * var(--odx-u)));
  border-radius: 999px;
  background: rgb(255 255 255 / .92);
  color: var(--odx-ink);
  font-size: var(--odx-ui-fs-note);
  font-weight: 400;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 180ms var(--odx-ui-ease), translate 180ms var(--odx-ui-ease);
  box-shadow: 0 6px 18px rgb(0 0 0 / .25);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-preview:is(:hover, :focus-visible) > span:not(.rx-atelier-thumb-fallback) { opacity: 1; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-preview > em {
  position: absolute;
  top: max(8px, calc(12 * var(--odx-u)));
  left: max(8px, calc(12 * var(--odx-u)));
  padding: max(3px, calc(4 * var(--odx-u))) max(8px, calc(10 * var(--odx-u)));
  border-radius: 999px;
  background: rgb(0 0 0 / .55);
  color: #fff;
  font-style: normal;
  font-size: var(--odx-ui-fs-micro);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-thumb-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: max(6px, calc(10 * var(--odx-u)));
  font-size: var(--odx-ui-fs-note);
  font-weight: 300;
  color: rgb(238 243 239 / .66);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-thumb-fallback svg { width: max(24px, calc(30 * var(--odx-u))); height: max(24px, calc(30 * var(--odx-u))); stroke-width: 1.4; opacity: .8; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .is-selected > .rx-atelier-preview { box-shadow: 0 0 0 2px var(--odx-ui-emerald), 0 0 0 6px rgb(12 143 96 / .14); }
/* image actions: compact glass buttons; the original download as a round disc */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-image-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: max(6px, calc(8 * var(--odx-u)));
  width: auto;
  margin: 0;
  padding: 0;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-card.is-panoramic-lead .rx-atelier-image-actions {
  position: absolute;
  right: var(--odx-in-pad);
  bottom: var(--odx-in-pad);
  width: max(200px, calc(300 * var(--odx-u)));
  justify-content: flex-start;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-image-actions > button {
  display: inline-flex;
  align-items: center;
  gap: max(6px, calc(8 * var(--odx-u)));
  height: var(--odx-ui-h-sm);
  min-height: 0;
  padding: 0 max(12px, calc(16 * var(--odx-u)));
  border: 0;
  border-radius: max(10px, calc(13 * var(--odx-u)));
  background: rgb(255 255 255 / .9);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .1), 0 1px 1px rgb(13 13 13 / .03);
  color: var(--odx-ink);
  font-size: var(--odx-ui-fs-note);
  font-weight: 400;
  letter-spacing: -0.025em;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-image-actions > button:first-child { background: var(--odx-ui-mint); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-image-actions > button:hover { background: #fff; box-shadow: inset 0 0 0 1px rgb(13 13 13 / .18), var(--odx-ui-raise); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-image-actions > button:first-child:hover { background: var(--odx-ui-mint-hover); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-image-actions > :is(button, a) svg { width: max(14px, calc(17 * var(--odx-u))); height: max(14px, calc(17 * var(--odx-u))); stroke-width: 1.6; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-image-actions > a {
  display: inline-grid;
  place-items: center;
  width: var(--odx-ui-h-sm);
  height: var(--odx-ui-h-sm);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--odx-in-disc);
  box-shadow: none;
  color: var(--odx-ink);
  transition: background var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-image-actions > a:hover { background: var(--odx-in-disc-hover); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-card-images .rx-atelier-teeth {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-self: start;
  width: auto;
  gap: max(6px, calc(8 * var(--odx-u)));
  height: max(28px, calc(34 * var(--odx-u)));
  min-height: 0;
  margin: 0;
  padding: 0 max(10px, calc(12 * var(--odx-u)));
  border: 0;
  border-radius: 999px;
  background: rgb(13 13 13 / .04);
  color: var(--odx-ui-ink-2) !important;          /* imagingAtelier.css forces 10-11 px grey with !important */
  font-size: var(--odx-ui-fs-label) !important;
  font-weight: 300;
  letter-spacing: var(--odx-ui-ls-label);
  cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease), color var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-card-images .rx-atelier-teeth:hover { background: rgb(197 252 196 / .55); color: var(--odx-ink) !important; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-archive { color: var(--odx-ink) !important; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-teeth svg { width: max(12px, calc(15 * var(--odx-u))); height: max(12px, calc(15 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-archive {
  position: absolute;
  top: calc(var(--odx-in-pad) - calc(4 * var(--odx-u)));
  right: calc(var(--odx-in-pad) - calc(4 * var(--odx-u)));
  z-index: 2;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: max(8px, calc(12 * var(--odx-u)));
  font-size: var(--odx-ui-fs-label);
  color: var(--odx-ui-ink-2);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-pages > button {
  display: inline-grid;
  place-items: center;
  width: var(--odx-ui-icon-d-sm);
  height: var(--odx-ui-icon-d-sm);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--odx-in-disc);
  color: var(--odx-ink);
  font-size: var(--odx-ui-fs-body);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-pages > button:disabled { opacity: .35; cursor: default; }
/* notices + empty */
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images) .atelier-notice {
  display: flex;
  align-items: center;
  gap: max(8px, calc(12 * var(--odx-u)));
  margin: 0 0 var(--odx-in-gap-sm);
  padding: max(10px, calc(12 * var(--odx-u))) max(14px, calc(18 * var(--odx-u)));
  border: 0;
  border-radius: max(12px, calc(16 * var(--odx-u)));
  background: var(--odx-ui-ok-bg);
  color: var(--odx-ui-ok-ink);
  font-size: var(--odx-ui-fs-note);
}
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images) .atelier-notice.error { background: var(--odx-ui-danger-bg); color: var(--odx-ui-danger-ink); }
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images) .atelier-notice > span { flex: 1 1 auto; }
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images) .atelier-notice > button { min-height: 0; height: max(28px, calc(34 * var(--odx-u))); padding: 0 max(10px, calc(12 * var(--odx-u))); border: 0; border-radius: 999px; background: rgb(255 255 255 / .7); color: inherit; font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images) :is(.atelier-empty, .pimg-empty) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: max(8px, calc(10 * var(--odx-u)));
  padding: calc(70 * var(--odx-u)) var(--odx-in-pad);
  border: 0;
  border-radius: var(--odx-in-r);
  background: var(--odx-in-glow), var(--odx-in-sub-bg);
  box-shadow: var(--odx-in-sub-shadow);
  text-align: center;
}
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images) :is(.atelier-empty, .pimg-empty) > svg {
  box-sizing: content-box;
  padding: max(12px, calc(16 * var(--odx-u)));
  border-radius: 50%;
  background: rgb(197 252 196 / .5);
  color: var(--odx-ui-emerald-ink);
  stroke-width: 1.5;
}
/* =========================================================================================== PHOTOS (list) */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg.imaging-atelier {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--odx-ink);
  font-size: var(--odx-ui-fs-body);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-head-actions { display: flex; align-items: center; gap: var(--odx-in-gap-sm); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-segment[role="tablist"] {
  padding: calc(5 * var(--odx-u));
  border-radius: calc(17 * var(--odx-u));
  background: rgb(13 13 13 / .03);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .04);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images :is(.pimg-segment, .atelier-source-tabs)[role="tablist"] > button {
  gap: max(6px, calc(9 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-segment[role="tablist"] > button .pimg-mode-label {
  display: inline;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}
/* count badges in the pills (Corbeille n, Caméra n, Photos n) */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images :is(.pimg-segment, .atelier-source-tabs)[role="tablist"] > button > span:not(.pimg-mode-label) {
  display: inline-grid;
  place-items: center;
  min-width: max(20px, calc(26 * var(--odx-u)));
  height: max(20px, calc(26 * var(--odx-u)));
  margin: 0;
  padding: 0 max(6px, calc(8 * var(--odx-u)));
  border-radius: 999px;
  background: rgb(13 13 13 / .06);
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-micro);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images :is(.pimg-segment, .atelier-source-tabs)[role="tablist"] > button[aria-selected="true"] > span:not(.pimg-mode-label) { background: rgb(255 255 255 / .65); color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-import { flex: none; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-source-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--odx-in-gap-sm);
  margin: 0 0 var(--odx-in-gap);
  padding: 0;
  max-width: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-layout {
  display: inline-flex;
  align-items: center;
  gap: max(6px, calc(10 * var(--odx-u)));
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-layout > button[aria-pressed="true"] { background: var(--odx-pill-dark); color: var(--odx-on-dark); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-layout > button:disabled { opacity: .38; cursor: not-allowed; }
/* library + context column */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max(240px, calc(340 * var(--odx-u)));
  gap: var(--odx-in-gap);
  align-items: start;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-library { min-width: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--odx-in-gap-sm);
  margin: 0 0 calc(18 * var(--odx-u));
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
/* the advanced filters live behind « Filtres » (the platform's own toggle) */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg .pimg-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: max(6px, calc(8 * var(--odx-u)));
  height: var(--odx-ui-h);
  min-height: 0;
  padding: 0 var(--odx-ui-pad-x);
  border: 0;
  border-radius: var(--odx-ui-r-control);
  background: var(--odx-ui-surface);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .11), 0 1px 1px rgb(13 13 13 / .03);
  color: var(--odx-ink);
  font-size: var(--odx-ui-fs-button);
  font-weight: 400;
  letter-spacing: -0.027em;
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg .pimg-filter-toggle::before {
  content: "";
  width: max(14px, calc(18 * var(--odx-u)));
  height: max(14px, calc(18 * var(--odx-u)));
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg .pimg-filter-toggle:hover { background: #fff; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg .pimg-filter-toggle[aria-expanded="true"] { background: var(--odx-ui-mint); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg .pimg-advanced { display: none; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg .pimg-advanced.open {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: max(8px, calc(12 * var(--odx-u)));
  flex-basis: 100%;
  padding: max(12px, calc(16 * var(--odx-u)));
  border-radius: var(--odx-in-r-sm);
  background: rgb(13 13 13 / .025);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .045);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-advanced .pimg-select-field { display: block; flex: 1 1 max(140px, calc(190 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-advanced .pimg-select-field select { width: 100%; max-width: none; height: var(--odx-ui-h-sm); min-height: 0; border-radius: var(--odx-ui-r-field); font-weight: 300; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-advanced .pimg-select-field.active select { border-color: var(--odx-ui-emerald); background-color: rgb(197 252 196 / .3); color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-advanced .pimg-toolbar-gap { flex: 0 0 1px; align-self: stretch; margin: 0 max(4px, calc(6 * var(--odx-u))); background: rgb(13 13 13 / .08); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: max(8px, calc(10 * var(--odx-u))) calc(22 * var(--odx-u));
  margin: 0 0 calc(18 * var(--odx-u));
  padding: 0 calc(4 * var(--odx-u));
  font-size: var(--odx-ui-fs-label);
  letter-spacing: var(--odx-ui-ls-label);
  color: var(--odx-ui-ink-2);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-summary > span:first-child { font-size: var(--odx-ui-fs-body); color: var(--odx-ink); font-weight: 400; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images :is(.pimg-check-all, .pimg-group-check) {
  display: inline-flex;
  align-items: center;
  gap: max(8px, calc(10 * var(--odx-u)));
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-size: var(--odx-ui-fs-label);
  font-weight: 300;
  color: var(--odx-ui-ink-2);
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--odx-ui-emerald-ink);
  font-size: var(--odx-ui-fs-label);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(10 115 80 / .35);
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-trash-note { font-size: var(--odx-ui-fs-label); color: var(--odx-ui-ink-2); }
/* groups (Par séance / vue / étape) */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-group {
  margin: 0 0 var(--odx-in-gap);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-group > header {
  display: flex;
  align-items: center;
  gap: max(10px, calc(14 * var(--odx-u)));
  margin: 0 0 calc(16 * var(--odx-u));
  padding: 0 calc(4 * var(--odx-u)) calc(12 * var(--odx-u));
  border-bottom: 1px solid var(--odx-in-line);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-group > header h2 {
  margin: 0;
  font-size: var(--odx-ui-fs-value);
  font-weight: 400;
  letter-spacing: var(--odx-ls-value);
  color: var(--odx-ink);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-group > header > span { font-size: var(--odx-ui-fs-label); color: var(--odx-ui-ink-2); letter-spacing: var(--odx-ui-ls-label); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(200px, calc(300 * var(--odx-u))), 1fr));
  gap: var(--odx-in-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-grid > li {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: max(8px, calc(10 * var(--odx-u)));
  border: 0;
  border-radius: var(--odx-in-r);
  background: var(--odx-in-sub-bg);
  box-shadow: var(--odx-in-sub-shadow);
  overflow: visible;
  transition: box-shadow 220ms var(--odx-ui-ease), transform 220ms var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-grid > li:hover { box-shadow: var(--odx-in-sub-shadow-hover); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-grid > li.selected { box-shadow: inset 0 0 0 2px var(--odx-ui-emerald), 0 0 0 5px rgb(12 143 96 / .12), var(--odx-in-sub-shadow); outline: none; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--odx-in-r-sm);
  background: linear-gradient(160deg, #eef3ee 0%, #e4ebe4 100%);
  cursor: zoom-in;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 380ms var(--odx-ui-ease); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-thumb:hover img { transform: scale(1.025); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-nofile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: max(6px, calc(10 * var(--odx-u)));
  width: 100%;
  height: 100%;
  background: none;
  color: var(--odx-ui-ink-3);
  font-size: var(--odx-ui-fs-label);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-nofile svg { width: max(22px, calc(28 * var(--odx-u))); height: max(22px, calc(28 * var(--odx-u))); stroke-width: 1.4; }
/* selection checkbox floats on the photo, top-left, in a white disc */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-grid > li > label.pimg-select {
  position: absolute;
  top: max(14px, calc(20 * var(--odx-u)));
  left: max(14px, calc(20 * var(--odx-u)));
  z-index: 2;
  display: grid;
  place-items: center;
  width: max(30px, calc(38 * var(--odx-u)));
  height: max(30px, calc(38 * var(--odx-u)));
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / .9);
  box-shadow: 0 2px 8px rgb(13 13 13 / .12);
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-grid > li > label.pimg-select > input { margin: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-grid > li > label.pimg-select { justify-content: center; align-content: center; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-meta {
  display: flex;
  flex-direction: column;
  gap: max(3px, calc(4 * var(--odx-u)));
  min-width: 0;
  margin: 0;
  padding: max(10px, calc(14 * var(--odx-u))) max(6px, calc(8 * var(--odx-u))) max(4px, calc(6 * var(--odx-u)));
  background: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-meta > strong {
  overflow: hidden;
  font-size: var(--odx-ui-fs-body);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--odx-ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-meta > span:not(.pimg-chips) { font-size: var(--odx-ui-fs-label); letter-spacing: var(--odx-ui-ls-label); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-chips { display: flex; flex-wrap: wrap; gap: max(4px, calc(6 * var(--odx-u))); margin-top: max(4px, calc(6 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-meta .pimg-icon {
  display: inline-grid;
  place-items: center;
  width: var(--odx-ui-icon-d-sm);
  height: var(--odx-ui-icon-d-sm);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--odx-in-disc);
  color: var(--odx-ink);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-icon.danger { color: var(--odx-ui-danger); }
/* selection bar (Tout désélectionner · Comparer les photos · Supprimer ...) */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-bulkbar {
  position: sticky;
  bottom: calc(20 * var(--odx-u));
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: max(8px, calc(12 * var(--odx-u)));
  margin: 0 0 var(--odx-in-gap-sm);
  padding: max(8px, calc(10 * var(--odx-u))) max(10px, calc(12 * var(--odx-u))) max(8px, calc(10 * var(--odx-u))) max(16px, calc(22 * var(--odx-u)));
  border: 0;
  border-radius: max(16px, calc(20 * var(--odx-u)));
  background: rgb(33 31 31 / .94);
  box-shadow: 0 calc(18 * var(--odx-u)) calc(40 * var(--odx-u)) calc(-16 * var(--odx-u)) rgb(0 0 0 / .4);
  color: var(--odx-on-dark);
  font-size: var(--odx-ui-fs-note);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-bulkbar > :is(span, strong) { color: var(--odx-on-dark); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-bulkbar :is(button, .secondary-button, .primary-button, .danger-button) {
  min-height: var(--odx-ui-h-sm);
  height: var(--odx-ui-h-sm);
  padding: 0 max(12px, calc(16 * var(--odx-u)));
  border: 0;
  border-radius: max(10px, calc(13 * var(--odx-u)));
  background: rgb(255 255 255 / .1);
  box-shadow: none;
  color: var(--odx-on-dark);
  font-size: var(--odx-ui-fs-note);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-bulkbar :is(button, .secondary-button):hover:not(:disabled) { background: rgb(255 255 255 / .18); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-bulkbar .primary-button { background: var(--odx-ui-mint); color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-bulkbar .danger-button { background: rgb(208 69 58 / .22); color: #ffd9d4; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-bulkbar button:disabled { opacity: .4; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images :is(.pimg-banner, .pimg-uploads) {
  margin: 0 0 var(--odx-in-gap-sm);
  padding: max(10px, calc(12 * var(--odx-u))) max(14px, calc(18 * var(--odx-u)));
  border: 0;
  border-radius: max(12px, calc(16 * var(--odx-u)));
  background: var(--odx-ui-info-bg);
  color: var(--odx-ui-info-ink);
  font-size: var(--odx-ui-fs-note);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-banner.warn { background: var(--odx-ui-warn-bg); color: var(--odx-ui-warn-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-banner.error { background: var(--odx-ui-danger-bg); color: var(--odx-ui-danger-ink); }
/* context column (Photographies du dossier / Dans cette séance) */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-context {
  position: sticky;
  top: calc(24 * var(--odx-u));
  display: flex;
  flex-direction: column;
  gap: calc(22 * var(--odx-u));
  margin: 0;
  padding: var(--odx-in-pad) calc(24 * var(--odx-u));
  border: 0;
  border-radius: var(--odx-in-r);
  background: var(--odx-in-glow), var(--odx-in-sub-bg);
  box-shadow: var(--odx-in-sub-shadow);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-context > section { display: flex; flex-direction: column; gap: max(6px, calc(8 * var(--odx-u))); margin: 0; padding: 0; border: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-context > section + section { padding-top: calc(20 * var(--odx-u)); border-top: 1px solid var(--odx-in-line); }
/* the platform writes « PHOTOGRAPHIES DU DOSSIER »: sentence case, light, tight — like every dossier label */
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--images, .odx-s-sectioncard--radiology) .atelier-eyebrow {
  font-size: var(--odx-ui-fs-label);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--odx-ui-ink-2);
}
:is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--images, .odx-s-sectioncard--radiology) .atelier-eyebrow::first-letter { text-transform: uppercase; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-context h2 {
  margin: 0;
  font-size: var(--odx-ui-fs-title);
  font-weight: 300;
  letter-spacing: var(--odx-ls-title);
  line-height: 1.2;
  color: var(--odx-ink-strong);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-context h3 {
  margin: 0;
  font-size: var(--odx-ui-fs-subtitle);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--odx-ink);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-context p { margin: 0; font-size: var(--odx-ui-fs-note); line-height: 1.5; color: var(--odx-ui-ink-2); font-weight: 300; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-context dl { display: flex; flex-direction: column; margin: max(4px, calc(6 * var(--odx-u))) 0 0; padding: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-context dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(14 * var(--odx-u));
  padding: max(8px, calc(11 * var(--odx-u))) 0;
  border: 0;
  border-bottom: 1px solid var(--odx-in-line);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-context dt { font-size: var(--odx-ui-fs-label); color: var(--odx-ui-ink-2); letter-spacing: var(--odx-ui-ls-label); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-context dd { margin: 0; font-size: var(--odx-ui-fs-note); color: var(--odx-ink); text-align: right; font-weight: 400; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-context .atelier-text-action {
  align-self: flex-start;
  min-height: 0;
  margin-top: max(4px, calc(8 * var(--odx-u)));
  font-size: var(--odx-ui-fs-note) !important;    /* imagingAtelier.css forces 13 px with !important */
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-context .atelier-text-action svg { width: max(13px, calc(16 * var(--odx-u))); height: max(13px, calc(16 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-context-foot {
  display: flex;
  align-items: flex-start;
  gap: max(8px, calc(10 * var(--odx-u)));
  margin: 0;
  padding: max(10px, calc(14 * var(--odx-u)));
  border: 0;
  border-radius: max(12px, calc(16 * var(--odx-u)));
  background: rgb(13 13 13 / .03);
  color: var(--odx-ui-ink-2);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-context-foot svg { flex: none; margin-top: 2px; width: max(14px, calc(17 * var(--odx-u))); height: max(14px, calc(17 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-context-foot p { font-size: var(--odx-ui-fs-label); line-height: 1.45; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images :is(.atelier-camera-guide, .atelier-review-card) {
  margin: 0;
  padding: max(12px, calc(16 * var(--odx-u)));
  border: 0;
  border-radius: max(12px, calc(16 * var(--odx-u)));
  background: rgb(13 13 13 / .03);
  box-shadow: none;
}
/* compare layout (two photos side by side, inline in the page) */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-comparison {
  margin: 0 0 var(--odx-in-gap);
  padding: var(--odx-in-pad);
  border: 0;
  border-radius: var(--odx-in-r);
  background: var(--odx-dk-bg);
  box-shadow: 0 calc(20 * var(--odx-u)) calc(44 * var(--odx-u)) calc(-24 * var(--odx-u)) rgb(0 0 0 / .45);
  color: var(--odx-dk-ink);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-comparison > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: max(10px, calc(14 * var(--odx-u))); margin: 0 0 max(14px, calc(18 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-comparison > header h2 { margin: 0; color: var(--odx-dk-ink); font-size: var(--odx-ui-fs-title); font-weight: 300; letter-spacing: var(--odx-ls-title); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-comparison > header h2 > span { margin-left: max(8px, calc(12 * var(--odx-u))); color: var(--odx-dk-ink-2); font-size: var(--odx-ui-fs-label); letter-spacing: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-comparison > header > div { display: flex; gap: max(6px, calc(8 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-comparison button {
  display: inline-flex;
  align-items: center;
  gap: max(6px, calc(8 * var(--odx-u)));
  min-height: 0;
  height: var(--odx-ui-h-sm);
  padding: 0 max(12px, calc(16 * var(--odx-u)));
  border: 0;
  border-radius: max(10px, calc(13 * var(--odx-u)));
  background: var(--odx-dk-disc);
  box-shadow: none;
  color: var(--odx-dk-ink);
  font-size: var(--odx-ui-fs-note);
  font-weight: 400;
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-comparison button:hover:not(:disabled) { background: var(--odx-dk-disc-hover); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-comparison button:disabled { opacity: .35; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-photo-pair { gap: max(10px, calc(14 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-photo-pair figure {
  margin: 0;
  padding: max(8px, calc(10 * var(--odx-u)));
  border-radius: var(--odx-in-r-sm);
  background: var(--odx-dk-panel);
  box-shadow: inset 0 0 0 1px var(--odx-dk-line);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-photo-pair figcaption { display: flex; align-items: center; justify-content: space-between; margin: 0 0 max(6px, calc(8 * var(--odx-u))); padding: 0 max(4px, calc(6 * var(--odx-u))); color: var(--odx-dk-ink); font-size: var(--odx-ui-fs-note); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-photo-pair figure:first-child figcaption > span::before { background: #8ef0b4; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-photo-pair figcaption > button { width: max(30px, calc(36 * var(--odx-u))); height: max(30px, calc(36 * var(--odx-u))); padding: 0; justify-content: center; border-radius: 50%; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-photo-original { border-radius: max(12px, calc(14 * var(--odx-u))); background: var(--odx-dk-stage); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-photo-original .pimg-stage { background: var(--odx-dk-stage); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-photo-pair figure small { margin-top: max(6px, calc(8 * var(--odx-u))); padding: 0 max(4px, calc(6 * var(--odx-u))); color: var(--odx-dk-ink-2); font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-photo-pair figure > a { padding: 0 max(4px, calc(6 * var(--odx-u))); color: #8ef0b4; font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-comparison :is(h2, h3, strong, span, p, small) { color: inherit; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-comparison-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: max(8px, calc(10 * var(--odx-u)));
  width: fit-content;
  max-width: 100%;
  margin: max(12px, calc(16 * var(--odx-u))) auto 0;
  padding: max(5px, calc(6 * var(--odx-u))) max(10px, calc(12 * var(--odx-u)));
  border: 0;
  border-radius: 999px;
  background: var(--odx-dk-panel-2);
  box-shadow: inset 0 0 0 1px var(--odx-dk-line);
  color: var(--odx-dk-ink);
  font-size: var(--odx-ui-fs-note);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-comparison-dock > span { color: var(--odx-dk-ink); font-variant-numeric: tabular-nums; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-comparison-dock button {
  min-height: 0;
  height: max(30px, calc(36 * var(--odx-u)));
  padding: 0 max(10px, calc(14 * var(--odx-u)));
  border: 0;
  border-radius: 999px;
  background: var(--odx-dk-disc);
  color: var(--odx-dk-ink);
  box-shadow: none;
}
/* in comparison the platform turns each group into a filmstrip of small thumbnails */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-group.is-filmstrip .pimg-grid { display: flex; gap: max(10px, calc(14 * var(--odx-u))); overflow-x: auto; padding: 4px 4px max(8px, calc(10 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-group.is-filmstrip .pimg-grid > li { flex: none; width: max(130px, calc(176 * var(--odx-u))); padding: max(6px, calc(7 * var(--odx-u))); border-radius: max(14px, calc(18 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-group.is-filmstrip .pimg-thumb { border-radius: max(10px, calc(12 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-group.is-filmstrip .pimg-grid > li > label.pimg-select { top: max(10px, calc(12 * var(--odx-u))); left: max(10px, calc(12 * var(--odx-u))); width: max(24px, calc(28 * var(--odx-u))); height: max(24px, calc(28 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-group.is-filmstrip .pimg-meta { padding: max(6px, calc(8 * var(--odx-u))) max(4px, calc(5 * var(--odx-u))) 2px; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-group.is-filmstrip .pimg-meta > strong { font-size: var(--odx-ui-fs-note); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-group.is-filmstrip .pimg-meta > span:not(.pimg-chips) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--odx-ui-fs-micro); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-group.is-filmstrip .pimg-nofile { font-size: var(--odx-ui-fs-micro); text-align: center; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg-bulkbar.is-comparing { position: static; margin-top: max(12px, calc(16 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-comparison-dock button:hover:not(:disabled) { background: var(--odx-dk-disc-hover); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-dock-divider { width: 1px; height: max(18px, calc(24 * var(--odx-u))); background: var(--odx-dk-line-2); }
/* ============================================================================ SCANS 3D + SIMULATION ORTHO */
/* the viewers' own tokens, aligned on the dossier theme (only on the Imagerie pages: the Soins stage keeps its own) */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan,
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho {
  --odx-scan-accent: var(--odx-ui-emerald);
  --odx-scan-accent-ink: var(--odx-ui-emerald-ink);
  --odx-scan-mint: var(--odx-mint-gradient);
  --odx-scan-mint-ink: var(--odx-ink);
  --odx-scan-ink: var(--odx-ink);
  --odx-scan-ink-2: rgb(13 13 13 / .66);
  --odx-scan-ink-3: rgb(13 13 13 / .58);
  --odx-scan-line: rgb(13 13 13 / .07);
  --odx-scan-glass: rgb(255 255 255 / .74);
  --odx-scan-glass-strong: rgb(255 255 255 / .92);
  --odx-scan-radius: max(18px, calc(26 * var(--odx-u)));
  --odx-scan-shadow: var(--odx-in-sub-shadow);
  --odx-ortho-accent: var(--odx-ui-emerald);
  --odx-ortho-accent-ink: var(--odx-ui-emerald-ink);
  --odx-ortho-mint: var(--odx-mint-gradient);
  --odx-ortho-mint-ink: var(--odx-ink);
  --odx-ortho-dark: var(--odx-pill-dark);
  --odx-ortho-ink: var(--odx-ink);
  --odx-ortho-ink-2: rgb(13 13 13 / .66);
  --odx-ortho-ink-3: rgb(13 13 13 / .58);
  --odx-ortho-line: rgb(13 13 13 / .07);
  --odx-ortho-glass: rgb(255 255 255 / .74);
  --odx-ortho-glass-strong: rgb(255 255 255 / .92);
  --odx-ortho-radius: max(18px, calc(26 * var(--odx-u)));
  --odx-ortho-shadow: var(--odx-in-sub-shadow);
  font-family: var(--odx-font);
}
/* the page panels sit directly in the dossier's section card (no card inside the card) */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d > .odx-scan-panel {
  gap: var(--odx-in-gap);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-head { align-items: center; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-head-text { display: block; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-title,
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-page-title {
  gap: max(8px, calc(12 * var(--odx-u)));
  margin: 0;
  font-size: max(20px, var(--odx-fs-title-lg));
  font-weight: 300;
  letter-spacing: var(--odx-ls-title-lg);
  line-height: 1.2;
  color: var(--odx-ink-strong);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-title svg,
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-page-title svg {
  box-sizing: content-box;
  width: max(14px, calc(17 * var(--odx-u)));
  height: max(14px, calc(17 * var(--odx-u)));
  padding: max(7px, calc(8 * var(--odx-u)));
  border-radius: 50%;
  background: rgb(197 252 196 / .55);
  color: var(--odx-ui-emerald-ink);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-sub,
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-page-sub {
  margin: max(4px, calc(7 * var(--odx-u))) 0 0;
  font-size: max(12.5px, var(--odx-fs-note));
  letter-spacing: -0.03em;
  font-weight: 300;
  color: var(--odx-ui-ink-2);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-count { font-size: var(--odx-ui-fs-chip); padding: max(4px, calc(6 * var(--odx-u))) max(10px, calc(14 * var(--odx-u))); background: var(--odx-chip-lime); color: var(--odx-ink); font-weight: 400; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d :is(.odx-scan-segment, .odx-scan-presets, .odx-scan-chips) { padding: calc(4 * var(--odx-u)); border: 0; border-radius: calc(16 * var(--odx-u)); background: rgb(255 255 255 / .8); box-shadow: inset 0 0 0 1px rgb(13 13 13 / .06), 0 calc(6 * var(--odx-u)) calc(16 * var(--odx-u)) calc(-8 * var(--odx-u)) rgb(24 48 30 / .16); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-btn { padding: max(7px, calc(10 * var(--odx-u))) max(10px, calc(14 * var(--odx-u))); border-radius: var(--odx-r-tab); font-size: var(--odx-ui-fs-label); font-weight: 400; letter-spacing: -0.02em; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-btn.is-pressed { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-icon-btn { width: var(--odx-ui-icon-d); height: var(--odx-ui-icon-d); border: 0; border-radius: 50%; background: rgb(255 255 255 / .85); box-shadow: inset 0 0 0 1px rgb(13 13 13 / .06); color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d :is(.odx-scan-range-label, .odx-scan-range-value) { font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-btn.is-primary { padding: 0 max(14px, calc(18 * var(--odx-u))); min-height: var(--odx-ui-h-sm); background: var(--odx-ui-mint); color: var(--odx-ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-overlay-title { font-size: var(--odx-ui-fs-subtitle); font-weight: 400; letter-spacing: -0.02em; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-overlay-text { font-size: var(--odx-ui-fs-note); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-pill { font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-body { gap: var(--odx-in-gap); grid-template-columns: max(220px, calc(300 * var(--odx-u))) minmax(0, 1fr); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-item { padding: max(8px, calc(10 * var(--odx-u))); border: 0; border-radius: max(14px, calc(18 * var(--odx-u))); background: var(--odx-in-sub-bg); box-shadow: var(--odx-in-sub-shadow); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-item.is-selected { box-shadow: inset 0 0 0 2px var(--odx-ui-emerald), 0 0 0 5px rgb(12 143 96 / .12); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-item-label { font-size: var(--odx-ui-fs-body); font-weight: 400; letter-spacing: -0.03em; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-item-date { font-size: var(--odx-ui-fs-note); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-item-meta { font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-stage { border-radius: var(--odx-in-r); box-shadow: var(--odx-in-sub-shadow); border: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-empty {
  min-height: max(260px, calc(380 * var(--odx-u)));
  border: 0;
  border-radius: var(--odx-in-r);
  background: var(--odx-in-glow), var(--odx-in-sub-bg);
  box-shadow: var(--odx-in-sub-shadow);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-empty-icon {
  width: max(48px, calc(64 * var(--odx-u)));
  height: max(48px, calc(64 * var(--odx-u)));
  border-radius: 50%;
  background: rgb(197 252 196 / .55);
  color: var(--odx-ui-emerald-ink);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-empty-title { font-size: var(--odx-ui-fs-subtitle); font-weight: 400; letter-spacing: -0.02em; color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--scans3d .odx-scan-empty-text { max-width: calc(640 * var(--odx-u)); font-size: var(--odx-ui-fs-note); line-height: 1.55; color: var(--odx-ui-ink-2); }
/* ortho page: header, stage, side cards, movement table */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--odx-in-gap-sm); margin: 0 0 var(--odx-in-gap); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-page-tags { gap: max(6px, calc(8 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-page-tags > * { font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-page-grid { gap: var(--odx-in-gap); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-page-main { gap: var(--odx-in-gap); min-width: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-page-stage { overflow: hidden; isolation: isolate; border-radius: var(--odx-in-r); box-shadow: var(--odx-in-sub-shadow); border: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-side { gap: var(--odx-in-gap-sm); min-width: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-panel {
  min-width: 0;
  overflow: hidden;
  padding: var(--odx-in-pad);
  border: 0;
  border-radius: var(--odx-in-r);
  background: var(--odx-in-sub-bg);
  box-shadow: var(--odx-in-sub-shadow);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-panel-title { font-size: var(--odx-ui-fs-subtitle); font-weight: 400; letter-spacing: -0.02em; color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-hint,
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-method { font-size: var(--odx-ui-fs-note); line-height: 1.5; color: var(--odx-ui-ink-2); }
/* tables inside the ortho page are the viewer's own: undo the legacy-table restyle that leaks into their cells */
/* styles.css gives every bare <table> min-width: 760px: the side card's metrics table must fit its 300-unit card */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho :is(.odx-ortho-table, .odx-ortho-metrics-table) { width: 100%; min-width: 0; table-layout: auto; border-collapse: collapse; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-metrics-table thead th { font-size: var(--odx-ui-fs-label); font-weight: 400; color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-metrics-table tbody th { font-weight: 300; color: rgb(13 13 13 / .7); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-metrics-table td { font-weight: 400; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-metrics-table :is(th, td):first-child { width: 46%; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-ipr-list { max-height: max(240px, calc(300 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-ipr-list > li { font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-row-name { font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-ipr-total { font-size: var(--odx-ui-fs-label); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-panel-title small { font-size: var(--odx-ui-fs-micro); color: var(--odx-ui-ink-2); font-weight: 300; white-space: nowrap; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho :is(.odx-ortho-test-badge, .odx-ortho-disclaimer) { font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho :is(.odx-ortho-table, .odx-ortho-metrics-table) :is(th, td) {
  height: auto;
  padding: max(6px, calc(9 * var(--odx-u))) max(6px, calc(10 * var(--odx-u)));
  font-size: var(--odx-ui-fs-note);
  letter-spacing: -0.02em;
  line-height: 1.3;
  white-space: nowrap;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-table th { font-size: var(--odx-ui-fs-label); font-weight: 300; color: var(--odx-ui-ink-2); }
/* « Mouvements planifiés par dent » must fit its card (2000 / 1440 / 1280): the header's sort button already
   carries the cell padding (ortho.css), so the th adds none (the cell rule above doubled it on every column),
   and the tooth column may put a long tooth name under its number when the card is tight */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-table th:has(> button) { padding: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-table th button { padding-left: max(6px, calc(10 * var(--odx-u))); padding-right: max(6px, calc(10 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-table td:first-child { white-space: normal; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-table .odx-ortho-row-btn { text-align: left; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-metrics-table { table-layout: fixed; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-metrics-table :is(th, td) { white-space: normal; padding-left: 0; padding-right: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-metrics-table :is(th, td):not(:first-child) { text-align: right; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-table-wrap { overflow-x: auto; border-radius: var(--odx-in-r); }
/* narrow stages: the right-hand control group wraps instead of sliding under the Avant · Évolution · Après switch */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--ortho .odx-ortho-float.is-top-right > * { flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }
/* ================================================================================================ NOTES */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-notes-card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-notes-card .patient-documents-title-row > .patient-document-action { position: static; flex: none; width: auto; min-width: 0; height: auto; min-height: var(--odx-ui-h); margin: 0; padding: 0 var(--odx-ui-pad-x); align-self: center; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-notes-card > .patient-documents-title-row { min-height: 0; height: auto; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-notes-groups { display: flex; flex-direction: column; gap: var(--odx-in-gap); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(280px, calc(440 * var(--odx-u))), 1fr));
  gap: var(--odx-in-gap);
  align-items: start;
  margin: 0;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-card {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--odx-in-r);
  background: var(--odx-in-sub-bg);
  box-shadow: var(--odx-in-sub-shadow);
  transition: box-shadow 220ms var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-card:hover { box-shadow: var(--odx-in-sub-shadow-hover); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-card.recently-restored { box-shadow: inset 0 0 0 2px var(--odx-ui-emerald), 0 0 0 6px rgb(12 143 96 / .12), var(--odx-in-sub-shadow); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-card-inner {
  display: flex;
  flex-direction: column;
  gap: max(12px, calc(16 * var(--odx-u)));
  height: auto;
  margin: 0;
  padding: var(--odx-in-pad) var(--odx-in-pad) calc(24 * var(--odx-u));
  border: 0;
  border-radius: inherit;
  background: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: calc(14 * var(--odx-u));
  margin: 0;
  padding: 0 0 max(12px, calc(14 * var(--odx-u)));
  border-bottom: 1px solid var(--odx-in-line);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-card-header > div:first-child { display: flex; flex-direction: column; flex: 1 1 auto; gap: max(4px, calc(6 * var(--odx-u))); min-width: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: max(6px, calc(10 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-title-line h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: var(--odx-ui-fs-subtitle);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--odx-ink);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-archive-badge {
  display: inline-flex;
  align-items: center;
  height: max(22px, calc(28 * var(--odx-u)));
  padding: 0 max(9px, calc(12 * var(--odx-u)));
  border: 0;
  border-radius: 999px;
  background: var(--odx-ui-neutral-bg);
  color: var(--odx-ui-neutral-ink);
  font-size: var(--odx-ui-fs-micro);
  font-weight: 400;
  letter-spacing: 0;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: max(4px, calc(7 * var(--odx-u)));
  font-size: var(--odx-ui-fs-label);
  letter-spacing: var(--odx-ui-ls-label);
  color: var(--odx-ui-ink-2);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-meta svg { width: max(12px, calc(15 * var(--odx-u))); height: max(12px, calc(15 * var(--odx-u))); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-card-header > .patient-note-actions { display: flex; flex: none; width: auto; min-width: max-content; gap: max(4px, calc(8 * var(--odx-u))); margin: calc(-4 * var(--odx-u)) calc(-4 * var(--odx-u)) 0 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-actions .plain-icon {
  width: var(--odx-ui-icon-d);
  height: var(--odx-ui-icon-d);
  min-width: 0;
  min-height: 0;
  border-radius: 50%;
}
/* the card previews the note like the platform (about 4¾ lines, scaled to the new type size); the full text opens in the editor */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-html {
  max-height: calc(1.55em * 4.75);
  overflow: hidden;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: var(--odx-ui-fs-body);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.55;
  color: var(--odx-ink);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-html :is(p, ul, ol, h1, h2, h3, blockquote) { margin: 0 0 .5em; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-html > :last-child { margin-bottom: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-html :is(h1, h2, h3) { font-size: var(--odx-ui-fs-value); font-weight: 400; letter-spacing: -0.03em; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-html img { max-width: 100%; height: auto; border-radius: max(10px, calc(14 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-card.archived { background: linear-gradient(180deg, rgb(250 250 249 / .95), rgb(244 245 243 / .95)); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-card.archived .patient-note-html { color: rgb(13 13 13 / .7); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-notes-archive-section { display: flex; flex-direction: column; gap: calc(20 * var(--odx-u)); margin: 0; padding: calc(22 * var(--odx-u)) 0 0; border: 0; border-top: 1px solid var(--odx-in-line); border-radius: 0; background: none; box-shadow: none; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-notes-archived-grid { padding: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-notes-archive-toggle {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: auto;
  gap: max(8px, calc(10 * var(--odx-u)));
  height: var(--odx-ui-h-sm);
  min-height: 0;
  padding: 0 max(14px, calc(18 * var(--odx-u))) 0 max(10px, calc(12 * var(--odx-u)));
  border: 0;
  border-radius: 999px;
  background: rgb(13 13 13 / .04);
  color: var(--odx-ink);
  font-size: var(--odx-ui-fs-note);
  font-weight: 400;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-notes-archive-toggle:hover { background: rgb(13 13 13 / .075); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-notes-archive-toggle svg { width: max(14px, calc(17 * var(--odx-u))); height: max(14px, calc(17 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-notes-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: max(6px, calc(8 * var(--odx-u)));
  padding: calc(64 * var(--odx-u)) var(--odx-in-pad);
  border: 0;
  border-radius: var(--odx-in-r);
  background: var(--odx-in-glow), var(--odx-in-sub-bg);
  box-shadow: var(--odx-in-sub-shadow);
  text-align: center;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-notes-empty-card::before {
  content: "";
  width: max(44px, calc(60 * var(--odx-u)));
  height: max(44px, calc(60 * var(--odx-u)));
  margin-bottom: max(6px, calc(8 * var(--odx-u)));
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a7350' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / 42% no-repeat,
    rgb(197 252 196 / .55);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-notes-empty-title { margin: 0; font-size: var(--odx-ui-fs-subtitle); font-weight: 400; letter-spacing: -0.02em; color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-notes-empty-card > p:not(.patient-notes-empty-title) { margin: 0; font-size: var(--odx-ui-fs-note); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-note-empty-button {
  display: inline-flex;
  align-items: center;
  gap: max(6px, calc(8 * var(--odx-u)));
  height: var(--odx-ui-h);
  min-height: 0;
  margin-top: max(10px, calc(14 * var(--odx-u)));
  padding: 0 var(--odx-ui-pad-x);
  border: 0;
  border-radius: var(--odx-ui-r-control);
  background: var(--odx-ui-mint);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .32);
  color: var(--odx-ink);
  font-size: var(--odx-ui-fs-button);
  font-weight: 400;
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--notes .patient-notes-card > p[role="status"] { margin: 0 0 var(--odx-in-gap-sm); }
/* note editor + delete confirmation (portals) */
/* the platform pins this sheet to 482 px and its form to 389 px: with the larger type the actions fell off the sheet */
:is(.odx-dossier, #odx-skin) .patient-note-source-modal.note-form-modal:is(*, :has(.note-title-field.has-error)) { height: auto; max-height: calc(100dvh - 48px); overflow: auto; }
:is(.odx-dossier, #odx-skin) .patient-note-source-modal .patient-note-source-form:is(*, form) { height: auto; min-height: 0; flex: 1 1 auto; gap: max(14px, calc(20 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .patient-note-source-modal .note-title-field:is(*, div) { height: auto; flex: none; gap: max(8px, calc(10 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .note-form-modal .modal-actions.note-form-actions { height: auto; min-height: 0; flex: none; padding-bottom: 0; }
:is(.odx-dossier, #odx-skin) .notes-delete-alert-modal .danger-button {
  border: 1px solid var(--odx-ui-danger-line);
  background: var(--odx-ui-danger-soft);
  color: var(--odx-ui-danger);
}
:is(.odx-dossier, #odx-skin) .notes-delete-alert-modal .danger-button:hover:not(:disabled) { background: rgb(180 35 24 / .1); border-color: rgb(180 35 24 / .5); }
/* ========================================================================================== ANTÉCÉDENTS */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .odx-antecedents {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: var(--odx-in-gap);
  align-items: start;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .odx-antecedents__medical { min-width: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents :is(.patient-medical-summary, .odx-antecedents__camera) {
  margin: 0;
  padding: calc(24 * var(--odx-u)) calc(26 * var(--odx-u));
  border: 0;
  border-radius: var(--odx-in-r);
  background: var(--odx-in-sub-bg);
  box-shadow: var(--odx-in-sub-shadow);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .odx-antecedents__camera { background: var(--odx-in-glow), var(--odx-in-sub-bg); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .odx-antecedents__title {
  display: flex;
  align-items: center;
  gap: max(10px, calc(14 * var(--odx-u)));
  margin: 0 0 calc(16 * var(--odx-u));
  font-size: var(--odx-ui-fs-title);
  font-weight: 300;
  letter-spacing: var(--odx-ls-title);
  line-height: 1.2;
  color: var(--odx-ink-strong);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .odx-antecedents__title::before {
  content: "";
  flex: none;
  width: max(34px, calc(44 * var(--odx-u)));
  height: max(34px, calc(44 * var(--odx-u)));
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E") center / 46% no-repeat,
    rgb(13 13 13 / .04);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .odx-antecedents__note {
  margin: 0 0 calc(14 * var(--odx-u));
  font-size: var(--odx-ui-fs-note);
  font-weight: 300;
  line-height: 1.55;
  color: var(--odx-ui-ink-2);
}
/* questionnaire summary card */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-summary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--odx-in-gap-sm);
  margin: 0 0 calc(20 * var(--odx-u));
  padding: 0;
  border: 0;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-summary-head > div:first-child { display: flex; align-items: center; gap: max(10px, calc(14 * var(--odx-u))); min-width: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-summary-head > div:first-child > svg {
  box-sizing: content-box;
  flex: none;
  width: max(16px, calc(20 * var(--odx-u)));
  height: max(16px, calc(20 * var(--odx-u)));
  padding: max(9px, calc(12 * var(--odx-u)));
  border-radius: 50%;
  background: #fdefd6;
  color: #9a5a0a;
  stroke-width: 1.6;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-summary-head h2 {
  margin: 0;
  font-size: var(--odx-ui-fs-title);
  font-weight: 300;
  letter-spacing: var(--odx-ls-title);
  line-height: 1.2;
  color: var(--odx-ink-strong);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-summary-head p { margin: max(2px, calc(3 * var(--odx-u))) 0 0; font-size: var(--odx-ui-fs-label); color: var(--odx-ui-ink-2); letter-spacing: var(--odx-ui-ls-label); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-summary-head > div:last-child { display: flex; flex-wrap: wrap; gap: max(8px, calc(10 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-summary-head > div:last-child > button {
  display: inline-flex;
  align-items: center;
  gap: max(6px, calc(8 * var(--odx-u)));
  height: var(--odx-ui-h-sm);
  min-height: 0;
  padding: 0 max(12px, calc(16 * var(--odx-u)));
  border: 0;
  border-radius: var(--odx-ui-r-control);
  background: var(--odx-ui-surface);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .11), 0 1px 1px rgb(13 13 13 / .03);
  color: var(--odx-ink);
  font-size: var(--odx-ui-fs-note);
  font-weight: 400;
  letter-spacing: -0.025em;
  cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-summary-head > div:last-child > button:hover:not(:disabled) { background: #fff; box-shadow: inset 0 0 0 1px rgb(13 13 13 / .2), var(--odx-ui-raise); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-summary-head > div:last-child > button svg { width: max(14px, calc(17 * var(--odx-u))); height: max(14px, calc(17 * var(--odx-u))); stroke-width: 1.6; }
/* highlighted answers: a soft amber-ruled grid, like the reference's label / value pairs */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-summary-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(220px, calc(330 * var(--odx-u))), 1fr));
  gap: max(10px, calc(14 * var(--odx-u)));
  margin: 0 0 calc(18 * var(--odx-u));
  padding: 0;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-summary-items > div {
  display: flex;
  flex-direction: column;
  gap: max(4px, calc(6 * var(--odx-u)));
  min-width: 0;
  margin: 0;
  padding: max(12px, calc(14 * var(--odx-u))) max(14px, calc(16 * var(--odx-u)));
  border: 0;
  border-radius: max(12px, calc(16 * var(--odx-u)));
  background: rgb(253 239 214 / .55);
  box-shadow: inset 0 0 0 1px rgb(227 154 28 / .14);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-summary-items strong {
  font-size: var(--odx-ui-fs-label);
  font-weight: 400;
  letter-spacing: var(--odx-ui-ls-label);
  line-height: 1.35;
  color: rgb(13 13 13 / .7);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-summary-items span {
  font-size: var(--odx-ui-fs-body);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.35;
  color: var(--odx-ink);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-empty { font-size: var(--odx-ui-fs-note); color: var(--odx-ui-ink-2); }
/* disclosures: Consulter toutes les réponses · Antécédents antérieurs */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-all-answers {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--odx-in-line);
  background: none;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-all-answers > summary {
  display: flex;
  align-items: center;
  gap: max(8px, calc(12 * var(--odx-u)));
  width: 100%;
  min-height: max(48px, calc(62 * var(--odx-u)));
  margin: 0;
  padding: 0 calc(4 * var(--odx-u));
  list-style: none;
  font-size: var(--odx-ui-fs-body);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--odx-ink);
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-all-answers > summary::-webkit-details-marker { display: none; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-all-answers > summary > svg {
  box-sizing: content-box;
  order: 2;
  margin-left: auto;
  width: max(14px, calc(17 * var(--odx-u)));
  height: max(14px, calc(17 * var(--odx-u)));
  padding: max(7px, calc(9 * var(--odx-u)));
  border-radius: 50%;
  background: var(--odx-in-disc);
  color: var(--odx-ink);
  transition: transform 220ms var(--odx-ui-ease), background var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-all-answers > summary:hover > svg { background: var(--odx-in-disc-hover); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-all-answers[open] > summary > svg { transform: rotate(180deg); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-all-answers dl { display: flex; flex-direction: column; margin: 0 0 calc(14 * var(--odx-u)); padding: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-all-answers dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: calc(24 * var(--odx-u));
  margin: 0;
  padding: max(10px, calc(13 * var(--odx-u))) calc(4 * var(--odx-u));
  border: 0;
  border-bottom: 1px solid var(--odx-in-line);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-all-answers dl > div:last-child { border-bottom: 0; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-all-answers dt { margin: 0; font-size: var(--odx-ui-fs-note); font-weight: 300; line-height: 1.45; color: rgb(13 13 13 / .7); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-all-answers dd { margin: 0; font-size: var(--odx-ui-fs-note); font-weight: 400; line-height: 1.45; color: var(--odx-ink); overflow-wrap: anywhere; }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-all-answers dd p { margin: max(2px, calc(4 * var(--odx-u))) 0 0; font-weight: 300; color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .questionnaire-provenance {
  margin: 0 0 calc(16 * var(--odx-u));
  padding: 0 calc(4 * var(--odx-u));
  font-size: var(--odx-ui-fs-label);
  line-height: 1.45;
  color: var(--odx-ui-ink-2);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-medical-all-answers > button { margin: 0 0 calc(18 * var(--odx-u)) calc(4 * var(--odx-u)); }
/* intraoral camera reception (rendered on the authorised Salle1 browser only: status row, help, photos to check) */
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera :is(.patient-camera, .camera-global-shortcut) { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; font-size: var(--odx-ui-fs-note); color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera .patient-camera-row { display: flex; flex-wrap: wrap; align-items: center; gap: max(10px, calc(14 * var(--odx-u))); padding: max(12px, calc(14 * var(--odx-u))); border-radius: max(14px, calc(18 * var(--odx-u))); background: rgb(13 13 13 / .03); box-shadow: inset 0 0 0 1px rgb(13 13 13 / .05); }
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera .patient-camera.is-active .patient-camera-row { background: rgb(197 252 196 / .3); box-shadow: inset 0 0 0 1px rgb(12 143 96 / .2); }
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera .patient-camera-icon { display: inline-grid; place-items: center; flex: none; width: max(36px, calc(44 * var(--odx-u))); height: max(36px, calc(44 * var(--odx-u))); border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgb(13 13 13 / .06); color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera .patient-camera-copy { flex: 1 1 200px; min-width: 0; }
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera .patient-camera-copy strong { font-size: var(--odx-ui-fs-body); font-weight: 400; }
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera .patient-camera-copy small { display: block; margin-top: 2px; font-size: var(--odx-ui-fs-label); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera .camera-state-dot { display: inline-block; width: 8px; height: 8px; margin: 0 4px; border-radius: 50%; background: var(--odx-ui-neutral-dot); vertical-align: middle; }
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera .patient-camera.is-active .camera-state-dot { background: var(--odx-ui-ok-dot); }
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera .patient-camera-actions { display: flex; flex-wrap: wrap; gap: max(6px, calc(8 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera :is(.patient-camera-actions, .camera-review, .camera-confirm) :is(button, a) {
  display: inline-flex;
  align-items: center;
  gap: max(6px, calc(8 * var(--odx-u)));
  min-height: var(--odx-ui-h-sm);
  padding: 0 max(12px, calc(14 * var(--odx-u)));
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / .9);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .1);
  color: var(--odx-ink);
  font-size: var(--odx-ui-fs-note);
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera .camera-confirm .camera-confirm-primary { background: var(--odx-ui-mint); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera :is(.camera-guide, .camera-review, .camera-confirm) { margin-top: max(10px, calc(14 * var(--odx-u))); padding: max(12px, calc(16 * var(--odx-u))); border: 0; border-radius: max(14px, calc(18 * var(--odx-u))); background: rgb(13 13 13 / .03); }
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera :is(.camera-guide, .camera-review) h3 { margin: 0 0 6px; font-size: var(--odx-ui-fs-body); font-weight: 400; }
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera :is(.camera-guide, .camera-review) p { font-size: var(--odx-ui-fs-label); line-height: 1.5; color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera .camera-review-list article { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--odx-in-line); }
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera .camera-review-preview img { max-width: 100%; border-radius: max(12px, calc(14 * var(--odx-u))); background: var(--odx-dk-stage); }
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera :is(.camera-error, .camera-queue) { margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: var(--odx-ui-warn-bg); color: var(--odx-ui-warn-ink); font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .odx-antecedents__camera .camera-global-shortcut a { display: inline-flex; align-items: center; gap: 8px; color: var(--odx-ui-emerald-ink); font-size: var(--odx-ui-fs-note); }
/* merged history (replaced files): sources and alerts */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .patient-merged-medical-history:empty { display: none; }
:is(.odx-dossier, #odx-skin) .patient-merged-medical-source {
  margin: calc(14 * var(--odx-u)) 0;
  padding: max(12px, calc(16 * var(--odx-u))) max(14px, calc(18 * var(--odx-u)));
  border: 0;
  border-radius: max(12px, calc(16 * var(--odx-u)));
  background: rgb(13 13 13 / .03);
  box-shadow: inset 3px 0 0 rgb(12 143 96 / .35);
}
:is(.odx-dossier, #odx-skin) .patient-merged-medical-source :is(h3, h4) { color: var(--odx-ink); font-weight: 400; letter-spacing: -0.02em; }
:is(.odx-dossier, #odx-skin) .patient-merged-medical-source h3 { font-size: var(--odx-ui-fs-body); }
:is(.odx-dossier, #odx-skin) .patient-merged-medical-source h4 { font-size: var(--odx-ui-fs-note); }
:is(.odx-dossier, #odx-skin) .patient-merged-medical-alert {
  padding: max(10px, calc(12 * var(--odx-u))) max(12px, calc(16 * var(--odx-u)));
  border: 0;
  border-radius: max(12px, calc(14 * var(--odx-u)));
  background: var(--odx-ui-warn-bg);
  box-shadow: inset 3px 0 0 var(--odx-ui-warn-dot);
  color: var(--odx-ui-warn-ink);
  font-size: var(--odx-ui-fs-note);
}
/* medical alert dialog « Antécédents médicaux » (opened from the header chip / bell) */
:is(.odx-dossier, #odx-skin) .patient-medical-alert-dialog .patient-medical-alert-intro {
  display: flex;
  align-items: center;
  gap: max(10px, calc(14 * var(--odx-u)));
  margin: 0 0 calc(16 * var(--odx-u));
  padding: max(12px, calc(16 * var(--odx-u))) max(14px, calc(18 * var(--odx-u)));
  border: 0;
  border-radius: max(14px, calc(18 * var(--odx-u)));
  background: rgb(253 239 214 / .6);
  box-shadow: inset 0 0 0 1px rgb(227 154 28 / .16);
  color: var(--odx-ui-warn-ink);
}
:is(.odx-dossier, #odx-skin) .patient-medical-alert-dialog .patient-medical-alert-intro-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: max(34px, calc(42 * var(--odx-u)));
  height: max(34px, calc(42 * var(--odx-u)));
  border-radius: 50%;
  background: #f2bf55;
  color: #3d2704;
}
:is(.odx-dossier, #odx-skin) .patient-medical-alert-dialog .patient-medical-alert-summary { display: flex; flex-wrap: wrap; gap: max(6px, calc(8 * var(--odx-u))); margin: max(4px, calc(6 * var(--odx-u))) 0 0; padding: 0; list-style: none; }
:is(.odx-dossier, #odx-skin) .patient-medical-alert-dialog .patient-medical-alert-summary > * {
  display: inline-block;
  line-height: max(24px, calc(30 * var(--odx-u)));
  white-space: nowrap;
  padding: 0 max(10px, calc(12 * var(--odx-u)));
  border-radius: 999px;
  background: rgb(255 255 255 / .7);
  color: var(--odx-ui-warn-ink);
  font-size: var(--odx-ui-fs-label);
}
:is(.odx-dossier, #odx-skin) .patient-medical-alert-dialog .patient-medical-alert-section-heading {
  margin: calc(18 * var(--odx-u)) 0 calc(6 * var(--odx-u));
  font-size: var(--odx-ui-fs-subtitle);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--odx-ink);
}
:is(.odx-dossier, #odx-skin) .patient-medical-alert-dialog .patient-medical-alert-section-help,
:is(.odx-dossier, #odx-skin) .patient-medical-alert-dialog .patient-medical-alert-provenance,
:is(.odx-dossier, #odx-skin) .patient-medical-alert-dialog .patient-medical-alert-note-source { font-size: var(--odx-ui-fs-label); line-height: 1.45; color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .patient-medical-alert-dialog .patient-medical-alert-rows { display: flex; flex-direction: column; margin: 0; padding: 0; }
:is(.odx-dossier, #odx-skin) .patient-medical-alert-dialog .patient-medical-alert-rows > * {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: calc(20 * var(--odx-u));
  margin: 0;
  padding: max(10px, calc(12 * var(--odx-u))) 0;
  border: 0;
  border-bottom: 1px solid var(--odx-in-line);
}
:is(.odx-dossier, #odx-skin) .patient-medical-alert-dialog .patient-medical-alert-rows dt { margin: 0; font-size: var(--odx-ui-fs-note); font-weight: 300; color: rgb(13 13 13 / .7); }
:is(.odx-dossier, #odx-skin) .patient-medical-alert-dialog .patient-medical-alert-rows dd { margin: 0; font-size: var(--odx-ui-fs-note); font-weight: 400; color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .patient-medical-alert-dialog .patient-medical-alert-answer-detail { display: block; margin-top: max(2px, calc(4 * var(--odx-u))); font-weight: 300; color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .patient-medical-alert-dialog .patient-medical-alert-state { display: flex; flex-direction: column; align-items: center; gap: max(6px, calc(8 * var(--odx-u))); padding: calc(40 * var(--odx-u)) 0; text-align: center; color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .patient-medical-alert-dialog .patient-medical-alert-error { color: var(--odx-ui-danger-ink); }
/* questionnaire transcription (« Modifier ») — answers as pill choices, the chosen one in mint */
:is(.odx-dossier, #odx-skin) .questionnaire-transcription-form .questionnaire-entry-help,
:is(.odx-dossier, #odx-skin) .questionnaire-transcription-form .questionnaire-confidential-note { font-size: var(--odx-ui-fs-label); line-height: 1.5; color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .questionnaire-transcription-form .questionnaire-answer-section > h3 {
  margin: calc(26 * var(--odx-u)) 0 calc(6 * var(--odx-u));
  padding: 0 0 calc(12 * var(--odx-u));
  border-bottom: 1px solid var(--odx-in-line);
  font-size: var(--odx-ui-fs-subtitle);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--odx-ink);
}
:is(.odx-dossier, #odx-skin) .questionnaire-transcription-form fieldset.questionnaire-answer { margin: 0; padding: calc(16 * var(--odx-u)) 0; border: 0; border-bottom: 1px solid var(--odx-in-line); }
:is(.odx-dossier, #odx-skin) .questionnaire-transcription-form fieldset.questionnaire-answer > legend {
  float: left;
  width: 100%;
  margin: 0 0 calc(10 * var(--odx-u));
  padding: 0;
  font-size: var(--odx-ui-fs-body);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.35;
  color: var(--odx-ink);
}
:is(.odx-dossier, #odx-skin) .questionnaire-transcription-form fieldset.questionnaire-answer > legend + * { clear: both; }
:is(.odx-dossier, #odx-skin) .questionnaire-transcription-form .questionnaire-answer-hint { margin: 0 0 calc(10 * var(--odx-u)); font-size: var(--odx-ui-fs-label); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .questionnaire-transcription-form .questionnaire-answer-options { display: flex; flex-wrap: wrap; gap: max(6px, calc(8 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .questionnaire-transcription-form .questionnaire-answer-options > label {
  display: inline-flex;
  align-items: center;
  gap: max(7px, calc(9 * var(--odx-u)));
  min-height: var(--odx-ui-h-sm);
  margin: 0;
  padding: 0 max(14px, calc(16 * var(--odx-u))) 0 max(10px, calc(12 * var(--odx-u)));
  border: 0;
  border-radius: 999px;
  background: rgb(13 13 13 / .035);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .06);
  color: var(--odx-ink);
  font-size: var(--odx-ui-fs-note);
  font-weight: 400;
  cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .questionnaire-transcription-form .questionnaire-answer-options > label:hover { background: rgb(13 13 13 / .06); }
:is(.odx-dossier, #odx-skin) .questionnaire-transcription-form .questionnaire-answer-options > label:has(input:checked) { background: var(--odx-mint-gradient); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
:is(.odx-dossier, #odx-skin) .questionnaire-transcription-form .questionnaire-answer-options > label:has(input:focus-visible) { outline: var(--odx-ui-focus-ring); outline-offset: 2px; }
:is(.odx-dossier, #odx-skin) .questionnaire-transcription-form .questionnaire-answer-detail { display: block; margin-top: calc(14 * var(--odx-u)); font-size: var(--odx-ui-fs-label); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .questionnaire-transcription-form .questionnaire-answer-detail > textarea { margin-top: max(6px, calc(8 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .questionnaire-transcription-form .questionnaire-collection-grid { gap: var(--odx-in-gap-sm); }
/* ================================================================ RADIOGRAPH VIEWER (« visionneuse sombre »)
   Full-screen .rxv-workspace (portal). The platform's atelier sheet turned it light; the design system wants
   the viewers black so grey levels are judged without glare. Shapes = the dossier's: 24-unit panels, round
   icon discs, 12-14 unit pills, mint gradient for the active tool / primary action, emerald focus ring. */
:is(.odx-dossier, #odx-skin) .rxv-workspace {
  --rxv-bg: var(--odx-dk-bg);
  --rxv-panel: var(--odx-dk-panel);
  --rxv-border: var(--odx-dk-line);
  --rxv-muted: var(--odx-dk-ink-2);
  --rxv-text: var(--odx-dk-ink);
  --rxv-accent: #aaffc6;
  --rxv-r: max(16px, calc(24 * var(--odx-u)));
  --rxv-pill-r: max(10px, calc(13 * var(--odx-u)));
  --rxv-disc: max(34px, calc(42 * var(--odx-u)));
  color-scheme: dark;
  background:
    radial-gradient(60% 50% at 100% 0%, rgb(170 255 198 / .05) 0%, rgb(170 255 198 / 0) 70%),
    var(--odx-dk-bg);
  color: var(--odx-dk-ink);
  font-family: var(--odx-font);
  font-size: max(13px, calc(16 * var(--odx-u)));
  font-weight: 300;
  letter-spacing: -0.015em;
}
/* every control: dark glass, rounded; active = mint */
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(button, .rxv-button) {
  min-height: max(34px, calc(40 * var(--odx-u)));
  border: 0;
  border-radius: var(--rxv-pill-r);
  background: transparent;
  box-shadow: none;
  color: var(--odx-dk-ink-2);
  font-weight: 400;
  letter-spacing: -0.02em;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease), color var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(button, .rxv-button):hover:not(:disabled, [aria-pressed="true"], .is-on) { background: var(--odx-dk-disc); color: var(--odx-dk-ink); }
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(button[aria-pressed="true"], button.is-on) {
  background: var(--odx-mint-gradient);
  color: var(--odx-ink);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3);
}
:is(.odx-dossier, #odx-skin) .rxv-workspace button:disabled { opacity: .32; }
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(button, a, input, select, textarea):focus-visible { outline: 2px solid #8ef0b4; outline-offset: 2px; }
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(.rxv-eyebrow) { color: var(--odx-dk-ink-3); font-size: max(10px, calc(12.5 * var(--odx-u))); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
/* header */
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-header {
  gap: max(12px, calc(18 * var(--odx-u)));
  min-height: max(64px, calc(84 * var(--odx-u)));
  padding: max(10px, calc(12 * var(--odx-u))) max(16px, calc(26 * var(--odx-u)));
  border-bottom: 1px solid var(--odx-dk-line);
  background: rgb(255 255 255 / .02);
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-back {
  gap: max(8px, calc(10 * var(--odx-u)));
  padding: 0 max(12px, calc(16 * var(--odx-u))) 0 0;
  border-radius: 999px;
  background: none;
  color: var(--odx-dk-ink);
  font-size: max(13px, calc(16 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-back > svg {
  box-sizing: content-box;
  width: max(16px, calc(19 * var(--odx-u)));
  height: max(16px, calc(19 * var(--odx-u)));
  padding: max(9px, calc(11 * var(--odx-u)));
  border-radius: 50%;
  background: var(--odx-dk-disc);
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-back:hover:not(:disabled) { background: none; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-back:hover > svg { background: var(--odx-dk-disc-hover); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-header-rule { height: max(26px, calc(34 * var(--odx-u))); background: var(--odx-dk-line-2); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-patient h2 { margin-top: 2px; color: var(--odx-dk-ink); font-size: max(15px, calc(20.6 * var(--odx-u))); font-weight: 400; letter-spacing: -0.03em; line-height: 1.25; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-patient p { color: var(--odx-dk-ink-2); font-size: max(11.5px, calc(14.5 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-header-actions { gap: max(6px, calc(10 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-save-status { color: var(--odx-dk-ink-2); font-size: max(11px, calc(13.6 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-save-status > svg { color: #8ef0b4; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-save-error { color: #ffb4a8; }
/* icon-only header / bar buttons → round discs */
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(.rxv-header-actions, .rxv-workspace-tools, .rxv-filmstrip-heading > div, .rxv-pane-toolbar > div) > button:not(:has(> span)) {
  display: inline-grid;
  place-items: center;
  width: var(--rxv-disc);
  min-width: var(--rxv-disc);
  height: var(--rxv-disc);
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--odx-dk-disc);
  color: var(--odx-dk-ink);
}
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(.rxv-header-actions, .rxv-workspace-tools, .rxv-filmstrip-heading > div, .rxv-pane-toolbar > div) > button:not(:has(> span)):hover:not(:disabled) { background: var(--odx-dk-disc-hover); }
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(.rxv-header-actions, .rxv-workspace-tools) > :is(a.rxv-button, button:has(> span)) {
  height: var(--rxv-disc);
  min-height: 0;
  padding: 0 max(14px, calc(18 * var(--odx-u)));
  gap: max(6px, calc(9 * var(--odx-u)));
  border-radius: var(--rxv-pill-r);
  background: var(--odx-dk-disc);
  color: var(--odx-dk-ink);
  font-size: max(13px, calc(16.35 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(.rxv-header-actions, .rxv-workspace-tools) > :is(a.rxv-button, button:has(> span)):hover:not(:disabled) { background: var(--odx-dk-disc-hover); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-header-actions > .rxv-print-button {
  height: var(--rxv-disc);
  min-height: 0;
  padding: 0 max(16px, calc(22 * var(--odx-u)));
  border: 0;
  background: var(--odx-mint-gradient);
  color: var(--odx-ink);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3), 0 calc(8 * var(--odx-u)) calc(22 * var(--odx-u)) calc(-10 * var(--odx-u)) rgb(120 230 150 / .55);
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-header-actions > .rxv-print-button:hover:not(:disabled) { background: var(--odx-ui-mint-hover); color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-header-actions > .rxv-print-button:disabled { opacity: .4; }
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(.rxv-header, .rxv-commandbar, .rxv-pane-toolbar, .rxv-filmstrip-heading) svg { width: max(15px, calc(18 * var(--odx-u))); height: max(15px, calc(18 * var(--odx-u))); stroke-width: 1.6; }
/* command bar: exam context + layout tools */
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-commandbar {
  align-items: center;
  min-height: max(52px, calc(64 * var(--odx-u)));
  padding: max(8px, calc(10 * var(--odx-u))) max(16px, calc(26 * var(--odx-u)));
  border-bottom: 1px solid var(--odx-dk-line);
  background: none;
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-exam-context { display: flex; align-items: center; gap: max(8px, calc(12 * var(--odx-u))); color: var(--odx-dk-ink-2); font-size: max(13px, calc(16 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-exam-pill {
  display: inline-flex;
  align-items: center;
  height: max(26px, calc(31.7 * var(--odx-u)));
  padding: 0 max(12px, calc(14 * var(--odx-u)));
  border: 0;
  border-radius: 999px;
  background: var(--odx-chip-lime);
  color: var(--odx-ink);
  font-size: max(12px, calc(15.9 * var(--odx-u)));
  font-weight: 400;
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-context-permission {
  padding: max(3px, calc(4 * var(--odx-u))) max(8px, calc(10 * var(--odx-u)));
  border-radius: 999px;
  background: var(--odx-dk-disc);
  color: var(--odx-dk-ink-2);
  font-size: max(11px, calc(13.6 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-workspace-tools { gap: max(6px, calc(10 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-count-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #aaffc6; color: var(--odx-ink); font-size: 11px; }
/* main area */
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-main { gap: max(10px, calc(16 * var(--odx-u))); padding: max(10px, calc(16 * var(--odx-u))) max(12px, calc(20 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(.rxv-toolrail, .rxv-inspector, .rxv-filmstrip) {
  border: 0;
  border-radius: var(--rxv-r);
  background: var(--odx-dk-panel);
  box-shadow: inset 0 0 0 1px var(--odx-dk-line);
  color: var(--odx-dk-ink);
}
/* annotation rail */
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-toolrail { width: max(96px, calc(118 * var(--odx-u))); gap: max(10px, calc(12 * var(--odx-u))); padding: max(12px, calc(14 * var(--odx-u))) max(8px, calc(10 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-toolrail > .rxv-eyebrow { text-align: center; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-toolrail-tools { gap: max(4px, calc(6 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-toolrail :is(button, .rxv-pen-color) {
  min-height: max(46px, calc(56 * var(--odx-u)));
  padding: max(5px, calc(6 * var(--odx-u))) max(3px, calc(4 * var(--odx-u)));
  gap: max(3px, calc(4 * var(--odx-u)));
  border: 0;
  border-radius: max(12px, calc(16 * var(--odx-u)));
  background: transparent;
  color: var(--odx-dk-ink-2);
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-toolrail :is(button, .rxv-pen-color):hover:not(:disabled, [aria-pressed="true"]) { background: var(--odx-dk-disc); color: var(--odx-dk-ink); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-toolrail button[aria-pressed="true"] {
  background: var(--odx-mint-gradient);
  color: var(--odx-ink);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3), 0 calc(8 * var(--odx-u)) calc(18 * var(--odx-u)) calc(-10 * var(--odx-u)) rgb(120 230 150 / .5);
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-toolrail :is(button, .rxv-pen-color) > span { font-size: max(10px, calc(12.5 * var(--odx-u))); font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-toolrail :is(button, .rxv-pen-color) svg { width: max(17px, calc(21 * var(--odx-u))); height: max(17px, calc(21 * var(--odx-u))); stroke-width: 1.6; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-toolrail-actions { border-top: 1px solid var(--odx-dk-line); padding-top: max(10px, calc(12 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-toolrail-actions > button { background: var(--odx-dk-disc); color: var(--odx-dk-ink); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-pen-color input[type="color"] { width: max(24px, calc(28 * var(--odx-u))); height: max(24px, calc(28 * var(--odx-u))); padding: 0; border: 2px solid rgb(255 255 255 / .25); border-radius: 50%; background: none; overflow: hidden; cursor: pointer; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-rail-history > button { background: var(--odx-dk-disc); color: var(--odx-dk-ink); border-radius: 50%; min-width: max(36px, calc(42 * var(--odx-u))); min-height: max(36px, calc(42 * var(--odx-u))); }
/* image panes (one or two in comparison) */
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-panes { gap: max(10px, calc(14 * var(--odx-u))); background: none; padding: 0; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-pane {
  overflow: hidden;
  border: 0;
  border-radius: var(--rxv-r);
  background: var(--odx-dk-stage);
  box-shadow: inset 0 0 0 1px var(--odx-dk-line);
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-pane.is-active { box-shadow: inset 0 0 0 1px rgb(170 255 198 / .38), 0 0 0 3px rgb(170 255 198 / .08); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-pane-heading {
  min-height: max(46px, calc(54 * var(--odx-u)));
  padding: 0 max(12px, calc(16 * var(--odx-u)));
  border-bottom: 1px solid var(--odx-dk-line);
  background: rgb(255 255 255 / .03);
  color: var(--odx-dk-ink-2);
  font-size: max(12px, calc(14.5 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-pane-heading strong { color: var(--odx-dk-ink); font-size: max(13px, calc(16.35 * var(--odx-u))); font-weight: 400; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-live-dot { width: max(6px, calc(8 * var(--odx-u))); height: max(6px, calc(8 * var(--odx-u))); border-radius: 50%; background: #8ef0b4; box-shadow: 0 0 0 3px rgb(142 240 180 / .16); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-segmented { padding: 3px; border: 0; border-radius: max(10px, calc(12 * var(--odx-u))); background: var(--odx-dk-disc); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-segmented > button {
  min-height: max(26px, calc(32 * var(--odx-u)));
  padding: 0 max(10px, calc(12 * var(--odx-u)));
  border: 0;
  border-radius: max(8px, calc(10 * var(--odx-u)));
  background: none;
  color: var(--odx-dk-ink-2);
  font-size: max(12px, calc(14.5 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-segmented > button:is([aria-pressed="true"], .is-on, [aria-selected="true"]) { background: var(--odx-mint-gradient); color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-teeth-label { padding: max(5px, calc(7 * var(--odx-u))) max(12px, calc(16 * var(--odx-u))); background: rgb(255 255 255 / .025); color: var(--odx-dk-ink-2); font-size: max(11.5px, calc(14 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-stage { background: var(--odx-dk-stage); }
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(.rxv-stage-message, .rxv-unavailable) { color: var(--odx-dk-ink-2); font-size: max(13px, calc(16.35 * var(--odx-u))); gap: max(10px, calc(14 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-stage-message > svg { box-sizing: content-box; width: max(22px, calc(26 * var(--odx-u))); height: max(22px, calc(26 * var(--odx-u))); padding: max(12px, calc(14 * var(--odx-u))); border-radius: 50%; background: var(--odx-dk-disc); color: var(--odx-dk-ink); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-stage-message > button { min-height: var(--rxv-disc); padding: 0 max(16px, calc(20 * var(--odx-u))); background: var(--odx-dk-disc); color: var(--odx-dk-ink); border-radius: var(--rxv-pill-r); }
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(.rxv-stage-meta, .rxv-tool-hint) {
  border: 0;
  border-radius: 999px;
  background: rgb(14 16 15 / .78);
  color: var(--odx-dk-ink);
  font-size: max(11.5px, calc(14 * var(--odx-u)));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-pane-toolbar {
  min-height: max(46px, calc(56 * var(--odx-u)));
  padding: 0 max(10px, calc(14 * var(--odx-u)));
  border-top: 1px solid var(--odx-dk-line);
  background: rgb(255 255 255 / .03);
  color: var(--odx-dk-ink-2);
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-pane-toolbar > div { display: flex; align-items: center; gap: max(6px, calc(8 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-pane-toolbar > div > button:has(> span) {
  height: max(32px, calc(38 * var(--odx-u)));
  min-height: 0;
  padding: 0 max(12px, calc(14 * var(--odx-u)));
  border-radius: var(--rxv-pill-r);
  background: var(--odx-dk-disc);
  color: var(--odx-dk-ink);
  font-size: max(12px, calc(14.5 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-pane-toolbar > div > button:not(:has(> span)) { --rxv-disc: max(32px, calc(38 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-pane-toolbar output { min-width: max(48px, calc(58 * var(--odx-u))); color: var(--odx-dk-ink); font-size: max(12px, calc(15 * var(--odx-u))); text-align: center; font-variant-numeric: tabular-nums; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-divider { width: 1px; height: max(16px, calc(20 * var(--odx-u))); background: var(--odx-dk-line-2); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-source-note { color: var(--odx-dk-ink-3); font-size: max(11px, calc(13.6 * var(--odx-u))); }
/* inspector (Réglages · Notes · IA · Historique) */
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector { width: max(280px, calc(330 * var(--odx-u))); overflow: hidden; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector > header {
  padding: max(12px, calc(16 * var(--odx-u))) max(14px, calc(18 * var(--odx-u))) max(8px, calc(10 * var(--odx-u)));
  border: 0;
  background: none;
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector > header strong { color: var(--odx-dk-ink); font-size: max(17px, calc(22.2 * var(--odx-u))); font-weight: 300; letter-spacing: -0.03em; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector > header > button {
  display: inline-grid;
  place-items: center;
  width: var(--rxv-disc);
  min-width: var(--rxv-disc);
  height: var(--rxv-disc);
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--odx-dk-disc);
  color: var(--odx-dk-ink);
}
/* four tabs fit one compact segmented row (they overflowed after the generic tab restyle) */
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector-tabs[role="tablist"] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin: 0 max(12px, calc(16 * var(--odx-u))) max(8px, calc(10 * var(--odx-u)));
  padding: 3px;
  border: 0;
  border-radius: max(12px, calc(14 * var(--odx-u)));
  background: var(--odx-dk-disc);
  box-shadow: none;
  overflow: visible;
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector-tabs[role="tablist"] > button[role="tab"] {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  height: auto;
  min-height: max(42px, calc(50 * var(--odx-u)));
  padding: max(4px, calc(5 * var(--odx-u))) 2px;
  border: 0;
  border-radius: max(9px, calc(11 * var(--odx-u)));
  background: none;
  box-shadow: none;
  color: var(--odx-dk-ink-2);
  font-size: max(10.5px, calc(12.5 * var(--odx-u)));
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector-tabs[role="tablist"] > button[role="tab"]:hover:not([aria-selected="true"]) { background: var(--odx-dk-disc); color: var(--odx-dk-ink); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector-tabs[role="tablist"] > button[role="tab"][aria-selected="true"] { background: var(--odx-mint-gradient); color: var(--odx-ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector-tabs[role="tablist"] > button[role="tab"] svg { width: max(15px, calc(17 * var(--odx-u))); height: max(15px, calc(17 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector-scroll { padding: max(10px, calc(14 * var(--odx-u))) max(14px, calc(18 * var(--odx-u))) max(16px, calc(20 * var(--odx-u))); gap: max(12px, calc(16 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector :is(h3, label, .rxv-section-heading, .rxv-history-heading) { color: var(--odx-dk-ink); font-weight: 400; letter-spacing: -0.02em; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector h3 { font-size: max(14px, calc(18 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector label { font-size: max(12.5px, calc(15.5 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector :is(p, small, .rxv-muted, .rxv-explainer, .rxv-range-limits) { color: var(--odx-dk-ink-2); font-size: max(11.5px, calc(14 * var(--odx-u))); line-height: 1.45; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector section { border-color: var(--odx-dk-line); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector :is(button:not([role="tab"], .rxv-switch, .rxv-adjustment-reset, .rxv-text-button), .rxv-primary) {
  border: 0;
  background: var(--odx-dk-disc);
  color: var(--odx-dk-ink);
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector :is(button:not([role="tab"], .rxv-switch, .rxv-adjustment-reset, .rxv-text-button)):hover:not(:disabled) { background: var(--odx-dk-disc-hover); }
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(.rxv-primary) { border: 0; background: var(--odx-mint-gradient); color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(.rxv-danger, .rxv-danger-icon) { background: rgb(208 69 58 / .16); color: #ffb4a8; border: 0; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-text-button { min-height: 0; padding: 2px 4px; background: none; color: #8ef0b4; font-size: max(12px, calc(14 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-text-button:hover:not(:disabled) { background: none; color: #c5fcc4; text-decoration: underline; text-underline-offset: 3px; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-orientation-tools { gap: max(6px, calc(8 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-orientation-tools > button {
  flex-direction: column;
  gap: max(4px, calc(6 * var(--odx-u)));
  min-height: max(60px, calc(72 * var(--odx-u)));
  padding: max(6px, calc(8 * var(--odx-u)));
  border-radius: max(12px, calc(16 * var(--odx-u)));
  background: var(--odx-dk-disc);
  color: var(--odx-dk-ink);
  font-size: max(11.5px, calc(13.6 * var(--odx-u)));
  white-space: normal;
  text-align: center;
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-adjustment { gap: max(6px, calc(8 * var(--odx-u))); padding: max(10px, calc(12 * var(--odx-u))) 0; border-top: 1px solid var(--odx-dk-line); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-adjustment-heading { align-items: center; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-adjustment-values { align-items: center; gap: max(4px, calc(6 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector :is(input:not([type="range"], [type="checkbox"], [type="radio"], [type="color"]), select, textarea):is(*, :hover, :focus) {
  min-height: max(32px, calc(38 * var(--odx-u)));
  border: 0;
  border-radius: max(9px, calc(11 * var(--odx-u)));
  background-color: rgb(255 255 255 / .07);
  box-shadow: inset 0 0 0 1px var(--odx-dk-line);
  color: var(--odx-dk-ink);
  font-size: max(12.5px, calc(15 * var(--odx-u)));
  font-weight: 400;
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector :is(input:not([type="range"], [type="checkbox"], [type="radio"], [type="color"]), select, textarea):focus { box-shadow: inset 0 0 0 1px #8ef0b4, 0 0 0 3px rgb(142 240 180 / .16); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-adjustment-values > input[type="number"]:is(*, :hover, :focus) { width: max(54px, calc(64 * var(--odx-u))); min-height: max(30px, calc(34 * var(--odx-u))); height: max(30px, calc(34 * var(--odx-u))); padding: 0 max(6px, calc(8 * var(--odx-u))); text-align: right; font-variant-numeric: tabular-nums; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-adjustment-reset {
  display: inline-grid;
  place-items: center;
  width: max(26px, calc(30 * var(--odx-u)));
  min-width: 0;
  height: max(26px, calc(30 * var(--odx-u)));
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--odx-dk-disc);
  color: var(--odx-dk-ink-2);
}
:is(.odx-dossier, #odx-skin) .rxv-workspace input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  background: transparent;
  accent-color: #8ef0b4;
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .rxv-workspace input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, rgb(170 255 198 / .7), rgb(255 255 255 / .14)); }
:is(.odx-dossier, #odx-skin) .rxv-workspace input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgb(170 255 198 / .35), 0 2px 6px rgb(0 0 0 / .4); }
:is(.odx-dossier, #odx-skin) .rxv-workspace input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgb(255 255 255 / .14); }
:is(.odx-dossier, #odx-skin) .rxv-workspace input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-control-row { padding: max(10px, calc(12 * var(--odx-u))) 0; border-top: 1px solid var(--odx-dk-line); color: var(--odx-dk-ink); }
/* switch: imagingAtelier.css forces its light colours with !important */
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-switch {
  width: max(38px, calc(44 * var(--odx-u)));
  min-width: 0;
  height: max(22px, calc(26 * var(--odx-u)));
  min-height: 0;
  padding: 2px;
  border-radius: 999px;
  background: rgb(255 255 255 / .16) !important;
  border-color: transparent !important;
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-switch[aria-checked="true"] { background: #6fe39a !important; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-switch > span { width: max(16px, calc(20 * var(--odx-u))); height: max(16px, calc(20 * var(--odx-u))); border-radius: 50%; background: #fff; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-rotation { gap: max(4px, calc(6 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-rotation > button:not(.rxv-adjustment-reset) { width: max(30px, calc(34 * var(--odx-u))); min-width: 0; height: max(30px, calc(34 * var(--odx-u))); min-height: 0; padding: 0; border-radius: 50%; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-rotation output { color: var(--odx-dk-ink); font-variant-numeric: tabular-nums; }
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(.rxv-source-card, .rxv-research-gate, .rxv-research-finding, .rxv-annotation-editor, .rxv-calibration, .rxv-revision) {
  border: 0;
  border-radius: max(14px, calc(18 * var(--odx-u)));
  background: rgb(255 255 255 / .05);
  box-shadow: inset 0 0 0 1px var(--odx-dk-line);
  color: var(--odx-dk-ink);
}
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(.rxv-calibration, .rxv-research-gate, .rxv-annotation-editor) { padding: max(12px, calc(16 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-source-card strong { color: var(--odx-dk-ink); font-weight: 400; }
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(.rxv-orientation-warning, .rxv-measurement-caution) { border: 0; border-radius: max(12px, calc(14 * var(--odx-u))); background: rgb(227 154 28 / .14); color: #ffd79a; }
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(.rxv-annotation-list, .rxv-history-list) > * { border-color: var(--odx-dk-line); color: var(--odx-dk-ink); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-history-dot { background: #8ef0b4; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-empty-notes { color: var(--odx-dk-ink-2); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-inspector > footer {
  border-top: 1px solid var(--odx-dk-line);
  background: rgb(255 255 255 / .025);
  color: var(--odx-dk-ink-2);
  font-size: max(11px, calc(13.6 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(.rxv-save-dot, .rxv-bottom-dot) { background: #8ef0b4; color: var(--odx-dk-ink-3); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-bottom-dot { background: none; }
/* filmstrip */
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-filmstrip { margin: 0 max(12px, calc(20 * var(--odx-u))) max(10px, calc(14 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-filmstrip-heading { border-color: var(--odx-dk-line); color: var(--odx-dk-ink-2); font-size: max(11.5px, calc(14 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-filmstrip-heading > button { min-height: 0; padding: 4px 8px; color: var(--odx-dk-ink); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-filmstrip-heading > div > button { --rxv-disc: max(28px, calc(32 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-thumbnail {
  min-height: 0;
  padding: max(6px, calc(8 * var(--odx-u)));
  border: 0;
  border-radius: max(14px, calc(18 * var(--odx-u))) !important;   /* imagingAtelier.css: 14px !important */
  background: rgb(255 255 255 / .04);
  box-shadow: inset 0 0 0 1px var(--odx-dk-line);
  color: var(--odx-dk-ink);
}
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-thumbnail:hover:not(:disabled) { background: rgb(255 255 255 / .08); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-thumbnail.is-current { background: rgb(170 255 198 / .1); box-shadow: inset 0 0 0 2px rgb(170 255 198 / .7); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-thumbnail > div { border-radius: max(10px, calc(12 * var(--odx-u))); background: var(--odx-dk-stage); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-thumbnail strong { color: var(--odx-dk-ink); font-weight: 400; font-size: max(12px, calc(14.5 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-thumbnail > span { color: var(--odx-dk-ink-3); font-size: max(10.5px, calc(12.5 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-thumb-placeholder { color: var(--odx-dk-ink-3); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-thumb-index { border-radius: 999px; background: rgb(0 0 0 / .6); color: #fff; }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-bottom-bar { border-top: 1px solid var(--odx-dk-line); background: none; color: var(--odx-dk-ink-3); font-size: max(11px, calc(13.6 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rxv-workspace .rxv-bottom-bar button { min-height: 0; padding: 3px 8px; color: var(--odx-dk-ink-2); font-size: inherit; }
:is(.odx-dossier, #odx-skin) .rxv-workspace :is(.rxv-notice, .rxv-error-text) { color: #ffb4a8; }
/* the viewer's own exit guard + comparison picker: dark sheets */
:is(.odx-dossier, #odx-skin) :is(.rxv-guard, .rxv-compare-picker):not(#odx-none) {
  border: 0;
  border-radius: max(20px, calc(28 * var(--odx-u)));
  background: #1a1d1b;
  box-shadow: inset 0 0 0 1px var(--odx-dk-line-2), 0 30px 80px rgb(0 0 0 / .55);
  color: var(--odx-dk-ink);
}
:is(.odx-dossier, #odx-skin) :is(.rxv-guard, .rxv-compare-picker) :is(h2, h3, strong) { color: var(--odx-dk-ink); font-weight: 400; }
:is(.odx-dossier, #odx-skin) :is(.rxv-guard, .rxv-compare-picker) p { color: var(--odx-dk-ink-2); }
:is(.odx-dossier, #odx-skin) .rxv-guard-backdrop { background: rgb(0 0 0 / .55); }
:is(.odx-dossier, #odx-skin) :is(.rxv-guard, .rxv-compare-picker):is(.rxv-guard, .rxv-compare-picker) :is(select, input:not([type="checkbox"], [type="radio"])):is(*, :hover, :focus) { border: 0; background-color: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px var(--odx-dk-line-2); color: var(--odx-dk-ink); }
:is(.odx-dossier, #odx-skin) :is(.rxv-guard, .rxv-compare-picker) label { color: var(--odx-dk-ink-2); }
:is(.odx-dossier, #odx-skin) :is(.rxv-guard, .rxv-compare-picker) button:not(.rxv-primary, .rxv-danger) { background: var(--odx-dk-disc); color: var(--odx-dk-ink); border: 0; }
/* =================================================================== PHOTO VIEWER (« visionneuse sombre ») */
:is(.odx-dossier, #odx-skin) .modal-backdrop.pimg-viewer-backdrop {
  background: rgb(6 8 7 / .86) !important;        /* patientImages.css sets its navy shade with !important */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
:is(.odx-dossier, #odx-skin) .pimg-viewer {
  border: 0;
  border-radius: max(20px, calc(30 * var(--odx-u)));
  background: var(--odx-dk-bg);
  box-shadow: inset 0 0 0 1px var(--odx-dk-line), 0 40px 120px rgb(0 0 0 / .6);
  color: var(--odx-dk-ink);
  font-family: var(--odx-font);
}
:is(.odx-dossier, #odx-skin) .pimg-viewer > :is(header, footer) {
  gap: max(10px, calc(14 * var(--odx-u)));
  padding: max(12px, calc(14 * var(--odx-u))) max(16px, calc(22 * var(--odx-u)));
  border-color: var(--odx-dk-line);
  background: rgb(255 255 255 / .025);
}
:is(.odx-dossier, #odx-skin) .pimg-viewer > header strong { color: var(--odx-dk-ink); font-size: max(15px, calc(20.6 * var(--odx-u))); font-weight: 400; letter-spacing: -0.03em; }
:is(.odx-dossier, #odx-skin) .pimg-viewer > header span { color: var(--odx-dk-ink-2); font-size: max(12px, calc(14.5 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .pimg-viewer .pimg-viewer-tools { gap: max(6px, calc(8 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .pimg-viewer .pimg-viewer-tools .pimg-icon {
  display: inline-grid;
  place-items: center;
  width: max(36px, calc(44 * var(--odx-u)));
  min-width: 0;
  height: max(36px, calc(44 * var(--odx-u)));
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--odx-dk-disc);
  color: var(--odx-dk-ink);
  font-size: max(12px, calc(14 * var(--odx-u)));
  font-weight: 400;
  text-decoration: none;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .pimg-viewer .pimg-viewer-tools .pimg-icon:hover:not(:disabled) { background: var(--odx-dk-disc-hover); }
:is(.odx-dossier, #odx-skin) .pimg-viewer .pimg-viewer-tools .pimg-icon[aria-pressed="true"] { background: var(--odx-mint-gradient); color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .pimg-viewer .pimg-viewer-tools .pimg-icon.danger { background: rgb(208 69 58 / .16); color: #ffb4a8; }
:is(.odx-dossier, #odx-skin) .pimg-viewer .pimg-viewer-tools .pimg-icon:last-child { margin-left: max(4px, calc(8 * var(--odx-u))); background: rgb(255 255 255 / .12); }
:is(.odx-dossier, #odx-skin) .pimg-viewer .pimg-viewer-tools .pimg-icon:focus-visible,
:is(.odx-dossier, #odx-skin) .pimg-viewer .pimg-nav:focus-visible { outline: 2px solid #8ef0b4; outline-offset: 2px; }
:is(.odx-dossier, #odx-skin) .pimg-viewer .pimg-zoom { min-width: max(56px, calc(66 * var(--odx-u))); color: var(--odx-dk-ink); font-size: max(12px, calc(14.5 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .pimg-viewer .pimg-stage { background: var(--odx-dk-stage); }
:is(.odx-dossier, #odx-skin) .pimg-viewer .pimg-image-state { color: var(--odx-dk-ink-2); font-size: max(13px, calc(16 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .pimg-viewer .pimg-nav {
  display: inline-grid;
  place-items: center;
  width: max(44px, calc(54 * var(--odx-u)));
  min-width: 0;
  height: max(44px, calc(54 * var(--odx-u)));
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(14 16 15 / .66);
  box-shadow: inset 0 0 0 1px var(--odx-dk-line-2);
  color: var(--odx-dk-ink);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
:is(.odx-dossier, #odx-skin) .pimg-viewer .pimg-nav:hover:not(:disabled) { background: rgb(40 44 42 / .85); }
:is(.odx-dossier, #odx-skin) .pimg-viewer .pimg-nav:disabled { opacity: .3; }
:is(.odx-dossier, #odx-skin) .pimg-viewer .chip {
  height: max(24px, calc(30 * var(--odx-u)));
  padding: 0 max(10px, calc(12 * var(--odx-u)));
  border: 0;
  border-radius: 999px;
  background: var(--odx-dk-disc);
  color: var(--odx-dk-ink);
  font-size: max(11.5px, calc(14 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .pimg-viewer .chip.app { background: rgb(170 255 198 / .16); color: #c5fcc4; }
:is(.odx-dossier, #odx-skin) .pimg-viewer .chip.muted { background: none; box-shadow: inset 0 0 0 1px var(--odx-dk-line-2); color: var(--odx-dk-ink-2); }
:is(.odx-dossier, #odx-skin) .pimg-viewer .chip.warn { background: rgb(227 154 28 / .16); color: #ffd79a; }
:is(.odx-dossier, #odx-skin) .pimg-viewer .pimg-trash-note { color: var(--odx-dk-ink-2); }
/* photo list chips (light page) */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg .chip.app { background: var(--odx-chip-lime); color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg .chip.warn { background: var(--odx-ui-warn-bg); color: var(--odx-ui-warn-ink); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .pimg .chip.muted { background: none; box-shadow: inset 0 0 0 1px rgb(13 13 13 / .14); color: var(--odx-ui-ink-2); }
/* recoverable delete / restore confirmation (.pimg-dialog sheet comes from restyle/dialogs.css) */
:is(.odx-dossier, #odx-skin) .modal-backdrop:has(> .pimg-dialog) { align-items: center; }
:is(.odx-dossier, #odx-skin) .pimg-dialog h2 { margin: max(10px, calc(14 * var(--odx-u))) 0 max(8px, calc(10 * var(--odx-u))); font-size: var(--odx-ui-fs-title); font-weight: 300; letter-spacing: var(--odx-ui-ls-title); color: var(--odx-ink-strong); }
:is(.odx-dossier, #odx-skin) .pimg-dialog p:not(.pimg-dialog-patient) { font-size: var(--odx-ui-fs-note); line-height: 1.5; color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .pimg-dialog .pimg-dialog-icon {
  display: inline-grid;
  place-items: center;
  width: max(40px, calc(48 * var(--odx-u)));
  height: max(40px, calc(48 * var(--odx-u)));
  border-radius: 50%;
  background: var(--odx-ui-danger-bg);
  color: var(--odx-ui-danger);
}
:is(.odx-dossier, #odx-skin) .pimg-dialog .pimg-dialog-patient { font-size: var(--odx-ui-fs-note); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .pimg-dialog .pimg-dialog-list {
  margin: max(8px, calc(12 * var(--odx-u))) 0;
  padding: max(10px, calc(12 * var(--odx-u))) max(14px, calc(18 * var(--odx-u))) max(10px, calc(12 * var(--odx-u))) max(28px, calc(34 * var(--odx-u)));
  border-radius: max(12px, calc(16 * var(--odx-u)));
  background: rgb(13 13 13 / .03);
  font-size: var(--odx-ui-fs-note);
  line-height: 1.6;
}
:is(.odx-dossier, #odx-skin) .pimg-dialog .danger-button { border: 1px solid var(--odx-ui-danger-line); background: var(--odx-ui-danger-soft); color: var(--odx-ui-danger); }
/* radiograph archive confirmation + tooth tagging (light sheets from restyle/dialogs.css) */
:is(.odx-dossier, #odx-skin) .rx-confirm.atelier-confirm .atelier-confirm-source {
  display: flex;
  align-items: center;
  gap: max(10px, calc(14 * var(--odx-u)));
  margin: max(10px, calc(14 * var(--odx-u))) 0;
  padding: max(12px, calc(14 * var(--odx-u))) max(14px, calc(18 * var(--odx-u)));
  border: 0;
  border-radius: max(14px, calc(18 * var(--odx-u)));
  background: rgb(13 13 13 / .03);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .05);
}
:is(.odx-dossier, #odx-skin) .rx-confirm.atelier-confirm .atelier-confirm-source > svg { box-sizing: content-box; flex: none; padding: max(8px, calc(10 * var(--odx-u))); border-radius: 50%; background: rgb(13 13 13 / .05); color: var(--odx-ink); width: max(18px, calc(22 * var(--odx-u))); height: max(18px, calc(22 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rx-confirm.atelier-confirm .atelier-confirm-source > div { display: flex; flex-direction: column; gap: 2px; }
:is(.odx-dossier, #odx-skin) .rx-confirm.atelier-confirm .atelier-confirm-source strong { font-size: var(--odx-ui-fs-body); font-weight: 400; color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .rx-confirm.atelier-confirm .atelier-confirm-source span { font-size: var(--odx-ui-fs-label); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .rx-confirm.atelier-confirm .atelier-eyebrow { font-size: var(--odx-ui-fs-micro); letter-spacing: .06em; color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .rx-confirm .rx-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: max(8px, calc(10 * var(--odx-u))); margin-top: max(14px, calc(18 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rx-confirm .rx-actions > button {
  display: inline-flex;
  align-items: center;
  gap: max(6px, calc(8 * var(--odx-u)));
  min-height: var(--odx-ui-h);
  padding: 0 var(--odx-ui-pad-x);
  border: 0;
  border-radius: var(--odx-ui-r-control);
  background: var(--odx-ui-surface);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .11);
  color: var(--odx-ink);
  font-size: var(--odx-ui-fs-button);
  font-weight: 400;
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .rx-confirm.atelier-confirm .rx-actions > button:last-child { box-shadow: inset 0 0 0 1px var(--odx-ui-danger-line); background: var(--odx-ui-danger-soft); color: var(--odx-ui-danger); }
:is(.odx-dossier, #odx-skin) .radiology-tooth-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: max(10px, calc(14 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .radiology-tooth-dialog > header > div { display: flex; align-items: center; gap: max(10px, calc(14 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .radiology-tooth-dialog .radiology-tooth-icon { display: inline-grid; place-items: center; width: max(38px, calc(46 * var(--odx-u))); height: max(38px, calc(46 * var(--odx-u))); border-radius: 50%; background: rgb(197 252 196 / .55); color: var(--odx-ui-emerald-ink); }
:is(.odx-dossier, #odx-skin) .radiology-tooth-dialog > header h2 + span { display: block; font-size: var(--odx-ui-fs-label); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .radiology-tooth-dialog .radiology-tooth-arches { display: flex; flex-direction: column; gap: max(14px, calc(18 * var(--odx-u))); margin: max(14px, calc(18 * var(--odx-u))) 0; }
:is(.odx-dossier, #odx-skin) .radiology-tooth-dialog .radiology-tooth-arches > section > span { display: block; margin-bottom: max(6px, calc(8 * var(--odx-u))); font-size: var(--odx-ui-fs-label); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .radiology-tooth-dialog .radiology-tooth-grid { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: max(4px, calc(6 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .radiology-tooth-dialog .radiology-tooth-grid > button {
  min-width: 0;
  height: max(36px, calc(44 * var(--odx-u)));
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(13 13 13 / .04);
  color: var(--odx-ink);
  font-size: var(--odx-ui-fs-note);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .radiology-tooth-dialog .radiology-tooth-grid > button:hover { background: rgb(13 13 13 / .08); }
:is(.odx-dossier, #odx-skin) .radiology-tooth-dialog .radiology-tooth-grid > button:nth-child(8) { margin-right: max(4px, calc(8 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .radiology-tooth-dialog .radiology-tooth-grid > button:is(.selected, [aria-pressed="true"]) { background: var(--odx-pill-dark); color: var(--odx-on-dark); }
:is(.odx-dossier, #odx-skin) .radiology-tooth-dialog > footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: max(10px, calc(14 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .radiology-tooth-dialog > footer > span { font-size: var(--odx-ui-fs-note); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .rx-confirm > p { font-size: var(--odx-ui-fs-note); line-height: 1.5; color: var(--odx-ui-ink-2); }
/* radiograph print sheet (gallery « Imprimer » / « PDF avec en-tête » and the viewer's Imprimer): neutral paper preview, mint primary */
:is(.odx-dossier, #odx-skin) .rx-print-dialog .rx-print-preview { background: radial-gradient(ellipse at top, #f7f9f6, #eceff0); }
:is(.odx-dossier, #odx-skin) .rx-print-dialog .rx-print-paper { border-radius: max(14px, calc(18 * var(--odx-u))); background: rgb(13 13 13 / .035); box-shadow: inset 0 0 0 1px rgb(13 13 13 / .05); color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .rx-print-dialog .rx-print-primary:is(button, .rx-print-primary) { border: 0; background: var(--odx-ui-mint); color: var(--odx-ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
:is(.odx-dossier, #odx-skin) .rx-print-dialog .rx-print-primary:disabled { opacity: .45; }
:is(.odx-dossier, #odx-skin) .rx-print-dialog .rx-print-status { border-radius: max(12px, calc(14 * var(--odx-u))); background: var(--odx-ui-info-bg); color: var(--odx-ui-info-ink); }
:is(.odx-dossier, #odx-skin) .rx-print-dialog .rx-print-page { border-radius: 4px; box-shadow: 0 calc(10 * var(--odx-u)) calc(30 * var(--odx-u)) calc(-12 * var(--odx-u)) rgb(24 48 30 / .3); }
/* RVG acquisition + « Avant / Après » comparison sheets (sheet chrome from restyle/dialogs.css; inner palette here) */
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-heading-icon { width: max(40px, calc(48 * var(--odx-u))); height: max(40px, calc(48 * var(--odx-u))); border-radius: 50%; background: rgb(197 252 196 / .55); color: var(--odx-ui-emerald-ink); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-eyebrow { font-size: var(--odx-ui-fs-micro); font-weight: 400; letter-spacing: .08em; color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-patient {
  border-bottom: 1px solid var(--odx-in-line);
  background: linear-gradient(90deg, rgb(224 250 195 / .35), rgb(170 255 198 / .18));
}
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-patient > div > span { font-size: var(--odx-ui-fs-label); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-patient strong { font-size: var(--odx-ui-fs-value); font-weight: 400; letter-spacing: -0.02em; color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-patient > svg { color: var(--odx-ui-emerald); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-fiche { padding: max(5px, calc(7 * var(--odx-u))) max(10px, calc(12 * var(--odx-u))); border: 0; border-radius: 999px; background: rgb(255 255 255 / .85); box-shadow: inset 0 0 0 1px rgb(13 13 13 / .07); color: var(--odx-ink); font-size: var(--odx-ui-fs-label); font-weight: 400; }
:is(.odx-dossier, #odx-skin) .rvg-dialog :is(.rvg-options, .rvg-comparison-selection) { border-color: var(--odx-in-line); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-device { border: 0; border-radius: max(14px, calc(18 * var(--odx-u))); background: rgb(13 13 13 / .03); box-shadow: inset 0 0 0 1px rgb(13 13 13 / .05); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-device.ready { background: rgb(197 252 196 / .25); box-shadow: inset 0 0 0 1px rgb(12 143 96 / .2); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-device strong { color: var(--odx-ink); font-size: var(--odx-ui-fs-note); font-weight: 400; }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-device > div > span { font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-icon-button { border-radius: 50%; }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-count { min-width: max(28px, calc(34 * var(--odx-u))); height: max(28px, calc(34 * var(--odx-u))); border-radius: 999px; background: var(--odx-chip-lime); color: var(--odx-ink); font-weight: 400; }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-dentition { padding: calc(5 * var(--odx-u)); border-radius: calc(17 * var(--odx-u)); background: rgb(13 13 13 / .035); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-dentition button { min-height: max(32px, calc(40 * var(--odx-u))); padding: 0 max(12px, calc(18 * var(--odx-u))); border-radius: var(--odx-r-tab); background: transparent; box-shadow: none; color: var(--odx-ink-tab); font-size: var(--odx-ui-fs-note); font-weight: 300; }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-dentition button[aria-pressed="true"] { background: var(--odx-mint-gradient); color: var(--odx-ink); font-weight: 400; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-tooth-row { gap: max(5px, calc(7 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-tooth-row button {
  min-height: max(36px, calc(44 * var(--odx-u)));
  border: 0;
  border-radius: 999px;
  background: rgb(13 13 13 / .04);
  box-shadow: none;
  color: var(--odx-ink);
  font-size: var(--odx-ui-fs-note);
  font-weight: 400;
}
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-tooth-row button:hover:not(:disabled) { background: rgb(13 13 13 / .08); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-tooth-row button[aria-pressed="true"] { background: var(--odx-pill-dark); color: var(--odx-on-dark); box-shadow: none; }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-guide { border-color: var(--odx-in-line); }
:is(.odx-dossier, #odx-skin) .rvg-dialog :is(.rvg-pairing, .rvg-guide) { border: 0; border-radius: max(14px, calc(18 * var(--odx-u))); background: rgb(13 13 13 / .03); box-shadow: inset 0 0 0 1px rgb(13 13 13 / .05); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-guide { padding: max(12px, calc(16 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-pairing summary { font-size: var(--odx-ui-fs-note); font-weight: 400; color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .rvg-dialog :is(.rvg-help, .rvg-pairing p, .rvg-section-heading p) { font-size: var(--odx-ui-fs-label); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-section-heading h3 { font-size: var(--odx-ui-fs-subtitle); font-weight: 400; color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-guide > span { background: rgb(13 13 13 / .05); color: var(--odx-ink); font-weight: 400; }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-guide p { font-size: var(--odx-ui-fs-label); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .rvg-dialog :is(.rvg-preview, .rvg-comparison-body) { background: rgb(13 13 13 / .018); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-progress li { color: var(--odx-ui-ink-2); font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-progress li > span { border: 0; background: rgb(13 13 13 / .05); color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-progress li.current { color: var(--odx-ink); font-weight: 400; }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-progress li.current > span { background: var(--odx-mint-gradient); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-progress li.complete { color: var(--odx-ui-emerald-ink); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-progress li.complete > span { background: var(--odx-ui-emerald); color: #fff; }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-preview-stage { border: 1px dashed rgb(13 13 13 / .14); border-radius: var(--odx-in-r-sm); background: radial-gradient(ellipse at top, #ffffff, #f2f5f2); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-preview-stage.saved { border-style: solid; border-color: transparent; background: var(--odx-dk-stage); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-empty { color: var(--odx-ui-ink-3); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-empty strong { color: var(--odx-ink); font-size: var(--odx-ui-fs-subtitle); font-weight: 400; letter-spacing: -0.02em; }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-empty p { color: var(--odx-ui-ink-2); font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-preview-caption { color: var(--odx-ui-ink-2); font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-section-heading :is(h3, strong) { color: var(--odx-ink); font-weight: 400; }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-result.saved { background: var(--odx-ui-ok-bg); color: var(--odx-ui-ok-ink); }
:is(.odx-dossier, #odx-skin) .rvg-dialog :is(.rvg-result.failed, .rvg-result.review_required) { background: var(--odx-ui-warn-bg); color: var(--odx-ui-warn-ink); }
:is(.odx-dossier, #odx-skin) .rvg-dialog :is(.rvg-warning, .rvg-error) { font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-actions .rvg-secondary {
  min-height: var(--odx-ui-h);
  padding: 0 var(--odx-ui-pad-x);
  border: 0;
  border-radius: var(--odx-ui-r-control);
  background: var(--odx-ui-surface);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .11);
  color: var(--odx-ink);
  font-size: var(--odx-ui-fs-button);
  font-weight: 400;
}
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-actions .rvg-secondary:hover:not(:disabled) { background: #fff; }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-actions .rvg-primary { min-height: var(--odx-ui-h); border: 0; border-radius: var(--odx-ui-r-control); background: var(--odx-ui-mint); color: var(--odx-ink); font-size: var(--odx-ui-fs-button); font-weight: 400; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .32); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-actions .rvg-primary:disabled { opacity: .45; }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-comparison-slots > button { border: 0; border-radius: max(14px, calc(18 * var(--odx-u))); background: rgb(13 13 13 / .025); box-shadow: inset 0 0 0 1px rgb(13 13 13 / .07); color: var(--odx-ink); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-comparison-slots > button.active:not(.rvg-comparison-swap) { background: rgb(197 252 196 / .25); box-shadow: inset 0 0 0 2px rgb(12 143 96 / .55); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-comparison-slots > .rvg-comparison-swap { border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(13 13 13 / .12); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-comparison-grid > button { border: 0; border-radius: max(14px, calc(18 * var(--odx-u))); background: rgb(255 255 255 / .9); box-shadow: inset 0 0 0 1px rgb(13 13 13 / .07); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-comparison-grid > button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px rgb(12 143 96 / .6); }
:is(.odx-dossier, #odx-skin) .rvg-dialog .rvg-comparison-paper { border-radius: max(10px, calc(12 * var(--odx-u))); box-shadow: 0 calc(10 * var(--odx-u)) calc(30 * var(--odx-u)) calc(-12 * var(--odx-u)) rgb(24 48 30 / .25); }
/* =========================================================== responsive: 1440 px and below (unit floors) */
@media (max-width: 1500px) {
  :is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-card.is-panoramic-lead { grid-template-columns: minmax(0, 1fr) 230px; }
  :is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-card.is-panoramic-lead .rx-atelier-image-actions { width: 230px; }
}
@media (max-width: 1180px) {
  :is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier > .atelier-columns.rx-atelier-with-tools,
  :is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-columns,
  :is(.odx-dossier, #odx-skin) .odx-s-sectioncard--antecedents .odx-antecedents { grid-template-columns: minmax(0, 1fr); }
  :is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier .rx-atelier-tools { grid-column: 1; grid-row: auto; position: static; flex-direction: row; flex-wrap: wrap; }
  :is(.odx-dossier, #odx-skin) .odx-s-sectioncard--radiology .rx-atelier-tools > :is(.rvg-launch, .rx-tool-stellaris) { width: auto; flex: 1 1 200px; }
  :is(.odx-dossier, #odx-skin) .odx-s-sectioncard--images .atelier-context { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.odx-dossier, #odx-skin) :is(.odx-s-sectioncard--radiology, .odx-s-sectioncard--images, .odx-s-sectioncard--notes, .odx-s-sectioncard--antecedents) * { transition: none !important; }
}
/* Odontiax dossier — sections "Soins" (full acts table + every act dialog) and "Rendez-vous" (list + dialogs),
   in the reference language: glass cards, Outfit Light values, small grey labels, airy rows, round soft icon
   buttons, mint accents. Built on restyle/ (shared primitives) and theme/ tokens; every length is reference
   px x --odx-u with a legibility floor. Scoped :is(.odx-dossier, #odx-skin) like the restyle (ID weight, so the
   legacy class-only CSS never wins); this file loads last, so equal-weight restyle rules are refined here.
   Markup is the platform's own (App.tsx); the only hooks are listed in the section builder's report. */
/* =================================================================================================== */
/* 1. ACTS CARD (Soins page, below the fold): totals, document buttons, filter, Devis tabs, table, pager */
/* =================================================================================================== */
:is(.odx-dossier, #odx-skin) .odx-o-acts {
  --odx-ui-row-pad-y: max(11px, calc(18 * var(--odx-u)));
  --odx-ui-row-pad-x: max(9px, calc(14 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-card {
  row-gap: max(14px, calc(20 * var(--odx-u)));
}
/* ---------- totals: three reference "score tiles" (label above, Light figure below) ---------- */
:is(.odx-dossier, #odx-skin) .odx-o-acts .odx-acts-summary { gap: max(10px, calc(14 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-o-acts .treatment-financials { display: flex; flex-wrap: wrap; gap: max(8px, calc(12 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-o-acts .treatment-financials .metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: max(3px, calc(5 * var(--odx-u)));
  min-width: max(150px, calc(206 * var(--odx-u)));
  height: auto;
  min-height: max(58px, calc(76 * var(--odx-u)));
  padding: max(9px, calc(13 * var(--odx-u))) max(14px, calc(20 * var(--odx-u)));
  border: 0;
  border-radius: max(14px, calc(18 * var(--odx-u)));
  background: rgb(255 255 255 / .72);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .055), 0 calc(10 * var(--odx-u)) calc(24 * var(--odx-u)) calc(-16 * var(--odx-u)) rgb(24 48 30 / .16);
}
/* the platform writes "TOTAL À PAYER": shown in the reference's sentence case ("Total à payer") */
:is(.odx-dossier, #odx-skin) .odx-o-acts .treatment-financials .metric > span {
  display: block;
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-label);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-transform: lowercase;
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .treatment-financials .metric > span::first-letter { text-transform: uppercase; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .treatment-financials .metric > p {
  display: flex;
  align-items: baseline;
  margin: 0;
  color: var(--odx-ui-ink);
  font-size: max(19px, calc(27 * var(--odx-u)));
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.035em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .treatment-financials .metric > p > strong { color: inherit; font-size: inherit; font-weight: var(--odx-ui-w-regular); letter-spacing: inherit; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .treatment-financials .metric > p > b { color: var(--odx-ui-ink-2); font-size: .62em; font-weight: var(--odx-ui-w-regular); letter-spacing: 0; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .treatment-financials .metric.green { background: linear-gradient(135deg, var(--odx-score-good) 0%, rgb(225 251 196 / .9) 100%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5); }
:is(.odx-dossier, #odx-skin) .odx-o-acts .treatment-financials .metric.green > p { color: #155c37; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .treatment-financials .metric.red { background: linear-gradient(135deg, #fde9e4 0%, rgb(253 242 238 / .9) 100%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5); }
:is(.odx-dossier, #odx-skin) .odx-o-acts .treatment-financials .metric.red > p { color: var(--odx-ui-danger); }
/* the unit keeps the tile's full tone (an opacity of .7 dropped it to ~3.5:1; full tone is ~7:1 green, ~5.7:1 red):
   it stays secondary through its .62em size */
:is(.odx-dossier, #odx-skin) .odx-o-acts .treatment-financials .metric:is(.green, .red) > p > b { color: inherit; opacity: 1; }
/* loading + error lines of the acts read (the card's own states) */
:is(.odx-dossier, #odx-skin) .odx-o-acts .odx-acts-summary > p[role="status"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-note);
  font-weight: var(--odx-ui-w-light);
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .odx-acts-summary > p[role="status"]::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgb(12 143 96 / .2);
  border-top-color: var(--odx-ui-emerald);
  animation: odx-sr-spin 900ms linear infinite;
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .odx-acts-summary > p.form-error {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: max(8px, calc(10 * var(--odx-u))) max(8px, calc(10 * var(--odx-u))) max(8px, calc(10 * var(--odx-u))) max(12px, calc(16 * var(--odx-u)));
  border-radius: max(12px, calc(16 * var(--odx-u)));
  background: var(--odx-ui-danger-soft);
  color: var(--odx-ui-danger-ink);
  font-size: var(--odx-ui-fs-note);
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .odx-acts-summary > p.form-error > button {
  min-height: var(--odx-ui-h-sm);
  padding: 0 max(12px, calc(16 * var(--odx-u)));
  border: 1px solid var(--odx-ui-line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--odx-ui-ink);
  font: inherit;
  font-weight: var(--odx-ui-w-regular);
  cursor: pointer;
}
@keyframes odx-sr-spin { to { transform: rotate(360deg); } }
/* ---------- document buttons: Télécharger reçu · Facture (n) / Devis (n) · Feuille de soins (n) ---------- */
:is(.odx-dossier, #odx-skin) .odx-o-acts :is(.patient-receipt-download-button, .patient-document-actions > button) {
  display: inline-flex;
  align-items: center;
  gap: max(7px, calc(9 * var(--odx-u)));
  min-height: max(36px, calc(46 * var(--odx-u)));
  height: auto;
  padding: 0 max(14px, calc(20 * var(--odx-u)));
  border: 0;
  border-radius: var(--odx-ui-r-control);
  background: rgb(255 255 255 / .86);
  box-shadow: inset 0 0 0 1px var(--odx-ui-line-2), 0 1px 2px rgb(13 13 13 / .04);
  color: var(--odx-ui-ink);
  font-family: var(--odx-ui-font);
  font-size: var(--odx-ui-fs-button);
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: -0.027em;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease), transform var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-o-acts :is(.patient-receipt-download-button, .patient-document-actions > button):hover:not(:disabled) {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .16), var(--odx-ui-raise);
}
:is(.odx-dossier, #odx-skin) .odx-o-acts :is(.patient-receipt-download-button, .patient-document-actions > button):active:not(:disabled) { transform: translateY(1px); }
:is(.odx-dossier, #odx-skin) .odx-o-acts :is(.patient-receipt-download-button, .patient-document-actions > button):focus-visible { outline: var(--odx-ui-focus-ring); outline-offset: 2px; }
:is(.odx-dossier, #odx-skin) .odx-o-acts :is(.patient-receipt-download-button, .patient-document-actions > button) svg { flex: none; width: max(15px, calc(19 * var(--odx-u))); height: max(15px, calc(19 * var(--odx-u))); stroke-width: 1.6; color: inherit; }
/* PLAN « Devis (n) » is the only document button the platform renders without an icon: same icon + label + count
   pattern as its neighbours (lucide file-pen, same box and stroke as the inline icons) */
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-document-actions > button:not(:has(svg))::before {
  content: "";
  flex: none;
  width: max(15px, calc(19 * var(--odx-u)));
  height: max(15px, calc(19 * var(--odx-u)));
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-receipt-download-button:disabled { opacity: .5; cursor: wait; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-receipt-download-control .document-action-error { color: var(--odx-ui-danger); font-size: var(--odx-ui-fs-label); }
/* the count reads as a small counter; once rows are selected the button becomes the mint primary action */
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-document-actions > button > strong {
  color: var(--odx-ui-ink-3);
  font-weight: var(--odx-ui-w-regular);
  font-variant-numeric: tabular-nums;
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-document-actions > button:not([aria-label$="(0)"]) {
  background: var(--odx-ui-mint);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35), var(--odx-ui-mint-glow);
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-document-actions > button:not([aria-label$="(0)"]) > strong { color: rgb(13 13 13 / .7); }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-document-actions > button:not([aria-label$="(0)"]):hover { background: var(--odx-ui-mint-hover); }
/* ---------- toolbar: practitioner filter ---------- */
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-toolbar .appointment-source-combobox { min-width: max(210px, calc(260 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-toolbar .combobox-trigger { min-height: max(36px, calc(46 * var(--odx-u))); border-radius: var(--odx-ui-r-control); background: rgb(255 255 255 / .86); }
:is(.odx-dossier, #odx-skin) .odx-o-acts .treatment-plan-tabs { max-width: 100%; }
/* ---------- card geometry: the legacy @media (min-width: 901px) block pins the card at 976 px and the toolbar,
   the document buttons and the table wrap at 950 px (a later legacy block frees them only from 1360 px). In the
   card's 3-column grid (overview.css: auto · 1fr · auto) those fixed widths resolved to 950 · 0 · 950 between
   901 and 1359 px: the Acte column collapsed to 0, the document buttons left the viewport and the Devis tabs
   shrank to a sliver. Every piece takes its content / track width instead, at every viewport. */
:is(.odx-dossier, #odx-skin) .odx-o-acts :is(.patient-operations-card, .patient-operations-toolbar, .patient-document-actions, .patient-operations-wrap) {
  width: auto;
  min-width: 0;
  max-width: none;
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-card { width: 100%; }
/* ---------- table geometry: full card width at every size (legacy pins 1360 px with !important) ---------- */
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-wrap {
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table:is(.patient-current-operations-table, .patient-plan-operations-table, .patient-initial-operations-table) {
  width: 100% !important;
  min-width: max(860px, 100%) !important;
  table-layout: fixed !important;
}
/* ACTUEL: the eight fixed columns floor at 954 px, so the table never goes below floors + 120 px — the Acte column
   keeps at least 120 px (names wrap on two lines) and the wrap scrolls sideways under ~1276 px instead */
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table.patient-current-operations-table { min-width: max(1074px, 100%) !important; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-current-operations-columns .operation-select-column { width: max(66px, calc(96 * var(--odx-u))) !important; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-current-operations-columns .operation-date-column { width: max(98px, calc(142 * var(--odx-u))) !important; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-current-operations-columns .operation-teeth-column { width: max(136px, calc(176 * var(--odx-u))) !important; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-current-operations-columns .operation-act-column { width: auto !important; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-current-operations-columns :is(.operation-price-column, .operation-received-column) { width: max(86px, calc(122 * var(--odx-u))) !important; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-current-operations-columns .operation-remaining-column { width: max(108px, calc(158 * var(--odx-u))) !important; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-current-operations-columns .operation-status-column { width: max(108px, calc(150 * var(--odx-u))) !important; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-current-operations-columns .operation-actions-column { width: max(266px, calc(348 * var(--odx-u))) !important; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-plan-operations-columns .operation-select-column { width: max(66px, calc(96 * var(--odx-u))) !important; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-plan-operations-columns .operation-date-column { width: max(98px, calc(142 * var(--odx-u))) !important; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-plan-operations-columns .operation-teeth-column { width: max(136px, calc(180 * var(--odx-u))) !important; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-plan-operations-columns .operation-act-column { width: auto !important; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-plan-operations-columns .operation-price-column { width: max(110px, calc(160 * var(--odx-u))) !important; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-plan-operations-columns .operation-actions-column { width: max(150px, calc(200 * var(--odx-u))) !important; }
/* the legacy media rules also size PLAN/INITIAL cells by nth-child: hand the widths back to the colgroup / table */
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-plan-operations-table :is(th, td) { width: auto !important; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-initial-operations-table :is(th, td):nth-child(1) { width: max(150px, calc(260 * var(--odx-u))) !important; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-initial-operations-table :is(th, td):nth-child(2) { width: auto !important; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-initial-operations-table :is(th, td):nth-child(3) { width: max(120px, calc(190 * var(--odx-u))) !important; }
/* ---------- head row ---------- */
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table > thead > tr > th {
  padding-top: max(6px, calc(8 * var(--odx-u)));
  padding-bottom: max(10px, calc(14 * var(--odx-u)));
  border-bottom-color: var(--odx-ui-line-2);
  vertical-align: middle;
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table > thead > tr > th:first-child,
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table > tbody > tr > td:first-child { padding-left: max(10px, calc(16 * var(--odx-u))); }
/* ---------- rows ---------- */
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table > tbody > tr > td {
  height: auto !important;
  overflow: visible;
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table > tbody > tr > td:nth-child(3) { overflow: hidden; }
/* tooth numbers: compact porcelain pills so a multi-tooth act stays a short row (4 per line), every number kept */
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table .teeth-pills { gap: max(3px, calc(4 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table .teeth-pills:not(.empty) > b {
  min-width: max(26px, calc(32 * var(--odx-u)));
  height: max(22px, calc(27 * var(--odx-u)));
  padding: 0 max(5px, calc(6 * var(--odx-u)));
  font-size: var(--odx-ui-fs-label);
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table .operation-name {
  color: var(--odx-ui-ink);
  font-size: inherit;
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: -0.03em;
  line-height: 1.3 !important;
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table .money-cell {
  font-size: inherit;
  font-weight: var(--odx-ui-w-light);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
/* Reste: amounts due in red, credit (negative remainder) in green with its "Crédit" word */
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table td > span.money-cell.red-text { color: var(--odx-ui-danger); font-weight: var(--odx-ui-w-regular); }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table td > span.money-cell.green-text { color: #177245; font-weight: var(--odx-ui-w-regular); }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table .clinical-finance-disabled { color: var(--odx-ui-ink-3); }
/* selection cell: checkbox + "Liste des séances" disc */
:is(.odx-dossier, #odx-skin) .odx-o-acts .operation-select-cell { display: inline-flex; align-items: center; gap: max(8px, calc(12 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table thead .dentalome-checkbox-control { margin: 0; }
/* row action discs: quiet until hovered, like the reference's kebab; destructive stays red */
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table :is(.row-actions, .operation-receipt-actions) {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: max(4px, calc(7 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table .plain-icon.small {
  width: max(30px, calc(38 * var(--odx-u)));
  height: max(30px, calc(38 * var(--odx-u)));
  background: rgb(13 13 13 / .032);
  color: rgb(13 13 13 / .78);
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table .plain-icon.small svg { width: max(14px, calc(18 * var(--odx-u))); height: max(14px, calc(18 * var(--odx-u))); stroke-width: 1.7; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table .plain-icon.small:hover:not(:disabled) { background: #fff; color: var(--odx-ui-ink); box-shadow: inset 0 0 0 1px var(--odx-ui-line-2), var(--odx-ui-raise); }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table .plain-icon.small.danger { color: var(--odx-ui-danger); background: var(--odx-ui-danger-soft); }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table .plain-icon.small.danger:hover:not(:disabled) { background: var(--odx-ui-danger-bg); color: #8f1b12; box-shadow: none; }
/* PLAN: "Ajouter comme acte" is the row's primary move (mint disc); already converted → "Réajouter" in emerald */
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table .plain-icon.small.plan-add-as-acte { background: var(--odx-ui-mint); color: var(--odx-ui-ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .4); }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table .plain-icon.small.plan-add-as-acte:hover:not(:disabled) { background: var(--odx-ui-mint-hover); box-shadow: var(--odx-ui-mint-glow); }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table .plain-icon.small.plan-add-as-acte.treated { background: var(--odx-ui-emerald-soft); color: var(--odx-ui-emerald-ink); box-shadow: none; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table .plain-icon.small:disabled { opacity: .4; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operations-table td .form-error { margin: 6px 0 0; font-size: var(--odx-ui-fs-label); }
/* status chip (tone set from the act status, see the status-control hook) */
:is(.odx-dossier, #odx-skin) .odx-o-acts .operation-status-control { display: inline-flex; flex-direction: column; align-items: flex-start; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-current-operations-table .operation-status-trigger { transform: none; }
:is(.odx-dossier, #odx-skin) .operation-status-trigger[aria-expanded="true"] .operation-status-badge { box-shadow: inset 0 0 0 1px rgb(13 13 13 / .14), 0 0 0 3px rgb(12 143 96 / .14); }
/* ---------- empty / loading states ---------- */
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operation-empty-state > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: max(6px, calc(8 * var(--odx-u)));
  min-height: max(170px, calc(240 * var(--odx-u)));
  color: var(--odx-ui-ink-2);
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operation-empty-state svg {
  box-sizing: content-box;
  width: max(22px, calc(28 * var(--odx-u)));
  height: max(22px, calc(28 * var(--odx-u)));
  margin-bottom: max(6px, calc(8 * var(--odx-u)));
  padding: max(14px, calc(18 * var(--odx-u)));
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, var(--odx-thumb-fill) 70%);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .05), 0 calc(10 * var(--odx-u)) calc(22 * var(--odx-u)) calc(-12 * var(--odx-u)) rgb(24 48 30 / .25);
  color: rgb(13 13 13 / .62);
  stroke-width: 1.5;
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operation-empty-state strong {
  color: var(--odx-ui-ink);
  font-size: var(--odx-ui-fs-subtitle);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.035em;
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .patient-operation-empty-state small {
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-note);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.02em;
}
/* ---------- pagination "n actes · page p sur N" ---------- */
:is(.odx-dossier, #odx-skin) .odx-o-acts .table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: max(12px, calc(16 * var(--odx-u)));
  width: 100%;
  padding: max(4px, calc(6 * var(--odx-u))) max(10px, calc(16 * var(--odx-u))) 0;
  white-space: nowrap;
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-label);
  font-variant-numeric: tabular-nums;
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .table-pagination .patients-pagination { width: auto; margin: 0 0 0 auto; display: flex; justify-content: flex-end; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .table-pagination .patients-pagination-list {
  display: flex;
  align-items: center;
  gap: max(4px, calc(6 * var(--odx-u)));
  margin: 0;
  padding: 0;
  list-style: none;
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .table-pagination :is(.patients-pagination-link, .patients-pagination-ellipsis) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: max(32px, calc(40 * var(--odx-u)));
  height: max(32px, calc(40 * var(--odx-u)));
  padding: 0 max(10px, calc(12 * var(--odx-u)));
  border: 0;
  border-radius: 999px;
  background: rgb(13 13 13 / .032);
  color: var(--odx-ui-ink);
  font-size: var(--odx-ui-fs-label);
  font-weight: var(--odx-ui-w-regular);
  text-decoration: none;
  box-shadow: none;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .odx-o-acts .table-pagination .patients-pagination-ellipsis { background: transparent; color: var(--odx-ui-ink-3); }
:is(.odx-dossier, #odx-skin) .odx-o-acts .table-pagination .patients-pagination-link:hover:not(.disabled, .active) { background: rgb(13 13 13 / .07); }
:is(.odx-dossier, #odx-skin) .odx-o-acts .table-pagination .patients-pagination-link.active { background: var(--odx-ui-mint); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
:is(.odx-dossier, #odx-skin) .odx-o-acts .table-pagination .patients-pagination-link.disabled { opacity: .4; pointer-events: none; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .table-pagination .patients-pagination-link:focus-visible { outline: var(--odx-ui-focus-ring); outline-offset: 2px; }
:is(.odx-dossier, #odx-skin) .odx-o-acts .table-pagination .patients-pagination-link svg { width: 15px; height: 15px; }
/* ---------- the act status menu (portal-less, fixed): each status keeps the chip's mark shape ---------- */
:is(.odx-dossier, #odx-skin) .operation-status-menu {
  position: fixed;
  z-index: 95;
  min-width: max(150px, calc(180 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .operation-status-menu > button::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
:is(.odx-dossier, #odx-skin) .operation-status-menu > button:nth-child(1)::before { box-shadow: inset 0 0 0 1.5px #b89600; background: linear-gradient(90deg, #b89600 50%, transparent 50%); }
:is(.odx-dossier, #odx-skin) .operation-status-menu > button:nth-child(2)::before { background: var(--odx-ui-ok-dot); }
:is(.odx-dossier, #odx-skin) .operation-status-menu > button:nth-child(3)::before { box-shadow: inset 0 0 0 1.6px var(--odx-ui-danger-dot); }
/* =================================================================================================== */
/* 2. ACT DIALOGS                                                                                        */
/* =================================================================================================== */
/* ---------- OperationForm (Ajouter / Modifier un acte) ---------- */
:is(.odx-dossier, #odx-skin) .operation-form-modal {
  width: min(max(640px, calc(760 * var(--odx-u))), calc(100vw - 32px));
  padding: max(20px, calc(28 * var(--odx-u))) max(20px, calc(30 * var(--odx-u))) max(16px, calc(22 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .operation-form-modal > .modal-head {
  width: calc(100% + 2 * max(20px, calc(30 * var(--odx-u))));
  height: auto;
  min-height: 0;
  flex: none;
  margin: 0 calc(-1 * max(20px, calc(30 * var(--odx-u)))) max(18px, calc(24 * var(--odx-u)));
  padding: 0 max(56px, calc(80 * var(--odx-u))) max(16px, calc(20 * var(--odx-u))) max(20px, calc(30 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .operation-form-modal > .modal-close-button {
  top: max(14px, calc(20 * var(--odx-u)));
  right: max(14px, calc(20 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .operation-form-modal .dentalome-operation-form {
  column-gap: max(14px, calc(18 * var(--odx-u)));
  row-gap: max(16px, calc(22 * var(--odx-u)));
}
/* legacy fixes the rows at 19 + 36 px: the reference fields are taller, so the grid follows its content */
:is(.odx-dossier, #odx-skin) .operation-form-modal .dentalome-operation-form > .operation-form-field,
:is(.odx-dossier, #odx-skin) .operation-form-modal .dentalome-operation-form > .operation-status-field > .patient-source-dropdown-field {
  grid-template-rows: auto;
  grid-auto-rows: auto;
  gap: max(7px, calc(9 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .operation-form-modal .dentalome-operation-form > .operation-form-field > label.field-label,
:is(.odx-dossier, #odx-skin) .operation-form-modal .dentalome-operation-form > .operation-status-field > .patient-source-dropdown-field > .field-label {
  height: auto;
  line-height: 1.3;
}
:is(.odx-dossier, #odx-skin) .operation-form-modal .dentalome-operation-form .field-label svg { color: rgb(13 13 13 / .5); }
:is(.odx-dossier, #odx-skin) .operation-form-modal .dentalome-operation-form small.muted {
  display: block;
  margin-top: 1px;
  color: var(--odx-ui-ink-3);
  font-size: var(--odx-ui-fs-label);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.015em;
  line-height: 1.4;
}
:is(.odx-dossier, #odx-skin) .operation-form-modal .dentalome-operation-form small.muted > button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--odx-ui-emerald-ink);
  font: inherit;
  font-weight: var(--odx-ui-w-regular);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .operation-form-modal .dentalome-operation-form input:disabled::placeholder { color: var(--odx-ui-ink-3); }
/* a long tooth list stays inside its field (ellipsis; every selected tooth stays visible as a mint chip in the picker) */
:is(.odx-dossier, #odx-skin) .operation-form-modal .teeth-selector-combobox { min-width: 0; }
:is(.odx-dossier, #odx-skin) .operation-form-modal .teeth-selector-combobox > .combobox-trigger { min-width: 0; width: 100%; overflow: hidden; }
:is(.odx-dossier, #odx-skin) .operation-form-modal .teeth-selector-combobox > .combobox-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.odx-dossier, #odx-skin) .operation-form-modal .operation-field-error { color: var(--odx-ui-danger); font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .operation-form-modal :is(.operation-catalogue-message, .operation-save-error) {
  padding: max(8px, calc(10 * var(--odx-u))) max(12px, calc(14 * var(--odx-u)));
  border-radius: max(12px, calc(14 * var(--odx-u)));
  background: var(--odx-ui-danger-soft);
  color: var(--odx-ui-danger-ink);
  font-size: var(--odx-ui-fs-note);
  line-height: 1.45;
}
:is(.odx-dossier, #odx-skin) .operation-form-modal .operation-catalogue-message[role="status"] { background: var(--odx-ui-warn-bg); color: var(--odx-ui-warn-ink); }
:is(.odx-dossier, #odx-skin) .operation-form-modal :is(.operation-catalogue-message, .operation-save-error, .operation-pricing-review) button {
  margin-left: 8px;
  min-height: var(--odx-ui-h-sm);
  padding: 0 max(12px, calc(16 * var(--odx-u)));
  border: 1px solid var(--odx-ui-line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--odx-ui-ink);
  font: inherit;
  font-weight: var(--odx-ui-w-regular);
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .operation-form-modal .operation-pricing-review { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
:is(.odx-dossier, #odx-skin) .operation-form-modal .operation-pricing-review p { margin: 0; }
:is(.odx-dossier, #odx-skin) .operation-form-modal > .dentalome-operation-form > .modal-actions,
:is(.odx-dossier, #odx-skin) .operation-form-modal .modal-actions {
  margin-top: max(6px, calc(8 * var(--odx-u)));
  padding-top: max(14px, calc(18 * var(--odx-u)));
  gap: max(8px, calc(10 * var(--odx-u)));
}
/* act picker (catalogue): a variant's category and price in grey under its name */
:is(.odx-dossier, #odx-skin) .operation-act-command-dialog .operation-act-variant {
  display: block;
  margin-top: 2px;
  color: var(--odx-ui-ink-3);
  font-size: var(--odx-ui-fs-label);
  font-weight: var(--odx-ui-w-light);
}
:is(.odx-dossier, #odx-skin) .operation-act-command-dialog .operation-act-command-option > span { white-space: normal; }
:is(.odx-dossier, #odx-skin) .operation-act-command-dialog .operation-act-command-option > svg:not(.selected) { opacity: 0; }
:is(.odx-dossier, #odx-skin) .operation-act-command-dialog .operation-act-command-option > svg.selected { color: var(--odx-ui-emerald); opacity: 1; }
:is(.odx-dossier, #odx-skin) .operation-act-command-dialog .operation-act-command-options > em {
  display: block;
  padding: max(18px, calc(24 * var(--odx-u)));
  color: var(--odx-ui-ink-2);
  font-style: normal;
  text-align: center;
}
/* teeth picker: adult (4 quadrants x 8) and primary (4 x 5) teeth as a grid of porcelain chips.
   The checkbox button stays the control (role, focus, state); it covers its chip so the whole chip toggles. */
:is(.odx-dossier, #odx-skin) .operation-teeth-command-dialog { padding: 0; }
:is(.odx-dossier, #odx-skin) .operation-teeth-command-dialog .operation-teeth-command-scroll {
  height: 100%;
  padding: max(12px, calc(14 * var(--odx-u))) max(12px, calc(14 * var(--odx-u))) max(14px, calc(16 * var(--odx-u)));
  scrollbar-width: thin;
}
:is(.odx-dossier, #odx-skin) .operation-teeth-command-dialog .operation-teeth-command-scroll > p {
  height: auto;
  margin: 0 2px max(7px, calc(9 * var(--odx-u)));
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-label);
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-transform: none;
}
:is(.odx-dossier, #odx-skin) .operation-teeth-command-dialog .operation-teeth-command-scroll > p:not(:first-child) { margin-top: max(12px, calc(16 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .operation-teeth-command-dialog .operation-tooth-choice-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: max(4px, calc(5 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .operation-teeth-command-dialog .operation-teeth-command-scroll > .operation-tooth-choice-list:nth-of-type(2) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
:is(.odx-dossier, #odx-skin) .operation-teeth-command-dialog .operation-tooth-choice {
  position: relative;
  display: grid;
  place-items: center;
  width: auto;
  height: max(28px, calc(33 * var(--odx-u)));
  padding: 0;
  border-radius: max(9px, calc(11 * var(--odx-u)));
  background: var(--odx-thumb-fill);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .06);
  cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease), box-shadow var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .operation-teeth-command-dialog .operation-tooth-choice:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--odx-ui-line-2), var(--odx-ui-raise); }
:is(.odx-dossier, #odx-skin) .operation-teeth-command-dialog .operation-teeth-command-scroll .operation-tooth-choice > button[role="checkbox"][aria-checked] {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 3px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  color: var(--odx-ui-emerald-ink);
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .operation-teeth-command-dialog .operation-teeth-command-scroll .operation-tooth-choice > button[role="checkbox"][aria-checked] svg { width: 10px; height: 10px; stroke-width: 3.2; }
:is(.odx-dossier, #odx-skin) .operation-teeth-command-dialog .operation-teeth-command-scroll .operation-tooth-choice > button[role="checkbox"][aria-checked]:focus-visible { outline: var(--odx-ui-focus-ring); outline-offset: 1px; }
:is(.odx-dossier, #odx-skin) .operation-teeth-command-dialog .operation-tooth-choice > label {
  flex: none;
  margin: 0;
  padding: 0;
  color: var(--odx-ui-ink);
  font-size: var(--odx-ui-fs-chip);
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
:is(.odx-dossier, #odx-skin) .operation-teeth-command-dialog .operation-tooth-choice:has(> button[aria-checked="true"]) {
  background: var(--odx-ui-mint);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45), 0 calc(6 * var(--odx-u)) calc(14 * var(--odx-u)) calc(-8 * var(--odx-u)) rgb(74 190 112 / .6);
}
:is(.odx-dossier, #odx-skin) .operation-teeth-command-dialog .operation-tooth-choice:has(> button[aria-checked="true"]) > label { font-weight: var(--odx-ui-w-medium); }
/* "Enregistrer les modifications de cet acte ?" (edit impact confirmation) */
:is(.odx-dossier, #odx-skin) .operation-edit-impact-dialog {
  width: min(max(440px, calc(540 * var(--odx-u))), calc(100vw - 32px));
  padding: max(20px, calc(28 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .operation-edit-impact-dialog h2 { margin: 0 0 8px; font-size: var(--odx-ui-fs-title); font-weight: var(--odx-ui-w-light); letter-spacing: var(--odx-ui-ls-title); line-height: 1.22; }
:is(.odx-dossier, #odx-skin) .operation-edit-impact-dialog p { margin: 0; color: var(--odx-ui-ink-2); font-size: var(--odx-ui-fs-note); font-weight: var(--odx-ui-w-light); line-height: 1.5; }
:is(.odx-dossier, #odx-skin) .operation-edit-impact-actions { display: flex; justify-content: flex-end; gap: max(8px, calc(10 * var(--odx-u))); margin-top: max(18px, calc(24 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .operation-edit-impact-actions > button:not(.primary-button) {
  min-height: var(--odx-ui-h);
  padding: 0 var(--odx-ui-pad-x);
  border: 1px solid var(--odx-ui-line-2);
  border-radius: var(--odx-ui-r-control);
  background: var(--odx-ui-surface);
  color: var(--odx-ui-ink);
  font-family: var(--odx-ui-font);
  font-size: var(--odx-ui-fs-button);
  font-weight: var(--odx-ui-w-regular);
  cursor: pointer;
}
/* ---------- "Choisir le praticien de l'acte" (plan act → current act) ---------- */
:is(.odx-dossier, #odx-skin) .modal:has(#plan-act-practitioner) {
  width: min(max(460px, calc(560 * var(--odx-u))), calc(100vw - 32px));
  padding: max(20px, calc(28 * var(--odx-u))) max(20px, calc(30 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .modal:has(#plan-act-practitioner) > .modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: max(12px, calc(16 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .modal:has(#plan-act-practitioner) > p { margin: 0 0 max(8px, calc(10 * var(--odx-u))); line-height: 1.5; }
:is(.odx-dossier, #odx-skin) .modal:has(#plan-act-practitioner) > p:first-of-type {
  display: inline-flex;
  padding: max(7px, calc(9 * var(--odx-u))) max(12px, calc(16 * var(--odx-u)));
  border-radius: 999px;
  background: rgb(197 252 196 / .4);
  color: var(--odx-ui-ink);
  font-size: var(--odx-ui-fs-note);
  font-weight: var(--odx-ui-w-regular);
}
:is(.odx-dossier, #odx-skin) .modal:has(#plan-act-practitioner) > p:nth-of-type(2) { color: var(--odx-ui-ink-2); font-size: var(--odx-ui-fs-note); font-weight: var(--odx-ui-w-light); }
:is(.odx-dossier, #odx-skin) .modal:has(#plan-act-practitioner) form { display: grid; gap: max(8px, calc(10 * var(--odx-u))); margin-top: max(10px, calc(14 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .modal:has(#plan-act-practitioner) form > p[role="alert"] { margin: 0; color: var(--odx-ui-danger); font-size: var(--odx-ui-fs-note); }
:is(.odx-dossier, #odx-skin) .modal:has(#plan-act-practitioner) form .modal-actions { margin-top: max(10px, calc(14 * var(--odx-u))); }
/* ---------- Séances — <acte> (OperationSessionsModal) ---------- */
:is(.odx-dossier, #odx-skin) .operation-sessions-modal { width: min(max(560px, calc(680 * var(--odx-u))), calc(100vw - 32px)); }
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-sessions-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: max(10px, calc(14 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-summary-card {
  display: flex;
  flex-direction: column;
  gap: max(3px, calc(5 * var(--odx-u)));
  padding: max(11px, calc(15 * var(--odx-u))) max(14px, calc(20 * var(--odx-u)));
  border: 0;
  border-radius: max(14px, calc(18 * var(--odx-u)));
  background: rgb(255 255 255 / .74);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .055);
}
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-summary-card.received { background: linear-gradient(135deg, var(--odx-score-good) 0%, rgb(225 251 196 / .9) 100%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5); }
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-summary-card > p {
  margin: 0;
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-label);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.02em;
  text-transform: none;
}
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-summary-card > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-summary-card > div > span {
  color: var(--odx-ui-ink);
  font-size: max(19px, calc(27 * var(--odx-u)));
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-summary-card.received > div > span { color: #155c37; }
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-summary-card > div > small { color: var(--odx-ui-ink-3); font-size: var(--odx-ui-fs-label); font-weight: var(--odx-ui-w-light); }
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-sessions-scroll { padding: max(4px, calc(6 * var(--odx-u))) max(18px, calc(24 * var(--odx-u))) max(16px, calc(20 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-list { display: grid; gap: max(8px, calc(10 * var(--odx-u))); margin: 0; padding: 0; list-style: none; }
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-card {
  display: grid;
  gap: max(6px, calc(8 * var(--odx-u)));
  padding: max(10px, calc(14 * var(--odx-u))) max(12px, calc(16 * var(--odx-u)));
  border: 0;
  border-radius: max(14px, calc(18 * var(--odx-u)));
  background: rgb(255 255 255 / .74);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .055);
}
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 0; border: 0; }
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-date-chip {
  display: inline-flex;
  align-items: baseline;
  gap: max(5px, calc(6 * var(--odx-u)));
  padding: max(5px, calc(6 * var(--odx-u))) max(12px, calc(14 * var(--odx-u)));
  border: 0;
  border-radius: 999px;
  background: var(--odx-chip-lime);
  color: var(--odx-ui-ink);
}
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-date-chip svg { align-self: center; width: 15px; height: 15px; color: rgb(13 13 13 / .55); stroke-width: 1.7; }
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-date-chip > span { font-size: var(--odx-ui-fs-value); font-weight: var(--odx-ui-w-regular); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-date-chip > small { font-size: var(--odx-ui-fs-label); font-weight: var(--odx-ui-w-regular); letter-spacing: .04em; }
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-date-chip > em { color: var(--odx-ui-ink-2); font-size: var(--odx-ui-fs-label); font-style: normal; font-weight: var(--odx-ui-w-light); }
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-card-actions { display: inline-flex; gap: 6px; }
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-card > p {
  margin: 0;
  color: var(--odx-ui-ink);
  font-size: var(--odx-ui-fs-body);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.025em;
  line-height: 1.45;
  white-space: pre-wrap;
}
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: max(8px, calc(10 * var(--odx-u)));
  padding: max(22px, calc(30 * var(--odx-u))) 0 max(18px, calc(24 * var(--odx-u)));
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-note);
  font-weight: var(--odx-ui-w-light);
}
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-session-empty::before {
  content: "";
  width: max(44px, calc(56 * var(--odx-u)));
  height: max(44px, calc(56 * var(--odx-u)));
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0d' stroke-opacity='.6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01M16 18h.01'/%3E%3C/svg%3E") center / 42% no-repeat,
    radial-gradient(circle at 35% 30%, #fff 0%, var(--odx-thumb-fill) 70%);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .05), 0 calc(10 * var(--odx-u)) calc(22 * var(--odx-u)) calc(-12 * var(--odx-u)) rgb(24 48 30 / .25);
}
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-sessions-footer {
  margin-top: 0;
  padding: max(14px, calc(18 * var(--odx-u))) max(18px, calc(24 * var(--odx-u))) max(16px, calc(20 * var(--odx-u)));
  border-top: 1px solid var(--odx-ui-line);
}
:is(.odx-dossier, #odx-skin) .operation-sessions-modal .operation-sessions-footer .primary-button {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: var(--odx-ui-h);
  padding: 0 var(--odx-ui-pad-x) 0 max(14px, calc(18 * var(--odx-u)));
  border-radius: var(--odx-ui-r-control);
  font-size: var(--odx-ui-fs-button);
  font-weight: var(--odx-ui-w-regular);
}
:is(.odx-dossier, #odx-skin) .operation-sessions-modal > :is(.notice.error, p[role="status"]) { margin: 0 0 12px; }
/* ---------- Ajouter / Modifier une séance ---------- */
:is(.odx-dossier, #odx-skin) .operation-session-form-modal { width: min(max(480px, calc(580 * var(--odx-u))), calc(100vw - 32px)); }
:is(.odx-dossier, #odx-skin) .operation-session-form-modal .operation-session-source-form { display: grid; gap: max(14px, calc(18 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .operation-session-form-modal .operation-session-source-field { display: grid; gap: max(7px, calc(9 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .operation-session-form-modal .operation-session-source-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--odx-ui-ink);
  font-size: var(--odx-ui-fs-note);
  font-weight: var(--odx-ui-w-regular);
}
:is(.odx-dossier, #odx-skin) .operation-session-form-modal .operation-session-source-label svg { width: 16px; height: 16px; color: rgb(13 13 13 / .5); }
:is(.odx-dossier, #odx-skin) .operation-session-form-modal .operation-session-detail-control small,
:is(.odx-dossier, #odx-skin) .operation-session-form-modal .operation-session-source-field > small { color: var(--odx-ui-ink-3); font-size: var(--odx-ui-fs-label); font-variant-numeric: tabular-nums; }
/* ---------- Supprimer l'opération (OperationDeleteConfirmModal) ---------- */
:is(.odx-dossier, #odx-skin) .modal.operation-delete-confirm-modal.dentalome-delete-alert-modal {
  width: min(max(540px, calc(640 * var(--odx-u))), calc(100vw - 32px));
}
:is(.odx-dossier, #odx-skin) .operation-delete-confirm-modal .dentalome-delete-alert-body {
  display: flex;
  flex-direction: column;
  gap: max(8px, calc(10 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .operation-delete-confirm-modal .dentalome-delete-alert-body > p {
  margin: 0;
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-note);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.015em;
  line-height: 1.5;
}
/* act name, then the three amounts as a quiet tile */
:is(.odx-dossier, #odx-skin) .operation-delete-confirm-modal .dentalome-delete-alert-body > p:first-child > strong {
  color: var(--odx-ui-ink);
  font-size: var(--odx-ui-fs-subtitle);
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: -0.035em;
}
:is(.odx-dossier, #odx-skin) .operation-delete-confirm-modal .dentalome-delete-alert-body > p:nth-child(2) {
  padding: max(9px, calc(12 * var(--odx-u))) max(12px, calc(16 * var(--odx-u)));
  border-radius: max(12px, calc(14 * var(--odx-u)));
  background: rgb(13 13 13 / .035);
  color: var(--odx-ui-ink);
  font-size: var(--odx-ui-fs-body);
  font-variant-numeric: tabular-nums;
}
:is(.odx-dossier, #odx-skin) .operation-delete-confirm-modal .dentalome-delete-alert-body > p[role="status"] {
  padding: max(9px, calc(12 * var(--odx-u))) max(12px, calc(16 * var(--odx-u)));
  border-radius: max(12px, calc(14 * var(--odx-u)));
  background: var(--odx-ui-warn-bg);
  color: var(--odx-ui-warn-ink);
}
:is(.odx-dossier, #odx-skin) .operation-delete-confirm-modal .dentalome-delete-alert-body > p.payment-submit-error {
  padding: max(9px, calc(12 * var(--odx-u))) max(12px, calc(16 * var(--odx-u)));
  border-radius: max(12px, calc(14 * var(--odx-u)));
  background: var(--odx-ui-danger-soft);
  color: var(--odx-ui-danger-ink);
}
:is(.odx-dossier, #odx-skin) .operation-delete-confirm-modal .dentalome-delete-alert-body > .modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: max(8px, calc(10 * var(--odx-u)));
  margin-top: max(10px, calc(14 * var(--odx-u)));
}
/* =================================================================================================== */
/* 3. RENDEZ-VOUS SECTION                                                                                */
/* =================================================================================================== */
/* the section card (shell) is the glass card: the legacy list card inside it loses its own frame */
:is(.odx-dossier, #odx-skin) .patient-rdv-card.dentalome-patient-list-card {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  --odx-ui-row-pad-y: max(12px, calc(20 * var(--odx-u)));
  --odx-ui-row-pad-x: max(10px, calc(16 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .patient-rdv-card > .dentalome-list-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title action" "sub action";
  align-items: center;
  column-gap: max(16px, calc(24 * var(--odx-u)));
  row-gap: max(4px, calc(6 * var(--odx-u)));
  margin: 0 0 max(18px, calc(26 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .patient-rdv-card > .dentalome-list-title > h1 {
  grid-area: title;
  margin: 0;
  color: var(--odx-ink-strong);
  font-family: var(--odx-ui-font);
  font-size: max(22px, calc(30 * var(--odx-u)));
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.04em;
  line-height: 1.2;
}
:is(.odx-dossier, #odx-skin) .patient-rdv-card > .dentalome-list-title > p {
  grid-area: sub;
  margin: 0;
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-note);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.02em;
  line-height: 1.4;
}
:is(.odx-dossier, #odx-skin) .patient-rdv-card > .dentalome-list-title > .primary-button {
  grid-area: action;
  align-self: center;
  justify-self: end;
  margin: 0;
  padding-left: max(14px, calc(18 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .patient-rdv-card > :is(.form-error, p[role="status"]) { margin: 0 0 max(12px, calc(16 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .patient-rdv-card > .form-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: max(8px, calc(10 * var(--odx-u))) max(10px, calc(12 * var(--odx-u))) max(8px, calc(10 * var(--odx-u))) max(12px, calc(16 * var(--odx-u)));
  border-radius: max(12px, calc(16 * var(--odx-u)));
  background: var(--odx-ui-danger-soft);
  color: var(--odx-ui-danger-ink);
  font-size: var(--odx-ui-fs-note);
}
:is(.odx-dossier, #odx-skin) .patient-rdv-card > .form-error > p { margin: 0; }
:is(.odx-dossier, #odx-skin) .patient-rdv-card > .form-error > button {
  margin-left: auto;
  min-height: var(--odx-ui-h-sm);
  padding: 0 max(12px, calc(16 * var(--odx-u)));
  border: 1px solid var(--odx-ui-line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--odx-ui-ink);
  font: inherit;
  font-weight: var(--odx-ui-w-regular);
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .patient-rdv-card > p[role="status"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-note);
}
:is(.odx-dossier, #odx-skin) .patient-rdv-card > p[role="status"]::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgb(12 143 96 / .2);
  border-top-color: var(--odx-ui-emerald);
  animation: odx-sr-spin 900ms linear infinite;
}
:is(.odx-dossier, #odx-skin) .patient-rdv-card > .dentalome-patient-table-scroll { border: 0; border-radius: 0; overflow: visible; }
/* the list: Date · Heure · Praticien · Statut · Actions */
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table { width: 100%; min-width: 0; table-layout: fixed; }
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table :is(th, td):nth-child(1) { width: 20%; }
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table :is(th, td):nth-child(2) { width: 20%; }
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table :is(th, td):nth-child(3) { width: auto; }
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table :is(th, td):nth-child(4) { width: 17%; }
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table :is(th, td):nth-child(5) { width: max(110px, calc(150 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table > thead > tr > th {
  padding-top: max(6px, calc(8 * var(--odx-u)));
  padding-bottom: max(10px, calc(14 * var(--odx-u)));
  border-bottom-color: var(--odx-ui-line-2);
}
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table > tbody > tr > td > div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table > tbody > tr > td:nth-child(1) > div { font-weight: var(--odx-ui-w-regular); }
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table > tbody > tr > td:nth-child(2) > div { font-variant-numeric: tabular-nums; }
/* a cancelled appointment reads as past: quieter date and time, the chip keeps the state */
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table > tbody > tr[data-appointment-status="ANNULE"] > td:not(:nth-child(4)) > div { color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table .row-actions { display: inline-flex; align-items: center; gap: max(5px, calc(7 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table .plain-icon.small {
  width: max(30px, calc(38 * var(--odx-u)));
  height: max(30px, calc(38 * var(--odx-u)));
  background: rgb(13 13 13 / .032);
  color: rgb(13 13 13 / .78);
}
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table .plain-icon.small svg { width: max(14px, calc(18 * var(--odx-u))); height: max(14px, calc(18 * var(--odx-u))); stroke-width: 1.7; }
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table .plain-icon.small:hover:not(:disabled) { background: #fff; color: var(--odx-ui-ink); box-shadow: inset 0 0 0 1px var(--odx-ui-line-2), var(--odx-ui-raise); }
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table .plain-icon.small.danger { color: var(--odx-ui-danger); background: var(--odx-ui-danger-soft); }
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table .plain-icon.small.danger:hover:not(:disabled) { background: var(--odx-ui-danger-bg); color: #8f1b12; box-shadow: none; }
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table .plain-icon.small.danger:disabled { opacity: .38; }
:is(.odx-dossier, #odx-skin) .patient-rdv-card .appointment-disabled-action { display: inline-flex; cursor: not-allowed; }
/* empty state: a soft calendar disc above the message */
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table td.dentalome-empty-row {
  padding-top: max(34px, calc(52 * var(--odx-u))) !important;
  padding-bottom: max(34px, calc(52 * var(--odx-u))) !important;
}
:is(.odx-dossier, #odx-skin) .patient-rdv-card .patient-rdv-table td.dentalome-empty-row::before {
  content: "";
  display: block;
  width: max(48px, calc(60 * var(--odx-u)));
  height: max(48px, calc(60 * var(--odx-u)));
  margin: 0 auto max(12px, calc(14 * var(--odx-u)));
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0d' stroke-opacity='.6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M10 16h4'/%3E%3C/svg%3E") center / 42% no-repeat,
    radial-gradient(circle at 35% 30%, #fff 0%, var(--odx-thumb-fill) 70%);
  box-shadow: inset 0 0 0 1px rgb(13 13 13 / .05), 0 calc(10 * var(--odx-u)) calc(22 * var(--odx-u)) calc(-12 * var(--odx-u)) rgb(24 48 30 / .25);
}
/* footer: "a–b sur n" + ‹ p / N › */
:is(.odx-dossier, #odx-skin) .patient-rdv-card .dentalome-table-footer {
  margin-top: max(6px, calc(8 * var(--odx-u)));
  padding: max(12px, calc(16 * var(--odx-u))) max(10px, calc(16 * var(--odx-u))) 0;
  border-top: 1px solid var(--odx-ui-line);
}
:is(.odx-dossier, #odx-skin) .patient-rdv-card .dentalome-pagination > span { min-width: 44px; color: var(--odx-ui-ink); text-align: center; font-variant-numeric: tabular-nums; }
/* ---------- AppointmentForm (Ajouter un Rendez-vous / Détails du Rendez-vous) ---------- */
:is(.odx-dossier, #odx-skin) .appointment-form-modal .appointment-form-grid {
  column-gap: max(14px, calc(18 * var(--odx-u)));
  row-gap: max(14px, calc(18 * var(--odx-u)));
}
:is(.odx-dossier, #odx-skin) .appointment-form-modal .appointment-form-date-summary {
  border: 0;
  border-radius: max(14px, calc(18 * var(--odx-u)));
  background: linear-gradient(90deg, rgb(197 252 196 / .42) 0%, rgb(225 251 196 / .3) 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6);
}
:is(.odx-dossier, #odx-skin) .appointment-form-modal .appointment-form-date-text { color: var(--odx-ui-ink); font-size: var(--odx-ui-fs-note); font-weight: var(--odx-ui-w-light); }
:is(.odx-dossier, #odx-skin) .appointment-form-modal .appointment-form-date-text :is(strong, b) { font-weight: var(--odx-ui-w-medium); }
/* draft line ("Votre brouillon sera conservé automatiquement." / "Brouillon enregistré"): the panel carries inline
   legacy styles (blue-grey tile, 13 px), hence the !important on those four properties only */
:is(.odx-dossier, #odx-skin) .appointment-form-modal .appointment-workspace-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: max(8px, calc(10 * var(--odx-u))) max(12px, calc(14 * var(--odx-u))) !important;
  border: 0;
  border-radius: max(12px, calc(14 * var(--odx-u))) !important;
  background: rgb(13 13 13 / .03) !important;
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-label) !important;
  font-weight: var(--odx-ui-w-light);
}
:is(.odx-dossier, #odx-skin) .appointment-form-modal .appointment-workspace-status::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--odx-ui-emerald);
}
:is(.odx-dossier, #odx-skin) .appointment-form-modal .appointment-workspace-status :is(p, span, strong) { margin: 0; color: inherit; font: inherit; }
:is(.odx-dossier, #odx-skin) .appointment-form-modal .appointment-workspace-status button {
  min-height: var(--odx-ui-h-sm);
  padding: 0 max(12px, calc(14 * var(--odx-u)));
  border: 1px solid var(--odx-ui-line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--odx-ui-ink);
  font: inherit;
  font-weight: var(--odx-ui-w-regular);
  cursor: pointer;
}
:is(.odx-dossier, #odx-skin) .appointment-form-modal .appointment-form-patient-link {
  color: var(--odx-ui-emerald-ink);
  font-weight: var(--odx-ui-w-regular);
  text-decoration: underline;
  text-decoration-color: rgb(10 115 80 / .35);
  text-underline-offset: 3px;
}
:is(.odx-dossier, #odx-skin) .appointment-form-modal .appointment-form-patient-link:hover { text-decoration-color: currentColor; }
/* patient picker (already filled with this patient) */
:is(.odx-dossier, #odx-skin) .appointment-form-modal .patient-smart-picker > label {
  margin-bottom: max(6px, calc(8 * var(--odx-u)));
  color: var(--odx-ui-ink-2);
  font-size: var(--odx-ui-fs-label);
  font-weight: var(--odx-ui-w-light);
}
:is(.odx-dossier, #odx-skin) .appointment-form-modal .patient-smart-input {
  min-height: var(--odx-ui-h);
  padding: 0 max(12px, calc(14 * var(--odx-u)));
  border: 1px solid var(--odx-ui-line-field);
  border-radius: var(--odx-ui-r-field);
  background: var(--odx-ui-field);
  color: var(--odx-ui-ink-3);
}
:is(.odx-dossier, #odx-skin) .appointment-form-modal .patient-smart-input:focus-within { border-color: var(--odx-ui-emerald); box-shadow: var(--odx-ui-focus); }
:is(.odx-dossier, #odx-skin) .appointment-form-modal .patient-smart-input input { min-height: 0; padding: 0 !important; font-size: var(--odx-ui-fs-body); }
:is(.odx-dossier, #odx-skin) .appointment-form-modal .patient-smart-current {
  margin-top: max(8px, calc(10 * var(--odx-u)));
  padding: max(10px, calc(12 * var(--odx-u))) max(12px, calc(14 * var(--odx-u)));
  border: 0;
  border-radius: max(12px, calc(16 * var(--odx-u)));
  background: rgb(197 252 196 / .3);
  box-shadow: inset 0 0 0 1px rgb(12 143 96 / .12);
}
:is(.odx-dossier, #odx-skin) .appointment-form-modal .patient-smart-current > small {
  margin-bottom: 4px;
  color: var(--odx-ui-emerald-ink);
  font-size: var(--odx-ui-fs-micro);
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: 0;
}
:is(.odx-dossier, #odx-skin) .appointment-form-modal .patient-suggestion-identity strong { color: var(--odx-ui-ink); font-size: var(--odx-ui-fs-note); font-weight: var(--odx-ui-w-medium); letter-spacing: -0.02em; }
:is(.odx-dossier, #odx-skin) .appointment-form-modal .patient-suggestion-identity > small { color: var(--odx-ui-ink-2); font-size: var(--odx-ui-fs-label); font-weight: var(--odx-ui-w-light); }
:is(.odx-dossier, #odx-skin) .appointment-form-modal .patient-smart-results { border: 0; border-radius: var(--odx-ui-r-menu); box-shadow: var(--odx-ui-menu-shadow); }
:is(.odx-dossier, #odx-skin) .appointment-form-modal .patient-smart-results > :is(p, small) { color: var(--odx-ui-ink-2); font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .appointment-form-modal .patient-smart-results div > button { border-radius: max(9px, calc(12 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .appointment-form-modal .patient-smart-results div > button:is(:hover, .is-active) { background: rgb(13 13 13 / .045); }
:is(.odx-dossier, #odx-skin) .appointment-form-modal .appointment-field-help { color: var(--odx-ui-ink-3); font-size: var(--odx-ui-fs-label); }
:is(.odx-dossier, #odx-skin) .appointment-form-modal :is(.appointment-field-error, .appointment-form-submit-error) { color: var(--odx-ui-danger); font-size: var(--odx-ui-fs-label); line-height: 1.4; }
/* footer: icon actions (Supprimer · Imprimer le rendez-vous · WhatsApp) as round discs with tooltips, then Annuler / Ajouter */
:is(.odx-dossier, #odx-skin) .appointment-form-modal .modal-actions.appointment-form-actions { align-items: center; gap: max(8px, calc(10 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .appointment-form-modal .appointment-form-submit-actions { display: inline-flex; gap: max(8px, calc(10 * var(--odx-u))); margin-left: auto; }
:is(.odx-dossier, #odx-skin) .modal-actions.appointment-form-actions .appointment-form-submit-actions > button:not(.primary-button) {
  min-height: var(--odx-ui-h);
  height: auto;
  padding: 0 var(--odx-ui-pad-x);
  border: 1px solid var(--odx-ui-line-2);
  border-radius: var(--odx-ui-r-control);
  background: var(--odx-ui-surface);
  box-shadow: 0 1px 2px rgb(13 13 13 / .04);
  color: var(--odx-ui-ink);
  font-family: var(--odx-ui-font);
  font-size: var(--odx-ui-fs-button);
  font-weight: var(--odx-ui-w-regular);
  letter-spacing: -0.027em;
  line-height: 1.2;
}
:is(.odx-dossier, #odx-skin) .modal-actions.appointment-form-actions .appointment-form-submit-actions > button:not(.primary-button):hover:not(:disabled) { background: #fff; border-color: rgb(13 13 13 / .18); box-shadow: var(--odx-ui-raise); }
:is(.odx-dossier, #odx-skin) .modal-actions.appointment-form-actions .appointment-form-footer-actions { gap: max(6px, calc(8 * var(--odx-u))); }
:is(.odx-dossier, #odx-skin) .modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action {
  position: relative;
  width: var(--odx-ui-icon-d);
  min-width: 0;
  height: var(--odx-ui-icon-d);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--odx-ui-soft);
  box-shadow: none;
  color: var(--odx-ui-ink);
  cursor: pointer;
  transition: background var(--odx-ui-dur) var(--odx-ui-ease), transform var(--odx-ui-dur) var(--odx-ui-ease);
}
:is(.odx-dossier, #odx-skin) .modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action:hover:not(:disabled) { background: var(--odx-ui-soft-hover); }
:is(.odx-dossier, #odx-skin) .modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action.danger { background: var(--odx-ui-danger-soft); color: var(--odx-ui-danger); }
:is(.odx-dossier, #odx-skin) .modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action.danger:hover:not(:disabled) { background: var(--odx-ui-danger-bg); }
:is(.odx-dossier, #odx-skin) .modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action.whatsapp { background: rgb(37 211 102 / .12); color: #12804a; }
:is(.odx-dossier, #odx-skin) .modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action.whatsapp:hover:not(:disabled) { background: rgb(37 211 102 / .2); }
/* the legacy mask points at /dentalome-assets/whatsapp.svg, absent from this copy: an inline message glyph keeps the button legible */
:is(.odx-dossier, #odx-skin) .modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action.whatsapp::before {
  content: "";
  width: max(15px, calc(18 * var(--odx-u)));
  height: max(15px, calc(18 * var(--odx-u)));
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22Z'/%3E%3Cpath d='M9.2 8.6c.2-.5.6-.6 1-.6h.4l.9 2-.6.8c.4.9 1.2 1.7 2.1 2.1l.8-.6 2 .9v.4c0 .4-.1.8-.6 1-1 .5-2.4.2-3.7-.7a8 8 0 0 1-2-2c-.8-1.2-1.1-2.5-.3-3.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22Z'/%3E%3Cpath d='M9.2 8.6c.2-.5.6-.6 1-.6h.4l.9 2-.6.8c.4.9 1.2 1.7 2.1 2.1l.8-.6 2 .9v.4c0 .4-.1.8-.6 1-1 .5-2.4.2-3.7-.7a8 8 0 0 1-2-2c-.8-1.2-1.1-2.5-.3-3.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is(.odx-dossier, #odx-skin) .modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action.whatsapp img { display: none; }
:is(.odx-dossier, #odx-skin) .modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action svg { width: max(15px, calc(18 * var(--odx-u))); height: max(15px, calc(18 * var(--odx-u))); stroke-width: 1.7; }
:is(.odx-dossier, #odx-skin) .modal-actions.appointment-form-actions .appointment-form-footer-actions .appointment-form-icon-action:focus-visible { outline: var(--odx-ui-focus-ring); outline-offset: 2px; }
:is(.odx-dossier, #odx-skin) .appointment-form-modal .appointment-form-icon-action[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 5;
  padding: 6px 11px;
  border-radius: 10px;
  background: rgb(33 31 31 / .94);
  color: var(--odx-ui-on-dark);
  font-family: var(--odx-ui-font);
  font-size: var(--odx-ui-fs-label);
  font-weight: var(--odx-ui-w-light);
  letter-spacing: -0.01em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}
:is(.odx-dossier, #odx-skin) .appointment-form-modal .appointment-form-icon-action[data-tooltip]:is(:hover, :focus-visible)::after { opacity: 1; transform: translate(-50%, 0); }
/* "Voulez-vous annuler ce rendez-vous ?" */
:is(.odx-dossier, #odx-skin) .appointment-cancel-alert-modal { width: min(max(480px, calc(560 * var(--odx-u))), calc(100vw - 32px)); }
:is(.odx-dossier, #odx-skin) .appointment-cancel-alert-modal .appointment-cancel-alert-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: max(36px, calc(46 * var(--odx-u)));
  height: max(36px, calc(46 * var(--odx-u)));
  margin-right: max(10px, calc(12 * var(--odx-u)));
  border-radius: 50%;
  background: var(--odx-ui-danger-bg);
  color: var(--odx-ui-danger);
}
:is(.odx-dossier, #odx-skin) .appointment-cancel-alert-modal .appointment-cancel-alert-icon svg { width: 20px; height: 20px; stroke-width: 1.7; }
:is(.odx-dossier, #odx-skin) .appointment-cancel-alert-modal > .modal-head { display: flex; align-items: center; }
:is(.odx-dossier, #odx-skin) .appointment-cancel-alert-modal > p { margin: 0; color: var(--odx-ui-ink-2); font-size: var(--odx-ui-fs-note); font-weight: var(--odx-ui-w-light); line-height: 1.5; }
:is(.odx-dossier, #odx-skin) .appointment-cancel-alert-modal > p.form-error { margin-top: 10px; color: var(--odx-ui-danger); }
:is(.odx-dossier, #odx-skin) .appointment-cancel-alert-modal > .modal-actions { margin-top: max(16px, calc(22 * var(--odx-u))); gap: max(8px, calc(10 * var(--odx-u))); }
/* destructive confirmations of this section: the restyle's shared button geometry outranks its own danger outline,
   so the red outline is restated here (cancel appointment · delete act · delete session) */
:is(.odx-dossier, #odx-skin) :is(.appointment-cancel-alert-modal, .operation-delete-confirm-modal, .operation-session-delete-confirm-modal) .modal-actions > button.danger-button {
  border: 1px solid var(--odx-ui-danger-line);
  background: rgb(255 255 255 / .85);
  color: var(--odx-ui-danger);
}
:is(.odx-dossier, #odx-skin) :is(.appointment-cancel-alert-modal, .operation-delete-confirm-modal, .operation-session-delete-confirm-modal) .modal-actions > button.danger-button:hover:not(:disabled) { border-color: rgb(180 35 24 / .55); background: var(--odx-ui-danger-soft); color: #8f1b12; }
/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  :is(.odx-dossier, #odx-skin) :is(.odx-o-acts .odx-acts-summary > p[role="status"], .patient-rdv-card > p[role="status"])::before { animation-duration: 2.4s; }
  :is(.odx-dossier, #odx-skin) .appointment-form-modal .appointment-form-icon-action[data-tooltip]::after { transition: none; }
}
/* =================================================================================================== */
/* 4. CONSULTATION (nav item « Consultation »): the platform's focus workspace inside the section card    */
/* =================================================================================================== */
/* shell.css already keeps the workspace in the card (no fixed / full-screen layer). Here it loses the chrome
   the dossier already provides — its own icon rail of patient-file sections, the brand ring and the
   « Dossier patient » exit (the dossier nav and patient band do those jobs) — and its cobalt palette is mapped
   to the dossier's dark / mint tokens. The tooth chart and its legend keep their clinical blue (the legend says
   « contour bleu » for the selected tooth). */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--consultation .consult-root.is-focus {
  --rf-side: 0px;
  --rf-cobalt: var(--odx-ui-dark);
  --rf-cobalt-deep: #000;
  --rf-cobalt-soft: rgb(197 252 196 / .42);
  --rf-ink: var(--odx-ui-ink);
  --rf-muted: var(--odx-ui-ink-2);
  --rf-line: var(--odx-ui-line);
  --rf-line-strong: var(--odx-ui-line-2);
  --rf-page: transparent;
  --rf-surface: rgb(255 255 255 / .82);
  --rf-display: var(--odx-ui-font);
  --cf-navy: var(--odx-ui-ink);
  --cf-ink: var(--odx-ui-ink);
  --cf-muted: var(--odx-ui-ink-2);
  --cf-line: var(--odx-ui-line);
  --cf-line-strong: var(--odx-ui-line-2);
  --cf-soft: rgb(13 13 13 / .03);
  --cf-tint: rgb(197 252 196 / .42);
  --cf-page: transparent;
  --blue: var(--odx-ui-dark);
  column-gap: 0;
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--consultation .consult-root.is-focus :is(.consult-chart, .consult-legend, .rf-legend) {
  --rf-cobalt: #0755e9;
  --blue: #005fe5;
}
/* duplicated chrome: the section rail, the brand ring, the exit to the patient file */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--consultation .consult-root.is-focus :is(.rf-tabs, .rf-brand, .rf-head-rule, .rf-exit) { display: none; }
/* no consultation open: the header strip only repeats the patient band (avatar, fiche, name) and a menu of the dossier's
   sections (the dossier nav already shows them), so it is left out. With a consultation open (.is-compact) it carries the
   consultation's status, date, practitioner and the « Historique » menu: it stays. */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--consultation .consult-root.is-focus .rf-head.cf-head:not(.is-compact) { display: none; }
/* floating header: a quiet glass band in the card instead of a white pill with a cobalt shadow */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--consultation .consult-root.is-focus .rf-head {
  background: rgb(255 255 255 / .7);
  box-shadow: inset 0 0 0 1px var(--odx-ui-line);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--consultation .consult-root.is-focus .rf-avatar {
  background: var(--odx-ui-soft);
  color: var(--odx-ui-ink);
  font-weight: var(--odx-ui-w-regular);
  box-shadow: inset 0 0 0 1px var(--odx-ui-line-2);
}
/* active pills (current step, Adulte / Enfant / Mixte, option values, faces): dark pill, no cobalt glow */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--consultation .consult-root.is-focus :is(.is-on, .is-current, [aria-pressed="true"]):is(button, span) {
  box-shadow: 0 6px 14px -8px rgb(0 0 0 / .55);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--consultation .consult-root.is-focus :is(button, input, select, textarea, [tabindex]):focus-visible { outline: var(--odx-ui-focus-ring); outline-offset: 2px; }
/* the notebook's lavender / navy surfaces and inks (hard-coded in the platform CSS) in the dossier's neutrals */
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--consultation .consult-root.is-focus :is(.consult-history li, .consult-versions li, .consult-medical-list, .consult-medical-list > li:not(.is-alert), .consult-notice.is-info) {
  background-color: rgb(13 13 13 / .028);
  border-color: var(--odx-ui-line);
}
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--consultation .consult-root.is-focus .rf-foot { background: rgb(255 255 255 / .62); box-shadow: inset 0 1px 0 var(--odx-ui-line); backdrop-filter: blur(14px); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--consultation .consult-root.is-focus .cf-foot-step { background: var(--odx-ui-soft); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--consultation .consult-root.is-focus :is(h3, h4):not([class*="odx-"]) { color: var(--odx-ink-strong); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--consultation .consult-root.is-focus :is(.consult-rail-step:not(.is-current), .rf-fiche) { color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--consultation .consult-root.is-focus .consult-rail-step:not(.is-current) .consult-rail-number { border-color: var(--odx-ui-line-2); color: var(--odx-ui-ink-2); }
:is(.odx-dossier, #odx-skin) .odx-s-sectioncard--consultation .consult-root.is-focus .rf-icon-button { border-color: var(--odx-ui-line-2); background: var(--odx-ui-soft); }
/* ODX clinical page — « Soins · vue clinique » (/patients/<fiche>/vue-clinique) and the « Disposition » switch.
   Lengths in reference units (px x --odx-u; content width 1745.3 at 2000 px). Scoped under .odx-dossier; imported once
   by src/dossier/index.css. Nothing here applies to the standard Soins page except the small layout switch. */
/* ---------------------------------------------------------------- « Disposition : Standard · Clinique » (breadcrumb row of
   the clinical layout only; the standard page's way in is the settings popover « Vue clinique ») */
.odx-dossier .odx-c-layout {
  flex: none; display: inline-flex; align-items: center; gap: calc(4 * var(--odx-u));
  height: calc(34 * var(--odx-u)); margin: calc(7.5 * var(--odx-u)) 0 0 auto;
  padding: 0 calc(4 * var(--odx-u)) 0 calc(13 * var(--odx-u));
  border-radius: 999px; background: rgb(255 255 255 / 0.62);
  box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(0 0 0 / 0.05);
  font-family: var(--odx-font); font-size: var(--odx-fs-micro); letter-spacing: -0.02em; line-height: 1; white-space: nowrap;
}
/* the doctor chip keeps its place at the right edge; the switch takes the free space before it */
.odx-dossier .odx-c-layout + .odx-s-doctor { margin-left: calc(26 * var(--odx-u)); }
.odx-dossier .odx-c-layout__label { color: var(--odx-ink-2); margin-right: calc(4 * var(--odx-u)); }
.odx-dossier .odx-c-layout__opt {
  display: inline-flex; align-items: center; height: calc(26 * var(--odx-u)); padding: 0 calc(12 * var(--odx-u));
  border-radius: 999px; color: rgb(13 13 13 / 0.7); text-decoration: none; font-weight: 300;
  transition: background 200ms ease, color 200ms ease, transform 160ms ease;
}
.odx-dossier .odx-c-layout__opt:hover:not(.is-active) { background: rgb(198 252 196 / 0.32); color: var(--odx-ink); }
.odx-dossier .odx-c-layout__opt.is-active { background: var(--odx-mint-gradient); color: var(--odx-ink); font-weight: 400; }
.odx-dossier .odx-c-layout__opt:focus-visible { outline: calc(2 * var(--odx-u)) solid #0c8f60; outline-offset: calc(2 * var(--odx-u)); }
/* ---------------------------------------------------------------- stage card (full content width) */
.odx-dossier .odx-c-soins { display: flex; flex-direction: column; min-width: 0; }
.odx-dossier .odx-c-stagecard {
  position: relative; display: flex; flex-direction: column; flex: none; min-width: 0;
  /* Sized from its WIDTH (never from the window height): the engine frames both arches with their full roots and the two
     number rows, so the chart frame must be at least ~0.53 x its width for the fit to be width-bound, i.e. for the arches
     to fill the width like the target picture (1745 x 1000 units = 1673 x 898 chart frame). On short windows the page
     scrolls a little to show the lower numbers. */
  aspect-ratio: 1745.3 / 1000;
  /* ODX act visuals: on a wide window (16:9) the card is capped at the visible height under the patient band
     (--odx-c-stage-max, measured by ClinicalSoins) so the whole chart, both number rows and the state key show without
     scrolling; the engine then fits the arches in the shorter frame */
  max-height: var(--odx-c-stage-max, none);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 46%, rgb(255 255 255 / 0.9) 0%, rgb(255 255 255 / 0.72) 55%, rgb(244 251 244 / 0.62) 100%);
  box-shadow: 0 calc(10 * var(--odx-u)) calc(40 * var(--odx-u)) rgb(40 90 50 / 0.06), inset 0 0 0 calc(1 * var(--odx-u)) rgb(255 255 255 / 0.7);
}
.odx-dossier .odx-c-stagecard > .odx-o-stage { flex: 1 1 auto; min-height: 0; }
/* the 3D chart fills the card: nearly its whole width (the engine keeps ~3 % of empty margin on each side, where the
   zoom rail column stands), under the pill row, above the legend */
.odx-dossier .odx-c-stagecard .odx-o-stage.odx-o-stage .odx-o-layer:not(.odx-o-layer--scan):not(.odx-o-layer--ortho):not(.odx-o-layer--2d) {
  /* symmetric insets: the arches stay centred under the pills and the legend */
  left: calc(36 * var(--odx-u)); right: calc(36 * var(--odx-u)); top: calc(52 * var(--odx-u)); bottom: calc(2 * var(--odx-u));
  /* all four edges melt into the card (a zoomed chart has no hard rectangular cut): sides, top under the pills, bottom
     above the legend; at rest every tooth and number lies inside the opaque area (ODX act visuals: top fade 10 units,
     was 22, so the upper numbers of a capped, height-bound chart stay crisp) */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 calc(40 * var(--odx-u)), #000 calc(100% - 40 * var(--odx-u)), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 calc(10 * var(--odx-u)), #000 calc(100% - 20 * var(--odx-u)), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 calc(40 * var(--odx-u)), #000 calc(100% - 40 * var(--odx-u)), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 calc(10 * var(--odx-u)), #000 calc(100% - 20 * var(--odx-u)), transparent 100%);
  mask-composite: intersect;
}
.odx-dossier .odx-c-stagecard .odx-o-stage.odx-o-stage .odx-o-layer--scan,
.odx-dossier .odx-c-stagecard .odx-o-stage.odx-o-stage .odx-o-layer--ortho { left: calc(110 * var(--odx-u)); right: calc(24 * var(--odx-u)); top: 0; bottom: 0; }
.odx-dossier .odx-c-stagecard .odx-o-stage.odx-o-stage .odx-o-layer--2d { left: calc(130 * var(--odx-u)); right: calc(48 * var(--odx-u)); top: calc(80 * var(--odx-u)); bottom: calc(24 * var(--odx-u)); }
.odx-dossier .odx-c-stagecard .odx-o-chart2d .odontogram.clinical-odontogram .consult-chart { --consult-chart-max: calc(640 * var(--odx-u)); max-height: calc(640 * var(--odx-u)); }
/* the marks next to the tooth numbers: the dossier's 20-unit status dot primitive (theme/primitives.css .odx-dot) shares
   the class name of the engine's 5 px act / mark dots */
.odx-dossier .odx-c-stagecard .odx-label-marks .odx-dot { width: calc(6 * var(--odx-u)); height: calc(6 * var(--odx-u)); margin: 0; }
/* ODX act visuals: tooth numbers and state glyphs scale with the page and with the teeth (the engine's 11 px / 9 px are
   fixed): 13.5 / 11.5 units x --odx-c-label-scale (square root of the stage cap, ClinicalSoins), 9.5 px at least;
   about 13.5 px at 2000 x 1500 and 2560 x 1440, 9.5 px at 1440 x 900 */
.odx-dossier .odx-c-stagecard .odx-label { font-size: max(9.5px, calc(13.5 * var(--odx-u) * var(--odx-c-label-scale, 1))); gap: calc(2.5 * var(--odx-u)); }
.odx-dossier .odx-c-stagecard .odx-label-marks { gap: calc(2.5 * var(--odx-u)); min-height: max(8px, calc(11.5 * var(--odx-u) * var(--odx-c-label-scale, 1))); }
.odx-dossier .odx-c-stagecard .odx-label-marks svg { width: max(8px, calc(11.5 * var(--odx-u) * var(--odx-c-label-scale, 1))); height: max(8px, calc(11.5 * var(--odx-u) * var(--odx-c-label-scale, 1))); }
.odx-dossier .odx-c-stagecard .odx-label-marks .odx-diamond { width: calc(7 * var(--odx-u)); height: calc(7 * var(--odx-u)); }
/* pills centred at the top of the card */
.odx-dossier .odx-c-stagecard .odx-o-pills { left: 0; right: 0; margin-inline: auto; top: calc(16 * var(--odx-u)); }
/* view switch: a row of round toggles at the top-right corner */
.odx-dossier .odx-c-stagecard .odx-o-switch { top: calc(14 * var(--odx-u)); right: calc(22 * var(--odx-u)); flex-direction: row; gap: calc(6 * var(--odx-u)); }
.odx-dossier .odx-c-stagecard .odx-o-switch__item { min-width: calc(70 * var(--odx-u)); }
/* zoom rail + quick selection: the reference's rail and, under its −/+ capsule, the three quick-selection buttons, in one
   slim column centred on the card's left edge (inside the chart's empty side margin, clear of the third molars) */
.odx-dossier .odx-c-stagecard .odx-o-rail { left: calc(14 * var(--odx-u)); top: calc(50% - 279 * var(--odx-u)); height: calc(460 * var(--odx-u)); }
.odx-dossier .odx-c-stagecard .odx-o-foot { left: calc(30.5 * var(--odx-u)); top: calc(50% - 279 * var(--odx-u) + 452 * var(--odx-u)); }
.odx-dossier .odx-c-stagecard .odx-o-stage__error { left: calc(130 * var(--odx-u)); }
/* Scan 3D presets and the simulation timeline take the legend strip (the legend only belongs to the odontogram) */
.odx-dossier .odx-c-stagecard .odx-o-presets { bottom: calc(-42 * var(--odx-u)); }
.odx-dossier .odx-c-stagecard .odx-o-timeline { bottom: calc(-46 * var(--odx-u)); }
.odx-dossier .odx-c-stagecard .odx-o-no3d { left: 50%; }
/* ---------------------------------------------------------------- legend (foot of the stage card) */
.odx-dossier .odx-c-legend {
  flex: none; display: flex; align-items: center; justify-content: center; gap: calc(22 * var(--odx-u));
  min-height: calc(48 * var(--odx-u)); padding: calc(5 * var(--odx-u)) calc(40 * var(--odx-u)) calc(6 * var(--odx-u));
  border-top: calc(1 * var(--odx-u)) solid rgb(0 0 0 / 0.045);
  background: rgb(255 255 255 / 0.55);
  font-size: var(--odx-fs-micro); letter-spacing: -0.02em; color: var(--odx-ink-2);
  transition: opacity 240ms ease;
}
.odx-dossier .odx-c-legend.is-inactive { opacity: 0; pointer-events: none; }
.odx-dossier .odx-c-legend ul { display: flex; align-items: center; flex-wrap: wrap; gap: calc(6 * var(--odx-u)) calc(18 * var(--odx-u)); margin: 0; padding: 0; list-style: none; min-width: 0; }
.odx-dossier .odx-c-legend__states { flex: none; }
.odx-dossier .odx-c-legend__state, .odx-dossier .odx-c-legend__act { display: inline-flex; align-items: center; gap: calc(7 * var(--odx-u)); white-space: nowrap; }
.odx-dossier .odx-c-legend__glyph { display: inline-grid; place-items: center; width: calc(15 * var(--odx-u)); height: calc(15 * var(--odx-u)); }
.odx-dossier .odx-c-legend__glyph svg { width: 100%; height: 100%; display: block; }
.odx-dossier .odx-c-legend__sep { flex: none; width: calc(1 * var(--odx-u)); height: calc(22 * var(--odx-u)); background: rgb(0 0 0 / 0.1); }
.odx-dossier .odx-c-legend__acts { flex: 0 1 auto; }
.odx-dossier .odx-c-legend__swatch {
  flex: none; width: calc(22 * var(--odx-u)); height: calc(14 * var(--odx-u)); border-radius: calc(5 * var(--odx-u));
  /* fill = the tint as the chart shows it on the crown (ClinicalLegend swatchStyle); thin ring = the raw act colour */
  box-shadow: inset 0 0 0 calc(1.5 * var(--odx-u)) var(--odx-c-act, rgb(0 0 0 / 0.12)), 0 calc(1 * var(--odx-u)) calc(3 * var(--odx-u)) rgb(0 0 0 / 0.08);
}
.odx-dossier .odx-c-legend__name { color: var(--odx-ink); max-width: calc(300 * var(--odx-u)); overflow: hidden; text-overflow: ellipsis; }
.odx-dossier .odx-c-legend__teeth { color: var(--odx-ink-2); font-variant-numeric: tabular-nums; }
.odx-dossier .odx-c-legend__none { margin: 0; color: var(--odx-ink-2); }
/* ---------------------------------------------------------------- the four cards in one row */
.odx-dossier .odx-c-cards {
  display: grid;
  grid-template-columns: calc(484 * var(--odx-u)) calc(360 * var(--odx-u)) minmax(0, 1fr) calc(360 * var(--odx-u));
  column-gap: var(--odx-gap);
  height: calc(400 * var(--odx-u));
  margin-top: var(--odx-gap);
  flex: none;
}
.odx-dossier .odx-c-cards > .odx-card { min-width: 0; min-height: 0; }
/* Analyse dentaire: the reference card in a 484-wide column (tighter side padding and position column) */
.odx-dossier .odx-c-cards > .odx-o-analysis { width: auto; }
.odx-dossier .odx-c-cards .odx-o-arow__line {
  grid-template-columns: calc(58.4 * var(--odx-u)) calc(47 * var(--odx-u)) calc(92 * var(--odx-u)) minmax(0, 1fr) calc(96 * var(--odx-u));
  padding: 0 calc(24 * var(--odx-u)) 0 calc(30 * var(--odx-u));
}
.odx-dossier .odx-c-cards .odx-o-arow__note { left: calc(30 * var(--odx-u)); right: calc(24 * var(--odx-u)); }
.odx-dossier .odx-c-cards .odx-o-analysis__hint { padding-left: calc(30 * var(--odx-u)); padding-right: calc(24 * var(--odx-u)); }
/* ODX act visuals: three tooth rows fit the 400-unit card exactly (18 + 2 x 100 + 92 = 310 of ~318 units under the
   title); from the fourth the list scrolls row by row, so no row is ever cut through its text */
.odx-dossier .odx-c-cards .odx-o-arows { flex: 0 1 auto; max-height: calc(318 * var(--odx-u)); padding-top: calc(18 * var(--odx-u)); scroll-snap-type: y proximity; scroll-padding-top: calc(18 * var(--odx-u)); }
.odx-dossier .odx-c-cards .odx-o-arow { height: calc(100 * var(--odx-u)); scroll-snap-align: start; }
.odx-dossier .odx-c-cards .odx-o-arow:last-child { height: calc(92 * var(--odx-u)); }
.odx-dossier .odx-c-cards .odx-o-arow__hit { top: calc(-10 * var(--odx-u)); height: calc(96 * var(--odx-u)); }
.odx-dossier .odx-c-cards .odx-o-arow__note { top: calc(64 * var(--odx-u)); }
/* Détails de la dent: two columns that share the narrower card, long values on two lines */
.odx-dossier .odx-c-cards .odx-o-case__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); column-gap: calc(12 * var(--odx-u)); }
.odx-dossier .odx-c-cards .odx-o-case__pair dd .odx-o-ellipsis { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.12; overflow-wrap: anywhere; }
/* Historique des soins: each act on two lines (Date · Acte / Praticien · Statut) so the four fields keep their width */
.odx-dossier .odx-c-cards .odx-o-hrow {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  grid-template-rows: auto auto;
  row-gap: calc(5 * var(--odx-u));
  height: auto;
  padding-bottom: calc(9 * var(--odx-u));
}
.odx-dossier .odx-c-cards .odx-o-hrow > .odx-pair:nth-child(1) { grid-column: 1; grid-row: 1; }
.odx-dossier .odx-c-cards .odx-o-hrow > .odx-pair:nth-child(2) { grid-column: 2; grid-row: 1; }
.odx-dossier .odx-c-cards .odx-o-hrow > .odx-pair:nth-child(3) { grid-column: 1; grid-row: 2; }
.odx-dossier .odx-c-cards .odx-o-hrow > .odx-pair:nth-child(4) { grid-column: 2; grid-row: 2; }
.odx-dossier .odx-c-cards .odx-o-hrow > :nth-child(5) { grid-column: 3; grid-row: 1 / span 2; align-self: start; }
/* (three acts at most, like the standard card; the card stays overflow-visible so the row menu can open below it) */
.odx-dossier .odx-c-cards .odx-o-hrows { margin-top: calc(16 * var(--odx-u)); }
/* ODX act visuals: on two lines per act the card holds two acts (the arrow opens the full table); values keep two lines */
.odx-dossier .odx-c-cards .odx-o-hrow:nth-child(n + 3) { display: none; }
.odx-dossier .odx-c-cards .odx-o-hrow .odx-pair__value.is-wrap { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* a row menu that opens below the window is scrolled into view by ClinicalSoins, with a little room under it */
.odx-dossier .odx-c-cards .odx-s-popover { scroll-margin-bottom: calc(18 * var(--odx-u)); }
/* Suivi du patient: a narrower card, so the summary may take two more lines */
.odx-dossier .odx-c-cards .odx-o-follow__sub { flex-wrap: wrap; row-gap: calc(8 * var(--odx-u)); }
.odx-dossier .odx-c-cards .odx-o-follow__text { -webkit-line-clamp: 6; font-size: calc(19.5 * var(--odx-u)); }
.odx-dossier .odx-c-cards .odx-o-follow__btn { right: calc(20.2 * var(--odx-u)); min-width: 0; justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .odx-dossier .odx-c-legend, .odx-dossier .odx-c-layout__opt { transition: none !important; }
}
/* ODX act visuals — legend of the acts drawn in 3D (legend/ActLegend.tsx): the full card of « Soins · vue clinique », the
   state key at the foot of its stage card and the « Légende » popover of the standard Soins page. Scoped under .odx-dossier. */
/* ---------------------------------------------------------------- shared pieces */
.odx-dossier .odx-al__sub { display: flex; align-items: center; flex-wrap: wrap; gap: calc(8 * var(--odx-u)); margin: calc(8 * var(--odx-u)) 0 0; font-size: var(--odx-fs-micro); letter-spacing: -0.02em; color: var(--odx-ink-2); }
.odx-dossier .odx-al__state { display: inline-flex; align-items: center; height: calc(22 * var(--odx-u)); padding: 0 calc(10 * var(--odx-u)); border-radius: 999px; background: var(--odx-mint-gradient); color: var(--odx-ink); font-weight: 400; }
.odx-dossier .odx-al__key { display: flex; align-items: center; flex-wrap: wrap; gap: calc(6 * var(--odx-u)) calc(20 * var(--odx-u)); margin: 0; padding: 0; list-style: none; }
.odx-dossier .odx-al__keyitem { display: inline-flex; align-items: center; gap: calc(7 * var(--odx-u)); white-space: nowrap; }
.odx-dossier .odx-al__swatch { display: inline-grid; place-items: center; width: calc(30 * var(--odx-u)); height: calc(23 * var(--odx-u)); }
.odx-dossier .odx-al__swatch svg, .odx-dossier .odx-al__glyph svg { display: block; width: 100%; height: 100%; }
.odx-dossier .odx-al__glyph { display: inline-grid; place-items: center; flex: none; width: calc(12 * var(--odx-u)); height: calc(12 * var(--odx-u)); }
.odx-dossier .odx-al__keytext { display: inline-flex; flex-direction: column; line-height: 1.12; }
.odx-dossier .odx-al__keytext b { font-weight: 400; font-size: var(--odx-fs-label); letter-spacing: -0.03em; color: var(--odx-ink); }
.odx-dossier .odx-al__keytext small { font-size: calc(12.6 * var(--odx-u)); letter-spacing: -0.02em; color: var(--odx-ink-2); }
.odx-dossier .odx-al__glyph.is-large { width: calc(15 * var(--odx-u)); height: calc(15 * var(--odx-u)); }
.odx-dossier .odx-al__keyitem.is-finding { padding-left: calc(14 * var(--odx-u)); border-left: calc(1 * var(--odx-u)) solid rgb(0 0 0 / 0.08); }
/* initial work: no glyph on the chart, a muted dot in the chips */
.odx-dossier .odx-al__mute { display: block; width: 72%; height: 72%; border-radius: 50%; background: #c9ced4; box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) #9aa2ab; }
.odx-dossier .odx-al__key.is-compact { gap: calc(4 * var(--odx-u)) calc(16 * var(--odx-u)); }
.odx-dossier .odx-al__key.is-compact .odx-al__swatch { width: calc(24 * var(--odx-u)); height: calc(18 * var(--odx-u)); }
.odx-dossier .odx-al__key.is-compact .odx-al__keytext { flex-direction: row; align-items: baseline; gap: calc(5 * var(--odx-u)); }
.odx-dossier .odx-al__key.is-compact .odx-al__keytext b { font-size: var(--odx-fs-micro); }
.odx-dossier .odx-al__devis { display: inline-flex; align-items: center; flex-wrap: wrap; gap: calc(4 * var(--odx-u)); padding: calc(3 * var(--odx-u)); border-radius: calc(17 * var(--odx-u)); background: rgb(0 0 0 / 0.04); }
.odx-dossier .odx-al__devisbtn { height: calc(28 * var(--odx-u)); padding: 0 calc(12 * var(--odx-u)); border: 0; border-radius: 999px; background: transparent; color: var(--odx-ink-2); font: inherit; font-size: var(--odx-fs-micro); letter-spacing: -0.02em; cursor: pointer; white-space: nowrap; }
.odx-dossier .odx-al__devisbtn:hover:not(.is-active) { background: rgb(255 255 255 / 0.8); color: var(--odx-ink); }
.odx-dossier .odx-al__devisbtn.is-active { background: #fff; color: var(--odx-ink); font-weight: 400; box-shadow: 0 calc(1 * var(--odx-u)) calc(4 * var(--odx-u)) rgb(20 40 25 / 0.12); }
.odx-dossier .odx-al__devisbtn:focus-visible { outline: calc(2 * var(--odx-u)) solid #0c8f60; outline-offset: calc(1 * var(--odx-u)); }
/* alternative quotes left off « Devis compatibles » */
.odx-dossier .odx-al__alt { display: inline-flex; align-items: flex-start; gap: calc(7 * var(--odx-u)); margin: 0; font-size: var(--odx-fs-micro); letter-spacing: -0.02em; line-height: 1.35; color: var(--odx-ink-2); }
.odx-dossier .odx-al__alt .odx-icon { flex: none; width: calc(15 * var(--odx-u)); height: calc(15 * var(--odx-u)); margin-top: calc(1 * var(--odx-u)); color: #0f766e; }
.odx-dossier .odx-al__altbtn { white-space: nowrap; }
.odx-dossier .odx-al__altbtn { padding: 0; border: 0; background: none; font: inherit; color: #0a7550; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.odx-dossier .odx-al__altbtn:focus-visible { outline: calc(2 * var(--odx-u)) solid #0c8f60; outline-offset: calc(2 * var(--odx-u)); border-radius: calc(4 * var(--odx-u)); }
/* ---------------------------------------------------------------- entries */
.odx-dossier .odx-al__group { margin: 0 0 calc(18 * var(--odx-u)); }
.odx-dossier .odx-al__family { break-after: avoid; break-inside: avoid; display: flex; align-items: center; gap: calc(8 * var(--odx-u)); margin: 0 0 calc(8 * var(--odx-u)); padding-left: calc(4 * var(--odx-u)); font-size: var(--odx-fs-label); font-weight: 400; letter-spacing: -0.03em; color: var(--odx-ink); }
.odx-dossier .odx-al__family i { width: calc(9 * var(--odx-u)); height: calc(9 * var(--odx-u)); border-radius: 50%; box-shadow: 0 0 0 calc(3 * var(--odx-u)) rgb(255 255 255 / 0.8); }
.odx-dossier .odx-al__family span { margin-left: auto; min-width: calc(22 * var(--odx-u)); height: calc(20 * var(--odx-u)); padding: 0 calc(7 * var(--odx-u)); border-radius: 999px; background: rgb(0 0 0 / 0.045); color: var(--odx-ink-2); font-size: calc(12.4 * var(--odx-u)); line-height: calc(20 * var(--odx-u)); text-align: center; font-variant-numeric: tabular-nums; }
.odx-dossier .odx-al__list { display: block; margin: 0; padding: 0; list-style: none; }
.odx-dossier .odx-al__li { min-width: 0; break-inside: avoid; padding-bottom: calc(8 * var(--odx-u)); }
.odx-dossier .odx-al__item {
  --odx-al-c: #7b4fe0;
  display: grid; grid-template-columns: calc(84 * var(--odx-u)) minmax(0, 1fr); align-items: center; gap: calc(12 * var(--odx-u));
  width: 100%; min-width: 0; padding: calc(7 * var(--odx-u)) calc(12 * var(--odx-u)) calc(7 * var(--odx-u)) calc(7 * var(--odx-u));
  border: calc(1 * var(--odx-u)) solid rgb(0 0 0 / 0.05); border-radius: calc(16 * var(--odx-u));
  background: rgb(255 255 255 / 0.62); color: var(--odx-ink); font: inherit; text-align: left; cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.odx-dossier .odx-al__item:hover { background: #fff; box-shadow: 0 calc(6 * var(--odx-u)) calc(18 * var(--odx-u)) rgb(20 40 25 / 0.08); }
.odx-dossier .odx-al__item.is-selected { border-color: color-mix(in srgb, var(--odx-al-c) 55%, transparent); background: color-mix(in srgb, var(--odx-al-c) 7%, #fff); box-shadow: 0 0 0 calc(2 * var(--odx-u)) color-mix(in srgb, var(--odx-al-c) 22%, transparent); }
.odx-dossier .odx-al__item:focus-visible { outline: calc(2 * var(--odx-u)) solid #0c8f60; outline-offset: calc(2 * var(--odx-u)); }
.odx-dossier .odx-al__thumb {
  position: relative; display: grid; place-items: center; width: calc(84 * var(--odx-u)); height: calc(70 * var(--odx-u)); overflow: hidden;
  border-radius: calc(12 * var(--odx-u));
  background: radial-gradient(90% 80% at 50% 42%, #ffffff 0%, #f3f6f2 62%, #e7ece6 100%);
  box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(0 0 0 / 0.04);
}
.odx-dossier .odx-al__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; animation: odx-al-in 260ms ease both; }
.odx-dossier .odx-al__ph { display: grid; place-items: center; width: 100%; height: 100%; color: rgb(13 13 13 / 0.18); background: linear-gradient(100deg, rgb(255 255 255 / 0) 30%, rgb(255 255 255 / 0.7) 50%, rgb(255 255 255 / 0) 70%) 0 0 / 220% 100%; animation: odx-al-shimmer 1.4s linear infinite; }
.odx-dossier .odx-al__ph .odx-icon { width: calc(22 * var(--odx-u)); height: calc(22 * var(--odx-u)); }
@keyframes odx-al-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes odx-al-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .odx-dossier .odx-al__thumb img, .odx-dossier .odx-al__ph { animation: none; } }
.odx-dossier .odx-al__main { display: flex; flex-direction: column; gap: calc(3 * var(--odx-u)); min-width: 0; }
.odx-dossier .odx-al__name { display: flex; align-items: center; gap: calc(7 * var(--odx-u)); min-width: 0; font-size: calc(17 * var(--odx-u)); letter-spacing: -0.035em; font-weight: 400; line-height: 1.18; color: var(--odx-ink-strong); }
.odx-dossier .odx-al__dot { flex: none; width: calc(8 * var(--odx-u)); height: calc(8 * var(--odx-u)); border-radius: 50%; background: var(--odx-al-c); }
.odx-dossier .odx-al__desc, .odx-dossier .odx-al__acts { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(13 * var(--odx-u)); letter-spacing: -0.02em; line-height: 1.25; }
/* the description keeps two lines (full text, conventions included, in the tooltip) */
.odx-dossier .odx-al__desc { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: break-word; }
.odx-dossier .odx-al__desc { color: var(--odx-ink-2); }
.odx-dossier .odx-al__acts { color: rgb(13 13 13 / 0.78); }
.odx-dossier .odx-al__chips { display: flex; flex-wrap: wrap; gap: calc(4 * var(--odx-u)); margin-top: calc(2 * var(--odx-u)); }
.odx-dossier .odx-al__chip { display: inline-flex; align-items: center; gap: calc(5 * var(--odx-u)); height: calc(21 * var(--odx-u)); padding: 0 calc(8 * var(--odx-u)) 0 calc(6 * var(--odx-u)); border-radius: 999px; background: rgb(12 143 96 / 0.08); color: #14513b; font-size: calc(12.6 * var(--odx-u)); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.odx-dossier .odx-al__chip.is-inProgress { background: rgb(12 143 96 / 0.06); box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(12 143 96 / 0.22); }
.odx-dossier .odx-al__chip.is-proposed { background: rgb(15 118 110 / 0.06); color: #0f5f58; box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(15 118 110 / 0.35); }
.odx-dossier .odx-al__chip.is-initial { background: #eef0f2; color: #545b63; }
.odx-dossier .odx-al__chip .odx-al__glyph { width: calc(11 * var(--odx-u)); height: calc(11 * var(--odx-u)); }
/* « Constats du schéma »: findings drawn on the teeth (not acts): a drawn mark instead of a 3D picture, the triangle chip */
.odx-dossier .odx-al__thumb--mark svg { width: 62%; height: 62%; }
.odx-dossier .odx-al__item--constat .odx-al__desc { color: rgb(13 13 13 / 0.62); }
.odx-dossier .odx-al__chip.is-constat { background: #fbf1e3; color: #6c430c; box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(143 90 12 / 0.22); }
.odx-dossier .odx-al__item.is-compact { grid-template-columns: calc(64 * var(--odx-u)) minmax(0, 1fr); gap: calc(10 * var(--odx-u)); padding: calc(5 * var(--odx-u)) calc(10 * var(--odx-u)) calc(5 * var(--odx-u)) calc(5 * var(--odx-u)); border-radius: calc(14 * var(--odx-u)); }
.odx-dossier .odx-al__item.is-compact .odx-al__thumb { width: calc(64 * var(--odx-u)); height: calc(54 * var(--odx-u)); border-radius: calc(10 * var(--odx-u)); }
.odx-dossier .odx-al__item.is-compact .odx-al__name { font-size: calc(15.5 * var(--odx-u)); }
.odx-dossier .odx-al__silent { display: flex; align-items: flex-start; gap: calc(8 * var(--odx-u)); margin: 0; font-size: calc(13 * var(--odx-u)); letter-spacing: -0.02em; line-height: 1.35; color: var(--odx-ink-2); }
.odx-dossier .odx-al__silent .odx-icon { flex: none; width: calc(16 * var(--odx-u)); height: calc(16 * var(--odx-u)); margin-top: calc(1 * var(--odx-u)); color: rgb(13 13 13 / 0.4); }
.odx-dossier .odx-al__silent b { font-weight: 400; color: var(--odx-ink); }
.odx-dossier .odx-al__empty { margin: calc(12 * var(--odx-u)) 0; font-size: var(--odx-fs-label); color: var(--odx-ink-2); }
/* ---------------------------------------------------------------- full card (vue clinique) */
.odx-dossier .odx-al { flex: none; margin-top: var(--odx-gap); padding: calc(24 * var(--odx-u)) calc(30 * var(--odx-u)) calc(18 * var(--odx-u)); min-width: 0; }
.odx-dossier .odx-al.is-inactive { display: none; }
.odx-dossier .odx-al__head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: calc(14 * var(--odx-u)) calc(36 * var(--odx-u)); padding-bottom: calc(18 * var(--odx-u)); margin-bottom: calc(18 * var(--odx-u)); border-bottom: calc(1 * var(--odx-u)) solid rgb(0 0 0 / 0.05); }
.odx-dossier .odx-al__titles { flex: 1 1 calc(420 * var(--odx-u)); min-width: 0; }
.odx-dossier .odx-al__titles h2 { margin: 0; }
/* one block per family, its heading on top: a 4-column grid where a family spans as many columns as it has entries (up to
   4, then its entries wrap inside it); small families share a row (dense packing) */
.odx-dossier .odx-al__body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; column-gap: calc(24 * var(--odx-u)); align-items: start; }
.odx-dossier .odx-al__body > .odx-al__group { grid-column: span var(--odx-al-n, 1); min-width: 0; }
.odx-dossier .odx-al__body .odx-al__list { display: grid; grid-template-columns: repeat(var(--odx-al-n, 1), minmax(0, 1fr)); column-gap: calc(24 * var(--odx-u)); }
.odx-dossier .odx-al__foot { display: flex; flex-direction: column; gap: calc(6 * var(--odx-u)); padding-top: calc(12 * var(--odx-u)); border-top: calc(1 * var(--odx-u)) solid rgb(0 0 0 / 0.05); }
.odx-dossier .odx-al__hint { margin: 0; font-size: calc(12.6 * var(--odx-u)); letter-spacing: -0.02em; color: rgb(13 13 13 / 0.5); }
/* stage card foot: the state key + the way to the card */
.odx-dossier .odx-al-foot { gap: calc(20 * var(--odx-u)); }
.odx-dossier .odx-al-foot .odx-al__key { flex: none; }
/* plan: the quote chips share the strip, so the key keeps its names only (hints in the tooltips) and may wrap */
.odx-dossier .odx-al-foot.has-devis { flex-wrap: wrap; row-gap: calc(4 * var(--odx-u)); column-gap: calc(16 * var(--odx-u)); padding-inline: calc(24 * var(--odx-u)); }
.odx-dossier .odx-al-foot.has-devis .odx-al__keytext small { display: none; }
.odx-dossier .odx-al-foot.has-devis .odx-al__key.is-compact { gap: calc(4 * var(--odx-u)) calc(12 * var(--odx-u)); }
.odx-dossier .odx-al-foot__link { display: inline-flex; align-items: center; gap: calc(7 * var(--odx-u)); color: var(--odx-ink); text-decoration: none; white-space: nowrap; border-radius: 999px; padding: calc(4 * var(--odx-u)) calc(10 * var(--odx-u)); }
.odx-dossier .odx-al-foot__link:hover { background: rgb(198 252 196 / 0.45); }
.odx-dossier .odx-al-foot__link .odx-icon { width: calc(15 * var(--odx-u)); height: calc(15 * var(--odx-u)); }
/* ---------------------------------------------------------------- popover (standard Soins page) */
.odx-dossier .odx-al-pop { position: absolute; z-index: 6; top: calc(12 * var(--odx-u)); right: calc(2 * var(--odx-u)); }
/* the panel opens over the right column (Analyse dentaire, 533 units wide, top aligned with the stage) so the 3D chart
   stays fully visible while an entry selects its teeth */
.odx-dossier .odx-al-pop .odx-s-popover.odx-al-pop__panel { top: calc(-12 * var(--odx-u)); right: auto; left: calc(100% + 2 * var(--odx-u) + var(--odx-gap)); transform-origin: top left; }
.odx-dossier .odx-al-pop__btn {
  display: inline-flex; align-items: center; gap: calc(7 * var(--odx-u)); height: calc(38 * var(--odx-u)); padding: 0 calc(12 * var(--odx-u)) 0 calc(12 * var(--odx-u));
  border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.88); color: var(--odx-ink); font: inherit; font-size: var(--odx-fs-label); letter-spacing: -0.03em; cursor: pointer;
  box-shadow: 0 calc(4 * var(--odx-u)) calc(14 * var(--odx-u)) rgb(20 40 25 / 0.1), inset 0 0 0 calc(1 * var(--odx-u)) rgb(0 0 0 / 0.04);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.odx-dossier .odx-al-pop__btn:hover, .odx-dossier .odx-al-pop__btn.is-open { background: #fff; }
.odx-dossier .odx-al-pop__btn:focus-visible { outline: calc(2 * var(--odx-u)) solid #0c8f60; outline-offset: calc(2 * var(--odx-u)); }
.odx-dossier .odx-al-pop__btn .odx-icon { width: calc(17 * var(--odx-u)); height: calc(17 * var(--odx-u)); }
.odx-dossier .odx-al-pop__count { min-width: calc(20 * var(--odx-u)); height: calc(20 * var(--odx-u)); padding: 0 calc(6 * var(--odx-u)); border-radius: 999px; background: var(--odx-mint-gradient); font-weight: 400; font-size: calc(12 * var(--odx-u)); line-height: calc(20 * var(--odx-u)); text-align: center; font-variant-numeric: tabular-nums; }
.odx-dossier .odx-al-pop__panel { width: calc(533 * var(--odx-u)); max-height: min(74vh, calc(860 * var(--odx-u))); display: flex; flex-direction: column; padding: calc(16 * var(--odx-u)) calc(10 * var(--odx-u)) calc(10 * var(--odx-u)) calc(16 * var(--odx-u)); }
.odx-dossier .odx-al-pop__head { display: flex; flex-direction: column; gap: calc(10 * var(--odx-u)); padding: 0 calc(6 * var(--odx-u)) calc(12 * var(--odx-u)) 0; border-bottom: calc(1 * var(--odx-u)) solid rgb(0 0 0 / 0.05); }
.odx-dossier .odx-al-pop__head .odx-s-popover__title { margin: 0; }
.odx-dossier .odx-al-pop__head .odx-al__sub { margin: 0; }
.odx-dossier .odx-al-pop__head .odx-al__devis { align-self: flex-start; }
.odx-dossier .odx-al-pop__head .odx-al__keyitem.is-finding { padding-left: 0; border-left: 0; }
.odx-dossier .odx-al-pop__body { min-height: 0; overflow: auto; padding: calc(12 * var(--odx-u)) calc(6 * var(--odx-u)) calc(4 * var(--odx-u)) 0; overscroll-behavior: contain; }
.odx-dossier .odx-al-pop__body .odx-al__group { margin-bottom: calc(14 * var(--odx-u)); }
.odx-dossier .odx-al-pop__body .odx-al__li { padding-bottom: calc(6 * var(--odx-u)); }
/* ---------------------------------------------------------------- quote chips on the stage (legend/QuoteChips.tsx)
   Under the state pills, in the pills' language at a smaller size: white glass chips, the chosen one mint like the active
   pill. Standard stage: centred under the pill row (pills: left 381.6, 3 x 215.5 wide, bottom at 56.8 units). */
.odx-dossier .odx-qc {
  position: absolute; z-index: 4; top: calc(64 * var(--odx-u)); left: calc(704.85 * var(--odx-u)); transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: calc(6 * var(--odx-u));
  width: max-content; max-width: calc(920 * var(--odx-u));
}
/* the same white haze as under the pills, so the chips read over the faded root tips */
.odx-dossier .odx-qc::before {
  content: ""; position: absolute; z-index: -1; left: calc(-30 * var(--odx-u)); right: calc(-30 * var(--odx-u)); top: calc(-10 * var(--odx-u)); bottom: calc(-14 * var(--odx-u));
  background: radial-gradient(closest-side, rgb(255 255 255 / 0.85) 0%, rgb(255 255 255 / 0.55) 62%, rgb(255 255 255 / 0) 100%);
  pointer-events: none;
}
/* zoomed in: a denser ground, so the crowns sliding under the row never fight the chip labels */
.odx-dossier .odx-o-stage.is-zoomed .odx-qc::before {
  left: calc(-44 * var(--odx-u)); right: calc(-44 * var(--odx-u)); bottom: calc(-24 * var(--odx-u));
  background: radial-gradient(closest-side, rgb(255 255 255 / 0.96) 0%, rgb(255 255 255 / 0.84) 64%, rgb(255 255 255 / 0) 100%);
}
.odx-dossier .odx-o-stage.is-zoomed .odx-qc__chip:not(.is-active):not(:hover) { background: rgb(255 255 255 / 0.92); }
.odx-dossier .odx-qc__chip {
  --odx-qc-c: #7d8792;
  display: inline-flex; align-items: center; gap: calc(6 * var(--odx-u));
  height: max(25px, calc(31 * var(--odx-u))); padding: 0 max(10px, calc(13 * var(--odx-u))) 0 max(8px, calc(11 * var(--odx-u)));
  border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.8); color: var(--odx-ink-tab, rgb(13 13 13 / 0.78));
  /* never under 11.5 px (1440-wide windows) */
  font: inherit; font-size: max(11.5px, calc(14 * var(--odx-u))); letter-spacing: -0.03em; line-height: 1; white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(0 0 0 / 0.06), 0 calc(2 * var(--odx-u)) calc(8 * var(--odx-u)) rgb(20 40 25 / 0.06);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 160ms ease;
}
.odx-dossier .odx-qc__chip:hover:not(.is-active) { background: #fff; color: var(--odx-ink); }
.odx-dossier .odx-qc__chip.is-active { background: var(--odx-mint-gradient); color: var(--odx-ink); font-weight: var(--odx-w-emph, 400); box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(255 255 255 / 0.3), 0 calc(3 * var(--odx-u)) calc(10 * var(--odx-u)) rgb(40 120 60 / 0.16); }
/* « Devis compatibles » chosen: the quotes it draws carry a mint ring */
.odx-dossier .odx-qc__chip.is-included { box-shadow: inset 0 0 0 calc(1.5 * var(--odx-u)) rgb(12 143 96 / 0.45), 0 calc(2 * var(--odx-u)) calc(8 * var(--odx-u)) rgb(20 40 25 / 0.06); color: var(--odx-ink); }
.odx-dossier .odx-qc__chip:focus-visible { outline: calc(2 * var(--odx-u)) solid #0c8f60; outline-offset: calc(2 * var(--odx-u)); }
.odx-dossier .odx-qc__dot { flex: none; width: calc(8 * var(--odx-u)); height: calc(8 * var(--odx-u)); border-radius: 50%; background: var(--odx-qc-c); box-shadow: 0 0 0 calc(2 * var(--odx-u)) rgb(255 255 255 / 0.75); }
.odx-dossier .odx-qc__num { font-variant-numeric: tabular-nums; }
.odx-dossier .odx-qc__sep { opacity: 0.45; }
.odx-dossier .odx-qc__count { display: inline-flex; align-items: center; height: max(16px, calc(19 * var(--odx-u))); padding: 0 max(5px, calc(7 * var(--odx-u))); border-radius: 999px; background: rgb(0 0 0 / 0.05); font-size: max(10.5px, calc(12.4 * var(--odx-u))); letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--odx-ink-2); }
.odx-dossier .odx-qc__chip.is-active .odx-qc__count { background: rgb(255 255 255 / 0.55); color: var(--odx-ink); }
/* with the Scan 3D / Ortho switch in the right gutter (from 1096 units): the row stays clear of it and wraps if needed */
.odx-dossier .odx-o-stage.has-switch .odx-qc { max-width: calc(756 * var(--odx-u)); }
/* tooth numbers on (Préférences) or the clinical layout: the chart starts under the chip row (Stage .has-quotes) */
.odx-dossier .odx-o-stage.has-numbers.has-quotes .odx-o-layer:not(.odx-o-layer--scan):not(.odx-o-layer--ortho):not(.odx-o-layer--2d) { top: calc(100 * var(--odx-u)); }
/* clinical layout: centred under the centred pills (pills top 16, 47 high) */
.odx-dossier .odx-c-stagecard .odx-qc { left: 50%; top: calc(70 * var(--odx-u)); max-width: calc(100% - 260 * var(--odx-u)); }
.odx-dossier .odx-c-stagecard .odx-o-stage.has-switch .odx-qc { max-width: calc(100% - 540 * var(--odx-u)); }
.odx-dossier .odx-c-stagecard .odx-o-stage.odx-o-stage.has-quotes .odx-o-layer:not(.odx-o-layer--scan):not(.odx-o-layer--ortho):not(.odx-o-layer--2d) { top: calc(104 * var(--odx-u)); }
@media (prefers-reduced-motion: reduce) { .odx-dossier .odx-qc__chip { transition: none; } }
/* ---------------------------------------------------------------- « Patient fictif » chip (patient band) */
.odx-dossier .odx-s-tag.odx-s-tag--demo { background: #efeafc; color: #5a3fb0; box-shadow: inset 0 0 0 calc(1 * var(--odx-u)) rgb(90 63 176 / 0.16); }
.odx-boot{max-width:32rem;margin:16vh auto;padding:2rem;font:500 1rem/1.55 Outfit,system-ui;color:#173c32}
.platform-workspace .odx-a-main{min-width:0;color:#192c26;font-family:Outfit,system-ui,sans-serif}
.platform-workspace .odx-a-main :where(.page-card,.dashboard-card,.table-card,.content-card,.panel-card){background:rgba(255,255,255,.91);border:1px solid rgba(37,68,56,.11);border-radius:18px;box-shadow:0 3px 14px rgba(27,55,42,.04)}
.platform-workspace .odx-a-main :where(.page-title,.section-title,h1,h2){color:#172c24;letter-spacing:-.029em}
.platform-workspace .odx-a-main :where(.button-primary,.primary-button,.btn-primary){background:#152e26;color:#fff;border-color:#152e26;border-radius:12px}
.platform-workspace .odx-a-main :where(.data-table,.dentalome-data-table,table){font-family:inherit}
.platform-workspace .odx-a-main :where(th){color:#4f665d}
.platform-workspace .odx-a-main :where(tbody tr):hover{background-color:#f0f7f3}
.platform-workspace .odx-a-main :where(button,a,input,select,textarea):focus-visible{outline:2px solid #14855f;outline-offset:2px}
.odx-s-brand{text-decoration:none;color:inherit}
@media(max-width:720px){.odx-a-main{max-width:100%;min-width:0}.platform-workspace .odx-a-main :where(.table-scroll,.table-wrap){max-width:100%;overflow-x:auto}}
@media(prefers-reduced-motion:reduce){.platform-workspace *, .platform-workspace *::before, .platform-workspace *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
.odw-switch,.odw-worklist,.odw-history{font-family:Outfit,system-ui,sans-serif;color:#1a3026}
.odw-switch{display:inline-flex;padding:4px;background:#e5eae4;border:1px solid #d4ded5;border-radius:40px;margin:2px 0 15px;gap:2px}
.odw-switch button,.odw-daynav button,.odw-refresh,.odw-pager button,.odw-more,.odw-history-trigger,.odw-history-event{appearance:none;border:0;cursor:pointer;color:inherit;font:inherit}
.odw-switch button{display:flex;align-items:center;gap:8px;background:transparent;padding:9px 16px;border-radius:32px;font-size:.87rem;font-weight:550}
.odw-switch button[aria-pressed=true]{background:linear-gradient(156deg,#34453d,#15261e);color:white;box-shadow:0 2px 5px #172c2628}
.odw-switch svg,.odw-daynav svg,.odw-refresh svg,.odw-history svg,.odw-slots a svg,.odw-more svg{width:17px;height:17px;stroke-width:1.7}
.odw-worklist,.odw-history{border:1px solid #d0ddd3;border-radius:22px;background:linear-gradient(145deg,#fff 35%,#f6faf7);box-shadow:inset 0 1px #fff,0 8px 24px #17362508}
.odw-worklist{padding:clamp(16px,2vw,32px);margin-bottom:20px}
.odw-head,.odw-daynav,.odw-filters,.odw-pager,.odw-history-trigger,.odw-history-event,.odw-more{display:flex;align-items:center}
.odw-head{justify-content:space-between;gap:15px;flex-wrap:wrap}
.odw-head h2{font-size:clamp(1.55rem,2.1vw,2.25rem);font-weight:500;letter-spacing:-.045em;margin:0}
.odw-head h2::first-letter{text-transform:uppercase}
.odw-daynav{gap:4px;padding:4px;background:#edf4ee;border-radius:100px}
.odw-daynav button,.odw-refresh{display:grid;place-items:center;width:36px;height:36px;border-radius:100%;background:transparent}
.odw-daynav button:hover,.odw-refresh:hover{background:#d8e9dd}
.odw-daynav label{display:flex;align-items:center;gap:6px;padding:0 6px}.odw-daynav input{min-width:0;border:0;background:transparent;color:inherit;font:inherit}
.odw-filters{margin:22px 0 8px;gap:12px;flex-wrap:wrap;align-items:end}.odw-filters label{display:grid;gap:4px;color:#476153;font-size:.75rem}.odw-filters select{font:500 .9rem Outfit,system-ui;color:#23392d;border:1px solid #c9d8cd;background:#fff;border-radius:10px;min-height:38px;padding:5px 24px 5px 10px}
.odw-refresh{margin-left:auto;border:1px solid #d1ddd5;background:white}
.odw-slots{margin:10px 0 0;padding:0;list-style:none}.odw-slots li{display:grid;grid-template-columns:62px 1fr auto 36px;gap:16px;align-items:center;padding:12px 2px;border-top:1px solid #dfE8e0}.odw-slots time,.odw-history-event time{font-variant-numeric:tabular-nums;font-size:.89rem;color:#4a6356}
.odw-slotcopy{display:grid;gap:2px}.odw-slotcopy strong,.odw-history-event strong{font-weight:570;line-height:1.35}.odw-slotcopy small,.odw-history-event small{color:#526b5d;font-size:.8rem}
.odw-state{border-radius:25px;padding:4px 10px;font-size:.79rem;background:#e8f3eb;color:#275b41}.odw-state.is-cancelled{color:#865944;background:#f7eee6}.odw-state.is-callback{background:#f6edc8;color:#715a16}
.odw-slots a{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:#275f43;background:#edf5ef}
.odw-empty{padding:30px 12px;text-align:center;color:#526a5e}.odw-empty h3{font-weight:550;margin:8px}.odw-empty p{margin:0}.odw-pager{justify-content:flex-end;gap:12px;font-size:.88rem}.odw-pager button,.odw-more{border-radius:90px;padding:7px 13px;background:#e5efe7}
.odw-history{margin:8px 0 12px;overflow:hidden;border-radius:14px}.odw-history-trigger{width:100%;padding:9px 14px;gap:9px;background:transparent;text-align:left;font-size:.89rem;font-weight:550}.odw-history-trigger svg:last-child{margin-left:auto;transition:transform .16s ease}.odw-history-trigger[aria-expanded=true] svg:last-child{transform:rotate(90deg)}
.odw-history-body{max-height:min(50vh,450px);overflow:auto;padding:2px 15px 12px}.odw-history-event{width:100%;text-align:left;gap:16px;background:transparent;padding:10px 2px;border-top:1px solid #dde7df}.odw-history-event time{min-width:88px}.odw-history-event span{display:grid}.odw-history-event svg{margin-left:auto}.odw-more{gap:7px}
@media(max-width:650px){.odw-slots li{grid-template-columns:42px 1fr auto 28px;gap:6px}.odw-filters{gap:6px}.odw-filters select{max-width:140px}.odw-head h2{font-size:1.42rem}.odw-history{margin-inline:8px}.odw-slots a{width:28px;height:30px}.odw-state{padding:3px 6px;font-size:.71rem}}

/* The shell uses the dossier's visual language with a tighter rhythm for repeated clinic work. */
.platform-workspace .odx-a-canvas{padding-top:clamp(12px,2.2vh,32px);padding-bottom:32px;min-height:100dvh}
.platform-workspace .odx-a-window{min-height:calc(100dvh - 42px);border:1px solid #ffffffc9;box-shadow:inset 0 1px white,0 18px 60px -40px #234e39aa}
.platform-workspace .odx-a-main{--retail-blue:#176346;--retail-ink:#1d3026;--retail-muted:#526b5b;--retail-line:#d8e3d9;--retail-canvas:#f0f5ef;--st-bg:#f0f4ef;--st-surface:#fff;--st-ink:#1d3026;--st-muted:#536a5b;--st-border:#d8e3d9;--st-teal:#1b7152;--st-pale:#e9f3e4;--suppliers-blue:#216b4f;--suppliers-line:#d5e2d9}
.platform-workspace .odx-a-main .page-header,.platform-workspace .odx-a-main .dashboard-panel-head{align-items:center;gap:14px}
.platform-workspace .odx-a-main .page-header h1{font:500 clamp(1.45rem,2.45vw,2.15rem)/1.12 Outfit,system-ui;letter-spacing:-.045em;color:#172c24}
.platform-workspace .odx-a-main .page-header p{font:400 .9rem/1.45 Outfit,system-ui;color:#536b5d}
.platform-workspace .odx-a-main :is(.dentalome-table-card,.notes-list-panel,.notes-detail-card,.reminders-table-shell,.prothese-toolbar-card,.dashboard-panel,.dashboard-greeting-card,.retail-basket,.retail-catalogue,.st-panel){border:1px solid #d7e2d9;border-radius:18px;background:#ffffffed;box-shadow:0 6px 20px -16px #1b442fa6}
.platform-workspace .odx-a-main :is(.retail,.retail-workspace){--retail-blue:#1a674b;--retail-ink:#1e3027;--retail-muted:#526b5c;--retail-line:#d3dfd6;--retail-canvas:#f0f5ef}
.platform-workspace .odx-a-main :is(.st-workspace,.stats-workspace){--st-teal:#176b4c;--st-border:#d4e0d6;--st-surface:#fff;--st-bg:#f2f5ef;--st-muted:#52695b}
.platform-workspace .odx-a-main [class*="suppliers-workspace"]{--suppliers-blue:#1a6a4c;--suppliers-ink:#1e3027;--suppliers-line:#d3dfd6;--suppliers-muted:#52695b}
.platform-workspace .odx-a-main :is(.dentalome-blue-button,.dentalome-download-button,.retail-checkout,.primary-button,button.primary){min-height:36px;padding-inline:15px;background:linear-gradient(150deg,#374a3c,#17281e);border:1px solid #253b2c;color:white;box-shadow:inset 0 1px #ffffff2b,0 4px 10px #244a2b19;border-radius:99px;font-family:Outfit,system-ui}
.platform-workspace .odx-a-main :is(.dentalome-outline-button,.prothese-filter-button,.plain-icon,.retail-categories>button,.global-list-search-shell){border-color:#cbdacf;color:#345642}
.platform-workspace .odx-a-main :is(.dentalome-table-wrap,.reminders-table-shell,.st-table-scroll){max-width:100%;overflow-x:auto;scrollbar-color:#b3c6b7 transparent}
.platform-workspace .odx-a-main :is(.dentalome-table-wrap,.reminders-table,.st-table-scroll) :is(th,td){font-family:Outfit,system-ui;font-variant-numeric:tabular-nums;line-height:1.4}
.platform-workspace .odx-a-main :is(.dentalome-table-wrap,.reminders-table,.st-table-scroll) th{background:#f1f6f1;color:#506958;font-size:.8rem;letter-spacing:.01em;font-weight:500}
.platform-workspace .odx-a-main :is(.dentalome-table-wrap,.reminders-table,.st-table-scroll) td{border-bottom-color:#e4ebe5;color:#22382b}
.platform-workspace .odx-a-main .empty-cell{padding-block:24px;color:#576e5e}
.platform-workspace .odx-a-main :is(.retail-product,.dashboard-summary-grid>*,.notes-mini-list>button){border-color:#d5e2d7;border-radius:15px;transition:border-color .16s,box-shadow .16s,transform .16s}
@media(hover:hover){.platform-workspace .odx-a-main .retail-product:hover{border-color:#89ad96;box-shadow:0 6px 14px #1d432d13;transform:translateY(-1px)}}
.odw-switch{align-self:flex-start;margin-bottom:0}.odw-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:10px;margin:18px 0 8px}
.odw-summary button{display:flex;justify-content:space-between;align-items:center;gap:4px;text-align:left;padding:12px 15px;background:#f3f7f2;border:1px solid #d4e1d5;border-radius:14px;cursor:pointer;color:#304d39}
.odw-summary button[aria-pressed=true]{background:linear-gradient(115deg,#e2eedb,#edf7e9);border-color:#a4c9b0}
.odw-summary button span{display:flex;align-items:center;gap:7px;font:500 .86rem Outfit,system-ui}.odw-summary button svg{width:16px;stroke-width:1.75}.odw-summary button strong{font:500 1.5rem/1 Outfit,system-ui;font-variant-numeric:tabular-nums}
.odw-daynav .odw-today{display:inline-flex;width:auto;padding:0 10px;color:#286544;font-size:.85rem}.odw-empty{display:grid;justify-items:center;gap:4px;place-content:center}.odw-empty>svg{width:28px;height:28px;color:#627e68}.odw-empty h3{font-size:1rem}.odw-state.is-present{background:#daefdf;color:#1b593b}.odw-state.is-absent,.odw-state.is-postponed{background:#f1ebdf;color:#6e5637}
@media(max-width:670px){.platform-workspace .odx-a-canvas{padding-top:0}.odw-summary{gap:5px}.odw-summary button{padding:8px;align-items:flex-start;flex-direction:column}.odw-summary button span{font-size:.75rem}.odw-summary button strong{font-size:1.25rem}.odl-portal>header{gap:4px}}
.odw-follow{padding:12px 16px;background:#f8fbf8;border-bottom:1px solid #dce6df;color:#294635}.odw-follow h3{display:flex;align-items:center;gap:7px;margin:0;font:550 .92rem Outfit,system-ui}.odw-follow p{font:400 .82rem/1.4 Outfit,system-ui;color:#52705c;margin:6px 0 0}.odw-follow p button{border:0;background:transparent;text-decoration:underline;cursor:pointer;color:#345c42}.odw-follow ul{list-style:none;margin:5px 0 0;padding:0}.odw-follow a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 2px;color:#254f36;text-decoration:none}.odw-follow a span{display:grid}.odw-follow small{color:#526b5b}.odw-follow li+li{border-top:1px solid #dce6df}

/* ---- green switch candidate (25 Nov 2026) ---------------------------------------------------------------------- */
/* P2-06: visible focus on the global patient search field and a skip link */
/* the input itself keeps no outline (app-shell.css); the whole field shows a solid ring, like the other green controls */
:is(.odx-dossier, #odx-a-skin) .odx-a-search__field:focus-within{outline:2px solid #14855f;outline-offset:2px}
.odx-skip-link{position:fixed;left:12px;top:-60px;z-index:3000;padding:10px 16px;border-radius:12px;background:#152e26;color:#fff;font:600 14px/1.2 Outfit,system-ui,sans-serif;text-decoration:none}
.odx-skip-link:focus{top:10px;outline:2px solid #14855f;outline-offset:2px}
/* production 24 Nov (Salle1 grey navigation): entries the clinical workstation may not open stay visible, greyed and inert */
.odx-dossier :is(.odx-a-nav__item,.odx-a-menu__item,.odx-a-sheet__item)[aria-disabled="true"]{filter:grayscale(1);opacity:.57;cursor:not-allowed}
/* P0-05: dossier clinical tools (Salle1 intraoral camera) mounted once for every tab, under the patient band */
.odx-dossier .odx-s-tools{margin:0 0 14px;min-width:0}
.odx-dossier .odx-s-tools .patient-clinical-tools{margin:0}
/* P1-05: global patient search + account menu (logout / change session) above the dossier window */
.odx-dossier .odx-s-globalbar{position:absolute;z-index:30;top:max(10px,calc((var(--odx-window-y) - 50px) / 2));right:var(--odx-window-x);left:var(--odx-window-x);display:flex;justify-content:flex-end;pointer-events:none}
.odx-dossier .odx-s-global{display:flex;align-items:center;gap:10px;min-width:0;pointer-events:auto}
.odx-dossier .odx-s-global .odx-a-search{margin-left:0;min-width:200px;flex:0 1 340px;max-width:340px}
@media (max-width:1023px){
  .odx-dossier-route .odx-dossier .odx-s-globalbar{position:static;margin:0 0 10px;pointer-events:auto}
  .odx-dossier-route .odx-dossier .odx-s-global{width:100%}
  .odx-dossier-route .odx-dossier .odx-s-global .odx-a-search{flex:1 1 auto;max-width:none;min-width:0}
  .odx-dossier-route .odx-dossier .odx-s-global .odx-a-account__text{display:none}
}
/* Redesign (22 Nov 2026, SmileCare × Moru direction). Imported LAST by main.tsx so these rules win ties.
   foundation.css: --ox-* tokens, remap of --odx-* / --odx-ui-*, type, focus, motion (shell workstream)
   shell.css:      global shell (sidebar / rail / phone bars), page header, patient header + tabs (shell workstream)
   day.css:        /dashboard Journée (agenda workstream)
   agenda.css:     /calendar grid, filters, selected-appointment panel (agenda workstream)
   dossier.css:    dossier Soins page, stage overlays, tooth panel, tooth shortcut, act form (dossier workstream) */
/* foundation.css / shell.css (sidebar + cobalt) were rejected by the owner on 22 Nov and are no longer imported. */
/* Redesign · GREEN direction (owner's correction, 22 Nov 2026): the original Odontiax revamp look — porcelain ring,
   Outfit, dark #211f1f pill, mint gradient actions, emerald accents, white glass on the soft green ground.
   The new components (day panel, calendar, tooth chip/panel head, docked act form) read these --ox-* names, which here
   carry the ORIGINAL green values (dossier/theme/tokens.css). No sidebar, no cobalt. */
:root {
  --ox-ground: #e6ebe2;
  --ox-surface: #ffffff;
  --ox-sunken: #f3f6f1;
  --ox-hover: rgb(30 60 30 / .045);
  --ox-ice: #e9fbe6;            /* selected row (mint-white) */
  --ox-ice-strong: #d6f7d0;
  --ox-sky: #c5fcc4;
  --ox-accent: #0c8f60;         /* emerald: selection bar, now-line, focus */
  --ox-accent-hover: #0a7a52;
  --ox-ink: #0d0d0d;
  --ox-ink-2: rgb(13 13 13 / .66);
  --ox-muted: rgb(13 13 13 / .6);
  --ox-placeholder: rgb(13 13 13 / .5);
  --ox-disabled: rgb(13 13 13 / .35);
  --ox-on-dark: #fefbfc;
  --ox-black: #211f1f;
  --ox-black-hover: #343131;
  --ox-black-press: #0d0d0d;
  --ox-line: rgb(13 13 13 / .08);
  --ox-line-ground: rgb(13 13 13 / .1);
  --ox-line-control: rgb(13 13 13 / .2);
  --ox-focus: #0c8f60;
  --ox-focus-ring: 2px solid #0c8f60;
  --ox-focus-offset: 2px;
  --ox-mint: linear-gradient(90deg, #e0fac3 0%, #c5fcc4 50%, #aaffc6 100%);
  --ox-info-bg: #e1f9c3;    --ox-info: #2f4a1f;    --ox-info-dot: #6aa84f;
  --ox-ok-bg: #d4f5dc;      --ox-ok: #17603f;      --ox-ok-dot: #1f8a5a;
  --ox-warn-bg: #fff3d9;    --ox-warn: #6f4510;    --ox-warn-dot: #c98a12;
  --ox-danger-bg: #fbe4e1;  --ox-danger: #8a2a20;  --ox-danger-dot: #c8372d;
  --ox-neutral-bg: #eceeec; --ox-neutral: #4a504b; --ox-neutral-dot: #8a918b;
  --ox-plan-bg: #efeafc;    --ox-plan: #5b3fb8;    --ox-plan-dot: #7b4fe0;
  --ox-r-xs: 6px; --ox-r-sm: 10px; --ox-r-md: 12px; --ox-r-lg: 16px; --ox-r-xl: 22px; --ox-r-2xl: 28px; --ox-r-pill: 999px;
  --ox-h: 40px;
  --ox-e1: 0 1px 2px rgb(20 40 20 / .04), 0 6px 18px -10px rgb(20 40 20 / .12);
  --ox-e2: 0 6px 16px -4px rgb(20 40 20 / .14), 0 18px 40px -12px rgb(20 40 20 / .18);
  --ox-e3: 0 28px 70px -18px rgb(20 40 20 / .32);
  --ox-scrim: rgb(13 13 13 / .28);
  --ox-glass-bg: rgb(255 255 255 / .72);
  --ox-glass-bg-ground: rgb(240 245 237 / .82);
  --ox-glass-filter: blur(16px) saturate(1.3);
  --ox-glass-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 0 0 1px rgb(13 13 13 / .06), 0 8px 24px -12px rgb(20 40 20 / .2);
  --ox-font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ox-dur-1: 120ms; --ox-dur-2: 180ms; --ox-dur-3: 240ms; --ox-dur-4: 320ms;
  --ox-ease: cubic-bezier(.2, 0, 0, 1); --ox-ease-out: cubic-bezier(.05, .7, .1, 1); --ox-ease-in: cubic-bezier(.3, 0, .8, .15);
  --ox-topbar-h: 0px;
  --ox-gutter: 24px;
}
@media (pointer: coarse) { :root { --ox-h: 44px; } }
@media (max-width: 767px) { :root { --ox-gutter: 16px; } }
@media (prefers-reduced-motion: reduce) { :root { --ox-dur-1: 0ms; --ox-dur-2: 0ms; --ox-dur-3: 80ms; --ox-dur-4: 0ms; } }
.ox-sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ox-glass { background: var(--ox-glass-bg); -webkit-backdrop-filter: var(--ox-glass-filter); backdrop-filter: var(--ox-glass-filter); box-shadow: var(--ox-glass-shadow); }
@media (prefers-reduced-transparency: reduce) { .ox-glass { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* buttons of the new components, in the original language: dark pill primary, mint secondary, quiet */
:is(.odx-dossier, #odx-skin) .ox-btn, .ox-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ox-h); padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--ox-r-pill); font: 500 15px/20px var(--ox-font); letter-spacing: -.01em;
  white-space: nowrap; text-decoration: none; cursor: pointer; color: var(--ox-ink); background: transparent;
  transition: background-color var(--ox-dur-1) var(--ox-ease), filter var(--ox-dur-1) var(--ox-ease);
}
.ox-btn svg { width: 18px; height: 18px; flex: none; }
:is(.odx-dossier, #odx-skin) .ox-btn--primary, .ox-btn--primary { background: var(--ox-black); color: var(--ox-on-dark); }
.ox-btn--primary:hover:not(:disabled) { background: var(--ox-black-hover); }
:is(.odx-dossier, #odx-skin) .ox-btn--secondary, .ox-btn--secondary { background: var(--ox-mint); color: var(--ox-ink); border-color: transparent; }
.ox-btn--secondary:hover:not(:disabled) { filter: saturate(1.15) brightness(.98); }
:is(.odx-dossier, #odx-skin) .ox-btn--quiet, .ox-btn--quiet { background: transparent; color: var(--ox-ink-2); }
.ox-btn--quiet:hover:not(:disabled) { background: var(--ox-hover); color: var(--ox-ink); }
.ox-btn:disabled { background: var(--ox-sunken); color: var(--ox-disabled); cursor: not-allowed; filter: none; }
:is(.odx-dossier, #odx-skin) .ox-iconbtn, .ox-iconbtn {
  display: inline-grid; place-items: center; flex: none; width: var(--ox-h); height: var(--ox-h); padding: 0; border: 0; border-radius: 50%;
  background: rgb(0 0 0 / .026); color: var(--ox-ink); cursor: pointer;
}
.ox-iconbtn svg { width: 20px; height: 20px; }
.ox-iconbtn:hover { background: rgb(0 0 0 / .05); }
:is(.odx-dossier, #odx-skin) :is(.ox-btn, .ox-iconbtn):focus-visible { outline: 2px solid var(--ox-focus); outline-offset: 2px; }
/* the return pill in the dossier band (visit opened from the calendar or the day view) */
.odx-dossier .odx-s-visit {
  display: inline-flex; align-items: center; gap: 8px; height: max(34px, calc(40 * var(--odx-u))); margin-left: calc(18 * var(--odx-u)); padding: 0 16px 0 12px;
  border: 0; border-radius: 999px; background: var(--ox-mint); color: var(--ox-ink); font: 500 max(13px, var(--odx-fs-crumb, 14px))/1 var(--ox-font);
  white-space: nowrap; cursor: pointer; box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 4px 14px -8px rgb(20 80 40 / .5); min-width: 0; max-width: 46%;
}
.odx-dossier .odx-s-visit span { overflow: hidden; text-overflow: ellipsis; }
.odx-dossier .odx-s-visit svg { width: 16px; height: 16px; flex: none; }
.odx-dossier .odx-s-visit:focus-visible { outline: 2px solid var(--ox-focus); outline-offset: 2px; }
body:has(.modal-backdrop, .odw-sheet-backdrop) .odx-local-copy { display: none; }
/* an inline form (appointment, act…) opened inside a page covers the shell's top bar and search band */
.platform-workspace .odx-a-main:has(.modal-backdrop) { z-index: 60; }
/* Redesign · day view (/dashboard Journée and /calendar?vue=jour): date as the heading, a light inline summary, an
   unframed filter row, the list module and the sticky « Rendez-vous sélectionné » panel. */
/* Journée | Indicateurs segmented control */
.platform-workspace .odw-switch { display: inline-flex; align-self: flex-start; gap: 0; padding: 4px; border-radius: var(--ox-r-pill); background: var(--ox-surface); border: 0; box-shadow: var(--ox-e1), 0 0 0 1px var(--ox-line); }
.platform-workspace .odw-switch button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border: 0; border-radius: var(--ox-r-pill); background: transparent; color: var(--ox-ink-2); font: 500 14px/20px var(--ox-font); box-shadow: none; }
.platform-workspace .odw-switch button svg { width: 18px; height: 18px; }
.platform-workspace .odw-switch button[aria-pressed="true"] { background: var(--ox-black); color: var(--ox-on-dark); }
.platform-workspace .odw-switch button:not([aria-pressed="true"]):hover { background: var(--ox-hover); color: var(--ox-ink); }
/* the page section itself is not a card */
.platform-workspace .odw-worklist { display: flex; flex-direction: column; gap: 16px; padding: 0; margin: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.platform-workspace .odw-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin: 0; padding: 0; }
.platform-workspace .odw-head__lead { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.platform-workspace .odw-head h2 { margin: 0; font: 400 26px/32px var(--ox-font); letter-spacing: -.02em; color: var(--ox-ink); text-transform: none; }
.platform-workspace .odw-head h2::first-letter { text-transform: uppercase; }
/* summary line: « 1 rendez-vous · 0 présent · 0 à rappeler » — each part filters the list (aria-pressed) */
.platform-workspace .odw-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 0; background: none; border: 0; }
.platform-workspace .odw-summary button {
  display: inline-flex; align-items: baseline; gap: 5px; height: 32px; padding: 0 12px; border: 0; border-radius: var(--ox-r-pill);
  background: transparent; color: var(--ox-ink-2); font: 400 15px/20px var(--ox-font); box-shadow: none; min-width: 0; flex: none;
}
.platform-workspace .odw-summary button:first-child { margin-left: -12px; }
.platform-workspace .odw-summary button + button::before { content: "·"; margin: 0 6px 0 -10px; color: var(--ox-muted); }
.platform-workspace .odw-summary button strong { font: 500 15px/20px var(--ox-font); font-variant-numeric: tabular-nums; color: var(--ox-ink); }
.platform-workspace .odw-summary button span { display: inline; }
.platform-workspace .odw-summary button:hover { background: var(--ox-hover); }
.platform-workspace .odw-summary button[aria-pressed="true"] { background: var(--ox-ice); color: var(--ox-ink); }
.platform-workspace .odw-summary button[aria-pressed="true"] + button::before { margin-left: -4px; }
/* date stepper */
.platform-workspace .odw-daynav { display: flex; align-items: center; gap: 6px; padding: 0; margin: 0; background: none; border: 0; box-shadow: none; flex-wrap: nowrap; }
.platform-workspace .odw-daynav > button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 0; background: var(--ox-surface); color: var(--ox-ink); box-shadow: var(--ox-e1), 0 0 0 1px var(--ox-line); }
.platform-workspace .odw-daynav > button svg { width: 20px; height: 20px; }
.platform-workspace .odw-daynav > button.odw-today { width: auto; padding: 0 16px; border-radius: var(--ox-r-pill); font: 500 15px/20px var(--ox-font); }
.platform-workspace .odw-daynav label { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: var(--ox-r-pill); background: var(--ox-surface); border: 1px solid var(--ox-line-control); color: var(--ox-ink-2); }
.platform-workspace .odw-daynav label svg { width: 18px; height: 18px; flex: none; }
.platform-workspace .odw-daynav input[type="date"] { height: 36px; padding: 0; border: 0; background: transparent; color: var(--ox-ink); font: 500 15px/20px var(--ox-font); font-variant-numeric: tabular-nums; box-shadow: none; min-width: 0; width: 132px; }
.platform-workspace .odw-daynav input[type="date"]:focus-visible { outline: none; }
.platform-workspace .odw-daynav label:focus-within { outline: 2px solid var(--ox-focus); outline-offset: 2px; }
/* filters row (unframed) */
.platform-workspace .odw-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; border: 0; }
.platform-workspace .odw-filters label { display: flex; flex-direction: column; gap: 6px; font: 500 13px/16px var(--ox-font); color: var(--ox-ink-2); }
.platform-workspace .odw-filters select { height: 40px; min-width: 190px; padding: 0 36px 0 14px; border-radius: var(--ox-r-md); border: 1px solid var(--ox-line-control); background-color: var(--ox-surface); color: var(--ox-ink); font: 400 15px/20px var(--ox-font); }
.platform-workspace .odw-reset { min-height: 40px; }
.platform-workspace .odw-memo { align-self: center; font: 400 13px/18px var(--ox-font); color: var(--ox-muted); margin-top: 18px; }
.platform-workspace .odw-refresh { display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; padding: 0; border-radius: 50%; border: 0; background: var(--ox-surface); color: var(--ox-ink); box-shadow: var(--ox-e1), 0 0 0 1px var(--ox-line); }
.platform-workspace .odw-refresh svg { width: 18px; height: 18px; }
/* body: list module + selected appointment panel */
.platform-workspace .odw-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (min-width: 1800px) { .platform-workspace .odw-body { grid-template-columns: minmax(0, 1fr) 400px; } }
.platform-workspace .odw-listwrap { min-width: 0; background: var(--ox-surface); border-radius: var(--ox-r-xl); box-shadow: var(--ox-e1); padding: 8px; }
.platform-workspace .odw-slots { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.platform-workspace .odw-slots li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 60px; padding: 0 8px 0 0; border: 0; border-radius: var(--ox-r-lg); background: transparent; position: relative; }
.platform-workspace .odw-slots li + li::before { content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 1px; background: var(--ox-line); }
.platform-workspace .odw-slots li:hover { background: var(--ox-hover); }
.platform-workspace .odw-slots li.is-selected { background: var(--ox-ice); box-shadow: inset 3px 0 0 var(--ox-accent); }
.platform-workspace .odw-slots li.is-selected::before, .platform-workspace .odw-slots li.is-selected + li::before { display: none; }
.platform-workspace .odw-slots li.is-returned { box-shadow: inset 3px 0 0 var(--ox-accent), inset 0 0 0 2px var(--ox-ink); }
.platform-workspace .odw-slotbtn {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 8px 8px 16px;
  border: 0; border-radius: var(--ox-r-lg); background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit;
}
.platform-workspace .odw-slotbtn:focus-visible { outline: 2px solid var(--ox-focus); outline-offset: -2px; }
.platform-workspace .odw-slotbtn time { font: 500 15px/20px var(--ox-font); font-variant-numeric: tabular-nums; color: var(--ox-ink); }
.platform-workspace .odw-slotcopy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.platform-workspace .odw-slotcopy strong { font: 500 15px/20px var(--ox-font); color: var(--ox-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.platform-workspace .odw-slotcopy small { font: 400 14px/20px var(--ox-font); color: var(--ox-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.platform-workspace .odw-state { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--ox-r-pill); font: 500 13px/16px var(--ox-font); background: var(--ox-info-bg); color: var(--ox-info); border: 0; white-space: nowrap; }
.platform-workspace .odw-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.platform-workspace .odw-state.is-present { background: var(--ox-ok-bg); color: var(--ox-ok); }
.platform-workspace .odw-state.is-absent, .platform-workspace .odw-state.is-cancelled { background: var(--ox-danger-bg); color: var(--ox-danger); }
.platform-workspace .odw-state.is-postponed { background: var(--ox-neutral-bg); color: var(--ox-neutral); }
.platform-workspace .odw-state.is-callback { background: var(--ox-warn-bg); color: var(--ox-warn); }
.platform-workspace .odw-slots li > a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ox-surface); color: var(--ox-ink); box-shadow: var(--ox-e1), 0 0 0 1px var(--ox-line); }
.platform-workspace .odw-slots li > a svg { width: 18px; height: 18px; }
.platform-workspace .odw-slots li > a:hover { background: var(--ox-hover); }
.platform-workspace .odw-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; margin: 0; color: var(--ox-muted); font: 400 15px/22px var(--ox-font); background: none; border: 0; }
.platform-workspace .odw-empty h3 { margin: 0; font: 500 17px/22px var(--ox-font); color: var(--ox-ink); }
.platform-workspace .odw-pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 8px; }
.platform-workspace .odw-panel { position: sticky; top: calc(var(--ox-topbar-h) + 24px); background: var(--ox-surface); border-radius: var(--ox-r-xl); box-shadow: var(--ox-e1); padding: 20px; min-width: 0; }
.platform-workspace .odw-panel__body { display: flex; flex-direction: column; gap: 12px; }
.platform-workspace .odw-panel__eyebrow { margin: 0; font: 500 13px/16px var(--ox-font); color: var(--ox-muted); }
.platform-workspace .odw-panel__name { margin: 0; font: 500 20px/26px var(--ox-font); letter-spacing: -.01em; color: var(--ox-ink); overflow-wrap: anywhere; }
.platform-workspace .odw-panel__when { margin: -6px 0 0; font: 500 15px/20px var(--ox-font); font-variant-numeric: tabular-nums; color: var(--ox-ink-2); }
.platform-workspace .odw-panel__facts { display: flex; flex-direction: column; gap: 0; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--ox-line); }
.platform-workspace .odw-panel__facts > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--ox-line); }
.platform-workspace .odw-panel__facts dt { font: 400 14px/20px var(--ox-font); color: var(--ox-muted); }
.platform-workspace .odw-panel__facts dd { margin: 0; font: 500 14px/20px var(--ox-font); color: var(--ox-ink); text-align: right; }
.platform-workspace .odw-panel__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.platform-workspace .odw-panel__actions .ox-btn { width: 100%; }
.platform-workspace .odw-panel__open svg { width: 18px; height: 18px; }
.platform-workspace .odw-panel__note { margin: 0; font: 400 14px/20px var(--ox-font); color: var(--ox-muted); }
/* phone: one column, the selected appointment opens as a bottom sheet */
.odw-sheet-backdrop { position: fixed; inset: 0; z-index: 1200; background: var(--ox-scrim); display: flex; align-items: flex-end; }
.odw-sheet { position: relative; width: 100%; max-height: 92dvh; overflow-y: auto; padding: 22px 16px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; background: var(--ox-surface); box-shadow: var(--ox-e3); animation: odw-sheet-in var(--ox-dur-3) var(--ox-ease-out); }
.odw-sheet__grab { position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: var(--ox-line-control); }
.odw-sheet__close { position: absolute; top: 12px; right: 12px; transform: rotate(-90deg); }
@keyframes odw-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .odw-sheet { animation: none; } }
@media (max-width: 1100px) { .platform-workspace .odw-body { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 900px) { .platform-workspace .odw-body { grid-template-columns: minmax(0, 1fr); } .platform-workspace .odw-panel { position: static; } }
@media (max-width: 767px) {
  .platform-workspace .odw-head { align-items: stretch; flex-direction: column; }
  .platform-workspace .odw-head h2 { font-size: 22px; line-height: 28px; }
  .platform-workspace .odw-daynav { width: 100%; }
  .platform-workspace .odw-daynav label { flex: 1; min-width: 0; justify-content: center; }
  .platform-workspace .odw-daynav input[type="date"] { width: 100%; }
  .platform-workspace .odw-filters { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 2px; scrollbar-width: none; }
  .platform-workspace .odw-filters label { flex: none; }
  .platform-workspace .odw-filters select { min-width: 160px; height: 44px; font-size: 16px; }
  .platform-workspace .odw-memo { display: none; }
  .platform-workspace .odw-refresh { margin-left: 0; flex: none; align-self: flex-end; width: 44px; height: 44px; }
  .platform-workspace .odw-listwrap { padding: 4px; }
  .platform-workspace .odw-slotbtn { grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "time copy" "time state"; row-gap: 6px; min-height: 68px; padding: 10px 6px 10px 12px; }
  .platform-workspace .odw-slotbtn time { grid-area: time; align-self: start; padding-top: 1px; }
  .platform-workspace .odw-slotbtn .odw-slotcopy { grid-area: copy; }
  .platform-workspace .odw-slotbtn .odw-state { grid-area: state; justify-self: start; }
  .platform-workspace .odw-slots li > a { width: 44px; height: 44px; }
}
/* ---------------------------------------------------------------- review fixes (22 Nov): one date field, own rows */
/* one outline and one calendar icon: the field draws the box, the label adds nothing */
.platform-workspace .odw-daynav label.odw-date { padding: 0; border: 0; background: none; height: auto; gap: 0; box-shadow: none; }
:is(.odx-dossier, #odx-skin) .platform-workspace .odw-daynav input[type="date"] {
  width: auto; min-width: 158px; height: 42px; padding: 0 12px 0 16px; border: 1px solid var(--ox-line-control); border-radius: 999px;
  background: #fff; color: var(--ox-ink); font: 500 15px/1 var(--ox-font); font-variant-numeric: tabular-nums; box-shadow: none;
}
:is(.odx-dossier, #odx-skin) .platform-workspace .odw-daynav input[type="date"]:focus-visible { outline: 2px solid var(--ox-focus); outline-offset: 2px; }
.platform-workspace .odw-daynav label.odw-date:focus-within { outline: none; }
.platform-workspace .odw-summary button { flex-direction: row; align-items: baseline; justify-content: flex-start; }
@media (max-width: 767px) {
  /* rows: date title · counters · date navigation · filters + refresh */
  .platform-workspace .odw-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .platform-workspace .odw-head__lead { display: grid; gap: 8px; }
  .platform-workspace .odw-summary { display: flex; flex-wrap: wrap; gap: 4px 2px; margin: 0; }
  .platform-workspace .odw-summary button { height: 34px; padding: 0 10px; }
  .platform-workspace .odw-summary button:first-child { margin-left: -10px; }
  .platform-workspace .odw-daynav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; width: 100%; }
  .platform-workspace .odw-daynav > button { width: 44px; height: 44px; }
  .platform-workspace .odw-daynav > .odw-today { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 40px; }
  .platform-workspace .odw-daynav label.odw-date { min-width: 0; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .odw-daynav input[type="date"] { width: 100%; min-width: 0; height: 44px; font-size: 16px; }
  .platform-workspace .odw-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; align-items: end; gap: 8px; overflow: visible; flex-wrap: nowrap; }
  .platform-workspace .odw-filters label { min-width: 0; }
  .platform-workspace .odw-filters select { width: 100%; min-width: 0; max-width: none; }
  .platform-workspace .odw-filters .odw-reset { grid-column: 1 / -1; justify-self: start; }
  .platform-workspace .odw-refresh { grid-column: 3; grid-row: 1; margin: 0; }
}
/* Redesign · clinic calendar (green direction): white glass modules on the green window, dark pill for the active
   choice, mint for selection, emerald accents, Outfit. Day / week grid with aligned hours; phone = one readable day. */
.occ { display: flex; flex-direction: column; gap: 14px; min-width: 0; font-family: var(--ox-font); color: var(--ox-ink); }
.occ-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
.occ-head__lead { min-width: 0; }
.platform-workspace .occ-title { margin: 0; font: 300 30px/36px var(--ox-font); letter-spacing: -.035em; color: #050505; }
.occ-sub { margin: 4px 0 0; font: 400 15px/20px var(--ox-font); color: var(--ox-ink-2); }
.occ-nav { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.occ-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / .72); box-shadow: 0 0 0 1px var(--ox-line); }
.platform-workspace .occ-seg button { height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ox-ink-2); font: 500 15px/1 var(--ox-font); cursor: pointer; box-shadow: none; }
.platform-workspace .occ-seg button[aria-pressed="true"] { background: var(--ox-black); color: var(--ox-on-dark); }
.platform-workspace .occ-round { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ox-ink); box-shadow: 0 0 0 1px var(--ox-line), 0 4px 12px -8px rgb(20 40 20 / .3); cursor: pointer; flex: none; }
.occ-round svg { width: 20px; height: 20px; }
.platform-workspace .occ-today { height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ox-mint); color: var(--ox-ink); font: 500 15px/1 var(--ox-font); cursor: pointer; flex: none; }
.occ-date { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--ox-line); color: var(--ox-ink-2); }
.occ-date svg { width: 18px; height: 18px; flex: none; }
.platform-workspace .occ-date input { width: 128px; height: 38px; padding: 0; border: 0; background: transparent; color: var(--ox-ink); font: 500 15px/1 var(--ox-font); font-variant-numeric: tabular-nums; box-shadow: none; }
.occ-date:focus-within { outline: 2px solid var(--ox-focus); outline-offset: 2px; }
.platform-workspace .occ-date input:focus-visible { outline: none; }
/* 7-day strip: fast date change, with the count of each day */
.occ-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.platform-workspace .occ-strip__day {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "wd count" "num count"; align-items: center; column-gap: 8px;
  min-height: 56px; padding: 8px 14px; border: 0; border-radius: 18px; background: rgb(255 255 255 / .62); color: var(--ox-ink); text-align: left; cursor: pointer;
  box-shadow: 0 0 0 1px var(--ox-line); transition: background-color var(--ox-dur-1) var(--ox-ease);
}
.occ-strip__day:hover { background: rgb(255 255 255 / .95); }
.occ-strip__wd { grid-area: wd; font: 400 13px/16px var(--ox-font); color: var(--ox-ink-2); text-transform: capitalize; }
.occ-strip__num { grid-area: num; font: 500 20px/24px var(--ox-font); font-variant-numeric: tabular-nums; }
.occ-strip__count { grid-area: count; justify-self: end; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; background: rgb(0 0 0 / .045); font: 500 13px/24px var(--ox-font); text-align: center; color: var(--ox-ink-2); }
.platform-workspace .occ-strip__day.is-today .occ-strip__num { color: var(--ox-accent); }
.platform-workspace .occ-strip__day.is-current { background: var(--ox-black); color: var(--ox-on-dark); box-shadow: none; }
.occ-strip__day.is-current .occ-strip__wd { color: rgb(254 251 252 / .75); }
.occ-strip__day.is-current .occ-strip__count { background: var(--ox-mint); color: var(--ox-ink); }
.occ--semaine .occ-strip__day.is-current { background: rgb(255 255 255 / .95); color: var(--ox-ink); box-shadow: 0 0 0 2px var(--ox-black); }
.occ--semaine .occ-strip__day.is-current .occ-strip__wd { color: var(--ox-ink-2); }
/* filters: practitioner chips (colour swatch), status, columns toggle */
.occ-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px 12px; }
.occ-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-workspace .occ-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .72); color: var(--ox-ink); font: 400 15px/1 var(--ox-font); cursor: pointer; box-shadow: 0 0 0 1px var(--ox-line); }
.occ-chip i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.platform-workspace .occ-chip[aria-pressed="true"] { background: var(--ox-mint); font-weight: 500; box-shadow: none; }
.occ-chip.is-ghost { background: transparent; color: var(--ox-ink-2); box-shadow: none; cursor: default; }
.occ-status { display: flex; flex-direction: column; gap: 6px; font: 500 13px/16px var(--ox-font); color: var(--ox-ink-2); }
.platform-workspace .occ-status select { height: 40px; min-width: 190px; padding: 0 34px 0 14px; border-radius: 14px; border: 1px solid var(--ox-line-control); background-color: #fff; color: var(--ox-ink); font: 400 15px/1 var(--ox-font); }
.platform-workspace .occ-toggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .72); color: var(--ox-ink); font: 400 15px/1 var(--ox-font); cursor: pointer; box-shadow: 0 0 0 1px var(--ox-line); }
.occ-toggle svg { width: 18px; height: 18px; }
.platform-workspace .occ-toggle[aria-pressed="true"] { background: var(--ox-black); color: var(--ox-on-dark); box-shadow: none; }
.occ-reset svg { width: 16px; height: 16px; }
.occ-memo { align-self: center; font: 400 13px/18px var(--ox-font); color: var(--ox-ink-2); }
.platform-workspace .occ-refresh { margin-left: auto; }
/* body: grid module + selected appointment panel */
.occ-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.occ-gridwrap { min-width: 0; padding: 8px 12px 14px 4px; border-radius: 26px; background: rgb(255 255 255 / .82); box-shadow: 0 0 0 1px var(--ox-line), 0 10px 30px -18px rgb(20 40 20 / .25); overflow-x: auto; }
.occ-cols, .occ-grid { display: grid; grid-template-columns: 58px repeat(var(--occ-cols), minmax(150px, 1fr)); }
.occ--semaine .occ-cols, .occ--semaine .occ-grid { grid-template-columns: 58px repeat(var(--occ-cols), minmax(118px, 1fr)); }
.occ-cols { position: sticky; top: 0; z-index: 4; padding: 6px 0 8px; background: var(--ox-glass-bg); -webkit-backdrop-filter: var(--ox-glass-filter); backdrop-filter: var(--ox-glass-filter); border-bottom: 1px solid var(--ox-line); }
.occ-colhead { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 10px; font: 500 15px/20px var(--ox-font); }
.occ-colhead i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.occ-colhead__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
.occ-colhead__num { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; font: 500 16px/1 var(--ox-font); font-variant-numeric: tabular-nums; }
.occ-colhead.is-today .occ-colhead__num { background: var(--ox-black); color: var(--ox-on-dark); }
.occ-colhead__count { margin-left: auto; font: 400 13px/1 var(--ox-font); color: var(--ox-ink-2); }
.occ-grid { position: relative; margin-top: 6px; }
.occ-hours { position: relative; grid-column: 1; grid-row: 1; }
.occ-hours span { position: absolute; right: 10px; transform: translateY(-8px); font: 500 12px/16px var(--ox-font); font-variant-numeric: tabular-nums; color: var(--ox-ink-2); }
.occ-col {
  position: relative; grid-row: 1; min-width: 0; border-left: 1px solid var(--ox-line);
  background-image: repeating-linear-gradient(to bottom, var(--ox-line) 0, var(--ox-line) 1px, transparent 1px, transparent var(--occ-hour)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--occ-hour) / 2), rgb(13 13 13 / .035) calc(var(--occ-hour) / 2), rgb(13 13 13 / .035) calc(var(--occ-hour) / 2 + 1px), transparent calc(var(--occ-hour) / 2 + 1px), transparent var(--occ-hour));
}
.occ-col.is-today { background-color: rgb(224 250 195 / .18); }
.occ-free { position: absolute; left: 4px; right: 4px; border-radius: 12px; border: 1px dashed rgb(12 143 96 / .28); background: rgb(224 250 195 / .22); display: flex; align-items: flex-start; padding: 6px 8px; pointer-events: none; }
.occ-free span { font: 500 12px/16px var(--ox-font); color: rgb(12 110 74 / .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.occ-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--ox-accent); z-index: 3; pointer-events: none; }
.occ-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ox-accent); }
.occ-slot { position: absolute; z-index: 2; min-width: 0; }
.platform-workspace .occ-appt {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; overflow: hidden;
  padding: 6px 30px 6px 12px; border: 0; border-radius: 14px; text-align: left; cursor: pointer; font-family: var(--ox-font);
  background: #fff; color: var(--ox-ink); box-shadow: inset 4px 0 0 var(--occ-doc), 0 0 0 1px var(--ox-line), 0 6px 16px -12px rgb(20 40 20 / .35);
  transition: box-shadow var(--ox-dur-1) var(--ox-ease), background-color var(--ox-dur-1) var(--ox-ease);
}
.occ-appt:hover { background: #fbfffa; }
.occ-appt.is-scheduled { background: linear-gradient(90deg, #f3fde9, #fff 70%); }
.occ-appt.is-present { background: linear-gradient(90deg, #dff8e6, #fff 70%); }
.occ-appt.is-absent, .occ-appt.is-postponed { background: #f7f4ee; }
.occ-appt.is-cancelled { background: #fbf1ef; }
.occ-appt.is-cancelled .occ-appt__name { text-decoration: line-through; }
.occ-appt.is-callback { background: #fff8e8; }
.platform-workspace .occ-appt.is-selected { background: var(--ox-mint); box-shadow: inset 4px 0 0 var(--occ-doc), 0 0 0 2px var(--ox-black), 0 10px 22px -12px rgb(20 40 20 / .45); }
.platform-workspace .occ-appt.is-returned { box-shadow: inset 4px 0 0 var(--occ-doc), 0 0 0 3px var(--ox-accent); }
.occ-appt:focus-visible { outline: 2px solid var(--ox-focus); outline-offset: 2px; }
.occ-appt__time { font: 500 12px/15px var(--ox-font); font-variant-numeric: tabular-nums; color: var(--ox-ink-2); }
.occ-appt__name { max-width: 100%; font: 500 14px/18px var(--ox-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.occ-appt__meta { max-width: 100%; font: 400 12px/16px var(--ox-font); color: var(--ox-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.platform-workspace .occ-appt__open { position: absolute; top: 4px; right: 4px; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--ox-ink); box-shadow: 0 0 0 1px var(--ox-line); }
.occ-appt__open svg { width: 15px; height: 15px; }
.occ-appt__open:focus-visible { outline: 2px solid var(--ox-focus); outline-offset: 1px; }
.occ-empty { margin: 14px 8px 0; font: 400 15px/22px var(--ox-font); color: var(--ox-ink-2); }
.occ-keys { margin: 12px 8px 0; font: 400 12px/16px var(--ox-font); color: var(--ox-ink-2); }
.occ-panel { position: sticky; top: 16px; padding: 22px; border-radius: 26px; background: rgb(255 255 255 / .9); box-shadow: 0 0 0 1px var(--ox-line), 0 10px 30px -18px rgb(20 40 20 / .25); }
.occ-panel__body { display: flex; flex-direction: column; gap: 12px; }
.occ-panel__eyebrow { margin: 0; font: 500 13px/16px var(--ox-font); color: var(--ox-ink-2); }
.occ-panel__name { margin: 0; font: 500 21px/26px var(--ox-font); letter-spacing: -.02em; overflow-wrap: anywhere; }
.occ-panel__when { margin: -6px 0 0; font: 400 14px/20px var(--ox-font); color: var(--ox-ink-2); font-variant-numeric: tabular-nums; }
.occ-panel__facts { margin: 2px 0 0; padding: 0; border-top: 1px solid var(--ox-line); }
.occ-panel__facts > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--ox-line); }
.occ-panel__facts dt { font: 400 14px/20px var(--ox-font); color: var(--ox-ink-2); }
.occ-panel__facts dd { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 14px/20px var(--ox-font); text-align: right; }
.occ-panel__facts dd i { width: 10px; height: 10px; border-radius: 50%; }
.occ-panel__actions { display: flex; flex-direction: column; gap: 8px; }
.occ-panel__actions .ox-btn, .occ-panel__manage { width: 100%; }
.occ-panel__note { margin: 0; font: 400 14px/20px var(--ox-font); color: var(--ox-ink-2); }
.occ-state { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 500 13px/1 var(--ox-font); background: var(--ox-info-bg); color: var(--ox-info); }
.occ-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.occ-state.is-present { background: var(--ox-ok-bg); color: var(--ox-ok); }
.occ-state.is-absent, .occ-state.is-postponed { background: var(--ox-neutral-bg); color: var(--ox-neutral); }
.occ-state.is-cancelled { background: var(--ox-danger-bg); color: var(--ox-danger); }
.occ-state.is-callback { background: var(--ox-warn-bg); color: var(--ox-warn); }
.occ-sheet .occ-panel__body { padding-top: 6px; }
@media (max-width: 1179px) { .occ-body { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .occ-appt, .occ-strip__day { transition: none; } }
/* phone: one readable day, no overlaps, nothing cut */
@media (max-width: 767px) {
  .occ { gap: 12px; }
  .platform-workspace .occ-title { font-size: 24px; line-height: 30px; }
  .occ-head { flex-direction: column; align-items: stretch; }
  .occ-nav { width: 100%; }
  .occ-date { flex: 1; min-width: 0; justify-content: center; }
  .platform-workspace .occ-date input { width: 100%; min-width: 0; font-size: 16px; }
  .platform-workspace .occ-round, .platform-workspace .occ-today { height: 44px; }
  .platform-workspace .occ-round { width: 44px; }
  .occ-strip { gap: 4px; }
  .platform-workspace .occ-strip__day { grid-template-columns: 1fr; grid-template-areas: "wd" "num" "count"; justify-items: center; min-height: 72px; padding: 6px 2px; border-radius: 16px; text-align: center; row-gap: 2px; }
  .occ-strip__count { justify-self: center; min-width: 22px; height: 20px; padding: 0 6px; line-height: 20px; font-size: 12px; }
  .occ-strip__num { font-size: 18px; }
  .occ-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .occ-filters::-webkit-scrollbar { display: none; }
  .occ-chips { flex-wrap: nowrap; }
  .platform-workspace .occ-chip { flex: none; height: 44px; }
  .occ-status { flex: none; }
  .platform-workspace .occ-status select { height: 44px; font-size: 16px; min-width: 170px; }
  .occ-memo, .occ-keys { display: none; }
  .platform-workspace .occ-refresh { margin-left: 0; }
  .occ-gridwrap { padding: 6px 8px 10px 2px; border-radius: 22px; overflow-x: hidden; }
  .occ-cols, .occ-grid { grid-template-columns: 46px minmax(0, 1fr); }
  .occ-hours span { right: 6px; font-size: 11px; }
  .platform-workspace .occ-appt { padding: 6px 40px 6px 12px; border-radius: 14px; }
  .occ-appt__name { font-size: 15px; line-height: 19px; }
  .platform-workspace .occ-appt__open { width: 36px; height: 36px; top: 4px; right: 4px; }
}
/* short appointments (≈30 min): time, name and motif on one line so the name is always readable */
.platform-workspace .occ-appt.is-short { flex-direction: row; align-items: center; gap: 8px; padding-top: 0; padding-bottom: 0; }
.occ-appt.is-short .occ-appt__time { flex: none; }
.occ-appt.is-short .occ-appt__name { flex: 0 1 auto; min-width: 0; }
.occ-appt.is-short .occ-appt__meta { flex: 1 1 0; min-width: 0; }
.occ-appt.is-short .occ-appt__meta:not(:empty)::before { content: "· "; }
@media (max-width: 767px) {
  .occ-nav { flex-wrap: wrap; }
  .occ-nav .occ-today { flex: 1 1 auto; }
  .occ-date { order: 5; flex: 1 1 100%; height: 44px; }
  .occ-chips { flex: none; }
  .occ-status { flex-direction: row; align-items: center; gap: 8px; }
  .occ-filters { align-items: center; }
}
/* ---------------------------------------------------------------- review round (22 Nov): actions and occupancy */
.platform-workspace .occ-new { min-height: 42px; flex: none; }
.platform-workspace .occ-new span { font-size: 20px; line-height: 1; margin-top: -2px; }
.occ-col.can-create { cursor: copy; }
.occ-busy { position: absolute; left: 4px; right: 4px; z-index: 1; border-radius: 12px; display: flex; align-items: flex-start; padding: 5px 9px; cursor: not-allowed;
  background: repeating-linear-gradient(135deg, rgb(13 13 13 / .05) 0 6px, rgb(13 13 13 / .015) 6px 12px); box-shadow: inset 0 0 0 1px rgb(13 13 13 / .08); }
.occ-busy span { font: 500 12px/16px var(--ox-font); color: var(--ox-ink-2); }
.platform-workspace .occ-appt { cursor: default; }
.platform-workspace a.occ-appt__name { color: var(--ox-ink); text-decoration: none; cursor: pointer; border-radius: 6px; }
.platform-workspace a.occ-appt__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.platform-workspace a.occ-appt__name:focus-visible { outline: 2px solid var(--ox-focus); outline-offset: 2px; }
.platform-workspace .occ-appt__details { position: absolute; top: 4px; right: 4px; z-index: 3; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%;
  background: #fff; color: var(--ox-ink); font: 600 13px/1 var(--ox-font); font-style: italic; cursor: pointer; box-shadow: 0 0 0 1px var(--ox-line); }
.platform-workspace .occ-appt__details[aria-pressed="true"] { background: var(--ox-black); color: var(--ox-on-dark); box-shadow: none; }
.platform-workspace .occ-appt__details:focus-visible { outline: 2px solid var(--ox-focus); outline-offset: 1px; }
.occ-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1300; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
  padding: 12px 16px; border-radius: 16px; background: #211f1f; color: #fefbfc; font: 400 14px/20px var(--ox-font); box-shadow: 0 18px 40px -16px rgb(0 0 0 / .45); }
.occ-toast button { border: 0; background: transparent; color: #c5fcc4; font: 500 14px/1 var(--ox-font); cursor: pointer; }
@media (max-width: 767px) {
  .platform-workspace .occ-appt__details { width: 36px; height: 36px; }
  .platform-workspace .occ-new { flex: 1 1 100%; order: -1; min-height: 44px; }
}
/* Redesign · dossier Soins page: flat white modules, the stage with discreet glass overlays, the selected-tooth head in
   the right panel, the shortcut chip anchored above the selected tooth, and the act form docked on the right (the 3D
   stage stays visible and usable). */
/* ---------------------------------------------------------------- the original green Soins composition is kept as is */
.odx-dossier-route .odx-dossier .odx-o-row1 { position: relative; }
/* ---------------------------------------------------------------- selected-tooth head (top of the right panel) */
.ox-toothhead {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start;
  margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--ox-line);
}
.ox-toothhead__title { min-width: 0; }
.ox-toothhead__name { margin: 0; font: 500 22px/28px var(--ox-font); letter-spacing: -.01em; color: var(--ox-ink); }
.ox-toothhead__sub { margin: 2px 0 0; font: 400 14px/20px var(--ox-font); color: var(--ox-muted); }
.ox-toothhead__sub::first-letter { text-transform: uppercase; }
.ox-toothhead__close { margin: -4px -6px 0 0; color: var(--ox-ink-2); }
.ox-toothhead__go, .ox-toothhead__back { grid-column: 1 / -1; width: 100%; }
.ox-toothhead .ox-btn svg { width: 18px; height: 18px; }
.ox-toothhead.is-empty { grid-template-columns: 1fr; }
.ox-toothhead__hint { margin: 0; font: 400 14px/20px var(--ox-font); color: var(--ox-muted); }
/* ---------------------------------------------------------------- shortcut chip above the selected tooth */
.ox-toothchip {
  position: absolute; z-index: 15; display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  border-radius: var(--ox-r-pill); transform: translate(-50%, -100%); white-space: nowrap;
  transition: left var(--ox-dur-2) var(--ox-ease), top var(--ox-dur-2) var(--ox-ease), opacity var(--ox-dur-1) var(--ox-ease);
}
.ox-toothchip.is-below { transform: translate(-50%, 0); }
.ox-toothchip.is-parked { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); }
.ox-toothchip__num { display: inline-grid; place-items: center; min-width: 36px; height: 32px; padding: 0 10px; border-radius: var(--ox-r-pill); background: var(--ox-black); color: var(--ox-on-dark); font: 500 14px/1 var(--ox-font); font-variant-numeric: tabular-nums; }
.ox-toothchip__go { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border: 0; border-radius: var(--ox-r-pill); background: var(--ox-surface); color: var(--ox-ink); font: 500 14px/20px var(--ox-font); cursor: pointer; box-shadow: 0 0 0 1px var(--ox-line); }
.ox-toothchip__go:hover { background: var(--ox-hover); }
.ox-toothchip__go svg, .ox-toothchip__dots svg { width: 16px; height: 16px; }
.ox-toothchip__dots { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--ox-ink); cursor: pointer; }
.ox-toothchip__dots:hover { background: var(--ox-hover); }
.ox-toothchip__more { position: relative; }
.ox-toothchip__menu { min-width: 260px; }
@media (pointer: coarse) { .ox-toothchip__num, .ox-toothchip__go, .ox-toothchip__dots { height: 40px; } .ox-toothchip__dots { width: 40px; } }
@media (prefers-reduced-motion: reduce) { .ox-toothchip { transition: none; } }
/* ---------------------------------------------------------------- 3D focus is cobalt and visible (selection stays ink) */
.odx-dossier-route .odx-dossier .odx-sr-list button:focus-visible { outline: 2px solid var(--ox-focus); }
.odx-dossier-route .odx-dossier .odx-o-stage:focus-within .odx-label.is-focused { box-shadow: 0 0 0 2px var(--ox-focus); }
/* ---------------------------------------------------------------- act form docked on the right (not a blocking modal) */
:is(.odx-dossier, #odx-skin) .modal-backdrop:has(> .ox-actform-docked) {
  background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  pointer-events: none; align-items: stretch; justify-content: flex-end; padding: 0;
}
:is(.odx-dossier, #odx-skin) .modal-backdrop > .modal.ox-actform-docked {
  pointer-events: auto; position: fixed; top: var(--ox-dock-top, calc(var(--ox-topbar-h) + 12px)); right: var(--ox-gutter); bottom: 16px; left: auto; /* RC3: --ox-dock-top = under the patient band (actPanelDock.ts) */
  width: min(480px, calc(100vw - 2 * var(--ox-gutter))); max-width: 480px; max-height: none; margin: 0; overflow-y: auto;
  border-radius: var(--ox-r-2xl); background: var(--ox-surface); box-shadow: var(--ox-e3), 0 0 0 1px var(--ox-line); transform: none;
  animation: ox-dock-in var(--ox-dur-3) var(--ox-ease-out);
}
:is(.odx-dossier, #odx-skin) .modal.ox-actform-docked .modal-head { position: sticky; top: 0; z-index: 2; background: var(--ox-surface); padding-bottom: 12px; border-bottom: 1px solid var(--ox-line); }
:is(.odx-dossier, #odx-skin) .modal.ox-actform-docked .modal-head h2,
:is(.odx-dossier, #odx-skin) .modal.ox-actform-docked .modal-head h3 { font: 500 20px/26px var(--ox-font); letter-spacing: -.01em; color: var(--ox-ink); }
@keyframes ox-dock-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { :is(.odx-dossier, #odx-skin) .modal-backdrop > .modal.ox-actform-docked { animation: none; } }
@media (max-width: 767px) {
  :is(.odx-dossier, #odx-skin) .modal-backdrop:has(> .ox-actform-docked) { pointer-events: auto; background: var(--ox-scrim) !important; align-items: flex-end; }
  :is(.odx-dossier, #odx-skin) .modal-backdrop > .modal.ox-actform-docked {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; max-height: 92dvh; border-radius: 24px 24px 0 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  :is(.odx-dossier, #odx-skin) .modal.ox-actform-docked :is(input, select, textarea) { font-size: 16px; }
}
/* ---------------------------------------------------------------- phone (<768): the original composition, one column
   (the desktop canvas of 2000 reference px used to be shrunk and clipped at 390 px) */
@media (max-width: 1023px) { /* round 3: also tablets — the 2000-unit desktop canvas was wider than the screen and clipped at 768–1023 px */
  .odx-dossier-route .odx-s-page { min-height: 0; padding: 0; overflow: visible; }
  .odx-dossier-route .odx-dossier.odx-s-canvas { --odx-u: 0.5px; width: auto; min-height: 0; padding: 10px 10px 24px; overflow: visible; }
  .odx-dossier-route .odx-s-window { width: auto; min-height: 0; padding: 14px 12px 20px; border-radius: 26px; overflow: visible; }
  .odx-dossier-route .odx-dossier .odx-s-topbar { flex-wrap: wrap; height: auto; gap: 8px; row-gap: 10px; }
  .odx-dossier-route .odx-dossier .odx-s-brand { order: 0; }
  .odx-dossier-route .odx-dossier .odx-s-topactions { order: 1; margin-left: auto; }
  .odx-dossier-route .odx-dossier .odx-s-nav { order: 2; flex: 1 1 100%; height: 44px; gap: 6px; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .odx-dossier-route .odx-dossier .odx-s-nav::-webkit-scrollbar { display: none; }
  .odx-dossier-route .odx-dossier .odx-s-nav__item { flex: none; height: 40px; padding: 0 14px; font-size: 15px; }
  .odx-dossier-route .odx-dossier .odx-s-nav__pill { display: none; }
  .odx-dossier-route .odx-dossier .odx-s-nav__item.is-active { background: #211f1f; color: #fefbfc; border-radius: 999px; }
  .odx-dossier-route .odx-dossier .odx-s-band { height: auto; padding: 14px 12px; margin-top: 10px; }
  .odx-dossier-route .odx-dossier .odx-s-band__top { flex-wrap: wrap; height: auto; gap: 8px; }
  .odx-dossier-route .odx-dossier .odx-s-crumb { flex: 1 1 calc(100% - 52px); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .odx-dossier-route .odx-dossier .odx-s-doctor { display: none; }
  .odx-dossier-route .odx-dossier .odx-s-visit { margin-left: 0; max-width: 100%; height: 40px; order: 5; }
  .odx-dossier-route .odx-dossier .odx-s-band__patient { flex-wrap: wrap; gap: 12px; margin-top: 12px; }
  .odx-dossier-route .odx-dossier .odx-s-lead { min-width: 0; flex: 1 1 calc(100% - 64px); flex-wrap: wrap; gap: 10px; }
  .odx-dossier-route .odx-dossier .odx-s-identity { min-width: 0; max-width: none; margin: 0; padding: 0; }
  .odx-dossier-route .odx-dossier .odx-s-identity__line { height: auto; }
  .odx-dossier-route .odx-dossier .odx-s-identity__name { white-space: normal; font-size: 20px; line-height: 26px; }
  .odx-dossier-route .odx-dossier .odx-s-actions { margin: 0; gap: 8px; }
  .odx-dossier-route .odx-dossier .odx-s-actions .odx-iconbtn { width: 40px; height: 40px; }
  .odx-dossier-route .odx-dossier .odx-s-meta { flex-wrap: wrap; gap: 6px 18px; flex: 1 1 100%; }
  .odx-dossier-route .odx-dossier .odx-s-cta { width: 100%; height: 44px; margin: 0; }
  .odx-dossier-route .odx-dossier .odx-o-row1 { flex-direction: column; height: auto; gap: 14px; }
  .odx-dossier-route .odx-dossier .odx-o-row1 > .odx-o-stage { flex: none; height: 380px; }
  .odx-dossier-route .odx-dossier .odx-o-analysis { width: auto; flex: none; max-height: none; overflow: visible; }
  .odx-dossier-route .odx-dossier .odx-o-row2 { grid-template-columns: minmax(0, 1fr); height: auto; row-gap: 14px; margin-top: 14px; }
  .odx-dossier-route .odx-dossier .odx-o-row2 > .odx-card { height: auto; min-height: 0; }
  .odx-dossier-route .odx-dossier .odx-o-acts { margin-top: 14px; padding: 16px; }
  .odx-dossier-route .odx-dossier .odx-o-acts__body { overflow-x: auto; }
  .odx-dossier-route .odx-dossier .odx-o-pills { left: 50%; transform: translateX(-50%); max-width: calc(100% - 12px); }
  .odx-dossier-route .odw-history { margin: 10px 0 0; }
}
/* act form content: fields packed from the top, a sticky footer, readable primary/disabled buttons */
:is(.odx-dossier, #odx-skin) .modal.ox-actform-docked form { align-content: start; grid-auto-rows: min-content; row-gap: 16px; }
:is(.odx-dossier, #odx-skin) .modal.ox-actform-docked .operation-form-field { align-self: start; min-height: 0; }
:is(.odx-dossier, #odx-skin) .modal.ox-actform-docked .modal-actions {
  position: sticky; bottom: -1px; z-index: 2; display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; padding: 12px 0 4px;
  background: var(--ox-surface); border-top: 1px solid var(--ox-line);
}
/* RC3: the head and the sticky footer bleed exactly to the panel's own padding (they used the generic modal's 20–25 px
   and overflowed the panel: « Créer » was cut by 3–9 px and the panel scrolled sideways) */
:is(.odx-dossier, #odx-skin) .modal.ox-actform-docked { --ox-actform-pad: 21.6px; padding-left: var(--ox-actform-pad); padding-right: var(--ox-actform-pad); overflow-x: hidden; }
:is(.odx-dossier, #odx-skin) .modal.ox-actform-docked > .modal-head { margin-left: calc(-1 * var(--ox-actform-pad, 21.6px)); margin-right: calc(-1 * var(--ox-actform-pad, 21.6px)); width: auto; }
:is(.odx-dossier, #odx-skin) .modal.ox-actform-docked .modal-actions { margin-left: calc(-1 * var(--ox-actform-pad, 21.6px)); margin-right: calc(-1 * var(--ox-actform-pad, 21.6px)); padding-left: var(--ox-actform-pad, 21.6px); padding-right: var(--ox-actform-pad, 21.6px); width: auto; }
:is(.odx-dossier, #odx-skin) .modal.ox-actform-docked .modal-actions .primary-button { background: var(--ox-black); color: var(--ox-on-dark); border-color: var(--ox-black); min-width: 120px; }
:is(.odx-dossier, #odx-skin) .modal.ox-actform-docked .modal-actions .primary-button:disabled { background: var(--ox-sunken); color: var(--ox-disabled); border-color: transparent; opacity: 1; }
/* with a tooth selected, the panel head carries the action: the older card head/foot buttons step aside */
.odx-dossier-route .odx-dossier .odx-o-analysis:has(.ox-toothhead:not(.is-empty)) :is(.odx-o-analysis__add, .odx-o-analysis__foot) { display: none; }
.odx-dossier-route .odx-dossier .odx-o-analysis { overflow-y: auto; scrollbar-width: thin; }
/* the selected-tooth head sits inside the Analyse card with the card's own inner spacing */
.odx-dossier-route .odx-dossier .odx-o-analysis > .ox-toothhead { margin: max(16px, calc(26 * var(--odx-u))) max(16px, calc(26 * var(--odx-u))) 0; padding-bottom: max(14px, calc(20 * var(--odx-u))); }
@media (max-width: 767px) {
  :is(.odx-dossier, #odx-skin) .modal-backdrop > .modal.ox-actform-docked { box-sizing: border-box; left: 0; right: 0; width: auto; max-width: 100vw; margin: 0; transform: none; padding-left: 16px; padding-right: 16px; --ox-actform-pad: 16px; }
  :is(.odx-dossier, #odx-skin) .modal.ox-actform-docked * { box-sizing: border-box; }
  :is(.odx-dossier, #odx-skin) .modal.ox-actform-docked form { grid-template-columns: minmax(0, 1fr); }
  :is(.odx-dossier, #odx-skin) .modal.ox-actform-docked .operation-form-field { min-width: 0; max-width: 100%; }
}
@media (max-width: 1023px) {
  .odx-dossier-route .odx-s-window { overflow-x: clip; max-width: 100%; }
  .odx-dossier-route .odx-dossier .odx-s-topbar { max-width: 100%; min-width: 0; }
  .odx-dossier-route .odx-dossier .odx-s-nav { min-width: 0; max-width: 100%; }
  .odx-dossier-route .odx-dossier.odx-s-canvas { max-width: 100vw; overflow-x: clip; }
}
.ox-toothhead__consult { grid-column: 1 / -1; width: 100%; justify-content: center; }
.consult-handed-tooth { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: linear-gradient(90deg, #e0fac3, #c5fcc4 50%, #aaffc6); color: #0d0d0d; font: 500 14px/20px var(--ox-font, "Outfit"); }
/* Redesign · other sections (green direction, 22 Nov 2026): list pages, patients, dossier money summary, crumb link. */
/* ---------------------------------------------------------------- list pages: no grey frame, one title */
:is(.odx-dossier, #odx-skin) .platform-workspace .odx-a-main .workspace.global-list-workspace { background: transparent; box-shadow: none; padding-left: 0; padding-right: 0; }
/* the shell band already names the page: a legacy page header keeps its description and actions, not a second H1 */
:is(.odx-dossier, #odx-skin) .platform-workspace .odx-a-main .page-header h1 { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:is(.odx-dossier, #odx-skin) .platform-workspace .odx-a-main .page-header p { margin: 0; font: 400 15px/22px var(--ox-font); color: var(--ox-ink-2); }
/* ---------------------------------------------------------------- patients: find by name or fiche, open in one click */
:is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace tbody tr { cursor: pointer; transition: background-color var(--ox-dur-1) var(--ox-ease); }
:is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace tbody tr:hover,
:is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace tbody tr.patient-directory-row-active { background: var(--ox-ice); }
:is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace tbody td:first-child { font-variant-numeric: tabular-nums; font-weight: 500; }
:is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace tbody td:first-child::before { content: "Fiche "; font-weight: 400; color: var(--ox-ink-2); }
:is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace tbody td:nth-child(2),
:is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace tbody td:nth-child(3) { font-weight: 500; }
:is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace .patients-filter-row input[type="search"],
:is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace .patients-filter-row input:not([type]) ,
:is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace .patients-filter-row input[type="text"] { min-height: 46px; border-radius: 999px; padding-left: 18px; font-size: 16px; }
@media (max-width: 767px) {
  /* stacked rows: fiche + name on the first line, phone and actions below; the row still opens the dossier */
  :is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  :is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace table, :is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace tbody { display: block; width: 100%; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace :is(.dentalome-table-wrap, .table-wrap, .table-scroll) { overflow: visible; max-height: none; height: auto; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "fiche first" "fiche last" "fiche phone" "actions actions"; gap: 0 12px; height: auto; padding: 12px 8px; border-bottom: 1px solid var(--ox-line); }
  :is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace tbody td { display: block; height: auto; padding: 0; border: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace table tbody tr { box-sizing: border-box; width: 100%; max-width: 100%; background: transparent; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace table tbody tr > td { padding: 0 !important; background: transparent !important; height: auto !important; min-height: 0 !important; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace table tbody tr > td:nth-child(2),
  :is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace table tbody tr > td:nth-child(3) { white-space: normal; font-weight: 500; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace table tbody tr > td:first-child { padding: 6px 10px !important; background: var(--ox-sunken) !important; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace tbody td:first-child { grid-area: fiche; align-self: center; padding: 6px 10px; border-radius: 12px; background: var(--ox-sunken); font-size: 14px; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace tbody td:first-child::before { content: none; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace tbody td:nth-child(2) { grid-area: first; font-size: 15px; line-height: 20px; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace tbody td:nth-child(3) { grid-area: last; font-size: 15px; line-height: 20px; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace tbody td:nth-child(4) { grid-area: phone; color: var(--ox-ink-2); font-size: 14px; line-height: 20px; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .patients-workspace tbody td:last-child { grid-area: actions; margin-top: 8px; overflow: visible; }
}
/* ---------------------------------------------------------------- dossier: crumb link back to the same patients list */
.odx-dossier .odx-s-crumb__link { color: inherit; text-decoration: none; border-radius: 6px; }
.odx-dossier .odx-s-crumb__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.odx-dossier .odx-s-crumb__link:focus-visible { outline: 2px solid var(--ox-focus); outline-offset: 2px; }
/* ---------------------------------------------------------------- dossier money sections: what is due, first */
.odx-dossier .odx-s-due {
  display: grid; grid-template-columns: repeat(3, minmax(0, auto)) 1fr auto; align-items: center; gap: 6px 36px;
  margin: calc(18 * var(--odx-u)) 0 0; padding: 18px 24px; border-radius: 22px; background: rgb(255 255 255 / .82);
  box-shadow: 0 0 0 1px var(--ox-line), 0 10px 26px -18px rgb(20 40 20 / .25);
}
.odx-dossier .odx-s-due__fig { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.odx-dossier .odx-s-due__fig span { font: 400 13px/16px var(--ox-font); color: var(--ox-ink-2); }
.odx-dossier .odx-s-due__fig strong { font: 500 22px/28px var(--ox-font); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--ox-ink); white-space: nowrap; }
.odx-dossier .odx-s-due__fig.is-due strong { color: #8a2a20; }
.odx-dossier .odx-s-due__fig.is-due.is-clear strong { color: #17603f; }
.odx-dossier .odx-s-due__bar { height: 6px; border-radius: 6px; background: rgb(13 13 13 / .07); overflow: hidden; align-self: center; min-width: 80px; }
.odx-dossier .odx-s-due__bar i { display: block; height: 100%; border-radius: inherit; background: var(--ox-mint); box-shadow: inset 0 0 0 1px rgb(12 143 96 / .25); }
@media (max-width: 767px) {
  .odx-dossier .odx-s-due { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding: 14px; margin-top: 12px; }
  .odx-dossier .odx-s-due__fig strong { font-size: 18px; line-height: 24px; }
  .odx-dossier .odx-s-due__bar { grid-column: 1 / -1; }
  .odx-dossier .odx-s-due__go { grid-column: 1 / -1; width: 100%; }
}
/* ---------------------------------------------------------------- laboratory order: where it stands */
.odl-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 14px 0 10px; padding: 0; list-style: none; counter-reset: odl; }
.odl-track li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font: 400 13px/16px var(--ox-font, "Outfit"); color: rgb(13 13 13 / .55); }
.odl-track li span { width: 100%; height: 6px; border-radius: 6px; background: rgb(13 13 13 / .08); }
.odl-track li.is-done { color: #17603f; }
.odl-track li.is-done span { background: #9fdcb0; }
.odl-track li.is-current { color: #0d0d0d; font-weight: 500; }
.odl-track li.is-current span { background: linear-gradient(90deg, #e0fac3, #aaffc6); box-shadow: inset 0 0 0 1px rgb(12 143 96 / .35); }
.odl-track-note { margin: 12px 0; font: 500 13px/18px var(--ox-font, "Outfit"); color: #8a2a20; }
.odl-count { font-style: normal; font-weight: 400; color: rgb(13 13 13 / .55); }
@media (max-width: 480px) { .odl-track { grid-template-columns: repeat(5, minmax(0, 1fr)); } .odl-track li { font-size: 11px; } }
/* ---------------------------------------------------------------- Prothèse list: follow-up from the recorded dates */
.prothese-followup { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 500 12px/16px var(--ox-font, "Outfit"); white-space: nowrap; background: #eceeec; color: #4a504b; }
.prothese-followup::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.prothese-followup.is-sent { background: #e1f9c3; color: #2f4a1f; }
.prothese-followup.is-back { background: #d4f5dc; color: #17603f; }
.prothese-followup.is-placed { background: #211f1f; color: #fefbfc; }
/* ---------------------------------------------------------------- Paiements (global list): read the money first */
:is(.odx-dossier, #odx-skin) .platform-workspace .payments-workspace table td:nth-child(2) { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
:is(.odx-dossier, #odx-skin) .platform-workspace .payments-workspace table td:nth-child(6) a.link-button { color: #0d0d0d; font-weight: 500; text-decoration: none; }
:is(.odx-dossier, #odx-skin) .platform-workspace .payments-workspace table td:nth-child(6) a.link-button:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  /* stacked: patient + amount, then date · act · type, then actions — no sideways scrolling */
  :is(.odx-dossier, #odx-skin) .platform-workspace .payments-workspace :is(.dentalome-table-wrap, .table-wrap, .table-scroll) { overflow: visible; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .payments-workspace table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  :is(.odx-dossier, #odx-skin) .platform-workspace .payments-workspace table, :is(.odx-dossier, #odx-skin) .platform-workspace .payments-workspace table tbody { display: block; width: 100%; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .payments-workspace table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "patient amount" "date type" "act act" "doc doc" "actions actions"; gap: 2px 12px; padding: 12px 6px; border-bottom: 1px solid rgb(13 13 13 / .08); background: transparent; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .payments-workspace table tbody tr > td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .payments-workspace table tbody tr > td:nth-child(1) { grid-area: date; color: rgb(13 13 13 / .6); }
  :is(.odx-dossier, #odx-skin) .platform-workspace .payments-workspace table tbody tr > td:nth-child(2) { grid-area: amount; justify-self: end; font-size: 16px; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .payments-workspace table tbody tr > td:nth-child(3) { grid-area: act; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .payments-workspace table tbody tr > td:nth-child(4) { grid-area: doc; color: rgb(13 13 13 / .6); }
  :is(.odx-dossier, #odx-skin) .platform-workspace .payments-workspace table tbody tr > td:nth-child(5) { grid-area: type; justify-self: end; color: rgb(13 13 13 / .6); }
  :is(.odx-dossier, #odx-skin) .platform-workspace .payments-workspace table tbody tr > td:nth-child(6) { grid-area: patient; font-size: 15px; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .payments-workspace table tbody tr > td:nth-child(7) { display: none; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .payments-workspace table tbody tr > td:nth-child(8) { grid-area: actions; margin-top: 6px; overflow: visible; }
}
/* ---------------------------------------------------------------- Ventes: one title (the band names the page) */
:is(.odx-dossier, #odx-skin) .platform-workspace .retail-workspace > header h1,
:is(.odx-dossier, #odx-skin) .platform-workspace .retail-workspace > h1,
:is(.odx-dossier, #odx-skin) .platform-workspace .retail-workspace .retail-heading h1 { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 767px) {
  :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace .page-header { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace .page-header-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace :is(.dentalome-table-wrap, .table-wrap, .table-scroll) { overflow: visible; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace table, :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace table tbody { display: block; width: 100%; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "patient total" "suivi suivi" "type ref" "actions actions"; gap: 4px 12px; padding: 12px 6px; border-bottom: 1px solid rgb(13 13 13 / .08); background: transparent; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace table tbody tr > td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace table tbody tr > td:nth-child(1) { grid-area: patient; font-size: 15px; font-weight: 500; white-space: normal; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace table tbody tr > td:nth-child(2) { grid-area: type; color: rgb(13 13 13 / .66); }
  :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace table tbody tr > td:nth-child(3),
  :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace table tbody tr > td:nth-child(6),
  :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace table tbody tr > td:nth-child(7),
  :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace table tbody tr > td:nth-child(8),
  :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace table tbody tr > td:nth-child(9) { display: none; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace table tbody tr > td:nth-child(4) { grid-area: ref; justify-self: end; color: rgb(13 13 13 / .66); }
  :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace table tbody tr > td:nth-child(5) { grid-area: suivi; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace table tbody tr > td:nth-child(10) { grid-area: total; justify-self: end; font-weight: 500; font-variant-numeric: tabular-nums; }
  :is(.odx-dossier, #odx-skin) .platform-workspace .prothese-workspace table tbody tr > td:nth-child(11) { grid-area: actions; margin-top: 6px; overflow: visible; }
}
/* Round 2 (green switch candidate, 25 Nov 2026) — scoped layout fixes for production pages shown under the green skin:
   the Gestion agenda (default agenda view while VITE_ODX_LOCAL_SERVER_FEATURES is off), Mutuelles and message templates.
   CSS only, scoped to the green shell (.platform-workspace); no markup, permission, route or print path is touched.
   Imported last by redesign/index.css. Measured by readiness/tools/round2-geometry.mjs at 390, 820 and 1440 px. */
/* ---- Gestion agenda, phone: the production toolbar positions its controls absolutely for the slimmer production shell;
   under the green skin (larger buttons, wider gutters) « Mois » and « Filtres » were clipped and overlapped.
   Same controls, same order of use, laid out as one wrapping row: ‹ range › / Ajouter · Auj. · Filtres / Jour Sem. Mois. */
@media (max-width: 767px) {
  .platform-workspace .agenda-workspace .agenda-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; height: auto; flex: 0 0 auto; min-height: 0; margin-bottom: 10px; }
  .platform-workspace .agenda-workspace .agenda-toolbar > .agenda-range { position: static; order: 1; flex: 1 1 calc(100% - 104px); min-width: 0; height: 36px; justify-content: center; overflow: hidden; }
  .platform-workspace .agenda-workspace .agenda-toolbar > .agenda-range .agenda-range-mobile { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .platform-workspace .agenda-workspace .agenda-toolbar .agenda-arrows,
  .platform-workspace .agenda-workspace .agenda-toolbar .agenda-navigation-buttons { display: contents; }
  .platform-workspace .agenda-workspace .agenda-toolbar .agenda-arrows > *,
  .platform-workspace .agenda-workspace .agenda-toolbar .agenda-navigation-buttons > * { position: static; inset: auto; margin: 0; transform: none; }
  .platform-workspace .agenda-workspace .agenda-toolbar .agenda-navigation-buttons > :first-child { order: 0; }
  .platform-workspace .agenda-workspace .agenda-toolbar .agenda-navigation-buttons > :last-child { order: 2; }
  .platform-workspace .agenda-workspace .agenda-toolbar .agenda-arrows > .agenda-mobile-add { order: 3; }
  .platform-workspace .agenda-workspace .agenda-toolbar .agenda-arrows > .muted-button { order: 4; }
  .platform-workspace .agenda-workspace .agenda-toolbar .agenda-arrows > .agenda-filter-shell { order: 5; margin-left: auto; }
  .platform-workspace .agenda-workspace .agenda-toolbar .segmented { order: 6; flex: 1 1 100%; width: auto; height: auto; overflow: visible; }
  .platform-workspace .agenda-workspace .agenda-toolbar .segmented button { flex: 1 1 0; min-width: 0; }
  /* seven day columns of 33 px made the day labels run into each other: the week grid keeps readable columns and
     scrolls sideways inside its own (already scrolling) viewport */
  .platform-workspace .agenda-workspace .calendar-scroll-viewport > .week-grid { min-width: 600px; }
}
/* tablet / desktop: the page description no longer runs under the agenda card */
.platform-workspace .agenda-workspace .agenda-page-head { height: auto; min-height: 58px; }
/* ---- Mutuelles: the two-column grid used min widths larger than the green content column, so the providers table and
   its « Site officiel » links ran under the provider form. Columns may shrink; the table scrolls inside its panel. */
.platform-workspace .mutuelle-admin-workspace .mutuelle-admin-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); }
@media (max-width: 1200px) { .platform-workspace .mutuelle-admin-workspace .mutuelle-admin-grid { grid-template-columns: minmax(0, 1fr); } }
.platform-workspace .mutuelle-admin-workspace :is(.mutuelle-admin-grid > *, .mutuelle-admin-panel) { min-width: 0; max-width: 100%; }
.platform-workspace .mutuelle-admin-workspace .mutuelle-admin-panel .dentalome-table-wrap { max-width: 100%; overflow: auto; }
.platform-workspace .mutuelle-admin-workspace .mutuelle-sheet-file-row { flex-wrap: wrap; min-width: 0; }
/* ---- Message templates: the list rows were max-content wide, so every « Supprimer le template » button sat outside the
   list pane (clipped, unreachable) and the rows ran under the editor. Rows now fit the pane; titles keep their ellipsis. */
.platform-workspace .message-templates-workspace .template-list-table { display: block; width: 100%; }
.platform-workspace .message-templates-workspace .template-list-stack { width: 100%; min-width: 0; }
.platform-workspace .message-templates-workspace .template-list-row { min-width: 0; }
.platform-workspace .message-templates-workspace .template-list-row > button:first-child { min-width: 0; }
.platform-workspace .message-templates-workspace .template-list-preview { max-width: 100%; }
.platform-workspace .message-templates-workspace .template-delete-button { flex: 0 0 auto; }
.platform-workspace .message-templates-workspace .template-detail-toolbar { height: auto; min-height: 36px; flex-wrap: wrap; gap: 10px; }
/* Mutuelles: the page description no longer squeezes into a narrow column next to the import buttons, and the providers
   table keeps readable columns (it already scrolls inside its panel) instead of 170 px-tall rows */
.platform-workspace .mutuelle-admin-workspace > .page-header { flex-wrap: wrap; row-gap: 12px; }
.platform-workspace .mutuelle-admin-workspace > .page-header > div:first-child { flex: 1 1 320px; min-width: 0; }
.platform-workspace .mutuelle-admin-workspace > .page-header .page-header-actions { flex-wrap: wrap; }
.platform-workspace .mutuelle-admin-workspace .mutuelle-admin-panel .dentalome-table-wrap > table { min-width: 980px; }
/* ---- Round 3 · touch: on devices without hover the appointment card shortcuts (note, annuler) are shown and tappable
   instead of appearing only on hover/focus. Desktop (hover: hover) keeps the production behaviour. Compact cards
   (≤ 30 min) have no shortcuts in production markup: a tap opens the appointment, whose dialog keeps every action. */
@media (hover: none) {
  .platform-workspace .agenda-workspace .appointment-block:not(.suppress-tools-after-resize) .appointment-tools { opacity: 1; pointer-events: auto; }
  .platform-workspace .agenda-workspace .month-chip .month-chip-tools { opacity: 1; }
  .platform-workspace .agenda-workspace .month-chip:has(.month-chip-tools button) .month-chip-row { padding-right: 54px; }
  .platform-workspace .agenda-workspace .appointment-block:has(.appointment-tools button) .appointment-block-copy { padding-bottom: 26px; }
}
/* ---- Round 3 · dossier on tablets: the dossier canvas is drawn in 2000 reference units with a 0.64 px floor, i.e. at
   least 1 280 px wide — on 768–1279 px screens its right part (global search, account, top actions, « Planifier »)
   was cut off. ≤ 1023 px now uses the one-column composition (redesign/dossier.css, overview.css, green-platform.css);
   1024–1279 px scales the canvas to the screen width. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .odx-dossier-route .odx-dossier.odx-s-canvas { --odx-u: calc(var(--odx-page-px, 100vw) / 2000); }
}
/* ---- Round 3 · dossier « vue clinique » on phone / tablet portrait: the card keeps a usable chart height (it was sized
   only from its width, 174 px tall at 390 px, so the quick-selection buttons fell under the legend) and the state key
   wraps instead of being centred past both edges. */
@media (max-width: 1023px) {
  .odx-dossier-route .odx-dossier .odx-c-stagecard { aspect-ratio: auto; max-height: none; }
  .odx-dossier-route .odx-dossier .odx-c-stagecard > .odx-o-stage { min-height: clamp(320px, 92vw, 560px); }
  .odx-dossier-route .odx-dossier .odx-c-stagecard .odx-o-stage .odx-o-layer:not(.odx-o-layer--scan):not(.odx-o-layer--ortho):not(.odx-o-layer--2d) { top: 46px; }
  .odx-dossier-route .odx-dossier .odx-c-legend { flex-wrap: wrap; justify-content: flex-start; padding: 8px 12px; row-gap: 6px; }
  .odx-dossier-route .odx-dossier .odx-c-legend .odx-al__key { flex-wrap: wrap; justify-content: flex-start; width: 100%; }
  .odx-dossier-route .odx-dossier .odx-o-stage .odx-o-rail { top: 52px; }
}
/* dossier sub-section pills (Documents, Imagerie…): scroll sideways on narrow screens instead of cutting the last pill */
@media (max-width: 767px) {
  .odx-dossier-route .odx-dossier .odx-s-subpills { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
}
/* Paiements (global), phone: the « Télécharger » button sat past the clipped filter row — the row wraps */
@media (max-width: 767px) {
  .platform-workspace .payments-workspace .payments-filter-row { flex-wrap: wrap; row-gap: 8px; }
  .platform-workspace .payments-workspace .payments-filter-row .filter-row-actions { flex-wrap: wrap; max-width: 100%; }
}
/* ---- Round 3 · owner decision (26 Nov): on phones the Gestion week keeps readable day columns that swipe sideways.
   Touch-friendly: snap per day column, the hour rail and its corner stay pinned on the left, and a soft edge + chevron
   shows that more days follow. The day view keeps fitting the screen (no min-width there). */
.agenda-time-rail { display: contents; }
@media (max-width: 767px) {
  .platform-workspace .agenda-workspace .calendar-scroll-viewport:has(> .week-grid) { scroll-snap-type: x proximity; scroll-padding-left: 48px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .platform-workspace .agenda-workspace .calendar-scroll-viewport > .week-grid > .day-head { scroll-snap-align: start; }
  .platform-workspace .agenda-workspace .calendar-scroll-viewport > .week-grid > .agenda-time-rail { display: block; position: sticky; left: 0; z-index: 7; grid-column: 1; grid-row: 1 / -1; width: 48px; height: 100%; background: #fff; pointer-events: none; }
  /* explicit placement: the rail spans the hour column, so the corner and the day heads are pinned to row 1 (otherwise grid
     auto-placement pushed the corner into a day column and the day heads out of the header row) */
  .platform-workspace .agenda-workspace .calendar-scroll-viewport > .week-grid > .time-head { grid-column: 1; grid-row: 1; left: 0; z-index: 8; background: #fff; }
  .platform-workspace .agenda-workspace .calendar-scroll-viewport > .week-grid > .day-head { grid-row: 1; }
  .platform-workspace .agenda-workspace .agenda-calendar-surface:has(.week-grid) { position: relative; }
  .platform-workspace .agenda-workspace .agenda-calendar-surface:has(.week-grid)::before {
    content: "›"; position: absolute; top: 6px; right: 0; left: auto; bottom: auto; width: 28px; height: 34px; display: grid; place-items: center; pointer-events: none; z-index: 9;
    font: 600 20px/1 Outfit, system-ui, sans-serif; color: #2d4a3e; background: linear-gradient(to right, rgb(255 255 255 / 0), #fff 60%);
  }
}
/* ---- Round 3 · green Calendar (sub-flag VITE_ODX_GREEN_CALENDAR) on tablets: the navigation row (‹ Aujourd'hui › and the
   date field) ran past the right edge at 768–1023 px and hid « Semaine suivante »; it wraps. The week grid keeps its
   readable 118 px day columns and swipes sideways (owner decision of 26 Nov), snapping per day. */
@media (min-width: 768px) and (max-width: 1023px) {
  .platform-workspace .occ-nav { flex-wrap: wrap; row-gap: 8px; }
  .platform-workspace .occ-date input { min-width: 0; }
}
@media (max-width: 1023px) {
  .platform-workspace .occ--semaine .occ-gridwrap { scroll-snap-type: x proximity; scroll-padding-left: 58px; overscroll-behavior-x: contain; }
  .platform-workspace .occ--semaine .occ-cols > * { scroll-snap-align: start; }
}
