@import "https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap";:root{color:#e8f0eb;font-synthesis:none;background:#080d0c;font-family:Manrope,sans-serif}*{box-sizing:border-box}body{color:#e8f0eb;background:radial-gradient(circle at 72% -10%,#1b302a 0,#0000 32%),#080d0c;min-width:320px;margin:0;font-size:13px}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{grid-template-columns:252px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:#0a100f;border-right:1px solid #202b28;flex-direction:column;padding:25px 15px 15px;display:flex}.brand{color:#edf4ef;text-align:left;background:0 0;border:0;align-items:center;gap:9px;padding:0 10px;display:flex}.brand-symbol{color:#c6f2dc;font-size:25px}.brand strong{letter-spacing:-.07em;font-size:22px;line-height:.85;display:block}.brand small,.tenant-switcher small,.profile small{letter-spacing:.07em;text-transform:uppercase;color:#83a095;margin-top:3px;font-size:9px;display:block}.tenant-switcher{color:#e6f0e9;text-align:left;background:#111b19;border:1px solid #263531;border-radius:9px;align-items:center;gap:9px;margin:31px 4px 21px;padding:9px;display:flex}.tenant-switcher.is-static{cursor:default}.tenant-switcher i{color:#9caea6;margin-left:auto;font-size:16px;font-style:normal}.tenant-initials{color:#15201d;background:#ecf1ed;border-radius:7px;place-items:center;width:29px;height:29px;font:700 9px DM Mono,monospace;display:grid}.main-nav{padding:0 4px}.nav-group p{letter-spacing:.12em;color:#61736b;margin:19px 8px 7px;font:500 9px DM Mono,monospace}.nav-item{color:#9daca5;text-align:left;background:0 0;border:0;border-radius:7px;align-items:center;gap:11px;width:100%;height:37px;padding:0 9px;font-size:12px;font-weight:700;display:flex}.nav-item>span{text-align:center;color:#83a79a;width:16px;font-size:16px}.nav-item:hover,.nav-item.active{color:#f1f6f2;background:#192724}.nav-item.active>span{color:#73dcaf}.nav-item em{color:#fff;background:#e67c61;border-radius:10px;margin-left:auto;padding:2px 5px;font:500 9px DM Mono,monospace}.sidebar-bottom{margin-top:auto}.help{color:#b6c9c0;text-align:left;background:0 0;border:0;border-bottom:1px solid #23332d;align-items:center;gap:8px;width:100%;padding:10px 7px;display:flex}.help>span{border:1px solid #708b80;border-radius:50%;place-items:center;width:23px;height:23px;font-family:DM Mono,monospace;display:grid}.help b,.profile b{font-size:10px}.help small{color:#769187;margin-top:2px;font-size:9px;display:block}.profile{color:#e6eee9;text-align:left;background:0 0;border:0;align-items:center;gap:8px;width:100%;padding:13px 7px 0;display:flex}.profile i{color:#859a90;margin-left:auto;font-style:normal}.avatar{border-radius:50%;flex:none;place-items:center;width:30px;height:30px;font:700 9px DM Mono,monospace;display:inline-grid}.avatar.mint{color:#a9eccb;background:#1c493b}.avatar.sky{color:#b6e4f1;background:#203f48}.avatar.coral{color:#ffd8c9;background:#4b2e28}.avatar.amber{color:#ffe59c;background:#4d4122}.topbar{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);z-index:5;background:#080d0cd1;border-bottom:1px solid #26322f;justify-content:space-between;align-items:center;height:72px;padding:0 38px;display:flex;position:sticky;top:0}.crumb{color:#84958d;font-size:12px}.crumb i{color:#52645d;margin:0 7px;font-style:normal}.crumb b{color:#e8f0eb}.top-actions{align-items:center;gap:13px;display:flex}.global-search{text-align:left;color:#7e8f87;background:#101817;border:1px solid #293633;border-radius:7px;width:290px;height:35px;padding:0 10px;font-size:10px;font-weight:600}.global-search>span{vertical-align:-2px;color:#9eb3aa;margin-right:5px;font-size:18px}.global-search kbd{float:right;color:#8fa198;background:#1c2825;border-radius:3px;padding:2px 4px;font:9px DM Mono,monospace}.bell{color:#a2b6ac;background:0 0;border:0;font-size:19px;position:relative}.bell i{background:#ef765e;border-radius:50%;width:6px;height:6px;position:absolute;top:2px;right:1px}.page{max-width:1560px;margin:auto;padding:31px 38px 48px}.page-heading{justify-content:space-between;align-items:flex-end;display:flex}.eyebrow{letter-spacing:.12em;color:#83cbb1;margin:0 0 7px;font:500 9px DM Mono,monospace}.page h1,.page h2{letter-spacing:-.06em;color:#edf5ef;margin:0}.page h1{font-size:31px;line-height:1.05}.page h2{font-size:22px;line-height:1.1}.heading-actions{gap:8px;display:flex}.button{border:1px solid #0000;border-radius:7px;height:37px;padding:0 13px;font-size:10px;font-weight:800}.button.primary{color:#11221d;background:#ecf1ed}.button.primary:hover{background:#cfe3d9}.button.secondary{color:#c4d0ca;background:#121c1a;border-color:#2b3834}.button.full{width:100%}.metric-grid{grid-template-columns:1.05fr 1fr 1fr;gap:10px;margin:25px 0 17px;display:grid}.metric{background:linear-gradient(135deg,#121d1b,#0e1615);border:1px solid #283632;border-radius:9px;align-items:center;gap:12px;min-height:90px;padding:16px;display:flex}.metric-icon{border-radius:8px;place-items:center;width:33px;height:33px;font-size:18px;display:grid}.metric.good .metric-icon{color:#75d7aa;background:#153d34}.metric.blue .metric-icon{color:#7bbed0;background:#162e32}.metric.alert .metric-icon{color:#f4a88f;background:#3d2921}.metric small{letter-spacing:.1em;color:#90a39a;font:500 9px DM Mono,monospace;display:block}.metric strong{letter-spacing:-.06em;margin-top:3px;font-size:22px;display:block}.metric strong i{color:#8ea198;font-size:11px;font-style:normal}.metric p{color:#71837a;margin:4px 0 0;font-size:10px}.metric-arrow{color:#84c9ad;margin-left:auto}.agenda-panel,.content-panel{background:#0f1716;border:1px solid #2a3834;border-radius:10px;overflow:hidden}.agenda-toolbar{border-bottom:1px solid #273531;justify-content:space-between;align-items:center;height:61px;padding:0 16px;display:flex}.date-tools,.agenda-filters{align-items:center;gap:5px;display:flex}.date-tools button,.agenda-filters>button{color:#aab9b2;background:0 0;border:1px solid #0000;border-radius:5px;height:28px;padding:0 8px;font-size:10px;font-weight:700}.date-tools button:first-child,.date-tools button:nth-child(3){width:25px;padding:0;font-size:16px}.date-tools .today{color:#e1ece6;background:#182522;border-color:#30413b}.date-tools b{margin-left:6px;font-size:14px}.date-tools b small{color:#83958b;font-weight:500}.agenda-filters>button.selected{color:#8de1bb;background:#1a3930}.agenda-filters>button:last-child{background:#151f1d;border-color:#304039}.avatar-stack{margin-right:6px;display:flex}.avatar-stack .avatar{border:2px solid #0f1716;width:25px;height:25px;margin-left:-5px;font-size:8px}.avatar-stack .avatar:first-child{margin-left:0}.avatar-stack button{color:#a3b5ad;background:#172421;border:1px solid #33443d;border-radius:50%;width:24px;height:24px;margin-left:-5px;font:500 8px DM Mono,monospace}.calendar-scroll{overflow:auto}.calendar-header,.calendar{grid-template-columns:69px repeat(3,minmax(215px,1fr));min-width:760px;display:grid}.calendar-header{border-bottom:1px solid #273531;height:59px}.timezone{color:#71837b;border-right:1px solid #293733;padding:13px 10px;font:9px DM Mono,monospace}.provider-head{border-right:1px solid #293733;align-items:center;gap:8px;padding:10px 13px;display:flex}.provider-head b{font-size:10px;display:block}.provider-head small{color:#799087;margin-top:2px;font-size:9px;display:block}.provider-head em{color:#94a59e;background:#1a2824;border-radius:4px;margin-left:auto;padding:3px 5px;font:9px DM Mono,monospace}.calendar{height:720px}.hours{color:#71837b;border-right:1px solid #293733;font:9px DM Mono,monospace;position:relative}.hours span{position:absolute;right:11px;transform:translateY(-6px)}.hours span:first-child{top:0}.hours span:nth-child(2){top:72px}.hours span:nth-child(3){top:144px}.hours span:nth-child(4){top:216px}.hours span:nth-child(5){top:288px}.hours span:nth-child(6){top:360px}.hours span:nth-child(7){top:432px}.hours span:nth-child(8){top:504px}.hours span:nth-child(9){top:576px}.hours span:nth-child(10){top:648px}.calendar-column{background:repeating-linear-gradient(#0000 0 71px,#1d2926 72px);border-right:1px solid #293733;position:relative}.slot{z-index:0;background:0 0;border:0;width:100%;height:72px;display:block;position:relative}.slot:hover{background:#5ecca012}.appointment{z-index:1;text-align:left;border:0;border-left:3px solid;border-radius:7px;padding:7px 8px;transition:transform .15s,filter .15s;position:absolute;left:8px;right:8px;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff09}.appointment:hover{filter:brightness(1.1);transform:translateY(-1px)}.appointment>span{opacity:.75;margin-bottom:3px;font:9px DM Mono,monospace;display:block}.appointment b{font-size:10px;display:block}.appointment small{opacity:.75;margin-top:2px;font-size:9px;display:block}.appointment i{text-transform:uppercase;letter-spacing:.05em;margin-top:3px;font-size:8px;font-style:normal;font-weight:800;display:block}.appointment.mint{color:#d6f4e3;background:#17382f;border-color:#57bd8d}.appointment.sky{color:#d5f1f7;background:#193239;border-color:#58afc2}.appointment.amber{color:#ffecc2;background:#3b3320;border-color:#d9b547}.appointment.coral{color:#ffdbcf;background:#3b2823;border-color:#f17d60}.appointment.neutral{color:#d5e1db;background:#25312e;border-color:#6e8179}.panel-tools{border-bottom:1px solid #273531;justify-content:space-between;align-items:center;padding:20px;display:flex}.field-search{color:#93aa9e;background:#0c1311;border:1px solid #2a3934;border-radius:7px;align-items:center;gap:8px;width:min(440px,68vw);height:39px;padding:0 11px;display:flex}.field-search span{font-size:18px}.field-search input{color:#e8f0eb;background:0 0;border:0;outline:0;width:100%;font-size:11px}.patient-table{padding:4px 16px 13px}.table-head,.patient-row{grid-template-columns:1.6fr 1.15fr 1fr 1.1fr 22px;align-items:center;gap:10px;display:grid}.table-head{color:#71837b;letter-spacing:.08em;height:41px;padding:0 8px;font:500 9px DM Mono,monospace}.patient-row{text-align:left;color:#aebdb6;background:0 0;border:0;border-top:1px solid #202e2a;width:100%;min-height:63px;padding:9px 8px}.patient-row:hover{background:#14201d}.patient-name{color:#edf5ef;align-items:center;gap:10px;display:flex}.patient-name small{color:#81948b;margin-top:3px;font-size:9px;font-weight:500;display:block}.tag{color:#a7bdb1;background:#1b2924;border-radius:4px;padding:4px 6px;font-size:9px;font-style:normal;display:inline-block}.tag.active{color:#bdf4d3;background:#173c2e}.row-arrow{color:#83cbb1;font-size:15px}.record-layout{grid-template-columns:250px 1fr;gap:13px;display:grid}.patient-card,.record-main,.templates-panel,.document-preview,.finance-hero,.coming-soon{background:#0f1716;border:1px solid #2a3834;border-radius:10px}.patient-card{padding:19px}.patient-card-top{justify-content:space-between;align-items:center;display:flex}.patient-card h2{margin-top:17px;font-size:21px}.patient-card>p{color:#80938a;font-size:10px}.patient-contact{color:#b7c5be;border-top:1px solid #263530;border-bottom:1px solid #263530;margin:16px 0;padding:13px 0;font-size:10px;line-height:1.7}.record-menu{margin:20px -9px 0}.record-menu>b{color:#6e8278;letter-spacing:.1em;padding:0 9px;font:500 9px DM Mono,monospace}.record-menu button{text-align:left;color:#9bb0a7;background:0 0;border:0;border-radius:5px;width:100%;height:32px;padding:0 9px;font-size:10px;font-weight:700;display:block}.record-menu button.active{color:#d4f0df;background:#1a302a}.record-menu em{float:right;font:9px DM Mono,monospace}.record-main{min-height:560px;padding:24px}.record-action{border-bottom:1px solid #283631;justify-content:space-between;align-items:center;padding-bottom:19px;display:flex}.record-action>div:last-child{gap:7px;display:flex}.encounter-card{border-bottom:1px solid #283631;grid-template-columns:66px 1fr;gap:14px;padding:19px 0;display:grid}.encounter-date{text-align:center;color:#92a69d;border-right:1px solid #2a3a34;height:58px}.encounter-date span,.encounter-date small{font:500 8px DM Mono,monospace;display:block}.encounter-date b{color:#e8f0eb;font-size:24px;line-height:1.1;display:block}.encounter-content>p:first-child,.timeline-item>div>p:first-child{letter-spacing:.06em;color:#8ca399;margin:0;font:500 9px DM Mono,monospace}.status-dot{background:#6ad8a9;border-radius:50%;width:7px;height:7px;margin-right:4px;display:inline-block}.encounter-content h3,.timeline-item h3{margin:8px 0 5px;font-size:13px}.record-copy,.timeline-item p{color:#99aca3;margin:0;font-size:11px;line-height:1.6}.continue{color:#83d8b3;background:0 0;border:0;padding:11px 0 0;font-size:10px;font-weight:800}.timeline-item{border-left:1px solid #2c3a35;margin-left:31px;padding:19px 0 0 30px;position:relative}.timeline-dot{background:#566961;border-radius:50%;width:9px;height:9px;position:absolute;top:23px;left:-5px}.timeline-tags{gap:5px;margin-top:10px;display:flex}.timeline-tags span{color:#8fc9ad;background:#18362b;border-radius:4px;padding:3px 5px;font-size:9px}.documents-layout{grid-template-columns:minmax(0,1fr) 265px;gap:13px;display:grid}.templates-panel{padding:22px}.panel-title{justify-content:space-between;align-items:flex-start;display:flex}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px;display:grid}.template-card{background:#111c19;border:1px solid #2b3935;border-radius:8px;padding:17px}.template-card>span{color:#9ee0bd;background:#1b332b;border-radius:7px;place-items:center;width:30px;height:30px;font-size:15px;display:grid}.template-card h3{margin:13px 0 5px;font-size:12px}.template-card p{color:#82968c;min-height:34px;margin:0;font-size:10px;line-height:1.55}.template-card button{color:#83d8b3;background:0 0;border:0;padding:13px 0 0;font-size:10px;font-weight:800}.document-preview{flex-direction:column;justify-content:space-between;padding:17px;display:flex}.paper{color:#17231f;background:#eff2eb;min-height:310px;padding:18px;font-family:Georgia,serif;box-shadow:0 8px 20px #0003}.paper small{letter-spacing:.07em;font:8px Manrope,sans-serif}.paper h3{text-align:center;margin:26px 0;font-size:13px}.paper p{font-size:10px}.paper .rx-line{border-bottom:1px solid #c7d0c6;padding:8px 0}.sign-line{text-align:center;border-top:1px solid #718076;margin-top:56px;padding-top:5px;font-size:8px!important}.package-grid{grid-template-columns:repeat(3,1fr);gap:11px;padding:20px;display:grid}.package-card{border:1px solid;border-radius:8px;padding:17px}.package-card.mint{background:#17382f;border-color:#296147}.package-card.amber{background:#39311f;border-color:#665427}.package-card.sky{background:#183039;border-color:#285665}.package-card>span{opacity:.75;font:500 9px DM Mono,monospace}.package-card h3{margin:17px 0 3px;font-size:13px}.package-card p{opacity:.75;margin:0;font-size:10px}.package-card>b{margin:20px 0 8px;font-size:12px;display:block}.progress{background:#00000040;border-radius:9px;height:5px;overflow:hidden}.progress i{background:#b7e0c6;border-radius:9px;height:100%;display:block}.finance-layout{grid-template-columns:1.25fr 1fr;gap:12px;display:grid}.finance-hero{background:linear-gradient(135deg,#17342c,#0f1916);min-height:175px;padding:25px}.finance-hero h2{margin-top:11px;font-size:36px}.finance-hero>p:last-child{color:#95aca1;font-size:11px}.finance-cards{gap:8px;display:grid}.finance-cards .metric{min-height:0}.coming-soon{grid-column:1/-1;align-items:center;gap:16px;padding:24px;display:flex}.coming-soon>span{color:#94e0b9;background:#173b30;border-radius:50%;place-items:center;width:43px;height:43px;font-size:22px;display:grid}.coming-soon p:last-child{color:#8fa198;max-width:580px;font-size:11px}.team-list{padding:5px 20px 17px}.team-list article{border-bottom:1px solid #25332e;align-items:center;gap:11px;padding:12px 0;display:flex}.team-list h3{margin:0;font-size:11px}.team-list p{color:#83968c;margin:3px 0 0;font-size:10px}.team-list .tag{margin-left:auto}.team-list button,.settings-grid button{color:#86d7b4;background:0 0;border:0;font-size:10px;font-weight:800}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;display:grid}.settings-grid article{background:#0f1716;border:1px solid #2a3834;border-radius:9px;min-height:154px;padding:19px}.settings-grid article>span{color:#8cddba;font-size:18px}.settings-grid h3{margin:17px 0 5px;font-size:13px}.settings-grid p{color:#82968c;margin:0 0 12px;font-size:10px;line-height:1.55}.scrim{z-index:9;background:#00000085;border:0;position:fixed;inset:0}.drawer{z-index:10;background:#0e1614;border-left:1px solid #2a3934;width:min(370px,100vw);padding:24px;position:fixed;top:0;bottom:0;right:0;overflow:auto;box-shadow:-20px 0 55px #0000004d}.drawer header,.modal header{justify-content:space-between;align-items:flex-start;display:flex}.drawer header button,.modal header button{color:#c2d0c8;background:#17221f;border:1px solid #304039;border-radius:50%;width:28px;height:28px;font-size:19px}.status-chip{color:#f5da80;text-transform:uppercase;letter-spacing:.08em;background:#3c3220;border-radius:4px;margin:13px 0 18px;padding:4px 7px;font:700 8px DM Mono,monospace;display:inline-block}.status-chip.chegou{color:#bdf4d3;background:#173c2e}.drawer-contact{border-top:1px solid #293832;border-bottom:1px solid #293832;align-items:center;gap:9px;padding:12px 0;display:flex}.drawer-contact small{color:#81958b;margin-top:2px;font-size:9px;display:block}.drawer-facts{padding:14px 0}.drawer-facts>div{justify-content:space-between;gap:10px;padding:7px 0;display:flex}.drawer-facts span,.drawer-note small,.drawer-bottom span{letter-spacing:.08em;color:#7d9288;font:500 8px DM Mono,monospace}.drawer-facts b{text-align:right;font-size:10px}.drawer-note{background:#16221f;border-radius:7px;padding:10px 11px}.drawer-note p{color:#b5c5bd;margin:6px 0 0;font-size:10px;line-height:1.5}.drawer-actions{border-bottom:1px solid #293832;gap:7px;padding:17px 0;display:grid}.button.whatsapp{color:#bdf4d3;background:#173c2e;border-color:#2b694f}.drawer-actions>div{justify-content:space-between;display:flex}.drawer-actions>div button{color:#83d8b3;background:0 0;border:0;font-size:10px;font-weight:800}.drawer-actions>div .danger{color:#ef8f78}.drawer-bottom p{justify-content:space-between;margin:16px 0 5px;display:flex}.drawer-bottom p button{color:#8edbb8;background:0 0;border:0;font-size:9px;font-weight:700}.drawer-bottom small{color:#82958b;font-size:10px}.modal-layer{z-index:15;background:#000000ad;place-items:center;padding:15px;display:grid;position:fixed;inset:0}.modal{background:#101817;border:1px solid #2d3b36;border-radius:11px;width:min(520px,100%);padding:24px;box-shadow:0 30px 80px #0006}.modal form{margin-top:20px}.modal label{color:#aac1b5;letter-spacing:.07em;flex-direction:column;gap:5px;font:700 9px DM Mono,monospace;display:flex}.modal input,.modal select,.modal textarea{color:#edf4ef;letter-spacing:0;background:#0d1513;border:1px solid #2c3c36;border-radius:6px;outline-color:#73d8b2;height:39px;padding:0 10px;font:500 12px Manrope,sans-serif}.modal textarea{resize:vertical;height:68px;padding-top:10px}.form-row{grid-template-columns:1fr 1fr;gap:11px;margin:14px 0;display:grid}.modal footer{border-top:1px solid #293733;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:16px;display:flex}.toast{z-index:20;color:#13231f;background:#e8f0eb;border-radius:8px;align-items:center;gap:8px;padding:11px 14px;font-size:10px;font-weight:800;animation:.22s ease-out toast-in;display:flex;position:fixed;bottom:24px;right:24px;box-shadow:0 12px 35px #0000004d}.toast span{color:#f4fff9;background:#1d8e6b;border-radius:50%;place-items:center;width:20px;height:20px;display:grid}@keyframes toast-in{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (width<=980px){.app-shell{grid-template-columns:72px minmax(0,1fr)}.sidebar{padding:21px 8px}.brand{justify-content:center}.brand>span:last-child,.tenant-switcher>span:not(.tenant-initials),.tenant-switcher i,.nav-group p,.nav-item:not(.active){font-size:0}.tenant-switcher{justify-content:center;margin:29px 0}.nav-item{justify-content:center}.nav-item span{font-size:18px}.nav-item.active{font-size:0}.help div,.profile>span:not(.avatar),.profile i{display:none}.help,.profile{justify-content:center}.topbar{padding:0 20px}.page{padding:26px 20px}.record-layout{grid-template-columns:1fr}.patient-card{display:none}.documents-layout{grid-template-columns:1fr}.document-preview{display:none}}@media (width<=630px){.app-shell{display:block}.sidebar{z-index:8;flex-direction:row;align-items:center;height:61px;min-height:0;padding:8px 10px;display:flex;position:sticky;top:0}.brand{padding:0}.tenant-switcher,.sidebar-bottom{display:none}.main-nav{margin-left:auto;padding:0;display:flex}.nav-group{display:flex}.nav-group p,.nav-item:not(.active){display:none}.nav-item.active{padding:7px;font-size:0}.topbar{height:55px;padding:0 14px}.global-search{text-align:center;width:35px;padding:0;font-size:0}.global-search>span{margin:0}.global-search kbd,.bell{display:none}.page{padding:21px 13px}.page-heading{align-items:flex-start;gap:10px}.page h1{font-size:25px}.heading-actions .secondary{display:none}.heading-actions .button{padding:0 8px;font-size:9px}.metric-grid{grid-template-columns:1fr;margin:18px 0 12px}.agenda-filters{display:none}.agenda-toolbar{padding:0 9px}.patient-table{padding:4px 8px 13px;overflow:auto}.table-head,.patient-row{min-width:680px}.record-main{padding:17px}.record-action{gap:10px}.record-action>div:last-child .secondary{display:none}.template-grid,.settings-grid,.package-grid,.finance-layout{grid-template-columns:1fr}.drawer{padding:20px}.modal{padding:19px}.modal h2{font-size:23px}}.theme-light{--canvas:#f5f7fb;--surface:#fff;--surface-muted:#f8fafc;--ink:#172536;--muted:#617185;--line:#dce4ee;--primary:#1769aa;--primary-dark:#0f4f87;--teal:#0d8b8d;--sidebar:#fbfcfe;--sidebar-hover:#edf5fb;--shadow:0 10px 28px #1d365014;color:var(--ink);background:var(--canvas)}.theme-light .sidebar{background:var(--sidebar);border-color:var(--line)}.theme-light .workspace,.theme-light .page{background:var(--canvas)}.theme-light .brand,.theme-light .profile{color:var(--ink)}.theme-light .brand-symbol{color:var(--primary)}.theme-light .brand small,.theme-light .tenant-switcher small,.theme-light .profile small{color:#718196}.theme-light .tenant-switcher{border-color:var(--line);color:var(--ink);background:#fff;box-shadow:0 2px 8px #18375408}.theme-light .tenant-initials{color:var(--primary);background:#e6f0f9}.theme-light .nav-group p{color:#8391a4}.theme-light .nav-item{color:#546477}.theme-light .nav-item>span{color:#728298}.theme-light .nav-item:hover,.theme-light .nav-item.active{background:var(--sidebar-hover);color:var(--primary)}.theme-light .nav-item.active>span{color:var(--primary)}.theme-light .help{color:#58687c;border-color:var(--line)}.theme-light .help small{color:#78889a}.theme-light .topbar{border-color:var(--line);background:#ffffffe0}.theme-light .crumb{color:#718196}.theme-light .crumb b,.theme-light .page h1,.theme-light .page h2{color:var(--ink)}.theme-light .global-search{border-color:var(--line);color:#718196;background:#f8fafc}.theme-light .global-search kbd{color:#64758a;background:#eaf0f6}.theme-light .bell{color:#52657a}.theme-light .eyebrow{color:#287b92}.theme-light .button.primary{background:var(--primary);color:#fff}.theme-light .button.primary:hover{background:var(--primary-dark)}.theme-light .button.secondary{color:#40556b;background:#fff;border-color:#cdd9e5}.theme-light .metric,.theme-light .agenda-panel,.theme-light .content-panel,.theme-light .patient-card,.theme-light .record-main,.theme-light .templates-panel,.theme-light .document-preview,.theme-light .finance-hero,.theme-light .coming-soon{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}.theme-light .metric small{color:#718196}.theme-light .metric strong{color:var(--ink)}.theme-light .metric p{color:#708095}.theme-light .metric.good .metric-icon{color:#16856e;background:#e1f4ef}.theme-light .metric.blue .metric-icon{color:#1769aa;background:#e8f1fb}.theme-light .metric.alert .metric-icon{color:#c36242;background:#fdf0e9}.theme-light .metric-arrow{color:var(--primary)}.theme-light .agenda-toolbar,.theme-light .calendar-header{border-color:var(--line)}.theme-light .date-tools button,.theme-light .agenda-filters>button{color:#536579}.theme-light .date-tools .today{color:var(--primary);background:#e9f1fa;border-color:#cddfed}.theme-light .agenda-filters>button.selected{color:var(--primary);background:#e2effa}.theme-light .agenda-filters>button:last-child{background:#fff;border-color:#d8e2eb}.theme-light .avatar-stack .avatar{border-color:#fff}.theme-light .avatar-stack button{color:#607287;background:#f4f8fb;border-color:#d5e0e9}.theme-light .timezone,.theme-light .hours{border-color:var(--line);color:#7f8da0}.theme-light .provider-head{border-color:var(--line)}.theme-light .provider-head b{color:#26384b}.theme-light .provider-head small{color:#718196}.theme-light .provider-head em{color:#6d7d90;background:#edf3f7}.theme-light .calendar-column{border-color:var(--line);background:repeating-linear-gradient(#0000 0 71px,#edf1f5 72px)}.theme-light .slot:hover{background:#1769aa0f}.theme-light .appointment.mint{color:#155d51;background:#e4f5f0;border-color:#21a384}.theme-light .appointment.sky{color:#1d5e96;background:#e6f1fb;border-color:#3988c7}.theme-light .appointment.amber{color:#74520d;background:#fff5dc;border-color:#db9e2a}.theme-light .appointment.coral{color:#8c4938;background:#fdece6;border-color:#e57a58}.theme-light .appointment.neutral{color:#546475;background:#eef1f4;border-color:#8a98a8}.theme-light .field-search{color:#7790a4;background:#fff;border-color:#d5e0e9}.theme-light .field-search input{color:var(--ink)}.theme-light .patient-row{color:#5d6e80;border-color:#e5ebf0}.theme-light .patient-row:hover{background:#f6f9fc}.theme-light .patient-name{color:#26384b}.theme-light .patient-name small{color:#7a8a9b}.theme-light .tag{color:#617285;background:#edf2f7}.theme-light .tag.active{color:#117459;background:#e1f4ef}.theme-light .record-action,.theme-light .encounter-card,.theme-light .timeline-item{border-color:#e1e8ee}.theme-light .record-copy,.theme-light .timeline-item p{color:#66778a}.theme-light .record-menu button{color:#5e7082}.theme-light .record-menu button.active{color:#1769aa;background:#e8f2fa}.theme-light .timeline-dot{background:#8ca2b7}.theme-light .template-card{background:#fbfcfe;border-color:#dce5ed}.theme-light .template-card>span{color:#1769aa;background:#eaf2fb}.theme-light .template-card p{color:#708195}.theme-light .template-card button,.theme-light .team-list button,.theme-light .settings-grid button{color:var(--primary)}.theme-light .paper{color:#29374a;background:#fff;box-shadow:0 8px 20px #263b511f}.theme-light .team-list article{border-color:#e1e8ee}.theme-light .settings-grid article{border-color:var(--line);box-shadow:var(--shadow);background:#fff}.theme-light .settings-grid article>span{color:var(--primary)}.theme-light .settings-grid p{color:#718196}.theme-light .drawer,.theme-light .modal{border-color:var(--line);color:var(--ink);background:#fff;box-shadow:-16px 0 40px #1c354e1f}.theme-light .drawer header button,.theme-light .modal header button{color:#536579;background:#f6f9fc;border-color:#d9e4ed}.theme-light .drawer-contact,.theme-light .drawer-actions{border-color:#e0e8ef}.theme-light .drawer-contact small,.theme-light .drawer-bottom small{color:#718196}.theme-light .drawer-note{background:#f2f7fa}.theme-light .drawer-note p{color:#5a6c7f}.theme-light .button.whatsapp{color:#167a59;background:#e0f4eb;border-color:#bfe6d6}.theme-light .drawer-actions>div button,.theme-light .drawer-bottom p button{color:var(--primary)}.theme-light .modal input,.theme-light .modal select,.theme-light .modal textarea{color:var(--ink);background:#fff;border-color:#cfdce6}.theme-light .modal footer{border-color:#e0e8ef}.theme-light .toast{color:#fff;background:#1c334c}.theme-light .toast span{background:#4ec095}.theme-light .finance-hero{background:linear-gradient(135deg,#eff7ff,#e5f6f7)}.theme-light .finance-hero h2{color:#17345a}.theme-light .finance-hero>p:last-child{color:#53718d}.theme-light .coming-soon>span{color:#1769aa;background:#e8f2fb}.app-shell{font-size:15px}.topbar{height:76px}.page{padding-top:35px}.button{justify-content:center;align-items:center;gap:7px;font-size:12px;display:inline-flex}.nav-item{height:42px;font-size:13px}.nav-group p,.eyebrow{font-size:10px}.global-search{align-items:center;gap:7px;width:300px;font-size:12px;display:inline-flex}.global-search kbd{margin-left:auto}.metric{min-height:98px}.appointment,.appointment b{font-size:12px}.patient-row{font-size:12px}.patient-name b,.field-search input{font-size:13px}.specialty-switch{background:#fff;border:1px solid #d5e0e9;border-radius:8px;align-items:center;gap:2px;padding:3px;display:flex}.specialty-switch button{color:#65778a;background:0 0;border:0;border-radius:5px;align-items:center;gap:5px;height:29px;padding:0 8px;font-size:11px;font-weight:800;display:inline-flex}.specialty-switch button.active{color:#1769aa;background:#e8f2fb}.theme-toggle{color:#50667c;background:#fff;border:1px solid #d5e0e9;border-radius:7px;place-items:center;width:32px;height:32px;display:grid}.agenda-filters>button{align-items:center;gap:5px;display:inline-flex}.specialty-record-layout{grid-template-columns:250px 1fr;gap:13px;display:grid}.specialty-record-main{box-shadow:var(--shadow);background:#fff;border:1px solid #dce4ee;border-radius:10px;padding:24px}.specialty-workbench{background:#fbfcfe;border:1px solid #dce6ee;border-radius:9px;margin-top:20px;overflow:hidden}.specialty-workbench>header{border-bottom:1px solid #e0e8ef;justify-content:space-between;align-items:center;padding:15px 17px;display:flex}.specialty-workbench h3{color:#24394f;margin:0;font-size:16px}.workbench-tabs{background:#eef3f7;border-radius:7px;gap:4px;padding:3px;display:flex}.workbench-tabs button{color:#66798d;background:0 0;border:0;border-radius:5px;align-items:center;gap:5px;padding:7px 9px;font-size:10px;font-weight:800;display:inline-flex}.workbench-tabs button.active{color:#1769aa;background:#fff;box-shadow:0 1px 3px #213d561f}.ophthalmology-panel,.dentistry-panel{padding:17px}.exam-grid{grid-template-columns:repeat(3,1fr);gap:9px;display:grid}.exam-grid article{background:#fff;border:1px solid #dce6ee;border-radius:7px;padding:12px}.exam-grid article>span,.odontogram-head span,.treatment-plan span{letter-spacing:.08em;color:#6e8294;font:600 9px DM Mono,monospace}.exam-grid article>div{grid-template-columns:auto 1fr auto 1fr;align-items:baseline;gap:5px;margin:10px 0 5px;display:grid}.exam-grid article b{color:#63788c;font-size:10px}.exam-grid article strong{color:#1b3855;font-size:16px}.exam-grid article small{color:#75879a;font-size:10px}.clinical-actions{color:#1b6e70;background:#e9f5f5;border-radius:7px;align-items:center;gap:10px;margin-top:11px;padding:12px;display:flex}.clinical-actions>span{display:grid}.clinical-actions small{color:#4f7d7e;font-size:10px}.clinical-actions .button:first-of-type{margin-left:auto}.odontogram{background:#fff;border:1px solid #dce6ee;border-radius:7px;padding:13px}.odontogram-head{justify-content:space-between;align-items:center;display:flex}.odontogram-head small{color:#718497;font-size:10px}.teeth-row{justify-content:space-between;gap:5px;margin-top:15px;display:flex}.teeth-row button{color:#6d8398;background:#fff;border:1px solid #d9e4ec;border-radius:6px;place-items:center;width:36px;height:48px;padding:2px;display:grid}.teeth-row button small{font:8px DM Mono,monospace}.teeth-row button.planned{color:#b57300;background:#fff5dd;border-color:#e3a735}.teeth-row button.done{color:#127259;background:#e1f5ed;border-color:#36a686}.treatment-plan{background:#fff;border:1px solid #dce6ee;border-radius:7px;margin-top:11px;padding:13px}.treatment-plan>div{justify-content:space-between;display:flex}.treatment-plan>div b{color:#b27413;font-size:11px}.treatment-plan p{color:#53687d;align-items:center;gap:7px;font-size:11px;display:flex}.treatment-plan p i{background:#2ca381;border-radius:50%;width:7px;height:7px}.treatment-plan p strong{color:#1c3953;margin-left:auto}.treatment-plan .button{margin-top:3px}.specialty-timeline{margin-top:7px}.theme-dark{--canvas:#101722;--surface:#17212e;--surface-muted:#1b2735;--ink:#eff6ff;--muted:#a4b3c5;--line:#2b3a4b;--primary:#63aef5;--primary-dark:#2d7fcb;--teal:#5ed0c8;--sidebar:#101722;--sidebar-hover:#1d3045;color:var(--ink);background:var(--canvas)}.theme-dark .sidebar,.theme-dark .topbar{background:#101722;border-color:#2b3a4b}.theme-dark .workspace,.theme-dark .page{background:#101722}.theme-dark .tenant-switcher,.theme-dark .global-search,.theme-dark .theme-toggle,.theme-dark .specialty-switch{color:#e7eff8;background:#182332;border-color:#304154}.theme-dark .tenant-initials{color:#a4d2ff;background:#203b57}.theme-dark .nav-item{color:#a4b4c5}.theme-dark .nav-item>span,.theme-dark .brand-symbol{color:#8dbef2}.theme-dark .nav-item:hover,.theme-dark .nav-item.active{color:#eff6ff;background:#1d3045}.theme-dark .nav-item.active>span{color:#85c7ff}.theme-dark .brand,.theme-dark .profile,.theme-dark .crumb b,.theme-dark .page h1,.theme-dark .page h2{color:#eff6ff}.theme-dark .crumb,.theme-dark .global-search,.theme-dark .specialty-switch button{color:#a7b7c8}.theme-dark .specialty-switch button.active{color:#dbeeff;background:#2a4560}.theme-dark .button.primary{color:#0d1a28;background:#63aef5}.theme-dark .button.secondary{color:#d6e3ee;background:#1a2634;border-color:#33475c}.theme-dark .metric,.theme-dark .agenda-panel,.theme-dark .content-panel,.theme-dark .patient-card,.theme-dark .record-main,.theme-dark .templates-panel,.theme-dark .document-preview,.theme-dark .finance-hero,.theme-dark .coming-soon,.theme-dark .specialty-record-main{box-shadow:none;background:#17212e;border-color:#2b3a4b}.theme-dark .calendar-column{background:repeating-linear-gradient(#0000 0 71px,#253343 72px);border-color:#2b3a4b}.theme-dark .timezone,.theme-dark .hours,.theme-dark .provider-head{border-color:#2b3a4b}.theme-dark .specialty-workbench{background:#1a2634;border-color:#2e4053}.theme-dark .specialty-workbench>header{border-color:#2e4053}.theme-dark .specialty-workbench h3,.theme-dark .exam-grid article strong{color:#edf6ff}.theme-dark .workbench-tabs{background:#233446}.theme-dark .workbench-tabs button.active{color:#dceeff;background:#314c66}.theme-dark .exam-grid article,.theme-dark .odontogram,.theme-dark .treatment-plan{background:#16202c;border-color:#304154}.theme-dark .clinical-actions{color:#9de3df;background:#15313a}.theme-dark .teeth-row button{color:#b3c5d6;background:#1a2634;border-color:#384a5d}.theme-dark .treatment-plan p strong{color:#c2dff9}.theme-dark .patient-row:hover{background:#1c2938}.theme-dark .drawer,.theme-dark .modal{background:#17212e;border-color:#2e4053}.theme-dark .modal input,.theme-dark .modal select,.theme-dark .modal textarea{color:#edf6ff;background:#111a24;border-color:#34475c}@media (width<=1060px){.specialty-switch{display:none}.specialty-record-layout{grid-template-columns:1fr}.specialty-patient-card{display:none}}@media (width<=720px){.page h1{font-size:29px}.exam-grid{grid-template-columns:1fr}.clinical-actions{flex-wrap:wrap;align-items:flex-start}.clinical-actions .button:first-of-type{margin-left:0}.teeth-row{flex-wrap:wrap;justify-content:flex-start}.specialty-workbench>header{flex-direction:column;align-items:flex-start;gap:10px}.specialty-record-main{padding:16px}.workbench-tabs{width:100%}.workbench-tabs button{flex:1;justify-content:center}.top-actions .theme-toggle{display:none}}.teeth-row button.selected{border-color:#1769aa;outline:3px solid #1769aa40;transform:translateY(-2px)}.clinical-exams-panel{background:#fbfcfe;border:1px solid #dce6ee;border-radius:9px;margin-top:20px;overflow:hidden}.clinical-exams-panel>header{border-bottom:1px solid #dce6ee;justify-content:space-between;align-items:center;gap:14px;padding:19px;display:flex}.clinical-exams-panel h3{color:#24394f;margin:3px 0 5px;font-size:19px}.clinical-exams-panel header span{color:#617185;font-size:13px}.clinical-exams-list{padding:6px 19px 15px}.clinical-exams-list article{border-bottom:1px solid #e0e8ef;align-items:center;gap:12px;min-height:73px;display:flex}.clinical-exams-list article>span{color:#1769aa;background:#e7f1fb;border-radius:8px;place-items:center;width:37px;height:37px;display:grid}.clinical-exams-list article>div{flex:1;gap:4px;min-width:0;display:grid}.clinical-exams-list b{color:#263d55;font-size:14px}.clinical-exams-list small{color:#718196;font-size:12px}.clinical-exams-list button{color:#1769aa;background:0 0;border:0;font-size:12px;font-weight:800}.evolution-modal{width:min(620px,100%)}.evolution-modal .modal-intro{color:var(--muted);margin:6px 0 0;font-size:13px}.evolution-modal textarea{min-height:160px;line-height:1.55}.local-evolution .timeline-dot{background:#16856e}.theme-dark .clinical-exams-panel{background:#1a2634;border-color:#2e4053}.theme-dark .clinical-exams-panel>header,.theme-dark .clinical-exams-list article{border-color:#2e4053}.theme-dark .clinical-exams-panel h3,.theme-dark .clinical-exams-list b{color:#edf6ff}.theme-dark .clinical-exams-list small,.theme-dark .clinical-exams-panel header span{color:#a4b3c5}.theme-dark .clinical-exams-list article>span{color:#9dcefb;background:#203b57}.theme-dark .teeth-row button.selected{border-color:#63aef5;outline-color:#63aef540}.legacy-record-notice{color:#1769aa;background:#f1f7fc;border:1px solid #cbdfea;border-radius:9px;align-items:flex-start;gap:14px;margin-top:20px;padding:20px;display:flex}.legacy-record-notice>div{min-width:0}.legacy-record-notice h3{color:#24394f;margin:3px 0 8px;font-size:18px}.legacy-record-notice p:last-child{color:#536b81;margin:0;font-size:14px;line-height:1.65}.clinical-exams-empty{color:#718196;text-align:center;align-content:center;place-items:center;gap:7px;min-height:180px;padding:24px;display:grid}.clinical-exams-empty b{font-size:14px}.clinical-exams-empty span{max-width:480px;font-size:13px;line-height:1.55}.theme-dark .legacy-record-notice{color:#9dcefb;background:#182c3e;border-color:#31536c}.theme-dark .legacy-record-notice h3{color:#edf6ff}.theme-dark .legacy-record-notice p:last-child,.theme-dark .clinical-exams-empty{color:#a4b3c5}.legacy-record-history{background:#fbfcfe;border:1px solid #dce6ee;border-radius:9px;margin-top:20px;padding:20px}.legacy-record-history>header{color:#1769aa;border-bottom:1px solid #dce6ee;align-items:flex-start;gap:12px;padding-bottom:15px;display:flex}.legacy-record-history h3{color:#24394f;margin:3px 0 5px;font-size:18px}.legacy-record-history header span{color:#617185;font-size:13px}.legacy-record-history .patient-timeline{margin-top:18px}.legacy-documents-panel{background:#fbfcfe;border:1px solid #dce6ee;border-radius:9px;grid-template-columns:260px minmax(0,1fr);margin-top:20px;display:grid;overflow:hidden}.legacy-documents-panel>aside{border-right:1px solid #dce6ee;padding:17px}.legacy-documents-panel>aside>button{color:#617185;text-align:left;background:0 0;border:0;border-radius:7px;align-items:center;gap:9px;width:100%;margin-top:7px;padding:11px;display:flex}.legacy-documents-panel>aside>button.active{color:#1769aa;background:#e7f1fb}.legacy-documents-panel>aside button span{gap:3px;min-width:0;display:grid}.legacy-documents-panel>aside b{color:#263d55;text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.legacy-documents-panel>aside small{font-size:11px}.legacy-documents-panel>article{background:#fff;min-width:0;padding:22px}.legacy-documents-panel>article>header{border-bottom:1px solid #e0e8ef;justify-content:space-between;align-items:flex-start;gap:14px;padding-bottom:16px;display:flex}.legacy-documents-panel h3{color:#24394f;margin:4px 0;font-size:20px}.legacy-documents-panel header span{color:#718196;font-size:12px}.legacy-documents-panel .clinical-rich-text.document{min-height:340px;margin:0;padding:26px 4px;overflow:auto}.legacy-documents-panel .clinical-rich-text.document .clinical-text-paragraph{font-size:15px;line-height:1.82}.legacy-documents-panel .clinical-rich-text.document h4{margin-top:24px;font-size:12px}.legacy-documents-panel article>footer{color:#718196;border-top:1px solid #e0e8ef;padding-top:12px;font:600 11px DM Mono,monospace}.theme-dark .legacy-record-history,.theme-dark .legacy-documents-panel{background:#1a2634;border-color:#2e4053}.theme-dark .legacy-record-history>header,.theme-dark .legacy-documents-panel>aside,.theme-dark .legacy-documents-panel>article>header,.theme-dark .legacy-documents-panel article>footer{border-color:#2e4053}.theme-dark .legacy-record-history h3,.theme-dark .legacy-documents-panel h3,.theme-dark .legacy-documents-panel>aside b{color:#edf6ff}.theme-dark .legacy-record-history header span,.theme-dark .legacy-documents-panel header span,.theme-dark .legacy-documents-panel article>footer{color:#a4b3c5}.theme-dark .legacy-documents-panel>article{background:#17212e}.theme-dark .legacy-documents-panel>aside>button.active{color:#9dcefb;background:#203b57}@media (width<=860px){.legacy-documents-panel{grid-template-columns:1fr}.legacy-documents-panel>aside{border-bottom:1px solid #dce6ee;border-right:0}.legacy-documents-panel>article{padding:17px}.legacy-documents-panel pre{padding:20px 0}}@media print{.legacy-documents-panel{background:#fff;border:0;display:block}.legacy-documents-panel>aside,.legacy-documents-panel>article>header .button{display:none}.legacy-documents-panel>article{background:#fff;padding:0}.legacy-documents-panel .clinical-rich-text.document{min-height:0;padding:24px 0;overflow:visible}.legacy-documents-panel article>footer{color:#44586d}.clinical-rich-text .clinical-text-field{background:#f6f8fa;border-left-color:#8aa8c2}}.exam-grid .exam-empty{color:var(--muted,#617185);opacity:.85;font-size:14px;font-style:normal;font-weight:600}.exam-grid .exam-note{color:var(--muted,#617185);font-size:13px;font-weight:700;line-height:1.35}.theme-dark .hours{color:#93a8bb}.theme-dark .metric p{color:#a4b3c5}.theme-dark .crumb i{color:#8296aa}.theme-dark .now-line i{color:#fff;background:#c2482c}.theme-dark .timezone{color:#93a8bb}.nav-item em{background:#c2482c}.theme-dark .identity-upload small,.theme-dark .signature-placeholder{color:#a4b3c5}.theme-dark .identity-upload em{color:#7fc4f0}.theme-light .crumb i{color:#6b7c92}.theme-light .metric i{color:#5b6b80}.theme-light .hours,.theme-light .timezone{color:#5f6f84}.theme-light .legacy-row-label{color:#5b6b80}.app-shell{grid-template-columns:272px minmax(0,1fr);font-size:16px}.sidebar{padding:28px 16px 17px}.brand strong{font-size:25px}.tenant-switcher{min-height:56px}.tenant-switcher b{font-size:13px}.tenant-switcher small,.brand small,.profile small{font-size:10px}.nav-group p{margin-top:24px;font-size:10px}.nav-item{gap:12px;height:47px;font-size:15px}.nav-item>span{width:20px}.topbar{height:82px;padding:0 42px}.crumb{font-size:14px}.global-search{width:340px;height:42px;font-size:14px}.theme-toggle{width:40px;height:40px}.bell{padding:7px}.page{padding:36px 42px 54px}.page h1{letter-spacing:-.03em;font-size:34px;line-height:1.1}.button{height:43px;padding:0 16px;font-size:13px}.metric-grid{gap:13px;margin-top:28px}.metric{gap:14px;min-height:106px;padding:18px}.metric-icon{width:39px;height:39px}.metric small{font-size:10px}.metric strong{font-size:29px}.metric p{font-size:13px}.agenda-toolbar{height:68px;padding:0 18px}.date-tools button,.agenda-filters>button{height:34px;font-size:12px}.date-tools b{font-size:16px}.calendar-header{height:70px}.calendar-header,.calendar{grid-template-columns:78px repeat(3,minmax(240px,1fr))}.timezone{padding:15px 12px;font-size:10px}.provider-head{padding:12px 15px}.provider-head .avatar{width:34px;height:34px;font-size:10px}.provider-head b{font-size:13px}.provider-head small{font-size:11px}.provider-head em,.hours{font-size:10px}.appointment{padding:9px 10px}.appointment>span{font-size:10px}.appointment b{font-size:13px}.appointment small{font-size:11px}.appointment i{font-size:9px}.panel-tools{padding:22px}.field-search{height:44px}.field-search input{font-size:14px}.table-head{height:47px;font-size:10px}.patient-row{min-height:72px;font-size:13px}.patient-name b{font-size:14px}.patient-name small{font-size:11px}.tag{padding:5px 7px;font-size:10px}.patient-card,.specialty-record-main{padding:24px}.patient-card h2{font-size:24px}.patient-card>p,.patient-contact{font-size:12px}.record-menu button{align-items:center;gap:8px;height:39px;font-size:12px;display:flex}.record-action h2{font-size:25px}.specialty-workbench>header{padding:19px}.specialty-workbench h3{font-size:19px}.exam-grid article{padding:15px}.exam-grid article>span,.odontogram-head span,.treatment-plan span{font-size:10px}.exam-grid article strong{font-size:19px}.exam-grid article small,.odontogram-head small{font-size:11px}.clinical-actions{padding:15px}.clinical-actions b{font-size:14px}.clinical-actions small{font-size:11px}.treatment-plan p{font-size:13px}.template-card h3,.settings-grid h3{font-size:15px}.template-card p,.settings-grid p{font-size:12px}.team-list h3{font-size:14px}.team-list p{font-size:12px}.drawer{width:min(410px,100vw);padding:28px}.drawer h2,.modal h2{font-size:30px}.drawer-facts b{font-size:12px}.drawer-contact b{font-size:13px}.drawer-contact small,.drawer-note p{font-size:11px}.modal{width:min(570px,100%);padding:28px}.modal label{font-size:10px}.modal input,.modal select,.modal textarea{height:45px;font-size:14px}.toast{padding:13px 16px;font-size:13px}.specialty-label{color:#1769aa;background:#edf5fb;border:1px solid #c9ddea;border-radius:7px;align-items:center;gap:7px;padding:8px 10px;font-size:12px;font-weight:800;display:inline-flex}.settings-page{gap:16px;display:grid}.specialty-setting-card{background:#fff;border:1px solid #dce4ee;border-radius:11px;padding:25px;box-shadow:0 10px 28px #1d365014}.specialty-setting-card>div:first-child>p{margin-bottom:8px}.specialty-setting-card>div:first-child>p+h2{font-size:25px}.specialty-setting-card>div:first-child>p:last-child{color:#617185;max-width:620px;font-size:13px;line-height:1.55}.specialty-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px;display:grid}.specialty-options button{text-align:left;color:#587087;background:#fff;border:2px solid #d9e4ed;border-radius:9px;align-items:flex-start;gap:13px;min-height:118px;padding:17px;display:flex;position:relative}.specialty-options button>svg:first-child{color:#1769aa;flex:none}.specialty-options span{gap:5px;display:grid}.specialty-options b{color:#1b3855;font-size:16px}.specialty-options small{font-size:12px;line-height:1.45}.specialty-options button>svg:last-child{color:#16856e;position:absolute;top:13px;right:13px}.specialty-options button.selected{background:#f4f9fd;border-color:#1769aa}.theme-dark .specialty-label{color:#c4e3ff;background:#21394f;border-color:#3a5975}.theme-dark .specialty-setting-card{box-shadow:none;background:#17212e;border-color:#2b3a4b}.theme-dark .specialty-setting-card>div:first-child>p:last-child{color:#a8b8c8}.theme-dark .specialty-options button{color:#b4c4d5;background:#192736;border-color:#33485d}.theme-dark .specialty-options b{color:#eaf3fc}.theme-dark .specialty-options button.selected{background:#1e3448;border-color:#63aef5}.theme-dark .specialty-options button>svg:first-child{color:#92c8fc}.theme-dark .specialty-options button>svg:last-child{color:#6ee0b2}@media (width<=980px){.app-shell{grid-template-columns:76px minmax(0,1fr)}.page{padding:30px 24px}.topbar{padding:0 24px}.nav-item{height:47px}}@media (width<=720px){.page{padding:24px 15px}.page h1{font-size:28px}.global-search{width:42px}.specialty-options{grid-template-columns:1fr}.specialty-setting-card{padding:18px}.calendar-header,.calendar{grid-template-columns:70px repeat(3,minmax(230px,1fr))}.topbar{height:62px;padding:0 15px}.metric strong{font-size:26px}}.new-version-bar{color:#6b4a0c;background:#fff6df;border-bottom:1px solid #e8c77a;flex-wrap:wrap;align-items:center;gap:10px;margin:0;padding:10px 38px;font-size:13px;line-height:1.4;display:flex}.new-version-bar svg{flex:none}.new-version-bar span{flex:260px}.new-version-bar button{color:#fff;white-space:nowrap;background:#b7862a;border:1px solid #b7862a;border-radius:7px;height:32px;padding:0 14px;font-size:12px;font-weight:800}.theme-dark .new-version-bar{color:#f3d894;background:#2e2616;border-color:#6b5320}.theme-dark .new-version-bar button{color:#1d1608;background:#d6a748;border-color:#d6a748}@media (width<=630px){.new-version-bar{padding:10px 14px}}.agenda-panel{overflow:visible}.agenda-toolbar{position:relative}.agenda-alerts{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:-4px 0 13px;display:grid}.agenda-alerts article{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);min-height:76px;box-shadow:var(--shadow,none);color:var(--ink,#172536);border-radius:10px;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;padding:14px 16px;display:grid}.agenda-alerts article>svg{color:var(--primary,#1769aa)}.agenda-alerts b{font-size:13px;display:block}.agenda-alerts small{color:var(--muted,#617185);margin-top:3px;font-size:11px;line-height:1.35;display:block}.agenda-alerts button,.clear-filters,.active-filter-note button{color:var(--primary,#1769aa);white-space:nowrap;background:0 0;border:0;font-size:12px;font-weight:800}.filter-popover{z-index:7;border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:10px;width:min(460px,100vw - 48px);padding:16px;position:absolute;top:57px;right:17px;box-shadow:0 16px 40px #1d36502e}.filter-popover>div{grid-template-columns:1fr 1fr;gap:12px;display:grid}.filter-popover label{color:var(--muted,#617185);letter-spacing:.06em;gap:6px;font:700 10px DM Mono,monospace;display:grid}.filter-popover select{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);width:100%;height:39px;color:var(--ink,#172536);border-radius:6px;padding:0 10px;font:600 12px Manrope,sans-serif}.clear-filters{margin-top:15px;padding:3px 0}.has-filters{color:var(--primary,#1769aa)!important;background:#edf5fb!important;border-color:#9dc4e6!important}.active-filter-note{border-bottom:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);color:var(--muted,#617185);justify-content:space-between;align-items:center;gap:10px;padding:10px 17px;font-size:12px;display:flex}.agenda-calendar .appointment{flex-direction:column;justify-content:flex-start;align-items:flex-start;min-height:74px;padding:10px 11px;line-height:1.25;display:flex;overflow:hidden}.agenda-calendar .appointment b{line-height:1.2}.agenda-calendar .appointment small{white-space:normal;line-height:1.25;overflow:visible}.agenda-calendar .status-faltou{opacity:.78;border-style:dashed}.agenda-calendar .status-cancelado{opacity:.58;text-decoration:line-through}.agenda-drawer .drawer-actions{gap:10px}.drawer-danger{color:#b9503b;background:#fff6f4;border:1px solid #e7b3a7;border-radius:7px;justify-content:center;align-items:center;gap:8px;height:40px;font-size:12px;font-weight:800;display:flex}.modal-intro{max-width:420px;color:var(--muted,#617185);margin:8px 0 0;font-size:13px;line-height:1.45}.reschedule-note{color:#35607f;background:#edf5fb;border-radius:7px;align-items:center;gap:9px;margin-top:15px;padding:12px;font-size:12px;line-height:1.4;display:flex}.theme-dark .agenda-alerts article{color:#eff6ff;box-shadow:none;background:#17212e;border-color:#2b3a4b}.theme-dark .agenda-alerts small,.theme-dark .filter-popover label,.theme-dark .active-filter-note,.theme-dark .modal-intro{color:#a4b3c5}.theme-dark .filter-popover{background:#17212e;border-color:#2e4053;box-shadow:0 16px 40px #00000059}.theme-dark .filter-popover select{color:#edf6ff;background:#111a24;border-color:#34475c}.theme-dark .active-filter-note{background:#14202d;border-color:#2b3a4b}.theme-dark .has-filters{color:#b8dcff!important;background:#203a54!important;border-color:#426b91!important}.theme-dark .reschedule-note{color:#c4e6f3;background:#183544}.theme-dark .drawer-danger{color:#ffb8a9;background:#342322;border-color:#75443c}@media (width<=900px){.agenda-alerts{grid-template-columns:1fr}.filter-popover{top:62px;right:10px}}@media (width<=630px){.agenda-alerts article{grid-template-columns:auto 1fr}.agenda-alerts button{grid-column:2;justify-self:start}.filter-popover{width:auto;position:fixed;top:84px;left:15px;right:15px}.filter-popover>div{grid-template-columns:1fr}.agenda-calendar .appointment{padding:8px 9px}.agenda-calendar .appointment b{font-size:12px}.agenda-calendar .appointment small{font-size:10px}}.date-tools .date-input{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);color:#0000;cursor:pointer;border-radius:7px;width:34px;height:32px;padding:0 4px;position:relative}.date-tools .date-input::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.75;width:auto;height:auto;margin:0;padding:0;position:absolute;inset:0}.agenda-loading{letter-spacing:.08em;color:var(--muted,#617185);text-transform:uppercase;font:500 10px DM Mono,monospace}.agenda-offline{border-bottom:1px solid var(--line,#dce4ee);color:#8a6414;background:#fdf1d8;padding:10px 17px;font-size:13px;font-weight:600}.now-line{z-index:3;pointer-events:none;border-top:2px solid #d6543c;height:0;position:absolute;left:0;right:0}.now-line i{color:#fff;background:#d6543c;border-radius:99px;padding:1px 7px;font:500 9.5px DM Mono,monospace;position:absolute;top:-9px;left:6px}.agenda-calendar .appointment.status-concluido{opacity:.72}.profile-switch{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);border-radius:9px;gap:2px;padding:3px;display:flex}.profile-switch button{color:var(--muted,#617185);border-radius:7px;padding:6px 13px;font-size:12.5px;font-weight:800}.profile-switch button.selected{background:var(--surface,#fff);color:var(--primary,#1769aa);box-shadow:0 1px 4px #1d365024}.drawer-note.legacy{border-left:3px solid var(--amber-ink,#8a6414);background:#fdf1d8}.drawer-note.legacy small{color:#8a6414}@media (width<=900px){.profile-switch button{padding:6px 9px}}.agenda-calendar .appointment.compact{flex-direction:row;align-items:center;gap:7px;min-height:0;padding:4px 10px;line-height:1.2}.agenda-calendar .appointment.compact span{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;margin:0;overflow:hidden}.agenda-calendar .appointment.compact b{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.agenda-calendar .appointment.compact i{flex:none;margin:0;padding:0}.period-picker{gap:6px;display:flex}.period-picker select{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);height:34px;color:var(--ink,#172536);cursor:pointer;border-radius:8px;padding:0 9px;font:700 13.5px Manrope,sans-serif}.period-picker select:hover{background:var(--surface-muted,#f8fafc)}.month-view{padding:0 0 4px}.month-summary-line{border-bottom:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);color:var(--muted,#4d6076);padding:11px 17px;font-size:13.5px}.month-grid{grid-template-columns:repeat(7,minmax(0,1fr));display:grid}.month-weekday{border-bottom:1px solid var(--line,#dce4ee);border-right:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);letter-spacing:.1em;text-transform:uppercase;color:var(--muted,#4d6076);text-align:center;padding:10px 12px;font:500 11.5px DM Mono,monospace}.month-weekday:nth-child(7){border-right:none}.month-cell{border-right:1px solid var(--line,#dce4ee);border-bottom:1px solid var(--line,#dce4ee);background:var(--surface,#fff);flex-direction:column;gap:4px;min-height:118px;padding:8px;display:flex;position:relative}.month-cell:nth-child(7n){border-right:none}.month-cell.outside{background:var(--surface-muted,#f8fafc)}.month-cell.outside .month-day-number{color:var(--muted,#4d6076);opacity:.55}.month-cell.today{background:var(--sidebar-hover,#edf5fb)}.month-cell.selected{box-shadow:inset 0 0 0 2px var(--primary,#1769aa)}.month-cell-day{cursor:pointer;text-align:left;background:0 0;border:0;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:2px 3px;display:flex}.month-day-number{color:var(--ink,#172536);font-size:15px;font-weight:800}.month-cell.today .month-day-number{background:var(--primary,#1769aa);color:#fff;border-radius:99px;place-items:center;width:26px;height:26px;font-size:13.5px;display:grid}.month-day-count{background:var(--sky-bg,#e3eef8);color:var(--sky-ink,#31566f);border-radius:99px;padding:1px 8px;font:500 11.5px DM Mono,monospace}.month-cell-body{flex-direction:column;gap:2px;min-width:0;display:flex}.month-entry{color:var(--ink,#172536);white-space:nowrap;text-overflow:ellipsis;align-items:baseline;gap:6px;font-size:12.5px;line-height:1.35;display:flex;overflow:hidden}.month-entry i{color:var(--muted,#4d6076);flex:none;font:500 11px DM Mono,monospace}.month-entry.more,.month-entry.blocked{color:var(--st-bloqueio-ink);font-weight:700}.month-cell-add{width:24px;height:24px;color:var(--muted,#4d6076);cursor:pointer;opacity:0;background:0 0;border:0;border-radius:7px;place-items:center;font-size:15px;line-height:1;transition:opacity .12s,background .12s,color .12s;display:grid;position:absolute;bottom:5px;right:5px}.month-cell-add:hover{background:var(--sidebar-hover,#edf5fb);color:var(--primary,#1769aa)}.month-cell:hover .month-cell-add,.month-cell-add:focus-visible{opacity:1}.month-cell-day:hover .month-day-number{color:var(--primary,#1769aa)}@media (width<=1100px){.month-cell{gap:2px;min-height:88px}.month-cell-body{display:none}.month-day-count{padding:2px 9px;font-size:12.5px}.month-cell-add{opacity:.5;align-self:flex-start;width:24px;height:24px;margin-top:auto;padding:0;position:static}}@media (width<=720px){.month-grid{grid-template-columns:repeat(7,minmax(44px,1fr))}.month-cell{min-height:66px;padding:4px}.month-cell-add{display:none}.month-day-number{font-size:14px}.period-picker select{padding:0 6px;font-size:13px}}@media (hover:none){.month-cell-add{opacity:1}}.appointment-modal{max-width:660px;max-height:calc(100vh - 40px);overflow-y:auto}.appointment-patient-field{position:relative}.appointment-patient-pop{z-index:30;border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:11px;flex-direction:column;display:flex;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow:hidden;box-shadow:0 14px 34px #17253629}.appointment-patient-pop button{cursor:pointer;text-align:left;background:0 0;border:0;flex-direction:column;align-items:flex-start;gap:1px;padding:9px 13px;display:flex}.appointment-patient-pop button:hover{background:var(--sidebar-hover,#edf5fb)}.appointment-patient-pop button b{color:var(--ink,#172536);font-size:14.5px}.appointment-patient-pop button small{color:var(--muted,#4d6076);font:500 12px DM Mono,monospace}.appointment-patient-hint{color:var(--muted,#4d6076);margin:0;padding:9px 13px;font-size:13.5px}.appointment-availability{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);border-radius:12px;flex-direction:column;gap:8px;margin:4px 0 8px;padding:12px 13px;display:flex}.appointment-availability-title{letter-spacing:.07em;text-transform:uppercase;color:var(--muted,#4d6076);margin:0;font:500 11.5px DM Mono,monospace}.appointment-day-chips{flex-wrap:wrap;gap:7px;display:flex}.appointment-day-chips button{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);cursor:pointer;border-radius:10px;flex-direction:column;align-items:center;gap:1px;min-width:74px;padding:7px 10px;display:flex}.appointment-day-chips button b{color:var(--ink,#172536);text-transform:capitalize;font-size:13.5px}.appointment-day-chips button small{color:var(--teal,#0d8b8d);font-size:11.5px;font-weight:700}.appointment-day-chips button.selected{border-color:var(--primary,#1769aa);background:var(--sidebar-hover,#edf5fb);box-shadow:inset 0 0 0 1px var(--primary,#1769aa)}.appointment-time-chips{flex-wrap:wrap;gap:6px;max-height:132px;display:flex;overflow-y:auto}.appointment-time-chips button{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);color:var(--ink,#172536);cursor:pointer;border-radius:9px;padding:6px 11px;font:500 13px DM Mono,monospace}.appointment-time-chips button:hover{border-color:var(--primary,#1769aa)}.appointment-time-chips button.selected{background:var(--primary,#1769aa);border-color:var(--primary,#1769aa);color:#fff}.appointment-conflict{color:#8c2d27;background:#fdeceb;border:1px solid #f2b8b5;border-radius:9px;margin:0;padding:9px 12px;font-size:14px;font-weight:600}.global-search-count{color:var(--teal,#0d8b8d);margin:0;padding:8px 18px 0;font-size:13.5px;font-weight:700}.global-search-start .spin{animation:1s linear infinite lume-spin}@keyframes lume-spin{to{transform:rotate(360deg)}}.slot{z-index:1;height:var(--hour-px,140px);flex-direction:column;display:flex;position:relative}.slot-quarter{flex:1;position:relative}.slot-open{cursor:pointer;background:0 0;border:0;width:100%;height:100%}.slot-open:hover{background:#1769aa12;box-shadow:inset 0 0 0 1px #1769aa2e}.slot-open.active{box-shadow:inset 0 0 0 1px var(--primary,#1769aa);background:#1769aa1f}.slot-menu{z-index:6;border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:11px;flex-direction:column;gap:3px;min-width:210px;padding:8px;display:flex;position:absolute;top:100%;left:8px;box-shadow:0 16px 40px #17253633}.slot-menu p{color:var(--muted,#4d6076);margin:0 0 4px;padding:0 6px;font:500 12px DM Mono,monospace}.slot-menu button{color:var(--ink,#172536);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:8px;padding:9px 10px;font-size:14px;font-weight:700;display:flex}.slot-menu button:hover{background:var(--sidebar-hover,#edf5fb)}.slot-menu button svg{color:var(--primary,#1769aa)}.slot-menu-block:hover{background:#f1ebfa}.slot-menu-block svg{color:var(--st-bloqueio-line)!important}.slot-menu-close{justify-content:center;color:var(--muted,#4d6076)!important;font-size:13px!important;font-weight:600!important}.appointment.overbook{box-shadow:inset 0 0 0 2px var(--st-encaixe), inset 0 0 0 6px #ffffff8c}.appointment.overbook:after{content:"ENCAIXE";background:var(--st-encaixe);letter-spacing:.06em;color:#fff;border-radius:4px;padding:1px 5px;font:700 8px DM Mono,monospace;position:absolute;bottom:4px;right:7px}.appointment-overbook{cursor:pointer;background:#fff;border:1px solid #f2c9a8;border-radius:9px;align-items:flex-start;gap:9px;margin-top:9px;padding:10px 11px;display:flex}.appointment-overbook input{width:17px;height:17px;accent-color:var(--st-encaixe);margin-top:2px}.appointment-overbook b{color:#7a4a10;font-size:14px;display:block}.appointment-overbook small{color:#8a6a3a;margin-top:2px;font-size:12.5px;line-height:1.4;display:block}.appointment-conflict p{margin:0}.month-cell-actions{z-index:2;opacity:0;pointer-events:none;gap:6px;transition:opacity .12s;display:flex;position:absolute;top:6px;right:6px}.month-cell:hover .month-cell-actions,.month-cell-actions:focus-within{opacity:1;pointer-events:auto}.month-cell-actions>button{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);cursor:pointer;border-radius:7px;place-items:center;width:26px;height:26px;padding:0;display:grid;position:static;box-shadow:0 2px 6px #1725361a}.month-cell-actions .month-cell-add{opacity:1;color:var(--primary,#1769aa);align-self:auto;margin:0;font-size:16px;line-height:1}.month-cell-actions .month-cell-add:hover{background:var(--sidebar-hover,#edf5fb)}.month-cell-block{color:var(--st-bloqueio-line)}.month-cell-block:hover{background:#f1ebfa;border-color:#b9a1e0}@media (hover:none){.month-cell-actions{opacity:1;pointer-events:auto}}@media (width<=720px){.month-cell-actions{display:none}}.appointment-day-chips button.closed{opacity:.55;cursor:not-allowed}.appointment-day-chips button.closed small{color:var(--muted,#4d6076);font-weight:500}.agenda-unit-filter{letter-spacing:.1em;text-transform:uppercase;color:var(--muted,#4d6076);align-items:center;gap:7px;margin-right:8px;font:500 10px DM Mono,monospace;display:inline-flex}.agenda-unit-filter select{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);height:34px;color:var(--ink,#172536);letter-spacing:0;text-transform:none;border-radius:8px;padding:0 9px;font:600 13px Manrope,sans-serif}.appointment-unit-field{flex-direction:column;gap:5px;display:flex}.agenda-unit-badge{border:1px solid var(--line,#dce4ee);background:var(--sidebar-hover,#edf5fb);color:var(--primary,#1769aa);border-radius:99px;align-items:center;gap:7px;margin-right:8px;padding:6px 12px;font-size:13px;font-weight:800;display:inline-flex}.agenda-clash-banner{color:#7a4a10;background:#fdf3e8;border:1px solid #f2c9a8;border-radius:10px;align-items:center;gap:10px;margin:0 0 12px;padding:12px 15px;font-size:14px;line-height:1.45;display:flex}.agenda-clash-banner svg{color:#a3660f;flex:none}.appointment.unit-clash{box-shadow:inset 0 0 0 2px #c0392b,inset 0 0 0 6px #ffffff80}.appointment.unit-clash:before{content:"⚠ CHOQUE";letter-spacing:.05em;color:#fff;background:#c0392b;border-radius:4px;padding:1px 5px;font:700 8px DM Mono,monospace;position:absolute;top:4px;right:7px}.appointment-clash{color:#7a4a10;background:#fdf3e8;border:1px solid #f2c9a8;border-radius:10px;align-items:flex-start;gap:9px;margin:0 0 4px;padding:11px 13px;font-size:13.5px;line-height:1.45;display:flex}.appointment-clash svg{color:#a3660f;flex:none;margin-top:1px}.agenda-legend{border-bottom:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);flex-wrap:wrap;align-items:center;gap:14px;padding:10px 17px;display:flex}.agenda-legend-keys{flex-wrap:wrap;align-items:center;gap:15px;margin-right:auto;display:flex}.legend-key{color:var(--muted,#4d6076);align-items:center;gap:7px;font-size:12.5px;display:inline-flex}.legend-key:before{content:"";border-left:3px solid;border-radius:4px;width:13px;height:13px}.legend-key.st-agendado:before{background:var(--st-agendado-bg);border-color:var(--st-agendado-line)}.legend-key.st-confirmado:before{background:var(--st-confirmado-bg);border-color:var(--st-confirmado-line)}.legend-key.st-chegou:before{background:var(--st-chegou-bg);border-color:var(--st-chegou-line)}.legend-key.st-faltou:before{background:var(--st-faltou-bg);border-color:var(--st-faltou-line)}.legend-key.st-bloqueado:before{border-color:var(--st-bloqueio-line);background:repeating-linear-gradient(135deg, var(--st-bloqueio-tint) 0, var(--st-bloqueio-tint) 3px, transparent 3px, transparent 7px)}.agenda-legend-toggle{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);color:var(--ink,#172536);cursor:pointer;border-radius:99px;align-items:center;gap:8px;padding:6px 13px;font-size:13px;font-weight:700;display:inline-flex}.agenda-legend-toggle input{width:15px;height:15px;accent-color:var(--primary,#1769aa);cursor:pointer;margin:0}.theme-dark .agenda-legend{background:#14202d;border-color:#2b3a4b}.theme-dark .agenda-legend-toggle{color:#edf6ff;background:#17212e;border-color:#2e4053}.provider-counts{align-items:center;gap:5px;display:flex}.provider-counts i{color:#6d7d90;background:#edf3f7;border-radius:5px;padding:3px 7px;font:500 10px DM Mono,monospace}.provider-counts i.is-block{color:var(--st-bloqueio-ink);background:#f1ebfa}.theme-dark .provider-counts i{color:#a4b3c5;background:#1e2b39}.agenda-block-band{z-index:2;border:0;border-top:1px solid var(--st-bloqueio-line);border-bottom:1px solid var(--st-bloqueio-line);background:repeating-linear-gradient(135deg, var(--st-bloqueio-tint) 0, var(--st-bloqueio-tint) 7px, transparent 7px, transparent 16px);cursor:pointer;text-align:left;padding:0;position:absolute;left:0;right:0}.agenda-block-band:hover{background:repeating-linear-gradient(135deg, var(--st-bloqueio-tint) 0, var(--st-bloqueio-tint) 5px, transparent 5px, transparent 11px)}.agenda-block-edge{background:var(--st-bloqueio-line);opacity:.7;width:4px;position:absolute;top:0;bottom:0;left:0}.agenda-block-label{background:var(--st-bloqueio-line);color:#fff;border-radius:99px;align-items:center;gap:6px;width:fit-content;max-width:calc(100% - 20px);padding:3px 10px 3px 8px;font:800 11px Manrope,sans-serif;display:inline-flex;position:absolute;top:5px;left:10px;right:10px;box-shadow:0 1px 4px #472d7852}.agenda-block-label small{opacity:.85;white-space:nowrap;font:500 10px DM Mono,monospace}.agenda-block-label svg{flex:none}.agenda-calendar .appointment{z-index:3}.agenda-calendar .status-cancelado{opacity:.72;border-left-style:dashed;text-decoration:none;border-color:var(--st-cancelado-line)!important;color:var(--st-cancelado-ink)!important;background:repeating-linear-gradient(135deg,#f7f9fb 0 6px,#eef2f6 6px 12px)!important}.theme-dark .agenda-calendar .status-cancelado{color:#93a3b6!important;background:repeating-linear-gradient(135deg,#1b2735 0 6px,#16202b 6px 12px)!important;border-color:#43536a!important}.week-view{flex-direction:column;display:flex}.week-grid{border-top:1px solid var(--line,#dce4ee);background:var(--line,#dce4ee);grid-template-columns:repeat(5,minmax(168px,1fr)) repeat(2,minmax(106px,.62fr));gap:1px;display:grid;overflow-x:auto}.week-day{background:var(--surface,#fff);flex-direction:column;min-height:430px;padding:12px 11px 0;display:flex}.week-day.closed{background:var(--surface-muted,#f8fafc);background-image:repeating-linear-gradient(135deg,#92a1b20f 0 8px,#0000 8px 18px)}.week-day-head{align-items:flex-start;gap:8px;display:flex}.week-day-open{text-align:left;cursor:pointer;background:0 0;border:0;padding:0;display:block}.week-day-name{letter-spacing:.16em;text-transform:uppercase;color:var(--muted,#4d6076);font:500 10.5px DM Mono,monospace;display:block}.week-day-number{letter-spacing:-.03em;color:var(--ink,#172536);margin-top:3px;font-size:26px;font-weight:800;line-height:1;display:block}.week-day-open:hover .week-day-number,.week-day.today .week-day-name{color:var(--primary,#1769aa)}.week-day.today .week-day-number{background:var(--primary,#1769aa);color:#fff;border-radius:12px;place-items:center;width:38px;height:38px;font-size:20px;display:grid}.week-day-actions{opacity:.35;gap:5px;margin-left:auto;transition:opacity .15s;display:flex}.week-day:hover .week-day-actions,.week-day-actions:focus-within{opacity:1}.week-day-actions button{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);width:27px;height:27px;color:var(--primary,#1769aa);cursor:pointer;border-radius:8px;place-items:center;padding:0;display:grid}.week-day-actions button:last-child{color:var(--st-bloqueio-line)}.week-day-actions button:hover{background:var(--sidebar-hover,#edf5fb)}.week-day-actions button:last-child:hover{background:#f1ebfa;border-color:#b9a1e0}.week-day-meta{color:var(--muted,#4d6076);flex-wrap:wrap;align-items:center;gap:7px;margin:9px 0 7px;font-size:12.5px;display:flex}.week-day-meta b{color:var(--ink,#172536);font-weight:800}.week-day-chip{border-radius:5px;padding:1px 7px;font:500 10.5px DM Mono,monospace}.week-day-chip.is-block{color:var(--st-bloqueio-ink);background:#f1ebfa}.week-day-chip.is-cancelled{color:#8b98a8;background:#f1f4f7}.week-day-free{color:var(--teal,#0d8b8d);white-space:nowrap;margin-left:auto;font:500 11.5px DM Mono,monospace}.week-day-meter{background:#e8edf3;border-radius:99px;height:4px;margin-bottom:10px;display:flex;overflow:hidden}.week-day-meter i{height:100%;display:block}.week-day-meter .booked{background:var(--primary,#1769aa)}.week-day-meter .blocked{background:var(--st-bloqueio-line);opacity:.85}.week-day-meter.empty{background:0 0}.theme-dark .week-day-meter{background:#23303f}.week-day-body{flex-direction:column;flex:1;gap:3px;max-height:340px;padding-bottom:12px;display:flex;overflow-y:auto}.week-day-body::-webkit-scrollbar{width:7px}.week-day-body::-webkit-scrollbar-thumb{background:#cfd8e3;border-radius:99px}.week-period{flex-direction:column;gap:3px;display:flex}.week-period-title{letter-spacing:.15em;text-transform:uppercase;color:#93a1b2;align-items:center;gap:8px;margin:7px 2px 2px;font:500 9.5px DM Mono,monospace;display:flex}.week-period:first-child .week-period-title{margin-top:0}.week-period-title:after{content:"";background:var(--line,#dce4ee);flex:1;height:1px}.week-entry{border:1px solid #0000;border-left:3px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);text-align:left;cursor:pointer;border-radius:8px;grid-template-columns:auto 1fr;align-items:start;gap:9px;width:100%;padding:8px 10px 8px 9px;transition:background .12s,border-color .12s;display:grid}.week-entry:hover{background:var(--sidebar-hover,#edf5fb);border-color:var(--line,#dce4ee)}.week-entry-time{color:var(--muted,#4d6076);padding-top:1px;font:500 11.5px DM Mono,monospace}.week-entry-body{min-width:0}.week-entry-name{color:var(--ink,#172536);overflow-wrap:break-word;font-size:13.5px;font-weight:700;line-height:1.28;display:block}.week-entry-status{letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#4d6076);margin-top:2px;font:500 10px DM Mono,monospace;display:block}.week-entry-tag{background:var(--st-encaixe);color:#fff;letter-spacing:.06em;vertical-align:1px;border-radius:4px;margin-left:6px;padding:0 5px;font:700 8.5px DM Mono,monospace;display:inline-block}.week-entry.is-overbook{box-shadow:inset 0 0 0 1.5px var(--st-encaixe)}.week-entry.st-agendado{border-left-color:var(--st-agendado-line);background:var(--st-agendado-bg)}.week-entry.st-agendado .week-entry-status{color:var(--st-agendado-ink)}.week-entry.st-confirmado{border-left-color:var(--st-confirmado-line);background:var(--st-confirmado-bg)}.week-entry.st-confirmado .week-entry-status{color:var(--st-confirmado-ink)}.week-entry.st-chegou{border-left-color:var(--st-chegou-line);background:var(--st-chegou-bg)}.week-entry.st-atendimento{border-left-color:var(--st-atendimento-line);background:var(--st-atendimento-bg)}.week-entry.st-chegou .week-entry-status{color:var(--st-chegou-ink)}.week-entry.st-atendimento .week-entry-status{color:var(--st-atendimento-ink)}.week-entry.st-concluido{border-left-color:var(--st-concluido-line);background:var(--st-concluido-bg)}.week-entry.st-concluido .week-entry-status{color:var(--st-concluido-ink)}.week-entry.st-faltou{border-left-color:var(--st-faltou-line);background:var(--st-faltou-bg);border-left-style:dashed}.week-entry.st-faltou .week-entry-status{color:var(--st-faltou-ink)}.week-entry.st-cancelado{border-left-color:var(--st-cancelado-line);opacity:.72;background:0 0;border-left-style:dashed}.week-entry.st-cancelado .week-entry-name{color:var(--muted,#4d6076);font-weight:600}.week-entry.st-bloqueado{border-left-color:var(--st-bloqueio-line);background:repeating-linear-gradient(135deg, var(--st-bloqueio-tint) 0, var(--st-bloqueio-tint) 6px, transparent 6px, transparent 14px)}.week-entry.st-bloqueado .week-entry-status{color:var(--st-bloqueio-ink)}.week-entry.is-block{border-left-color:var(--st-bloqueio-line);background:repeating-linear-gradient(135deg, var(--st-bloqueio-tint) 0, var(--st-bloqueio-tint) 6px, transparent 6px, transparent 14px)}.week-entry.is-block .week-entry-name{color:var(--st-bloqueio-ink);font-weight:800}.week-entry.is-block .week-entry-status{color:var(--st-bloqueio-ink)}.week-entry.is-block .week-entry-time{color:var(--st-bloqueio-ink);opacity:.8}.week-day-empty{text-align:center;margin:auto 0;padding:24px 10px}.week-day-empty-icon{background:var(--sidebar-hover,#edf5fb);width:40px;height:40px;color:var(--primary,#1769aa);border-radius:12px;place-items:center;margin:0 auto 10px;display:grid}.week-day.closed .week-day-empty-icon{color:#93a1b2;background:#eef1f5}.week-day-empty b{color:var(--ink,#172536);font-size:13.5px;font-weight:800;display:block}.week-day-empty small{color:var(--muted,#4d6076);margin-top:4px;font-size:12px;line-height:1.4;display:block}.week-day-empty button{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);color:var(--primary,#1769aa);cursor:pointer;border-radius:99px;margin-top:12px;padding:7px 15px;font-size:12.5px;font-weight:800}.week-day-empty button:hover{background:var(--sidebar-hover,#edf5fb)}.week-foot{border-top:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);color:var(--muted,#4d6076);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:11px 17px;font-size:12.5px;display:flex}.week-foot b{color:var(--ink,#172536)}.theme-dark .week-grid{background:#2b3a4b;border-color:#2b3a4b}.theme-dark .week-day{background:#17212e}.theme-dark .week-day.closed{background:#14202d}.theme-dark .week-day-actions button{background:#17212e;border-color:#2e4053}.theme-dark .week-entry{background:#1b2735}.theme-dark .week-entry.st-cancelado{background:0 0}.theme-dark .week-entry.is-block{background:repeating-linear-gradient(135deg,#d6a5602e 0 6px,#d6a5600d 6px 14px)}.theme-dark .week-entry.is-block .week-entry-name{color:#e8c48d}.theme-dark .week-entry.is-block .week-entry-status,.theme-dark .week-entry.is-block .week-entry-time{color:#cfa96f}.theme-dark .week-entry:hover{background:#1d3045}.theme-dark .week-foot{background:#14202d;border-color:#2b3a4b}:root,.theme-light{--st-agendado-bg:#e6f1fb;--st-agendado-line:#2f7fc4;--st-agendado-ink:#17537f;--st-confirmado-bg:#fdf4d3;--st-confirmado-line:#d3a208;--st-confirmado-ink:#6b5200;--st-chegou-bg:#e2f6e9;--st-chegou-line:#1f9d55;--st-chegou-ink:#14663a;--st-atendimento-bg:#d4efdf;--st-atendimento-line:#14834a;--st-atendimento-ink:#0f5230;--st-concluido-bg:#f2f5f8;--st-concluido-line:#93a3b5;--st-concluido-ink:#4f5f70;--st-faltou-bg:#fdeae6;--st-faltou-line:#d1442a;--st-faltou-ink:#8c2d1a;--st-cancelado-line:#b6c1cf;--st-cancelado-ink:#6b7a8c;--st-bloqueio-line:#6f4bb0;--st-bloqueio-ink:#472d78;--st-bloqueio-tint:#7c56c433;--st-encaixe:#a3660f}.theme-dark{--st-agendado-bg:#1b2f43;--st-agendado-line:#5aa2e0;--st-agendado-ink:#cfe6fb;--st-confirmado-bg:#332c14;--st-confirmado-line:#d9b13c;--st-confirmado-ink:#f5e3ab;--st-chegou-bg:#163227;--st-chegou-line:#35b083;--st-chegou-ink:#c8f0dd;--st-atendimento-bg:#123326;--st-atendimento-line:#2ec27e;--st-atendimento-ink:#b6ecd1;--st-concluido-bg:#1e2a36;--st-concluido-line:#708496;--st-concluido-ink:#c3cfdb;--st-faltou-bg:#35211d;--st-faltou-line:#d1604a;--st-faltou-ink:#f5c6b7;--st-cancelado-line:#43536a;--st-cancelado-ink:#93a3b6;--st-bloqueio-line:#9a7ad6;--st-bloqueio-ink:#d9c9f5;--st-bloqueio-tint:#9a7ad633;--st-encaixe:#d6a55e}.lume-hatch-block{background:repeating-linear-gradient(135deg, var(--st-bloqueio-tint) 0, var(--st-bloqueio-tint) 6px, transparent 6px, transparent 14px)}.agenda-calendar .appointment.status-agendado{background:var(--st-agendado-bg);border-color:var(--st-agendado-line);color:var(--st-agendado-ink)}.agenda-calendar .appointment.status-confirmado{background:var(--st-confirmado-bg);border-color:var(--st-confirmado-line);color:var(--st-confirmado-ink)}.agenda-calendar .appointment.status-chegou{background:var(--st-chegou-bg);border-color:var(--st-chegou-line);color:var(--st-chegou-ink)}.agenda-calendar .appointment.status-atendimento{background:var(--st-atendimento-bg);border-color:var(--st-atendimento-line);color:var(--st-atendimento-ink)}.agenda-calendar .appointment.status-concluido{background:var(--st-concluido-bg);border-color:var(--st-concluido-line);color:var(--st-concluido-ink);opacity:1}.agenda-calendar .appointment.status-faltou{background:var(--st-faltou-bg);border-color:var(--st-faltou-line);color:var(--st-faltou-ink);opacity:1;border-left-style:dashed}.agenda-calendar .appointment.status-bloqueado{background:repeating-linear-gradient(135deg, var(--st-bloqueio-tint) 0, var(--st-bloqueio-tint) 6px, transparent 6px, transparent 14px);border-color:var(--st-bloqueio-line);color:var(--st-bloqueio-ink)}.appointment-fitin{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);cursor:pointer;border-radius:11px;align-items:flex-start;gap:10px;margin:2px 0 4px;padding:11px 13px;transition:border-color .14s,background .14s;display:flex}.appointment-fitin input{width:18px;height:18px;accent-color:var(--st-encaixe,#a3660f);cursor:pointer;flex:none;margin:1px 0 0}.appointment-fitin b{color:var(--ink,#172536);align-items:center;gap:7px;font-size:14.5px;display:flex}.appointment-fitin b i{background:var(--st-encaixe,#a3660f);color:#fff;letter-spacing:.06em;border-radius:4px;padding:1px 6px;font:700 9px DM Mono,monospace}.appointment-fitin small{color:var(--muted,#4d6076);margin-top:3px;font-size:12.5px;line-height:1.4;display:block}.appointment-fitin.on{background:#fdf6ec;border-color:#e0b070}.appointment-fitin.on b{color:#7a4a10}.appointment-fitin.on small{color:#8a6a3a}.appointment-fitin.needed{background:#fdece6;border-color:#e9a08c}.appointment-fitin.needed b{color:#8c2d1a}.appointment-fitin.needed small{color:#a04a33}.theme-dark .appointment-fitin{background:#1b2735;border-color:#2e4053}.theme-dark .appointment-fitin.on{background:#2c2417;border-color:#6b5228}.theme-dark .appointment-fitin.on b{color:#f0cf9a}.theme-dark .appointment-fitin.needed{background:#33201c;border-color:#7a4034}.theme-dark .appointment-fitin.needed b{color:#f5b8a5}.agenda-colors-card{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);box-shadow:var(--shadow,none);border-radius:12px;margin-bottom:22px;padding:22px 24px 24px}.agenda-colors-card>header{flex-wrap:wrap;align-items:flex-start;gap:20px;margin-bottom:20px;display:flex}.agenda-colors-card>header>div{flex:1;min-width:260px}.agenda-colors-card h2{letter-spacing:-.02em;color:var(--ink,#172536);margin:6px 0 0;font-size:21px;font-weight:800}.agenda-colors-card>header p:last-child{max-width:64ch;color:var(--muted,#4d6076);margin:8px 0 0;font-size:14px;line-height:1.5}.agenda-colors-actions{flex-wrap:wrap;gap:9px;display:flex}.agenda-colors-title{letter-spacing:.14em;text-transform:uppercase;color:var(--muted,#4d6076);align-items:center;gap:7px;margin:0 0 10px;font:500 10.5px DM Mono,monospace;display:flex}.agenda-colors-preset-grid{grid-template-columns:repeat(auto-fit,minmax(198px,1fr));gap:11px;margin-bottom:22px;display:grid}.agenda-colors-preset{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);text-align:left;cursor:pointer;border-radius:11px;padding:13px 14px;transition:border-color .14s,background .14s;display:block}.agenda-colors-preset:hover{border-color:var(--primary,#1769aa);background:var(--sidebar-hover,#edf5fb)}.agenda-colors-preset.selected{border-color:var(--primary,#1769aa);background:var(--sidebar-hover,#edf5fb);box-shadow:inset 0 0 0 1px var(--primary,#1769aa)}.agenda-colors-swatches{gap:4px;margin-bottom:9px;display:flex}.agenda-colors-swatches i{border-radius:3px;width:100%;height:9px;display:block}.agenda-colors-preset b{color:var(--ink,#172536);align-items:center;gap:6px;font-size:14.5px;display:flex}.agenda-colors-preset b svg{color:var(--primary,#1769aa)}.agenda-colors-preset small{color:var(--muted,#4d6076);margin-top:3px;font-size:12.5px;line-height:1.4;display:block}.agenda-colors-body{grid-template-columns:minmax(280px,1fr) minmax(320px,1.15fr);align-items:start;gap:22px;display:grid}.agenda-colors-row{cursor:pointer;border-radius:9px;align-items:center;gap:11px;padding:7px 10px;display:flex}.agenda-colors-row:hover{background:var(--surface-muted,#f8fafc)}.agenda-colors-row input[type=color]{border:1px solid var(--line,#dce4ee);cursor:pointer;background:0 0;border-radius:7px;flex:none;width:34px;height:30px;padding:0}.agenda-colors-row input[type=color]::-webkit-color-swatch-wrapper{padding:3px}.agenda-colors-row input[type=color]::-webkit-color-swatch{border:0;border-radius:4px}.agenda-colors-row-name{color:var(--ink,#172536);flex:1;font-size:14px;font-weight:700}.agenda-colors-row-hex{color:var(--muted,#4d6076);text-transform:uppercase;font:500 12px DM Mono,monospace}.agenda-colors-reset{width:24px;height:24px;color:var(--muted,#4d6076);cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;padding:0;display:grid}.agenda-colors-reset:hover{background:var(--sidebar-hover,#edf5fb);color:var(--primary,#1769aa)}.agenda-colors-reset-all{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);color:var(--primary,#1769aa);cursor:pointer;border-radius:99px;margin-top:10px;padding:8px 14px;font-size:12.5px;font-weight:800}.agenda-colors-reset-all:disabled{opacity:.45;cursor:default}.agenda-colors-preview-day{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);border-radius:11px;flex-direction:column;gap:4px;padding:12px;display:flex}.agenda-colors-preview-band{border-top:1px solid;border-bottom:1px solid;border-radius:3px;height:46px;margin-bottom:2px;position:relative}.agenda-colors-preview-band span{color:#fff;border-radius:99px;align-items:center;gap:5px;padding:3px 9px;font-size:10.5px;font-weight:800;display:inline-flex;position:absolute;top:5px;left:8px}.agenda-colors-preview-card{border-left:3px solid;border-radius:7px;align-items:baseline;gap:9px;padding:8px 11px;display:flex}.agenda-colors-preview-card.faded{opacity:.7;border-left-style:dashed;background:repeating-linear-gradient(135deg,#f7f9fb 0 6px,#eef2f6 6px 12px)!important}.agenda-colors-preview-card span{opacity:.85;flex:none;font:500 11.5px DM Mono,monospace}.agenda-colors-preview-card b{text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:13.5px;font-weight:700;overflow:hidden}.agenda-colors-preview-card i{letter-spacing:.07em;text-transform:uppercase;opacity:.8;flex:none;font:800 9px DM Mono,monospace}.agenda-colors-preview-note{color:var(--muted,#4d6076);margin-top:9px;font-size:12px;line-height:1.45;display:block}.theme-dark .agenda-colors-card{background:#17212e;border-color:#2b3a4b}.theme-dark .agenda-colors-preset,.theme-dark .agenda-colors-preview-day{background:#1b2735;border-color:#2e4053}.theme-dark .agenda-colors-preset.selected{background:#1d3045}.theme-dark .agenda-colors-row:hover{background:#1b2735}.theme-dark .agenda-colors-reset-all{background:#17212e;border-color:#2e4053}.theme-dark .agenda-colors-preview-card.faded{background:repeating-linear-gradient(135deg,#1b2735 0 6px,#16202b 6px 12px)!important}@media (width<=900px){.agenda-colors-body{grid-template-columns:1fr}}.appointment-patient-new{color:var(--primary,#1769aa);font-size:13.5px;font-weight:700;border-top:1px solid var(--line,#dce4ee)!important;flex-direction:row!important;align-items:center!important;gap:8px!important}.appointment-patient-new:hover{background:var(--sidebar-hover,#edf5fb)!important}.appointment-patient-new svg{flex:none}.appointment-patient-new b{font-size:inherit!important;color:inherit!important;display:inline!important}.appointment-patient-picked{color:var(--teal,#0d8b8d);align-items:center;gap:6px;margin-top:5px;font-size:12px;font-weight:700;display:inline-flex}.appointment-newpatient{background:var(--sidebar-hover,#edf5fb);border:1px solid #9dc4e6;border-radius:12px;margin:4px 0 8px;padding:13px 14px}.appointment-newpatient-title{color:#1d4a6e;align-items:center;gap:7px;margin:0 0 11px;font:800 13px Manrope,sans-serif;display:flex}.appointment-newpatient-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.appointment-newpatient-grid label:first-child{grid-column:1/-1}.appointment-newpatient-grid input,.appointment-newpatient-grid select{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);width:100%;height:38px;color:var(--ink,#172536);border-radius:8px;padding:0 10px;font:600 14px Manrope,sans-serif}.appointment-newpatient-foot{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:14px;margin-top:12px;display:flex}.appointment-newpatient-foot small{color:#35607f;flex:1;min-width:200px;font-size:12.5px;line-height:1.4}.appointment-newpatient-foot span{gap:8px;display:flex}.theme-dark .appointment-newpatient{background:#16283a;border-color:#2e5876}.theme-dark .appointment-newpatient-title{color:#cfe4f7}.theme-dark .appointment-newpatient-foot small{color:#a9c6dd}.theme-dark .appointment-newpatient-grid input,.theme-dark .appointment-newpatient-grid select{color:#edf6ff;background:#111a24;border-color:#34475c}.patient-form-modal footer{flex-wrap:wrap}.schedule-after-save{background:var(--teal,#0d8b8d)!important;border-color:var(--teal,#0d8b8d)!important}.agenda-legend-colors{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);color:var(--ink,#172536);cursor:pointer;border-radius:99px;align-items:center;gap:7px;padding:6px 13px;font-size:13px;font-weight:700;display:inline-flex}.agenda-legend-colors:hover{border-color:var(--primary,#1769aa);color:var(--primary,#1769aa)}.agenda-legend-colors svg{color:var(--primary,#1769aa)}.agenda-colors-modal{max-width:940px;max-height:calc(100vh - 40px);overflow-y:auto}.agenda-colors-modal .agenda-colors-card{box-shadow:none;border:0;margin:0;padding:0}.theme-dark .agenda-legend-colors{color:#edf6ff;background:#17212e;border-color:#2e4053}.agenda-colors-card .agenda-colors-row{font:inherit;letter-spacing:normal;text-transform:none;color:inherit;flex-direction:row;align-items:center;gap:11px}.agenda-colors-card .agenda-colors-actions{flex:none}.agenda-colors-card .agenda-colors-actions .button{white-space:nowrap}.agenda-colors-card.compact>header{align-items:center;margin-bottom:16px}.agenda-colors-card.compact>header p{margin:0}.agenda-colors-body{grid-template-columns:repeat(auto-fit,minmax(272px,1fr))}.agenda-colors-modal{width:min(960px,100vw - 32px);max-width:none}.agenda-colors-card>header .button{white-space:nowrap;border-radius:8px;width:auto;height:37px;padding:0 15px;font-size:13px;font-weight:800}.agenda-colors-card>header .button.primary{background:var(--primary,#1769aa);border-color:var(--primary,#1769aa);color:#fff}.agenda-colors-card>header .button.primary:disabled{opacity:.45}.agenda-colors-card>header .button.secondary{background:var(--surface,#fff);border-color:var(--line,#dce4ee);color:var(--ink,#172536)}.appointment-newpatient-foot .button:disabled{opacity:.45;cursor:default}.drawer-block-hint{color:var(--muted,#4d6076);margin:2px 0 0;font-size:12.5px;line-height:1.45}.theme-dark .agenda-clash-banner,.theme-dark .appointment-clash{color:#f0cf9a;background:#33291a;border-color:#7a5a2a}.theme-dark .agenda-clash-banner svg,.theme-dark .appointment-clash svg{color:#e2a558}.theme-dark .appointment-overbook{background:#2c2417;border-color:#6b5228}.theme-dark .appointment-overbook b{color:#f0cf9a}.theme-dark .appointment-overbook small{color:#cbab7d}.theme-dark .appointment-conflict{color:#f5b8a5;background:#33201c;border-color:#7a4034}.provider-counts i.is-cancelled,.week-day-chip.is-cancelled{color:#57667c;background:#e7ebf1}.appointment .appt-type{letter-spacing:.01em;color:inherit;font-family:Manrope,sans-serif;font-style:normal;font-weight:800}.appointment.compact>span .appt-type{font-size:12px}.patient-age{color:var(--ink,#172536);font-weight:800}.week-entry-type{letter-spacing:0;text-transform:none;color:inherit;margin-top:2px;font:800 12px/1.3 Manrope,sans-serif;display:block}.appointment-type-field .field-label{white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.form-row:has(>.appointment-type-field){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.appointment-type-field .req{color:#8c2d1a;letter-spacing:.07em;text-transform:uppercase;background:#fdeae6;border-radius:4px;padding:1px 6px;font:700 9px DM Mono,monospace}.theme-dark .appointment-type-field .req{color:#f5b8a5;background:#35211d}.appointment-patient-required{color:#8c2d27;background:#fdeceb;border:1px solid #f2b8b5;border-radius:10px;align-items:flex-start;gap:9px;margin:7px 0 4px;padding:11px 13px;display:flex}.appointment-patient-required svg{flex:none;margin-top:1px}.appointment-patient-required b{font-size:13.5px;display:block}.appointment-patient-required small{margin-top:3px;font-size:12.5px;font-weight:600;line-height:1.45;display:block}.appointment-patient-required button{align-items:center;gap:7px;margin-top:9px;display:inline-flex}.theme-dark .appointment-patient-required{color:#f5b8a5;background:#33201c;border-color:#7a4034}.appointment-modal footer .button:disabled{opacity:.45;cursor:not-allowed}.drawer-actions>.drawer-missing-record{color:#8c2d27;background:#fdeceb;border:1px solid #f2b8b5;border-radius:10px;padding:12px 13px;display:block}.drawer-actions>.drawer-missing-record>b{align-items:center;gap:7px;font-size:13.5px;display:flex}.drawer-actions>.drawer-missing-record>b svg{flex:none}.drawer-actions>.drawer-missing-record>p{margin:5px 0 0;font-size:12.5px;font-weight:600;line-height:1.45}.drawer-actions>.drawer-missing-record>button{white-space:nowrap;justify-content:center;align-items:center;gap:8px;width:100%;margin-top:11px;font-size:12px;display:inline-flex}.theme-dark .drawer-actions>.drawer-missing-record{color:#f5b8a5;background:#33201c;border-color:#7a4034}.appointment-newpatient-erro{color:#8c2d27;margin:9px 0 0;font-size:12.5px;font-weight:700}.appointment-newpatient-grid input[aria-invalid=true]{border-color:#d98177}.theme-dark .appointment-newpatient-erro{color:#f5b8a5}.aviso-de-faltas{color:#8c2d27;background:#fdeceb;border:1px solid #f2b8b5;border-radius:10px;align-items:flex-start;gap:8px;margin:8px 0 4px;padding:10px 12px;font-size:13px;font-weight:700;line-height:1.45;display:flex}.aviso-de-faltas svg{flex:none;margin-top:1px}.theme-dark .aviso-de-faltas{color:#f5b8a5;background:#33201c;border-color:#7a4034}.retornos-modal{flex-direction:column;width:min(620px,100%);max-height:min(86vh,760px);display:flex}.retornos-lista{gap:6px;margin-top:14px;display:grid;overflow-y:auto}.retornos-lista button{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);color:var(--ink,#172536);text-align:left;cursor:pointer;border-radius:10px;grid-template-rows:auto auto;grid-template-columns:118px minmax(0,1fr) auto;align-items:center;column-gap:12px;padding:10px 12px;display:grid}.retornos-lista button:hover{background:var(--sidebar-hover,#edf5fb)}.retornos-lista .retorno-quando{color:var(--primary,#1769aa);grid-row:1/3;font:700 12.5px DM Mono,monospace}.retornos-lista b{text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.retornos-lista small{color:var(--muted,#617185);grid-column:2;font-size:12px;font-weight:600}.retornos-lista .retorno-telefone{color:var(--ink,#172536);white-space:nowrap;grid-area:1/3/3;font:600 12.5px DM Mono,monospace}.theme-dark .retornos-lista button{color:#eff6ff;background:#17212e;border-color:#2b3a4b}@media (width<=630px){.retornos-lista button{grid-template-columns:1fr}.retornos-lista .retorno-quando,.retornos-lista .retorno-telefone,.retornos-lista small{grid-area:auto/1}}.agenda-calendar{--hour-px:140px}.agenda-calendar .slot{height:var(--hour-px)}.agenda-calendar .calendar-column{background:repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour-px) - 1px), #e6ecf3 var(--hour-px))}.agenda-calendar .calendar-column:before{content:"";z-index:0;pointer-events:none;background:repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour-px) / 2 - 1px), #f1f5f9 calc(var(--hour-px) / 2));position:absolute;inset:0}.theme-dark .agenda-calendar .calendar-column{background:repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour-px) - 1px), #253343 var(--hour-px))}.theme-dark .agenda-calendar .calendar-column:before{background:repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour-px) / 2 - 1px), #1e2b39 calc(var(--hour-px) / 2))}.calendar-scroll .calendar-header{z-index:6;background:var(--surface,#fff);position:sticky;top:0}.agenda-calendar .appointment{min-height:0;padding:7px 9px;line-height:1.15}.agenda-calendar .appointment>span{margin-bottom:2px}.agenda-calendar .appointment b{text-overflow:ellipsis;white-space:nowrap;max-width:100%;line-height:1.2;overflow:hidden}.agenda-calendar .appointment small{text-overflow:ellipsis;white-space:nowrap;max-width:100%;margin-top:2px;line-height:1.15;overflow:hidden}.agenda-calendar .appointment i{margin-top:2px;padding-top:0}.agenda-calendar .appointment.narrow{padding:6px 8px}.agenda-calendar .appointment.narrow small,.agenda-calendar .appointment.narrow i{display:none}.agenda-calendar .appointment.narrow.overbook:after{bottom:3px;right:4px}.agenda-calendar .slot.has-menu{z-index:8}.agenda-calendar .now-line{z-index:4}.agenda-patient-filter{border-bottom:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);min-height:62px;color:var(--muted,#617185);grid-template-columns:auto auto minmax(220px,440px) auto 1fr;align-items:center;gap:10px;padding:10px 18px;display:grid}.agenda-patient-filter>svg{color:var(--primary,#1769aa)}.agenda-patient-filter label{color:var(--ink,#172536);white-space:nowrap;font-size:13px;font-weight:800}.agenda-patient-filter input{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);width:100%;height:41px;color:var(--ink,#172536);border-radius:7px;outline:0;padding:0 38px 0 12px;font-size:14px}.agenda-patient-filter input:focus{border-color:var(--primary,#1769aa);box-shadow:0 0 0 3px #1769aa1f}.agenda-patient-filter>button{width:32px;height:32px;color:var(--muted,#617185);background:0 0;border:0;place-items:center;margin-left:-46px;display:grid}.agenda-patient-filter>span{white-space:nowrap;justify-self:end;font-size:12px;font-weight:700}.theme-dark .agenda-patient-filter{color:#a4b3c5;background:#14202d;border-color:#2b3a4b}.theme-dark .agenda-patient-filter label{color:#eff6ff}.theme-dark .agenda-patient-filter input{color:#edf6ff;background:#111a24;border-color:#34475c}@media (width<=900px){.agenda-patient-filter{grid-template-columns:auto 1fr auto}.agenda-patient-filter label{grid-column:2}.agenda-patient-filter input{grid-area:2/1/auto/3}.agenda-patient-filter>button{grid-area:2/2;justify-self:end}.agenda-patient-filter>span{grid-area:2/3}}@media (width<=630px){.agenda-patient-filter{grid-template-columns:auto 1fr;padding:12px}.agenda-patient-filter label{grid-column:2}.agenda-patient-filter input{grid-column:1/3}.agenda-patient-filter>button{grid-column:2}.agenda-patient-filter>span{grid-area:3/1/auto/3;justify-self:start}}.official-documents-layout{grid-template-columns:minmax(460px,1fr) minmax(440px,.9fr);align-items:start}.official-template-panel{padding:24px}.a4-badge{color:#1769aa;background:#edf5fb;border:1px solid #cddfed;border-radius:6px;align-items:center;min-height:34px;padding:0 10px;font-size:11px;font-weight:800;display:inline-flex}.template-card.selected-template{border-color:#1769aa;box-shadow:0 0 0 2px #1769aa1a}.template-card>svg{color:#1769aa}.document-template-option{width:100%;color:inherit;text-align:left;cursor:pointer;transition:border-color .16s,box-shadow .16s,transform .16s;position:relative}.document-template-option:hover{border-color:#80afd3;transform:translateY(-1px);box-shadow:0 8px 20px #1f4c7017}.document-template-option:focus-visible{outline-offset:2px;outline:3px solid #1769aa38}.document-template-option .template-action{color:#1769aa;justify-content:space-between;align-items:center;margin-top:13px;font-size:11px;font-weight:800;display:flex}.document-template-option .template-selected-icon{color:#1769aa;position:absolute;top:14px;right:14px}.theme-dark .document-template-option .template-action,.theme-dark .document-template-option .template-selected-icon{color:#83d8b3}.document-editor{border-top:1px solid #dce4ee;gap:14px;margin-top:20px;padding-top:20px;display:grid}.document-editor label,.identity-form-grid label{color:#52657a;gap:7px;font-size:12px;font-weight:800;display:grid}.document-editor input,.document-editor textarea,.identity-form-grid input,.identity-form-grid select{color:#172536;background:#fff;border:1px solid #cfdce6;border-radius:7px;outline:0;width:100%;font-size:14px}.document-editor input,.identity-form-grid input,.identity-form-grid select{height:43px;padding:0 11px}.document-editor textarea{resize:vertical;min-height:180px;padding:12px;line-height:1.55}.document-editor input:focus,.document-editor textarea:focus,.identity-form-grid input:focus,.identity-form-grid select:focus{border-color:#1769aa;box-shadow:0 0 0 3px #1769aa1a}.document-editor-note,.print-standard-note{color:#315e80;background:#edf5fb;border-radius:7px;align-items:center;gap:10px;padding:12px;font-size:12px;line-height:1.45;display:flex}.official-document-preview{gap:14px;min-width:0;padding:16px;container-type:inline-size;background:#e9eef4!important}@media screen and (width>=1101px){.official-document-preview{overscroll-behavior:contain;max-height:calc(100vh - 112px);position:sticky;top:96px;overflow-y:auto}}.preview-toolbar{justify-content:space-between;align-items:center;gap:12px;display:flex}.preview-toolbar b,.preview-toolbar small{display:block}.preview-toolbar b{color:#20364d;font-size:13px}.preview-toolbar small{color:#6c7f92;margin-top:3px;font-size:11px}.print-sheet{aspect-ratio:210/297;color:#17212b;background:#fff;flex-direction:column;width:100%;min-height:0;padding:5.2cqw 5.8cqw;font-family:Georgia,Times New Roman,serif;display:flex;overflow:hidden;box-shadow:0 12px 35px #1f304329}.print-only,#print-root{display:none}.official-letterhead{border-bottom:.32cqw solid #1a4f78;grid-template-columns:11.6cqw 1fr;gap:2.3cqw;padding-bottom:2.6cqw;display:grid}.official-logo{color:#1a4f78;border:1px solid #cbd6df;border-radius:1cqw;grid-row:1/3;place-items:center;width:11.6cqw;height:10.3cqw;font:700 3.2cqw Manrope,sans-serif;display:grid;overflow:hidden}.official-logo img{object-fit:contain;width:100%;height:100%}.official-clinic-data{gap:.3cqw;display:grid}.official-clinic-data strong{color:#163d5e;font:800 2.9cqw Manrope,sans-serif}.official-clinic-data span,.official-contact span{color:#556370;font:1.6cqw/1.4 Manrope,sans-serif}.official-contact{grid-template-columns:1.3fr 1fr;gap:1.6cqw;display:grid}.official-contact span:last-child{text-align:right}.official-document-body{flex-direction:column;flex:1;min-height:0;padding:4.5cqw 0 2.9cqw;display:flex}.print-sheet .official-document-body h1{letter-spacing:.08em;text-align:center;margin:0 0 3.5cqw;font:700 3.1cqw/1.2 Georgia,Times New Roman,serif;color:#17212b!important}.official-patient{color:#27343f;border-top:1px solid #bac5ce;border-bottom:1px solid #bac5ce;grid-template-columns:1.35fr 1fr 1fr;gap:1.3cqw;padding:1.6cqw 0;font:1.6cqw/1.4 Manrope,sans-serif;display:grid}.official-document-copy{color:#111820;white-space:pre-wrap;flex:0 auto;min-height:0;padding-top:3.5cqw;font-family:Verdana,Geneva,DejaVu Sans,sans-serif;font-size:2.1cqw;line-height:1.7;overflow:hidden}.official-document-copy.justificado{text-align:justify;text-align-last:left;-webkit-hyphens:none;hyphens:none}.official-date{text-align:right;margin:auto 0 0;padding-top:2cqw;font-family:Verdana,Geneva,DejaVu Sans,sans-serif;font-size:1.9cqw}.official-signature{text-align:center;flex-direction:column;flex:none;align-items:center;width:43.5cqw;margin:0 auto;padding-bottom:6.8cqw;display:flex}.signature-space{place-items:end center;width:100%;height:8.5cqw;display:grid}.signature-space img{object-fit:contain;max-width:35.5cqw;max-height:8.2cqw}.signature-line{border-top:1px solid #202a33;width:100%}.official-signature strong{margin-top:1.1cqw;font:800 1.9cqw Manrope,sans-serif}.official-signature span{margin-top:.3cqw;font:700 1.6cqw Manrope,sans-serif}.official-signature small{color:#65717c;margin-top:.8cqw;font:1.5cqw Manrope,sans-serif}.official-identity-settings{background:#fff;border:1px solid #dce4ee;border-radius:11px;padding:25px;box-shadow:0 10px 28px #1d365014}.official-identity-settings>header{justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.official-identity-settings>header h2{font-size:25px}.official-identity-settings>header p:last-child{color:#617185;max-width:720px;font-size:13px;line-height:1.55}.identity-upload-grid{grid-template-columns:1fr 1fr;gap:12px;margin:22px 0;display:grid}.identity-upload{cursor:pointer;background:#f8fafc;border:1px dashed #aebfce;border-radius:9px;align-items:center;gap:15px;min-height:108px;padding:14px;display:flex;position:relative}.identity-upload input{opacity:0;width:1px;height:1px;position:absolute}.identity-image-preview{color:#1769aa;background:#fff;border:1px solid #d6e0e8;border-radius:7px;flex:0 0 116px;place-items:center;width:116px;height:74px;display:grid;overflow:hidden}.identity-image-preview img{object-fit:contain;width:100%;height:100%}.identity-upload>span:last-of-type{gap:4px;display:grid}.identity-upload b{color:#24384d;font-size:14px}.identity-upload small{color:#718196;font-size:11px}.identity-upload em{color:#1769aa;align-items:center;gap:6px;margin-top:8px;font-size:11px;font-style:normal;font-weight:800;display:inline-flex}.signature-placeholder{color:#566a7d;font:italic 18px Georgia,serif}.identity-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.wide-field{grid-column:span 2}.print-standard-note{margin-top:20px}.print-standard-note>div{gap:2px;display:grid}.theme-dark .official-identity-settings{box-shadow:none;background:#17212e;border-color:#2b3a4b}.theme-dark .official-identity-settings>header p:last-child,.theme-dark .identity-form-grid label{color:#a4b3c5}.theme-dark .identity-upload{background:#14202d;border-color:#40556b}.theme-dark .identity-image-preview{background:#111a24;border-color:#34475c}.signature-upload .identity-image-preview,.theme-dark .signature-upload .identity-image-preview{background:#fff}.identity-signature-note{color:var(--muted,#4d6076);margin:-10px 0 18px;font-size:13px}.identity-signature-note .link-button{color:#8c2d1a;font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:700;text-decoration:underline}.theme-dark .identity-signature-note .link-button{color:#ffb4a3}.theme-dark .identity-upload b{color:#eff6ff}.theme-dark .identity-form-grid input,.theme-dark .identity-form-grid select,.theme-dark .document-editor input,.theme-dark .document-editor textarea{color:#edf6ff;background:#111a24;border-color:#34475c}.theme-dark .document-editor{border-color:#2b3a4b}.theme-dark .document-editor label{color:#a4b3c5}.theme-dark .document-editor-note,.theme-dark .print-standard-note{color:#c4e6f3;background:#183544}@media (width<=1100px){.official-documents-layout{grid-template-columns:1fr}.official-document-preview{width:100%;max-width:752px;margin:0 auto;display:flex}}@media (width<=760px){.identity-upload-grid,.identity-form-grid{grid-template-columns:1fr}.wide-field{grid-column:auto}.official-identity-settings>header,.preview-toolbar{flex-direction:column;align-items:stretch}}@page{margin:0}@media print{html,body{width:auto;height:auto;min-height:0;background:#fff!important;margin:0!important;padding:0!important;overflow:visible!important}body>:not(#print-root){display:none!important}#print-root{display:block!important}.print-sheet{box-shadow:none;color:#000;-webkit-print-color-adjust:exact;print-color-adjust:exact;position:static;margin:0!important;display:flex!important}}:is(#print-root,.folha-escala){width:var(--folha-larg,210mm);container-type:inline-size}:is(#print-root,.folha-escala) .print-sheet{box-sizing:border-box;width:var(--folha-larg,210mm);height:var(--folha-alt,297mm);aspect-ratio:auto;min-height:0;padding:var(--folha-topo,16mm) var(--folha-lado,18mm) var(--folha-base,16mm);overflow:hidden}:is(#print-root,.folha-escala) .print-sheet.print-only{height:auto;min-height:var(--folha-alt,297mm);overflow:visible}:is(#print-root,.folha-escala) .official-letterhead{break-inside:avoid;border-bottom-width:.6mm;grid-template-columns:19mm 1fr;gap:4mm;padding-bottom:4mm}:is(#print-root,.folha-escala) .official-logo{border-radius:1.5mm;width:19mm;height:17mm;font:700 12pt Manrope,sans-serif}:is(#print-root,.folha-escala) .official-clinic-data strong{font:800 13pt Manrope,sans-serif}:is(#print-root,.folha-escala) .official-clinic-data span,:is(#print-root,.folha-escala) .official-contact span{font:7.5pt/1.4 Manrope,sans-serif}:is(#print-root,.folha-escala) .official-document-body{padding:10mm 0 4mm}:is(#print-root,.folha-escala) .print-sheet .official-document-body h1{margin:0 0 6mm;font:700 15pt Georgia,Times New Roman,serif}:is(#print-root,.folha-escala) .official-patient{gap:2.5mm;padding:3mm 0;font:8pt/1.4 Manrope,sans-serif}:is(#print-root,.folha-escala) .official-document-copy{min-height:0;padding-top:8mm;font-family:Verdana,Geneva,DejaVu Sans,sans-serif;font-size:10pt;line-height:1.6}:is(#print-root,.folha-escala) .official-document-copy.justificado{text-align:justify;text-align-last:left;-webkit-hyphens:none;hyphens:none}:is(#print-root,.folha-escala) .official-date{padding-top:4mm;font-family:Verdana,Geneva,DejaVu Sans,sans-serif;font-size:10pt}:is(#print-root,.folha-escala) .official-signature{break-inside:avoid;width:75mm;padding-bottom:10mm}:is(#print-root,.folha-escala) .signature-space{height:16mm}:is(#print-root,.folha-escala) .signature-space img{max-width:58mm;max-height:15mm}:is(#print-root,.folha-escala) .official-signature strong{margin-top:2mm;font:800 10pt Manrope,sans-serif}:is(#print-root,.folha-escala) .official-signature span{margin-top:1mm;font:700 8.5pt Manrope,sans-serif}:is(#print-root,.folha-escala) .official-signature small{margin-top:1.5mm;font:7.5pt Manrope,sans-serif}:is(#print-root,.folha-escala) .print-sheet .official-document-number{margin:-4mm 0 0;font:8.5pt Manrope,sans-serif}:is(#print-root,.folha-escala) .print-sheet.letterhead .official-document-body{padding:5mm 0 4mm}:is(#print-root,.folha-escala) .print-sheet.letterhead .official-document-copy{padding-top:6mm}.folha-escala-moldura{width:100%;position:relative;overflow:hidden}.folha-escala{transform-origin:0 0}.cid-picker{flex-direction:column;gap:6px;display:flex}.cid-picker-results{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:10px;flex-direction:column;display:flex;overflow:hidden}.cid-picker-results button{text-align:left;cursor:pointer;background:0 0;border:0;align-items:baseline;gap:10px;padding:9px 13px;display:flex}.cid-picker-results button:hover{background:var(--sidebar-hover,#edf5fb)}.cid-picker-results button b{color:var(--primary,#1769aa);flex:none;font:500 13px DM Mono,monospace}.cid-picker-results button span{color:var(--ink,#172536);font-size:14px}.cid-picker-empty{color:var(--muted,#4d6076);margin:0;padding:9px 13px;font-size:13.5px}.print-sheet .official-document-number{color:#556370;text-align:center;margin:-2cqw 0 0;font:1.7cqw Manrope,sans-serif}.receipt-composer{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:12px;flex-direction:column;gap:13px;padding:17px 18px;display:flex}.receipt-composer label{letter-spacing:.09em;text-transform:uppercase;color:var(--muted,#4d6076);flex-direction:column;gap:5px;font:500 10px DM Mono,monospace;display:flex}.receipt-composer input,.receipt-composer select{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);height:40px;color:var(--ink,#172536);letter-spacing:0;text-transform:none;border-radius:8px;padding:0 11px;font:600 15px Manrope,sans-serif}.receipt-composer input:focus,.receipt-composer select:focus{outline:2px solid var(--primary,#1769aa);outline-offset:-1px}.receipt-row{grid-template-columns:1fr 1fr;gap:13px;display:grid}.receipt-value input{font:700 19px Manrope,sans-serif}.receipt-hint{letter-spacing:0;text-transform:none;color:var(--muted,#4d6076);font:500 12px/1.4 Manrope,sans-serif}.receipt-hint.good{color:#14663a;font-weight:700}.receipt-hint.bad{color:#8c2d1a;font-weight:700}.receipt-note{border-left:3px solid var(--primary,#1769aa);background:var(--sidebar-hover,#edf5fb);color:#1d4a6e;border-radius:9px;margin:0;padding:11px 13px;font-size:13px;line-height:1.45}.theme-dark .receipt-composer{background:#17212e;border-color:#2b3a4b}.theme-dark .receipt-composer input,.theme-dark .receipt-composer select{color:#edf6ff;background:#111a24;border-color:#34475c}.theme-dark .receipt-note{color:#cfe4f7;background:#16283a}@media (width<=720px){.receipt-row{grid-template-columns:1fr}}.receipt-row.attendance-when{grid-template-columns:1.4fr 1fr 1fr}.receipt-row.attendance-when>label{min-width:0}.receipt-row.attendance-when input{box-sizing:border-box;width:100%;min-width:0}.receipt-note.attendance-problem{color:#8c2d1a;background:#fdeee9;border-left-color:#d1442a;font-weight:600}.theme-dark .receipt-note.attendance-problem{color:#ffc9bc;background:#3a1d17}@media (width<=720px){.receipt-row.attendance-when{grid-template-columns:1fr 1fr}.receipt-row.attendance-when label:first-child{grid-column:1/-1}}.print-sheet.letterhead .official-document-body{padding-top:2.2cqw}.print-sheet.letterhead .official-document-copy{padding-top:6mm}.print-sheet.paper-a5{aspect-ratio:148/210}.print-layout-card{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);box-shadow:var(--shadow,none);border-radius:12px;margin-bottom:22px;padding:22px 24px 24px}.print-layout-card>header{flex-wrap:wrap;align-items:flex-start;gap:20px;margin-bottom:18px;display:flex}.print-layout-card>header>div{flex:1;min-width:260px}.print-layout-card h2{letter-spacing:-.02em;color:var(--ink,#172536);margin:6px 0 0;font-size:21px;font-weight:800}.print-layout-card>header p:last-child{max-width:64ch;color:var(--muted,#4d6076);margin:8px 0 0;font-size:14px;line-height:1.5}.print-layout-actions{flex-wrap:wrap;flex:none;gap:9px;display:flex}.print-layout-actions .button{white-space:nowrap;border-radius:8px;width:auto;height:37px;padding:0 15px;font-size:13px;font-weight:800}.print-layout-actions .button.primary{background:var(--primary,#1769aa);border-color:var(--primary,#1769aa);color:#fff}.print-layout-actions .button.primary:disabled{opacity:.45}.print-layout-actions .button.secondary{background:var(--surface,#fff);border-color:var(--line,#dce4ee);color:var(--ink,#172536)}.print-layout-switch{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);cursor:pointer;border-radius:11px;align-items:flex-start;gap:11px;margin-bottom:16px;padding:13px 15px;display:flex}.print-layout-switch input{width:18px;height:18px;accent-color:var(--primary,#1769aa);cursor:pointer;flex:none;margin:1px 0 0}.print-layout-switch b{color:var(--ink,#172536);font-size:14.5px;display:block}.print-layout-switch small{color:var(--muted,#4d6076);margin-top:3px;font-size:12.5px;line-height:1.45;display:block}.print-layout-switch.on{background:var(--sidebar-hover,#edf5fb);border-color:#9dc4e6}.print-layout-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-bottom:14px;display:grid}.print-layout-grid label{letter-spacing:.09em;text-transform:uppercase;color:var(--muted,#4d6076);flex-direction:column;gap:5px;font:500 10px DM Mono,monospace;display:flex}.print-layout-grid input,.print-layout-grid select{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);height:39px;color:var(--ink,#172536);letter-spacing:0;text-transform:none;border-radius:8px;padding:0 11px;font:600 14.5px Manrope,sans-serif}.print-layout-grid input:disabled{opacity:.5}.print-layout-grid small{letter-spacing:0;text-transform:none;color:var(--muted,#4d6076);font:500 11.5px Manrope,sans-serif}.print-layout-note{border-left:3px solid var(--primary,#1769aa);background:var(--sidebar-hover,#edf5fb);color:#1d4a6e;border-radius:9px;margin:0 0 14px;padding:11px 13px;font-size:13px;line-height:1.45}.print-layout-body{grid-template-columns:minmax(190px,260px) minmax(260px,1fr);align-items:start;gap:22px;display:grid}.print-layout-title{letter-spacing:.14em;text-transform:uppercase;color:var(--muted,#4d6076);align-items:center;gap:7px;margin:0 0 10px;font:500 10.5px DM Mono,monospace;display:flex}.print-layout-facts ul{color:var(--ink,#172536);margin:0;padding-left:18px;font-size:13.5px;line-height:1.75}.print-layout-hint{background:var(--surface-muted,#f8fafc);color:var(--muted,#4d6076);border-radius:9px;align-items:flex-start;gap:8px;margin:14px 0 0;padding:11px 13px;font-size:12.5px;line-height:1.5;display:flex}.print-layout-hint svg{flex:none;margin-top:2px}.folha-preview small{text-align:center;color:var(--muted,#4d6076);margin-top:7px;font:500 11.5px DM Mono,monospace;display:block}.folha-papel{border:1px solid var(--line,#dce4ee);background:#fff;border-radius:3px;width:100%;position:relative;overflow:hidden;box-shadow:0 3px 12px #1725361f}.folha-arte{background:repeating-linear-gradient(135deg,#d23c2821 0 5px,#0000 5px 11px);place-items:center;display:grid;position:absolute;left:0;right:0}.folha-arte.topo{top:0}.folha-arte.base{bottom:0}.folha-arte span{color:#a8362a;text-align:center;padding:0 4px;font:700 8px Manrope,sans-serif}.folha-util{background:#28a56e12;border:1px dashed #4a9e78;flex-direction:column;gap:5px;padding:5px;display:flex;position:absolute}.folha-linha{color:#2c6a52;white-space:nowrap;text-overflow:ellipsis;font:700 7.5px Manrope,sans-serif;overflow:hidden}.folha-linha.titulo{letter-spacing:.05em;font-size:9px}.folha-linha.cabecalho{border-bottom:1px solid #9ec6b3;padding-bottom:3px}.folha-linha.assinatura{text-align:center;border-top:1px solid #9ec6b3;align-self:flex-start;min-width:45%;margin-top:auto;padding-top:4px}.folha-texto{background:#2c6a524d;border-radius:99px;height:3px;display:block}.folha-texto.curta{width:55%}.theme-dark .print-layout-card{background:#17212e;border-color:#2b3a4b}.theme-dark .print-layout-switch,.theme-dark .print-layout-hint{background:#1b2735;border-color:#2e4053}.theme-dark .print-layout-grid input,.theme-dark .print-layout-grid select{color:#edf6ff;background:#111a24;border-color:#34475c}.theme-dark .print-layout-note{color:#cfe4f7;background:#16283a}@media (width<=860px){.print-layout-body{grid-template-columns:1fr}}.preview-toolbar{flex-wrap:wrap}.preview-toolbar>div:first-child{flex:1;min-width:150px}.preview-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:9px;display:flex}.preview-actions .button{white-space:nowrap;flex:none;height:auto;min-height:43px;padding:0 14px}.preview-actions .button svg{flex:none}@media (pointer:coarse){.preview-actions .button{min-height:46px;padding:0 16px}}.document-template-option .template-action{gap:8px;width:100%}.document-template-option .template-action>*{white-space:nowrap}.theme-dark .a4-badge{color:#b9d6f0;background:#1b2735;border-color:#2e4053}.theme-dark .preview-toolbar b{color:#eaf3fb}.theme-dark .preview-toolbar small{color:#a4b7c9}.theme-dark .print-layout-facts ul{color:#dce8f3}.preview-justify{color:var(--muted,#617185);cursor:pointer;align-items:center;gap:7px;margin-top:7px;font-size:12px;font-weight:700;display:inline-flex}.preview-justify input{width:15px;height:15px;accent-color:var(--primary,#1769aa);margin:0}.document-editing-banner{color:#6b4708;background:#fdf6e7;border:1px solid #e5c178;border-radius:11px;align-items:flex-start;gap:11px;margin:14px 0 4px;padding:13px 14px;display:flex}.document-editing-banner>svg{flex:none;margin-top:2px}.document-editing-banner>div{flex:1;min-width:0}.document-editing-banner b{font-size:14px;display:block}.document-editing-banner small{margin-top:3px;font-size:12.5px;font-weight:600;line-height:1.45;display:block}.document-editing-banner .button{flex:none}.theme-dark .document-editing-banner{color:#f0c475;background:#2b2518;border-color:#8a6a2c}.prescription-models{background:linear-gradient(135deg,#f2f8fc 0%,#fff 58%);border:1px solid #c7dae9;border-radius:10px;margin-top:20px;padding:18px}.prescription-models-head,.prescription-models-head>div,.prescription-models-head h3,.prescription-models-head span{display:block}.prescription-models-head{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.prescription-models-head .eyebrow{color:#1769aa;margin-bottom:5px}.prescription-models-head h3{color:#1d344b;margin:0;font-size:18px}.prescription-models-head span{color:#60758b;margin-top:4px;font-size:13px;line-height:1.45}.prescription-new-model{flex:none;min-height:38px}.prescription-model-content{grid-template-columns:minmax(175px,.72fr) minmax(0,1.28fr);gap:12px;margin-top:16px;display:grid}.prescription-model-list{align-content:start;gap:7px;max-height:256px;padding-right:3px;display:grid;overflow:auto}.prescription-model-list>button{color:#36536c;text-align:left;background:#fff;border:1px solid #d5e1ea;border-radius:7px;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:8px;min-height:58px;padding:9px;transition:all .15s;display:grid}.prescription-model-list>button:hover{background:#f8fbfe;border-color:#82b0d0}.prescription-model-list>button.active{background:#e8f4fc;border-color:#1d78b4;box-shadow:inset 3px 0 #1d78b4}.prescription-model-list>button>svg{color:#1d78b4}.prescription-model-list span{gap:3px;min-width:0;display:grid}.prescription-model-list b{color:#24384d;text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.prescription-model-list small{color:#718399;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:700;overflow:hidden}.prescription-empty{color:#647b90;text-align:center;border:1px dashed #afc6d8;border-radius:7px;padding:20px 12px;font-size:13px}.prescription-model-detail{background:#fff;border:1px solid #d2e0ea;border-radius:8px;align-content:start;gap:11px;min-width:0;padding:15px;display:grid}.prescription-model-detail-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.prescription-model-detail-head>span{color:#1c6ea8;background:#e9f3fb;border-radius:4px;padding:4px 7px;font-size:10px;font-weight:800}.prescription-model-detail h4{color:#20384e;margin:0;font-size:16px}.prescription-model-detail dl{gap:9px;margin:0;display:grid}.prescription-model-detail dl>div{gap:3px;display:grid}.prescription-model-detail dt{color:#6b8295;letter-spacing:.05em;text-transform:uppercase;font:800 10px/1.3 DM Mono,monospace}.prescription-model-detail dd{color:#314d63;white-space:pre-wrap;margin:0;font-size:13px;line-height:1.45}.prescription-delete{color:#9b6254;background:0 0;border:0;align-items:center;gap:5px;padding:4px;font-size:11px;font-weight:800;display:inline-flex}.prescription-delete:hover{color:#b14531}.prescription-apply{justify-content:center;width:100%;min-height:40px;margin-top:2px}.prescription-safety-note{color:#76602b;background:#fff8e8;border-radius:7px;align-items:flex-start;gap:8px;margin-top:14px;padding:10px 11px;font-size:12px;line-height:1.45;display:flex}.prescription-safety-note>svg{color:#aa7a18;flex:none;margin-top:1px}.prescription-model-form{background:#fff;border:1px solid #91b9d7;border-radius:8px;gap:14px;margin-top:16px;padding:15px;display:grid}.prescription-model-form-head{justify-content:space-between;align-items:flex-start;gap:15px;display:flex}.prescription-model-form-head>div{gap:3px;display:grid}.prescription-model-form-head b{color:#244159;font-size:14px}.prescription-model-form-head small{color:#687f91;font-size:12px;line-height:1.4}.prescription-model-form-head>button{color:#70869a;background:0 0;border:0;padding:2px}.prescription-form-grid{grid-template-columns:1fr 1fr;gap:11px;display:grid}.prescription-form-grid label{color:#526b80;gap:6px;font-size:12px;font-weight:800;display:grid}.prescription-form-grid input,.prescription-form-grid textarea{color:#233c52;background:#fbfdff;border:1px solid #cbdbe7;border-radius:6px;outline:0;width:100%;font:600 13px/1.45 Manrope,sans-serif}.prescription-form-grid input{height:39px;padding:0 10px}.prescription-form-grid textarea{resize:vertical;min-height:64px;padding:8px 10px}.prescription-form-grid input:focus,.prescription-form-grid textarea:focus{border-color:#1769aa;box-shadow:0 0 0 3px #1769aa1c}.prescription-form-grid .span-2{grid-column:span 2}.prescription-model-form footer{justify-content:flex-end;gap:9px;display:flex}.preview-actions,.document-record-actions{align-items:center;gap:8px;display:flex}.exam-upload-form{background:#f5faff;border:1px solid #b9d2e3;border-radius:8px;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0;padding:14px;display:grid}.exam-upload-form label{color:#587085;gap:6px;font-size:12px;font-weight:800;display:grid}.exam-upload-form input{color:#243c52;background:#fff;border:1px solid #cbdbe7;border-radius:6px;width:100%;height:39px;padding:0 10px;font:600 13px Manrope,sans-serif}.exam-upload-form .exam-file-picker{background:#fff;border:1px dashed #9dbed5;border-radius:6px;grid-column:span 2;padding:11px}.exam-upload-form .exam-file-picker input{border:0;height:auto;padding:0}.exam-upload-form small{color:#71869a;font-size:11px;font-weight:600}.exam-upload-form footer{grid-column:span 2;justify-content:flex-end;gap:8px;display:flex}.theme-dark .prescription-models{background:linear-gradient(135deg,#172a39,#17212e);border-color:#31536c}.theme-dark .prescription-models-head h3,.theme-dark .prescription-model-list b,.theme-dark .prescription-model-detail h4,.theme-dark .prescription-model-form-head b{color:#edf6ff}.theme-dark .prescription-models-head span,.theme-dark .prescription-model-list small,.theme-dark .prescription-model-form-head small,.theme-dark .prescription-form-grid label{color:#a7b9c9}.theme-dark .prescription-model-list>button,.theme-dark .prescription-model-detail,.theme-dark .prescription-model-form{background:#142432;border-color:#375269}.theme-dark .prescription-model-list>button.active{background:#1a3b53;border-color:#72b9e8;box-shadow:inset 3px 0 #72b9e8}.theme-dark .prescription-model-detail-head>span{color:#a4d5f7;background:#1a3c55}.theme-dark .prescription-model-detail dd{color:#c4d4e1}.theme-dark .prescription-model-form input,.theme-dark .prescription-model-form textarea{color:#edf6ff;background:#101d29;border-color:#365067}.theme-dark .prescription-safety-note{color:#ecd794;background:#3a301b}.theme-dark .exam-upload-form{background:#152837;border-color:#375269}.theme-dark .exam-upload-form label,.theme-dark .exam-upload-form small{color:#a7b9c9}.theme-dark .exam-upload-form input,.theme-dark .exam-upload-form .exam-file-picker{color:#edf6ff;background:#101d29;border-color:#365067}@media (width<=680px){.prescription-models-head{flex-direction:column}.prescription-new-model{justify-content:center;width:100%}.prescription-model-content,.prescription-form-grid{grid-template-columns:1fr}.preview-actions,.document-record-actions{flex-wrap:wrap}.exam-upload-form{grid-template-columns:1fr}.exam-upload-form .exam-file-picker,.exam-upload-form footer{grid-column:auto}.prescription-model-list{max-height:220px}.prescription-form-grid .span-2{grid-column:auto}}@media (width>=760px) and (width<=1100px){.official-documents-layout{grid-template-columns:minmax(0,1.1fr) minmax(250px,.9fr);align-items:start}.official-document-preview{min-width:0;display:flex;position:sticky;top:96px}.official-template-panel{min-width:0}.official-document-preview .print-sheet{min-height:0}}.clinical-exams-list .exam-thumb{border-radius:7px;flex:none;place-items:center;width:52px;height:52px;display:grid;overflow:hidden}.clinical-exams-list .exam-thumb img{object-fit:cover;width:100%;height:100%}.modal.attachment-viewer{flex-direction:column;width:min(1100px,100%);max-height:calc(100vh - 30px);display:flex}.attachment-viewer>header{flex:none}.attachment-viewer-body{background:#eef2f6;border-radius:8px;flex:auto;place-items:center;min-height:0;margin-top:14px;display:grid;overflow:auto}.attachment-viewer-body img{object-fit:contain;max-width:100%;max-height:calc(100vh - 250px);display:block}.attachment-viewer-body iframe{background:#fff;border:0;width:100%;height:calc(100vh - 250px)}.attachment-viewer-note{color:var(--muted,#617185);text-align:center;margin:0;padding:40px 20px;font-size:14px}.attachment-viewer>footer{flex-wrap:wrap;flex:none}.attachment-viewer>footer a.button{align-items:center;gap:7px;text-decoration:none;display:inline-flex}.theme-dark .attachment-viewer-body{background:#0f1720}@media (width<=630px){.attachment-viewer>footer>*{flex:140px;justify-content:center}}.rx-workspace{grid-template-columns:1fr;align-items:start;gap:18px;margin-top:18px;display:grid}@media (width>=1560px){.rx-workspace{grid-template-columns:300px minmax(0,1fr)}}.rx-models{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:14px;overflow:hidden}.rx-models-head{border-bottom:1px solid var(--line,#dce4ee);flex-wrap:wrap;align-items:flex-start;gap:10px;padding:15px 16px;display:flex}.rx-models-head h3{letter-spacing:-.02em;margin:2px 0 0;font-size:15.5px}.rx-scope-switch{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);border-radius:9px;gap:2px;margin-left:auto;padding:3px;display:flex}.rx-scope-switch button{color:var(--muted,#4d6076);cursor:pointer;background:0 0;border:0;border-radius:7px;padding:6px 12px;font-size:13px;font-weight:800}.rx-scope-switch button.selected{background:var(--surface,#fff);color:var(--primary,#1769aa);box-shadow:0 1px 4px #1d365024}.rx-model-empty{color:var(--muted,#4d6076);margin:0;padding:16px;font-size:13.5px;line-height:1.5}.rx-model-note{border-top:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);color:var(--muted,#4d6076);margin:0;padding:12px 16px;font-size:13px;line-height:1.5}.rx-composer{flex-direction:column;gap:14px;display:flex}.rx-allergy-alert{color:#8f4526;background:#fde5da;border:1px solid #f0c9b8;border-radius:11px;align-items:center;gap:10px;padding:12px 15px;font-size:14px;line-height:1.45;display:flex}.rx-allergy-alert svg{flex:none}.rx-item{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:12px;overflow:hidden}.rx-item-head{border-bottom:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);flex-wrap:wrap;align-items:center;gap:10px;padding:11px 15px;display:flex}.rx-item-number{color:var(--muted,#4d6076);letter-spacing:.06em;flex:none;font:500 12px DM Mono,monospace}.rx-item-head b{font-size:15.5px}.rx-chip{color:#1d6b4a;background:#e2f4ea;border-radius:99px;padding:3px 10px;font-size:12.5px;font-weight:700}.rx-item-remove{color:var(--muted,#4d6076);cursor:pointer;background:0 0;border:0;margin-left:auto;padding:2px;display:flex}.rx-item-remove:hover{color:#b35c36}.rx-item-body{grid-template-columns:repeat(auto-fit,minmax(186px,1fr));gap:13px;padding:15px;display:grid}.rx-item-body label{letter-spacing:.08em;text-transform:uppercase;min-width:0;color:var(--muted,#4d6076);overflow-wrap:break-word;flex-direction:column;gap:6px;font:500 11px DM Mono,monospace;display:flex}.rx-item-body .span-2{grid-column:span 2}.rx-item-body .span-4{grid-column:1/-1}.rx-item-body input,.rx-item-body select,.rx-item-body textarea{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);width:100%;color:var(--ink,#172536);letter-spacing:-.01em;border-radius:9px;padding:9px 12px;font:400 15px Manrope,sans-serif}.rx-item-body textarea{resize:vertical;min-height:70px}.rx-item-body input:disabled{opacity:.5}.rx-continuous{align-self:end;align-items:center;padding-bottom:9px;text-transform:none!important;letter-spacing:-.01em!important;color:var(--ink,#172536)!important;flex-direction:row!important;gap:8px!important;font:700 14px Manrope,sans-serif!important}.rx-continuous input{height:17px;accent-color:var(--primary,#1769aa);flex:none;width:17px!important}.rx-add-item{align-self:flex-start}.rx-autocomplete{position:relative}.rx-autocomplete-pop{z-index:12;border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:10px;max-height:260px;position:absolute;top:calc(100% + 5px);left:0;right:0;overflow:hidden auto;box-shadow:0 16px 40px #1d36502e}.rx-autocomplete-pop button{text-align:left;cursor:pointer;background:0 0;border:0;flex-direction:column;gap:2px;width:100%;padding:10px 14px;display:flex}.rx-autocomplete-pop button:hover{background:var(--sidebar-hover,#edf5fb)}.rx-autocomplete-pop span{color:var(--ink,#172536);letter-spacing:-.01em;font:600 14.5px Manrope,sans-serif}.rx-autocomplete-pop small{color:var(--muted,#4d6076);letter-spacing:-.01em;font:600 13px Manrope,sans-serif}.rx-save-model{border:1px dashed var(--line,#dce4ee);background:var(--surface,#fff);border-radius:11px;padding:13px 15px}.rx-save-model-toggle{color:var(--ink,#172536);cursor:pointer;align-items:center;gap:9px;font-size:14.5px;font-weight:700;display:flex}.rx-save-model-toggle input{width:17px;height:17px;accent-color:var(--primary,#1769aa)}.rx-save-model-fields{grid-template-columns:minmax(0,1fr) minmax(0,260px);gap:12px;margin-top:12px;display:grid}.rx-save-model-fields label{letter-spacing:.1em;text-transform:uppercase;color:var(--muted,#4d6076);flex-direction:column;gap:6px;font:500 11px DM Mono,monospace;display:flex}.rx-save-model-fields input,.rx-save-model-fields select{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);color:var(--ink,#172536);border-radius:9px;padding:9px 12px;font:400 15px Manrope,sans-serif}.rx-safety{color:var(--muted,#4d6076);align-items:flex-start;gap:9px;margin:0;font-size:13.5px;line-height:1.5;display:flex}.rx-safety svg{color:var(--teal,#0d8b8d);flex:none;margin-top:2px}.rx-optical{flex-direction:column;gap:16px;margin-top:18px;display:flex}.rx-import-banner{border:1px solid var(--line,#dce4ee);color:#31566f;background:#e3eef8;border-radius:12px;flex-wrap:wrap;align-items:center;gap:12px;padding:13px 16px;display:flex}.rx-import-banner b{font-size:15px;display:block}.rx-import-banner small{margin-top:2px;font-size:13.5px;display:block}.rx-import-banner .button{margin-left:auto}.rx-optical-block{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:12px;padding:16px}.rx-optical-block h4{letter-spacing:.12em;text-transform:uppercase;color:var(--muted,#4d6076);margin:0 0 12px;font:500 12px DM Mono,monospace}.rx-optical-table{border-collapse:collapse;width:100%}.rx-optical-table th{letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#4d6076);text-align:center;white-space:nowrap;padding:6px 8px;font:500 11px DM Mono,monospace}.rx-optical-table td{text-align:center;padding:4px}.rx-optical-table .rx-eye{width:48px;font:500 13px DM Mono,monospace}.rx-optical-table .rx-eye.od{color:var(--primary,#1769aa)}.rx-optical-table .rx-eye.oe{color:var(--teal,#0d8b8d)}.rx-optical-table input{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);width:100%;min-width:74px;color:var(--ink,#172536);text-align:center;border-radius:8px;padding:9px 6px;font:500 15px DM Mono,monospace}.rx-optical-table .rx-addition input{font-weight:500}.rx-optical-lens{grid-template-columns:minmax(0,1fr);gap:14px;max-width:340px;display:grid}.rx-optical-lens label,.rx-optical-notes{letter-spacing:.1em;text-transform:uppercase;color:var(--muted,#4d6076);flex-direction:column;gap:6px;font:500 11px DM Mono,monospace;display:flex}.rx-optical-lens select,.rx-optical-notes textarea{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);color:var(--ink,#172536);border-radius:9px;padding:9px 12px;font:400 15px Manrope,sans-serif}.rx-optical-notes{margin-top:14px}.rx-optical-notes textarea{resize:vertical;min-height:70px}.rx-optical-treatments{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:14px;display:grid}.rx-check{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);cursor:pointer;border-radius:9px;align-items:center;gap:9px;padding:10px 12px;font-size:15px;display:flex}.rx-check input{width:17px;height:17px;accent-color:var(--primary,#1769aa)}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.timeline-rx-items{border:1px solid var(--line,#dce4ee);border-radius:10px;margin:10px 0 0;padding:0;list-style:none;overflow:hidden}.timeline-rx-items li{background:var(--surface-muted,#f8fafc);align-items:baseline;gap:10px;padding:9px 14px;font-size:14.5px;line-height:1.4;display:flex}.timeline-rx-items li+li{border-top:1px solid var(--line,#dce4ee)}.timeline-rx-items .n{color:var(--muted,#4d6076);flex:none;font:500 12px DM Mono,monospace}.timeline-rx-items b{font-weight:700}.timeline-rx-items span{color:var(--muted,#4d6076);font-size:14px}.timeline-rx-actions{flex-wrap:wrap;gap:14px;margin-top:10px;display:flex}.timeline-rx-actions button{color:var(--primary,#1769aa);cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:0;font-size:14px;font-weight:700;display:inline-flex}.timeline-rx-actions button:hover{text-decoration:underline}.timeline-rx-number{color:var(--muted,#4d6076);font:500 12px DM Mono,monospace}.record-medications{flex-direction:column;display:flex}.record-medications li{border-bottom:1px dashed var(--line,#dce4ee);align-items:flex-start;gap:10px;padding:9px 0;font-size:15px;list-style:none;display:flex}.record-medications li:last-child{border-bottom:none}.record-medications .dot{background:var(--teal,#0d8b8d);border-radius:99px;flex:none;width:8px;height:8px;margin-top:7px}.record-medications small{color:var(--muted,#4d6076);font-size:13.5px;display:block}@media (width<=720px){.rx-item-body .span-2,.rx-item-body .span-4{grid-column:1/-1}.rx-save-model-fields,.rx-optical-lens,.rx-optical-treatments{grid-template-columns:1fr}.rx-optical-lens{max-width:none}.rx-model-list{max-height:none}}@media (width<=1559px){.rx-model-list{flex-flow:wrap;gap:6px;max-height:none;padding:6px}.rx-model-item{border:1px solid var(--line,#dce4ee);border-radius:11px;flex:260px}.rx-model-item:last-child{border-bottom:1px solid var(--line,#dce4ee)}}.rx-model-search{border-bottom:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);align-items:center;gap:9px;padding:11px 14px;display:flex}.rx-model-search svg{color:var(--muted,#4d6076);flex:none}.rx-model-search input{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);min-width:0;color:var(--ink,#172536);border-radius:9px;flex:1;padding:9px 12px;font:400 15px Manrope,sans-serif}.rx-model-count{background:var(--sky-bg,#e3eef8);min-width:30px;height:26px;color:var(--sky-ink,#31566f);border-radius:99px;place-items:center;padding:0 9px;font:500 12.5px DM Mono,monospace;display:grid}.rx-model-shortcuts,.rx-model-list{flex-direction:column;gap:2px;max-height:400px;padding:8px;display:flex;overflow-y:auto}.rx-model-section{letter-spacing:.12em;text-transform:uppercase;color:var(--muted,#4d6076);margin:4px 6px;font:500 11px DM Mono,monospace}.rx-model-row{border-radius:9px;align-items:stretch;gap:2px;display:flex}.rx-model-row:hover,.rx-model-row:focus-within{background:var(--sidebar-hover,#edf5fb)}.rx-model-row-main{text-align:left;cursor:pointer;background:0 0;border:0;flex-direction:column;flex:1;gap:1px;min-width:0;padding:9px 10px;display:flex}.rx-model-row-main b{color:var(--ink,#172536);font-size:14.5px;font-weight:700}.rx-model-row-main span{color:var(--muted,#4d6076);white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.rx-model-row-delete{width:32px;color:var(--muted,#4d6076);cursor:pointer;opacity:0;background:0 0;border:0;border-radius:8px;place-items:center;display:grid}.rx-model-row:hover .rx-model-row-delete,.rx-model-row-delete:focus-visible{opacity:1}.rx-model-row-delete:hover{color:#b35c36;background:var(--coral-bg,#fde5da)}.rx-model-browse{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);color:var(--primary,#1769aa);cursor:pointer;border-radius:9px;margin:6px;padding:8px 12px;font-size:13.5px;font-weight:700}.rx-model-browse:hover{background:var(--sidebar-hover,#edf5fb)}.rx-model-more{color:var(--muted,#4d6076);margin:6px 10px 2px;font-size:13px}.boldable-field{flex-direction:column;gap:5px;display:flex}.boldable-field textarea{width:100%}.boldable-toolbar{align-items:center;gap:8px;display:flex}.boldable-toolbar button{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);width:28px;height:26px;color:var(--ink,#172536);cursor:pointer;border-radius:7px;place-items:center;display:grid}.boldable-toolbar button:hover{border-color:var(--primary,#1769aa);color:var(--primary,#1769aa)}.boldable-toolbar small{letter-spacing:0;text-transform:none;min-width:0;color:var(--muted,#4d6076);flex:1;font:400 12.5px/1.4 Manrope,sans-serif}.boldable-toolbar{flex-wrap:wrap}.boldable-field-field,.boldable-field-group{position:relative}.boldable-field-cell{display:block;position:relative}.boldable-field-caption{justify-content:space-between;align-items:center;gap:8px;min-height:18px;display:flex}.boldable-field-button{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);width:18px;height:18px;color:var(--muted,#4d6076);cursor:pointer;opacity:0;border-radius:5px;place-items:center;padding:0;transition:opacity .12s,border-color .12s;display:grid}.boldable-field-field:hover .boldable-field-button,.boldable-field-field:focus-within .boldable-field-button,.boldable-field-group:hover .boldable-field-button,.boldable-field-group:focus-within .boldable-field-button,.boldable-field-cell:hover .boldable-field-button,.boldable-field-cell:focus-within .boldable-field-button{opacity:1}.boldable-field-button:hover:not(:disabled){border-color:var(--primary,#1769aa);color:var(--primary,#1769aa)}.boldable-field-button:disabled{cursor:not-allowed;opacity:0}.boldable-field-field:hover .boldable-field-button:disabled,.boldable-field-group:hover .boldable-field-button:disabled,.boldable-field-cell:hover .boldable-field-button:disabled{opacity:.3}.boldable-field-button[aria-pressed=true]{opacity:1;border-color:var(--primary,#1769aa);background:var(--primary,#1769aa);color:#fff}.boldable-field-cell .boldable-field-button{z-index:2;position:absolute;top:0;right:0;transform:translate(38%,-38%);box-shadow:0 1px 3px #0f20332e}.boldable-field-field.is-bold input,.boldable-field-field.is-bold select,.boldable-field-cell.is-bold input{font-weight:800}.boldable-field-group.is-bold .rx-check{font-weight:700}.boldable-field-group>.boldable-field-caption{letter-spacing:.1em;text-transform:uppercase;color:var(--muted,#4d6076);margin-bottom:6px;font:500 11px DM Mono,monospace}.rx-bold-hint{color:var(--muted,#4d6076);margin:2px 0 0;font:400 12.5px Manrope,sans-serif}.share-pdf-status{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);color:var(--ink,#172536);border-radius:11px;align-items:center;gap:9px;margin-top:14px;padding:10px 13px;font-size:14px;display:flex}.share-pdf-status.ready{background:#eefaf3;border-color:#bfe3d0}.share-pdf-status.ready svg{color:var(--teal,#0d8b8d)}.share-pdf-status.failed{color:#7a5a17;background:#fdf6e7;border-color:#f2d8a8}.share-pdf-status .spin{animation:1s linear infinite lume-spin}.share-pdf-download{white-space:nowrap;margin-left:auto}.rx-free-note{letter-spacing:.1em;text-transform:uppercase;color:var(--muted,#4d6076);flex-direction:column;gap:6px;font:500 11px DM Mono,monospace;display:flex}.rx-free-note textarea{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);color:var(--ink,#172536);letter-spacing:0;text-transform:none;border-radius:9px;padding:10px 12px;font:400 15px Manrope,sans-serif}.timeline-rx-actions .timeline-rx-delete{color:#b3412f}.theme-dark .timeline-rx-actions .timeline-rx-delete{color:#f1a58b}.patient-list-metrics,.patient-directory,.patient-profile-page,.patient-form-modal{--patient-caption:12px;--patient-subtext:13px;--patient-body:14px;--patient-control:15px}.waiting-room-bar{z-index:4;background:#f3f8fc;border-bottom:1px solid #bdd4e5;align-items:center;gap:16px;min-height:76px;padding:10px 34px;display:flex;position:relative;box-shadow:0 5px 16px #254f700f}.waiting-room-title{align-items:center;gap:10px;min-width:154px;display:flex}.waiting-room-title>span{color:#1769aa;background:#dcecf7;border-radius:9px;place-items:center;width:38px;height:38px;display:grid}.waiting-room-title div{gap:2px;display:grid}.waiting-room-title b{color:var(--ink);letter-spacing:.06em;font:800 12px/1.2 DM Mono,monospace}.waiting-room-title small,.waiting-room-empty{color:var(--muted);font-size:13px;font-weight:600}.waiting-sound-toggle{color:#1769aa;white-space:nowrap;background:#fff;border:1px solid #9dc9e4;border-radius:5px;align-items:center;gap:4px;margin-left:2px;padding:4px 5px;font-size:10px;font-weight:800;display:inline-flex}.waiting-sound-toggle:hover{background:#e8f3fb}.waiting-room-list{flex:1;align-items:center;gap:8px;min-width:0;padding:2px 0;display:flex;overflow-x:auto}.waiting-patient{background:var(--surface);border:1px solid #c9dae8;border-radius:8px;flex:none;grid-template-columns:minmax(112px,1fr) auto 25px;align-items:center;gap:8px;min-width:232px;padding:6px 7px;display:grid;box-shadow:0 1px 3px #203a530f}.waiting-patient>div{flex:1;gap:2px;min-width:0;display:grid}.waiting-patient b{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.waiting-patient small{color:#a66716;white-space:nowrap;align-items:center;gap:3px;font-size:10px;font-weight:800;display:inline-flex}.waiting-call{color:#11775f;white-space:nowrap;background:#e6f5ef;border:1px solid #9acdbd;border-radius:6px;align-items:center;gap:3px;min-height:28px;padding:0 6px;font-size:11px;font-weight:800;display:inline-flex}.waiting-remove{width:25px;height:25px;color:var(--muted);background:0 0;border:0;border-radius:5px;place-items:center;padding:0;display:grid}.waiting-remove:hover{color:#b35c36;background:#fff0eb}.waiting-room-add{background:var(--surface);width:min(300px,28vw);min-height:42px;color:var(--primary);border:1px solid #adc8db;border-radius:8px;align-items:center;gap:7px;padding:0 10px;display:flex;position:relative}.waiting-room-picker{width:min(270px,24vw);position:relative}.waiting-room-picker nav{background:var(--surface);border:1px solid #adc8db;border-radius:8px;gap:4px;padding:3px;display:flex}.waiting-room-picker nav button{min-height:34px;color:var(--muted);white-space:nowrap;background:0 0;border:0;border-radius:5px;flex:1;justify-content:center;align-items:center;gap:4px;padding:0 6px;font-size:11px;font-weight:800;display:inline-flex}.waiting-room-picker nav button.active{color:#1769aa;background:#e7f1fb;box-shadow:0 1px 4px #203a531a}.waiting-room-picker nav button span{background:var(--surface-muted);border-radius:12px;place-items:center;min-width:20px;height:20px;padding:0 5px;font-size:11px;display:inline-grid}.waiting-today-options{background:var(--surface);border:1px solid #b8d0e0;border-radius:9px;display:grid;position:absolute;top:calc(100% + 7px);left:0;right:0;overflow:hidden;box-shadow:0 16px 34px #1c32482e}.waiting-today-options>button{border:0;border-bottom:1px solid var(--line);background:var(--surface);min-height:51px;color:var(--primary);text-align:left;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px 10px;font-size:12px;font-weight:800;display:grid}.waiting-today-options>button:last-child{border-bottom:0}.waiting-today-options>button:hover{background:var(--surface-muted)}.waiting-today-options button span:first-child{gap:2px;min-width:0;display:grid}.waiting-today-options button b{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.waiting-today-options button small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600;overflow:hidden}.waiting-today-options button span:last-child{color:#11775f;white-space:nowrap}.waiting-today-options>span{color:var(--muted);padding:13px;font-size:12px;line-height:1.45}.waiting-room-add input{width:100%;min-width:0;color:var(--ink);background:0 0;border:0;outline:0;font:600 14px Manrope,sans-serif}.waiting-room-add input::placeholder{color:var(--muted)}.waiting-room-add>button{color:var(--muted);background:0 0;border:0;place-items:center;padding:0;display:grid}.waiting-room-results{background:var(--surface);border:1px solid #b8d0e0;border-radius:9px;display:grid;position:absolute;top:calc(100% + 7px);left:0;right:0;overflow:hidden;box-shadow:0 16px 34px #1c32482e}.waiting-room-results button{border:0;border-bottom:1px solid var(--line);background:var(--surface);min-height:51px;color:var(--primary);text-align:left;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px 10px;font-size:12px;font-weight:800;display:grid}.waiting-room-results button:last-child{border-bottom:0}.waiting-room-results button:hover{background:var(--surface-muted)}.waiting-room-results span:first-child{gap:2px;min-width:0;display:grid}.waiting-room-results b{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.waiting-room-results small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600;overflow:hidden}.waiting-room-results span:last-child{color:#11775f;white-space:nowrap}.theme-dark .waiting-room-bar{background:#142635;border-bottom-color:#31536c}.theme-dark .waiting-room-title>span{color:#9dcefb;background:#203b57}.theme-dark .waiting-sound-toggle{color:#a7d5f7;background:#1b2e3d;border-color:#426b91}.theme-dark .waiting-patient,.theme-dark .waiting-room-add,.theme-dark .waiting-room-results,.theme-dark .waiting-room-results button{background:#1b2e3d;border-color:#31536c}.theme-dark .waiting-room-results button:hover{background:#223b4f}.theme-dark .waiting-room-picker nav,.theme-dark .waiting-today-options,.theme-dark .waiting-today-options>button{background:#1b2e3d;border-color:#31536c}.theme-dark .waiting-room-picker nav button.active{color:#9dcefb;background:#203b57}.theme-dark .waiting-today-options>button:hover{background:#223b4f}.legacy-data-banner{color:var(--primary);background:#eef6fc;border:1px solid #cbdfea;border-radius:9px;align-items:center;gap:12px;margin:24px 0 0;padding:15px 17px;display:flex}.legacy-data-banner div{gap:3px;display:grid}.legacy-data-banner b{color:var(--ink);font-size:14px}.legacy-data-banner span{color:var(--muted);font-size:13px}.legacy-data-banner.error{color:#b55a34;background:#fff4ee;border-color:#efc5b6}.patient-list-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:26px 0 16px;display:grid}.patient-list-metrics article{border:1px solid var(--line);background:var(--surface);min-height:96px;box-shadow:var(--shadow);border-radius:10px;align-items:center;gap:14px;padding:18px;display:flex}.patient-list-metrics small{color:var(--muted);font:700 var(--patient-caption)/1.4 DM Mono, monospace;letter-spacing:.06em;display:block}.patient-list-metrics strong{color:var(--ink);margin-top:5px;font-size:27px;line-height:1;display:block}.patient-metric-icon{border-radius:9px;flex:none;place-items:center;width:42px;height:42px;display:grid}.patient-metric-icon.blue{color:#1769aa;background:#e7f1fb}.patient-metric-icon.green{color:#128269;background:#e2f4ee}.patient-metric-icon.amber{color:#bd7415;background:#fff2dc}.patient-directory{overflow:hidden}.patient-directory-tools{border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:18px 20px;display:flex}.patient-search{flex:360px;width:min(520px,100%)}.patient-search button{color:var(--muted);background:0 0;border:0;flex:none;place-items:center;display:grid}.patient-list-filters{border:1px solid var(--line);background:var(--surface-muted);border-radius:8px;align-items:center;gap:4px;padding:4px;display:flex}.patient-list-filters button{min-height:38px;color:var(--muted);font-size:var(--patient-subtext);white-space:nowrap;background:0 0;border:0;border-radius:5px;padding:0 11px;font-weight:800}.patient-list-filters button.active{background:var(--surface);color:var(--primary);box-shadow:0 1px 4px #203a531f}.patient-advanced-filter-toggle{border-bottom:1px solid var(--line);background:var(--surface-muted);align-items:center;gap:12px;padding:11px 20px;display:flex}.patient-advanced-filter-toggle>button:first-child{border:1px solid var(--line);background:var(--surface);min-height:38px;color:var(--ink);font-size:var(--patient-subtext);border-radius:7px;align-items:center;gap:7px;padding:0 12px;font-weight:800;display:inline-flex}.patient-advanced-filter-toggle>button:first-child.active{color:#12649f;background:#eaf5fd;border-color:#8fc4e6}.patient-advanced-filter-toggle .clear-filters{color:var(--primary);font-size:var(--patient-subtext);background:0 0;border:0;font-weight:800}.patient-advanced-filters{border-bottom:1px solid var(--line);background:var(--surface);grid-template-columns:minmax(180px,1.2fr) repeat(3,minmax(150px,.8fr));align-items:end;gap:12px;padding:16px 20px;display:grid}.patient-advanced-filters label{color:var(--muted);font-size:var(--patient-caption);gap:6px;font-weight:800;display:grid}.patient-advanced-filters input{border:1px solid var(--line);background:var(--surface);min-width:0;height:42px;color:var(--ink);font:600 var(--patient-control)/1 inherit;border-radius:7px;padding:0 11px}.patient-advanced-filters small{color:var(--muted);font-size:var(--patient-caption);grid-column:1/-1}.patient-result-note{border-bottom:1px solid var(--line);min-height:46px;color:var(--muted);font-size:var(--patient-subtext);justify-content:space-between;align-items:center;padding:0 20px;display:flex}.patient-result-note button{color:var(--primary);font-size:var(--patient-subtext);background:0 0;border:0;font-weight:800}.patient-directory-table{overflow-x:auto}.patient-directory-head,.patient-directory-row{grid-template-columns:minmax(225px,1.3fr) minmax(210px,1.2fr) minmax(155px,.9fr) minmax(150px,.85fr) minmax(180px,1fr) 24px;align-items:center;gap:14px;min-width:1010px;display:grid}.patient-directory-head{border-bottom:1px solid var(--line);min-height:52px;color:var(--muted);font:700 var(--patient-caption) DM Mono, monospace;letter-spacing:.05em;text-transform:uppercase;padding:0 20px}.patient-directory-row{border:0;border-bottom:1px solid var(--line);width:100%;min-height:92px;color:var(--muted);text-align:left;background:0 0;padding:13px 20px;transition:background .15s}.patient-directory-row:hover{background:var(--surface-muted)}.patient-directory-row:last-child{border-bottom:0}.patient-directory-row>span{min-width:0}.patient-directory-row .patient-name .avatar{width:42px;height:42px;font-size:var(--patient-caption)}.patient-name-copy{gap:2px;min-width:0;display:grid}.patient-directory-row .patient-name b{color:var(--ink);font-size:var(--patient-control)}.patient-directory-row .legacy-row-label{color:var(--primary);font-size:var(--patient-caption);margin-top:1px;font-weight:800}.patient-directory-row small{color:var(--muted);font-size:var(--patient-subtext);text-overflow:ellipsis;white-space:nowrap;margin-top:5px;font-weight:500;line-height:1.4;display:block;overflow:hidden}.row-primary{color:var(--ink);font-size:var(--patient-body);text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.no-next-visit{color:#ad5f36;font-size:var(--patient-body)}.follow-up-status{min-height:30px;font-size:var(--patient-caption);white-space:nowrap;border-radius:20px;align-items:center;padding:0 10px;font-style:normal;font-weight:800;display:inline-flex}.follow-up-status.ok{color:#147a63;background:#e2f4ee}.follow-up-status.attention{color:#b45a32;background:#fff0e8}.patient-directory-row .row-arrow{color:var(--primary)}.patient-directory-empty{min-height:260px;color:var(--muted);align-content:center;place-items:center;gap:8px;display:grid}.patient-directory-empty b{color:var(--ink);font-size:15px}.patient-directory-empty span{font-size:13px}.patient-pagination{border-top:1px solid var(--line);background:var(--surface);min-height:74px;color:var(--muted);font-size:var(--patient-subtext);justify-content:space-between;align-items:center;gap:16px;padding:13px 20px;display:flex}.patient-pagination>span b{color:var(--ink);font-size:var(--patient-body)}.patient-pagination>div{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.patient-pagination button{border:1px solid var(--line);background:var(--surface-muted);min-height:42px;color:var(--primary);font-size:var(--patient-subtext);border-radius:7px;justify-content:center;align-items:center;gap:5px;padding:0 13px;font-weight:800;display:inline-flex}.patient-pagination button:hover:not(:disabled){background:#edf5fa;border-color:#9fc2dd}.patient-pagination button:disabled{cursor:not-allowed;opacity:.46}.patient-profile-page{margin-top:24px}.patient-back{color:var(--primary);background:0 0;border:0;align-items:center;gap:7px;margin-bottom:14px;padding:0;font-size:13px;font-weight:800;display:inline-flex}.patient-profile-hero{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);border-radius:11px 11px 0 0;justify-content:space-between;align-items:center;gap:20px;padding:22px 24px;display:flex}.patient-profile-identity{align-items:center;gap:16px;min-width:0;display:flex}.patient-profile-identity>.avatar{width:58px;height:58px;font-size:15px}.patient-profile-name{align-items:center;gap:10px;display:flex}.patient-profile-name h2{letter-spacing:-.025em;font-size:25px}.patient-status{min-height:29px;font-size:var(--patient-caption);white-space:nowrap;border-radius:20px;align-items:center;padding:0 9px;font-weight:800;display:inline-flex}.patient-status.ativo{color:#147a63;background:#e2f4ee}.patient-status.pendente{color:#ad5b36;background:#fff0e8}.legacy-source-chip{color:#1769aa;min-height:29px;font-size:var(--patient-caption);white-space:nowrap;background:#e7f1fb;border-radius:20px;align-items:center;padding:0 9px;font-weight:800;display:inline-flex}.patient-profile-identity p{color:var(--muted);font-size:var(--patient-body);margin:6px 0 0;line-height:1.45}.patient-contact-line{color:var(--muted);font-size:var(--patient-subtext);flex-wrap:wrap;gap:14px;margin-top:10px;display:flex}.patient-contact-line span{align-items:center;gap:6px;display:inline-flex}.patient-profile-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.patient-profile-tabs{border:1px solid var(--line);background:var(--surface);border-top:0;border-radius:0 0 11px 11px;gap:6px;padding:0 20px;display:flex}.patient-profile-tabs button{min-height:54px;color:var(--muted);font-size:var(--patient-body);background:0 0;border:0;border-bottom:3px solid #0000;align-items:center;gap:7px;padding:0 13px;font-weight:800;display:inline-flex}.patient-profile-tabs button.active{border-bottom-color:var(--primary);color:var(--primary)}.patient-profile-tabs button span{background:var(--surface-muted);min-width:23px;height:23px;font-size:var(--patient-caption);border-radius:20px;place-items:center;padding:0 5px;display:grid}.patient-overview-grid{grid-template-columns:minmax(0,1fr) 310px;gap:14px;margin-top:14px;display:grid}.patient-overview-main,.patient-overview-side{align-content:start;gap:14px;display:grid}.patient-section-card,.patient-registration-view{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);border-radius:10px}.patient-section-card{padding:20px}.patient-section-card>header,.patient-registration-view>header{justify-content:space-between;align-items:center;gap:12px;display:flex}.patient-section-card h3,.patient-registration-view h3{color:var(--ink);letter-spacing:-.02em;margin:3px 0 0;font-size:18px}.patient-section-label{color:var(--primary);font:700 var(--patient-caption)/1.4 DM Mono, monospace;letter-spacing:.07em;margin:0}.patient-section-card>header>button:not(.button){color:var(--primary);font-size:var(--patient-subtext);background:0 0;border:0;align-items:center;gap:6px;font-weight:800;display:inline-flex}.upcoming-appointment-list{gap:8px;margin-top:15px;display:grid}.upcoming-appointment{border:1px solid var(--line);background:var(--surface-muted);border-radius:8px;grid-template-columns:72px 1fr auto;align-items:center;gap:14px;min-height:88px;padding:11px 13px;display:grid}.upcoming-appointment.today{border-left:4px solid var(--primary)}.appointment-date-block{border-right:1px solid var(--line);text-align:center;align-content:center;place-items:center;min-height:62px;display:grid}.appointment-date-block span{color:var(--primary);font:800 var(--patient-caption) DM Mono, monospace}.appointment-date-block strong{color:var(--ink);margin-top:3px;font-size:17px}.appointment-date-block small{color:var(--muted);font-size:var(--patient-subtext)}.upcoming-appointment h4{color:var(--ink);margin:0;font-size:14px}.upcoming-appointment p{color:var(--muted);font-size:var(--patient-subtext);margin:4px 0 8px}.upcoming-appointment>button{border:1px solid var(--line);background:var(--surface);min-height:38px;color:var(--primary);font-size:var(--patient-subtext);border-radius:6px;align-items:center;gap:6px;padding:0 11px;font-weight:800;display:inline-flex}.profile-status-chip{color:#9a6418;text-transform:uppercase;background:#fff0d8;border-radius:20px;align-items:center;min-height:25px;padding:0 8px;font-size:11px;font-weight:800;display:inline-flex}.profile-status-chip.confirmado,.profile-status-chip.chegou{color:#14775f;background:#e0f3ec}.patient-empty-state{border:1px dashed var(--line);min-height:110px;color:var(--muted);border-radius:8px;align-items:center;gap:12px;margin-top:15px;padding:16px;display:flex}.patient-empty-state div{flex:1;gap:3px;display:grid}.patient-empty-state b{color:var(--ink);font-size:14px}.patient-empty-state span{font-size:var(--patient-subtext)}.patient-care-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:15px;display:grid}.patient-care-summary article{border:1px solid var(--line);background:var(--surface-muted);min-height:106px;color:var(--primary);border-radius:8px;align-content:start;gap:6px;padding:13px;display:grid}.patient-care-summary article.attention{color:#b45631;background:#fff6f1;border-color:#edb59f}.patient-care-summary span{color:var(--muted);font:700 var(--patient-caption) DM Mono, monospace;letter-spacing:.05em}.patient-care-summary strong{color:var(--ink);font-size:var(--patient-body);line-height:1.5}.patient-observation{color:#a66716;background:#fff4e3;border-radius:7px;gap:9px;margin-top:10px;padding:12px;display:flex}.patient-observation b{color:#74470f;font-size:var(--patient-body)}.patient-observation p{color:#835a25;font-size:var(--patient-subtext);margin:4px 0 0;line-height:1.55}.monitoring-card>div{border-bottom:1px solid var(--line);justify-content:space-between;gap:15px;padding:14px 0;display:flex}.monitoring-card>div:last-child{border-bottom:0}.monitoring-card>div span{color:var(--muted);font-size:var(--patient-subtext)}.monitoring-card>div strong{color:var(--ink);font-size:var(--patient-body);text-align:right}.monitoring-card>div strong.ok{color:#147a63}.monitoring-card>div strong.attention{color:#b45a32}.quick-data-card{gap:4px;display:grid}.quick-data-card>.patient-section-label{margin-bottom:5px}.patient-data-line{border-bottom:1px solid var(--line);color:var(--primary);gap:10px;padding:11px 0;display:flex}.patient-data-line:last-child{border-bottom:0}.patient-data-line div{gap:3px;min-width:0;display:grid}.patient-data-line span{color:var(--muted);font-size:var(--patient-caption);text-transform:uppercase;font-weight:700}.patient-data-line strong{overflow-wrap:anywhere;color:var(--ink);font-size:var(--patient-body);line-height:1.45}.patient-timeline{margin-top:15px;display:grid}.patient-timeline article{grid-template-columns:38px 1fr;gap:12px;padding-bottom:18px;display:grid;position:relative}.patient-timeline article:not(:last-child):before{content:"";background:var(--line);width:1px;position:absolute;top:36px;bottom:0;left:18px}.patient-timeline-icon{z-index:1;color:#1769aa;background:#eaf3fa;border:1px solid #cbdfea;border-radius:50%;place-items:center;width:36px;height:36px;display:grid}.patient-timeline-icon.type-contato{color:#14795f;background:#e6f5ef;border-color:#cce5db}.patient-timeline-icon.type-falta{color:#b75c37;background:#fff0e9;border-color:#efc5b6}.patient-timeline-content{padding:0 0 4px}.patient-timeline-content>div{justify-content:space-between;align-items:center;gap:8px;display:flex}.patient-timeline-content>div>span{color:var(--muted);font:700 var(--patient-caption) DM Mono, monospace}.patient-timeline-content h4{color:var(--ink);font-size:var(--patient-control);margin:6px 0 5px}.patient-timeline-content p{color:var(--muted);font-size:var(--patient-body);margin:0;line-height:1.6}.patient-timeline-content small{color:var(--muted);font-size:var(--patient-caption);margin-top:8px;line-height:1.45;display:block}.clinical-rich-text{color:var(--ink)}.clinical-rich-text h4{border-bottom:1px solid var(--line);color:var(--primary);letter-spacing:.055em;margin:17px 0 8px;padding-bottom:7px;font:800 12px/1.35 DM Mono,monospace}.clinical-rich-text h4:first-child{margin-top:0}.clinical-rich-text .clinical-text-space{height:8px}.clinical-rich-text .clinical-text-paragraph{color:var(--ink);white-space:pre-wrap;margin:0;font-size:14px;line-height:1.7}.clinical-rich-text .clinical-text-field{color:var(--ink);background:#f4f8fb;border-left:3px solid #b9d5ec;grid-template-columns:minmax(116px,.34fr) 1fr;gap:12px;margin:6px 0;padding:8px 10px;display:grid}.clinical-rich-text .clinical-text-field span{color:var(--muted);letter-spacing:.03em;text-transform:uppercase;font:800 11px/1.45 DM Mono,monospace}.clinical-rich-text .clinical-text-field strong{font-size:14px;line-height:1.55}.clinical-rich-text .clinical-text-list{color:var(--ink);gap:10px;margin:6px 0;font-size:14px;line-height:1.6;display:flex}.clinical-rich-text .clinical-text-list i{min-width:16px;color:var(--primary);text-align:center;font-style:normal;font-weight:900}.clinical-rich-text.compact{margin-top:8px}.clinical-rich-text.compact h4{margin:12px 0 6px;font-size:10px}.clinical-rich-text.compact .clinical-text-paragraph,.clinical-rich-text.compact .clinical-text-list{font-size:var(--patient-body);line-height:1.6}.clinical-rich-text.compact .clinical-text-field{grid-template-columns:minmax(92px,.36fr) 1fr;gap:8px;padding:7px 8px}.clinical-rich-text.compact .clinical-text-field span{font-size:9px}.clinical-rich-text.compact .clinical-text-field strong{font-size:var(--patient-body)}.theme-dark .clinical-rich-text .clinical-text-field{background:#1d2c3c;border-left-color:#4d84b4}.history-status{color:#147a63;text-transform:uppercase;background:#e2f4ee;border-radius:20px;align-items:center;min-height:25px;padding:0 8px;font-size:11px;font-style:normal;font-weight:800;display:inline-flex}.history-status.emitido{color:#1769aa;background:#e6f0fa}.history-status.faltou{color:#b55a34;background:#fff0e9}.patient-timeline-empty{min-height:130px;color:var(--muted);font-size:var(--patient-subtext);text-align:center;align-content:center;place-items:center;gap:8px;display:grid}.patient-full-history{min-height:420px;margin-top:14px}.patient-full-history>header>span{color:var(--muted);font-size:var(--patient-subtext)}.patient-registration-view{margin-top:14px;padding:22px}.patient-registration-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px;display:grid}.patient-registration-groups>section{border:1px solid var(--line);background:var(--surface-muted);border-radius:8px;padding:17px}.patient-registration-groups h4{color:var(--ink);margin:0 0 13px;font-size:14px}.patient-registration-groups section>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 18px;display:grid}.patient-registration-groups dl{min-width:0;margin:0}.patient-registration-groups dt{color:var(--muted);font-size:var(--patient-caption);text-transform:uppercase;font-weight:800}.patient-registration-groups dd{overflow-wrap:anywhere;color:var(--ink);font-size:var(--patient-body);margin:5px 0 0;line-height:1.5}.patient-modal-layer{align-items:center;padding:16px;overflow:hidden}.patient-form-modal{flex-direction:column;width:min(980px,100vw - 32px);height:min(900px,100dvh - 32px);max-height:calc(100dvh - 32px);padding:0;display:flex;overflow:hidden}.patient-form-modal>header{border-bottom:1px solid var(--line);padding:21px 24px 17px}.patient-form-modal>header h2{font-size:24px}.patient-form-modal .eyebrow{font-size:11px}.patient-form-modal form{flex-direction:column;flex:auto;min-height:0;margin:0;display:flex;overflow:hidden}.patient-form-scroll{overscroll-behavior:contain;scrollbar-gutter:stable;flex:auto;min-height:0;padding:20px 24px 28px;overflow-y:auto}.patient-form-section{margin-bottom:20px}.patient-form-section h3{color:var(--ink);align-items:center;gap:8px;margin:0 0 11px;font-size:15px;display:flex}.patient-form-section h3 svg{color:var(--primary)}.patient-form-section>div{border:1px solid var(--line);background:var(--surface-muted);border-radius:9px;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px;display:grid}.patient-form-section label{min-width:0}.patient-form-section .span-2{grid-column:span 2}.patient-form-modal label{color:var(--muted);font:800 var(--patient-caption)/1.4 DM Mono, monospace;letter-spacing:.035em}.patient-form-modal input,.patient-form-modal select,.patient-form-modal textarea{border:1px solid var(--line);background:var(--surface);width:100%;color:var(--ink);font:500 var(--patient-control) Manrope, sans-serif;letter-spacing:0;border-radius:7px;outline:0;margin-top:7px}.patient-form-modal input,.patient-form-modal select{height:46px;padding:0 11px}.patient-form-modal textarea{resize:vertical;min-height:82px;padding:10px;line-height:1.5}.patient-form-modal input:focus,.patient-form-modal select:focus,.patient-form-modal textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #1769aa1c}.patient-consent{border:1px solid var(--line);background:var(--surface-muted);border-radius:8px;align-items:flex-start;padding:14px;flex-direction:row!important;gap:10px!important;display:flex!important}.patient-consent input{flex:none;width:18px;height:18px;margin:1px 0 0}.patient-consent span{gap:4px;display:grid}.patient-consent b{color:var(--ink);font:800 var(--patient-body) Manrope, sans-serif;letter-spacing:0}.patient-consent small{color:var(--muted);font:500 var(--patient-subtext)/1.55 Manrope, sans-serif;letter-spacing:0}.patient-form-modal>form>footer{z-index:2;border-top:1px solid var(--line);background:var(--surface);flex:none;min-height:76px;margin:0;padding:14px 24px;position:relative;box-shadow:0 -10px 24px #1c324814}.patient-form-modal>form>footer .button{min-width:128px;height:48px;font-size:var(--patient-body)}.theme-dark .patient-metric-icon.blue{color:#9dcefb;background:#203b57}.theme-dark .patient-metric-icon.green,.theme-dark .follow-up-status.ok,.theme-dark .patient-status.ativo,.theme-dark .profile-status-chip.confirmado,.theme-dark .profile-status-chip.chegou{color:#8bdfc8;background:#173b36}.theme-dark .patient-metric-icon.amber,.theme-dark .profile-status-chip{color:#f0c475;background:#47371f}.theme-dark .follow-up-status.attention,.theme-dark .patient-status.pendente,.theme-dark .history-status.faltou{color:#f3a990;background:#472c28}.theme-dark .legacy-source-chip{color:#9dcefb;background:#203b57}.theme-dark .legacy-data-banner{background:#182c3e;border-color:#31536c}.theme-dark .legacy-data-banner.error{color:#f1a58b;background:#422b27;border-color:#68443a}.theme-dark .patient-care-summary article.attention,.theme-dark .patient-observation{color:#f0a98e;background:#3a2925;border-color:#69483b}.theme-dark .patient-observation b,.theme-dark .patient-observation p{color:#f1bd98}.theme-dark .patient-timeline-icon{color:#9bcef6;background:#21394d;border-color:#31536c}.theme-dark .patient-timeline-icon.type-contato{color:#8cdbc4;background:#1d3c36;border-color:#31564e}.theme-dark .patient-timeline-icon.type-falta{color:#f1a58b;background:#422b27;border-color:#68443a}.theme-dark .history-status{color:#8bdfc8;background:#173b36}.theme-dark .history-status.emitido{color:#9dcefb;background:#203b57}.theme-dark .patient-advanced-filter-toggle{background:#182a38}.theme-dark .patient-advanced-filter-toggle>button:first-child{color:#d6e4ed;background:#203545;border-color:#3e6178}.theme-dark .patient-advanced-filter-toggle>button:first-child.active{color:#b7def6;background:#1d4058;border-color:#4e8db5}.theme-dark .patient-advanced-filters{background:#182a38}.theme-dark .patient-advanced-filters input{color:#e7f1f7;background:#203545;border-color:#3e6178}@media (width<=1180px){.waiting-room-bar{flex-wrap:wrap;padding:12px 20px}.waiting-room-list{order:3;width:100%}.waiting-room-picker{width:min(340px,52vw);margin-left:auto}.waiting-room-add{width:100%}.patient-directory-tools{flex-wrap:wrap}.patient-search{order:1}.patient-list-filters{order:3;width:100%;overflow-x:auto}.patient-directory-tools>.button{order:2}.patient-advanced-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.patient-pagination{flex-direction:column;align-items:flex-start}.patient-pagination>div{justify-content:flex-start}.patient-overview-grid{grid-template-columns:1fr}.patient-overview-side{grid-template-columns:repeat(2,minmax(0,1fr))}.patient-profile-hero{flex-direction:column;align-items:flex-start}.patient-profile-actions{justify-content:flex-start}}@media (width<=780px){.waiting-room-bar{align-items:stretch;gap:10px;padding:11px 14px}.waiting-room-title{flex:1;min-width:0}.waiting-room-picker,.waiting-room-add{width:100%;margin:0}.waiting-room-list{order:0;width:100%}.patient-list-metrics{grid-template-columns:1fr}.patient-list-metrics article{min-height:78px}.patient-profile-identity{align-items:flex-start}.patient-profile-name{flex-direction:column;align-items:flex-start}.patient-contact-line{flex-direction:column;gap:7px}.patient-profile-actions{width:100%}.patient-profile-actions .button{flex:150px}.patient-profile-tabs{padding:0 10px;overflow-x:auto}.patient-profile-tabs button{white-space:nowrap}.patient-overview-side,.patient-care-summary{grid-template-columns:1fr}.upcoming-appointment{grid-template-columns:64px 1fr}.upcoming-appointment>button{grid-column:2;justify-self:start}.patient-registration-groups,.patient-registration-groups section>div{grid-template-columns:1fr}.patient-form-section>div{grid-template-columns:repeat(2,minmax(0,1fr))}.patient-form-section .span-2{grid-column:span 2}}@media (width<=520px){.waiting-room-title small{font-size:12px}.waiting-patient{min-width:178px}.waiting-call{font-size:11px}.patient-directory-tools{padding:14px}.patient-advanced-filter-toggle{padding:10px 14px}.patient-advanced-filters{grid-template-columns:1fr;padding:14px}.patient-directory-tools>.button{width:100%}.patient-list-filters button{flex:none}.patient-pagination{padding:14px}.patient-pagination>div{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;display:grid}.patient-pagination button{width:100%;padding:0 8px}.patient-profile-hero{padding:17px}.patient-profile-identity>.avatar{width:46px;height:46px}.patient-profile-name h2{font-size:21px}.patient-profile-actions .button{flex-basis:100%;width:100%}.patient-section-card,.patient-registration-view{padding:16px}.patient-section-card>header{align-items:flex-start}.patient-empty-state{flex-wrap:wrap;align-items:flex-start}.patient-empty-state .button{width:100%}.patient-modal-layer{padding:8px}.patient-form-modal{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.patient-form-modal>header,.patient-form-scroll,.patient-form-modal>form>footer{padding-left:16px;padding-right:16px}.patient-form-modal>form>footer{flex-direction:column-reverse;align-items:stretch;min-height:136px}.patient-form-modal>form>footer .button{width:100%}.patient-form-section>div{grid-template-columns:1fr;padding:13px}.patient-form-section .span-2{grid-column:span 1}}.timeline-edit{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);color:var(--primary,#1769aa);cursor:pointer;border-radius:8px;align-items:center;gap:5px;margin-left:auto;padding:3px 10px;font-size:12.5px;font-weight:700;display:inline-flex}.timeline-edit:hover{background:var(--sidebar-hover,#edf5fb)}.patient-form-hint{color:var(--muted,#4d6076);letter-spacing:0;text-transform:none;margin-top:4px;font:400 12.5px Manrope,sans-serif}.patient-form-hint.erro{color:#8c2d1a;font-weight:600}.patient-form-modal input[aria-invalid=true]{border-color:#d1442a;box-shadow:0 0 0 2px #d1442a2e}.patient-quick-note{border:1px solid var(--line,#dce4ee);border-left:4px solid var(--primary,#1769aa);background:var(--sidebar-hover,#edf5fb);color:#1d4a6e;border-radius:10px;margin:0 0 16px;padding:12px 15px;font-size:13.5px;line-height:1.5}.patient-quick-note b{color:#123c5e}.patient-form-section label .field-label{flex-wrap:wrap;align-items:center;gap:7px;display:inline-flex}.patient-form-section label .req{color:#8c2d1a;letter-spacing:.07em;text-transform:uppercase;background:#fdeae6;border-radius:4px;margin-left:0;padding:1px 6px;font:700 9px DM Mono,monospace}.theme-dark .patient-quick-note{border-color:#2e4053;border-left-color:var(--primary,#63aef5);color:#cfe4f7;background:#16283a}.theme-dark .patient-quick-note b{color:#eaf4ff}.theme-dark .patient-form-section label .req{color:#f5b8a5;background:#35211d}.waiting-patient{flex:none}.waiting-patient>div{min-width:0;overflow:hidden}.waiting-patient b{min-width:0;display:block}@media (pointer:coarse){.waiting-call{min-height:40px;padding:0 12px;font-size:12.5px}.waiting-remove{min-width:40px;min-height:40px}.waiting-patient{grid-template-columns:minmax(124px,1fr) auto 40px;min-width:262px}}.theme-dark .waiting-call{color:#7fd9b8;background:#16332a;border-color:#2f6b58}.theme-dark .waiting-call:hover{background:#1c4436}.theme-dark .waiting-patient small{color:#e2a558}.theme-dark .no-next-visit{color:#f0a884}.theme-dark .waiting-room-empty{color:#9fb3c6}.waiting-today-options>span.waiting-today-nofile{border-bottom:1px solid var(--line);color:#8c2d27;background:#fdeceb;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;min-height:51px;padding:8px 10px;font-size:11.5px;font-weight:800;display:grid}.waiting-today-options>span.waiting-today-nofile:last-child{border-bottom:0}.waiting-today-nofile>span:first-child{gap:2px;min-width:0;display:grid}.waiting-today-nofile b{color:#8c2d27;text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.waiting-today-nofile small{color:#a4483f;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600;overflow:hidden}.waiting-today-nofile>span:last-child{white-space:nowrap}.theme-dark .waiting-today-options>span.waiting-today-nofile{color:#f5b8a5;background:#33201c}.theme-dark .waiting-today-nofile b{color:#f5b8a5}.theme-dark .waiting-today-nofile small{color:#e0a191}.history-status.editado{color:#8a5a0b;background:#fdf1dc;margin-left:6px}.timeline-original{margin-top:8px}.timeline-original-toggle{color:var(--primary,#1769aa);cursor:pointer;background:0 0;border:0;align-items:center;gap:5px;padding:0;font-size:12px;font-weight:800;display:inline-flex}.timeline-original-texto{background:#fdf8ee;border-left:3px solid #e5c178;border-radius:6px;margin-top:6px;padding:9px 11px}.timeline-original-texto>small{color:#8a5a0b;letter-spacing:.06em;text-transform:uppercase;margin-bottom:4px;font-size:10.5px;font-weight:800;display:block}.theme-dark .history-status.editado{color:#f0c475;background:#47371f}.theme-dark .timeline-original-texto{background:#2b2518;border-left-color:#8a6a2c}.theme-dark .timeline-original-texto>small{color:#f0c475}.timeline-edit.timeline-delete{color:#b3412f;margin-left:6px}.timeline-edit.timeline-delete:hover{background:#fdeeea}.timeline-edit+.timeline-edit{margin-left:6px}.button.document-delete{color:#b3412f}.button.primary.document-delete-confirm{color:#fff;background:#b3412f;border-color:#b3412f}.theme-dark .timeline-edit.timeline-delete,.theme-dark .button.document-delete{color:#f1a58b}.theme-dark .timeline-edit.timeline-delete:hover{background:#3a2622}.patient-delete-reasons{color:var(--ink,#172536);gap:7px;margin:14px 0 0;padding-left:20px;font-size:13px;line-height:1.45;display:grid}.patient-delete-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:16px 0 0;display:grid}.patient-delete-facts dt{color:var(--muted,#617185);letter-spacing:.06em;text-transform:uppercase;font:700 10px DM Mono,monospace}.patient-delete-facts dd{color:var(--ink,#172536);overflow-wrap:anywhere;margin:3px 0 0;font-size:13px;font-weight:700}.patient-delete-warning{color:#8f3a29;background:#fff6f4;border-radius:7px;align-items:flex-start;gap:8px;margin:16px 0;padding:10px 12px;font-size:12px;line-height:1.45;display:flex}.patient-delete-warning svg{flex:none;margin-top:1px}.theme-dark .patient-delete-reasons,.theme-dark .patient-delete-facts dd{color:#eff6ff}.theme-dark .patient-delete-facts dt{color:#a4b3c5}.theme-dark .patient-delete-warning{color:#ffb8a9;background:#342322}@media (width<=520px){.patient-delete-facts{grid-template-columns:1fr}}.global-search-layer{z-index:40;place-items:start center;padding:min(13vh,112px) 20px 20px;display:grid;position:fixed;inset:0}.global-search-backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#101d2d7a;border:0;position:absolute;inset:0}.global-search-dialog{z-index:1;border:1px solid var(--line);background:var(--surface);width:min(700px,100%);color:var(--ink);border-radius:12px;position:relative;overflow:hidden;box-shadow:0 24px 70px #14294040}.global-search-dialog header{border-bottom:1px solid var(--line);min-height:67px;color:var(--primary);align-items:center;gap:11px;padding:0 17px;display:flex}.global-search-dialog header input{min-width:0;color:var(--ink);background:0 0;border:0;outline:0;flex:1;font:600 16px Manrope,sans-serif}.global-search-dialog header input::placeholder{color:var(--muted)}.global-search-dialog kbd{border:1px solid var(--line);background:var(--surface-muted);min-width:33px;height:25px;color:var(--muted);border-radius:5px;justify-content:center;align-items:center;padding:0 6px;font:700 10px DM Mono,monospace;display:inline-flex}.global-search-dialog header button{width:34px;height:34px;color:var(--muted);background:0 0;border:0;border-radius:7px;place-items:center;display:grid}.global-search-dialog header button:hover{background:var(--surface-muted);color:var(--primary)}.global-search-results{max-height:min(53vh,440px);overflow-y:auto}.global-search-result{border:0;border-bottom:1px solid var(--line);width:100%;min-height:75px;color:var(--muted);text-align:left;background:0 0;grid-template-columns:42px minmax(0,1fr) auto 20px;align-items:center;gap:12px;padding:12px 17px;display:grid}.global-search-result:hover,.global-search-result:focus-visible{background:var(--surface-muted);outline:0}.global-search-result .avatar{width:40px;height:40px;font-size:12px}.global-search-result>span{gap:4px;min-width:0;display:grid}.global-search-result b{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:15px;overflow:hidden}.global-search-result small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.global-search-result i{background:var(--surface-muted);color:var(--muted);border-radius:5px;padding:5px 8px;font-size:11px;font-style:normal;font-weight:800}.global-search-result>svg{color:var(--primary)}.global-search-start,.global-search-empty{min-height:220px;color:var(--muted);text-align:center;align-content:center;place-items:center;gap:9px;padding:25px;display:grid}.global-search-start svg,.global-search-empty svg{color:var(--primary)}.global-search-start b,.global-search-empty b{color:var(--ink);font-size:15px}.global-search-start span,.global-search-empty span{max-width:420px;font-size:13px;line-height:1.5}.global-search-dialog footer{background:var(--surface-muted);min-height:54px;color:var(--muted);justify-content:space-between;align-items:center;gap:12px;padding:0 17px;font-size:12px;display:flex}.global-search-dialog footer>span{align-items:center;gap:5px;display:inline-flex}.global-search-dialog footer button{min-height:36px;color:var(--primary);background:0 0;border:0;align-items:center;gap:7px;font-size:13px;font-weight:800;display:inline-flex}@media (width>=721px) and (width<=1180px){.app-shell{grid-template-columns:88px minmax(0,1fr)}.sidebar{padding:22px 10px 16px}.sidebar .brand{justify-content:center;padding:0}.sidebar .brand>span:last-child,.sidebar .tenant-switcher>span:not(.tenant-initials),.sidebar .tenant-switcher>svg,.sidebar .nav-group>p,.sidebar .help>div,.sidebar .profile>span:not(.avatar),.sidebar .profile>i{display:none}.sidebar .tenant-switcher{justify-content:center;min-height:50px;margin:25px 0 18px;padding:0}.sidebar .nav-item{justify-content:center;height:50px;padding:0;font-size:0;position:relative}.sidebar .nav-item>span{width:auto}.sidebar .nav-item em{font-size:9px;position:absolute;top:8px;right:9px}.sidebar .help,.sidebar .profile{justify-content:center;padding-left:0;padding-right:0}.topbar{height:76px;padding:0 26px}.global-search{width:min(36vw,330px)}.page{padding:29px 26px 46px}.page h1{font-size:32px}.agenda-alerts{grid-template-columns:1fr}.agenda-alerts article{min-height:64px}.documents-layout.official-documents-layout{grid-template-columns:minmax(0,1.1fr) minmax(250px,.9fr);align-items:start}.official-document-preview{min-width:0;display:flex;position:sticky;top:96px}.official-document-preview .print-sheet{width:100%;min-height:0;margin:0}.settings-page,.settings-grid,.identity-upload-grid{grid-template-columns:1fr}}@media (width>=721px) and (width<=860px){.topbar .crumb{display:none}.topbar{justify-content:flex-end}.global-search{width:min(55vw,390px)}.page-heading{align-items:flex-start;gap:14px}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.metric-grid,.patient-list-metrics{grid-template-columns:1fr}}@media (width<=720px){.global-search-layer{align-items:end;padding:10px}.global-search-dialog{border-radius:12px}.global-search-dialog header{min-height:62px;padding:0 13px}.global-search-dialog header input{font-size:14px}.global-search-dialog header>kbd{display:none}.global-search-results{max-height:56vh}.global-search-result{grid-template-columns:38px minmax(0,1fr) 18px;min-height:72px;padding:11px 13px}.global-search-result i{display:none}.global-search-dialog footer{min-height:58px;padding:0 13px}.global-search-dialog footer>span{display:none}.global-search-dialog footer button{justify-content:center;width:100%}}.agenda-alerts button,.active-filter-note button,.clear-filters{border-radius:7px;min-height:32px;margin:-6px -10px;padding:6px 10px}.agenda-alerts button:hover,.active-filter-note button:hover,.clear-filters:hover{background:var(--sidebar-hover,#edf5fb)}@media (pointer:coarse){.agenda-alerts button,.active-filter-note button,.clear-filters{min-height:44px;margin:-10px -12px;padding:10px 12px}.waiting-sound-toggle{min-height:40px;padding:0 14px}.bell,.theme-toggle,.profile{min-width:44px;min-height:44px}input[type=checkbox],input[type=radio]{width:22px;height:22px}.agenda-legend-toggle,.print-layout-switch,.appointment-fitin{min-height:48px}.modal input,.modal select,.modal textarea{min-height:46px}.filter-popover select,.period-picker select,.agenda-unit-filter select{height:44px}.week-day-actions,.month-cell-actions,.agenda-colors-reset{opacity:1!important;pointer-events:auto!important}}@media (width<=1060px){.specialty-record-layout .specialty-patient-card{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:2px 12px;padding:14px 16px;display:grid}.specialty-record-layout .specialty-patient-card .patient-card-top{grid-row:span 2}.specialty-record-layout .specialty-patient-card .patient-card-top .tag,.specialty-record-layout .specialty-patient-card .patient-contact,.specialty-record-layout .specialty-patient-card>.button.secondary,.specialty-record-layout .specialty-patient-card .record-medications-card{display:none}.specialty-record-layout .specialty-patient-card h2{margin:0;font-size:20px;line-height:1.2}.specialty-record-layout .specialty-patient-card>p{margin:0}.specialty-record-layout .specialty-patient-card>.button.primary{grid-column:1/-1;margin-top:10px}.specialty-record-layout .specialty-patient-card .record-menu{grid-column:1/-1;gap:8px;margin:12px 0 0;padding-bottom:2px;display:flex;overflow-x:auto}.specialty-record-layout .specialty-patient-card .record-menu>b{display:none}.specialty-record-layout .specialty-patient-card .record-menu button{border:1px solid var(--line,#dce4ee);white-space:nowrap;border-radius:8px;flex:none;width:auto;height:42px;padding:0 14px}.specialty-record-main .record-action{flex-wrap:wrap;gap:12px}.specialty-record-main .record-action>div:first-child{flex:100%}.specialty-record-main .record-action>div:last-child{flex-wrap:wrap}}@media (width<=1180px){.agenda-toolbar{flex-wrap:wrap;gap:10px 14px;height:auto;min-height:68px;padding:10px 18px}.agenda-filters{flex-wrap:wrap}.official-template-panel .template-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-top:14px}.official-template-panel .document-template-option{align-items:center;gap:10px;min-height:52px;padding:10px 34px 10px 12px;display:flex}.official-template-panel .document-template-option p,.official-template-panel .document-template-option .template-action{display:none}.official-template-panel .document-template-option h3{margin:0;font-size:13px;line-height:1.25}.official-template-panel .document-template-option>svg{flex:none}.official-template-panel .document-template-option .template-selected-icon{top:50%;right:10px;transform:translateY(-50%)}}@media (width>=721px) and (width<=900px){.documents-layout.official-documents-layout{grid-template-columns:minmax(0,1fr)}.official-document-preview{position:static}.official-document-preview .print-sheet{max-width:460px;margin:0 auto}}@media (pointer:coarse){.timeline-edit{min-height:40px;padding:0 12px}.modal header>button,.drawer header>button{width:40px;height:40px}.appointment-time-chips button{min-height:40px}.date-tools>button{min-width:40px}}.admin-console{gap:18px;display:grid}.admin-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-top:4px;display:grid}.admin-metrics .metric{min-height:112px}.admin-directory,.admin-section-card,.admin-company-hero{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);border-radius:11px}.admin-directory{overflow:hidden}.admin-directory>header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:18px;padding:22px 24px;display:flex}.admin-directory h2{color:var(--ink);letter-spacing:-.03em;margin:3px 0 5px;font-size:22px}.admin-directory>header span{color:var(--muted);font-size:14px}.admin-section-label{color:var(--primary);letter-spacing:.07em;margin:0;font:800 11px/1.4 DM Mono,monospace}.admin-directory-tools{border-bottom:1px solid var(--line);background:var(--surface-muted);justify-content:space-between;align-items:center;gap:16px;padding:16px 24px;display:flex}.admin-directory-tools>div{border:1px solid var(--line);background:var(--surface);min-width:min(350px,100%);height:44px;color:var(--primary);border-radius:7px;align-items:center;gap:9px;padding:0 12px;display:flex}.admin-directory-tools input{width:100%;min-width:0;color:var(--ink);background:0 0;border:0;outline:0;font-size:14px}.admin-directory-tools input::placeholder{color:var(--muted)}.admin-directory-tools nav{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.admin-directory-tools nav button{min-height:38px;color:var(--muted);background:0 0;border:1px solid #0000;border-radius:7px;align-items:center;gap:6px;padding:0 10px;font-size:13px;font-weight:800;display:inline-flex}.admin-directory-tools nav button:hover,.admin-directory-tools nav button.active{border-color:var(--line);background:var(--surface);color:var(--primary)}.admin-directory-tools nav span{background:var(--surface-muted);border-radius:20px;place-items:center;min-width:20px;height:20px;padding:0 5px;font-size:10px;display:grid}.admin-table{padding:4px 18px 16px;overflow-x:auto}.admin-table-head,.admin-table-row{grid-template-columns:minmax(210px,1.55fr) minmax(160px,1.1fr) 78px 84px minmax(125px,.95fr) 108px 22px;align-items:center;gap:13px;min-width:880px;display:grid}.admin-table-head{min-height:43px;color:var(--muted);letter-spacing:.055em;padding:0 8px;font:800 10px DM Mono,monospace}.admin-table-row{border:0;border-top:1px solid var(--line);width:100%;min-height:79px;color:var(--ink);text-align:left;background:0 0;padding:10px 8px}.admin-table-row:hover{background:var(--surface-muted)}.admin-table-row>span:not(.admin-tenant-name):not(.tenant-status){color:var(--ink);font-size:14px;font-weight:700}.admin-table-row>span>b{color:var(--ink);font-size:14px;display:block}.admin-table-row small{color:var(--muted);margin-top:3px;font-size:12px;font-weight:600;display:block}.admin-tenant-name{align-items:center;gap:11px;min-width:0;display:flex}.admin-tenant-name>span:last-child{min-width:0}.admin-row-mark,.admin-company-mark{color:#1769aa;background:#e5f0fb;flex:none;place-items:center;display:grid}.admin-row-mark{border-radius:9px;width:38px;height:38px}.admin-last-activity{color:var(--muted)!important;font-size:12px!important;font-weight:700!important}.tenant-status,.user-status,.current-tenant{white-space:nowrap;border-radius:20px;justify-content:center;align-items:center;width:fit-content;min-height:27px;padding:0 9px;font-size:11px;font-weight:800;display:inline-flex}.tenant-status.ativo,.user-status.ativo{color:#14775f;background:#e0f3ec}.tenant-status.trial,.user-status.convite{color:#98601b;background:#fff1d9}.tenant-status.suspenso,.user-status.inativo{color:#ae5032;background:#fdeae4}.user-status.convite\ pendente{color:#98601b;background:#fff1d9}.admin-company-hero{justify-content:space-between;align-items:center;gap:22px;padding:23px 24px;display:flex}.admin-company-identity{align-items:center;gap:16px;min-width:0;display:flex}.admin-company-mark{border-radius:12px;width:58px;height:58px}.admin-company-title{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.admin-company-title h2{color:var(--ink);letter-spacing:-.03em;margin:0;font-size:25px}.admin-company-identity p{color:var(--muted);margin:6px 0 4px;font-size:14px;font-weight:700}.admin-company-identity small{color:var(--muted);font-size:12px}.current-tenant{color:#1769aa;background:#e4eef9}.admin-company-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.admin-tabs{border:1px solid var(--line);background:var(--surface);border-top:0;border-radius:0 0 11px 11px;gap:7px;padding:0 20px;display:flex}.admin-tabs button{min-height:53px;color:var(--muted);background:0 0;border:0;border-bottom:3px solid #0000;align-items:center;gap:7px;padding:0 13px;font-size:14px;font-weight:800;display:inline-flex}.admin-tabs button.active{border-bottom-color:var(--primary);color:var(--primary)}.admin-tabs button span{background:var(--surface-muted);border-radius:20px;place-items:center;min-width:22px;height:22px;padding:0 5px;font-size:10px;display:grid}.admin-overview-grid{grid-template-columns:minmax(0,1fr) 300px;gap:14px;display:grid}.admin-overview-main,.admin-overview-side{align-content:start;gap:14px;display:grid}.admin-section-card{padding:20px}.admin-section-card>header{justify-content:space-between;align-items:center;gap:12px;display:flex}.admin-section-card h3{color:var(--ink);letter-spacing:-.02em;margin:3px 0 0;font-size:18px}.admin-section-card>header>button:not(.button){color:var(--primary);background:0 0;border:0;align-items:center;gap:6px;font-size:13px;font-weight:800;display:inline-flex}.admin-summary-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:15px;display:grid}.admin-summary-cards article{border:1px solid var(--line);background:var(--surface-muted);border-radius:8px;align-content:start;gap:6px;min-height:112px;padding:14px;display:grid}.admin-summary-cards span{color:var(--muted);letter-spacing:.04em;font:800 10px DM Mono,monospace}.admin-summary-cards strong{color:var(--ink);font-size:18px}.admin-summary-cards strong.ativo{color:#14775f}.admin-summary-cards strong.trial{color:#98601b}.admin-summary-cards strong.suspenso{color:#ae5032}.admin-summary-cards small{color:var(--muted);font-size:12px;line-height:1.4}.admin-user-preview{gap:2px;margin-top:13px;display:grid}.admin-user-preview article{border-bottom:1px solid var(--line);align-items:center;gap:10px;min-height:57px;padding:7px 0;display:flex}.admin-user-preview article:last-child{border-bottom:0}.admin-user-preview .avatar{width:36px;height:36px;font-size:11px}.admin-user-preview article>div{flex:1;gap:3px;min-width:0;display:grid}.admin-user-preview b{color:var(--ink);font-size:14px}.admin-user-preview small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.admin-contact-card{gap:4px;display:grid}.admin-contact-card>div{border-bottom:1px solid var(--line);color:var(--primary);gap:10px;padding:11px 0;display:flex}.admin-contact-card>div:last-child{border-bottom:0}.admin-contact-card div span{gap:3px;min-width:0;display:grid}.admin-contact-card small{color:var(--muted);text-transform:uppercase;font-size:11px;font-weight:700}.admin-contact-card b{overflow-wrap:anywhere;color:var(--ink);font-size:13px}.admin-activity-card{gap:8px;display:grid}.admin-activity-card strong{color:var(--ink);font-size:19px}.admin-activity-card span{color:var(--muted);font-size:13px;line-height:1.5}.admin-activity-card .button{margin-top:6px;font-size:12px}.admin-users-card{min-height:420px}.admin-user-list{margin-top:16px;display:grid}.admin-user-list article{border-bottom:1px solid var(--line);grid-template-columns:40px minmax(180px,1.35fr) minmax(135px,1fr) 120px minmax(120px,.9fr) auto;align-items:center;gap:12px;min-height:67px;padding:10px 0;display:grid}.admin-user-list .avatar{width:38px;height:38px;font-size:11px}.admin-user-name{gap:3px;min-width:0;display:grid}.admin-user-name b{color:var(--ink);font-size:14px}.admin-user-name small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.admin-user-role{color:var(--ink);font-size:13px;font-weight:700}.admin-user-access{color:var(--muted);font-size:12px}.admin-user-list article>button{color:var(--primary);background:0 0;border:0;font-size:12px;font-weight:800}.admin-data-card{min-height:380px}.admin-data-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;margin-top:15px;display:grid}.admin-data-grid article{border-bottom:1px solid var(--line);gap:5px;min-height:72px;padding:13px 0;display:grid}.admin-data-grid span{color:var(--muted);text-transform:uppercase;font-size:11px;font-weight:800}.admin-data-grid strong{color:var(--ink);overflow-wrap:anywhere;font-size:14px}.admin-empty{min-height:174px;color:var(--muted);text-align:center;align-content:center;place-items:center;gap:8px;padding:22px;display:grid}.admin-empty svg{color:var(--primary)}.admin-empty b{color:var(--ink);font-size:14px}.admin-empty span{font-size:13px}.tenant-form-modal{flex-direction:column;width:min(720px,100vw - 32px);max-height:min(840px,100dvh - 32px);padding:0;display:flex;overflow:hidden}.tenant-form-modal>header{border-bottom:1px solid var(--line);padding:22px 24px 18px}.tenant-form-modal header>div>span{max-width:500px;color:var(--muted);margin-top:7px;font-size:13px;line-height:1.5;display:block}.tenant-form-modal form{flex-direction:column;flex:1;min-height:0;margin:0;display:flex}.tenant-form-scroll{padding:20px 24px 25px;overflow-y:auto}.tenant-form-scroll section+section{margin-top:22px}.tenant-form-scroll section{border:1px solid var(--line);background:var(--surface-muted);border-radius:9px;padding:17px}.tenant-form-scroll h3{color:var(--ink);margin:0 0 15px;font-size:16px}.tenant-form-scroll p{color:var(--muted);margin:-7px 0 15px;font-size:13px;line-height:1.55}.tenant-form-scroll label{color:var(--muted);letter-spacing:.04em;margin-top:12px;font:800 10px/1.4 DM Mono,monospace}.tenant-form-scroll label:first-of-type{margin-top:0}.tenant-form-scroll input,.tenant-form-scroll select{border:1px solid var(--line);background:var(--surface);width:100%;height:44px;color:var(--ink);letter-spacing:0;border-radius:7px;outline:0;margin-top:6px;font:500 14px Manrope,sans-serif}.tenant-form-scroll input{padding:0 11px}.tenant-form-scroll select{padding:0 8px}.tenant-form-scroll input:focus,.tenant-form-scroll select:focus{border-color:var(--primary);box-shadow:0 0 0 3px #1769aa1c}.tenant-form-modal>form>footer{background:var(--surface);flex:none;min-height:75px;margin:0;padding:13px 24px}.tenant-form-modal>form>footer .button{min-width:145px;height:46px;font-size:13px}.tenant-company-modal{width:min(1080px,100vw - 40px);max-height:calc(100dvh - 32px)}.tenant-company-modal>header{padding:19px 26px 16px}.tenant-company-modal>header h2{font-size:24px}.tenant-company-modal>header>div>span{margin-top:4px}.tenant-company-modal form{overflow:hidden}.tenant-company-layout{grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);gap:14px;padding:16px 26px 18px;display:grid}.tenant-form-section{border:1px solid var(--line);background:var(--surface-muted);border-radius:10px;padding:16px}.tenant-company-admin{flex-direction:column;display:flex}.tenant-section-heading{justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:13px;display:flex}.tenant-section-heading h3{color:var(--ink);letter-spacing:-.015em;margin:0;font-size:16px}.tenant-section-heading p{color:var(--muted);margin:3px 0 0;font-size:12px;line-height:1.45}.tenant-section-heading>span{color:#1769aa;background:#e4eef9;border-radius:50%;place-items:center;width:23px;height:23px;font:800 11px DM Mono,monospace;display:grid}.tenant-company-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;display:grid}.tenant-company-admin .tenant-company-fields{grid-template-columns:1fr 1fr}.tenant-company-fields label{min-width:0;color:var(--muted);letter-spacing:.04em;font:800 10px/1.35 DM Mono,monospace}.tenant-company-fields .span-2{grid-column:span 2}.tenant-company-fields .span-3{grid-column:span 3}.tenant-company-fields input,.tenant-company-fields select{border:1px solid var(--line);background:var(--surface);width:100%;height:41px;color:var(--ink);letter-spacing:0;border-radius:7px;outline:0;margin-top:6px;padding:0 10px;font:500 13px Manrope,sans-serif}.tenant-company-fields select{padding-right:6px}.tenant-company-fields input:focus,.tenant-company-fields select:focus{border-color:var(--primary);box-shadow:0 0 0 3px #1769aa1c}.tenant-invite-note{color:#1769aa;background:#eef5fb;border:1px solid #cbdfea;border-radius:8px;align-items:flex-start;gap:8px;margin-top:auto;padding:12px;display:flex}.tenant-invite-note span{color:#376988;font-size:12px;line-height:1.45}.tenant-company-modal>form>footer{justify-content:space-between;align-items:center;min-height:66px;padding:10px 26px;display:flex}.tenant-company-modal>form>footer>div{gap:8px;display:flex}.tenant-company-modal>form>footer .button{height:42px}.tenant-form-hint{color:var(--muted);font-size:11px}.theme-dark .tenant-section-heading>span{color:#9dcefb;background:#203b57}.theme-dark .tenant-invite-note{color:#9dcefb;background:#152e42;border-color:#294e70}.theme-dark .tenant-invite-note span{color:#b7d7ef}.theme-dark .admin-row-mark,.theme-dark .admin-company-mark{color:#9dcefb;background:#203b57}.theme-dark .tenant-status.ativo,.theme-dark .user-status.ativo{color:#8bdfc8;background:#173b36}.theme-dark .tenant-status.trial,.theme-dark .user-status.convite\ pendente{color:#f3ce76;background:#3c321c}.theme-dark .tenant-status.suspenso,.theme-dark .user-status.inativo{color:#f0a38c;background:#432b26}.theme-dark .current-tenant{color:#9dcefb;background:#203b57}@media (width<=1120px){.admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-overview-grid{grid-template-columns:1fr}.admin-overview-side,.admin-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-directory-tools{flex-direction:column;align-items:stretch}.admin-directory-tools>div{width:100%}.admin-directory-tools nav{justify-content:flex-start}.admin-user-list article{grid-template-columns:40px minmax(180px,1fr) 130px 110px auto}.admin-user-access{display:none}}@media (width<=900px){.tenant-company-modal{width:min(790px,100vw - 32px)}.tenant-company-layout{grid-template-columns:1fr}.tenant-company-admin .tenant-company-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.tenant-company-admin .tenant-company-fields .span-2{grid-column:span 2}.tenant-invite-note{margin-top:12px}}@media (width<=720px){.admin-metrics{grid-template-columns:1fr}.admin-directory>header,.admin-company-hero{flex-direction:column;align-items:flex-start;padding:18px}.admin-directory>header .button,.admin-company-actions{width:100%}.admin-company-actions .button{flex:1}.admin-directory-tools{padding:13px 16px}.admin-directory-tools nav{flex-wrap:nowrap;padding-bottom:2px;overflow-x:auto}.admin-directory-tools nav button{flex:none}.admin-table{padding:4px 10px 12px}.admin-tabs{padding:0 10px;overflow-x:auto}.admin-tabs button{flex:none}.admin-overview-side{grid-template-columns:1fr}.admin-section-card{padding:16px}.admin-summary-cards{grid-template-columns:1fr 1fr}.admin-user-list{overflow-x:auto}.admin-user-list article{min-width:670px}.admin-data-grid{grid-template-columns:1fr}.tenant-form-layer{align-items:end;padding:8px}.tenant-form-modal{width:100%;max-height:calc(100dvh - 16px)}.tenant-form-modal>header,.tenant-form-scroll,.tenant-form-modal>form>footer{padding-left:16px;padding-right:16px}.tenant-form-scroll section{padding:14px}.tenant-form-scroll .form-row{grid-template-columns:1fr;gap:0;margin:0}.tenant-form-modal>form>footer .button{min-width:0}.admin-company-title h2{font-size:22px}.tenant-company-modal>header{padding:16px}.tenant-company-layout{gap:10px;padding:12px 16px;overflow-y:auto}.tenant-company-fields,.tenant-company-admin .tenant-company-fields{grid-template-columns:1fr}.tenant-company-fields .span-2,.tenant-company-fields .span-3,.tenant-company-admin .tenant-company-fields .span-2{grid-column:auto}.tenant-company-modal>form>footer{gap:10px;padding:10px 16px}.tenant-company-modal>form>footer>div,.tenant-company-modal>form>footer .button{flex:1}.tenant-form-hint{display:none}}.login-screen{background:var(--canvas,#f5f7fb);grid-column:1/-1;place-items:center;min-height:100vh;padding:24px;display:grid}.login-card{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);width:min(420px,100%);box-shadow:var(--shadow,0 10px 28px #1d365014);border-radius:18px;padding:30px 30px 24px}.login-brand{align-items:center;gap:11px;margin-bottom:22px;display:flex}.login-brand strong{letter-spacing:-.03em;font-size:21px;line-height:1;display:block}.login-brand small{color:var(--muted,#4d6076);margin-top:2px;font-size:12.5px;display:block}.login-head h1{letter-spacing:-.03em;margin:0 0 4px;font-size:24px}.login-head p{color:var(--muted,#4d6076);margin:0 0 20px;font-size:14.5px;line-height:1.5}.login-card form{flex-direction:column;gap:14px;display:flex}.login-card form label{letter-spacing:.1em;text-transform:uppercase;color:var(--muted,#4d6076);flex-direction:column;gap:6px;font:500 11px DM Mono,monospace;display:flex}.login-card form input{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);color:var(--ink,#172536);border-radius:10px;padding:11px 13px;font:400 15.5px Manrope,sans-serif}.login-card form input:focus{outline:2px solid var(--primary,#1769aa);outline-offset:0}.login-card .button.full{justify-content:center;width:100%;margin-top:4px}.login-error{color:#8f4526;background:#fde5da;border:1px solid #f0c9b8;border-radius:9px;margin:0;padding:10px 13px;font-size:14px}.login-note{color:var(--muted,#4d6076);align-items:flex-start;gap:8px;margin:18px 0 0;font-size:13px;line-height:1.5;display:flex}.login-note svg{color:var(--teal,#0d8b8d);flex:none;margin-top:2px}.session-chip{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);color:var(--primary,#1769aa);white-space:nowrap;border-radius:99px;padding:6px 13px;font-size:12.5px;font-weight:800}.team-user-form{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:13px;margin:0 0 18px;padding:17px}.team-user-form-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:13px;display:grid}.team-user-form label{letter-spacing:.1em;text-transform:uppercase;color:var(--muted,#4d6076);flex-direction:column;gap:6px;font:500 11px DM Mono,monospace;display:flex}.team-user-form input,.team-user-form select{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);color:var(--ink,#172536);border-radius:9px;padding:10px 12px;font:400 15px Manrope,sans-serif}.team-user-form footer{justify-content:flex-end;gap:9px;margin-top:14px;display:flex}.team-user-form .login-error{margin-top:12px}.team-empty{color:var(--muted,#4d6076);margin:0;padding:14px 2px;font-size:14px}.team-last-access{color:var(--muted,#4d6076);white-space:nowrap;font-size:12.5px}.share-modal{max-width:560px}.share-fields{grid-template-columns:1fr 1fr;gap:13px;margin-top:4px;display:grid}.share-fields label,.share-message{letter-spacing:.1em;text-transform:uppercase;color:var(--muted,#4d6076);flex-direction:column;gap:6px;font:500 11px DM Mono,monospace;display:flex}.share-fields input,.share-message textarea{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);color:var(--ink,#172536);border-radius:9px;padding:10px 12px;font:400 15px Manrope,sans-serif}.share-message{margin-top:13px}.share-message textarea{resize:vertical;min-height:150px;line-height:1.5}.share-warn{color:#8f4526;text-transform:none;letter-spacing:0;font:600 12.5px Manrope,sans-serif}.share-caution{color:var(--muted,#4d6076);align-items:flex-start;gap:8px;margin:13px 0 0;font-size:13px;line-height:1.5;display:flex}.share-caution svg{color:var(--teal,#0d8b8d);flex:none;margin-top:2px}.share-actions{flex-wrap:wrap;justify-content:flex-end;gap:9px;margin-top:16px;display:flex}.share-actions .button[disabled]{opacity:.45;cursor:not-allowed}@media (width<=720px){.share-fields{grid-template-columns:1fr}}.password-field{flex-direction:column;gap:6px;display:flex}.password-field-box{display:block;position:relative}.password-field-box input{width:100%;padding-right:46px}.password-field-toggle{width:34px;height:34px;color:var(--muted,#4d6076);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;display:grid;position:absolute;top:50%;right:6px;transform:translateY(-50%)}.password-field-toggle:hover{background:var(--surface-muted,#f1f5f9);color:var(--primary,#1769aa)}.password-field-toggle:focus-visible{outline:2px solid var(--primary,#1769aa);outline-offset:1px}.password-field-hint{color:var(--muted,#4d6076);letter-spacing:0;text-transform:none;font:400 12.5px Manrope,sans-serif}.login-attempts{color:#35536f;background:#f2f7fc;border:1px solid #dbe7f2;border-radius:9px;align-items:center;gap:7px;margin:-4px 0 0;padding:9px 11px;font-size:13.5px;line-height:1.45;display:flex}.login-attempts.few{color:#8a5316;background:#fdf3e8;border-color:#f2c9a8;font-weight:600}.help-tour,.help-guide{flex-direction:column;max-width:620px;max-height:calc(100vh - 48px);display:flex}.help-tour-body{flex:auto;min-height:0;overflow-y:auto}.help-tour-head,.help-tour-dots,.help-tour-actions,.help-reopen{flex:none}.help-tour-head{align-items:flex-start;gap:12px;display:flex}.help-tour-head h2{letter-spacing:-.03em;margin:2px 0 0;font-size:22px}.help-tour-head button{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);width:34px;height:34px;color:var(--muted,#4d6076);cursor:pointer;border-radius:9px;place-items:center;margin-left:auto;display:grid}.help-tour-head button:hover{background:var(--surface-muted,#f8fafc)}.help-tour-body{margin-top:18px;padding-right:4px}.help-tour-icon{background:var(--sidebar-hover,#edf5fb);width:52px;height:52px;color:var(--primary,#1769aa);border-radius:14px;place-items:center;margin-bottom:12px;display:grid}.help-tour-body h3{letter-spacing:-.02em;margin:0 0 10px;font-size:18px}.help-steps{flex-direction:column;gap:9px;margin:0;padding-left:22px;display:flex}.help-steps li{color:var(--ink,#172536);font-size:15px;line-height:1.55}.help-steps li::marker{color:var(--primary,#1769aa);font-weight:800}.help-tour-dots{justify-content:center;gap:6px;margin:18px 0 4px;display:flex}.help-tour-dots i{background:var(--line,#dce4ee);border-radius:99px;width:8px;height:8px}.help-tour-dots i.active{background:var(--primary,#1769aa);width:22px}.help-tour-actions{align-items:center;gap:10px;margin-top:12px;display:flex}.help-tour-actions>div{gap:9px;margin-left:auto;display:flex}.help-skip{color:var(--muted,#4d6076);cursor:pointer;background:0 0;border:0;padding:6px 2px;font-size:14px;font-weight:700}.help-skip:hover{color:var(--ink,#172536);text-decoration:underline}.help-reopen{border-top:1px solid var(--line,#dce4ee);color:var(--muted,#4d6076);align-items:center;gap:7px;margin:16px 0 0;padding-top:14px;font-size:13px;line-height:1.5;display:flex}.help-reopen svg{color:var(--teal,#0d8b8d);flex:none}.help-guide-list{flex-direction:column;gap:8px;max-height:min(58vh,560px);margin-top:16px;padding-right:4px;display:flex;overflow-y:auto}.help-guide-section{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:11px;flex:none}.help-guide-section summary{color:var(--ink,#172536);cursor:pointer;border-radius:10px;align-items:center;gap:10px;padding:13px 15px;font-size:15px;font-weight:800;list-style:none;display:flex}.help-guide-section summary::-webkit-details-marker{display:none}.help-guide-section summary:after{content:"+";color:var(--muted,#4d6076);margin-left:auto;font-size:17px;font-weight:700}.help-guide-section[open] summary:after{content:"−"}.help-guide-section summary svg{color:var(--primary,#1769aa);flex:none}.help-guide-section summary:hover{background:var(--surface-muted,#f8fafc)}.help-guide-section .help-steps{padding:2px 18px 15px 40px}@media (width<=720px){.help-tour,.help-guide{max-width:none}.help-guide-list{max-height:62vh}}.help-guide-footer{border-top:1px solid var(--line,#dce4ee);flex-direction:column;flex:none;gap:10px;margin-top:16px;padding-top:14px;display:flex}.help-guide-footer .help-reopen{border-top:0;margin:0;padding-top:0}.help-restart{align-self:flex-start}.evolution-modal-wide{flex-direction:column;max-width:760px;max-height:calc(100vh - 48px);display:flex}.evolution-modal-wide>header,.evolution-modal-wide>form{flex:none}.evolution-history{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);border-radius:12px;flex-direction:column;flex:auto;min-height:0;margin:16px 0 4px;display:flex;overflow:hidden}.evolution-history-head{border-bottom:1px solid var(--line,#dce4ee);background:var(--surface,#fff);flex-wrap:wrap;align-items:center;gap:10px;padding:10px 13px;display:flex}.evolution-history-toggle{color:var(--ink,#172536);cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding:2px 0;font-size:14.5px;font-weight:800;display:inline-flex}.evolution-history-toggle svg{color:var(--primary,#1769aa)}.evolution-history-toggle em{background:var(--sky-bg,#e3eef8);color:var(--sky-ink,#31566f);border-radius:99px;padding:2px 8px;font:500 12px DM Mono,monospace}.evolution-history-toggle span{color:var(--muted,#4d6076);font-size:16px}.evolution-history-search{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);min-width:160px;color:var(--ink,#172536);border-radius:9px;flex:1;padding:7px 11px;font:400 14px Manrope,sans-serif}.evolution-history-list{flex-direction:column;flex:auto;gap:8px;min-height:0;padding:10px;display:flex;overflow-y:auto}.evolution-history-empty{color:var(--muted,#4d6076);margin:6px;font-size:14px}.evolution-history-item{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:10px;flex:none;padding:11px 13px}.evolution-history-meta{flex-wrap:wrap;align-items:baseline;gap:9px;display:flex}.evolution-history-meta b{color:var(--ink,#172536);font:500 12.5px DM Mono,monospace}.evolution-history-meta span{color:var(--muted,#4d6076);font:500 11.5px DM Mono,monospace}.evolution-history-meta em{background:var(--surface-muted,#f8fafc);color:var(--muted,#4d6076);border-radius:99px;padding:1px 8px;font-size:12px;font-style:normal;font-weight:700}.evolution-history-item h4{letter-spacing:-.01em;margin:5px 0 3px;font-size:14.5px}.evolution-history-item p{color:var(--ink,#172536);white-space:pre-wrap;margin:0;font-size:14px;line-height:1.5}.evolution-history-item small{color:var(--muted,#4d6076);margin-top:5px;font-size:12.5px;display:block}@media (width<=720px){.evolution-modal-wide{max-width:none}}.companies-view{flex-direction:column;gap:18px;display:flex}.companies-empty{border:1px dashed var(--line,#dce4ee);color:var(--muted,#4d6076);border-radius:12px;margin:0;padding:20px;font-size:14.5px}.companies-grid{grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px;display:grid}.company-card{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);box-shadow:var(--shadow,none);border-radius:14px;flex-direction:column;gap:14px;padding:18px;display:flex}.company-card.suspended{opacity:.72;border-style:dashed}.company-card header{align-items:flex-start;gap:12px;display:flex}.company-icon{background:var(--sidebar-hover,#edf5fb);width:44px;height:44px;color:var(--primary,#1769aa);border-radius:12px;flex:none;place-items:center;display:grid}.company-card h3{letter-spacing:-.02em;margin:0;font-size:16.5px}.company-card header small{color:var(--muted,#4d6076);font-size:13.5px}.company-status{white-space:nowrap;border-radius:99px;margin-left:auto;padding:4px 11px;font-size:12.5px;font-weight:700}.company-status.ativo{color:#1d6b4a;background:#e2f4ea}.company-status.suspenso{color:#b35c36;background:#fde5da}.company-facts{grid-template-columns:1fr 1fr;gap:10px;margin:0;display:grid}.company-facts dt{letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#4d6076);font:500 11px DM Mono,monospace}.company-facts dd{color:var(--ink,#172536);overflow-wrap:break-word;margin:2px 0 0;font-size:14px}.company-card footer{border-top:1px solid var(--line,#dce4ee);flex-wrap:wrap;align-items:center;gap:14px;padding-top:12px;display:flex}.company-metric{color:var(--muted,#4d6076);align-items:center;gap:6px;font-size:13.5px;font-weight:600;display:inline-flex}.company-toggle{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);color:var(--ink,#172536);cursor:pointer;border-radius:9px;align-items:center;gap:6px;margin-left:auto;padding:7px 12px;font-size:13.5px;font-weight:700;display:inline-flex}.company-toggle:hover{background:var(--surface-muted,#f8fafc)}@media (width<=720px){.companies-grid,.company-facts{grid-template-columns:1fr}}.system-users{margin-top:26px}.users-grid{grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:13px;margin-top:16px;display:grid}.user-card{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:11px;padding:17px 19px;box-shadow:0 8px 22px #1d36500f}.user-card.blocked{background:var(--surface-muted,#f8fafc);border-color:#e6d2b8}.user-card>header{align-items:flex-start;gap:11px;display:flex}.user-icon{background:var(--sidebar-hover,#edf5fb);width:38px;height:38px;color:var(--primary,#1769aa);border-radius:10px;flex:none;place-items:center;display:grid}.user-card h3{letter-spacing:-.02em;margin:0;font-size:16.5px}.user-card h3 em{color:var(--muted,#4d6076);font-size:13px;font-style:normal;font-weight:500}.user-card header small{color:var(--muted,#4d6076);margin-top:3px;font-size:13px;display:block}.user-status{border-radius:99px;flex:none;margin-left:auto;padding:4px 10px;font-size:12px;font-weight:800}.user-status.active{color:#14714a;background:#e6f6ee}.user-status.blocked{color:#8a5316;background:#fdf3e8}.user-meta{color:var(--muted,#4d6076);margin:12px 0 0;font-size:13px;line-height:1.45}.user-card footer{border-top:1px solid var(--line,#dce4ee);flex-wrap:wrap;gap:7px;margin-top:14px;padding-top:13px;display:flex}.user-action{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);color:var(--primary,#1769aa);cursor:pointer;border-radius:8px;align-items:center;gap:6px;padding:7px 12px;font-size:13px;font-weight:700;display:inline-flex}.user-action:hover:not(:disabled){background:var(--sidebar-hover,#edf5fb)}.user-action.danger{color:#a3402f}.user-action.danger:hover{background:#fdeceb}.user-action:disabled{opacity:.45;cursor:not-allowed}.users-warning{color:#7a5a17;background:#fdf6e7;border:1px solid #f2d8a8;border-radius:9px;align-items:center;gap:8px;margin:14px 0 0;padding:10px 12px;font-size:13px;line-height:1.45;display:flex}.users-warning svg{flex:none}.companies-empty .spin{vertical-align:-3px;margin-right:6px;animation:1s linear infinite lume-spin}.quickview-card{z-index:14;border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:14px;flex-direction:column;width:min(400px,100vw - 32px);max-height:min(76vh,720px);display:flex;position:fixed;bottom:22px;right:22px;overflow:hidden;box-shadow:0 24px 60px #1725363d}.quickview-head{border-bottom:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);cursor:grab;touch-action:none;flex:none;align-items:flex-start;gap:11px;padding:13px 14px;display:flex}.quickview-head:active{cursor:grabbing}.quickview-title{flex:1;min-width:0}.quickview-title .eyebrow{margin:0 0 3px}.quickview-title h3{letter-spacing:-.02em;color:var(--ink,#172536);margin:0;font-size:16.5px;line-height:1.25}.quickview-title small{color:var(--muted,#4d6076);margin-top:3px;font-size:12.5px;display:block}.quickview-head-actions{flex:none;gap:5px;display:flex}.quickview-head-actions button{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);width:28px;height:28px;color:var(--muted,#4d6076);cursor:pointer;border-radius:8px;place-items:center;display:grid}.quickview-head-actions button:hover{border-color:var(--primary,#1769aa);color:var(--primary,#1769aa)}.quickview-body{flex-direction:column;flex:auto;gap:12px;min-height:0;padding:13px 14px;display:flex;overflow-y:auto}.quickview-loading{color:var(--muted,#4d6076);align-items:center;gap:8px;margin:0;font-size:14px;display:flex}.quickview-loading .spin{color:var(--primary,#1769aa);animation:1s linear infinite lume-spin}.quickview-error{color:#8c2d27;margin:0;font-size:14px}.quickview-allergy{color:#8c2d27;background:#fdeceb;border:1px solid #f2b8b5;border-radius:9px;align-items:flex-start;gap:8px;margin:0;padding:9px 11px;font-size:13.5px;line-height:1.45;display:flex}.quickview-allergy svg{flex:none;margin-top:1px}.quickview-block{flex-direction:column;gap:6px;display:flex}.quickview-label{letter-spacing:.1em;text-transform:uppercase;color:var(--muted,#4d6076);align-items:center;gap:6px;margin:0;font:500 11px DM Mono,monospace;display:flex}.quickview-label svg{color:var(--primary,#1769aa)}.quickview-empty{color:var(--muted,#4d6076);margin:0;font-size:13.5px}.quickview-note{background:var(--surface-muted,#f8fafc);color:var(--muted,#4d6076);border-radius:9px;margin:0;padding:9px 11px;font-size:13px;line-height:1.45}.quickview-next{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);border-radius:9px;flex-direction:column;gap:2px;margin:0;padding:9px 11px;display:flex}.quickview-next b{color:var(--ink,#172536);font:500 13.5px DM Mono,monospace}.quickview-next span{color:var(--muted,#4d6076);font-size:13px;line-height:1.4}.quickview-next.secondary{background:0 0;border-style:dashed}.quickview-medications{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.quickview-medications li{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:9px;padding:8px 11px}.quickview-medications b{color:var(--ink,#172536);font-size:14px;display:block}.quickview-medications span{color:var(--muted,#4d6076);margin-top:2px;font-size:12.5px;display:block}.quickview-toggle{letter-spacing:.1em;text-transform:uppercase;width:100%;color:var(--muted,#4d6076);cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:0;font:500 11px DM Mono,monospace;display:flex}.quickview-toggle svg:first-child{color:var(--primary,#1769aa)}.quickview-toggle em{background:var(--sky-bg,#e3eef8);color:var(--sky-ink,#31566f);letter-spacing:0;border-radius:99px;padding:1px 7px;font-size:11px;font-style:normal}.quickview-toggle>svg:last-child{margin-left:auto;transition:transform .16s;transform:rotate(180deg)}.quickview-toggle>svg:last-child.open{transform:rotate(0)}.quickview-docs{flex-direction:column;gap:7px;display:flex}.quickview-docs article{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);border-radius:9px;padding:9px 11px}.quickview-docs article>p:first-child{align-items:baseline;gap:8px;margin:0;display:flex}.quickview-docs article b{color:var(--ink,#172536);font:500 12px DM Mono,monospace}.quickview-docs article i{color:var(--teal,#0d8b8d);font:500 11px DM Mono,monospace}.quickview-docs h5{letter-spacing:-.01em;color:var(--ink,#172536);margin:4px 0 3px;font-size:13.5px}.quickview-doc-body{color:var(--ink,#172536);white-space:pre-wrap;max-height:118px;margin:0;font-size:13px;line-height:1.5;overflow-y:auto}.quickview-actions{border-top:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);flex:none;gap:8px;padding:11px 14px;display:flex}.quickview-actions .button{flex:1;min-width:0}.quickview-warning{color:#7a5a17;background:#fdf6e7;border-top:1px solid #f2d8a8;margin:0;padding:10px 14px;font-size:12.5px;line-height:1.45}.quickview-pill{z-index:14;border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);color:var(--ink,#172536);cursor:pointer;border-radius:99px;align-items:center;gap:8px;padding:10px 15px;font-size:14px;display:inline-flex;position:fixed;bottom:22px;right:22px;box-shadow:0 12px 30px #17253633}.quickview-pill:hover{border-color:var(--primary,#1769aa)}.quickview-pill svg{color:var(--primary,#1769aa)}.quickview-pill span{color:var(--muted,#4d6076);font-size:12.5px}@media (width<=720px){.quickview-card{width:auto;max-height:82vh;bottom:8px;left:8px;right:8px}.quickview-actions{flex-direction:column}}.theme-dark .quickview-card,.theme-dark .quickview-pill{background:#17212e;border-color:#2b3a4b}.theme-dark .quickview-head,.theme-dark .quickview-actions{background:#131c27;border-color:#2b3a4b}.theme-dark .quickview-title h3,.theme-dark .quickview-medications b,.theme-dark .quickview-docs h5{color:#eff6ff}.registries-card{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:11px;padding:25px;box-shadow:0 10px 28px #1d365014}.registries-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.registries-head h2{margin:0;font-size:25px}.registries-intro{max-width:640px;color:var(--muted,#4d6076);margin:6px 0 0;font-size:13.5px;line-height:1.55}.registries-toggle{color:var(--muted,#4d6076);cursor:pointer;white-space:nowrap;align-items:center;gap:8px;font-size:13.5px;display:inline-flex}.registries-toggle input{width:16px;height:16px;accent-color:var(--primary,#1769aa)}.registries-tabs{flex-wrap:wrap;gap:6px;margin:20px 0 18px;display:flex}.registries-tabs button{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);color:var(--muted,#4d6076);cursor:pointer;border-radius:10px;align-items:center;gap:8px;padding:10px 14px;font-size:14px;font-weight:700;display:inline-flex}.registries-tabs button:hover{border-color:var(--primary,#1769aa)}.registries-tabs button.selected{border-color:var(--primary,#1769aa);background:var(--sidebar-hover,#edf5fb);color:var(--primary,#1769aa)}.registries-tabs em{background:var(--surface,#fff);border-radius:99px;padding:1px 7px;font:500 12px DM Mono,monospace}.registries-loading{color:var(--muted,#4d6076);align-items:center;gap:8px;font-size:14px;display:flex}.registries-loading .spin{color:var(--primary,#1769aa);animation:1s linear infinite lume-spin}.registries-panel{flex-direction:column;gap:14px;display:flex}.registries-empty{color:var(--muted,#4d6076);margin:0;font-size:14px}.registries-new{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);border-radius:11px;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;padding:14px;display:grid}.registries-new.wide{grid-template-columns:minmax(0,2fr) minmax(0,.8fr) minmax(0,1fr) auto}.registries-new label{letter-spacing:.1em;text-transform:uppercase;color:var(--muted,#4d6076);flex-direction:column;gap:6px;font:500 11px DM Mono,monospace;display:flex}.registries-new input,.registries-new select,.registries-edit input,.registries-edit select,.registries-subform input{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);height:42px;color:var(--ink,#172536);letter-spacing:0;text-transform:none;border-radius:9px;padding:0 11px;font:400 15px Manrope,sans-serif}.registries-new .button{height:42px}.registries-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.registries-list>li{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:10px;padding:12px 14px}.registries-list>li.inativo{background:var(--surface-muted,#f8fafc);opacity:.72}.registries-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.registries-main{flex:1;min-width:180px}.registries-main b{color:var(--ink,#172536);font-size:15px;display:block}.registries-main small{color:var(--muted,#4d6076);margin-top:3px;font-size:13px;display:block}.registries-action{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);color:var(--primary,#1769aa);cursor:pointer;border-radius:8px;align-items:center;gap:6px;padding:7px 12px;font-size:13px;font-weight:700;display:inline-flex}.registries-action:hover{background:var(--sidebar-hover,#edf5fb)}.registries-edit{grid-template-columns:minmax(0,1fr) 150px auto auto;align-items:center;gap:9px;display:grid}.registries-edit.wide{grid-template-columns:minmax(0,1fr) 120px 130px 130px auto auto}.registries-edit .button{white-space:nowrap;height:42px}.registries-plans{border-top:1px dashed var(--line,#dce4ee);flex-wrap:wrap;gap:7px;margin:9px 0 0;padding:9px 0 0;list-style:none;display:flex}.registries-plans li{background:var(--sky-bg,#e3eef8);color:var(--sky-ink,#31566f);border-radius:99px;padding:4px 10px;font-size:12.5px}.registries-subform{gap:9px;margin-top:10px;display:flex}.registries-subform input{flex:1}.registries-unit{flex-direction:column;gap:8px;display:flex}.registries-unit-name{letter-spacing:.1em;text-transform:uppercase;color:var(--muted,#4d6076);align-items:center;gap:7px;margin:4px 0 0;font:500 11px DM Mono,monospace;display:flex}.registries-unit-name svg{color:var(--primary,#1769aa)}@media (width<=900px){.registries-new,.registries-new.wide,.registries-edit,.registries-edit.wide{grid-template-columns:1fr}}.report-layout{flex-direction:column;gap:14px;display:flex}.report-period{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:11px;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:20px;padding:20px 22px;display:flex}.report-period h2{letter-spacing:-.03em;margin:0;font-size:24px}.report-period-fields{flex-wrap:wrap;align-items:flex-end;gap:12px;display:flex}.report-period-fields label{letter-spacing:.1em;text-transform:uppercase;color:var(--muted,#4d6076);flex-direction:column;gap:6px;font:500 11px DM Mono,monospace;display:flex}.report-period-fields input{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);height:42px;color:var(--ink,#172536);letter-spacing:0;border-radius:9px;padding:0 11px;font:400 15px Manrope,sans-serif}.report-shortcuts{flex-wrap:wrap;gap:6px;display:flex}.report-shortcuts button{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);height:42px;color:var(--muted,#4d6076);cursor:pointer;border-radius:9px;padding:0 13px;font-size:13.5px;font-weight:700}.report-shortcuts button:hover{border-color:var(--primary,#1769aa);color:var(--primary,#1769aa)}.report-loading{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);color:var(--muted,#4d6076);border-radius:11px;align-items:center;gap:9px;margin:0;padding:22px;font-size:15px;display:flex}.report-loading .spin{color:var(--primary,#1769aa);animation:1s linear infinite lume-spin}.report-error{color:#8c2d27;background:#fdeceb;border:1px solid #f2b8b5;border-radius:11px;margin:0;padding:18px 22px;font-size:15px}.report-metrics{margin:0}.report-note{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);color:var(--ink,#172536);border-radius:10px;align-items:center;gap:9px;margin:0;padding:13px 16px;font-size:14.5px;display:flex}.report-note svg{color:var(--teal,#0d8b8d);flex:none}.report-columns{grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:14px;display:grid}.report-card{border:1px solid var(--line,#dce4ee);background:var(--surface,#fff);border-radius:11px;padding:20px 22px}.report-card>header{border-bottom:1px solid var(--line,#dce4ee);align-items:flex-start;gap:11px;margin-bottom:14px;padding-bottom:14px;display:flex}.report-card>header svg{color:var(--primary,#1769aa);flex:none;margin-top:2px}.report-card h3{letter-spacing:-.02em;margin:0;font-size:17px}.report-card header small{color:var(--muted,#4d6076);margin-top:3px;font-size:13px;display:block}.report-empty{color:var(--muted,#4d6076);margin:0;font-size:14px}.report-bars{flex-direction:column;gap:13px;max-height:420px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.report-bar-head{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.report-bar-head b{color:var(--ink,#172536);font-size:14.5px}.report-bar-head span{color:var(--primary,#1769aa);font:500 14px DM Mono,monospace}.report-bar{background:var(--surface-muted,#eef3f7);border-radius:99px;height:9px;margin:6px 0 4px;overflow:hidden}.report-bar i{background:var(--primary,#1769aa);border-radius:99px;height:100%;display:block}.report-bar.teal i{background:var(--teal,#0d8b8d)}.report-bars small{color:var(--muted,#4d6076);font-size:12.5px}.report-legend{border-top:1px dashed var(--line,#dce4ee);color:var(--muted,#4d6076);margin:14px 0 0;padding-top:12px;font-size:12.5px;line-height:1.5}.report-months{align-items:flex-end;gap:10px;padding-bottom:4px;display:flex;overflow-x:auto}.report-month{flex-direction:column;align-items:center;gap:6px;min-width:74px;display:flex}.report-month-value{color:var(--ink,#172536);font:500 13px DM Mono,monospace}.report-month-bar{background:var(--surface-muted,#eef3f7);border-radius:7px;align-items:flex-end;width:34px;height:130px;display:flex;overflow:hidden}.report-month-bar i{background:var(--primary,#1769aa);border-radius:7px;width:100%}.report-month small{color:var(--muted,#4d6076);text-align:center;text-transform:capitalize;font-size:12px}.report-status{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:0;padding:0;list-style:none;display:grid}.report-status li{border:1px solid var(--line,#dce4ee);background:var(--surface-muted,#f8fafc);border-radius:10px;padding:12px 14px}.report-status b{letter-spacing:-.03em;color:var(--ink,#172536);font-size:21px;display:block}.report-status span{color:var(--muted,#4d6076);text-transform:capitalize;margin-top:2px;font-size:13px;display:block}@media (width<=720px){.report-period,.report-period-fields{flex-direction:column;align-items:stretch}}.report-month small.report-month-split{text-transform:none;font:500 11px DM Mono,monospace}.app-shell{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}@media (width<=640px){.sidebar{z-index:9;height:auto;min-height:0;padding:4px max(4px, env(safe-area-inset-left)) calc(4px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-right));border-top:1px solid var(--line,#dce4ee);border-right:0;display:block;position:fixed;inset:auto 0 0;box-shadow:0 -6px 20px #0f203314}.sidebar .brand,.sidebar .tenant-switcher,.sidebar .sidebar-bottom,.sidebar .nav-group>p,.sidebar .nav-group[data-group=GERENCIAR]{display:none}.sidebar .main-nav{margin:0;padding:0;display:flex}.sidebar .nav-group{display:contents}.sidebar .nav-item,.sidebar .nav-item.active,.sidebar .nav-item:not(.active){white-space:nowrap;flex-direction:column;flex:1 1 0;justify-content:center;align-items:center;gap:3px;min-width:0;height:54px;margin:0;padding:4px 2px;font-size:10.5px;font-weight:700;line-height:1.1;display:flex;position:relative}.sidebar .nav-item>span{width:auto;font-size:0}.sidebar .nav-item em{display:none}.workspace{padding-bottom:calc(66px + env(safe-area-inset-bottom))}.toast{left:12px;right:12px;bottom:calc(72px + env(safe-area-inset-bottom))}.quickview-pill{right:12px;bottom:calc(72px + env(safe-area-inset-bottom))}.quickview-card{bottom:calc(70px + env(safe-area-inset-bottom));max-height:calc(100dvh - 150px)}.quickview-actions{flex:none}.quickview-actions>.button{flex:none;min-height:44px}.quickview-head-actions button{width:40px;height:40px}.quickview-toggle{min-height:36px}.topbar{height:58px;padding:0 12px}.topbar .crumb,.topbar .session-chip,.topbar .bell,.topbar .top-actions>.avatar{display:none}.topbar .top-actions{flex:1;gap:6px;min-width:0}.topbar .global-search{text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:auto;justify-content:flex-start;gap:8px;width:auto;min-width:0;height:42px;padding:0 12px;font-size:14px;overflow:hidden}.topbar .global-search>svg{flex:none}.topbar .global-search kbd{display:none}.topbar .top-actions .theme-toggle{flex:none;place-items:center;width:42px;height:42px;display:grid}.waiting-room-bar{flex-wrap:wrap;gap:8px;padding:8px 12px}.waiting-room-title{flex:100%;min-height:0}.waiting-room-title>div{flex:1;min-width:0}.waiting-room-list{flex-wrap:nowrap;flex:100%;overflow-x:auto}.waiting-room-list:has(>.waiting-room-empty){display:none}.waiting-room-picker{flex:100%}.page{padding:16px 12px 24px}.page h1{font-size:24px}.page-heading{align-items:center}.metric-grid,.patient-list-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 10px}.metric-grid .metric,.patient-list-metrics>article{flex-direction:column;align-items:flex-start;gap:2px;min-width:0;min-height:0;padding:10px;display:flex}.metric-grid .metric-icon,.metric-grid .metric p,.metric-grid .metric-arrow,.patient-list-metrics>article>span:first-child,.patient-list-metrics>article p{display:none}.metric-grid .metric small,.patient-list-metrics>article small{letter-spacing:.04em;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:9.5px;display:block;overflow:hidden}.metric-grid .metric>div,.patient-list-metrics>article>div{min-width:0;max-width:100%}.metric-grid .metric strong,.patient-list-metrics>article strong{font-size:22px}.page:has(>.agenda-panel){flex-direction:column;display:flex}.page>.agenda-panel{order:1}.page>.agenda-alerts{order:2;margin:12px 0 0}.agenda-alerts{grid-template-columns:1fr;gap:6px}.agenda-alerts article{grid-template-columns:auto minmax(0,1fr) auto;min-height:0;padding:10px 12px}.agenda-alerts article small{display:none}.agenda-alerts button{grid-column:auto;justify-self:end}.agenda-toolbar{gap:8px;padding:10px 12px}.date-tools{flex-wrap:wrap;gap:6px;width:100%}.date-tools>b{white-space:nowrap;flex:auto;min-width:0}.date-tools .period-picker{display:none}.agenda-unit-filter{flex:100%}.agenda-unit-filter select{flex:1;min-width:0}.agenda-filters{flex-wrap:wrap;flex:100%;gap:6px;display:flex}.agenda-patient-filter{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px 10px;padding:10px 12px;display:grid}.agenda-patient-filter>label{display:none}.agenda-patient-filter>span{grid-column:1/-1}.agenda-legend{display:none}.calendar,.calendar-header{min-width:0}.agenda-calendar .appointment.compact{flex-direction:row;align-items:center;gap:8px}.agenda-calendar .appointment.compact>span{text-overflow:clip;white-space:nowrap;flex:none;max-width:5ch;margin:0;overflow:hidden}.agenda-calendar .appointment.compact>b{flex:1 1 0;min-width:0;font-size:13px}.agenda-calendar .appointment.compact>i{display:none}.agenda-calendar .appointment:not(.compact) b{white-space:normal;font-size:13px}.patient-directory-table{padding:0;overflow:visible}.patient-directory-head{display:none}.patient-directory-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:6px 12px;width:100%;min-width:0;padding:12px 14px}.patient-directory-row>.patient-name{grid-column:1/-1}.patient-directory-row>span:nth-child(4),.patient-directory-row>.row-arrow{display:none}.patient-directory-row small{overflow-wrap:anywhere}.patient-back,.patient-section-card>header button{min-height:40px}.documents-layout.official-documents-layout{grid-template-columns:minmax(0,1fr)}.official-template-panel{min-width:0}.official-template-panel .panel-title{flex-wrap:wrap;gap:8px}.official-template-panel .template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.official-template-panel .document-template-option{gap:8px;min-width:0;min-height:48px;padding:8px 24px 8px 10px}.official-template-panel .document-template-option h3{overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto;min-width:0;font-size:11.5px}.official-template-panel .document-template-option .template-selected-icon{right:6px}.official-document-preview{min-width:0;position:static}.official-document-preview .print-sheet{max-width:100%}.official-document-preview .preview-toolbar{flex-direction:column;align-items:stretch;gap:10px}.official-document-preview .preview-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;display:grid}.official-document-preview .preview-actions>.button{justify-content:center;min-width:0}.official-document-preview .preview-actions>.button:first-child{grid-column:1/-1}.rx-optical-block{padding:10px 8px}.rx-optical-table{table-layout:fixed}.rx-optical-table th{letter-spacing:.02em;white-space:normal;padding:4px 2px;font-size:9px}.rx-optical-table td{padding:3px 2px}.rx-optical-table .rx-eye{width:28px;font-size:12px}.rx-optical-table input{min-width:0;padding:9px 2px}.clinical-exams-panel>header,.legacy-documents-panel>header{flex-direction:column;align-items:stretch;gap:12px}.clinical-exams-panel>header .button,.legacy-documents-panel>header .button{justify-content:center;min-height:44px}.modal-layer{padding:10px}.modal{max-height:calc(100dvh - 20px);padding:18px 16px;overflow-y:auto}.modal.attachment-viewer{max-height:calc(100dvh - 20px)}.drawer{width:100%;padding:20px 16px calc(20px + env(safe-area-inset-bottom))}.global-search-layer{align-items:start;padding:10px}.global-search-results{max-height:50dvh}input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea{font-size:16px!important}}
