*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;color:#0b2855;background:#f3f7fc}.app{min-height:100vh;display:grid;grid-template-columns:252px 1fr}.sidebar{background:linear-gradient(160deg,#183b61,#102e50 78%);color:#dce8f6;min-height:100vh;display:flex;flex-direction:column;box-shadow:5px 0 22px #16375c18}.brand{height:165px;padding:18px 37px;border-bottom:1px solid #ffffff20}.ux{font-size:58px;font-weight:800;line-height:58px;letter-spacing:-7px;color:#fff}.ux span{background:linear-gradient(135deg,#6cb8ff,#20b998);-webkit-background-clip:text;color:transparent}.brand strong{display:block;font-size:18px}.brand small{display:block;font-size:14px;line-height:21px;margin-top:4px;color:#c7d6e7}.sidebar nav{padding-top:20px}.sidebar nav a{height:64px;display:flex;align-items:center;gap:25px;padding:0 33px;color:#cad9ea;font-size:17px;text-decoration:none;border-left:5px solid transparent}.sidebar nav a svg{width:28px;height:28px;stroke-width:2.4;color:#a9bed6}.sidebar nav a.active{background:linear-gradient(90deg,#316fab,#2b64a4);color:#fff;font-weight:700;border-left-color:#63b9f4}.sidebar nav a.active svg{color:#fff}.health{margin:auto 16px 38px;padding:20px;border:1px solid #ffffff20;border-radius:20px;background:linear-gradient(135deg,#2d6471aa,#24557588);font-size:14px;line-height:21px;min-height:125px}.health svg{color:#4fb4a2;fill:#4fb4a2;margin-bottom:8px}.clinic{padding:0 32px 23px;display:flex;gap:14px;align-items:center;font-size:14px}.clinic small,.doctor small{display:block;color:#9db0ca;margin-top:5px}.avatar{width:50px;height:50px;border-radius:50%;background:linear-gradient(#8399b4,#5e7797);display:grid;place-items:center;color:#fff}.avatar.big{width:55px;height:55px}.avatar svg{fill:#fff;stroke:#fff}main{min-width:0}header{height:90px;background:#f8fbff;display:flex;align-items:center;justify-content:space-between;padding:0 35px;border-bottom:1px solid #dbe6f3}.search{width:min(805px,62%);height:54px;border:1px solid #c5d4e7;border-radius:10px;background:#fff;display:flex;align-items:center;padding:0 19px;gap:17px}.search input{border:0;outline:0;width:100%;font-size:16px;color:#51698b}.top-actions{display:flex;align-items:center;gap:17px}.bell{position:relative}.bell b{position:absolute;right:-8px;top:-10px;background:#e53935;color:#fff;border-radius:50%;font-size:11px;padding:3px 6px}.sep{height:50px;border-left:1px solid #d3deec}.doctor b{font-size:18px;color:#081f49}.page{margin:18px 22px 28px;background:#fff;border-radius:16px;padding:18px 29px 28px;box-shadow:0 8px 25px #143b6610}.back{display:flex;align-items:center;gap:13px;font-weight:700;margin:0 0 15px 4px}.hero{display:grid;grid-template-columns:115px 1fr auto 110px;align-items:center;gap:25px;margin-bottom:24px}.hero-icon{width:115px;height:102px;border-radius:16px;background:#dfeeff;display:grid;place-items:center;color:#0866d5}.hero-icon svg{width:58px;height:58px;stroke-width:2.5}.hero-title h1{font-size:40px;margin:0 0 5px;color:#082352;letter-spacing:-1px}.hero-title p{font-size:20px;color:#536c91;margin:0}.hero-note{border-left:1px solid #bed4ee;padding-left:32px;font-size:15px;line-height:22px;color:#50688b}.heart-icon{width:110px;height:110px;border-radius:40% 55% 48% 52%;background:#e7f3ff;display:grid;place-items:center;color:#3c9df2}.heart-icon svg{width:56px;height:56px;fill:#4b9ff0;color:#fff}.section-title{height:76px;border-radius:11px;background:linear-gradient(90deg,#e3f0ff,#eef6ff);display:flex;align-items:center;margin-bottom:23px}.section-title>div{width:76px;height:76px;background:#d9ebff;display:grid;place-items:center;color:#0866d5}.section-title svg{width:37px;height:37px;fill:#0866d5}.section-title span{padding-left:17px}.section-title b{display:block;font-size:24px}.section-title small{display:block;color:#6980a0;font-size:16px;margin-top:3px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:27px 29px}label{font-size:16px;font-weight:700;color:#0b234d}em{font-style:normal;color:#f1282b;margin-left:4px}.field{height:54px;border:1px solid #b9cce3;border-radius:9px;margin-top:10px;display:flex;align-items:center;padding:0 17px;gap:16px;color:#7186a6;background:#fff}.field:focus-within{border-color:#2c79d8;box-shadow:0 0 0 3px #2c79d814}.field svg{width:24px;flex:0 0 24px}.field input,.field textarea{border:0;outline:0;width:100%;font:inherit;font-weight:400;color:#314d72;background:transparent}.field input::placeholder,.field textarea::placeholder{color:#9aaac0}.disabled{background:#f5f7fa}.obs{display:block;margin-top:27px}.textarea{height:110px;align-items:flex-start;padding-top:16px;position:relative}.textarea textarea{resize:none;height:75px}.textarea span{position:absolute;right:15px;bottom:9px;color:#788cab;font-size:13px;font-weight:400}.footer{display:flex;justify-content:space-between;align-items:center;margin-top:39px;color:#506a8d}.footer>div{display:flex;gap:15px}.footer button{height:60px;border-radius:10px;padding:0 29px;font-size:16px;font-weight:700;display:flex;align-items:center;gap:14px;cursor:pointer}.cancel{background:#fff;border:1px solid #afc2db;color:#0c2a56}.save{border:0;color:#fff;background:linear-gradient(135deg,#1767d4,#1680e9);box-shadow:0 6px 13px #126fd62c}.save svg{fill:#fff}
@media(max-width:900px){.app{display:block}.sidebar{min-height:auto;height:74px;position:sticky;top:0;z-index:5;display:flex;flex-direction:row;align-items:center;padding:0 16px}.brand{height:auto;padding:0;border:0}.ux{font-size:34px;line-height:32px}.brand strong,.brand small,.sidebar nav,.health,.clinic{display:none}header{height:70px;padding:0 14px}.search{width:100%}.top-actions{display:none}.page{margin:10px;padding:18px 15px}.hero{grid-template-columns:64px 1fr;gap:14px}.hero-icon{width:64px;height:64px}.hero-icon svg{width:38px;height:38px}.hero-title h1{font-size:28px}.hero-title p{font-size:15px;line-height:21px}.hero-note,.heart-icon{display:none}.section-title{height:66px}.section-title>div{height:66px;width:62px}.section-title b{font-size:20px}.section-title small{font-size:13px}.grid{grid-template-columns:1fr;gap:20px}.footer{align-items:stretch;flex-direction:column;gap:20px;margin-top:26px}.footer>div{display:grid;grid-template-columns:1fr 1fr}.footer button{justify-content:center;padding:0 12px}.obs{margin-top:20px}}
@media(max-width:480px){.page{border-radius:10px}.back{font-size:14px}.hero-title h1{font-size:24px}.hero-title p{font-size:14px}.section-title span{padding-left:12px}.field{height:52px;padding:0 13px}.footer>div{grid-template-columns:1fr}.footer button{height:54px}}

