/* LSR · Dashboards por grupo (operacional, médico, administrativo).
   Não altera permissões nem a semântica financeira do backend. */
#operationalDashboard,#medicalDashboardV2{display:none}
body[data-dashboard-group="operacional"] #view-dashboard>*:not(#operationalDashboard){display:none!important}
body[data-dashboard-group="operacional"] #view-dashboard>#operationalDashboard{display:block!important}
body[data-role="medico"][data-dashboard-group="medico"] #view-dashboard>#medicalDashboardV2{display:block!important}
body[data-role="medico"][data-dashboard-group="medico"] #view-dashboard>#medicalDashboard{display:none!important}
body[data-dashboard-group="admin"] #view-dashboard>#operationalDashboard,
body[data-dashboard-group="admin"] #view-dashboard>#medicalDashboardV2{display:none!important}
#operationalDashboard,#medicalDashboardV2{width:100%;min-width:0;--dash-ink:#173f34;--dash-green:#0d7357;--dash-muted:#677f72;--dash-gold:#cda767;color:var(--dash-ink)}
#operationalDashboard button,#medicalDashboardV2 button{font-family:inherit;cursor:pointer}
#operationalDashboard button:disabled,#medicalDashboardV2 button:disabled{opacity:.49;cursor:not-allowed}
#operationalDashboard button:focus-visible,#medicalDashboardV2 button:focus-visible,#medicalDashboardV2 select:focus-visible{outline:3px solid #b99a64;outline-offset:3px}
.lsr-home-eyebrow,.lsr-med-eyebrow{color:#86734f;font-size:10px;font-weight:850;letter-spacing:.15em;text-transform:uppercase}
.lsr-home-head{display:flex;gap:20px;align-items:center;justify-content:space-between;margin:2px 0 24px}
.lsr-home-head h3{font-size:clamp(27px,3.1vw,39px);font-weight:850;letter-spacing:-.045em;color:#173c30;line-height:1.08;margin:9px 0 11px}
.lsr-home-head p{margin:0;font-size:13px;color:#6e8376;max-width:665px;line-height:1.65}
.lsr-home-head-tag{white-space:nowrap;background:#e8f5ed;color:#0c7151;border:1px solid #cde8d7;border-radius:999px;padding:11px 17px;font-size:11px;font-weight:850}
.lsr-home-head-dot{display:inline-block;background:#0e986b;width:8px;height:8px;border-radius:50%;box-shadow:0 0 0 4px #cdeedd;margin-right:9px}
.lsr-home-panel{background:linear-gradient(180deg,#fff,#fcfefd);border:1px solid #dfece5;border-radius:23px;box-shadow:0 12px 36px rgba(22,73,52,.055);padding:24px;min-width:0}
.lsr-home-panel-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:21px}
.lsr-home-panel-top h4,.lsr-home-aside h4{font-size:22px;line-height:1.25;font-weight:850;letter-spacing:-.028em;color:#1b4335;margin:7px 0 6px}
.lsr-home-panel-top p{font-size:12px;color:#788d80;line-height:1.55;margin:0}
.lsr-home-seal{color:#a17d42;background:#fcf6ea;border:1px solid #f1e2c1;font-size:10px;font-weight:850;border-radius:10px;padding:9px 12px;white-space:nowrap}
.lsr-home-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.lsr-home-stage{position:relative;min-height:160px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;border:1px solid #dce8e1;border-radius:18px;padding:16px;background:#f7faf8;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;overflow:hidden}
.lsr-home-stage:hover:not(:disabled){transform:translateY(-3px);border-color:#95c4af;box-shadow:0 12px 25px rgba(25,99,62,.09)}
.lsr-home-stage.is-active{border:1px solid #83bd9d;background:linear-gradient(155deg,#ebf8ef,#fff);box-shadow:inset 0 0 0 1px rgba(16,117,80,.12)}
.lsr-home-num{font-size:13px;font-weight:900;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;color:#567363;background:#e5eee9}
.lsr-home-stage.is-active .lsr-home-num{color:#fff;background:#0c805a}
.lsr-home-stage strong{font-size:15px;color:#1c4536;line-height:1.2}
.lsr-home-stage small{font-size:11px;color:#789283;line-height:1.35}
.lsr-home-arrow{position:absolute;right:14px;top:19px;font-size:16px;color:#809d8c}
.lsr-home-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.lsr-home-stat{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:5px;background:#fff;border:1px solid #dfe9e2;border-radius:20px;min-height:158px;padding:19px;transition:transform .18s,border-color .18s}
.lsr-home-stat:hover:not(:disabled){transform:translateY(-2px);border-color:#adcbb9}
.lsr-home-stat.priority{background:linear-gradient(145deg,#114c3d,#0e7052);border-color:#13654d}
.lsr-home-stat-icon{display:grid;place-items:center;border-radius:10px;width:29px;height:29px;font-size:14px;color:#278466;background:#eef6f1;margin-bottom:5px}
.lsr-home-stat span:not(.lsr-home-stat-icon){font-size:11px;font-weight:800;color:#677d70}
.lsr-home-stat strong{font-size:27px;font-weight:900;color:#194937;letter-spacing:-.04em;line-height:1.1;margin-top:2px}
.lsr-home-stat small{font-size:10px;color:#92a298;line-height:1.5;margin-top:auto}
.lsr-home-stat.priority span,.lsr-home-stat.priority strong,.lsr-home-stat.priority small{color:#fff}
.lsr-home-stat.priority .lsr-home-stat-icon{background:rgba(255,255,255,.15);color:#f7dfac}
.lsr-home-ops-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.92fr);gap:16px}
.lsr-home-text-btn{background:none;border:0;font-size:11px;color:#08734f;font-weight:850;white-space:nowrap;padding:8px}
.lsr-home-queue-list{display:grid;gap:9px;min-height:120px}
.lsr-home-batch{width:100%;display:grid;grid-template-columns:9px minmax(0,1fr) auto 10px;align-items:center;gap:13px;text-align:left;border:1px solid #ebf0ec;border-radius:14px;background:#fafcfb;padding:13px;transition:background .17s}
.lsr-home-batch:hover{background:#eaf5ef}
.lsr-home-batch-dot{width:8px;height:8px;border-radius:50%;background:#d2a65c}
.lsr-home-batch-body{min-width:0}
.lsr-home-batch-body strong,.lsr-home-batch-body small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lsr-home-batch-body strong{font-size:12px;color:#234837}
.lsr-home-batch-body small{font-size:10px;color:#839589;margin-top:5px}
.lsr-home-batch em{font-size:10px;font-style:normal;font-weight:800;color:#9b7a3e;background:#fbf2df;border-radius:999px;padding:6px 9px;white-space:nowrap}
.lsr-home-placeholder,.lsr-home-queue-empty{padding:32px 20px;text-align:center;color:#83968c;font-size:12px}
.lsr-home-queue-empty span{width:38px;height:38px;display:grid;place-items:center;margin:0 auto 10px;border-radius:50%;background:#e6f5ea;color:#137b58;font-size:19px}
.lsr-home-queue-empty strong{display:block;color:#285840;font-size:13px}
.lsr-home-queue-empty p{color:#81988b;margin:6px 0 0;font-size:11px}
.lsr-home-queue-empty.error{background:#fffaf0;border-radius:12px}
.lsr-home-queue-empty.error button{margin-top:10px;border:1px solid #d9c496;background:#fff;padding:8px 10px;border-radius:8px;color:#88683b}
.lsr-home-tips{display:grid;gap:12px;margin:23px 0}
.lsr-home-tips>div{display:flex;align-items:flex-start;gap:12px}
.lsr-home-tips b{width:32px;height:32px;display:grid;place-items:center;background:#eff4ef;color:#32836a;border-radius:11px;font-size:10px}
.lsr-home-tips p{margin:0;display:grid;gap:4px}
.lsr-home-tips strong{font-size:12px;color:#284e3f}
.lsr-home-tips span{font-size:11px;color:#7b9383;line-height:1.5}
.lsr-home-aside-foot{font-size:11px;color:#906b38;background:#fcf6e9;border:1px solid #f0e5c9;border-radius:12px;padding:12px;line-height:1.5}
.lsr-med-hero{min-height:275px;position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(220px,.75fr);border:1px solid #1f6652;border-radius:26px;background:radial-gradient(circle at 88% 20%,rgba(202,160,89,.14),transparent 24%),radial-gradient(circle at 20% 98%,rgba(18,165,122,.19),transparent 43%),linear-gradient(135deg,#0e302d,#104a3f 70%,#0d5d46);box-shadow:0 22px 55px rgba(15,73,51,.15);padding:35px 36px;color:white;margin-bottom:17px}
.lsr-med-hero-copy{position:relative;z-index:2}
.lsr-med-hero .lsr-med-eyebrow{color:#d9b978}
.lsr-med-hero h3{font-size:clamp(30px,3.4vw,45px);line-height:1.1;color:#fff;font-weight:870;letter-spacing:-.046em;margin:16px 0 13px;max-width:570px}
.lsr-med-hero h3 em{font-style:normal;color:#e5c58a}
.lsr-med-hero p{font-size:12px;line-height:1.75;max-width:515px;color:#b6d8c9;margin:0}
.lsr-med-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}
.lsr-med-btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;border-radius:12px;padding:12px 16px;font-size:12px;font-weight:850;transition:transform .18s}
.lsr-med-btn:hover{transform:translateY(-2px)}
.lsr-med-btn.main{border:1px solid #e3c589;color:#17392e;background:#e4c38a}
.lsr-med-btn.outline{border:1px solid rgba(255,255,255,.25);color:#fff;background:rgba(255,255,255,.07)}
.lsr-med-hero-art{position:relative;display:grid;place-items:center;min-height:210px}
.lsr-med-orbit{position:absolute;aspect-ratio:1;border-radius:50%;border:1px solid rgba(255,255,255,.14)}
.lsr-med-orbit.one{width:190px;box-shadow:0 0 0 22px rgba(255,255,255,.02)}
.lsr-med-orbit.two{width:250px;border-color:rgba(222,184,118,.17)}
.lsr-med-art-logo{font-size:49px;letter-spacing:-.095em;font-weight:1000;color:#fff;text-align:center;line-height:.95;text-shadow:0 12px 30px rgba(0,0,0,.15)}
.lsr-med-art-logo span{display:block;color:#dfb978;font-size:10px;letter-spacing:.39em;margin-top:13px}
.lsr-med-art-chip{position:absolute;right:3%;bottom:16%;background:#f6f6ef;color:#36614c;font-size:10px;border-radius:999px;padding:10px 15px;font-weight:850;box-shadow:0 10px 25px rgba(0,0,0,.12)}
.lsr-med-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 21px;background:#fff;border:1px solid #deebe3;border-radius:17px;margin:0 0 14px}
.lsr-med-toolbar strong{display:block;font-size:17px;color:#204335;margin:5px 0}
.lsr-med-toolbar p{font-size:10px;color:#788e81;margin:0}
.lsr-med-filter{display:flex;flex-direction:column;gap:6px;font-size:10px;color:#627a69;font-weight:850}
.lsr-med-filter select{min-width:200px;padding:11px 30px 11px 11px;border:1px solid #d9e6dd;background:#f8fcf9;border-radius:11px;color:#225641;font-size:12px;outline:0}
.lsr-med-warn,.lsr-med-info{margin:0 0 15px;padding:14px 17px;border-radius:12px;background:#fff7e7;border:1px solid #f1dfbf;font-size:12px;line-height:1.6;color:#8c6427}
.lsr-med-info{background:#eff8f3;border-color:#d2e5d8;color:#396d52}
.lsr-med-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:15px}
.lsr-med-stat{position:relative;min-height:133px;display:flex;flex-direction:column;gap:10px;align-items:flex-start;text-align:left;padding:21px;background:#fff;border:1px solid #dfeae2;border-radius:19px;transition:transform .17s,border-color .17s}
.lsr-med-stat:hover:not(:disabled){transform:translateY(-2px);border-color:#b2d6c2}
.lsr-med-stat.accent{background:linear-gradient(145deg,#e8f6ee,#fbfdfa);border-color:#badbca}
.lsr-med-stat span{font-size:11px;color:#617969;font-weight:850}
.lsr-med-stat strong{font-size:clamp(18px,1.75vw,26px);color:#214737;letter-spacing:-.035em;line-height:1.12}
.lsr-med-stat.accent strong{color:#087953}
.lsr-med-stat small{font-size:10px;color:#839b8c;line-height:1.5;margin-top:auto}
.lsr-med-stat b{position:absolute;right:18px;top:17px;color:#86a792;font-weight:600}
.lsr-med-content-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(290px,.95fr);gap:15px;margin-top:16px}
.lsr-med-content-grid.bottom{grid-template-columns:1fr 1fr}
.lsr-med-panel{padding:22px;background:#fff;border:1px solid #dfeae3;border-radius:20px;min-width:0;box-shadow:0 10px 26px rgba(15,66,48,.035)}
.lsr-med-panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:19px}
.lsr-med-panel h4{font-size:18px;color:#204637;letter-spacing:-.02em;margin:6px 0;line-height:1.3}
.lsr-med-panel-heading small{font-size:10px;color:#819a89;line-height:1.4}
.lsr-med-link{white-space:nowrap;background:none;border:0;color:#12805d;font-size:11px;font-weight:850;padding:9px 0}
.lsr-med-chart{height:265px;position:relative;min-width:0}
.lsr-med-chart canvas{width:100%!important;height:100%!important}
.lsr-med-chart-empty{padding:70px 22px;text-align:center;color:#829589;font-size:12px}
.lsr-med-pay-list{display:grid;gap:14px}
.lsr-med-payer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;align-items:center}
.lsr-med-payer>div:first-child{min-width:0;display:grid;gap:3px}
.lsr-med-payer strong{font-size:12px;color:#29503e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lsr-med-payer span{font-size:10px;color:#869d8d}
.lsr-med-payer b{font-size:12px;color:#136e4c}
.lsr-med-payer-bar{grid-column:1/-1;height:7px;border-radius:999px;background:#edf4ef;overflow:hidden}
.lsr-med-payer-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0c9167,#d4ac70)}
.lsr-med-list-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 0;border-bottom:1px solid #eaf0eb}
.lsr-med-list-row:last-child{border:0}
.lsr-med-list-row>div{min-width:0}
.lsr-med-list-row strong,.lsr-med-list-row small{display:block}
.lsr-med-list-row strong{font-size:12px;color:#254f3b}
.lsr-med-list-row small{font-size:10px;color:#82998a;line-height:1.5;margin-top:4px}
.lsr-med-list-row b{font-size:12px;color:#14734e;white-space:nowrap}
.lsr-med-list-row em{font-size:10px;color:#9b7232;background:#fcf5e8;border:1px solid #f1e3c9;border-radius:9px;padding:6px 8px;font-style:normal;font-weight:750;text-align:right}
.lsr-med-blank{padding:42px 14px;text-align:center;font-size:12px;color:#8b9f91;line-height:1.5}
.lsr-med-disclaimer{padding:20px 10px 8px;font-size:10px;color:#7d9183;line-height:1.7;text-align:center}
@media(max-width:1210px){.lsr-home-stats,.lsr-med-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lsr-home-ops-grid,.lsr-med-content-grid{grid-template-columns:1fr}.lsr-home-panel{padding:21px}}
@media(max-width:840px){.lsr-home-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.lsr-med-hero{grid-template-columns:1fr}.lsr-med-hero-art{display:none}.lsr-med-content-grid.bottom{grid-template-columns:1fr}.lsr-med-hero{padding:29px 27px}}
@media(max-width:600px){.lsr-home-head,.lsr-med-toolbar{flex-direction:column;align-items:flex-start}.lsr-home-head-tag{display:none}.lsr-home-steps{gap:7px}.lsr-home-stage{padding:12px;min-height:147px}.lsr-home-stage strong{font-size:13px}.lsr-home-panel-top{flex-direction:column}.lsr-home-seal{display:none}.lsr-home-stats,.lsr-med-stat-grid{grid-template-columns:1fr 1fr;gap:8px}.lsr-home-stat,.lsr-med-stat{padding:15px;min-height:144px}.lsr-home-stat strong,.lsr-med-stat strong{font-size:21px}.lsr-home-ops-grid{grid-template-columns:minmax(0,1fr)}.lsr-home-batch{grid-template-columns:8px minmax(0,1fr) 10px}.lsr-home-batch em{display:none}.lsr-med-filter,.lsr-med-filter select{width:100%}.lsr-med-hero h3{font-size:31px}.lsr-med-panel{padding:16px}.lsr-med-panel-heading{flex-wrap:wrap}.lsr-med-list-row{align-items:flex-start;flex-direction:column;gap:8px}}

/* Menu próprio do médico: retirar a numeração da operação do seu espaço. */
.lsr-medical-shortcut{display:none!important}
body[data-role="medico"] [data-nav-module="financeiro"] .lsr-flow-nav-label{display:none!important}
body[data-role="medico"] [data-nav-module="financeiro"] .lsr-workflow-link[data-view="relatorios"]{display:none!important}
body[data-role="medico"] [data-nav-module="financeiro"] .lsr-medical-shortcut:not(.permission-hidden){display:flex!important}
body[data-role="medico"] [data-nav-module="financeiro"] .nav-module-children{padding-top:5px}
body[data-role="medico"] [data-nav-module="financeiro"] .nav-item[data-view="dashboard"]{margin-bottom:10px}

.lsr-med-evolution.no-chart .lsr-med-chart{display:none!important}
.lsr-med-evolution.no-chart .lsr-med-chart-empty{padding:34px 12px 30px!important;min-height:75px}

/* Cabeçalho compacto: controles completos no desktop, sem colisões no telefone. */
@media(max-width:760px){
 .topbar{gap:10px!important;padding:12px 12px!important}
 .topbar .topbar-left{flex:1;min-width:0!important}
 .topbar .topbar-left>div{min-width:0!important}
 .topbar .topbar-left h2{font-size:16px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
 .topbar .topbar-actions{flex:0 0 auto;gap:0!important;min-width:0!important}
 .topbar .topbar-actions #openImportBtn,.topbar .topbar-actions #profilePill{display:none!important}
 .topbar #logoutBtn{display:inline-flex!important;align-items:center;justify-content:center;height:35px;padding:0 11px;border-radius:10px;background:#eff6f1;border:1px solid #dce8de;color:#245c45;font-size:11px;font-weight:800}
 #operationalDashboard,#medicalDashboardV2{max-width:100%;min-width:0}
}
