:root{--bg:#f4f6f8;--surface:#ffffff;--text:#1c2430;--muted:#5c6b7a;--border:#d5dde5;--accent:#1f4e79;--selection:#e6f0f8;--alert-bg:#fff4d6;--alert-text:#8a5a00;--error:#8e1b1b;--row:32px;--font:"Segoe UI",sans-serif}*{box-sizing:border-box}body,html{margin:0;height:100%}body{background:var(--bg);color:var(--text);font-family:var(--font);font-size:13px;line-height:1.3}button,input,select{font:inherit;color:inherit}a,button{border-radius:2px}a{color:var(--accent);text-decoration:none}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.boot{height:100vh;background:var(--bg)}.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(360px,440px) 1fr}.login-page,.login-panel{background:var(--surface)}.login-panel{display:flex;align-items:center;justify-content:center;padding:32px 28px;border-right:1px solid var(--border)}.login-card{width:100%;max-width:360px;background:transparent;border:0;padding:0}.login-tagline{margin:0 0 4px;text-align:center;font-size:14px;font-weight:600;color:#0f3d34}.login-unit{margin:0 0 20px;text-align:center;font-size:12px;color:var(--muted)}.login-card .btn.primary.login-submit{width:100%;background:#0f6e5c;border-color:#0f6e5c;color:#ffffff}.login-card .btn.primary.login-submit:hover{background:#0c5849;border-color:#0c5849}.login-hero{position:relative;min-height:100vh;overflow:hidden;background:#0b2f28}.login-hero-img{display:block;width:100%;height:100%;object-fit:cover;object-position:right center}.login-hero-fade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.18),rgba(11,47,40,.12) 28%,rgba(11,47,40,.2));pointer-events:none}@media (max-width:900px){.login-page{grid-template-columns:1fr}.login-panel{border-right:0;min-height:100vh}.login-hero{display:none}}.brand{margin:0 0 10px;font-size:16px;font-weight:600;display:flex;justify-content:center}.brand-lockup{display:inline-flex;align-items:flex-end;gap:6px;color:inherit;text-decoration:none}.brand-lockup-login{flex-direction:column;align-items:center;gap:2px}.brand-logo{display:block;flex:0 0 auto;width:auto;height:40px;object-fit:contain}.brand-lockup-login .brand-logo{height:112px}.brand-med{font-size:15px;font-weight:700;line-height:1;color:#12b89a;letter-spacing:.02em;padding-bottom:2px}.brand-lockup-login .brand-med{font-size:22px;margin-top:-6px;padding-bottom:0}.page-title{margin:0 0 8px;font-size:15px;font-weight:600}.hint,.muted{color:var(--muted);font-size:12px}.error{color:var(--error);margin:8px 0 0}.shell{height:100vh;display:flex;flex-direction:column;background:var(--bg)}.topbar{height:48px;flex:0 0 48px;justify-content:space-between;padding:0 12px;background:var(--surface);border-bottom:1px solid var(--border)}.topbar,.topbar-user{display:flex;align-items:center}.topbar-user{gap:8px;color:var(--muted);font-size:12px}.shell-body{flex:1 1;display:flex;min-height:0}.nav{width:216px;flex:0 0 216px;background:var(--surface);border-right:1px solid var(--border);padding:8px;overflow:auto}.nav a{display:block;min-height:var(--row);line-height:var(--row);padding:0 12px;color:var(--text)}.nav a.active{background:var(--selection);color:var(--accent);font-weight:600}.main{flex:1 1;display:flex;flex-direction:column;min-width:0}.strip{height:56px;flex:0 0 56px;gap:10px;padding:0 12px;background:var(--surface);border-bottom:1px solid var(--border)}.strip,.strip-photo{display:flex;align-items:center}.strip-photo{width:40px;height:40px;flex:0 0 40px;border-radius:2px;border:1px solid var(--border);background:var(--selection);overflow:hidden;justify-content:center;color:var(--accent);font-size:12px;font-weight:600}.strip-photo img{width:100%;height:100%;object-fit:cover;display:block}.patient-photo{display:flex;gap:12px;align-items:flex-start;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid var(--border)}.patient-photo-compact{margin-bottom:8px;padding-bottom:8px}.patient-photo-preview{width:96px;height:96px;flex:0 0 96px;border:1px solid var(--border);border-radius:2px;background:var(--selection);overflow:hidden;display:flex;align-items:center;justify-content:center;color:var(--accent);font-size:22px;font-weight:600}.patient-photo-compact .patient-photo-preview{width:72px;height:72px;flex-basis:72px;font-size:18px}.patient-photo-preview img{width:100%;height:100%;object-fit:cover;display:block}.patient-photo-actions{display:flex;flex-direction:column;gap:6px;min-width:0}.patient-photo-label{font-size:12px;font-weight:600;color:var(--muted)}.patient-photo-webcam{max-width:560px}.patient-photo-video{width:100%;max-height:360px;background:#111;border:1px solid var(--border);object-fit:cover;display:block;margin-bottom:12px}.strip-id{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1}.strip-name{font-size:14px;font-weight:600;color:var(--text);line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.strip-meta{display:flex;flex-wrap:wrap;gap:0 10px;color:var(--muted);font-size:11px;line-height:1.2}.strip-allergy{background:var(--alert-bg);color:var(--alert-text);padding:2px 8px;font-size:11px;white-space:nowrap}.btn-compact{height:28px;padding:0 10px;font-size:12px}.content{flex:1 1;overflow:auto;padding:16px;background:var(--bg)}.filters{display:flex;gap:8px;align-items:flex-end;margin-bottom:12px}.field,.filters label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}.field input,.field select,.field textarea,.filters input,.filters select{display:block;width:100%;height:var(--row);border:1px solid var(--border);background:var(--surface);padding:0 8px}.field textarea{height:auto;min-height:96px;padding:8px;resize:vertical}.grow{flex:1 1}.period-filter{flex-wrap:wrap;align-items:flex-end}.period-filter-label{font-size:12px;color:var(--muted);align-self:center;margin-right:4px}.period-presets{margin:0;flex-wrap:wrap}.period-presets button{height:28px;padding:0 10px;font-size:12px}.table-wrap{border:1px solid var(--border)}.table-wrap,table.data{background:var(--surface)}table.data{width:100%;border-collapse:collapse;font-size:12px}table.data td,table.data th{height:var(--row);padding:0 8px;border-bottom:1px solid var(--border);text-align:left;white-space:nowrap}table.data th{color:var(--muted);font-weight:600}table.data tr.clickable{cursor:pointer}table.data tr.selected td{background:var(--selection)}.btn{height:var(--row);padding:0 12px;border:1px solid var(--border);background:var(--surface);border-radius:2px;cursor:pointer}.btn.primary{background:var(--accent);border-color:var(--accent);color:#ffffff}.btn:disabled{opacity:.45;cursor:default}.btn.linkish{border:0;background:transparent;color:var(--accent);padding:0;height:auto}.form-narrow{width:640px;max-width:100%;background:var(--surface);border:1px solid var(--border);padding:16px}.form-narrow .field,.form-narrow>label{display:flex;flex-direction:column;gap:4px;width:100%;margin:0 0 12px;font-size:12px;color:var(--muted)}.form-narrow .field input,.form-narrow .field select,.form-narrow>label input,.form-narrow>label select{display:block;width:100%;height:var(--row);border:1px solid var(--border);background:var(--surface);padding:0 8px;box-sizing:border-box}.form-narrow .actions{margin-top:4px}.surgical-booking .hint{margin:0 0 12px}.form-ficha{width:100%;max-width:1100px;background:var(--surface);border:1px solid var(--border);padding:16px}.form-ficha-head{justify-content:space-between;margin-bottom:12px}.form-ficha .section h2{color:var(--accent)}.section{margin-bottom:24px}.section h2{margin:0 0 12px;padding-bottom:4px;border-bottom:1px solid var(--border);font-size:13px;font-weight:600;color:var(--text)}.grid-2{grid-template-columns:1fr 1fr;grid-gap:12px}.grid-2,.grid-4{display:grid;gap:12px}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:12px}@media (max-width:1100px){.grid-4{grid-template-columns:1fr 1fr}}.actions{display:flex;gap:8px;margin-top:8px}.perm-checks{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}.perm-check{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--muted);white-space:nowrap}.perm-check input{margin:0}.perm-check-all{color:var(--text);font-weight:600;padding-right:6px;border-right:1px solid var(--border);margin-right:2px}.agenda{display:flex;gap:16px;align-items:flex-start}.month{width:280px;flex:0 0 280px;background:var(--surface);border:1px solid var(--border);padding:8px}.month-label{margin-bottom:8px;color:var(--text);font-weight:600;text-transform:capitalize}.month-head{display:flex;justify-content:space-between;align-items:center;height:var(--row);margin-bottom:8px}.month-grid{display:grid;grid-template-columns:repeat(7,1fr);grid-gap:2px;gap:2px}.month-grid button,.month-grid span{height:28px;border:0;background:transparent;padding:0;text-align:center;font-size:12px;white-space:nowrap}.month-grid span{color:var(--muted)}.month-grid button.selected{background:var(--selection);color:var(--accent);font-weight:600}.agenda-table{flex:1 1;min-width:0}.title-row{display:flex;align-items:baseline;gap:12px}.subtabs,.tabs{display:flex;flex-wrap:wrap;gap:0;margin-bottom:12px;background:var(--surface);border:1px solid var(--border)}.subtabs{margin-top:-13px}.subtabs a,.subtabs button,.tabs a,.tabs button{display:block;min-height:var(--row);line-height:var(--row);padding:0 12px;color:var(--text);border:0;border-radius:0;background:transparent;cursor:pointer;font:inherit;box-shadow:none}.subtabs a.active,.subtabs button.active,.tabs a.active,.tabs button.active{background:var(--selection);color:var(--accent);font-weight:600}textarea{width:100%;min-height:80px;padding:8px;border:1px solid var(--border);border-radius:2px;font:inherit;resize:vertical}.cid-search{position:relative}.cid-selected{display:flex;align-items:center;gap:8px;min-height:var(--row);padding:0 8px;border:1px solid var(--border);background:var(--surface)}.cid-selected span{flex:1 1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cid-list{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 2px);max-height:240px;overflow:auto;margin:0;padding:0;list-style:none;background:var(--surface);border:1px solid var(--border)}.cid-list li button{display:flex;gap:8px;width:100%;min-height:var(--row);padding:0 8px;border:0;background:transparent;text-align:left;cursor:pointer;font:inherit}.cid-list li button:focus,.cid-list li button:hover{background:var(--selection)}.cid-list li button strong{flex:0 0 56px;color:var(--accent)}.cid-list li button span{flex:1 1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cid-list li.muted{padding:8px;color:var(--muted)}.ticket-panel{width:280px;margin-bottom:16px;padding:16px;background:var(--surface);border:1px solid var(--border);gap:8px}.patient-picker,.ticket-panel{display:flex;flex-direction:column}.patient-picker{gap:0}.ticket-panel strong{font-size:32px;line-height:1;color:var(--accent)}.manchester{display:inline-block;min-width:72px;padding:0 8px;line-height:22px;border-radius:2px;color:#1c2430}.manchester.vermelho{background:#c0392b;color:#ffffff}.manchester.laranja{background:#e67e22;color:#ffffff}.manchester.amarelo{background:#f1c40f}.manchester.verde{background:#27ae60;color:#ffffff}.manchester.azul{background:#2980b9;color:#ffffff}.modules{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}.module{width:112px;min-height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px 8px;background:var(--surface);border:1px solid var(--border);color:var(--text);text-align:center}.module:focus-visible,.module:hover{background:var(--selection)}.module svg{width:28px;height:28px;stroke:var(--accent);fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.module span{font-size:12px;line-height:1.2}.bed-filters{align-items:flex-end;gap:8px;margin-bottom:8px}.layout-picker{border:1px solid var(--border);padding:2px 8px;margin:0;display:flex;gap:8px;align-items:center;background:var(--surface);min-height:var(--row)}.layout-picker legend{padding:0 4px;font-size:11px;color:var(--muted)}.layout-picker label{gap:4px}.check-inline,.layout-picker label{display:flex;flex-direction:row;align-items:center;color:var(--text);font-size:12px}.check-inline{gap:6px;margin-bottom:4px}.bed-legend{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}.legend-item{font-size:11px;padding:1px 6px;border:1px solid var(--border);background:var(--surface);line-height:1.4}.legend-item.livre{border-color:#7cb342;color:#33691e}.legend-item.ocupado{border-color:#e57373;color:#b71c1c}.legend-item.reservada{border-color:#ffa726;color:#e65100;background:#fff8e1}.legend-item.bloqueado{border-color:#90a4ae;color:#455a64;background:#eceff1}.legend-item.today{border-color:#43a047;color:#1b5e20;background:#e8f5e9}.legend-item.overdue{border-color:#8e24aa;color:#4a148c;background:#f3e5f5}.rte{border:1px solid var(--border);background:var(--surface)}.rte-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:6px 8px;border-bottom:1px solid var(--border);background:#f3f5f7}.rte-toolbar button{min-width:28px;height:28px;padding:0 6px;border:1px solid var(--border);background:#fff;color:var(--text);font:inherit;font-size:12px;cursor:pointer}.rte-toolbar button:hover{border-color:var(--accent);color:var(--accent)}.rte-sep{width:1px;height:22px;background:var(--border);margin:0 2px}.rte-select{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 6px;border:1px solid var(--border);background:#fff;font-size:11px;color:var(--muted)}.rte-select input[type=color],.rte-select select{border:0;background:transparent;font:inherit;font-size:11px;color:var(--text);height:22px}.rte-select input[type=color]{width:28px;padding:0;cursor:pointer}.rte-swatches{display:inline-flex;flex-wrap:wrap;gap:2px;align-items:center}.rte-swatch{width:16px!important;min-width:16px!important;height:16px!important;padding:0!important;border:1px solid #bbb!important}.rte-editor{padding:10px 12px;outline:none;font:inherit;font-size:13px;line-height:1.35;color:var(--text);background:#fff}.rte-editor:empty:before{content:attr(data-placeholder);color:var(--muted)}.rte-editor h2{margin:0 0 8px;font-size:16px}.rte-editor h3{margin:0 0 6px;font-size:14px}.estoque-itens{gap:10px}.estoque-itens,.estoque-split{display:flex;flex-direction:column;min-height:0}.estoque-split{gap:12px}.estoque-list{max-height:min(52vh,520px);overflow:auto}.estoque-split.has-detail .estoque-list{max-height:min(32vh,320px)}.estoque-detail{border:1px solid var(--border);background:var(--surface);padding:12px 14px 16px}.estoque-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.estoque-detail .subtabs{margin-top:0;margin-bottom:14px}.estoque-detail .subtabs button{border:0;background:transparent}.estoque-detail .subtabs button.active{background:var(--selection);color:var(--accent)}.estoque-hint{margin:0;padding:10px 0}.exam-actions{display:flex;flex-wrap:wrap;gap:6px}.exam-capture-bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:end;margin-bottom:10px}.exam-capture-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(180px,.6fr);grid-gap:12px;gap:12px}.exam-capture-stage{position:relative;border:1px solid var(--border);background:#0b3d66;min-height:360px}.exam-capture-video{width:100%;height:360px;object-fit:contain;background:#0b3d66;display:block}.exam-capture-placeholder{position:absolute;inset:0 0 48px 0;display:grid;place-items:center;color:#d9ecff;text-align:center;padding:16px;pointer-events:none}.exam-capture-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px;background:var(--surface);border-top:1px solid var(--border)}.exam-capture-thumbs{display:flex;flex-direction:column;gap:8px;align-content:start;max-height:420px;overflow:auto}.exam-thumb{margin:0;border:1px solid var(--border);background:var(--surface)}.exam-thumb img{width:100%;display:block;aspect-ratio:4/3;object-fit:cover}.exam-thumb figcaption{display:flex;justify-content:space-between;padding:4px 6px;font-size:12px}.exam-thumb-empty{aspect-ratio:4/3;border:2px solid #c0392b;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#c0392b;font-size:18px;font-weight:600}.exam-thumb-empty small{font-size:11px;font-weight:400;color:#888}.exam-laudo-layout{display:grid;grid-gap:12px;gap:12px}.exam-laudo-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:10px;gap:10px}.exam-laudo-body{display:grid;grid-template-columns:180px minmax(0,1fr);grid-gap:12px;gap:12px}.exam-laudo-images{display:grid;grid-gap:8px;gap:8px;align-content:start}.exam-laudo-images figure{margin:0;border:1px solid var(--border)}.exam-laudo-images img{width:100%;display:block}.exam-laudo-images figcaption{text-align:right;padding:2px 6px;font-size:11px}.exam-laudo-sections{display:grid;grid-gap:8px;gap:8px}@media (max-width:1100px){.exam-capture-layout,.exam-laudo-body,.exam-laudo-meta{grid-template-columns:1fr}}.ctrl-book-layout{display:grid;grid-template-columns:minmax(240px,.9fr) minmax(0,1.4fr);grid-gap:12px;gap:12px;align-items:start;margin-top:8px}.ctrl-book-pages{max-height:min(42vh,420px)}.ctrl-book-detail{border:1px solid var(--border);background:var(--surface);padding:12px;min-height:200px}@media (max-width:1100px){.ctrl-book-layout{grid-template-columns:1fr}}.vinculo-form{display:grid;grid-template-columns:minmax(220px,1.6fr) 100px 140px auto;grid-gap:10px 12px;gap:10px 12px;align-items:end;margin-bottom:8px}.vinculo-form .field{margin:0}.vinculo-multiply{margin:4px 0 8px}@media (max-width:900px){.vinculo-form{grid-template-columns:1fr 1fr}}.patient-id-print{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px}.patient-id-print-msg{font-size:12px}.bed-actions{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin-bottom:8px}.bed-actions .btn{height:28px;padding:0 10px;font-size:12px}.bed-form{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin:0;padding:8px;width:100%;max-width:920px;background:var(--surface);border:1px solid var(--border)}.bed-form .field{min-width:140px;flex:1 1 140px}.bed-form .field input,.bed-form .field select{height:28px}.bed-sectors{display:flex;flex-direction:column;gap:16px}.bed-sector-title{margin:0 0 8px;font-size:13px;font-weight:600;color:var(--accent);border-bottom:1px solid var(--border);padding-bottom:4px}.bed-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));grid-gap:8px;gap:8px}.bed-grid.compact{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}.bed-tile{display:flex;flex-direction:column;gap:2px;min-height:64px;padding:8px 10px;border:1px solid var(--border);border-radius:4px;background:var(--surface);text-align:left;cursor:pointer;color:var(--text)}.bed-tile .bed-code{font-size:12px;font-weight:600}.bed-tile .bed-name{font-size:12px;font-weight:600;line-height:1.25}.bed-tile .bed-meta,.bed-tile .bed-name{display:flex;flex-direction:column;gap:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bed-tile .bed-meta{font-size:11px;color:var(--muted)}.bed-tile .bed-label{font-size:9px;font-weight:600;text-transform:uppercase;letter-spacing:.02em;color:var(--muted)}.bed-tile.livre{border-color:#a5d6a7;background:#f1f8e9}.bed-tile.ocupado{border-color:#ef9a9a;background:#fff5f5}.bed-tile.reservada{border-color:#ffb74d;background:#fff8e1}.bed-tile.bloqueado{border-color:#b0bec5;background:#eceff1;color:#607d8b}.bed-tile.today{border-color:#66bb6a;background:#e8f5e9}.bed-tile.overdue{border-color:#ab47bc;background:#f3e5f5}.bed-tile.selected,.bed-tile:hover{outline:2px solid var(--accent);outline-offset:1px}.pep-layout{display:grid;grid-template-columns:200px minmax(0,1fr);grid-gap:12px;gap:12px;align-items:start}.pep-side{display:flex;flex-direction:column;gap:8px;background:var(--surface);border:1px solid var(--border);padding:8px}.pep-photo{width:100%;aspect-ratio:1;display:grid;place-items:center;background:#eef2f6;border:1px solid var(--border);color:var(--muted);font-size:11px;font-weight:600;text-transform:uppercase;overflow:hidden}.pep-photo img{width:100%;height:100%;object-fit:cover}.pep-side-nav{display:flex;flex-direction:column;gap:4px}.pep-side-nav button{width:100%;text-align:left;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;font-size:12px;line-height:1.25;padding:8px 10px;cursor:pointer}.pep-side-nav button:hover{background:var(--selection)}.pep-side-nav button.active{border-color:var(--accent);background:var(--selection);color:var(--accent);font-weight:600}.pep-main{min-width:0;width:100%}.rx-panel{width:100%;max-width:none}.rx-panel .grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}@media (min-width:1200px){.rx-panel .grid-2{grid-template-columns:repeat(4,minmax(0,1fr))}.rx-panel .grid-2 .field[style*=grid-column]{grid-column:1/-1}}.pep-chart-tabs{margin-bottom:12px}.pep-main-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:4px}.pep-main-head .page-title{margin:0}.pep-status-chip{font-size:11px;color:var(--muted);border:1px solid var(--border);background:var(--surface);padding:4px 8px}@media (max-width:900px){.pep-layout{grid-template-columns:1fr}}.evo-filters{display:flex;flex-wrap:wrap;gap:8px 16px;margin-bottom:8px;font-size:12px;color:var(--text)}.evo-filters label{display:inline-flex;align-items:center;gap:6px;cursor:pointer}.evo-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px}.evo-split{display:grid;grid-template-columns:minmax(280px,1fr) minmax(320px,1.2fr);grid-gap:12px;gap:12px;align-items:stretch;min-height:360px}.evo-list{margin:0;max-height:calc(100vh - 280px);overflow:auto}.evo-list tbody tr{cursor:pointer}.evo-check-col{width:36px;text-align:center}.evo-detail{border:1px solid var(--border);background:var(--surface);padding:12px;min-height:280px;overflow:auto}.evo-detail-head{display:flex;flex-direction:column;gap:2px;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--border);font-size:12px}.evo-detail-body{white-space:pre-wrap;font-size:13px;line-height:1.45;color:var(--text)}@media (max-width:1100px){.evo-split{grid-template-columns:1fr}}.evo-form{display:flex;flex-direction:column;gap:8px;max-width:960px;background:var(--surface);border:1px solid var(--border);padding:12px}.evo-form-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.evo-form-head .page-title{margin:0}.evo-discharge{font-size:12px;font-weight:600;color:var(--muted)}.evo-form-row{display:flex;flex-wrap:wrap;align-items:end;gap:8px}.evo-form-row .field{min-width:140px}.evo-model-field{flex:1 1 220px;min-width:200px}.evo-show-models{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding-bottom:6px;cursor:pointer}.evo-text-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.evo-text-head .field-label{font-size:12px;color:var(--muted)}.evo-editor{min-height:220px;font-family:inherit;font-size:13px;line-height:1.45;width:100%}.anamnese-ai-panel{border:1px solid var(--border);background:#f7fafc;padding:10px 12px;display:flex;flex-direction:column;gap:8px}.anamnese-ai-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}.anamnese-ai-mode{font-size:11px;color:var(--muted);font-weight:600}.anamnese-ai-hint{margin:0;font-size:12px;color:var(--muted);line-height:1.4}.anamnese-ai-consent{display:inline-flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}.anamnese-ai-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.anamnese-ai-rec{font-size:12px;font-weight:700;color:#b42318}.anamnese-ai-busy{font-size:12px;color:var(--muted)}.anamnese-ai-paste{display:flex;flex-direction:column;gap:8px}.anamnese-ai-error{margin:0;font-size:12px;color:#b42318}table.data tbody tr.is-selected{background:#e8f2f7}table.data tbody tr.is-selected td{border-color:#c5d8e4}.crm-pipeline{display:flex;flex-direction:column;gap:16px;margin-top:12px}.crm-pipe-col header{display:flex;align-items:center;gap:8px;margin-bottom:6px;font-size:13px}.crm-pipe-dot{display:inline-block;width:10px;height:10px;border-radius:50%;vertical-align:middle}.evo-manage{margin-top:16px;max-width:960px;background:var(--surface);padding:12px;flex-direction:column;gap:8px}.evo-manage,.tm-fieldset{border:1px solid var(--border);display:flex}.tm-fieldset{padding:6px 10px;margin:0;flex-wrap:wrap;gap:8px 12px;align-items:center;font-size:12px}.tm-fieldset legend{padding:0 4px;font-size:11px;color:var(--muted)}.tm-fieldset label{display:inline-flex;align-items:center;gap:4px;cursor:pointer}.tm-preview-title{margin:0 0 8px;font-size:13px;font-weight:600;color:var(--accent)}.tm-save-scope{align-self:end;min-height:54px}.anes-panel{display:flex;flex-direction:column;gap:10px}.anes-hint{margin:0;max-width:720px}.anes-vitals-bar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-gap:8px;gap:8px;position:-webkit-sticky;position:sticky;top:0;z-index:2;background:var(--surface);border:1px solid var(--border);padding:10px}.anes-vitals-bar label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--muted)}.anes-vitals-bar input{min-height:40px;font-size:16px}.anes-bmi{display:flex;flex-direction:column;justify-content:center;gap:2px;font-size:12px}.anes-bmi strong{font-size:18px;color:var(--accent)}.anes-tabs button{min-height:40px}.anes-actions{display:flex;flex-wrap:wrap;gap:8px}.btn-touch{min-height:44px;padding:0 16px;font-size:14px}.anes-form{display:flex;flex-direction:column;gap:10px;background:var(--surface);border:1px solid var(--border);padding:12px}.anes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:8px;gap:8px}.anes-checks{display:flex;flex-wrap:wrap;gap:12px 16px;font-size:13px}.anes-checks label{display:inline-flex;align-items:center;gap:6px;min-height:40px}@media (max-width:900px){.anes-vitals-bar{grid-template-columns:repeat(3,minmax(0,1fr))}.anes-grid,.pep-layout{grid-template-columns:1fr}.pep-side{display:none}}@media (max-width:560px){.anes-vitals-bar{grid-template-columns:repeat(2,minmax(0,1fr))}}.bed-tree-room,.bed-tree-sector{border:1px solid var(--border);background:var(--surface);padding:8px 10px;margin-bottom:8px}.bed-tree-room>summary,.bed-tree-sector>summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--accent);margin-bottom:8px}.bed-tree-room{margin:8px 0 0 12px;border-style:dashed}.bed-tree-room>summary{font-weight:500;color:var(--text)}.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px}.modal{background:var(--surface);border:1px solid var(--border);padding:16px 20px;max-width:520px;overflow:auto;box-shadow:0 8px 24px rgba(0,0,0,.12)}.doc-preview-modal,.modal{width:100%;max-height:90vh}.doc-preview-modal{max-width:min(960px,96vw);height:min(90vh,900px);display:flex;flex-direction:column;padding:12px 14px;overflow:hidden}.doc-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px}.doc-preview-head .page-title{margin:0}.doc-preview-frame{flex:1 1;width:100%;min-height:0;border:1px solid var(--border);background:#fff}.send-tablet-modal{max-width:560px}.tablet-big-code{font-size:28px;letter-spacing:.12em;font-weight:700;color:#0f6e5c}.sig-note-proof{margin-top:12px;padding-top:8px;border-top:1px solid var(--border)}.sig-note-proof img{max-width:280px;max-height:100px;border:1px solid var(--border);background:#fff}.tablet-sig{min-height:100vh;padding:16px;background:#f4f6f8;color:var(--text);font-family:var(--font)}.tablet-sig-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.tablet-sig-code{font-size:18px;font-weight:700;color:#0f6e5c}.tablet-sig h1{margin:0 0 8px;font-size:20px}.tablet-sig h2{margin:0 0 10px;font-size:16px}.tablet-sig-doc{background:#fff;border:1px solid var(--border);padding:14px;max-height:48vh;overflow:auto;margin:12px 0}.tablet-sig .input-readonly,.tablet-sig input.input-readonly{background:#eef2f5;color:#1a2b34;cursor:default}.tablet-sig-card{background:#fff;border:1px solid var(--border);padding:14px;margin-top:12px}.tablet-sig-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.tablet-btn{min-height:44px;padding:0 16px;font-size:15px}.tablet-role{display:flex;gap:16px;margin-top:6px}.sig-legal{font-size:11px;margin:0 0 8px}.sig-accept{display:flex;gap:8px;align-items:flex-start;margin:10px 0 12px;font-size:14px}.sig-pad{margin-top:8px}.sig-pad-canvas{display:block;width:100%;touch-action:none;background:#fff;border:1px solid #9bb;border-radius:4px}.sig-pad-actions{display:flex;justify-content:space-between;align-items:center;margin-top:8px;gap:8px}.sig-done-img{max-width:100%;max-height:140px;border:1px solid var(--border);background:#fff;margin:10px 0}.boot-msg{padding:48px 16px;text-align:center}.termos-hub{max-width:720px}.termos-code-box{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin:12px 0 16px;padding:12px;border:1px solid var(--border);background:var(--surface)}.termos-code-box .field{flex:1 1;min-width:160px;margin:0}.termos-pending{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.termos-pending-card{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px;border:1px solid var(--border);background:var(--surface)}.termos-card-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}@media (max-width:640px){.termos-pending-card{flex-direction:column;align-items:stretch}.termos-pending-card .tablet-btn{width:100%}}.kit-label{margin-top:16px;padding:12px 16px;border:2px solid #1f4e79;background:#f7fafc;max-width:320px}.kit-label .page-title{margin-top:0;color:#1f4e79}.qr-mock{margin-top:8px;padding:24px;border:1px dashed var(--border);text-align:center;font-family:monospace;font-size:12px;background:#fff}.status-pill{display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;background:#eef2f6;color:var(--text)}.crm-timeline{margin-top:8px;max-width:720px}.crm-timeline-day{margin-bottom:18px}.crm-timeline-day-label{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-size:12px;font-weight:600;color:var(--muted);text-transform:none}.crm-timeline-day-label:after,.crm-timeline-day-label:before{content:"";flex:1 1;height:1px;background:var(--border)}.crm-timeline-list{list-style:none;margin:0;padding:0 0 0 14px;border-left:2px solid var(--border)}.crm-timeline-item{position:relative;margin-bottom:12px;padding:8px 10px 8px 12px;background:var(--surface);border:1px solid var(--border)}.crm-timeline-item:before{content:"";position:absolute;left:-19px;top:14px;width:8px;height:8px;border-radius:50%;background:var(--accent,#1b6b93);border:2px solid var(--surface)}.crm-timeline-meta{font-size:12px;margin-bottom:2px}.crm-timeline-time{display:inline-block;min-width:42px;margin-right:6px;color:var(--muted);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.crm-timeline-summary{font-size:13px}.crm-timeline-notes{margin-top:4px;font-size:12px;color:var(--muted);white-space:pre-wrap}