/* Linguagem visual unificada para as telas operacionais. */
:root{--sr-navy:#0d3654;--sr-blue:#14779c;--sr-cyan:#30a9b7;--sr-mint:#42b99b;--sr-bg:#f3f7f8;--sr-card:#fff;--sr-text:#183246;--sr-muted:#6b7e8b;--sr-line:#dce7eb;--sr-shadow:0 10px 30px rgba(15,54,79,.075);--sr-shadow-lg:0 20px 55px rgba(15,54,79,.12)}
body.system-refresh{--sidebar:228px;background:var(--sr-bg);color:var(--sr-text)}
body.system-refresh .app{background:radial-gradient(circle at 92% 3%,rgba(48,169,183,.075),transparent 25%),var(--sr-bg)}
body.system-refresh .sidebar{width:228px;background:linear-gradient(180deg,#0d3858 0%,#0b314d 100%);border:0;box-shadow:8px 0 30px rgba(10,43,67,.08)}
body.system-refresh .brand-row{height:76px;padding:0 17px;border-bottom:1px solid rgba(255,255,255,.09)}
body.system-refresh .workspace-pill{margin:15px 12px 6px;padding:10px 11px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.07);color:#eaf7f8}
body.system-refresh .nav{padding:8px 10px 18px}
body.system-refresh .nav-group{gap:3px;margin-top:13px}
body.system-refresh .nav-label{padding:0 10px 6px;color:#86aabd;font-size:9px;letter-spacing:1.25px}
body.system-refresh .nav-item{min-height:42px;padding:10px 11px;border-radius:10px;color:#c7dbe5;gap:12px;transition:background .16s,color .16s,transform .16s}
body.system-refresh .nav-item:hover{background:rgba(255,255,255,.08);color:#fff;transform:translateX(2px)}
body.system-refresh .nav-item.active{background:linear-gradient(105deg,rgba(69,191,178,.2),rgba(53,164,189,.13));color:#fff!important;box-shadow:inset 3px 0 #4bc4b3}
body.system-refresh .sidebar-footer{background:rgba(4,31,49,.32);border-top:1px solid rgba(255,255,255,.08)}
body.system-refresh .profile-mini strong,body.system-refresh .footer-actions a,body.system-refresh .footer-actions button{color:#e8f3f6}
body.system-refresh .main{margin-left:0}
body.system-refresh .topbar{height:76px;padding:0 26px;background:rgba(255,255,255,.88);border-bottom:1px solid rgba(206,221,227,.85);backdrop-filter:blur(14px);box-shadow:0 5px 22px rgba(20,61,84,.035)}
body.system-refresh .global-search{width:min(610px,56vw);height:44px;border:1px solid #d6e3e8;border-radius:14px;background:#f7fafb;box-shadow:inset 0 1px 2px rgba(18,59,93,.025);transition:.18s}
body.system-refresh .global-search:focus-within{background:#fff;border-color:#56b3be;box-shadow:0 0 0 4px rgba(48,169,183,.1)}
body.system-refresh .global-search kbd{border:0;background:#e9f1f3;color:#738792}
body.system-refresh .date-chip{padding:7px 11px;border-radius:9px;background:#edf4f6;color:#55717e}
body.system-refresh .content{max-width:1560px;margin:0 auto;padding:30px clamp(22px,3vw,46px) 55px}
body.system-refresh .page-head{position:relative;align-items:flex-end;margin:0 0 24px;padding:0 2px 18px;border-bottom:1px solid var(--sr-line)}
body.system-refresh .page-head:after{content:"";position:absolute;bottom:-1px;left:2px;width:54px;height:3px;border-radius:9px;background:linear-gradient(90deg,var(--sr-blue),var(--sr-mint))}
body.system-refresh .page-head h1{margin:4px 0 5px;color:var(--sr-navy);font-size:clamp(25px,2.2vw,34px);line-height:1.12;letter-spacing:-.75px}
body.system-refresh .page-head p{max-width:760px;margin:0;color:var(--sr-muted);font-size:13px;line-height:1.55}
body.system-refresh .eyebrow{color:var(--sr-blue);font-size:9px;font-weight:800;letter-spacing:1.3px}
body.system-refresh .card,body.system-refresh .table-wrap,body.system-refresh .searchbar,body.system-refresh .tabs{border:1px solid var(--sr-line);border-radius:16px;background:var(--sr-card);box-shadow:var(--sr-shadow)}
body.system-refresh .card{padding:22px}
body.system-refresh .section-head{gap:18px;margin-bottom:18px}
body.system-refresh .section-head h2{margin:3px 0;color:var(--sr-navy);font-size:18px;letter-spacing:-.25px}
body.system-refresh .section-head span,body.system-refresh .section-head p{color:var(--sr-muted);line-height:1.5}
body.system-refresh .btn{min-height:39px;padding:9px 15px;border-radius:10px;font-weight:700;letter-spacing:-.1px;transition:transform .15s,box-shadow .15s,background .15s}
body.system-refresh .btn:hover{transform:translateY(-1px)}
body.system-refresh .btn-primary,body.system-refresh .btn-secondary{border-color:transparent;background:linear-gradient(110deg,var(--sr-navy),var(--sr-blue));color:#fff;box-shadow:0 7px 17px rgba(20,92,128,.17)}
body.system-refresh .btn-success{border-color:transparent;background:linear-gradient(110deg,#238765,var(--sr-mint));box-shadow:0 7px 17px rgba(35,135,101,.16)}
body.system-refresh .btn-ghost,body.system-refresh .btn-soft{border:1px solid #d4e1e6;background:#fff;color:#315266;box-shadow:0 3px 10px rgba(24,60,83,.045)}
body.system-refresh .btn-sm{min-height:32px;padding:6px 11px;border-radius:8px}
body.system-refresh .searchbar{display:flex;gap:10px;margin:0 0 18px;padding:13px}
body.system-refresh .searchbar input{min-width:0;flex:1}
body.system-refresh input,body.system-refresh select,body.system-refresh textarea{border:1px solid #cedde3;border-radius:10px;background:#fff;color:var(--sr-text);transition:border .16s,box-shadow .16s,background .16s}
body.system-refresh input:not([type=checkbox]):not([type=radio]),body.system-refresh select{min-height:42px}
body.system-refresh input:focus,body.system-refresh select:focus,body.system-refresh textarea:focus{border-color:#4da9b7;box-shadow:0 0 0 4px rgba(48,169,183,.095);outline:0}
body.system-refresh .field label{display:block;margin-bottom:7px;color:#365466;font-size:11px;font-weight:750}
body.system-refresh .form-card{max-width:1180px;padding:0;overflow:hidden}
body.system-refresh .form-tabs{padding:11px 15px;border-bottom:1px solid var(--sr-line);background:#f7fafb}
body.system-refresh .form-tabs button{padding:9px 13px;border-radius:9px}
body.system-refresh .form-tabs button.active{background:#fff;color:var(--sr-blue);box-shadow:0 3px 12px rgba(18,59,93,.08)}
body.system-refresh .form-tab-panel{padding:24px}
body.system-refresh .form-actions{gap:10px;padding-top:18px;border-top:1px solid #e4ecef}
body.system-refresh .table-wrap{overflow:hidden}
body.system-refresh .table-wrap.flat{box-shadow:none;border-radius:12px}
body.system-refresh table{border-collapse:separate;border-spacing:0;width:100%}
body.system-refresh thead th{height:43px;padding:11px 14px;border-bottom:1px solid #d7e3e8;background:#f1f6f8;color:#536b78;font-size:9px;font-weight:800;letter-spacing:.65px;text-transform:uppercase}
body.system-refresh tbody td{padding:14px;border-bottom:1px solid #e7eef1;color:#3d5665;vertical-align:middle}
body.system-refresh tbody tr:last-child td{border-bottom:0}
body.system-refresh tbody tr{transition:background .14s}
body.system-refresh tbody tr:hover{background:#f7fbfc}
body.system-refresh tbody td strong{color:var(--sr-navy)}
body.system-refresh .tabs{display:flex;width:max-content;max-width:100%;gap:5px;margin-bottom:18px;padding:5px;overflow:auto;box-shadow:none}
body.system-refresh .tabs a,body.system-refresh .tabs button{border:0;border-radius:9px;padding:9px 14px;background:transparent;color:#647b88;font-weight:700}
body.system-refresh .tabs .active{background:var(--sr-navy);color:#fff;box-shadow:0 5px 13px rgba(13,54,84,.16)}
body.system-refresh .badge{padding:5px 9px;border-radius:99px;font-size:9px;font-weight:800;letter-spacing:.2px}
body.system-refresh .empty{padding:42px 24px!important;color:#7c8e98;text-align:center}
body.system-refresh .flash{border-radius:13px;padding:13px 16px;box-shadow:0 7px 20px rgba(18,59,93,.06)}
body.system-refresh .detail-hero,body.system-refresh .patient-hero{border:1px solid var(--sr-line);border-radius:18px;background:linear-gradient(120deg,#fff 68%,#eef8f8);box-shadow:var(--sr-shadow)}
body.system-refresh .action-panel .action-card,body.system-refresh .action-grid>a,body.system-refresh .action-grid>button{border-radius:12px;transition:transform .15s,border-color .15s,box-shadow .15s}
body.system-refresh .action-panel .action-card:hover,body.system-refresh .action-grid>a:hover,body.system-refresh .action-grid>button:hover{transform:translateY(-2px);border-color:#79bbc3;box-shadow:0 9px 22px rgba(18,73,100,.09)}
body.system-refresh .admin-grid>a,body.system-refresh .metric-card,body.system-refresh .kpi-card{border:1px solid var(--sr-line);border-radius:15px;background:#fff;box-shadow:var(--sr-shadow);transition:transform .16s,box-shadow .16s}
body.system-refresh .admin-grid>a:hover{transform:translateY(-2px);box-shadow:var(--sr-shadow-lg)}
body.system-refresh .drawer{border-left:1px solid var(--sr-line);box-shadow:-20px 0 55px rgba(13,54,84,.14)}
body.system-refresh .drawer-head{background:linear-gradient(135deg,#f7fbfc,#fff);border-bottom:1px solid var(--sr-line)}
body.system-refresh .drawer-actions{background:rgba(255,255,255,.92);backdrop-filter:blur(10px)}
body.system-refresh .pagination{gap:6px}.system-refresh .pagination a{border-radius:9px}
body.system-refresh .warning-box,body.system-refresh .inline-alert{border-radius:12px}
body.system-refresh .timeline-item{border-radius:12px}.system-refresh .detail-grid>div{padding:14px;border-radius:11px;background:#f7fafb}
body.system-refresh .portal-page-v025{padding-top:12px}
body.system-refresh .portal-card-v025{border-radius:22px;box-shadow:var(--sr-shadow-lg)}
body.system-refresh-login .login-brand-box{border-radius:24px!important;box-shadow:0 24px 75px rgba(13,54,84,.14)!important}
body.system-refresh-login .login-input-wrap{border-radius:12px;height:52px}
body.system-refresh-login .login-submit{border-radius:12px!important;background:linear-gradient(110deg,var(--sr-navy),var(--sr-blue))!important}
@media(max-width:1000px){body.system-refresh{--sidebar:210px}body.system-refresh .sidebar{width:210px}body.system-refresh .main{margin-left:0}body.system-refresh .content{padding:24px 20px 45px}body.system-refresh .page-head{align-items:flex-start}}
@media(max-width:760px){body.system-refresh .main{margin-left:0}body.system-refresh .topbar{height:66px;padding:0 14px}body.system-refresh .content{padding:18px 12px 38px}body.system-refresh .page-head{flex-direction:column;gap:14px}body.system-refresh .page-head .actions{width:100%;flex-wrap:wrap}body.system-refresh .card{padding:17px}body.system-refresh .form-tab-panel{padding:17px}body.system-refresh .table-wrap{overflow-x:auto;border-radius:13px}body.system-refresh table{min-width:680px}body.system-refresh .searchbar{flex-direction:column}body.system-refresh .global-search{width:100%}}
@media print{body.system-refresh .sidebar,body.system-refresh .topbar{display:none!important}body.system-refresh .main{margin:0}body.system-refresh .content{max-width:none;padding:0}body.system-refresh .card,body.system-refresh .table-wrap{box-shadow:none}}
.clinical-summary{margin-bottom:18px}.clinical-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.summary-block{border:1px solid var(--line,#d9e4ee);border-radius:12px;padding:14px;background:var(--surface-soft,#f7fafc)}.summary-block h3{margin:0 0 10px;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#66788a)}.clinical-pill{display:flex;flex-direction:column;gap:3px;padding:9px 10px;border-radius:9px;background:#fff;border-left:3px solid #2b82bd;margin-top:7px}.clinical-pill.danger{border-left-color:#c43b45;background:#fff7f7}.clinical-pill strong{font-size:.86rem}.clinical-pill small{color:var(--muted,#66788a);line-height:1.35}.clinical-summary-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}@media(max-width:1000px){.clinical-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.clinical-summary-grid{grid-template-columns:1fr}}

/* O resumo e as acoes ficam independentes do comprimento da linha do tempo. */
.clinical-workspace > .clinical-summary{grid-column:1;grid-row:1}
.clinical-workspace > .history-panel{grid-column:2;grid-row:1 / span 2}
.clinical-workspace > .action-panel{grid-column:1;grid-row:2;position:relative;top:auto}
@media(max-width:980px){
  .clinical-workspace > .clinical-summary,
  .clinical-workspace > .history-panel,
  .clinical-workspace > .action-panel{grid-column:1;grid-row:auto}
  .clinical-workspace > .action-panel{order:2}
  .clinical-workspace > .history-panel{order:3}
}
.pep-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.42fr) auto;gap:22px;align-items:center;padding:24px 26px;border:1px solid var(--sr-line,#dce7eb);border-radius:20px;background:linear-gradient(120deg,#fff 60%,#edf8f7);box-shadow:var(--sr-shadow,0 10px 30px rgba(15,54,79,.075))}.pep-hero-main{display:flex;align-items:center;gap:16px}.pep-hero-main h1{margin:4px 0;font-size:30px;color:var(--sr-navy,#0d3654)}.pep-hero-main p{margin:0;color:var(--sr-muted,#6b7e8b)}.pep-hero-owner{border-left:1px solid var(--sr-line,#dce7eb);padding-left:20px}.pep-hero-owner small,.pep-hero-owner strong,.pep-hero-owner span{display:block}.pep-hero-owner small{font-size:10px;text-transform:uppercase;color:var(--sr-muted);font-weight:800}.pep-hero-owner strong{margin:5px 0;color:var(--sr-navy)}.pep-hero-owner span{font-size:12px;color:var(--sr-muted)}.pep-hero-actions{display:flex;flex-direction:column;gap:8px}.pep-alert-strip{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.pep-alert{display:flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid #f0c5c1;border-radius:11px;background:#fff7f6;color:#a62e28}.pep-alert small,.pep-alert strong{display:block}.pep-alert small{font-size:11px;color:#9a6864;margin-top:2px}.pep-nav{position:sticky;top:76px;z-index:10;display:flex;gap:4px;overflow:auto;margin:20px 0 18px;padding:5px;border:1px solid var(--sr-line);border-radius:13px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);box-shadow:0 5px 16px rgba(15,54,79,.06)}.pep-nav a{padding:9px 14px;border-radius:9px;white-space:nowrap;color:var(--sr-muted);font-size:12px;font-weight:750}.pep-nav a:hover,.pep-nav a.active{background:var(--sr-navy);color:#fff}.pep-overview{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:18px;margin-bottom:18px}.pep-overview-main,.pep-next-card,.pep-section{border:1px solid var(--sr-line);border-radius:17px;background:#fff;box-shadow:var(--sr-shadow)}.pep-overview-main{padding:22px}.pep-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.pep-summary-grid article{display:flex;gap:10px;align-items:flex-start;padding:14px;border:1px solid #e4edf0;border-radius:13px;background:#fbfdfd}.pep-summary-grid small,.pep-summary-grid strong,.pep-summary-grid p{display:block}.pep-summary-grid small{font-size:10px;text-transform:uppercase;color:var(--sr-muted);font-weight:800}.pep-summary-grid strong{font-size:22px;color:var(--sr-navy);margin:2px 0}.pep-summary-grid p{margin:0;color:var(--sr-muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:145px}.pep-summary-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;flex:none;background:#e7f2f8;color:#197399}.pep-summary-icon.danger{background:#fff0ef;color:#b63730}.pep-summary-icon.teal{background:#e4f6f3;color:#1c8d7d}.pep-summary-icon.amber{background:#fff5df;color:#aa7418}.pep-next-card{padding:20px;height:max-content}.pep-next-card h3{margin:5px 0 14px;color:var(--sr-navy)}.pep-next-card a{display:flex;align-items:center;gap:8px;padding:11px 0;border-top:1px solid #e7eef1;color:#365466;font-size:12px;font-weight:700}.pep-next-card a:hover{color:var(--sr-blue)}.pep-section{padding:22px;margin-bottom:18px;scroll-margin-top:145px}.pep-section .section-head{margin-bottom:14px}.pep-section h2{color:var(--sr-navy)}.pep-timeline-row{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:13px;align-items:center;padding:13px 0;border-top:1px solid #e7eef1}.pep-timeline-dot{width:10px;height:10px;border-radius:50%;background:var(--sr-cyan);box-shadow:0 0 0 4px #e4f5f4}.pep-timeline-row small,.pep-timeline-row strong,.pep-timeline-row p{display:block}.pep-timeline-row small{font-size:10px;color:var(--sr-muted)}.pep-timeline-row strong{margin:3px 0;color:var(--sr-navy)}.pep-timeline-row p{margin:0;font-size:12px;color:var(--sr-muted)}.pep-record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pep-record-list{display:flex;flex-direction:column}.pep-record{display:flex;align-items:center;gap:11px;padding:12px 0;border-top:1px solid #e7eef1;min-width:0}.pep-record>div{min-width:0;flex:1}.pep-record strong,.pep-record small{display:block}.pep-record strong{color:var(--sr-navy);font-size:13px}.pep-record small{color:var(--sr-muted);font-size:11px;margin-top:3px}.pep-record-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#e7f2f8;color:#197399;flex:none}.pep-record-icon.teal{background:#e4f6f3;color:#1c8d7d}.pep-record-icon.done{background:#eef2f3;color:#7b8a92}.pep-two-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.pep-add{position:relative}.pep-add summary{cursor:pointer;color:var(--sr-blue);font-size:12px;font-weight:800;list-style:none}.pep-add summary::-webkit-details-marker{display:none}.pep-add form{position:absolute;right:0;top:28px;z-index:4;width:300px;padding:14px;border:1px solid var(--sr-line);border-radius:12px;background:#fff;box-shadow:0 14px 32px rgba(15,54,79,.14);display:grid;gap:8px}.pep-add input,.pep-add select{width:100%;min-height:36px;padding:7px 9px;border:1px solid #cedde3;border-radius:8px}.pep-safety-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.pep-safety-grid h3{font-size:13px;color:var(--sr-navy);margin:0 0 9px}.pep-safety-item{padding:10px 11px;border-left:3px solid var(--sr-cyan);border-radius:8px;background:#f6fbfb;margin-top:7px}.pep-safety-item.danger{border-left-color:#c43b45;background:#fff6f5}.pep-safety-item.warning{border-left-color:#d19a30;background:#fffaf0}.pep-safety-item strong,.pep-safety-item small{display:block}.pep-safety-item small{font-size:11px;color:var(--sr-muted);margin-top:3px}.pep-empty{padding:22px 0;text-align:center;color:var(--sr-muted);font-size:12px}.pep-hero .identity-meta{margin-top:9px}@media(max-width:1100px){.pep-hero{grid-template-columns:1fr auto}.pep-hero-owner{grid-column:1;padding-left:0;border-left:0}.pep-hero-actions{grid-column:2;grid-row:1 / span 2}.pep-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pep-overview{grid-template-columns:1fr}.pep-next-card{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.pep-next-card .eyebrow,.pep-next-card h3{grid-column:1/-1}}@media(max-width:700px){.pep-hero{display:block;padding:18px}.pep-hero-main{align-items:flex-start}.pep-hero-actions{margin-top:15px;flex-direction:row}.pep-nav{top:66px}.pep-summary-grid,.pep-record-grid,.pep-two-column,.pep-safety-grid{grid-template-columns:1fr}.pep-next-card{display:block}.pep-next-card a{padding:10px 0}.pep-timeline-row{grid-template-columns:10px minmax(0,1fr)}.pep-timeline-row .btn{grid-column:2;justify-self:start}.pep-add form{position:fixed;left:12px;right:12px;top:30%;width:auto}}
.diagnostic-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px}.diagnostic-shortcuts a{display:grid;grid-template-columns:34px 1fr;column-gap:10px;align-items:center;padding:14px 16px;border:1px solid var(--sr-line);border-radius:14px;background:#fff;box-shadow:var(--sr-shadow);color:var(--sr-navy)}.diagnostic-shortcuts a:hover{border-color:#68b8bd;transform:translateY(-1px)}.diagnostic-shortcuts a>span{grid-row:1/3;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#e7f4f4;color:var(--sr-blue)}.diagnostic-shortcuts strong,.diagnostic-shortcuts small{display:block}.diagnostic-shortcuts strong{font-size:13px}.diagnostic-shortcuts small{font-size:10px;color:var(--sr-muted);margin-top:2px}.diagnostic-card{padding:22px;border:1px solid var(--sr-line);border-radius:17px;background:#fff;box-shadow:var(--sr-shadow);margin-bottom:18px;scroll-margin-top:140px}.diagnostic-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}.diagnostic-card-head h2{margin:4px 0;color:var(--sr-navy)}.diagnostic-card-head p{margin:0;color:var(--sr-muted);font-size:12px}.diagnostic-kicker,.diagnostic-count{color:var(--sr-muted);font-size:11px}.diagnostic-kicker strong{color:var(--sr-navy)}.diagnostic-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:17px;border:1px solid #e3edf0;border-radius:13px;background:#f8fbfc}.diagnostic-field{display:flex;flex-direction:column;gap:6px}.diagnostic-field.wide{grid-column:span 2}.diagnostic-field label{font-size:11px;font-weight:800;color:#365466}.diagnostic-field label span{font-weight:500;color:var(--sr-muted)}.diagnostic-field input,.diagnostic-field select,.diagnostic-field textarea{width:100%;min-height:40px;padding:9px 11px;border:1px solid #cedde3;border-radius:9px;background:#fff}.diagnostic-field textarea{resize:vertical}.diagnostic-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;padding-top:4px}.diagnostic-request-list,.diagnostic-result-list{display:flex;flex-direction:column;gap:10px}.diagnostic-request-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(280px,.8fr);gap:18px;align-items:center;padding:16px;border:1px solid #e2ecef;border-radius:13px;background:#fbfdfd}.diagnostic-request-row:hover,.diagnostic-result-row:hover{border-color:#a9ced3;background:#fff}.diagnostic-request-main{display:flex;align-items:center;gap:14px;min-width:0}.diagnostic-date{display:flex;flex-direction:column;min-width:78px;font-size:12px;color:var(--sr-navy);font-weight:750}.diagnostic-date small{font-size:10px;color:var(--sr-muted);margin-top:2px}.diagnostic-request-main strong,.diagnostic-request-main small{display:block}.diagnostic-request-main strong{color:var(--sr-navy);font-size:13px}.diagnostic-request-main small{color:var(--sr-muted);font-size:11px;margin-top:4px}.diagnostic-status-form{display:grid;grid-template-columns:1fr auto;gap:7px}.diagnostic-status-form label{grid-column:1/-1;display:flex;flex-direction:column;gap:4px}.diagnostic-status-form label span{font-size:9px;text-transform:uppercase;letter-spacing:.5px;color:var(--sr-muted);font-weight:800}.diagnostic-status-form select,.diagnostic-status-form input{min-height:36px;padding:7px 9px;border:1px solid #cedde3;border-radius:8px;background:#fff}.diagnostic-status-form .btn{align-self:end}.diagnostic-closed{font-size:11px;color:var(--sr-muted);white-space:nowrap}.diagnostic-empty{padding:32px;text-align:center;color:var(--sr-muted);font-size:12px;border:1px dashed #d7e4e7;border-radius:12px}.diagnostic-result-row{padding:16px;border:1px solid #e2ecef;border-radius:13px;background:#fbfdfd}.diagnostic-result-head{display:flex;align-items:center;gap:8px}.diagnostic-result-head>div{display:flex;align-items:center;gap:11px;min-width:0;flex:1}.diagnostic-result-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#e7f2f8;color:var(--sr-blue);flex:none}.diagnostic-result-head strong,.diagnostic-result-head small{display:block}.diagnostic-result-head strong{color:var(--sr-navy);font-size:14px}.diagnostic-result-head small{color:var(--sr-muted);font-size:11px;margin-top:3px}.diagnostic-result-content{margin:13px 0 0 45px;padding:11px 13px;border-left:3px solid #d9e9ed;background:#f8fbfc;border-radius:0 8px 8px 0}.diagnostic-result-content p{margin:0;color:#365466;font-size:12px;white-space:pre-wrap}.diagnostic-result-content small{display:block;color:var(--sr-muted);font-size:11px;margin-top:7px}.diagnostic-result-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 0 45px;padding-top:13px;border-top:1px solid #e7eef1}.diagnostic-inline-action,.diagnostic-upload{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.diagnostic-inline-action input{min-height:34px;padding:7px 9px;border:1px solid #cedde3;border-radius:8px}.file-trigger{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:7px 10px;border:1px dashed #9fc4ca;border-radius:8px;background:#f7fbfb;color:#287785;font-size:11px;font-weight:750;cursor:pointer}.file-trigger input{display:none}.diagnostic-attachments{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0 0 45px;padding-top:12px;border-top:1px solid #e7eef1;font-size:11px}.diagnostic-attachments strong{display:flex;align-items:center;gap:4px;color:var(--sr-navy);margin-right:4px}.diagnostic-attachments a{padding:6px 8px;border-radius:7px;background:#eef7f7;color:#267783}.diagnostic-attachments a small{margin-left:4px;color:var(--sr-muted)}.diagnostic-no-attachment{margin:12px 0 0 45px;color:var(--sr-muted);font-size:10px}
@media(max-width:900px){.diagnostic-shortcuts{grid-template-columns:1fr}.diagnostic-form{grid-template-columns:repeat(2,minmax(0,1fr))}.diagnostic-field.wide{grid-column:1/-1}.diagnostic-request-row{grid-template-columns:1fr auto}.diagnostic-status-form{grid-column:1/-1}.diagnostic-closed{grid-column:1/-1}}@media(max-width:620px){.diagnostic-card{padding:16px}.diagnostic-card-head{flex-direction:column;gap:7px}.diagnostic-form{display:flex;flex-direction:column}.diagnostic-form-actions{justify-content:stretch}.diagnostic-form-actions .btn{width:100%}.diagnostic-request-row{display:flex;flex-direction:column;align-items:stretch;gap:11px}.diagnostic-status-form{display:flex;flex-direction:column}.diagnostic-result-head{align-items:flex-start;flex-wrap:wrap}.diagnostic-result-content,.diagnostic-result-actions,.diagnostic-attachments,.diagnostic-no-attachment{margin-left:0}.diagnostic-result-actions{flex-direction:column;align-items:stretch}.diagnostic-inline-action,.diagnostic-upload{align-items:stretch;flex-direction:column}.diagnostic-inline-action input,.diagnostic-inline-action .btn,.diagnostic-upload .btn,.file-trigger{width:100%}}
.diagnostic-result-upload{grid-column:1/-1;margin-top:10px;padding:13px 14px;border:1px solid #bfe0df;border-radius:11px;background:#f1fbfa}.diagnostic-result-upload strong,.diagnostic-result-upload small{display:block}.diagnostic-result-upload strong{font-size:12px;color:#176d6a}.diagnostic-result-upload small{font-size:10px;color:var(--sr-muted);margin:3px 0 9px}.diagnostic-result-upload form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.diagnostic-result-upload .diagnostic-attachments{margin:8px 0 0;padding-top:8px;border-top:1px solid #d8eceb}.diagnostic-result-upload .diagnostic-attachments a{font-size:11px}
.flash{display:flex;align-items:center;min-height:48px;padding:13px 18px 13px 54px!important;line-height:1.45;position:relative;overflow-wrap:anywhere}.flash::before{left:17px!important;top:50%!important;transform:translateY(-50%)!important;flex:none}.flash-ok,.flash-error{box-sizing:border-box}
.fiscal-connection-banner{display:flex;align-items:center;gap:16px;padding:20px 22px;border:1px solid #bedfe5;border-radius:17px;background:linear-gradient(110deg,#effafb,#fff);box-shadow:var(--sr-shadow)}.fiscal-ipm-mark{width:58px;height:58px;border-radius:15px;display:grid;place-items:center;background:#0d5576;color:#fff;font-weight:900;letter-spacing:1px}.fiscal-connection-banner h2{margin:3px 0;color:var(--sr-navy)}.fiscal-connection-banner p{margin:0;color:var(--sr-muted);font-size:12px;max-width:700px}.fiscal-connection-banner>.badge{margin-left:auto}.fiscal-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:12px;margin:18px 0}.fiscal-flow>div{display:grid;grid-template-columns:30px 1fr;column-gap:9px;align-items:center;padding:13px;border:1px solid var(--sr-line);border-radius:12px;background:#fff}.fiscal-flow b{grid-row:1/3;width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#e6f4f5;color:var(--sr-blue)}.fiscal-flow strong,.fiscal-flow small{display:block}.fiscal-flow strong{font-size:12px;color:var(--sr-navy)}.fiscal-flow small{font-size:10px;color:var(--sr-muted);margin-top:2px}.fiscal-flow>span{color:#83aab3;font-size:20px;text-align:center}.fiscal-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px}.fiscal-ipm-form{display:flex;flex-direction:column;gap:14px}.fiscal-section,.fiscal-side-card{padding:21px;border:1px solid var(--sr-line);border-radius:16px;background:#fff;box-shadow:var(--sr-shadow)}.fiscal-section-title{display:flex;gap:12px;align-items:flex-start;margin-bottom:17px}.fiscal-section-title>span{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#e6f4f5;color:var(--sr-blue);font-size:10px;font-weight:900}.fiscal-section-title h2{margin:1px 0 3px;color:var(--sr-navy);font-size:17px}.fiscal-section-title p{margin:0;color:var(--sr-muted);font-size:11px}.fiscal-help{padding:11px 13px;border-radius:9px;background:#f2f8fb;color:#527080;font-size:11px}.fiscal-activation{display:flex;align-items:center;justify-content:space-between;gap:12px}.fiscal-side{display:flex;flex-direction:column;gap:14px}.fiscal-side-card h3{margin:4px 0 10px;color:var(--sr-navy)}.fiscal-side-card p,.fiscal-side-card li{font-size:11px;color:var(--sr-muted);line-height:1.55}.fiscal-side-card ul{padding-left:18px;margin:0 0 14px}.fiscal-side-card li+li{margin-top:7px}.fiscal-side-card .btn{width:100%}
@media(max-width:900px){.fiscal-layout{grid-template-columns:1fr}.fiscal-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.fiscal-connection-banner{align-items:flex-start;flex-wrap:wrap}.fiscal-connection-banner>.badge{margin-left:0}.fiscal-flow{display:flex;flex-direction:column;align-items:stretch}.fiscal-flow>span{transform:rotate(90deg)}.fiscal-side{display:flex}.fiscal-activation{align-items:stretch;flex-direction:column}}
/* Global platform administration */
.topbar-platform-admin{width:34px;height:34px;display:grid;place-items:center;border:1px solid #d7e4e7;border-radius:9px;background:#f7fbfb;color:var(--sr-navy);transition:background .16s,color .16s,transform .16s}
.topbar-platform-admin:hover{background:#e8f5f4;color:var(--sr-blue);transform:rotate(20deg)}
.platform-admin-page{max-width:1180px;margin:0 auto;padding-bottom:40px}.platform-admin-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:20px}.platform-admin-head h1{margin:5px 0;color:var(--sr-navy);font-size:30px}.platform-admin-head p{margin:0;color:var(--sr-muted);font-size:13px}.platform-stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.platform-stat-row>div{padding:15px 17px;border:1px solid var(--sr-line);border-radius:14px;background:linear-gradient(135deg,#fff,#f6fbfc);box-shadow:var(--sr-shadow)}.platform-stat-row span,.platform-stat-row strong{display:block}.platform-stat-row span{font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:var(--sr-muted);font-weight:800}.platform-stat-row strong{margin-top:5px;font-size:24px;color:var(--sr-navy)}.platform-admin-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:16px;margin-bottom:18px}.platform-card{border:1px solid var(--sr-line);border-radius:17px;background:#fff;box-shadow:var(--sr-shadow)}.platform-form-card{padding:21px}.platform-card-head{display:flex;align-items:flex-start;gap:11px;margin-bottom:17px}.platform-card-head h2{margin:2px 0 4px;color:var(--sr-navy);font-size:18px}.platform-card-head p{margin:0;color:var(--sr-muted);font-size:11px}.platform-step{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e8f2f8;color:#197399;font-size:10px;font-weight:900;flex:none}.platform-step.teal{background:#e5f6f3;color:#198c7b}.platform-form{display:flex;flex-direction:column;gap:12px}.platform-form label{display:flex;flex-direction:column;gap:6px;color:#365466;font-size:11px;font-weight:800}.platform-form input,.platform-form select{width:100%;min-height:40px;padding:9px 11px;border:1px solid #cfdee4;border-radius:9px;background:#fbfdfd;color:var(--sr-text);font:inherit;font-weight:500}.platform-form input:focus,.platform-form select:focus{outline:3px solid rgba(48,169,183,.15);border-color:#4eabb5}.platform-form button{align-self:flex-start;margin-top:2px}.platform-form button span{margin-left:8px}.platform-form-split{display:grid;grid-template-columns:1fr 1fr;gap:10px}.platform-list-card{padding:21px;margin-bottom:18px}.platform-list-card>.platform-card-head{justify-content:space-between}.platform-list-count{padding:6px 9px;border-radius:8px;background:#f0f6f7;color:#527080;font-size:10px;font-weight:800;white-space:nowrap}.platform-company-list,.platform-access-list{display:flex;flex-direction:column;border-top:1px solid #e5eef1}.platform-company-list article,.platform-access-list article{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #e5eef1}.platform-company-logo,.platform-user-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#e6f2f8;color:#167297;font-weight:900}.platform-company-logo.med{background:#e8f7f2;color:#188b78}.platform-company-list article>div:nth-child(2),.platform-user-main{flex:1;min-width:0}.platform-company-list strong,.platform-company-list small,.platform-user-main strong,.platform-user-main small{display:block}.platform-company-list strong,.platform-user-main strong{color:var(--sr-navy);font-size:12px}.platform-company-list small,.platform-user-main small{color:var(--sr-muted);font-size:10px;margin-top:3px}.platform-access-list article{gap:13px}.platform-user-portals{display:flex;gap:5px;margin-left:auto}.portal-chip{padding:5px 8px;border-radius:7px;background:#eaf3f8;color:#25718c;font-size:10px;font-weight:800}.portal-chip.med{background:#e8f7f3;color:#208272}.status-pill{padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800}.status-pill.success{background:#e7f6ee;color:#198653}.legacy-badge{display:inline-block;margin-left:7px;padding:3px 6px;border-radius:5px;background:#fff4df;color:#9b701f;font-size:9px;font-weight:700;vertical-align:middle}@media(max-width:800px){.platform-admin-grid{grid-template-columns:1fr}.platform-form-split{grid-template-columns:1fr}}@media(max-width:560px){.platform-admin-head{display:block}.platform-admin-head .btn{display:inline-flex;margin-top:14px}.platform-stat-row{grid-template-columns:1fr}.platform-company-list article,.platform-access-list article{align-items:flex-start;flex-wrap:wrap}.platform-user-portals{margin-left:49px}.platform-access-list .status-pill{margin-left:auto}}
.platform-form-help{margin-top:-5px;color:var(--sr-muted);font-size:10px;font-weight:500}
/* Interface compacta: remove textos auxiliares repetitivos sem ocultar avisos, placeholders ou estados vazios. */
body.system-refresh .page-head>div>p,
body.system-refresh .section-head>div>p,
body.system-refresh .section-head>div>span:not(.eyebrow),
body.system-refresh .admin-card p,
body.system-refresh .quick-start>p,
body.system-refresh .field-help,
body.system-refresh .help-text,
body.system-refresh .metric-card em,
body.system-refresh .stay-action-card small{display:none!important}

/* Barra lateral: rolagem discreta, integrada ao fundo e sem o trilho branco padrão. */
body.system-refresh .sidebar .nav{
  scrollbar-width:thin;
  scrollbar-color:rgba(190,224,232,.42) transparent;
  scrollbar-gutter:stable;
  padding-right:4px;
}
body.system-refresh .sidebar .nav::-webkit-scrollbar{width:7px}
body.system-refresh .sidebar .nav::-webkit-scrollbar-track{background:transparent;border-radius:99px}
body.system-refresh .sidebar .nav::-webkit-scrollbar-thumb{background:rgba(190,224,232,.34);border:2px solid transparent;border-radius:99px;background-clip:padding-box;transition:background .18s ease}
body.system-refresh .sidebar .nav:hover::-webkit-scrollbar-thumb{background:rgba(211,238,242,.68);border-width:1px}
body.system-refresh .sidebar .nav::-webkit-scrollbar-button{display:none;width:0;height:0}
.table-actions{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.agenda-filter-card{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 16px;border:1px solid var(--sr-line);border-radius:15px;background:#fff;box-shadow:var(--sr-shadow);margin-bottom:12px}.agenda-view-tabs{display:flex;gap:4px;padding:4px;border-radius:10px;background:#f1f6f8}.agenda-view-tabs a{padding:8px 13px;border-radius:8px;color:var(--sr-muted);font-size:12px;font-weight:800}.agenda-view-tabs a.active{background:var(--sr-navy);color:#fff}.agenda-range-form,.agenda-day-form{display:flex;align-items:center;gap:7px}.agenda-range-form{margin-left:auto}.agenda-range-form label{font-size:10px;color:var(--sr-muted);font-weight:800}.agenda-range-form input,.agenda-day-form input{min-height:38px;padding:7px 9px;border:1px solid #cedde3;border-radius:8px}.agenda-range-form span{font-size:11px;color:var(--sr-muted)}.agenda-period-label{margin:0 0 12px;color:var(--sr-muted);font-size:12px;font-weight:750}
.bi-overview{margin-top:18px;padding:20px;border:1px solid var(--sr-line);border-radius:17px;background:linear-gradient(135deg,#fff,#f5fbfb);box-shadow:var(--sr-shadow)}.bi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.bi-grid article{padding:14px;border:1px solid #e2edef;border-radius:12px;background:#fff}.bi-grid small,.bi-grid strong,.bi-grid span{display:block}.bi-grid small{text-transform:uppercase;letter-spacing:.5px;font-size:10px;color:var(--sr-muted);font-weight:800}.bi-grid strong{margin:5px 0 2px;color:var(--sr-navy);font-size:23px}.bi-grid span{font-size:10px;color:var(--sr-muted)}
@media(max-width:760px){.agenda-range-form{margin-left:0;width:100%;flex-wrap:wrap}.agenda-range-form input{flex:1;min-width:120px}.bi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
body.system-refresh .stay-form-shell .field:has([name="diet"]),body.system-refresh form.form-card .field:has([name="diet"]),body.system-refresh form.form-card .field:has([name="notes"]),body.system-refresh form.form-card .field:has([name="vital_notes"]),body.system-refresh form.form-card .field:has([name="admission_evolution"]){display:none!important}

/* Cadastro humano: fluxo em blocos, com hierarquia visual e pouca fricção. */
.human-form-page{max-width:1080px;margin:0 auto;padding-bottom:44px}.human-form-page .back-link{display:inline-flex;margin:4px 0 16px;color:var(--sr-blue);font-size:12px;font-weight:750}.human-form-hero{display:flex;align-items:center;gap:15px;padding:21px 24px;margin-bottom:18px;border:1px solid var(--sr-line);border-radius:18px;background:linear-gradient(120deg,#fff 60%,#eef8f8);box-shadow:var(--sr-shadow)}.human-form-avatar{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#e1f3f2;color:#127d80;font-size:21px;font-weight:850;flex:none}.human-form-hero h1{margin:4px 0 2px;color:var(--sr-navy);font-size:29px}.human-form-hero p{margin:0;color:var(--sr-muted);font-size:12px}.human-form{display:flex;flex-direction:column;gap:14px}.human-form-card{padding:21px 23px;border:1px solid var(--sr-line);border-radius:17px;background:#fff;box-shadow:var(--sr-shadow)}.human-section-head{display:flex;align-items:flex-start;gap:11px;margin-bottom:17px}.human-section-head>span{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#e8f3f8;color:#197399;font-size:10px;font-weight:900}.human-section-head h2{margin:2px 0;color:var(--sr-navy);font-size:17px}.human-section-head p{margin:0;color:var(--sr-muted);font-size:11px}.human-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}.human-form-grid .field.full{grid-column:1/-1}.human-form-grid textarea{resize:vertical}.human-form-actions{display:flex;justify-content:flex-end;gap:10px;padding:2px 2px 0}.human-form-actions .btn{min-height:42px}.insurance-admin-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:15px}.insurance-submit{display:flex;align-items:flex-end}.insurance-count{margin-left:auto;padding:6px 9px;border-radius:8px;background:#eef6f7;color:var(--sr-muted);font-size:11px}.insurance-list{display:flex;flex-direction:column;border-top:1px solid #e6eef0}.insurance-row{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid #e6eef0}.insurance-row>div:nth-child(2){flex:1;min-width:0}.insurance-row strong,.insurance-row small{display:block}.insurance-row strong{color:var(--sr-navy);font-size:13px}.insurance-row small{margin-top:3px;color:var(--sr-muted);font-size:10px}.insurance-mark{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:#e7f4f5;color:#167b83;font-weight:850}.insurance-row form{margin-left:auto}.status-pill{border:0;cursor:pointer}.status-pill.muted{background:#f0f2f3;color:#71818a}.empty{padding:28px;text-align:center;color:var(--sr-muted);font-size:12px}
@media(max-width:820px){.insurance-admin-grid{grid-template-columns:1fr}}@media(max-width:620px){.human-form-hero{padding:17px}.human-form-hero h1{font-size:24px}.human-form-card{padding:17px}.human-form-grid{grid-template-columns:1fr}.human-form-grid .field.full{grid-column:auto}.human-form-actions{justify-content:stretch}.human-form-actions .btn{flex:1}.insurance-submit{align-items:stretch}.insurance-submit .btn{width:100%}}
/* Cadastro MED/VET: dimensões e alinhamento equivalentes em todos os blocos. */
.human-form-page,.human-form{width:100%;max-width:100%;min-width:0}.human-form-card{min-width:0;overflow:hidden}.human-form-grid>.field{min-width:0;width:100%}.human-form-grid .field input,.human-form-grid .field select,.human-form-grid .field textarea{width:100%;max-width:100%;min-width:0;min-height:40px}.human-form-actions{min-width:0;flex-wrap:wrap}.human-form-actions .btn{white-space:nowrap}
@media(max-width:768px){.human-form-card{padding:17px 15px}.human-form-actions{align-items:stretch}.human-form-actions .btn{width:100%;flex:1 1 100%}}