/* Sistema PHP */
.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(145deg,#102e50,#1c507d)}.login-card{width:min(430px,92vw);background:#fff;padding:36px;border-radius:18px;box-shadow:0 25px 60px #001a3340}.login-card h1{margin:8px 0;color:#082352}.login-card .ux{color:#12395f}.login-card label{display:block;margin-top:18px}.login-card .save{width:100%;justify-content:center;margin-top:24px}.alert{padding:12px 15px;border-radius:8px;background:#ffe7e7;color:#9d1d1d;margin:12px 0}.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.page-head h1{margin:0;font-size:32px}.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 17px;border:0;border-radius:9px;background:#176fd8;color:#fff;text-decoration:none;font-weight:700;cursor:pointer}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.card{background:#fff;border:1px solid #dbe6f3;border-radius:14px;padding:20px;box-shadow:0 5px 18px #143b660b}.card b{font-size:26px;display:block;margin-top:8px}.table-wrap{overflow:auto;background:#fff;border:1px solid #dbe6f3;border-radius:12px}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:14px 16px;border-bottom:1px solid #e4edf7;text-align:left}.table th{background:#eef6ff;color:#173d69}.empty{padding:35px;text-align:center;color:#7186a6}.toolbar{display:flex;gap:12px;margin-bottom:16px}.toolbar input{flex:1;max-width:480px;padding:13px;border:1px solid #b9cce3;border-radius:9px}.logout{color:#b3261e;text-decoration:none;font-weight:700}.simple-form{max-width:850px}.simple-form label{display:block;margin-bottom:16px}.simple-form input,.simple-form select,.simple-form textarea{width:100%;padding:13px;border:1px solid #b9cce3;border-radius:9px;margin-top:7px;font:inherit}.simple-form textarea{min-height:110px}.actions{display:flex;gap:10px;margin-top:20px}@media(max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}}

/* Refinamento Dashboard + Pacientes */
.date-chip,.count-chip{display:inline-flex;align-items:center;gap:8px;background:#eef6ff;color:#24537f;border:1px solid #d7e6f6;padding:10px 14px;border-radius:10px;font-weight:700}.date-chip svg,.count-chip svg{width:18px}.metric-card{position:relative;min-height:142px;padding:22px}.metric-card small{display:block;color:#607895;font-weight:700;font-size:14px;padding-right:45px}.metric-card b{font-size:30px;color:#102f58;margin-top:14px}.metric-card em{display:block;margin-top:8px;color:#8293aa;font-size:12px;font-style:normal}.metric-icon{position:absolute;right:18px;top:18px;width:42px;height:42px;border-radius:12px;display:grid;place-items:center}.metric-icon svg{width:21px}.metric-icon.blue{background:#e5f1ff;color:#176fd8}.metric-icon.violet{background:#f0eaff;color:#7656c9}.metric-icon.orange{background:#fff0df;color:#d87916}.metric-icon.green{background:#e3f7ec;color:#16864b}.financial-positive{border-color:#cdebd9;background:linear-gradient(145deg,#fff,#f5fff8)}.financial-positive b{color:#167a45}.dashboard-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:18px;margin-top:20px}.panel-card{background:#fff;border:1px solid #dce7f3;border-radius:14px;padding:22px;box-shadow:0 6px 22px #143b660c}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.panel-head h2{margin:0;color:#102f58;font-size:20px}.panel-head p{margin:5px 0 0;color:#7a8fa9;font-size:13px}.panel-head>svg{color:#4f82b7;width:24px}.bar-chart{height:235px;display:flex;align-items:flex-end;gap:14px;padding:20px 8px 0;border-bottom:1px solid #e6eef7}.bar-item{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px}.bar-track{height:160px;width:min(38px,75%);background:#eef4fa;border-radius:8px 8px 0 0;display:flex;align-items:flex-end;overflow:hidden}.bar-track i{width:100%;display:block;background:linear-gradient(180deg,#4a9bef,#176fd8);border-radius:8px 8px 0 0}.bar-value{font-size:12px;font-weight:800;color:#385b82}.bar-item small{font-size:11px;color:#7b8fa8}.finance-chart{display:flex;align-items:center;justify-content:center;gap:28px;min-height:215px}.donut{--pct:0;width:150px;height:150px;border-radius:50%;background:conic-gradient(#23a365 calc(var(--pct)*1%),#e58a55 0);display:grid;place-items:center;position:relative}.donut:after{content:"";position:absolute;width:104px;height:104px;background:#fff;border-radius:50%}.donut div{z-index:1;text-align:center}.donut b{display:block;font-size:24px;color:#173d69}.donut small{color:#8293aa}.legend{min-width:185px}.legend p{display:grid;grid-template-columns:12px 1fr auto;align-items:center;gap:8px;margin:12px 0;color:#627994;font-size:12px}.legend strong{color:#173d69}.dot{width:9px;height:9px;border-radius:50%}.dot.revenue{background:#23a365}.dot.expense{background:#e58a55}.legend .balance-line{grid-template-columns:1fr auto;border-top:1px solid #e4edf6;padding-top:12px;margin-top:16px}.patient-form-card{margin-bottom:20px}.patient-list-card{padding:0;overflow:hidden}.patient-list-card .panel-head{padding:22px 22px 0}.panel-icon{width:42px;height:42px;border-radius:12px;background:#e7f2ff;color:#176fd8;display:grid;place-items:center}.link-button{display:inline-flex;align-items:center;text-decoration:none;height:60px;border-radius:10px;padding:0 22px;font-size:16px;font-weight:700}.table-wrap.clean{border:0;border-radius:0}.patient-table thead th{background:#f2f6fa;color:#496581;font-size:12px;text-transform:uppercase;letter-spacing:.04em}.patient-table tbody tr:nth-child(even){background:#f8fafc}.patient-table tbody tr:hover{background:#eef6ff}.patient-name{display:flex;align-items:center;gap:10px;color:#125da9;font-weight:800;text-decoration:none}.mini-avatar{width:32px;height:32px;border-radius:9px;background:#e3f0ff;display:grid;place-items:center;color:#176fd8}.mini-avatar svg{width:16px}.actions-col{text-align:center!important}.row-actions{display:flex;justify-content:center;gap:7px}.row-actions a{width:34px;height:34px;border:1px solid #d6e2ef;border-radius:8px;display:grid;place-items:center;color:#41698f;background:#fff}.row-actions a:hover{border-color:#8bb7e5;background:#eef6ff}.row-actions a.danger{color:#c73a3a}.row-actions svg{width:16px}.success-alert{display:flex;align-items:center;gap:9px;background:#eaf8ef;color:#177a46;border:1px solid #ccebd8;padding:12px 15px;border-radius:10px;margin-bottom:18px}.pagination{display:flex;justify-content:flex-end;gap:7px;padding:16px 22px;border-top:1px solid #e6edf5}.pagination a{width:34px;height:34px;border:1px solid #d5e1ed;border-radius:8px;display:grid;place-items:center;text-decoration:none;color:#476785;font-weight:700;background:#fff}.pagination a.current{background:#176fd8;color:#fff;border-color:#176fd8}.profile-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.back-link{display:inline-flex;align-items:center;gap:8px;color:#315b84;text-decoration:none;font-weight:800}.back-link svg{width:18px}.secondary-btn{background:#fff;color:#176fd8;border:1px solid #bdd4eb}.patient-hero{display:flex;align-items:center;gap:18px;padding:24px;border-radius:16px;background:linear-gradient(110deg,#e8f3ff,#f7fbff);border:1px solid #d6e7f8;margin-bottom:20px}.profile-avatar{width:72px;height:72px;border-radius:18px;background:#176fd8;color:#fff;display:grid;place-items:center}.profile-avatar svg{width:36px}.patient-hero span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#5d7c9e;font-weight:800}.patient-hero h1{margin:4px 0;color:#102f58}.patient-hero p{margin:0;color:#66809d}.profile-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:20px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.detail-grid>div{padding:14px;background:#f8fafc;border:1px solid #e5edf5;border-radius:10px}.detail-grid .wide{grid-column:1/-1}.detail-grid small{display:block;color:#8193a8;margin-bottom:6px}.detail-grid b,.detail-grid p{color:#244b72;margin:0}.timeline{padding-left:6px}.timeline-item{display:grid;grid-template-columns:16px 1fr;gap:10px;position:relative;padding-bottom:18px}.timeline-item>span{width:10px;height:10px;border-radius:50%;background:#2783dc;margin-top:5px;box-shadow:0 0 0 4px #e5f2ff}.timeline-item:not(:last-child):before{content:"";position:absolute;left:4px;top:17px;bottom:0;border-left:1px solid #cfe0ef}.timeline-item b{color:#234e78}.timeline-item p{margin:3px 0;color:#526f8c}.timeline-item small{color:#8093a8}.profile-records{margin-top:20px}.record-list{display:grid;gap:12px}.record-list article{padding:16px;border:1px solid #e0eaf3;background:#fafcfe;border-radius:11px}.record-list article>div{display:flex;align-items:center;gap:9px;color:#176fd8}.record-list article svg{width:18px}.record-list article p{color:#496985;line-height:1.55;margin:10px 0 0}.soft-empty,.empty-state{display:flex;align-items:center;justify-content:center;gap:10px;color:#8295aa;min-height:120px;background:#f8fafc;border:1px dashed #d5e1ec;border-radius:10px}.empty-state{flex-direction:column;min-height:320px}.soft-empty svg{width:22px}
@media(max-width:1100px){.dashboard-grid,.profile-grid{grid-template-columns:1fr}.finance-chart{justify-content:flex-start}}@media(max-width:700px){.dashboard-cards{grid-template-columns:1fr}.dashboard-grid{grid-template-columns:1fr}.finance-chart{flex-direction:column}.detail-grid{grid-template-columns:1fr}.detail-grid .wide{grid-column:auto}.profile-top{align-items:flex-start;gap:12px;flex-direction:column}.patient-hero{align-items:flex-start}.patient-table{min-width:760px}}
/* Central de Relatórios */
.report-breadcrumb{display:flex;align-items:center;gap:7px;color:#7b90aa;font-size:13px;margin:0 0 14px}.report-breadcrumb a{color:#52759a;text-decoration:none}.report-breadcrumb b{color:#274d75}.report-breadcrumb svg{width:14px}.report-head{align-items:flex-end}.report-head p{margin:6px 0 0;color:#7489a3}.export-actions{display:flex;gap:9px}.export-actions .btn{padding:10px 13px;font-size:13px}.report-metrics{gap:12px;margin-bottom:18px}.mini-metric{padding:14px 16px;display:flex;align-items:center;gap:13px;min-height:78px;box-shadow:none}.mini-metric>span{width:40px;height:40px;border-radius:10px;background:#e9f3ff;color:#176fd8;display:grid;place-items:center}.mini-metric svg{width:19px}.mini-metric div{font-size:12px;color:#6e839c;font-weight:700}.mini-metric b{font-size:22px;color:#173d69;margin:3px 0 0}.report-table-card{padding:0;overflow:hidden}.report-search-zone{padding:21px 22px 16px;display:flex;justify-content:space-between;align-items:flex-end;gap:25px}.report-search-zone h2{margin:0;color:#173d69;font-size:21px}.report-search-zone p{margin:5px 0 0;color:#7d90a6;font-size:13px}.smart-search-form{width:min(570px,55%)}.smart-search{height:48px;border:1px solid #bcd0e4;border-radius:10px;display:flex;align-items:center;gap:11px;padding:0 12px;background:#fff;box-shadow:0 3px 12px #123b6508}.smart-search:focus-within{border-color:#2a7bd2;box-shadow:0 0 0 3px #2a7bd212}.smart-search>svg{width:20px;color:#547798}.smart-search input{flex:1;border:0;outline:0;font:inherit;color:#284c70}.smart-search button{border:0;background:transparent;color:#8aa0b5;display:grid;place-items:center;cursor:pointer}.smart-search button svg{width:17px}.filter-row{display:flex;align-items:center;gap:8px;padding:0 22px 17px;border-bottom:1px solid #e6edf5;flex-wrap:wrap}.filter-row>span{font-size:12px;color:#7a8ea5;font-weight:700;margin-right:4px}.filter-chip{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #d8e3ee;border-radius:20px;text-decoration:none;color:#52708e;font-size:12px;font-weight:700;background:#fff}.filter-chip svg{width:15px}.filter-chip.active{background:#e9f3ff;border-color:#b9d8f8;color:#176fd8}.table-tools{padding:12px 22px;display:flex;align-items:center;justify-content:space-between;background:#fbfcfe;color:#6f849c;font-size:12px}.table-tools b{color:#244d76}.table-tools label{font-size:12px;color:#6f849c}.table-tools select{margin-left:7px;padding:6px 25px 6px 8px;border:1px solid #d3dfeb;border-radius:7px;background:#fff;color:#355a7e}.report-table .sort-link{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:inherit}.report-table .sort-link svg{width:13px}.status-badge{display:inline-flex;align-items:center;gap:6px;border-radius:20px;padding:6px 9px;font-size:11px;font-weight:800}.status-badge i{width:6px;height:6px;border-radius:50%}.status-badge.green{background:#e9f8ef;color:#167a45}.status-badge.green i{background:#20a45c}.status-badge.yellow{background:#fff6dd;color:#a86d00}.status-badge.yellow i{background:#e3a91d}.status-badge.red{background:#fdecec;color:#b73b3b}.status-badge.red i{background:#dc5252}.report-pagination{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-top:1px solid #e6edf5;color:#71859c;font-size:12px}.report-pagination>div{display:flex;align-items:center;gap:12px}.report-pagination a,.disabled-page{display:inline-flex;align-items:center;gap:5px;border:1px solid #d5e1ed;border-radius:8px;padding:8px 10px;text-decoration:none;color:#3d6387;background:#fff;font-weight:700}.report-pagination svg{width:14px}.report-pagination b{color:#345a7d}.disabled-page{opacity:.45}.empty-state.small{min-height:180px;border:0;background:#fff}.empty-state.small svg{width:30px;color:#91a6ba}.empty-state.small b{color:#4b6884}.empty-state.small span{font-size:12px}@media(max-width:900px){.report-head,.report-search-zone,.report-pagination{align-items:stretch;flex-direction:column}.smart-search-form{width:100%}.export-actions{flex-wrap:wrap}.report-metrics{grid-template-columns:1fr 1fr}.report-pagination>div{justify-content:space-between}.report-table{min-width:850px}}@media print{.sidebar,header,.report-breadcrumb,.export-actions,.filter-row,.smart-search-form,.table-tools,.report-pagination{display:none!important}.app{display:block}.page{margin:0;box-shadow:none}.report-table-card{border:0}.report-metrics{grid-template-columns:repeat(4,1fr)}}

/* Cadastro gerenciável: máscaras, idade e cidade */
.field select{border:0;outline:0;width:100%;font:inherit;font-weight:400;color:#314d72;background:transparent;cursor:pointer}.age-field{background:#f5f8fc}.age-field input{font-weight:700;color:#176fd8}.field-suffix{font-size:13px;color:#7890aa;white-space:nowrap}.city-other{display:none}

/* V7 - Select Cidade integrado ao padrão visual */
.field select{
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  border:0;
  outline:0;
  width:100%;
  height:100%;
  margin:0;
  padding:0 38px 0 0;
  font:inherit;
  font-weight:400;
  color:#314d72;
  background-color:transparent;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237186a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 2px center;
  background-size:18px 18px;
  cursor:pointer;
  box-shadow:none;
  border-radius:0;
}
.field select::-ms-expand{display:none}
.field select:invalid{color:#9aaac0}
.field select option{color:#314d72;background:#fff}
.error-alert{display:flex;gap:10px;align-items:flex-start;margin:0 0 18px;padding:14px 16px;border:1px solid #fecaca;background:#fff1f2;color:#b91c1c;border-radius:12px;font-weight:600}.error-alert svg{width:20px;height:20px;flex:0 0 auto}.save:disabled,.save.is-saving{opacity:.65;cursor:not-allowed;pointer-events:none}

/* V11 - Agenda inteligente */
.schedule-head p,.schedule-card-title p,.schedule-list-head p{margin:6px 0 0;color:#7489a3}.schedule-form-card{padding:22px;margin-bottom:20px}.schedule-card-title,.schedule-list-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.schedule-card-title h2,.schedule-list-head h2{margin:0;color:#173d69}.schedule-card-title>span{width:46px;height:46px;border-radius:12px;background:#e8f3ff;color:#176fd8;display:grid;place-items:center}.schedule-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px 28px}.schedule-grid label{min-width:0}.schedule-submit{display:flex;justify-content:flex-end;margin-top:24px}.schedule-save{padding:14px 22px;font-size:15px}.patient-picker{position:relative}.patient-options{display:none;position:absolute;left:0;right:0;top:68px;z-index:20;max-height:270px;overflow:auto;background:#fff;border:1px solid #cbdbea;border-radius:10px;box-shadow:0 14px 30px #123b6524;padding:6px}.patient-options.open{display:block}.patient-options button{width:100%;border:0;background:#fff;border-radius:8px;padding:11px 12px;display:flex;align-items:center;justify-content:space-between;text-align:left;cursor:pointer;color:#244b72}.patient-options button:hover{background:#eef6ff}.patient-options button b{font-size:14px}.patient-options button small{color:#7b90a8}.picker-empty{padding:16px;color:#7b90a8;text-align:center}.schedule-list-card{padding:0;overflow:hidden}.schedule-list-head{padding:20px 22px;margin:0}.date-filter{display:flex;align-items:flex-end;gap:8px}.date-filter label{font-size:12px;color:#6f849c}.date-filter input{display:block;margin-top:6px;border:1px solid #cbd9e7;border-radius:8px;padding:8px 10px;color:#315779;background:#fff}.date-filter a{width:36px;height:36px;border:1px solid #d4e1ed;border-radius:8px;display:grid;place-items:center;color:#66839f}.date-filter svg{width:16px}.agenda-patient{display:flex;align-items:center;gap:10px}.agenda-patient>span{width:34px;height:34px;border-radius:9px;background:#e8f3ff;color:#176fd8;display:grid;place-items:center}.agenda-patient svg{width:17px}.agenda-patient b,.agenda-patient small{display:block}.agenda-patient small{color:#8194a8;margin-top:3px}.status-badge.blue{background:#e7f2ff;color:#1764b0}.status-badge.blue i{background:#2680d9}.agenda-actions{display:flex;justify-content:center;gap:7px}.agenda-actions form{margin:0}.agenda-actions button{width:34px;height:34px;border:1px solid #d5e2ee;border-radius:8px;background:#fff;color:#238454;display:grid;place-items:center;cursor:pointer}.agenda-actions button:hover{background:#f0f8f4}.agenda-actions button.danger{color:#c94242}.agenda-actions button.danger:hover{background:#fff2f2}.agenda-actions svg{width:16px}.schedule-table td{vertical-align:middle}
@media(max-width:800px){.schedule-grid{grid-template-columns:1fr}.schedule-card-title,.schedule-list-head{align-items:flex-start;flex-direction:column;gap:14px}.date-filter{width:100%}.date-filter label{flex:1}.date-filter input{width:100%}.schedule-table{min-width:760px}}

/* V12 - Fluxo clínico Consultas + Prontuários */
.success-alert{display:flex;align-items:center;gap:10px;margin:0 0 18px;padding:14px 16px;border:1px solid #bfe8ce;background:#effbf3;color:#197447;border-radius:12px;font-weight:700}.success-alert svg{width:20px}.clinical-card{padding:22px;margin-bottom:20px}.clinical-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px 28px}.clinical-wide{grid-column:1/-1}.clinical-textarea{height:120px;align-items:flex-start;padding-top:15px}.clinical-textarea.large{height:160px}.clinical-textarea.xlarge{height:190px}.clinical-textarea textarea{height:100%;resize:vertical;line-height:1.55}.chart-check{margin-top:18px;display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid #d9e7f4;background:#f8fbff;border-radius:11px;cursor:pointer}.chart-check>input{margin-top:5px}.chart-check>span{display:grid;grid-template-columns:24px 1fr;column-gap:8px}.chart-check svg{width:20px;color:#176fd8}.chart-check b{font-size:14px}.chart-check small{grid-column:2;color:#7489a3;font-weight:400;margin-top:3px}.clinical-history{padding:0;overflow:hidden}.cell-small{display:block;color:#8194a8;margin-top:3px}.clip-text{max-width:430px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.consult-start,.agenda-actions .consult-start{width:34px;height:34px;border:1px solid #cfe0f0;border-radius:8px;background:#eef6ff;color:#176fd8;display:grid;place-items:center;text-decoration:none}.consult-start:hover{background:#dfeeff}.consult-start svg{width:16px}.timeline-card{padding:0;overflow:hidden}.timeline-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding:20px 22px;border-bottom:1px solid #e5edf5}.timeline-head h2{margin:0}.timeline-head p{margin:5px 0 0;color:#7489a3}.timeline-head label{font-size:12px;color:#6f849c}.timeline-head select{display:block;margin-top:6px;min-width:310px;padding:10px 35px 10px 12px;border:1px solid #cbd9e7;border-radius:8px;background:#fff;color:#315779}.timeline{padding:24px 26px}.timeline-item{position:relative;display:grid;grid-template-columns:44px 1fr;gap:16px;padding-bottom:24px}.timeline-item:not(:last-child):before{content:"";position:absolute;left:21px;top:42px;bottom:0;width:2px;background:#dbe9f6}.timeline-dot{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#e7f2ff;color:#176fd8;z-index:1}.timeline-dot svg{width:20px}.timeline-content{border:1px solid #dce8f3;border-radius:12px;padding:16px 18px;background:#fff;box-shadow:0 4px 14px #143b6608}.timeline-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:11px;border-bottom:1px solid #edf2f7}.timeline-meta b,.timeline-meta small{display:block}.timeline-meta small{color:#8093a7;margin-top:3px}.timeline-meta time{font-size:13px;font-weight:700;color:#52708e;white-space:nowrap}.timeline-content p{margin:14px 0 0;color:#334f6d;line-height:1.65;white-space:normal}.soft-empty{display:flex;align-items:center;justify-content:center;gap:9px;padding:35px;color:#8195aa}.soft-empty svg{width:20px}
@media(max-width:800px){.clinical-grid{grid-template-columns:1fr}.clinical-wide{grid-column:auto}.timeline-head{align-items:stretch;flex-direction:column}.timeline-head select{min-width:0;width:100%}.timeline{padding:18px 12px}.timeline-item{grid-template-columns:36px 1fr;gap:10px}.timeline-dot{width:36px;height:36px}.timeline-item:not(:last-child):before{left:17px}.timeline-meta{flex-direction:column}.clip-text{max-width:220px}}

/* V13 - Central de Configurações */
.brand-logo{height:62px;display:flex;align-items:center;margin-bottom:2px}.brand-logo img{max-width:150px;max-height:58px;object-fit:contain;object-position:left center}.settings-card{padding:24px;margin-bottom:20px}.settings-title{display:flex;align-items:center;gap:14px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #e7eef6}.settings-title>span{width:44px;height:44px;border-radius:12px;background:#e8f3ff;color:#176fd8;display:grid;place-items:center}.settings-title svg{width:21px}.settings-title h2,.settings-title p{margin:0}.settings-title h2{font-size:19px}.settings-title p{color:#788da5;font-size:13px;margin-top:4px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 28px}.settings-grid.three{grid-template-columns:repeat(3,1fr)}.settings-grid label,.password-box label{font-weight:700}.logo-setting{grid-column:1/-1}.logo-upload{margin-top:8px;display:flex;align-items:center;gap:18px;border:1px dashed #bfd2e6;border-radius:12px;padding:15px;background:#f9fbfe}.logo-preview{width:120px;height:72px;border-radius:10px;background:#eaf3fc;display:grid;place-items:center;overflow:hidden;font-size:26px;font-weight:800;color:#176fd8}.logo-preview img{width:100%;height:100%;object-fit:contain;padding:5px}.logo-upload input{display:block;margin-bottom:7px}.logo-upload small{color:#7b8fa5;font-weight:400}.settings-save{display:flex;justify-content:flex-end;margin-top:22px}.security-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:26px}.password-box{display:grid;gap:15px}.password-box h3,.users-box h3{margin:0 0 4px}.users-box{border:1px solid #dce8f3;border-radius:14px;background:#f8fbff;padding:25px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.users-box p{color:#7288a1;line-height:1.55;margin:8px 0 18px}.users-icon{width:48px;height:48px;border-radius:12px;background:#e7f2ff;color:#176fd8;display:grid;place-items:center;margin-bottom:15px}.secondary-btn{background:#fff!important;color:#176fd8!important;border:1px solid #bdd5ec!important;text-decoration:none}.icon-danger{width:34px;height:34px;border:1px solid #f0caca;background:#fff;color:#d34747;border-radius:8px;display:grid;place-items:center;cursor:pointer}.icon-danger svg{width:16px}@media(max-width:900px){.settings-grid,.settings-grid.three,.security-grid{grid-template-columns:1fr}.logo-setting{grid-column:auto}}
