/* Identidade clínica: papel claro, tinta azul e acentos de cobalto. */
:root{font-family:"Segoe UI Variable Text","Segoe UI",sans-serif;font-size:13px;color:#25324a;background:#f4f6f9;--accent:#375be8;--ink:#1c2941;--line:#e6eaf1;--muted:#7c8799;--radius:14px}
body{grid-template-columns:218px minmax(0,1fr);background:#f4f6f9}button,input,select,textarea{font-family:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;border:1px solid #dfe5ef;background:#fff;color:#485772;padding:9px 14px;border-radius:8px;font-size:12px;font-weight:600;line-height:1.25;transition:background .15s,border-color .15s,box-shadow .15s}button:hover{background:#f6f8fe;border-color:#bfcbee}button:active{background:#edf1fc}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #b8c7ff;outline-offset:3px}button:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}button.primary{background:#375be8;border-color:#375be8;color:white;box-shadow:0 3px 7px #375be81a}button.primary:hover{background:#284dd7;border-color:#284dd7}button.danger{background:#fff8f7;color:#a34f49;border-color:#f1d9d5}.ui-icon{width:17px;height:17px;flex:none;stroke-width:1.7;pointer-events:none}
#sidebar{background:#fff;color:#8992a4;border-right:1px solid var(--line);padding:28px 16px 20px;z-index:5}.brand{display:flex;align-items:center;font-size:29px;letter-spacing:-1.4px;color:#21304d;gap:10px;padding:0 9px;font-weight:750}.brand::before{content:"";display:block;width:30px;height:30px;border-radius:9px;background:#375be8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/23px no-repeat}.brand span{font-size:13px;letter-spacing:.2px;color:#8994aa;margin-left:0;font-weight:500}.brand span::before{content:"/";margin-right:8px;color:#c8d0df}#clinicName{border:1px solid var(--line);background:#fafbfd;padding:13px;border-radius:9px;font-size:11px;line-height:1.5;margin:27px 3px 0;color:#68768d}#clinicName::before{content:"UNIDADE ATUAL";display:block;font-size:8px;letter-spacing:1.4px;color:#9aa4b5;margin-bottom:6px;font-weight:600}nav{gap:6px;margin-top:27px}nav::before{content:"OPERAÇÃO";font-size:9px;letter-spacing:1.7px;color:#a7afbd;padding:0 13px 13px}nav button{text-align:left;justify-content:flex-start;gap:12px;border:0;padding:12px 14px;color:#79859a;font-weight:500;min-height:44px;background:transparent;border-radius:8px;font-size:12px}nav button:hover{background:#f6f8fc;color:#344566}nav button.active{color:#375be8;background:#eef2ff;font-weight:650;box-shadow:inset 3px 0 #375be8}nav button.active .ui-icon{stroke-width:2}.bottom{border-top:1px solid var(--line);padding:18px 6px 0;gap:14px}.bottom #identity{display:flex;align-items:center;color:#6b7890;font-size:11px;gap:10px}.bottom #identity::before{content:"M";width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#e9edf9;color:#4961a6;font-size:12px;font-weight:700}.bottom button{justify-content:flex-start;border:0;padding-left:7px;color:#98a0ae;min-height:30px;background:transparent;font-weight:500;font-size:11px}
main{padding:0 32px 35px;max-width:none}header{min-height:116px;margin:0;align-items:center;border-bottom:1px solid var(--line);gap:15px}header small{color:#9aa4b5;font-size:8px;letter-spacing:1.8px;font-weight:650}h1{font-family:"Segoe UI Variable Display","Segoe UI",sans-serif;font-size:29px;letter-spacing:-1px;font-weight:600;color:var(--ink);margin:7px 0}h2{font-size:15px;font-weight:650;letter-spacing:-.3px;color:#253550;margin-bottom:17px}h3{font-size:13px;font-weight:650;color:#253550;margin-top:27px}.badge{background:#fff;color:#78869a;border:1px solid #e4e9f1;font-size:10px;display:flex;align-items:center;gap:7px;padding:7px 10px;letter-spacing:.1px;font-weight:500}.badge::before{content:"";width:5px;height:5px;background:#8aa49a;border-radius:50%}.notice{background:transparent;color:#99a2b1;padding:13px 0 0;border-radius:0;font-size:10px;letter-spacing:.1px;line-height:1.5}#message{min-height:23px;padding:6px 0;font-size:11px;color:#ab6f4a}#message:not(:empty){background:#fff9ed;border:1px solid #f1e6d0;border-radius:7px;padding:10px 13px;margin:10px 0}section{border:1px solid var(--line);border-radius:var(--radius);padding:23px 24px;margin-bottom:22px;box-shadow:0 3px 12px #27375803}section>button+button,#medicalEditor>button+button{margin-left:6px}section .muted{font-size:11px;max-width:850px;color:#8c97a9;line-height:1.7;margin-top:-5px;margin-bottom:17px}
.toolbar{background:#fff;border:1px solid var(--line);border-radius:11px;padding:10px;gap:10px;margin-bottom:17px;min-height:62px}.toolbar>select{min-width:165px;max-width:240px;font-size:11px;background:#fff;border-color:#edf0f5}.toolbar #newAppointment{margin-left:auto;padding:10px 16px}.toolbar #refreshAgenda{font-size:0;width:36px;min-height:36px;padding:8px;border-color:transparent;background:#f7f9fc}.toolbar #refreshAgenda .ui-icon{width:16px;height:16px}.datebar{display:flex;align-items:center;gap:0;border-right:1px solid var(--line);padding-right:10px}.datebar button{border:0;background:transparent;color:#7c89a1;min-width:28px;padding:8px;min-height:34px}.datebar #today{font-size:10px;font-weight:550;background:#f4f6fb;margin-left:8px;min-height:29px;padding:6px 10px}.datebar input{font-size:11px;font-weight:650;color:#32435f;border:0;background:transparent;padding:7px 4px;width:133px!important;min-height:30px;max-width:133px}.stats{gap:14px;margin:0 0 20px}.stat{position:relative;border:1px solid var(--line);border-radius:11px;padding:17px 18px;background:white;box-shadow:0 2px 6px #26395902;overflow:hidden}.stat span{font-size:10px;color:#8b96a8;font-weight:500}.stat strong{font-size:29px;font-weight:550;letter-spacing:-1px;color:#34435f;margin-top:7px;font-variant-numeric:tabular-nums}.stat::after{display:none}.stat:nth-child(2) strong{color:#687cb8}.stat:nth-child(3) strong{color:#b49060}.stat:nth-child(4) strong{color:#5e948b}
table{font-size:11px;border-collapse:separate;border-spacing:0;width:100%;min-width:600px}th{background:#f8f9fc;color:#99a3b4;font-size:8px;letter-spacing:.9px;font-weight:600;text-transform:uppercase;padding:12px 11px;border-bottom:1px solid #edf0f5;white-space:nowrap}th:first-child{border-radius:7px 0 0 7px}th:last-child{border-radius:0 7px 7px 0}td{padding:17px 11px;border-bottom:1px solid #f0f2f7;color:#68768d;line-height:1.65;vertical-align:middle}tbody tr:last-child td,tr:last-child td{border-bottom:0}tr:hover td{background:#fcfdff}td:first-child{font-weight:600;color:#364965;white-space:nowrap;font-variant-numeric:tabular-nums}#agendaList td:nth-child(2){font-weight:600;color:#394a67;min-width:145px}#agendaList td:nth-child(4){font-size:10px;max-width:160px;color:#97a1b2}td button{font-size:10px;padding:6px 9px;min-height:29px;border-radius:6px;white-space:nowrap;margin:2px 0;font-weight:550;border-color:#e4e9f2;color:#6c7d9c}td button .ui-icon{width:13px;height:13px}td a{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:600;text-decoration:none;color:#5574dc}.status-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;background:#f4f6fa;border-radius:5px;font-size:9px;line-height:1.35;white-space:nowrap;color:#8c98ab;font-weight:550}.status-pill::before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}.status-pill[data-tone="blue"]{background:#eef2ff;color:#7188cb}.status-pill[data-tone="green"]{background:#ecf6f1;color:#6e9f8d}.status-pill[data-tone="amber"]{background:#fbf5e9;color:#b49c6b}.status-pill[data-tone="red"]{background:#fbefee;color:#bb8982}.action-group{display:flex;align-items:center;gap:5px;white-space:nowrap}.action-more{padding:4px 7px;min-width:27px;font-size:15px;letter-spacing:1px;border-color:transparent!important;background:transparent}.action-menu{position:fixed;inset:auto;margin:0;border:1px solid #e3e8f2;border-radius:10px;box-shadow:0 15px 45px #1c2e5422;padding:6px;min-width:190px;background:#fff}.action-menu button{display:flex;justify-content:flex-start;width:100%;border:0;font-size:11px;color:#5f708c;margin:0;padding:10px;min-height:36px}.action-menu::backdrop{background:transparent}
input,select,textarea{min-height:40px;background:#fbfcfe;border:1px solid #e1e7f0;border-radius:7px;font-size:12px;padding:10px 12px;color:#425473;transition:border-color .15s,box-shadow .15s}input:hover,select:hover,textarea:hover{border-color:#c8d3e4}input:focus,select:focus,textarea:focus{outline:0;border-color:#8fa6f1;box-shadow:0 0 0 3px #375be80b;background:#fff}label{font-size:10px;color:#8290a5;font-weight:550;gap:8px;margin-bottom:14px}textarea{line-height:1.9}input::placeholder,textarea::placeholder{color:#b6bfcd}input[type=checkbox]{min-height:auto;accent-color:#375be8}fieldset{border-color:#e6ebf3;border-radius:9px;padding:14px}legend{font-size:10px;color:#8290a5}.grid{gap:12px 22px}.checks{gap:12px}.checks label{margin-bottom:0;align-items:center;font-size:10px}.checks input{min-height:0}.muted{color:#8b97a9;font-size:11px}.check{font-size:11px}.check input{accent-color:#375be8}details{border-top:1px solid #eef1f7;padding-top:16px;font-size:11px;color:#8390a5}summary{list-style:none;display:flex;align-items:center;gap:8px;font-weight:550}summary::before{content:"+";font-size:16px;color:#a2aec0}details[open]>summary::before{content:"−"}#reportState{display:inline-block;font-size:10px;background:#f2f5fb;color:#7084a8;padding:7px 10px;border-radius:5px}#reportState:empty{display:none}#reportBody{background:#fff;min-height:360px;font-size:13px;line-height:2;padding:22px;border-color:#e3e8f0}#reportHistory pre{line-height:1.8;color:#718199}#receptionList td:nth-child(2),#reportQueue td:first-child{color:#425371;font-weight:600}#login{max-width:400px;margin:70px auto;padding:34px}#login h2{font-size:22px;margin-bottom:27px;letter-spacing:-.6px}#login .primary{width:100%;margin-top:10px}dialog{border:1px solid #e0e6f0;border-radius:18px;padding:32px;width:min(730px,94vw);box-shadow:0 30px 120px #15244530;max-height:90vh}dialog::backdrop{background:#14243b52;backdrop-filter:blur(4px)}dialog h2{font-size:22px;font-weight:600;letter-spacing:-.7px;margin-bottom:10px}dialog p.muted{margin-bottom:25px}dialog button+button{margin-left:6px}dialog label{font-size:10px}dialog input,dialog select,dialog textarea{background:#f9fbfe}.week-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin:0 0 21px}.week-strip button{border-color:transparent;border-radius:8px;background:transparent;display:flex;flex-direction:column;min-height:58px;padding:7px 5px;gap:4px}.week-strip small{font-size:8px;text-transform:uppercase;font-weight:500;color:#99a4b7;letter-spacing:.6px}.week-strip strong{font-size:15px;line-height:1.15;font-weight:550;color:#71809c}.week-strip button.selected{background:#eaf0ff;border-color:#dfe7ff}.week-strip button.selected strong{color:#375be8}.week-strip button.selected small{color:#7f95d3}.page-caption{color:#8e9ab0;font-size:11px;margin:0 0 19px;line-height:1.6}
@media(min-width:1300px){main{padding:0 42px 40px}.toolbar{gap:16px}.toolbar>select{max-width:260px}header{min-height:128px}section{padding:26px 28px}}
@media(max-width:1050px){body{grid-template-columns:185px minmax(0,1fr)}#sidebar{padding:25px 12px 18px}main{padding:0 22px 30px}.brand{font-size:26px;gap:7px}.brand span{font-size:11px}nav button{font-size:11px;padding:11px 12px;gap:9px}.toolbar>select{min-width:140px;max-width:185px}.toolbar #newAppointment{margin-left:0}.stats{gap:10px}.stat{padding:14px}.stat::after{display:none}.stat strong{font-size:26px}section{padding:20px}header{min-height:103px}h1{font-size:27px}}
@media(max-width:700px){body{display:block}#sidebar{height:auto;min-height:0;position:static;padding:16px;background:#fff;border-bottom:1px solid var(--line)}.brand{font-size:26px}#clinicName{display:none}#sidebar nav{margin-top:17px;display:flex;flex-wrap:wrap;gap:4px}nav::before{display:none}nav button{min-height:36px;padding:8px 11px;font-size:10px;gap:6px}nav button .ui-icon{width:14px;height:14px}.bottom{margin-top:12px;padding:9px 0 0;display:flex;justify-content:space-between}.bottom #identity::before{width:24px;height:24px;font-size:10px}main{padding:0 16px 25px}header{min-height:91px}.badge{font-size:9px}.toolbar{gap:7px;padding:9px}.datebar{border:0;padding:0}.toolbar>select{min-width:150px;flex:1;max-width:100%}.toolbar #newAppointment{margin-left:auto}.stats{grid-template-columns:1fr 1fr}.stat{padding:15px}.week-strip{gap:3px}.week-strip button{min-height:52px}section{padding:18px;border-radius:11px}.grid{grid-template-columns:1fr}dialog{padding:24px}h2{font-size:14px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.header-actions{display:flex;align-items:center;gap:13px}.header-actions #newAppointment{min-height:39px;padding:10px 15px;font-size:11px}.cell-stack{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.cell-stack strong{font-weight:600;font-size:11px;color:#53637e;line-height:1.45}.cell-stack small{font-size:9px;color:#9aa5b7;font-weight:400;line-height:1.55;max-width:215px}.cell-stack .status-pill{font-size:9px}#agendaList td:nth-child(2){min-width:160px}#agendaList td:nth-child(3){max-width:170px}#agendaList td:nth-child(3) strong{font-size:10px;font-weight:500;color:#8491a7}#agendaList td:nth-child(4){max-width:none}.stat{padding-top:15px;padding-bottom:14px}.week-strip button{min-height:50px}.week-strip{margin-bottom:16px}#agenda .toolbar{margin-bottom:10px}.header-actions .badge{font-size:9px}
@media(max-width:800px){.header-actions .badge{display:none}.header-actions #newAppointment{font-size:10px;padding:9px 11px}header{gap:7px}h1{font-size:26px}}
@media(max-width:450px){.header-actions #newAppointment{font-size:9px;gap:4px;padding:8px}.header-actions #newAppointment .ui-icon{width:14px}header small{font-size:7px;letter-spacing:1px}h1{font-size:24px}.cell-stack small{max-width:160px}}
