    :root{
      --he-blue:#096A9D;
      --he-blue-2:#0B84B7;
      --he-cyan:#18B9D6;
      --he-cyan-2:#70D6E6;
      --he-deep:#153D58;
      --he-ink:#173547;
      --he-muted:#718894;
      --he-bg:#F4F9FC;
      --he-card:#FFFFFF;
      --he-soft:#ECF7FB;
      --he-soft-2:#F8FCFE;
      --he-border:#DAE9F0;
      --he-green:#119A7D;
      --he-green-soft:#E9F7F3;
      --he-red:#D85B67;
      --he-red-soft:#FFF0F2;
      --he-amber:#D79A27;
      --he-amber-soft:#FFF7E7;
      --shadow:0 18px 50px rgba(29,73,99,.10);
      --shadow-soft:0 8px 26px rgba(29,73,99,.08);
      --radius:24px;
    }
    *{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{
      margin:0;
      color:var(--he-ink);
      font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
      background:
        radial-gradient(circle at 5% 0%,rgba(24,185,214,.11),transparent 24%),
        radial-gradient(circle at 96% 2%,rgba(9,106,157,.08),transparent 24%),
        linear-gradient(180deg,#F8FCFE 0%,var(--he-bg) 55%,#F7FBFD 100%);
      min-height:100vh;
    }
    button{font-family:inherit}
    .app{max-width:1640px;margin:auto;padding:18px 24px 34px}
    .topbar{
      position:sticky;top:12px;z-index:50;
      display:flex;align-items:center;gap:16px;flex-wrap:wrap;
      padding:14px 16px;border-radius:22px;
      background:rgba(255,255,255,.90);backdrop-filter:blur(20px);
      border:1px solid rgba(218,233,240,.95);box-shadow:var(--shadow-soft)
    }
    .brand{display:flex;align-items:center;gap:12px;min-width:290px}
    .brandmark{
      width:44px;height:44px;border-radius:15px;display:grid;place-items:center;
      background:linear-gradient(135deg,var(--he-blue),var(--he-cyan));
      color:white;font-weight:950;letter-spacing:-.05em;
      box-shadow:0 10px 22px rgba(9,106,157,.22)
    }
    .brandmark img{display:block;width:72%;height:72%;object-fit:contain}
    .brandname{font-weight:900;letter-spacing:-.03em}
    .brandsub{font-size:.72rem;color:var(--he-muted);margin-top:1px}
    .tabstrip{display:flex;gap:6px;overflow:auto;scrollbar-width:none;flex:1}
    .tabstrip::-webkit-scrollbar{display:none}
    .tabbtn{
      border:1px solid transparent;background:transparent;color:#6D8592;
      padding:10px 14px;border-radius:999px;font-size:.80rem;font-weight:850;white-space:nowrap;
      transition:.18s ease
    }
    .tabbtn:hover{background:#F1F8FB;color:var(--he-blue)}
    .tabbtn.active{
      color:white;background:linear-gradient(135deg,var(--he-blue),var(--he-blue-2));
      box-shadow:0 8px 20px rgba(9,106,157,.20)
    }
    .filter-group{display:flex;gap:8px;margin-left:auto}
    .filter-pill{
      border:1px solid var(--he-border);background:#fff;color:var(--he-ink);
      padding:9px 12px;border-radius:14px;font-size:.78rem;font-weight:850
    }

    .tabpage{display:none;animation:enter .28s ease}
    .tabpage.active{display:block}
    @keyframes enter{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:none}}

    .hero{
      margin-top:16px;min-height:214px;border-radius:30px;overflow:hidden;position:relative;
      background:
        radial-gradient(circle at 82% 15%,rgba(255,255,255,.17),transparent 18%),
        linear-gradient(118deg,#103E5C 0%,#086E9F 48%,#14ABC7 100%);
      color:white;padding:28px 30px;box-shadow:0 22px 46px rgba(11,100,145,.16)
    }
    .hero::before{
      content:"";position:absolute;right:-70px;top:-135px;width:420px;height:420px;
      border:62px solid rgba(255,255,255,.07);border-radius:50%
    }
    .hero::after{
      content:"";position:absolute;right:190px;bottom:-145px;width:280px;height:280px;
      border:38px solid rgba(255,255,255,.06);border-radius:50%
    }
    .hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:center}
    .eyebrow{font-size:.72rem;text-transform:uppercase;letter-spacing:.16em;font-weight:900;opacity:.76}
    .hero h1{font-size:2.15rem;line-height:1.03;letter-spacing:-.045em;font-weight:930;margin:.5rem 0 .65rem}
    .hero p{margin:0;max-width:850px;opacity:.86;font-size:.93rem}
    .hero-pulse{display:grid;grid-template-columns:150px 1fr;gap:14px;align-items:center}
    .pulse-ring{
      width:142px;height:142px;border-radius:50%;display:grid;place-items:center;position:relative;
      background:conic-gradient(#8EE8F2 0 56%,rgba(255,255,255,.16) 56% 100%);
      box-shadow:inset 0 0 0 1px rgba(255,255,255,.13)
    }
    .pulse-ring::after{
      content:"";width:108px;height:108px;border-radius:50%;
      background:rgba(11,94,137,.92);position:absolute
    }
    .pulse-number{position:relative;z-index:3;text-align:center;font-size:1.65rem;font-weight:950;letter-spacing:-.04em}
    .pulse-number small{display:block;font-size:.62rem;font-weight:800;letter-spacing:.03em;opacity:.72;margin-top:2px}
    .hero-mini{
      border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.10);
      border-radius:17px;padding:11px 12px;margin-bottom:8px
    }
    .hero-mini:last-child{margin-bottom:0}
    .hero-mini .label{font-size:.68rem;opacity:.72;font-weight:800}
    .hero-mini .value{font-size:1rem;font-weight:920;margin-top:1px}

    .grid-kpi{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:14px}
    .cardx{
      background:rgba(255,255,255,.97);border:1px solid var(--he-border);
      border-radius:var(--radius);box-shadow:var(--shadow-soft)
    }
    .kpi{padding:17px 18px;position:relative;overflow:hidden}
    .kpi::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(var(--he-blue),var(--he-cyan));opacity:.85}
    .kpi-head{display:flex;justify-content:space-between;gap:8px}
    .kpi-label{font-size:.70rem;text-transform:uppercase;letter-spacing:.06em;color:var(--he-muted);font-weight:900}
    .kpi-icon{
      width:34px;height:34px;border-radius:11px;background:var(--he-soft);
      color:var(--he-blue);display:grid;place-items:center;font-size:.85rem;font-weight:950
    }
    .kpi-value{font-size:1.62rem;letter-spacing:-.045em;font-weight:950;margin-top:7px}
    .kpi-note{font-size:.74rem;color:var(--he-muted);margin-top:2px}
    .delta{display:inline-flex;align-items:center;gap:4px;font-size:.70rem;font-weight:900;border-radius:999px;padding:4px 7px}
    .pos{color:#087C66;background:var(--he-green-soft)}
    .neg{color:#B3424D;background:var(--he-red-soft)}
    .neutral{color:#0B6E9A;background:#EAF6FB}
    .pending{color:#966D1F;background:var(--he-amber-soft)}

    .rowgrid{display:grid;gap:14px;margin-top:14px}
    .row-8-4{grid-template-columns:2fr 1fr}
    .row-7-5{grid-template-columns:1.45fr 1fr}
    .row-6-6{grid-template-columns:1fr 1fr}
    .row-4-4-4{grid-template-columns:repeat(3,1fr)}
    .row-3-9{grid-template-columns:.72fr 2fr}
    .panel{padding:19px 20px;min-height:100%}
    .panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:13px}
    .panel-title{font-size:.97rem;font-weight:920;letter-spacing:-.025em}
    .panel-sub{font-size:.74rem;color:var(--he-muted);margin-top:2px}
    .chip{
      display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 9px;
      background:#EDF8FB;color:var(--he-blue);font-size:.68rem;font-weight:900;white-space:nowrap
    }
    .chip.real::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--he-green)}
    .chip.model::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--he-amber)}

    .canvas-wrap{height:285px}
    .canvas-wrap.tall{height:330px}
    canvas{max-width:100%;max-height:100%}

    .insight-stack{display:grid;gap:9px}
    .insight{
      border:1px solid #DCECF2;background:linear-gradient(145deg,#FBFEFF,#F2F9FC);
      border-radius:18px;padding:13px 14px;position:relative
    }
    .insight.hot{background:linear-gradient(145deg,#F2FAFD,#EAF8FC);border-color:#CAE8F2}
    .insight.warn{background:linear-gradient(145deg,#FFFDF8,#FFF7EA);border-color:#F3DFC0}
    .insight .tag{font-size:.62rem;text-transform:uppercase;letter-spacing:.09em;font-weight:950;color:var(--he-blue)}
    .insight.warn .tag{color:#A46F16}
    .insight h4{font-size:.88rem;font-weight:920;margin:4px 0 4px}
    .insight p{font-size:.73rem;line-height:1.35;color:var(--he-muted);margin:0}

    .waterfall{display:flex;align-items:flex-end;gap:10px;height:200px;padding:8px 8px 2px}
    .wf-col{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;position:relative}
    .wf-value{font-size:.72rem;font-weight:900;margin-bottom:5px}
    .wf-bar{width:72%;border-radius:10px 10px 4px 4px;min-height:10px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
    .wf-bar.base{background:linear-gradient(180deg,#193F5A,#285E7C)}
    .wf-bar.up{background:linear-gradient(180deg,#54D4E7,#18B9D6)}
    .wf-bar.end{background:linear-gradient(180deg,#0878A9,#0B84B7)}
    .wf-label{text-align:center;font-size:.67rem;color:var(--he-muted);margin-top:7px;line-height:1.2}

    .treemap{
      display:grid;grid-template-columns:1.45fr 1fr .78fr;grid-template-rows:1fr 1fr 1fr;
      gap:8px;height:280px
    }
    .tree{
      color:#fff;border-radius:16px;padding:13px;overflow:hidden;position:relative;display:flex;flex-direction:column;justify-content:flex-end;
      box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)
    }
    .tree::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(0,0,0,.10));pointer-events:none}
    .tree .name,.tree .money,.tree .change{position:relative;z-index:2}
    .tree .name{font-size:.70rem;font-weight:900;text-transform:uppercase;letter-spacing:.02em;opacity:.92}
    .tree .money{font-size:1.05rem;font-weight:950;letter-spacing:-.035em}
    .tree .change{font-size:.66rem;font-weight:900;margin-top:2px;opacity:.90}
    .tree.big{grid-row:1/3;background:linear-gradient(135deg,#076A9E,#12A9C7)}
    .tree.ortho{grid-row:1/3;background:linear-gradient(135deg,#1B4E69,#2C7591)}
    .tree.general{background:linear-gradient(135deg,#567B8E,#7597A5)}
    .tree.gyn{background:linear-gradient(135deg,#347A91,#5AA8BC)}
    .tree.uro{background:linear-gradient(135deg,#2E8F9E,#65C0C9)}
    .tree.oto{background:linear-gradient(135deg,#5B9CAF,#84BCCA)}
    .tree.neuro{background:linear-gradient(135deg,#198F7B,#43B79F)}
    .tree.vasc{background:linear-gradient(135deg,#7C98A5,#9AB0BB)}

    .microgrid{display:grid;grid-template-columns:repeat(12,1fr);gap:4px}
    .heatcell{
      aspect-ratio:1.22;border-radius:6px;border:1px dashed #D8E8EE;background:#F7FBFD;
      display:grid;place-items:center;color:#A2B5BF;font-size:.56rem;font-weight:850
    }
    .heatcell.real-1{background:#E9F9FB;border-style:solid;border-color:#D2F0F4}
    .heatcell.real-2{background:#CDEFF4;border-style:solid;border-color:#BCE8EF}
    .heatcell.real-3{background:#8DDAE5;border-style:solid;border-color:#78D1DF;color:#15516B}
    .heatcell.real-4{background:#2CB9D2;border-style:solid;border-color:#22AAC3;color:white}
    .heat-labels{display:grid;grid-template-columns:112px 1fr;gap:8px;align-items:center;margin-bottom:7px}
    .heat-name{font-size:.68rem;font-weight:850;color:#4D6978}

    .agenda-rank{display:grid;gap:7px}
    .rankline{display:grid;grid-template-columns:25px 1fr auto;gap:10px;align-items:center;padding:7px 0;border-bottom:1px solid #EDF4F7}
    .rankline:last-child{border-bottom:0}
    .rankno{width:25px;height:25px;border-radius:8px;background:#EBF7FB;color:var(--he-blue);display:grid;place-items:center;font-size:.65rem;font-weight:950}
    .rankname{font-size:.72rem;font-weight:850}
    .rankval{font-size:.72rem;font-weight:950}
    .bartrack{height:5px;background:#EDF4F6;border-radius:99px;margin-top:4px;overflow:hidden}
    .barfill{height:100%;background:linear-gradient(90deg,var(--he-blue),var(--he-cyan));border-radius:99px}

    .readiness{
      display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;
      padding:14px;border:1px solid #E7DDC9;background:#FFFBF3;border-radius:17px
    }
    .readiness .ricon{width:44px;height:44px;border-radius:14px;background:#FFF3D9;color:#9B6E1C;display:grid;place-items:center;font-weight:950}
    .readiness h5{font-size:.82rem;font-weight:920;margin:0 0 2px}
    .readiness p{font-size:.70rem;color:#8A7A5E;margin:0}
    .readiness .rstatus{font-size:.67rem;color:#936919;font-weight:900;background:#FFF0CE;border-radius:999px;padding:5px 8px}

    .flow{
      display:grid;grid-template-columns:1fr 80px 1fr 80px 1fr 80px 1fr;align-items:center;gap:7px;padding:18px 4px
    }
    .flownode{
      border-radius:20px;padding:16px 12px;text-align:center;border:1px solid var(--he-border);background:#fff;
      box-shadow:var(--shadow-soft)
    }
    .flownode.strong{background:linear-gradient(135deg,#0A6F9F,#19B4CF);color:#fff;border-color:transparent}
    .flownode.wait{border-style:dashed;background:#FBFDFE}
    .flow-k{font-size:1.35rem;font-weight:950;letter-spacing:-.04em}
    .flow-l{font-size:.67rem;font-weight:850;opacity:.78}
    .arrow{
      height:3px;background:linear-gradient(90deg,#B9DAE5,#58C7DA);position:relative;border-radius:99px
    }
    .arrow::after{content:"";position:absolute;right:-1px;top:-4px;border-left:9px solid #58C7DA;border-top:5px solid transparent;border-bottom:5px solid transparent}
    .arrow.dashed{background:repeating-linear-gradient(90deg,#C7DCE4 0 8px,transparent 8px 13px)}
    .arrow.dashed::after{border-left-color:#C7DCE4}

    .cohort{display:grid;grid-template-columns:105px repeat(4,1fr);gap:5px}
    .cohort .head{font-size:.61rem;font-weight:900;color:#79909B;text-align:center;padding:5px}
    .cohort .rowname{font-size:.67rem;font-weight:850;color:#4D6978;display:flex;align-items:center}
    .cohort .cell{
      min-height:38px;border-radius:8px;border:1px dashed #D9E8EE;background:#FAFDFE;
      display:flex;align-items:center;justify-content:center;font-size:.61rem;font-weight:900;color:#9AAFB9
    }
    .cohort .cell.ready{border-style:solid;background:#EFF9FC;color:#2D6C86}
    .cohort .cell.mid{border-style:solid;background:#CFEEF4;color:#205970}
    .cohort .cell.hot{border-style:solid;background:#68CDDE;color:white}

    .metric-matrix{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
    .matrix-card{border:1px solid #E2EEF3;background:#FAFDFE;border-radius:15px;padding:11px}
    .matrix-card .m-title{font-size:.68rem;font-weight:900}
    .matrix-card .m-desc{font-size:.65rem;color:var(--he-muted);margin-top:2px}

    .doctorcards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
    .doctorcard{border:1px solid #E1EDF2;border-radius:18px;padding:13px;background:linear-gradient(155deg,#fff,#F8FCFE)}
    .avatar{width:35px;height:35px;border-radius:12px;background:linear-gradient(135deg,#DDF4F9,#ECFAFC);color:var(--he-blue);display:grid;place-items:center;font-size:.67rem;font-weight:950}
    .docname{font-size:.70rem;font-weight:900;line-height:1.2}
    .docmeta{font-size:.61rem;color:var(--he-muted)}
    .docmoney{font-size:1rem;font-weight:950;letter-spacing:-.03em;margin-top:9px}
    .docticket{font-size:.64rem;color:var(--he-muted)}

    .data-status{display:flex;align-items:center;gap:6px;font-size:.67rem;font-weight:850}
    .dot{width:8px;height:8px;border-radius:50%}.dot.green{background:var(--he-green)}.dot.amber{background:var(--he-amber)}.dot.red{background:var(--he-red)}
    table{font-size:.72rem}
    .table>:not(caption)>*>*{padding:.65rem .55rem;border-color:#EDF4F6}
    thead th{font-size:.63rem;text-transform:uppercase;letter-spacing:.04em;color:#77909C}
    .footnote{font-size:.65rem;color:#8196A1;margin-top:9px}
    .section-intro{margin-top:16px;display:flex;align-items:end;justify-content:space-between;gap:16px}
    .section-intro h2{font-size:1.42rem;font-weight:950;letter-spacing:-.04em;margin:0}
    .section-intro p{font-size:.76rem;color:var(--he-muted);margin:3px 0 0}
    .summary-pill{font-size:.69rem;font-weight:900;padding:7px 10px;border-radius:999px;background:#EBF7FB;color:var(--he-blue)}

    .legend-line{display:flex;gap:12px;flex-wrap:wrap;font-size:.66rem;color:#758D99;font-weight:800}
    .legend-line span{display:flex;align-items:center;gap:5px}
    .legend-line i{width:10px;height:4px;border-radius:99px;display:inline-block}




    .chart-view-toggle{
      display:inline-flex;align-items:center;gap:3px;padding:3px;
      border:1px solid #D9E8EF;background:#F3F9FB;border-radius:999px
    }
    .chart-view-toggle button{
      border:0;background:transparent;color:#718A96;border-radius:999px;
      padding:6px 10px;font-size:.62rem;font-weight:900;cursor:pointer;transition:.16s ease
    }
    .chart-view-toggle button.active{
      background:#FFFFFF;color:#096A9D;box-shadow:0 4px 12px rgba(28,79,105,.10)
    }

    /* Executive 2026: feito + pipeline */
    .exec-banner{
      margin-top:16px;border-radius:27px;padding:20px 22px;
      background:linear-gradient(120deg,#FFFFFF 0%,#F2FAFD 55%,#E9F7FB 100%);
      border:1px solid #D9EAF1;box-shadow:var(--shadow-soft);
      display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap
    }
    .exec-banner h1{font-size:1.58rem;font-weight:950;letter-spacing:-.045em;margin:0}
    .exec-banner p{font-size:.72rem;color:#738A96;margin:3px 0 0}
    .exec-period{
      display:flex;gap:7px;flex-wrap:wrap
    }
    .exec-period span{
      border:1px solid #D9EAF1;background:#fff;border-radius:999px;padding:7px 10px;
      color:#456979;font-size:.66rem;font-weight:900
    }
    .exec-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:11px;margin-top:13px}
    .exec-kpi{
      position:relative;overflow:hidden;padding:15px 16px;border-radius:20px;
      background:#fff;border:1px solid #DDEBF1;box-shadow:0 8px 23px rgba(34,79,103,.07)
    }
    .exec-kpi.actual::after,.exec-kpi.production::after,.exec-kpi.future::after,.exec-kpi.visibility::after{
      content:"";position:absolute;left:0;right:0;bottom:0;height:4px
    }
    .exec-kpi.actual::after{background:#096A9D}
    .exec-kpi.production::after{background:#D79A27}
    .exec-kpi.future::after{background:#18B9D6}
    .exec-kpi.visibility::after{background:#119A7D}
    .exec-kpi .ek-label{font-size:.63rem;color:#7B919C;font-weight:900;text-transform:uppercase;letter-spacing:.055em}
    .exec-kpi .ek-value{font-size:1.65rem;font-weight:950;letter-spacing:-.05em;margin-top:5px}
    .exec-kpi .ek-sub{font-size:.64rem;color:#8095A0;margin-top:2px;line-height:1.25}
    .exec-kpi .ek-delta{margin-top:7px}
    .exec-kpi .ek-secondary{font-size:.77rem;font-weight:900;color:#456A7B;margin-top:7px}
    .visibility-panel{
      border-radius:21px;border:1px solid #DDEBF1;background:linear-gradient(155deg,#fff,#F9FCFD);
      padding:17px 18px
    }
    .visibility-top{display:flex;align-items:flex-end;justify-content:space-between;gap:15px}
    .visibility-main{font-size:2rem;font-weight:950;letter-spacing:-.055em}
    .visibility-ref{text-align:right}
    .visibility-ref .vr-label{font-size:.62rem;color:#8197A2;font-weight:900;text-transform:uppercase}
    .visibility-ref .vr-value{font-size:1.05rem;font-weight:950}
    .pipeline-rail{
      display:flex;height:19px;border-radius:999px;overflow:hidden;background:#EAF2F5;margin:15px 0 8px;
      box-shadow:inset 0 0 0 1px rgba(53,101,126,.07)
    }
    .pipeline-rail span{height:100%}
    .rail-actual{background:linear-gradient(90deg,#0B628F,#0B80B0)}
    .rail-production{background:linear-gradient(90deg,#D59A2A,#E2B04D)}
    .rail-future{background:linear-gradient(90deg,#1CB6D2,#69D5E4)}
    .pipeline-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:.63rem;color:#718A96;font-weight:850}
    .pipeline-legend span{display:flex;gap:6px;align-items:center}
    .pipeline-legend i{width:10px;height:6px;border-radius:99px;display:inline-block}
    .value-grid{display:grid;grid-template-columns:1.5fr .8fr;gap:13px;margin-top:13px}
    .future-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:11px}
    .future-stat{
      border:1px solid #E1EDF2;border-radius:14px;background:#FBFDFE;padding:10px 11px
    }
    .future-stat .fs-label{font-size:.58rem;color:#8096A1;text-transform:uppercase;font-weight:900}
    .future-stat .fs-value{font-size:1rem;font-weight:950;margin-top:2px}
    .compact-title{font-size:.90rem;font-weight:930;letter-spacing:-.025em}
    .compact-sub{font-size:.66rem;color:#7A919C;margin-top:1px}
    .estimate-pill{font-size:.59rem;color:#986B18;background:#FFF5DE;border-radius:999px;padding:5px 7px;font-weight:900}
    @media(max-width:1280px){.exec-grid{grid-template-columns:repeat(3,1fr)}}
    @media(max-width:980px){.value-grid{grid-template-columns:1fr}.exec-grid{grid-template-columns:repeat(2,1fr)}}
    @media(max-width:620px){.exec-grid{grid-template-columns:1fr}.future-stat-grid{grid-template-columns:1fr}}



    /* Financial year mini-calendar */
    .financial-calendar{
      display:grid;
      grid-template-columns:repeat(6,1fr);
      gap:8px;
      margin-top:12px
    }
    .fin-month{
      position:relative;
      min-height:158px;
      border-radius:18px;
      padding:12px 11px;
      border:1px solid #DFEAF0;
      overflow:hidden;
      transition:.18s ease;
      background:#fff
    }
    .fin-month:hover{
      transform:translateY(-2px);
      box-shadow:0 10px 23px rgba(28,76,101,.09)
    }
    .fin-month.above{
      background:linear-gradient(150deg,#EDF9FD,#DDF4FA);
      border-color:#BCE1EC
    }
    .fin-month.neutral{
      background:#FFFFFF;
      border-color:#DFEAF0
    }
    .fin-month.below{
      background:linear-gradient(150deg,#FFF9EF,#FFF0D9);
      border-color:#EFD6A9
    }
    .fin-month.critical{
      background:linear-gradient(150deg,#FFF5F3,#FFE6E1);
      border-color:#F0C3BA
    }
    .fin-month.current{
      box-shadow:inset 0 0 0 2px rgba(215,154,39,.55),0 10px 22px rgba(215,154,39,.08)
    }
    .fin-month.current::before{
      content:"";
      position:absolute;
      left:0;top:0;right:0;height:4px;
      background:linear-gradient(90deg,#D79A27,#F0B64A)
    }
    .fin-month.future::after{
      content:"";
      position:absolute;
      right:-20px;bottom:-28px;
      width:72px;height:72px;border-radius:50%;
      border:12px solid rgba(24,185,214,.06)
    }
    .fm-top{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:5px
    }
    .fm-name{
      font-size:.68rem;
      font-weight:950;
      letter-spacing:.055em;
      text-transform:uppercase;
      color:#476776
    }
    .fm-type{
      font-size:.47rem;
      font-weight:950;
      padding:3px 5px;
      border-radius:999px;
      background:rgba(255,255,255,.64);
      color:#6E8793;
      white-space:nowrap
    }
    .fin-month.current .fm-type{color:#956619}
    .fin-month.future .fm-type{color:#08759E}
    .fm-value{
      font-size:1.06rem;
      font-weight:950;
      letter-spacing:-.04em;
      color:#173B4F;
      margin-top:14px
    }
    .fm-label{
      font-size:.52rem;
      color:#77909B;
      font-weight:800;
      margin-top:1px
    }
    .fm-vs{
      margin-top:9px;
      padding-top:8px;
      border-top:1px solid rgba(94,128,145,.12)
    }
    .fm-prev{
      display:flex;
      justify-content:space-between;
      gap:5px;
      align-items:center;
      font-size:.57rem;
      color:#78909B
    }
    .fm-prev strong{
      font-size:.67rem;
      color:#466777
    }
    .fm-change{
      display:flex;
      align-items:center;
      justify-content:space-between;
      margin-top:5px
    }
    .fm-change strong{
      font-size:.75rem;
      font-weight:950
    }
    .above .fm-change strong{color:#08759E}
    .neutral .fm-change strong{color:#607B88}
    .below .fm-change strong{color:#A46D1A}
    .critical .fm-change strong{color:#BA4D47}
    .fm-small{
      font-size:.51rem;
      color:#7C919B
    }
    .fm-volume{
      margin-top:7px;
      font-size:.53rem;
      color:#67818D;
      font-weight:800
    }
    .calendar-section-label{
      display:flex;
      align-items:center;
      gap:7px;
      margin-top:13px;
      font-size:.58rem;
      font-weight:900;
      color:#738B96;
      text-transform:uppercase;
      letter-spacing:.05em
    }
    .calendar-section-label::after{
      content:"";
      flex:1;
      height:1px;
      background:#E7F0F4
    }
    .calendar-legend{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
      margin-top:10px;
      font-size:.56rem;
      color:#758D98;
      font-weight:850
    }
    .calendar-legend span{
      display:flex;
      align-items:center;
      gap:4px
    }
    .calendar-legend i{
      width:11px;height:8px;border-radius:3px;display:inline-block
    }
    @media(max-width:1380px){.financial-calendar{grid-template-columns:repeat(4,1fr)}}
    @media(max-width:1050px){.financial-calendar{grid-template-columns:repeat(3,1fr)}}
    @media(max-width:720px){.financial-calendar{grid-template-columns:repeat(2,1fr)}}
    @media(max-width:480px){.financial-calendar{grid-template-columns:1fr}}

    /* Future revenue coverage */
    .future-revenue-summary{
      display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px
    }
    .fr-summary{
      border:1px solid #DFECF1;border-radius:14px;background:#FAFDFE;padding:10px 11px
    }
    .fr-summary .label{
      font-size:.56rem;text-transform:uppercase;letter-spacing:.055em;font-weight:900;color:#7C929D
    }
    .fr-summary .value{
      font-size:1rem;font-weight:950;letter-spacing:-.03em;margin-top:2px
    }
    .fr-summary .note{font-size:.58rem;color:#8499A3;margin-top:1px}

    .future-revenue-grid{
      display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:11px
    }
    .future-month{
      border-radius:16px;padding:11px 10px;border:1px solid transparent;
      min-height:145px;position:relative;overflow:hidden;transition:.16s ease
    }
    .future-month:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(29,75,99,.09)}
    .future-month.above{
      background:linear-gradient(150deg,#E9F7FC,#D8F1F8);
      border-color:#B9DFEB
    }
    .future-month.equal{
      background:#FFFFFF;border-color:#DFEAF0
    }
    .future-month.below{
      background:linear-gradient(150deg,#FFF7EC,#FFF0DB);
      border-color:#F0D7AF
    }
    .future-month.critical{
      background:linear-gradient(150deg,#FFF3F1,#FFE7E2);
      border-color:#F1C7BE
    }
    .fm-month{
      font-size:.63rem;text-transform:uppercase;letter-spacing:.06em;font-weight:950;color:#567483
    }
    .fm-status{
      position:absolute;right:8px;top:8px;font-size:.49rem;font-weight:950;
      border-radius:999px;padding:3px 5px;background:rgba(255,255,255,.66)
    }
    .fm-main{font-size:1.02rem;font-weight:950;letter-spacing:-.035em;margin-top:12px}
    .fm-caption{font-size:.54rem;color:#6F8794;font-weight:800}
    .fm-prev{font-size:.68rem;font-weight:900;margin-top:8px;color:#496A79}
    .fm-prev small{font-size:.51rem;color:#8095A0;font-weight:800}
    .fm-delta{font-size:.72rem;font-weight:950;margin-top:5px}
    .future-month.above .fm-delta{color:#08759E}
    .future-month.below .fm-delta{color:#A56C18}
    .future-month.critical .fm-delta{color:#BA4D47}
    .future-month.equal .fm-delta{color:#637D8A}
    .fm-agenda{font-size:.54rem;color:#748B96;margin-top:5px}
    .coverage-scale{
      display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:8px;
      font-size:.56rem;color:#7A919D;font-weight:850
    }
    .coverage-scale span{display:flex;align-items:center;gap:4px}
    .coverage-scale i{width:10px;height:7px;border-radius:3px;display:inline-block}
    @media(max-width:1280px){.future-revenue-grid{grid-template-columns:repeat(3,1fr)}}
    @media(max-width:980px){.future-revenue-grid{grid-template-columns:repeat(2,1fr)}}
    @media(max-width:620px){
      .future-revenue-grid{grid-template-columns:1fr}
      .future-revenue-summary{grid-template-columns:1fr}
    }


    /* Uniform monthly performance cards */
    .month-kpi-calendar{
      display:grid;
      grid-template-columns:repeat(6,minmax(0,1fr));
      gap:10px;
      align-items:stretch;
      margin-top:12px
    }
    .month-card{
      background:#FFFFFF;
      border:1px solid #DDE9EF;
      border-radius:18px;
      padding:12px;
      height:300px;
      min-height:300px;
      max-height:300px;
      display:flex;
      flex-direction:column;
      box-shadow:0 5px 16px rgba(28,76,101,.035);
      overflow:hidden
    }
    .month-card.current{
      border:2px solid #D9A038;
      box-shadow:0 8px 20px rgba(215,154,39,.08)
    }
    .month-head{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:8px;
      padding-bottom:9px;
      border-bottom:1px solid #E9F1F4
    }
    .month-name{
      font-size:.82rem;
      font-weight:950;
      letter-spacing:.055em;
      text-transform:uppercase;
      color:#244C61
    }
    .month-state{
      font-size:.48rem;
      font-weight:950;
      border-radius:999px;
      padding:4px 7px;
      color:#718995;
      background:#F3F7F9;
      white-space:nowrap
    }
    .month-card.current .month-state{
      color:#8A611C;
      background:#FFF6E4
    }
    .month-card.future .month-state{
      color:#08779F;
      background:#EAF7FB
    }
    .metric-stack{
      display:grid;
      grid-template-rows:repeat(3,1fr);
      gap:7px;
      flex:1;
      margin-top:9px;
      min-height:0
    }
    .month-metric{
      border-radius:12px;
      padding:8px 9px;
      border:1px solid transparent;
      display:grid;
      grid-template-columns:1fr auto;
      grid-template-rows:auto auto auto;
      column-gap:8px;
      align-content:center;
      min-height:0
    }
    .month-metric.up{
      background:#EAF7FB;
      border-color:#C7E8F1
    }
    .month-metric.flat{
      background:#F7F9FA;
      border-color:#E4ECEF
    }
    .month-metric.warn{
      background:#FFF5E7;
      border-color:#F0D7AE
    }
    .month-metric.down{
      background:#FFF0ED;
      border-color:#F0CCC5
    }
    .month-metric.pending{
      background:#F5F7F8;
      border-color:#E1E8EB
    }
    .mm-label{
      font-size:.50rem;
      font-weight:950;
      text-transform:uppercase;
      letter-spacing:.05em;
      color:#6D8793
    }
    .mm-delta{
      grid-column:2;
      grid-row:1 / span 2;
      align-self:center;
      font-size:.66rem;
      font-weight:950;
      white-space:nowrap
    }
    .up .mm-delta{color:#08779F}
    .flat .mm-delta{color:#667F8A}
    .warn .mm-delta{color:#A66C17}
    .down .mm-delta{color:#B74C46}
    .pending .mm-delta{color:#7D929C}
    .mm-value{
      font-size:.83rem;
      line-height:1.05;
      font-weight:950;
      color:#173B4F;
      letter-spacing:-.025em;
      margin-top:2px
    }
    .mm-prev{
      grid-column:1 / -1;
      font-size:.49rem;
      color:#728A95;
      margin-top:3px;
      white-space:normal
    }
    .month-foot{
      height:20px;
      display:flex;
      align-items:flex-end;
      font-size:.49rem;
      color:#7C929C;
      margin-top:5px;
      line-height:1.1
    }
    .month-grid-legend{
      display:flex;
      gap:11px;
      flex-wrap:wrap;
      margin-top:10px;
      font-size:.56rem;
      color:#758D98;
      font-weight:850
    }
    .month-grid-legend span{display:flex;align-items:center;gap:4px}
    .month-grid-legend i{width:11px;height:8px;border-radius:3px;display:inline-block}
    @media(max-width:1450px){.month-kpi-calendar{grid-template-columns:repeat(4,minmax(0,1fr))}}
    @media(max-width:1080px){.month-kpi-calendar{grid-template-columns:repeat(3,minmax(0,1fr))}}
    @media(max-width:760px){.month-kpi-calendar{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media(max-width:500px){.month-kpi-calendar{grid-template-columns:1fr}.month-card{height:290px;min-height:290px;max-height:290px}}

    /* Agenda Comercial */
    .agenda-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
    .agenda-kpi{
      border:1px solid #E0EDF2;background:linear-gradient(150deg,#FFFFFF,#F8FCFE);
      border-radius:18px;padding:13px 14px
    }
    .agenda-kpi .ak-label{font-size:.62rem;text-transform:uppercase;letter-spacing:.06em;font-weight:900;color:#7A919C}
    .agenda-kpi .ak-value{font-size:1.35rem;font-weight:950;letter-spacing:-.04em;margin-top:3px}
    .agenda-kpi .ak-note{font-size:.65rem;color:#8298A3;margin-top:1px}

    .calendar-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(300px,.8fr);gap:14px}
    .calendar-shell{
      border:1px solid #DFECF1;border-radius:21px;background:linear-gradient(180deg,#FBFEFF,#F7FBFD);
      padding:14px
    }
    .calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
    .calendar-month{font-size:1.02rem;font-weight:950;letter-spacing:-.03em}
    .calendar-hint{font-size:.66rem;color:#7C929E}
    .calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}
    .calendar-weekdays div{
      text-align:center;font-size:.59rem;font-weight:950;color:#8297A2;text-transform:uppercase;letter-spacing:.055em;
      padding:4px 0
    }
    .day{
      min-height:100px;border:1px solid #E3EEF3;border-radius:15px;background:#FFF;
      padding:9px;position:relative;cursor:pointer;transition:.16s ease;overflow:hidden
    }
    .day:hover{transform:translateY(-2px);box-shadow:0 9px 20px rgba(32,79,104,.10);border-color:#BFDDE8}
    .day.blank{cursor:default;background:transparent;border-color:transparent;box-shadow:none}
    .day.blank:hover{transform:none}
    .day.empty{background:#FAFCFD}
    .day.selected{border:2px solid #18B9D6;background:linear-gradient(155deg,#F6FEFF,#EAF9FC);box-shadow:0 10px 24px rgba(24,185,214,.13)}
    .day.today::after{
      content:"HOJE";position:absolute;right:7px;top:8px;font-size:.50rem;font-weight:950;letter-spacing:.07em;
      background:#0B84B7;color:#fff;border-radius:999px;padding:3px 5px
    }
    .day-num{font-size:.75rem;font-weight:950;color:#365A6D}
    .day.empty .day-num{color:#96A9B3}
    .day-count{font-size:1.15rem;font-weight:950;letter-spacing:-.04em;color:#0A739F;margin-top:13px}
    .day-count small{font-size:.56rem;font-weight:850;color:#7B929D;letter-spacing:0}
    .day-meta{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px}
    .day-tag{
      font-size:.51rem;font-weight:900;color:#356B82;background:#EDF8FB;border-radius:999px;padding:3px 5px
    }
    .day-empty-note{font-size:.57rem;color:#A0B0B8;margin-top:16px;line-height:1.25}
    .day.future .day-count{color:#087E73}
    .day.future .day-tag{background:#EAF8F4;color:#157866}

    .agenda-detail{
      border-radius:21px;background:linear-gradient(160deg,#123F5C,#0B78A6 57%,#19AEC8);
      color:#fff;padding:17px;min-height:100%
    }
    .agenda-detail-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
    .agenda-detail .ad-date{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;font-weight:900;opacity:.68}
    .agenda-detail .ad-total{font-size:2rem;font-weight:950;letter-spacing:-.055em;margin-top:2px}
    .agenda-detail .ad-caption{font-size:.66rem;opacity:.70}
    .agenda-detail-chip{
      border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.10);border-radius:999px;
      padding:5px 7px;font-size:.57rem;font-weight:900;white-space:nowrap
    }
    .agenda-divider{height:1px;background:rgba(255,255,255,.15);margin:14px 0}
    .agenda-detail-title{font-size:.69rem;text-transform:uppercase;letter-spacing:.07em;font-weight:900;opacity:.70;margin-bottom:7px}
    .agenda-item{
      display:grid;grid-template-columns:34px 1fr auto;gap:9px;align-items:center;
      padding:9px 0;border-bottom:1px solid rgba(255,255,255,.11)
    }
    .agenda-item:last-child{border-bottom:0}
    .agenda-avatar{
      width:34px;height:34px;border-radius:11px;background:rgba(255,255,255,.14);
      display:grid;place-items:center;font-size:.57rem;font-weight:950
    }
    .agenda-doc{font-size:.68rem;font-weight:900;line-height:1.2}
    .agenda-spec{font-size:.57rem;opacity:.67;margin-top:2px}
    .agenda-qty{font-size:.78rem;font-weight:950}
    .agenda-empty-state{
      border:1px dashed rgba(255,255,255,.25);border-radius:15px;padding:14px;
      font-size:.66rem;line-height:1.45;color:rgba(255,255,255,.76)
    }
    .calendar-warning{
      margin-top:10px;border-radius:14px;border:1px solid #F0E0C1;background:#FFF9ED;
      color:#8A6A2B;padding:9px 11px;font-size:.63rem;line-height:1.35
    }

    @media(max-width:1280px){
      .grid-kpi{grid-template-columns:repeat(3,1fr)}
      .agenda-kpis{grid-template-columns:repeat(2,1fr)}
      .doctorcards{grid-template-columns:repeat(2,1fr)}
    }
    @media(max-width:980px){
      .app{padding:10px 12px 28px}
      .topbar{position:relative;top:0}
      .hero-grid{grid-template-columns:1fr}
      .hero-pulse{max-width:500px}
      .grid-kpi{grid-template-columns:repeat(2,1fr)}
      .row-8-4,.row-7-5,.row-6-6,.row-4-4-4,.row-3-9{grid-template-columns:1fr}
      .calendar-layout{grid-template-columns:1fr}
      .day{min-height:86px;padding:7px}
      .treemap{grid-template-columns:1fr 1fr;height:420px}.tree.big,.tree.ortho{grid-row:auto}
      .flow{grid-template-columns:1fr}.arrow{width:3px;height:42px;margin:auto;background:linear-gradient(#B9DAE5,#58C7DA)}.arrow::after{right:-4px;top:auto;bottom:-1px;border-top:9px solid #58C7DA;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:0}
    }
    @media(max-width:620px){
      .grid-kpi{grid-template-columns:1fr}
      .agenda-kpis{grid-template-columns:1fr 1fr}
      .calendar-weekdays,.calendar-grid{gap:4px}
      .day{min-height:72px;border-radius:11px;padding:6px}
      .day-count{font-size:.92rem;margin-top:9px}.day-meta{display:none}
      .hero h1{font-size:1.65rem}
      .hero-pulse{grid-template-columns:1fr}.pulse-ring{margin:auto}
      .doctorcards{grid-template-columns:1fr}
      .filter-group{width:100%}.filter-pill{flex:1}
    }
  
    /* V12 - Executive monthly calendar */
    .month-kpi-calendar{
      display:grid !important;
      grid-template-columns:repeat(4,minmax(0,1fr)) !important;
      gap:14px !important;
      align-items:stretch !important;
      margin-top:14px !important;
    }
    .month-card{
      height:252px !important;
      min-height:252px !important;
      max-height:252px !important;
      background:#FFFFFF !important;
      border:1px solid #DDE8ED !important;
      border-radius:20px !important;
      padding:14px !important;
      display:flex !important;
      flex-direction:column !important;
      box-shadow:0 7px 22px rgba(24,69,91,.045) !important;
      overflow:hidden !important;
    }
    .month-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(24,69,91,.08) !important}
    .month-card.current{border-color:#E4B85F !important;box-shadow:0 8px 24px rgba(215,154,39,.10) !important}
    .month-head{
      display:flex !important;justify-content:space-between !important;align-items:center !important;
      gap:10px !important;padding:0 1px 11px !important;border-bottom:1px solid #E9F1F4 !important;
    }
    .month-name{font-size:.92rem !important;font-weight:950 !important;letter-spacing:.04em !important;color:#173F54 !important}
    .month-state{
      font-size:.48rem !important;font-weight:950 !important;border-radius:999px !important;
      padding:5px 8px !important;background:#F2F6F8 !important;color:#748B96 !important;
    }
    .month-card.current .month-state{background:#FFF6E5 !important;color:#986917 !important}
    .month-card.future .month-state{background:#EAF7FB !important;color:#08789F !important}

    .metric-stack{
      display:grid !important;grid-template-columns:1fr 1fr !important;grid-template-rows:112px 72px !important;
      gap:9px !important;flex:0 0 auto !important;margin-top:11px !important;
    }
    .month-metric{
      border-radius:14px !important;padding:10px 11px !important;border:1px solid transparent !important;
      display:block !important;position:relative !important;overflow:hidden !important;
    }
    .month-metric:first-child{grid-column:1/-1 !important;grid-row:1 !important;padding:12px 13px !important}
    .month-metric:nth-child(2){grid-column:1 !important;grid-row:2 !important}
    .month-metric:nth-child(3){grid-column:2 !important;grid-row:2 !important}

    .month-metric.up{background:#EAF7FB !important;border-color:#C7E7F0 !important}
    .month-metric.flat{background:#F7F9FA !important;border-color:#E5ECEF !important}
    .month-metric.warn{background:#FFF6E9 !important;border-color:#F0D9B4 !important}
    .month-metric.down{background:#FFF1EE !important;border-color:#EFCFC8 !important}
    .month-metric.pending{background:#F5F7F8 !important;border-color:#E2E9EC !important}

    .mm-label{
      font-size:.50rem !important;font-weight:950 !important;letter-spacing:.055em !important;
      text-transform:uppercase !important;color:#708893 !important;margin:0 !important;
    }
    .month-metric:first-child .mm-label{font-size:.54rem !important}
    .mm-value{
      font-size:.79rem !important;line-height:1.05 !important;font-weight:950 !important;
      letter-spacing:-.025em !important;color:#173B4F !important;margin-top:5px !important;max-width:72% !important;
    }
    .month-metric:first-child .mm-value{font-size:1.20rem !important;margin-top:8px !important;max-width:75% !important}
    .mm-delta{
      position:absolute !important;right:10px !important;top:10px !important;font-size:.64rem !important;
      font-weight:950 !important;padding:4px 6px !important;border-radius:999px !important;
      background:rgba(255,255,255,.72) !important;white-space:nowrap !important;
    }
    .month-metric:first-child .mm-delta{right:12px !important;top:12px !important;font-size:.70rem !important;padding:5px 7px !important}
    .up .mm-delta{color:#08779F !important}.flat .mm-delta{color:#657F8B !important}
    .warn .mm-delta{color:#A56C18 !important}.down .mm-delta{color:#B84D47 !important}.pending .mm-delta{color:#7D929C !important}
    .mm-prev{
      position:absolute !important;left:11px !important;right:11px !important;bottom:9px !important;
      font-size:.49rem !important;line-height:1.15 !important;color:#6F8792 !important;
      white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;margin:0 !important;
    }
    .month-metric:first-child .mm-prev{left:13px !important;bottom:11px !important;font-size:.53rem !important}
    .month-foot{
      height:18px !important;margin-top:auto !important;padding-top:7px !important;font-size:.48rem !important;
      color:#82959E !important;line-height:1 !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;
    }
    .month-grid-legend{margin-top:13px !important;padding-top:11px !important;border-top:1px solid #E8F0F3 !important;gap:12px !important}
    .month-calendar-note{margin-top:8px;font-size:.57rem;line-height:1.45;color:#738B96}
    @media(max-width:1300px){.month-kpi-calendar{grid-template-columns:repeat(3,minmax(0,1fr)) !important}}
    @media(max-width:920px){.month-kpi-calendar{grid-template-columns:repeat(2,minmax(0,1fr)) !important}}
    @media(max-width:560px){.month-kpi-calendar{grid-template-columns:1fr !important}}


    /* V13 minimal agenda calendar */
    .agenda-month-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:14px;align-items:stretch}
    .agenda-month{background:#fff;border:1px solid #DDE8ED;border-radius:14px;padding:10px;height:148px;display:flex;flex-direction:column;overflow:hidden;transition:.15s ease}
    .agenda-month[hidden]{display:none!important}
    .agenda-month:hover{border-color:#C9DBE3;box-shadow:0 7px 18px rgba(24,69,91,.06);transform:translateY(-1px)}
    .agenda-month.current{border-color:#DCAF50;box-shadow:inset 0 0 0 1px rgba(220,175,80,.20)}
    .agenda-head{display:flex;align-items:center;justify-content:space-between;gap:7px;padding-bottom:7px;border-bottom:1px solid #EDF2F4;margin-bottom:6px}
    .agenda-month-name{font-size:.76rem;font-weight:950;letter-spacing:.035em;color:#1D465B;text-transform:uppercase}
    .agenda-state{font-size:.43rem;font-weight:900;letter-spacing:.03em;color:#8297A0;background:#F4F7F8;border-radius:999px;padding:3px 5px;white-space:nowrap}
    .agenda-month.current .agenda-state{color:#946718;background:#FFF7E8}
    .agenda-month.future .agenda-state{color:#0A789E;background:#EDF8FB}
    .agenda-events{display:flex;flex-direction:column;gap:4px;min-height:0;flex:1}
    .agenda-event{display:grid;grid-template-columns:7px minmax(0,1fr) auto;align-items:center;column-gap:6px;padding:4px 5px;border-radius:7px;min-height:28px;background:#FAFCFD}
    .agenda-dot{width:7px;height:7px;border-radius:50%;display:block}
    .agenda-event.up .agenda-dot{background:#1595BE}.agenda-event.flat .agenda-dot{background:#94A7AF}.agenda-event.warn .agenda-dot{background:#D5962D}.agenda-event.down .agenda-dot{background:#D86660}.agenda-event.pending .agenda-dot{background:#B1BDC3}
    .agenda-copy{min-width:0;line-height:1.08}
    .agenda-label{font-size:.46rem;font-weight:850;color:#6B838F;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .agenda-value{font-size:.60rem;font-weight:950;color:#183C50;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
    .agenda-delta{font-size:.50rem;font-weight:950;white-space:nowrap;padding-left:2px}
    .agenda-event.up .agenda-delta{color:#087CA5}.agenda-event.flat .agenda-delta{color:#6C828D}.agenda-event.warn .agenda-delta{color:#A76C16}.agenda-event.down .agenda-delta{color:#B94D47}.agenda-event.pending .agenda-delta{color:#84969E}
    .agenda-ref{margin-top:auto;padding-top:5px;font-size:.43rem;color:#8A9BA3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .agenda-legend{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px;font-size:.53rem;color:#778E99;font-weight:800}
    .agenda-legend span{display:flex;align-items:center;gap:5px}.agenda-legend i{width:7px;height:7px;border-radius:50%;display:inline-block}
    .agenda-note{margin-top:7px;font-size:.54rem;line-height:1.42;color:#768D98}
    @media(max-width:1380px){.agenda-month-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
    @media(max-width:980px){.agenda-month-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
    @media(max-width:700px){.agenda-month-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media(max-width:460px){.agenda-month-grid{grid-template-columns:1fr}}


    /* V15 - current value + A.A. faded inside each agenda event */
    .agenda-month{
      height:164px !important;
      min-height:164px !important;
      padding:10px !important;
    }
    .agenda-events{
      gap:5px !important;
    }
    .agenda-event{
      grid-template-columns:7px minmax(0,1fr) auto !important;
      align-items:center !important;
      min-height:34px !important;
      padding:4px 5px !important;
      background:#FAFCFD !important;
    }
    .agenda-copy{
      display:flex !important;
      flex-direction:column !important;
      min-width:0 !important;
      line-height:1.04 !important;
    }
    .agenda-label{
      font-size:.43rem !important;
      font-weight:850 !important;
      color:#758B95 !important;
      letter-spacing:.01em !important;
    }
    .agenda-value{
      font-size:.61rem !important;
      font-weight:950 !important;
      color:#173C50 !important;
      margin-top:2px !important;
    }
    .agenda-aa{
      font-size:.43rem !important;
      color:#A2AFB5 !important;
      margin-top:2px !important;
      white-space:nowrap !important;
      overflow:hidden !important;
      text-overflow:ellipsis !important;
    }
    .agenda-aa strong{
      color:#8D9CA3 !important;
      font-weight:850 !important;
    }
    .agenda-delta{
      font-size:.51rem !important;
      font-weight:950 !important;
      align-self:center !important;
      padding-left:5px !important;
    }
    .agenda-ref{
      display:none !important;
    }


    /* V16 - Better fullscreen use */
    :root{
      --dashboard-max-width: 1860px;
    }

    body .container,
    body .container-fluid,
    main,
    .dashboard-shell,
    .page-shell,
    .app-shell{
      max-width:var(--dashboard-max-width) !important;
    }

    /* Common Bootstrap/container wrappers used in this prototype */
    .container{
      width:min(96vw,var(--dashboard-max-width)) !important;
      max-width:var(--dashboard-max-width) !important;
      padding-left:20px !important;
      padding-right:20px !important;
    }

    .main-wrap,
    .content-wrap,
    .dashboard-wrap,
    .dashboard-container{
      width:min(96vw,var(--dashboard-max-width)) !important;
      max-width:var(--dashboard-max-width) !important;
      margin-left:auto !important;
      margin-right:auto !important;
    }

    /* Give panels more breathing room on large screens */
    .panel{
      padding:18px 20px !important;
    }

    /* Agenda: larger cards and better use of wide monitors */
    .agenda-month-grid{
      grid-template-columns:repeat(4,minmax(0,1fr)) !important;
      gap:14px !important;
      margin-top:16px !important;
    }

    .agenda-month{
      height:184px !important;
      min-height:184px !important;
      padding:12px 12px 10px !important;
      border-radius:16px !important;
    }

    .agenda-month-name{
      font-size:.86rem !important;
    }

    .agenda-state{
      font-size:.46rem !important;
      padding:4px 7px !important;
    }

    .agenda-events{
      gap:6px !important;
    }

    .agenda-event{
      min-height:38px !important;
      padding:5px 7px !important;
      grid-template-columns:8px minmax(0,1fr) auto !important;
      column-gap:8px !important;
      border-radius:9px !important;
    }

    .agenda-dot{
      width:8px !important;
      height:8px !important;
    }

    .agenda-label{
      font-size:.47rem !important;
    }

    .agenda-value{
      font-size:.68rem !important;
    }

    .agenda-aa{
      font-size:.46rem !important;
    }

    .agenda-delta{
      font-size:.56rem !important;
      padding-left:8px !important;
    }

    /* Wider executive chart areas on large monitors */
    @media (min-width:1500px){
      .canvas-wrap{
        min-height:280px;
      }

      .agenda-month-grid{
        grid-template-columns:repeat(4,minmax(0,1fr)) !important;
      }

      .cardx,
      .panel{
        width:100% !important;
      }
    }

    @media (min-width:1800px){
      .agenda-month-grid{
        grid-template-columns:repeat(4,minmax(0,1fr)) !important;
        gap:16px !important;
      }

      .agenda-month{
        height:190px !important;
        min-height:190px !important;
      }
    }

    @media (max-width:1280px){
      .agenda-month-grid{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
      }
    }

    @media (max-width:900px){
      .agenda-month-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
      }
    }

    @media (max-width:560px){
      .agenda-month-grid{
        grid-template-columns:1fr !important;
      }
      .agenda-month{
        height:174px !important;
        min-height:174px !important;
      }
    }


    /* V17 - Calendar alone, full width, compact vertically */
    .value-grid > .agenda-full-width{
      grid-column:1 / -1 !important;
      width:100% !important;
    }

    .agenda-full-width{
      padding:16px 18px !important;
    }

    .agenda-full-width .agenda-month-grid{
      grid-template-columns:repeat(6,minmax(0,1fr)) !important;
      gap:12px !important;
      margin-top:13px !important;
    }

    .agenda-full-width .agenda-month{
      height:154px !important;
      min-height:154px !important;
      max-height:154px !important;
      padding:9px 10px !important;
      border-radius:14px !important;
    }

    .agenda-full-width .agenda-head{
      padding-bottom:6px !important;
      margin-bottom:5px !important;
    }

    .agenda-full-width .agenda-events{
      gap:3px !important;
    }

    .agenda-full-width .agenda-event{
      min-height:31px !important;
      padding:3px 5px !important;
      grid-template-columns:7px minmax(0,1fr) auto !important;
      column-gap:6px !important;
      border-radius:7px !important;
    }

    .agenda-full-width .agenda-dot{
      width:7px !important;
      height:7px !important;
    }

    .agenda-full-width .agenda-label{
      font-size:.43rem !important;
    }

    .agenda-full-width .agenda-value{
      font-size:.61rem !important;
      margin-top:1px !important;
    }

    .agenda-full-width .agenda-aa{
      font-size:.42rem !important;
      margin-top:1px !important;
    }

    .agenda-full-width .agenda-delta{
      font-size:.50rem !important;
      padding-left:4px !important;
    }

    .agenda-full-width .agenda-note{
      margin-top:6px !important;
    }

    @media(max-width:1500px){
      .agenda-full-width .agenda-month-grid{
        grid-template-columns:repeat(4,minmax(0,1fr)) !important;
      }
    }

    @media(max-width:980px){
      .agenda-full-width .agenda-month-grid{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
      }
    }

    @media(max-width:700px){
      .agenda-full-width .agenda-month-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
      }
    }

    @media(max-width:460px){
      .agenda-full-width .agenda-month-grid{
        grid-template-columns:1fr !important;
      }
    }


    /* V18 - Agenda typography larger, same compact height */
    .agenda-full-width .agenda-month{
      height:154px !important;
      min-height:154px !important;
      max-height:154px !important;
    }
    .agenda-full-width .agenda-month-name{
      font-size:.90rem !important;
    }
    .agenda-full-width .agenda-state{
      font-size:.48rem !important;
      padding:3px 6px !important;
    }
    .agenda-full-width .agenda-event{
      min-height:32px !important;
      padding:3px 5px !important;
    }
    .agenda-full-width .agenda-label{
      font-size:.47rem !important;
      line-height:1.02 !important;
    }
    .agenda-full-width .agenda-value{
      font-size:.69rem !important;
      line-height:1.02 !important;
      margin-top:1px !important;
    }
    .agenda-full-width .agenda-aa{
      font-size:.46rem !important;
      line-height:1.02 !important;
      margin-top:1px !important;
    }
    .agenda-full-width .agenda-delta{
      font-size:.55rem !important;
      font-weight:950 !important;
    }


    /* V19 - Monthly ticket evolution */
    .ticket-panel{min-width:0}
    .ticket-summary-row{
      display:grid;
      grid-template-columns:repeat(3,1fr);
      gap:8px;
      margin-top:10px
    }
    .ticket-summary{
      border:1px solid #E1EBEF;
      background:#FAFCFD;
      border-radius:12px;
      padding:9px 10px;
      display:flex;
      flex-direction:column;
      min-width:0
    }
    .ticket-summary span{
      font-size:.48rem;
      text-transform:uppercase;
      letter-spacing:.045em;
      font-weight:900;
      color:#7B919B
    }
    .ticket-summary strong{
      font-size:.86rem;
      font-weight:950;
      color:#183E53;
      margin-top:2px
    }
    .ticket-summary small{
      font-size:.48rem;
      color:#8498A1;
      margin-top:1px
    }
    @media(max-width:760px){
      .ticket-summary-row{grid-template-columns:1fr}
    }


    /* V20 - First row: Faturamento + Ticket lado a lado */
    .value-grid{
      grid-template-columns:repeat(2,minmax(0,1fr)) !important;
      gap:16px !important;
      align-items:start !important;
    }

    .value-grid > .primary-chart-panel{
      grid-column:auto !important;
      width:100% !important;
      min-width:0 !important;
    }

    .value-grid > .agenda-full-width{
      grid-column:1 / -1 !important;
      width:100% !important;
    }

    .primary-chart-panel .canvas-wrap.tall,
    .ticket-panel .canvas-wrap{
      height:350px !important;
      min-height:350px !important;
    }

    .ticket-panel .panel-head{
      margin-bottom:2px !important;
    }

    @media(max-width:1050px){
      .value-grid{
        grid-template-columns:1fr !important;
      }
      .value-grid > .primary-chart-panel,
      .value-grid > .agenda-full-width{
        grid-column:1 !important;
      }
    }


    /* V21 - Ticket chart render fix */
    .ticket-panel .canvas-wrap{
      position:relative !important;
      width:100% !important;
      height:350px !important;
      min-height:350px !important;
    }
    .ticket-panel canvas{
      display:block !important;
      width:100% !important;
      height:100% !important;
    }


    /* V23 - Agenda com tipografia maior e leitura executiva */
    .agenda-full-width .agenda-month{
      height:164px !important;
      min-height:164px !important;
      max-height:164px !important;
      padding:10px 11px !important;
    }

    .agenda-full-width .agenda-head{
      padding-bottom:6px !important;
      margin-bottom:5px !important;
    }

    .agenda-full-width .agenda-month-name{
      font-size:1.05rem !important;
      line-height:1 !important;
      letter-spacing:.025em !important;
    }

    .agenda-full-width .agenda-state{
      font-size:.56rem !important;
      padding:4px 7px !important;
      line-height:1 !important;
    }

    .agenda-full-width .agenda-events{
      gap:4px !important;
    }

    .agenda-full-width .agenda-event{
      min-height:35px !important;
      padding:4px 6px !important;
      grid-template-columns:8px minmax(0,1fr) auto !important;
      column-gap:7px !important;
    }

    .agenda-full-width .agenda-dot{
      width:8px !important;
      height:8px !important;
    }

    .agenda-full-width .agenda-label{
      font-size:.56rem !important;
      line-height:1 !important;
      font-weight:900 !important;
    }

    .agenda-full-width .agenda-value{
      font-size:.82rem !important;
      line-height:1.05 !important;
      margin-top:2px !important;
      font-weight:950 !important;
    }

    .agenda-full-width .agenda-aa{
      font-size:.53rem !important;
      line-height:1 !important;
      margin-top:2px !important;
    }

    .agenda-full-width .agenda-aa strong{
      font-size:.53rem !important;
    }

    .agenda-full-width .agenda-delta{
      font-size:.65rem !important;
      line-height:1 !important;
      padding-left:5px !important;
      font-weight:950 !important;
    }

    .agenda-full-width .agenda-legend{
      font-size:.60rem !important;
    }

    .agenda-full-width .agenda-note{
      font-size:.60rem !important;
      line-height:1.35 !important;
    }

    @media(max-width:1500px){
      .agenda-full-width .agenda-month{
        height:170px !important;
        min-height:170px !important;
        max-height:170px !important;
      }
    }



/* QLIK EMBEDDED - online only gate */
body.qlik-locked{overflow:hidden}
body.qlik-locked .app{visibility:hidden}
#qlikGate{
  position:fixed; inset:0; z-index:99999; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(145deg,#f5fafc 0%,#eef7fa 100%); color:#173547;
  font-family:Inter,system-ui,sans-serif;
}
#qlikGate.hidden{display:none}
.qlik-gate-card{
  width:min(520px,calc(100vw - 36px)); background:#fff; border:1px solid #d9e8ee;
  border-radius:22px; padding:28px; box-shadow:0 22px 60px rgba(21,61,88,.12); text-align:center;
}
.qlik-spinner{width:34px;height:34px;margin:0 auto 14px;border-radius:50%;border:3px solid #dcecf1;border-top-color:#096A9D;animation:qlikspin .8s linear infinite}
@keyframes qlikspin{to{transform:rotate(360deg)}}
.qlik-gate-title{font-size:1.02rem;font-weight:950;margin-bottom:6px;color:#153D58}
.qlik-gate-sub{font-size:.72rem;color:#718894;line-height:1.5}
.qlik-gate-error{display:none;margin-top:14px;padding:11px 12px;border-radius:12px;background:#fff3f3;color:#a4424c;font-size:.68rem;line-height:1.45;text-align:left}
#qlikGate.error .qlik-spinner{display:none}
#qlikGate.error .qlik-gate-error{display:block}
.panel-live-error{min-height:180px;display:flex;align-items:center;justify-content:center;text-align:center;color:#8ba0aa;font-size:.72rem;border:1px dashed #d9e5ea;border-radius:14px;background:#fbfdfe;padding:20px}



/* Qlik associative filter panel */
.filter-fixed{cursor:default!important;background:#f8fbfc!important;color:#607985!important}
.qlik-filter-toggle{display:inline-flex!important;align-items:center!important;gap:5px}
.qlik-filter-toggle strong{min-width:18px;height:18px;padding:0 5px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#0A6D9F;color:#fff;font-size:.53rem}
.qlik-filter-toggle.has-partial strong{background:#F3C864;color:#674706;box-shadow:0 0 0 2px rgba(255,255,255,.42)}
.qlik-clear-btn{color:#B65353!important;border-color:#EBD2D2!important;background:#FFF9F9!important}
.qlik-filter-panel{margin:0 auto 14px;width:min(96vw,1860px);border:1px solid #dce8ed;border-radius:0 0 18px 18px;background:#fff;padding:14px 16px 12px;box-shadow:0 10px 28px rgba(23,61,80,.07);position:relative;z-index:20}
.qlik-filter-panel[hidden]{display:none!important}
.qlik-filter-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:12px}
.qlik-filter-head strong{display:block;color:#173f54;font-size:.78rem;font-weight:950}
.qlik-filter-head span{display:block;color:#7a919c;font-size:.55rem;margin-top:2px}
.qlik-selection-summary{max-width:48%;text-align:right!important;color:#52717f!important;font-size:.57rem!important;font-weight:800}
.qlik-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.qlik-filter-card{border:1px solid #e3ecef;border-radius:13px;background:#fbfdfe;padding:10px;min-width:0}
.qlik-filter-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px;color:#284f62;font-size:.61rem;font-weight:950;text-transform:uppercase;letter-spacing:.035em}
.qlik-filter-title small{font-size:.46rem;color:#8aa0a9;text-transform:none;letter-spacing:0;font-weight:800}
.qlik-filter-search{width:100%;border:1px solid #dce8ed;border-radius:9px;background:#fff;padding:7px 9px;font:700 .58rem Inter,system-ui,sans-serif;color:#264b5d;outline:none;margin-bottom:8px}
.qlik-filter-search:focus{border-color:#42a7c7;box-shadow:0 0 0 3px rgba(24,185,214,.09)}
.qlik-filter-values{display:flex;gap:5px;flex-wrap:wrap;max-height:112px;overflow:auto;align-content:flex-start;padding-right:3px}
.qlik-filter-value{border:1px solid #dce7eb;border-radius:999px;background:#fff;color:#4e6976;padding:5px 8px;font:850 .53rem Inter,system-ui,sans-serif;cursor:pointer;transition:.13s ease;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qlik-filter-value:hover{border-color:#9bcbd9;background:#f5fbfd}
.qlik-filter-value:disabled{cursor:not-allowed;opacity:.52;background:#F4F6F7;border-color:#E3E9EB;color:#8999A0}
.qlik-filter-value.state-S,.qlik-filter-value.state-XS,.qlik-filter-value.state-L,.qlik-filter-value.state-XL{background:#0A6D9F;border-color:#0A6D9F;color:#fff}
.qlik-filter-value.state-PS{background:#FFF4D9;border-color:#E3B85A;color:#815B0E;box-shadow:inset 0 0 0 1px rgba(227,184,90,.2)}
.qlik-filter-value.state-A{background:#eef8fb;border-color:#b9dce6;color:#167694}
.qlik-filter-value.state-X{background:#f3f5f6;border-color:#e2e7e9;color:#a1adb2}
.qlik-filter-value.state-L{background:#0A6D9F;border-color:#0A6D9F;color:#fff;box-shadow:inset 0 0 0 2px rgba(255,255,255,.25)}
.qlik-filter-loading{font-size:.54rem;color:#91a3aa;padding:5px}
.qlik-filter-legend{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:9px;color:#78909a;font-size:.49rem;font-weight:800}
.qlik-filter-legend span{display:inline-flex;align-items:center;gap:4px}
.qlik-filter-legend i{width:7px;height:7px;border-radius:50%;display:inline-block}
.qlik-filter-legend .state-s{background:#0A6D9F}.qlik-filter-legend .state-o{background:#b8c7cd}.qlik-filter-legend .state-a{background:#44a7c4}.qlik-filter-legend .state-x{background:#d9dfe2}
.qlik-filter-legend em{margin-left:auto;font-style:normal;color:#6a8591}
.qlik-clickable-chart{cursor:pointer!important}
body.qlik-filtering .qlik-clear-btn,body.qlik-filtering .qlik-active-selections-clear,body.qlik-filtering .qlik-chart-multi-toggle,body.qlik-filtering .qlik-clickable-chart{pointer-events:none}
body.qlik-filtering .qlik-filter-panel{opacity:.72}
body.qlik-year-switching .tabpage.active{pointer-events:none}
body.qlik-year-switching .year-reference-control{opacity:1}
.qlik-filter-feedback{min-height:0;margin:0;color:#6C8490;font-size:.54rem;font-weight:850;transition:.15s ease}
.qlik-filter-feedback:not(:empty){position:fixed;top:72px;right:18px;z-index:10020;width:min(420px,calc(100vw - 36px));margin:0;padding:10px 12px;border:1px solid #CFE4EC;border-radius:11px;background:#F0F8FB;color:#176D91;box-shadow:0 12px 30px rgba(20,61,80,.16)}
.qlik-filter-feedback.is-error:not(:empty){background:#FFF1F2;color:#A7424C}
@media(max-width:900px){.qlik-filter-grid{grid-template-columns:1fr}.qlik-filter-head{flex-direction:column}.qlik-selection-summary{max-width:none;text-align:left!important}.qlik-filter-panel{width:calc(100% - 20px)}}


/* V24 - Drill-down associativo + gráficos de contexto */
.qlik-filter-grid{display:block!important}
.qlik-drill-path{font-size:.58rem;font-weight:850;color:#6f8792;background:#f5f9fb;border:1px solid #e1ebef;border-radius:10px;padding:7px 9px;margin-bottom:8px}
.qlik-drill-stack{display:grid;gap:7px}
.qlik-drill-step{border:1px solid #e1ebef;border-radius:12px;background:#fbfdfe;overflow:hidden}
.qlik-drill-step[open]{background:#fff;border-color:#cfe1e8}
.qlik-drill-step summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 10px;color:#294f61}
.qlik-drill-step summary::-webkit-details-marker{display:none}
.qlik-drill-no{width:24px;height:24px;border-radius:8px;background:#eaf6fa;color:#0a719f;display:grid;place-items:center;font-size:.58rem;font-weight:950}
.qlik-drill-name{font-size:.64rem;font-weight:950}
.qlik-drill-meta{font-size:.49rem;font-weight:850;color:#8197a0;white-space:nowrap}
.qlik-drill-body{padding:0 10px 10px;border-top:1px solid #edf3f5}
.qlik-drill-body .qlik-filter-search{margin-top:8px}
.qlik-drill-selected{display:flex;gap:4px;flex-wrap:wrap;margin:7px 0 0}
.qlik-drill-selected:empty{display:none}
.qlik-selected-chip{display:inline-flex;align-items:center;gap:4px;border:0;font:900 .48rem Inter,system-ui,sans-serif;color:#096a9d;background:#e9f6fa;border-radius:999px;padding:4px 7px;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.qlik-selected-chip:hover{background:#DCEFF5}.qlik-selected-chip span{font-size:.62rem;line-height:1}
.qlik-selected-chip.is-partial{color:#815B0E;background:#FFF4D9;box-shadow:inset 0 0 0 1px #E3B85A}
.qlik-filter-values{max-height:145px!important}
.qlik-filter-unavailable{font-size:.53rem;color:#95a5ac;padding:9px 2px;display:block}
.qlik-filter-limit{flex-basis:100%;font-size:.49rem;color:#7C929C;padding:5px 2px 1px}
.qlik-clickable-chart{cursor:pointer}
.context-chart-panel{min-width:0}
.conversion-chart-wrap{position:relative}
.qlik-chart-empty{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:30px;color:#81949c;font-size:.72rem;font-weight:850;background:rgba(250,252,253,.94);border-radius:12px}
.qlik-chart-empty[hidden]{display:none!important}
@media(max-width:900px){.qlik-drill-step summary{grid-template-columns:28px minmax(0,1fr)}.qlik-drill-meta{grid-column:2}}


/* Conversão - visual analytics */
.mix-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}
.mix-kpi{padding:16px 17px;min-height:118px;display:flex;flex-direction:column;justify-content:space-between}
.mix-kpi .mk-label{font-size:.62rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#718894}
.mix-kpi .mk-value{font-size:1.72rem;line-height:1;font-weight:950;color:#153d58;margin-top:8px;letter-spacing:-.04em}
.mix-kpi .mk-compare{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:.60rem;font-weight:850;color:#718894;margin-top:9px}
.mix-kpi .mk-aa{color:#6f8794}
#receita .mix-kpi .mk-label strong{color:#096A9D;font-weight:950}
#receita .mix-kpi .mk-compare{align-items:flex-start;flex-direction:column;gap:4px}
#receita .mix-kpi .mk-aa{display:block;line-height:1.35}
.mix-grid{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(360px,.78fr);gap:14px;margin-top:14px}
.mix-grid.equal{grid-template-columns:repeat(2,minmax(0,1fr))}
.mix-panel{min-width:0}
.mix-panel .canvas-wrap{height:365px}
.mix-table-wrap{overflow:auto;max-height:365px;border:1px solid #edf3f5;border-radius:12px}
.mix-table{font-size:.64rem;margin:0}
.mix-table thead th{position:sticky;top:0;background:#f7fbfc;z-index:1;font-size:.54rem;text-transform:uppercase;letter-spacing:.05em;color:#708791;white-space:nowrap;padding:.62rem .55rem;border-bottom:1px solid #e2ecef}
.mix-table tbody td{padding:.62rem .55rem;vertical-align:middle;border-color:#eef4f6;white-space:nowrap;color:#385767}
.mix-table tbody td:first-child{white-space:normal;min-width:160px;font-weight:800;color:#173f56}
.mix-table tbody tr[data-filter-text]{cursor:pointer;transition:background .16s ease}
.mix-table tbody tr[data-filter-text]:hover{background:#eef9fc}
.mix-table .share-cell{font-weight:900;color:#0a719f}
.mix-empty{min-height:250px;display:grid;place-items:center;text-align:center;padding:24px;border:1px dashed #cfdee4;border-radius:12px;background:#f9fcfd;color:#718894;font-size:.66rem;font-weight:800}
.mix-source-chip{font-size:.52rem;font-weight:900;color:#0a719f;background:#e9f7fb;border:1px solid #ccebf3;border-radius:999px;padding:5px 8px;white-space:nowrap}
.mix-chart-note{font-size:.55rem;color:#7c919a;margin-top:8px;font-weight:750}

/* Funil de vendas · Conversão */
.mix-funnel-panel{margin-top:14px;overflow:hidden}
.mix-funnel-panel .panel-head{align-items:center;justify-content:center;text-align:center}
.sales-funnel-wrap{max-width:760px;margin:6px auto 0;padding:0 8px 4px}
.sales-funnel-stack{display:flex;flex-direction:column;align-items:flex-start;gap:0;margin-top:8px;padding-right:140px;position:relative}
.sales-funnel-step{width:100%;display:flex;justify-content:center;position:relative}
.sales-funnel-stage{width:var(--funnel-w,100%);max-width:100%;position:relative;z-index:1;transform-origin:center;will-change:width,transform,filter,opacity;transition:width .44s cubic-bezier(.22,.8,.24,1),transform .2s ease,filter .2s ease,opacity .2s ease;filter:drop-shadow(0 5px 9px rgba(24,61,82,.055))}
.sales-funnel-stage::after{content:"";position:absolute;left:calc(100% - 2px);top:0;width:420px;border-top:1px dashed #9DB3BD;opacity:.78;z-index:2}
.sales-funnel-step:last-child .sales-funnel-stage::before{content:"";position:absolute;left:calc(100% - 2px);bottom:0;width:420px;border-top:1px dashed #9DB3BD;opacity:.78;z-index:2}
.sales-funnel-shape{height:104px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden;padding:10px 44px;color:#fff;clip-path:polygon(0 0,100% 0,calc(100% - var(--funnel-inset,6%)) 100%,var(--funnel-inset,6%) 100%);background:linear-gradient(135deg,#075d8c,#0e82aa);border-bottom:1px solid rgba(255,255,255,.16);transition:filter .2s ease}
.sales-funnel-step:nth-of-type(3) .sales-funnel-shape{background:linear-gradient(135deg,#096890,#128cad)}
.sales-funnel-step:nth-of-type(5) .sales-funnel-shape{background:linear-gradient(135deg,#0c709a,#1596b5)}
.sales-funnel-step:nth-of-type(7) .sales-funnel-shape{background:linear-gradient(135deg,#117b9d,#1d9fb6)}
.sales-funnel-step:nth-of-type(9) .sales-funnel-shape{background:linear-gradient(135deg,#14839f,#26a4b5)}
.sales-funnel-content{width:100%;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;line-height:1}
.sales-funnel-label{max-width:100%;font-size:.74rem;font-weight:920;letter-spacing:.01em;white-space:normal;overflow-wrap:anywhere}
.sales-funnel-value{max-width:100%;font-size:1.68rem;font-weight:960;letter-spacing:-.035em;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sales-funnel-rate{max-width:100%;font-size:.54rem;font-weight:820;color:rgba(255,255,255,.84);line-height:1.15;white-space:normal}
.sales-funnel-rate strong{font-size:.58rem;font-weight:950;color:#fff}
.sales-funnel-base{opacity:.8}
.sales-funnel-loss{position:absolute;left:auto;right:0;top:calc(var(--funnel-loss-position,33.333%) + 30px);z-index:6;width:132px;height:44px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:4px 7px;background:rgba(255,255,255,.94);color:#8A4A31;font-size:.60rem;font-weight:850;line-height:1.1;pointer-events:none}
.sales-funnel-loss::before{display:none}
.sales-funnel-loss strong{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:3px;font-size:.71rem;font-weight:950;color:#A8472B;white-space:nowrap;text-align:right}
.sales-funnel-loss>span{order:-1;color:#6E8089;font-weight:800;text-transform:uppercase;letter-spacing:.07em;text-align:left}
.sales-funnel-loss .funnel-loss-rate{color:#C05A37;font-size:.66rem}

.sales-funnel-content{transition:transform .2s ease,filter .2s ease}
.sales-funnel-step:hover{z-index:8}
.sales-funnel-step:hover .sales-funnel-stage{z-index:8;filter:drop-shadow(0 11px 18px rgba(16,79,105,.20))}
.sales-funnel-step:hover .sales-funnel-shape{filter:brightness(1.09) saturate(1.07)}
.sales-funnel-step:hover .sales-funnel-content{transform:scale(1.035);filter:drop-shadow(0 2px 5px rgba(0,0,0,.10))}
.sales-funnel-stack:hover .sales-funnel-step:not(:hover) .sales-funnel-stage{opacity:.86}
@media (prefers-reduced-motion:reduce){.sales-funnel-stage,.sales-funnel-shape,.sales-funnel-content{transition:none!important}.sales-funnel-step:hover .sales-funnel-content{transform:none}}
@media(max-width:1100px){.mix-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mix-grid,.mix-grid.equal{grid-template-columns:1fr}}
@media(max-width:650px){.mix-kpi-grid{grid-template-columns:1fr}.mix-panel .canvas-wrap{height:330px}.sales-funnel-wrap{max-width:100%;padding-inline:0}.sales-funnel-stack{padding-right:112px}.sales-funnel-stage{width:var(--funnel-w,100%)!important;min-width:0}.sales-funnel-stage::after,.sales-funnel-step:last-child .sales-funnel-stage::before{width:360px}.sales-funnel-shape{height:82px;padding:7px 20px}.sales-funnel-label{font-size:.60rem}.sales-funnel-value{font-size:1.18rem}.sales-funnel-rate{font-size:.45rem}.sales-funnel-loss{left:auto;right:0;top:calc(var(--funnel-loss-position,33.333%) + 19px);width:104px;height:44px;font-size:.48rem;padding:2px 4px;gap:4px}.sales-funnel-loss strong{font-size:.56rem}.sales-funnel-loss .funnel-loss-rate{font-size:.53rem}}


/* ========================================================================== */
/* Agenda Comercial V2 · agenda diaria paginada por mes                     */
/* ========================================================================== */
#capacidade .agenda-commercial-head{align-items:flex-end}
#capacidade .agenda-commercial-head .summary-pill{white-space:nowrap}
.com-agenda-panel{margin-top:14px;overflow:hidden}
.com-agenda-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding-bottom:14px;border-bottom:1px solid #e6eff2}
.com-agenda-period{display:flex;align-items:center;gap:10px;min-width:0}
.com-agenda-nav{width:38px;height:38px;border:1px solid #d9e7ec;background:#fff;border-radius:12px;display:grid;place-items:center;color:#194c65;font-size:1.18rem;font-weight:950;cursor:pointer;transition:.17s ease;box-shadow:0 3px 10px rgba(24,69,91,.03)}
.com-agenda-nav:hover:not(:disabled){transform:translateY(-1px);border-color:#9fc9d8;background:#f6fbfd;box-shadow:0 7px 16px rgba(24,69,91,.08)}
.com-agenda-nav:disabled{opacity:.32;cursor:default;box-shadow:none}
.com-agenda-period-copy{min-width:190px;text-align:center}
.com-agenda-month-title{font-size:1.05rem;line-height:1;font-weight:950;letter-spacing:-.035em;color:#153d58;text-transform:capitalize}
.com-agenda-month-sub{font-size:.57rem;color:#81959e;font-weight:800;margin-top:5px}
.com-agenda-today{border:1px solid #cde2e9;background:#f4fafc;border-radius:999px;padding:7px 11px;color:#0a719f;font-size:.56rem;font-weight:900;cursor:pointer;white-space:nowrap;transition:.16s ease}
.com-agenda-today:hover{background:#eaf7fb;border-color:#a8d2df}
.com-agenda-source{font-size:.53rem;font-weight:900;color:#0a719f;background:#e9f7fb;border:1px solid #ccebf3;border-radius:999px;padding:6px 9px;white-space:nowrap}
.com-agenda-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.com-agenda-kpi{border:1px solid #e1ebef;border-radius:15px;background:linear-gradient(145deg,#fff,#f9fcfd);padding:12px 13px;min-width:0}
.com-agenda-kpi-label{font-size:.51rem;font-weight:900;color:#7b9099;letter-spacing:.055em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.com-agenda-kpi-value{font-size:1.30rem;line-height:1;font-weight:950;color:#173f56;letter-spacing:-.035em;margin-top:7px}
.com-agenda-kpi-note{font-size:.52rem;color:#879aa2;font-weight:750;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.com-agenda-weekdays,.com-agenda-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.com-agenda-weekdays{margin-bottom:7px}
.com-agenda-weekdays div{text-align:center;font-size:.49rem;font-weight:950;color:#8798a0;letter-spacing:.06em;text-transform:uppercase;padding:2px 0}
.com-agenda-day{appearance:none;width:100%;height:138px;border:1px solid #e0ebef;border-radius:15px;background:#fff;text-align:left;padding:10px 10px 9px;cursor:pointer;position:relative;overflow:hidden;display:flex;flex-direction:column;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;color:inherit;font-family:inherit}
.com-agenda-day:hover{z-index:2;transform:translateY(-2px);border-color:#a8d2df;box-shadow:0 10px 22px rgba(24,69,91,.09)}
.com-agenda-day.is-selected{border-color:#1595be;box-shadow:inset 0 0 0 1px rgba(21,149,190,.32),0 9px 20px rgba(24,69,91,.07)}
.com-agenda-day.is-today{border-color:#d7ac4e;box-shadow:inset 0 0 0 1px rgba(215,172,78,.22)}
.com-agenda-day.is-empty{background:#fafcfd;border-color:#e9eff2}
.com-agenda-day.is-empty:hover{border-color:#d7e4e9}
.com-agenda-day.is-blank{visibility:hidden;pointer-events:none}
.com-agenda-day-top{display:flex;align-items:flex-start;justify-content:space-between;gap:7px}
.com-agenda-day-num{display:flex;align-items:baseline;gap:5px;min-width:0}
.com-agenda-day-num strong{font-size:.82rem;font-weight:950;color:#173f56;line-height:1}
.com-agenda-day-num span{font-size:.43rem;font-weight:900;color:#8a9ba3;letter-spacing:.045em;text-transform:uppercase}
.com-agenda-state{font-size:.40rem;font-weight:950;letter-spacing:.04em;border-radius:999px;padding:3px 5px;background:#f1f5f7;color:#84959d;white-space:nowrap}
.com-agenda-day.is-today .com-agenda-state{background:#fff4db;color:#9b6910}
.com-agenda-day.is-future.has-data .com-agenda-state{background:#e9f7fb;color:#08759e}
.com-agenda-main{display:flex;align-items:baseline;gap:5px;margin-top:12px}
.com-agenda-main strong{font-size:1.38rem;line-height:1;font-weight:960;color:#0b6f9c;letter-spacing:-.045em}
.com-agenda-main span{font-size:.47rem;font-weight:850;color:#7c919b}
.com-agenda-day.is-empty .com-agenda-main strong{color:#aab7bd}
.com-agenda-mini{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:auto;padding-top:8px;border-top:1px solid #edf2f4}
.com-agenda-mini div{min-width:0}
.com-agenda-mini span{display:block;font-size:.40rem;color:#8a9ba3;font-weight:850;text-transform:uppercase;letter-spacing:.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.com-agenda-mini strong{display:block;font-size:.58rem;color:#365767;font-weight:950;margin-top:2px}
.com-agenda-empty-copy{margin-top:auto;padding-top:8px;font-size:.46rem;color:#a0adb3;font-weight:800}
.com-agenda-detail{margin-top:14px;border:1px solid #dfeaf0;border-radius:17px;background:linear-gradient(180deg,#fbfdfe,#f8fbfc);padding:14px 15px}
.com-agenda-detail-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding-bottom:11px;border-bottom:1px solid #e5edf1}
.com-agenda-detail-date{font-size:.78rem;font-weight:950;color:#173f56;letter-spacing:-.015em;text-transform:capitalize}
.com-agenda-detail-sub{font-size:.51rem;color:#82969f;font-weight:800;margin-top:4px}
.com-agenda-detail-total{display:flex;align-items:baseline;gap:5px;white-space:nowrap}
.com-agenda-detail-total strong{font-size:1.18rem;line-height:1;font-weight:960;color:#0a719f}
.com-agenda-detail-total span{font-size:.48rem;font-weight:850;color:#83959d}
.com-agenda-detail-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.com-agenda-detail-item{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid #e5edf1;background:#fff;border-radius:12px;padding:8px 9px;min-width:0}
.com-agenda-detail-avatar{width:30px;height:30px;border-radius:9px;background:#eaf6fa;color:#0a719f;display:grid;place-items:center;font-size:.51rem;font-weight:950}
.com-agenda-detail-copy{min-width:0}
.com-agenda-detail-doc{font-size:.55rem;color:#1d465b;font-weight:920;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.com-agenda-detail-spec{font-size:.46rem;color:#84969e;font-weight:780;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.com-agenda-detail-qty{font-size:.70rem;color:#0a719f;font-weight:960}
.com-agenda-detail-empty{grid-column:1/-1;padding:16px;border:1px dashed #d5e3e8;border-radius:12px;background:#fff;text-align:center;color:#879aa2;font-size:.54rem;font-weight:800}
.com-agenda-foot{margin-top:10px;font-size:.50rem;line-height:1.42;color:#84969e;font-weight:740}
@media(max-width:1200px){.com-agenda-detail-list{grid-template-columns:repeat(2,minmax(0,1fr))}.com-agenda-day{height:132px}}
@media(max-width:900px){.com-agenda-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.com-agenda-weekdays,.com-agenda-grid{gap:5px}.com-agenda-day{height:122px;padding:8px}.com-agenda-detail-list{grid-template-columns:1fr}}
@media(max-width:680px){.com-agenda-toolbar{grid-template-columns:1fr}.com-agenda-source{justify-self:start}.com-agenda-period{justify-content:center}.com-agenda-weekdays{display:none}.com-agenda-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.com-agenda-day.is-blank{display:none}.com-agenda-day{height:124px}.com-agenda-detail-head{grid-template-columns:1fr}.com-agenda-detail-total{justify-content:flex-start}}
@media(max-width:430px){.com-agenda-kpis{grid-template-columns:1fr}.com-agenda-grid{grid-template-columns:1fr}.com-agenda-day{height:118px}.com-agenda-period-copy{min-width:150px}}



/* ========================================================================== */
/* Agenda Comercial V3 · financeiro realizado + agenda futura                */
/* Cores seguem o Painel Executivo: real=#096A9D, hoje=#D79A27, futuro=#18B9D6 */
/* ========================================================================== */
#capacidade .agenda-commercial-head h2{font-size:1.72rem!important}
#capacidade .agenda-commercial-head p{font-size:.78rem!important;line-height:1.45!important}
.com-agenda-month-title{font-size:1.32rem!important}
.com-agenda-month-sub{font-size:.68rem!important}
.com-agenda-nav{width:42px!important;height:42px!important;font-size:1.35rem!important}
.com-agenda-today{font-size:.66rem!important;padding:8px 13px!important}
.com-agenda-source{font-size:.62rem!important;padding:7px 10px!important}
.com-agenda-kpi{padding:14px 15px!important;border-radius:17px!important;position:relative;overflow:hidden}
.com-agenda-kpi::after{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;background:#096A9D}
.com-agenda-kpi:nth-child(2)::after{background:#D79A27}.com-agenda-kpi:nth-child(3)::after{background:#119A7D}.com-agenda-kpi:nth-child(4)::after{background:#18B9D6}
.com-agenda-kpi-label{font-size:.61rem!important}
.com-agenda-kpi-value{font-size:1.58rem!important;margin-top:8px!important}
.com-agenda-kpi-note{font-size:.62rem!important;margin-top:6px!important}
.com-agenda-weekdays div{font-size:.58rem!important;padding:4px 0!important}
.com-agenda-grid{gap:9px!important}
.com-agenda-day{height:186px!important;padding:11px 11px 10px!important;border-radius:16px!important}
.com-agenda-day::after{content:'';position:absolute;left:0;right:0;bottom:0;height:4px;background:#B1BDC3;opacity:.62}
.com-agenda-day.is-past.has-finance::after{background:#096A9D;opacity:1}
.com-agenda-day.is-today::after{background:#D79A27;opacity:1}
.com-agenda-day.is-future.has-data::after{background:#18B9D6;opacity:1}
.com-agenda-day.is-past.has-finance{background:linear-gradient(180deg,rgba(9,106,157,.045),#fff 54%)!important}
.com-agenda-day.is-today{background:linear-gradient(180deg,rgba(215,154,39,.085),#fff 56%)!important}
.com-agenda-day.is-future.has-data{background:linear-gradient(180deg,rgba(24,185,214,.075),#fff 56%)!important}
.com-agenda-day.is-selected{border-color:#1595BE!important;box-shadow:inset 0 0 0 1px rgba(21,149,190,.28),0 10px 22px rgba(24,69,91,.08)!important}
.com-agenda-day-num strong{font-size:1.02rem!important}
.com-agenda-day-num span{font-size:.51rem!important}
.com-agenda-state{font-size:.48rem!important;padding:4px 6px!important}
.com-agenda-day.is-past.has-finance .com-agenda-state{background:#EAF5F9;color:#096A9D}
.com-agenda-day.is-today .com-agenda-state{background:#FFF3DA;color:#946718}
.com-agenda-day.is-future.has-data .com-agenda-state{background:#E8F8FC;color:#08759E}
.com-day-metrics{display:flex;flex-direction:column;gap:5px;margin-top:9px;min-height:0}
.com-day-metric{display:grid;grid-template-columns:7px minmax(0,1fr) auto;align-items:center;column-gap:7px;min-height:34px;padding:5px 6px;border-radius:9px;background:rgba(248,251,252,.88);border:1px solid rgba(226,237,241,.86)}
.com-day-dot{width:7px;height:7px;border-radius:50%;background:#096A9D}
.com-day-metric.ticket .com-day-dot{background:#119A7D}
.com-day-metric.qty .com-day-dot{background:#D79A27}
.com-agenda-day.is-future .com-day-dot,.com-agenda-day.is-future .com-day-metric.ticket .com-day-dot,.com-agenda-day.is-future .com-day-metric.qty .com-day-dot{background:#18B9D6}
.com-day-copy{min-width:0;line-height:1.05}
.com-day-label{font-size:.52rem;color:#718894;font-weight:860;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.com-day-value{font-size:.72rem;color:#173F56;font-weight:950;white-space:nowrap;margin-top:2px;letter-spacing:-.015em}
.com-day-side{font-size:.50rem;color:#7E929B;font-weight:880;white-space:nowrap}
.com-day-foot{margin-top:auto;padding-top:6px;font-size:.50rem;color:#7D919A;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.com-agenda-legend{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;margin:13px 0 2px;padding-top:11px;border-top:1px solid #E7EFF2;font-size:.59rem;color:#758D98;font-weight:850}
.com-agenda-legend span{display:flex;align-items:center;gap:6px}.com-agenda-legend i{width:9px;height:9px;border-radius:3px;display:inline-block}
.com-agenda-detail{padding:16px 17px!important}
.com-agenda-detail-date{font-size:.94rem!important}.com-agenda-detail-sub{font-size:.61rem!important}
.com-agenda-detail-total strong{font-size:1.42rem!important}.com-agenda-detail-total span{font-size:.57rem!important}
.com-agenda-detail-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}
.com-detail-metric{background:#fff;border:1px solid #E2ECF0;border-radius:12px;padding:10px 11px;min-width:0;position:relative;overflow:hidden}
.com-detail-metric::after{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;background:#096A9D}
.com-detail-metric:nth-child(2)::after{background:#119A7D}.com-detail-metric:nth-child(3)::after{background:#D79A27}
.com-detail-metric.future::after{background:#18B9D6}
.com-detail-metric span{display:block;font-size:.53rem;color:#7B9099;font-weight:900;text-transform:uppercase;letter-spacing:.045em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.com-detail-metric strong{display:block;font-size:.90rem;color:#173F56;font-weight:950;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.com-agenda-detail-doc{font-size:.64rem!important}.com-agenda-detail-spec{font-size:.54rem!important}.com-agenda-detail-qty{font-size:.78rem!important}
.com-agenda-detail-empty{font-size:.62rem!important}.com-agenda-foot{font-size:.59rem!important}
@media(max-width:1200px){.com-agenda-day{height:180px!important}.com-day-value{font-size:.68rem}.com-day-label{font-size:.49rem}}
@media(max-width:900px){.com-agenda-day{height:174px!important}.com-agenda-detail-metrics{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:680px){.com-agenda-day{height:170px!important}.com-agenda-detail-metrics{grid-template-columns:1fr}.com-agenda-legend{justify-content:flex-start}}


/* ========================================================================== */
/* Agenda Comercial V4 · semaforo igual ao calendario do Painel Executivo     */
/* A regra V5 abaixo substitui a antiga comparação com o ano anterior.         */
/* up=#1595BE | flat=#94A7AF | warn=#D5962D | down=#D86660 | pending=#B1BDC3 */
/* ========================================================================== */
#capacidade .agenda-commercial-head h2{font-size:2.02rem!important;letter-spacing:-.035em}
#capacidade .agenda-commercial-head p{font-size:.92rem!important;line-height:1.55!important;max-width:1050px}
.com-agenda-panel{padding:22px 24px!important}
.com-agenda-month-title{font-size:1.56rem!important}
.com-agenda-month-sub{font-size:.80rem!important;margin-top:7px!important}
.com-agenda-nav{width:46px!important;height:46px!important;font-size:1.55rem!important;border-radius:14px!important}
.com-agenda-today{font-size:.76rem!important;padding:10px 16px!important}
.com-agenda-source{font-size:.71rem!important;padding:8px 12px!important}
.com-agenda-kpis{gap:12px!important;margin:18px 0!important}
.com-agenda-kpi{padding:16px 17px!important;border-radius:18px!important}
.com-agenda-kpi-label{font-size:.72rem!important}
.com-agenda-kpi-value{font-size:1.92rem!important;margin-top:9px!important}
.com-agenda-kpi-note{font-size:.72rem!important;margin-top:7px!important}
.com-agenda-weekdays{margin-bottom:10px!important}
.com-agenda-weekdays div{font-size:.69rem!important;padding:5px 0!important}
.com-agenda-grid{gap:10px!important}
.com-agenda-day{height:204px!important;padding:14px 14px 12px!important;border-radius:18px!important}
.com-agenda-day-num strong{font-size:1.22rem!important}
.com-agenda-day-num span{font-size:.62rem!important;margin-left:2px}
.com-agenda-state{font-size:.58rem!important;padding:5px 8px!important;letter-spacing:.045em!important}
.com-day-metrics{gap:7px!important;margin-top:11px!important}
.com-day-metric{grid-template-columns:10px minmax(0,1fr) auto!important;column-gap:10px!important;min-height:62px!important;padding:9px 10px!important;border-radius:12px!important}
.com-day-dot{width:9px!important;height:9px!important;background:#B1BDC3!important}
.com-day-copy{line-height:1.08!important}
.com-day-label{font-size:.76rem!important;color:#657E8A!important}
.com-day-value{font-size:1.18rem!important;margin-top:4px!important;letter-spacing:-.025em!important}
.com-day-aa{font-size:.66rem;color:#91A1A8;font-weight:800;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.com-day-aa strong{font-weight:950;color:#7D929B}
.com-day-side{font-size:.78rem!important;font-weight:950!important;padding-left:7px}
.com-day-foot{font-size:.69rem!important;padding-top:9px!important}

/* Status das metricas: mesmas cores do Painel Executivo. */
.com-day-metric.up .com-day-dot{background:#1595BE!important}.com-day-metric.up .com-day-side{color:#087CA5!important}
.com-day-metric.flat .com-day-dot{background:#94A7AF!important}.com-day-metric.flat .com-day-side{color:#6C828D!important}
.com-day-metric.warn .com-day-dot{background:#D5962D!important}.com-day-metric.warn .com-day-side{color:#A76C16!important}
.com-day-metric.down .com-day-dot{background:#D86660!important}.com-day-metric.down .com-day-side{color:#B94D47!important}
.com-day-metric.pending .com-day-dot{background:#B1BDC3!important}.com-day-metric.pending .com-day-side{color:#84969E!important}

/* O status principal do dia acompanha o volume de cirurgias. */
.com-agenda-day.status-up::after{background:#1595BE!important;opacity:1!important}
.com-agenda-day.status-flat::after{background:#94A7AF!important;opacity:1!important}
.com-agenda-day.status-warn::after{background:#D5962D!important;opacity:1!important}
.com-agenda-day.status-down::after{background:#D86660!important;opacity:1!important}
.com-agenda-day.status-pending::after{background:#B1BDC3!important;opacity:.85!important}
.com-agenda-day.status-up{background:linear-gradient(180deg,rgba(21,149,190,.070),#fff 58%)!important}
.com-agenda-day.status-flat{background:linear-gradient(180deg,rgba(148,167,175,.070),#fff 58%)!important}
.com-agenda-day.status-warn{background:linear-gradient(180deg,rgba(213,150,45,.085),#fff 58%)!important}
.com-agenda-day.status-down{background:linear-gradient(180deg,rgba(216,102,96,.085),#fff 58%)!important}
.com-agenda-day.status-pending{background:linear-gradient(180deg,rgba(177,189,195,.060),#fff 58%)!important}
.com-agenda-day.status-up .com-agenda-state{background:#EAF7FB!important;color:#087CA5!important}
.com-agenda-day.status-flat .com-agenda-state{background:#F1F4F5!important;color:#6C828D!important}
.com-agenda-day.status-warn .com-agenda-state{background:#FFF6E6!important;color:#A76C16!important}
.com-agenda-day.status-down .com-agenda-state{background:#FFF0EF!important;color:#B94D47!important}
.com-agenda-day.status-pending .com-agenda-state{background:#F2F5F6!important;color:#84969E!important}
.com-agenda-day.is-today{border-color:#D79A27!important;box-shadow:inset 0 0 0 1px rgba(215,154,39,.28),0 10px 22px rgba(24,69,91,.08)!important}
.com-agenda-day.is-today .com-agenda-state{background:#FFF3DA!important;color:#946718!important}

.com-agenda-legend{font-size:.70rem!important;gap:18px!important;margin-top:16px!important}
.com-agenda-legend i{width:11px!important;height:11px!important;border-radius:4px!important}
.com-agenda-detail{padding:19px 20px!important;margin-top:18px!important}
.com-agenda-detail-date{font-size:1.16rem!important}
.com-agenda-detail-sub{font-size:.74rem!important;margin-top:5px!important}
.com-agenda-detail-total strong{font-size:1.72rem!important}.com-agenda-detail-total span{font-size:.69rem!important}
.com-agenda-detail-metrics{gap:11px!important;margin-top:14px!important}
.com-detail-metric{padding:13px 14px!important;border-radius:14px!important}
.com-detail-metric::after{background:#B1BDC3!important}
.com-detail-metric.up::after{background:#1595BE!important}.com-detail-metric.flat::after{background:#94A7AF!important}.com-detail-metric.warn::after{background:#D5962D!important}.com-detail-metric.down::after{background:#D86660!important}.com-detail-metric.pending::after{background:#B1BDC3!important}
.com-detail-metric span{font-size:.65rem!important}
.com-detail-metric strong{font-size:1.10rem!important;margin-top:6px!important}
.com-detail-aa{font-size:.60rem;color:#8A9BA3;font-weight:820;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.com-detail-delta{display:block;font-size:.72rem;font-style:normal;font-weight:950;margin-top:5px}
.com-detail-metric.up .com-detail-delta{color:#087CA5}.com-detail-metric.flat .com-detail-delta{color:#6C828D}.com-detail-metric.warn .com-detail-delta{color:#A76C16}.com-detail-metric.down .com-detail-delta{color:#B94D47}.com-detail-metric.pending .com-detail-delta{color:#84969E}
.com-agenda-detail-list{gap:10px!important;margin-top:13px!important}
.com-agenda-detail-item{padding:10px 11px!important;grid-template-columns:36px minmax(0,1fr) auto!important}
.com-agenda-detail-avatar{width:36px!important;height:36px!important;font-size:.61rem!important}
.com-agenda-detail-doc{font-size:.74rem!important}
.com-agenda-detail-spec{font-size:.63rem!important}
.com-agenda-detail-qty{font-size:.94rem!important}
.com-agenda-detail-empty{font-size:.72rem!important}
.com-agenda-foot{font-size:.69rem!important;line-height:1.5!important;margin-top:13px!important}

@media(max-width:1200px){
  .com-agenda-day{height:198px!important;padding:12px!important}
  .com-day-label{font-size:.61rem!important}.com-day-value{font-size:.84rem!important}.com-day-aa{font-size:.52rem}.com-day-side{font-size:.61rem!important}
}
@media(max-width:900px){
  .com-agenda-day{height:194px!important}.com-agenda-kpi-value{font-size:1.72rem!important}
}
@media(max-width:680px){
  .com-agenda-day{height:196px!important}.com-day-label{font-size:.64rem!important}.com-day-value{font-size:.90rem!important}.com-day-side{font-size:.65rem!important}
}



/* ========================================================================== */
/* LAYOUT V2 · HOSPITAL EVANGELICO COMMAND CENTER                            */
/* ========================================================================== */
:root{
  --he-navy:#062F4A;
  --he-navy-2:#064B6B;
  --he-blue:#096A9D;
  --he-blue-2:#0E86B7;
  --he-cyan:#1DB9D4;
  --he-ice:#EAF5F9;
  --he-page:#EEF5F8;
  --he-surface:#FFFFFF;
  --he-line:#DCE8EE;
  --he-text:#14384C;
  --he-muted:#6F8794;
  --he-shadow:0 12px 32px rgba(12,59,84,.07);
  --he-shadow-strong:0 22px 58px rgba(7,58,85,.12);
  --sidebar-width:270px;
}
body.layout-v2{
  font-family:"Manrope",Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--he-text);
  background:var(--he-page);
}
body.layout-v2::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;
  background:radial-gradient(circle at 88% 4%,rgba(29,185,212,.09),transparent 25%),radial-gradient(circle at 48% 100%,rgba(9,106,157,.05),transparent 30%);
}
body.layout-v2 .app{width:100%;max-width:none;min-height:100vh;margin:0;padding:0;display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr)}
body.layout-v2 .side-rail{
  position:sticky;top:0;height:100vh;overflow:hidden;padding:28px 20px 22px;display:flex;flex-direction:column;justify-content:space-between;
  background:linear-gradient(165deg,#052E48 0%,#064B6C 54%,#08739A 100%);color:#fff;box-shadow:14px 0 34px rgba(6,47,74,.12);z-index:60
}
body.layout-v2 .side-rail::before{content:"";position:absolute;width:290px;height:290px;border-radius:50%;border:48px solid rgba(255,255,255,.055);right:-175px;top:-115px}
body.layout-v2 .side-rail::after{content:"";position:absolute;width:210px;height:210px;border-radius:50%;border:34px solid rgba(255,255,255,.035);left:-130px;bottom:80px}
body.layout-v2 .side-top,body.layout-v2 .side-footer{position:relative;z-index:1}
body.layout-v2 .brand{min-width:0;display:flex;align-items:center;gap:13px;padding:0 4px 26px;border-bottom:1px solid rgba(255,255,255,.13)}
body.layout-v2 .brandmark{width:52px;height:52px;border-radius:17px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);box-shadow:none;color:#fff;font-size:1rem}
body.layout-v2 .brandname{font-size:.94rem;color:#fff;font-weight:800;letter-spacing:-.025em}
body.layout-v2 .brandsub{font-size:.70rem;color:rgba(255,255,255,.67);font-weight:600;margin-top:3px}
body.layout-v2 .side-label{margin:25px 10px 10px;font-size:.61rem;font-weight:800;text-transform:uppercase;letter-spacing:.16em;color:rgba(255,255,255,.48)}
body.layout-v2 .tabstrip{display:grid;gap:8px;overflow:visible;flex:none}
body.layout-v2 .tabbtn{width:100%;display:grid;grid-template-columns:40px minmax(0,1fr) 18px;align-items:center;gap:10px;text-align:left;padding:11px 10px;border-radius:15px;color:rgba(255,255,255,.76);border:1px solid transparent;background:transparent;box-shadow:none;transition:.2s ease}
body.layout-v2 .tabbtn:hover{background:rgba(255,255,255,.09);color:#fff;border-color:rgba(255,255,255,.10)}
body.layout-v2 .tabbtn.active{background:#fff;color:var(--he-navy);border-color:#fff;box-shadow:0 12px 26px rgba(2,32,49,.18)}
body.layout-v2 .tab-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:rgba(255,255,255,.09);color:currentColor}
body.layout-v2 .tabbtn.active .tab-icon{background:#EAF5F9;color:var(--he-blue)}
body.layout-v2 .tab-icon svg{width:21px;height:21px}
body.layout-v2 .tab-copy{display:flex;flex-direction:column;min-width:0}
body.layout-v2 .tab-copy strong{font-size:.77rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.layout-v2 .tab-copy small{font-size:.58rem;font-weight:600;opacity:.65;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.layout-v2 .tab-arrow{font-size:1.18rem;opacity:.45;transition:.18s ease}
body.layout-v2 .tabbtn.active .tab-arrow{opacity:1;transform:translateX(2px)}
body.layout-v2 .side-footer{padding:15px;border-radius:17px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(10px)}
body.layout-v2 .side-footer-label{font-size:.57rem;text-transform:uppercase;letter-spacing:.10em;font-weight:800;color:rgba(255,255,255,.49)}
body.layout-v2 .side-footer-value{font-size:.69rem;font-weight:700;color:#fff;margin-top:7px;display:flex;align-items:center;gap:7px}
body.layout-v2 .side-footer-value span{width:8px;height:8px;border-radius:50%;background:#56E2C2;box-shadow:0 0 0 4px rgba(86,226,194,.12)}
body.layout-v2 .side-footer-meta{font-size:.61rem;color:rgba(255,255,255,.62);margin-top:6px}
body.layout-v2 .workspace{min-width:0;padding:18px 24px 34px}
body.layout-v2 .workspace-topbar{position:sticky;top:14px;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:16px 18px;border-radius:21px;background:rgba(255,255,255,.92);backdrop-filter:blur(18px);border:1px solid rgba(220,232,238,.96);box-shadow:0 10px 28px rgba(12,59,84,.08)}
body.layout-v2 .workspace-context{min-width:0}
body.layout-v2 .workspace-brand{font-size:.92rem;font-weight:900;letter-spacing:-.02em;color:var(--he-blue);margin-bottom:6px}
body.layout-v2 .workspace-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
body.layout-v2 .workspace-title-row h1{font-size:1.24rem;line-height:1;font-weight:800;letter-spacing:-.035em;margin:0;color:var(--he-navy)}
body.layout-v2 .workspace-period{font-size:.58rem;font-weight:800;color:#54717F;background:#EEF6F9;border:1px solid #DCEAF0;padding:5px 8px;border-radius:999px}
body.layout-v2 .workspace-actions{display:flex;align-items:center;justify-content:flex-end;min-width:0}
body.layout-v2 .filter-group{margin:0;display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
body.layout-v2 .filter-pill{padding:8px 10px;border-radius:11px;font-size:.66rem;font-weight:750;border:1px solid var(--he-line);background:#fff;color:#365A6D}
body.layout-v2 .filter-fixed{background:#F4F9FB;color:#587381}
body.layout-v2 .qlik-filter-toggle{background:var(--he-blue);border-color:var(--he-blue);color:#fff;box-shadow:0 7px 15px rgba(9,106,157,.16)}
body.layout-v2 .qlik-clear-btn{color:#B84D47;background:#FFF3F4;border-color:#F4DADC}
body.layout-v2 .workspace-content{width:min(100%,1580px);margin:0 auto}
body.layout-v2 .qlik-filter-panel{width:min(100%,1580px);margin:14px auto 0;border-radius:22px;background:#fff;border:1px solid var(--he-line);box-shadow:var(--he-shadow);padding:18px}
body.layout-v2 .tabpage{margin-top:20px;animation:layoutEnter .32s ease}
@keyframes layoutEnter{from{opacity:.25;transform:translateY(8px)}to{opacity:1;transform:none}}
body.layout-v2 .cardx,body.layout-v2 .exec-kpi,body.layout-v2 .com-agenda-kpi{background:var(--he-surface);border:1px solid var(--he-line);box-shadow:var(--he-shadow)}
body.layout-v2 .cardx{border-radius:22px}
body.layout-v2 .panel{padding:20px 21px}
body.layout-v2 .panel-head{padding-bottom:13px;margin-bottom:14px;border-bottom:1px solid #E8F0F3}
body.layout-v2 .panel-title,body.layout-v2 .compact-title{font-size:.91rem;font-weight:800;color:var(--he-navy);letter-spacing:-.025em}
body.layout-v2 .panel-sub,body.layout-v2 .compact-sub{font-size:.65rem;line-height:1.45;color:var(--he-muted);font-weight:500}
body.layout-v2 .chip,body.layout-v2 .mix-source-chip{font-size:.58rem;font-weight:750;border-radius:999px;padding:6px 8px}
body.layout-v2 .module-hero{position:relative;overflow:hidden;min-height:166px;margin-top:0;padding:29px 31px;border-radius:28px;border:0;background:linear-gradient(125deg,#052F4A 0%,#075E86 54%,#13A7C5 100%);box-shadow:var(--he-shadow-strong);color:#fff}
body.layout-v2 .module-hero::before{content:"";position:absolute;right:-82px;top:-145px;width:390px;height:390px;border-radius:50%;border:58px solid rgba(255,255,255,.07)}
body.layout-v2 .module-hero::after{content:"";position:absolute;right:270px;bottom:-170px;width:250px;height:250px;border-radius:50%;border:34px solid rgba(255,255,255,.045)}
body.layout-v2 .module-hero>div,body.layout-v2 .module-hero .exec-period{position:relative;z-index:1}
body.layout-v2 .module-eyebrow{font-size:.61rem;text-transform:uppercase;letter-spacing:.16em;font-weight:800;color:rgba(255,255,255,.66);margin-bottom:8px}
body.layout-v2 .module-hero h1{font-size:2.02rem;line-height:1.05;font-weight:800;color:#fff;letter-spacing:-.045em}
body.layout-v2 .module-hero p{font-size:.82rem;line-height:1.55;color:rgba(255,255,255,.76);max-width:760px;margin-top:8px}
body.layout-v2 .module-hero .exec-period{max-width:480px;justify-content:flex-end}
body.layout-v2 .module-hero .exec-period span{font-size:.61rem;color:#fff;background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.16);backdrop-filter:blur(8px)}
body.layout-v2 .exec-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px;margin-top:16px}
body.layout-v2 .exec-kpi{min-height:142px;border-radius:20px;padding:18px 18px 16px;display:flex;flex-direction:column;justify-content:flex-start;box-shadow:var(--he-shadow)}
body.layout-v2 .exec-kpi:nth-child(1),body.layout-v2 .exec-kpi:nth-child(2){grid-column:span 3}
body.layout-v2 .exec-kpi:nth-child(n+3){grid-column:span 2}
body.layout-v2 .exec-kpi::before{content:"";position:absolute;left:0;top:16px;bottom:16px;width:4px;border-radius:0 6px 6px 0;background:#B7C8D0}
body.layout-v2 .exec-kpi.actual::before{background:var(--he-blue)}
body.layout-v2 .exec-kpi.production::before{background:#D79A27}
body.layout-v2 .exec-kpi.future::before{background:var(--he-cyan)}
body.layout-v2 .exec-kpi.visibility::before{background:#119A7D}
body.layout-v2 .exec-kpi::after{display:none!important}
body.layout-v2 .exec-kpi .ek-label{font-size:.60rem;font-weight:800;letter-spacing:.065em;color:#77909C;padding-left:3px}
body.layout-v2 .exec-kpi .ek-value{font-size:1.72rem;line-height:1;font-weight:800;color:var(--he-navy);margin-top:12px}
body.layout-v2 .exec-kpi .ek-sub{font-size:.61rem;line-height:1.42;color:#81949D;margin-top:auto;padding-top:9px}
body.layout-v2 .exec-kpi .ek-delta{margin-top:8px}
body.layout-v2 .delta{font-size:.61rem;padding:4px 7px;font-weight:800}
body.layout-v2 .executive-dashboard-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;margin-top:16px;align-items:start}
body.layout-v2 .dashboard-span-7{grid-column:span 7}
body.layout-v2 .dashboard-span-5{grid-column:span 5}
body.layout-v2 .dashboard-span-6{grid-column:span 6}
body.layout-v2 .dashboard-span-12{grid-column:1/-1}
body.layout-v2 .panel-featured{box-shadow:0 16px 40px rgba(7,73,105,.10)}
body.layout-v2 .executive-dashboard-grid .canvas-wrap,body.layout-v2 .executive-dashboard-grid .canvas-wrap.tall{height:335px!important;min-height:335px!important}
body.layout-v2 .agenda-full-width{padding:22px}
body.layout-v2 .agenda-full-width .agenda-month-grid{gap:12px!important}
body.layout-v2 .agenda-full-width .agenda-month{border-radius:17px!important;border-color:#DFEAF0!important;box-shadow:none!important;background:#fff!important}
body.layout-v2 .agenda-full-width .agenda-event{border-radius:10px!important;background:#F7FBFC!important}
body.layout-v2 .section-intro{margin:4px 0 16px;align-items:flex-end}
body.layout-v2 .section-intro h2{font-size:2rem;font-weight:800;color:var(--he-navy);letter-spacing:-.045em}
body.layout-v2 .section-intro p{font-size:.77rem;line-height:1.5;color:var(--he-muted);max-width:900px;margin-top:6px}
body.layout-v2 .summary-pill{font-size:.61rem;font-weight:800;color:var(--he-blue);background:#E8F5F9;border:1px solid #D3EAF1;padding:7px 10px}
body.layout-v2 .mix-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 16px}
body.layout-v2 #receita .mix-kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
body.layout-v2 #receita .mix-kpi{min-height:154px}
body.layout-v2 .mix-kpi{min-height:132px;padding:18px;border-radius:20px;box-shadow:var(--he-shadow);position:relative;overflow:hidden}
body.layout-v2 .mix-kpi::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,var(--he-blue),var(--he-cyan))}
body.layout-v2 .mix-kpi.conversion-time-kpi::before{background:linear-gradient(90deg,#0F8D7B,#3BB99F)}
body.layout-v2 .mix-kpi .mk-label{font-size:.60rem;font-weight:800;letter-spacing:.065em}
body.layout-v2 .mix-kpi .mk-value{font-size:1.84rem;font-weight:800;color:var(--he-navy);margin-top:12px}
body.layout-v2 .mix-kpi .mk-compare{font-size:.59rem;margin-top:10px}
body.layout-v2 .mix-kpi .mk-method{margin-top:7px;font-size:.54rem;line-height:1.35;font-weight:700;color:#78909A}
body.layout-v2 .conversion-lead-grid{display:grid;grid-template-columns:minmax(380px,5fr) minmax(0,7fr);gap:16px;align-items:stretch}
body.layout-v2 .conversion-lead-grid>article{margin:0;min-height:100%}
body.layout-v2 .conversion-main-chart .canvas-wrap{height:365px}
body.layout-v2 .conversion-funnel-card{display:flex;flex-direction:column}
body.layout-v2 .conversion-funnel-card .sales-funnel-wrap{display:flex;align-items:center;flex:1;max-width:680px;width:100%;min-height:0;margin:auto}
body.layout-v2 .conversion-funnel-card .sales-funnel-stack{width:100%;margin:0}
body.layout-v2 .conversion-funnel-card .sales-funnel-shape{height:104px}
body.layout-v2 .conversion-funnel-card .sales-funnel-value{font-size:1.42rem}
body.layout-v2 .content-band-title{display:flex;align-items:flex-end;justify-content:space-between;margin:25px 2px 11px}
body.layout-v2 .content-band-title span{display:block;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.11em;color:var(--he-blue)}
body.layout-v2 .content-band-title p{font-size:.68rem;color:var(--he-muted);margin:3px 0 0}
body.layout-v2 .conversion-trends-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body.layout-v2 .conversion-trends-grid .canvas-wrap{height:300px}
body.layout-v2 .conversion-first-consultation-grid{display:grid;grid-template-columns:1fr;gap:16px}
body.layout-v2 .conversion-first-consultation-grid .canvas-wrap{height:320px}
body.layout-v2 .conversion-doctor-grid,body.layout-v2 .conversion-specialty-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(390px,5fr);gap:16px;align-items:stretch}
body.layout-v2 .conversion-doctor-grid .canvas-wrap,body.layout-v2 .conversion-specialty-grid .canvas-wrap{height:390px}
body.layout-v2 .conversion-doctor-grid .mix-table-wrap,body.layout-v2 .conversion-specialty-grid .mix-table-wrap{max-height:390px}
body.layout-v2 .mix-table{font-size:.67rem}
body.layout-v2 .mix-table thead th{font-size:.53rem;padding:.72rem .58rem;background:#F3F8FA}
body.layout-v2 .mix-table tbody td{padding:.68rem .58rem}
body.layout-v2 .agenda-commercial-head{margin-bottom:14px}
body.layout-v2 .com-agenda-panel{padding:0!important;border-radius:24px;overflow:hidden}
body.layout-v2 .com-agenda-toolbar{padding:18px 20px;background:linear-gradient(120deg,#F9FCFD,#EEF7FA);border-bottom:1px solid #DFEAF0}
body.layout-v2 .com-agenda-month-title{font-size:1.32rem!important;font-weight:800!important;color:var(--he-navy)}
body.layout-v2 .com-agenda-month-sub{font-size:.66rem!important}
body.layout-v2 .com-agenda-nav{width:42px!important;height:42px!important;border-radius:12px!important;background:#fff!important;color:var(--he-blue)!important}
body.layout-v2 .com-agenda-today{font-size:.66rem!important;padding:9px 13px!important;background:var(--he-blue)!important;color:#fff!important;border-color:var(--he-blue)!important}
body.layout-v2 .com-agenda-source{font-size:.61rem!important;padding:7px 10px!important;background:#fff!important}
body.layout-v2 .com-agenda-kpis{padding:16px 20px 0;margin:0!important;gap:12px!important}
body.layout-v2 .com-agenda-kpi{min-height:112px;padding:15px 16px!important;border-radius:17px!important;box-shadow:none}
body.layout-v2 .com-agenda-kpi-label{font-size:.61rem!important;font-weight:800!important}
body.layout-v2 .com-agenda-kpi-value{font-size:1.72rem!important;font-weight:800!important;color:var(--he-navy)}
body.layout-v2 .com-agenda-kpi-note{font-size:.61rem!important}
body.layout-v2 .agenda-workspace-grid{display:grid;grid-template-columns:minmax(0,9fr) minmax(310px,3fr);gap:16px;padding:16px 20px 20px;align-items:start}
body.layout-v2 .agenda-calendar-stage{min-width:0;padding:14px;border-radius:20px;background:#F6FAFC;border:1px solid #E2EDF1}
body.layout-v2 .com-agenda-weekdays{margin-bottom:8px!important}
body.layout-v2 .com-agenda-weekdays div{font-size:.59rem!important}
body.layout-v2 .com-agenda-grid{gap:8px!important}
body.layout-v2 .com-agenda-day{height:190px!important;border-radius:15px!important;padding:11px!important;box-shadow:none!important;background:#fff}
body.layout-v2 .com-agenda-day:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(11,75,104,.09)!important}
body.layout-v2 .com-agenda-day-num strong{font-size:1.02rem!important}
body.layout-v2 .com-agenda-day-num span{font-size:.53rem!important}
body.layout-v2 .com-agenda-state{font-size:.50rem!important;padding:4px 6px!important}
body.layout-v2 .com-day-metric{min-height:47px!important;padding:6px 7px!important;border-radius:10px!important}
body.layout-v2 .com-day-label{font-size:.58rem!important}
body.layout-v2 .com-day-value{font-size:.91rem!important}
body.layout-v2 .com-day-aa{font-size:.52rem!important}
body.layout-v2 .com-day-side{font-size:.59rem!important}
body.layout-v2 .com-day-foot{font-size:.56rem!important}
body.layout-v2 .com-agenda-legend{font-size:.57rem!important;justify-content:flex-start;margin:12px 4px 0!important}
body.layout-v2 .agenda-detail-rail{position:sticky;top:106px}
body.layout-v2 .com-agenda-detail{margin:0!important;padding:17px!important;border-radius:20px!important;background:linear-gradient(180deg,#fff,#F6FAFC)!important;box-shadow:var(--he-shadow)}
body.layout-v2 .com-agenda-detail-head{grid-template-columns:1fr!important}
body.layout-v2 .com-agenda-detail-date{font-size:1.02rem!important;font-weight:800!important}
body.layout-v2 .com-agenda-detail-sub{font-size:.62rem!important}
body.layout-v2 .com-agenda-detail-total{justify-content:flex-start!important;margin-top:6px}
body.layout-v2 .com-agenda-detail-total strong{font-size:1.75rem!important;font-weight:800!important}
body.layout-v2 .com-agenda-detail-metrics{grid-template-columns:1fr!important;gap:8px!important}
body.layout-v2 .com-detail-metric{padding:11px!important}
body.layout-v2 .com-detail-metric span{font-size:.58rem!important}
body.layout-v2 .com-detail-metric strong{font-size:1.02rem!important}
body.layout-v2 .com-agenda-detail-list{grid-template-columns:1fr!important;max-height:470px;overflow:auto;padding-right:3px}
body.layout-v2 .com-agenda-detail-doc{font-size:.65rem!important}
body.layout-v2 .com-agenda-detail-spec{font-size:.54rem!important}
body.layout-v2 .com-agenda-foot{margin:0;padding:0 20px 18px;font-size:.60rem!important;line-height:1.5}
body.layout-v2 .workspace-footer{text-align:center;margin:25px 0 0;padding:16px 0 0;border-top:1px solid #DDE8ED;color:#7D919B;font-size:.60rem;font-weight:600}
body.layout-v2 #qlikGate{background:rgba(4,38,58,.78);backdrop-filter:blur(12px)}
body.layout-v2 .qlik-gate-card{border-radius:24px;border:1px solid rgba(255,255,255,.18);box-shadow:0 30px 70px rgba(1,23,35,.28)}
body.layout-v2 .billing-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 16px}
body.layout-v2 .billing-kpi{display:flex;flex-direction:column;min-height:150px}
body.layout-v2 .billing-kpi-trend::before{background:linear-gradient(90deg,#119A7D,#42B997)}
body.layout-v2 .billing-kpi-note{margin-top:auto;padding-top:10px;font-size:.57rem;line-height:1.4;color:#82969F}
body.layout-v2 .billing-overview-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(360px,5fr);gap:16px;align-items:stretch}
body.layout-v2 .billing-chart-panel{min-width:0}
body.layout-v2 .billing-chart-panel .canvas-wrap{height:350px}
body.layout-v2 .billing-specialty-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(420px,5fr);gap:16px;align-items:stretch}
body.layout-v2 .billing-specialty-grid>article{min-width:0}
body.layout-v2 .billing-specialty-canvas{height:430px!important}
body.layout-v2 .billing-specialty-table-panel .mix-table-wrap{max-height:430px}
body.layout-v2 .billing-detail-panel{padding:0;overflow:visible}
body.layout-v2 .billing-detail-toolbar{position:relative;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 21px 16px;border-bottom:1px solid #E8F0F3;border-radius:22px 22px 0 0;background:linear-gradient(120deg,#fff,#F7FBFC)}
body.layout-v2 .billing-detail-actions{display:flex;align-items:flex-end;justify-content:flex-end;gap:10px;min-width:min(100%,520px)}
body.layout-v2 .billing-search{display:flex;align-items:center;gap:9px;min-width:min(100%,360px);font-size:.58rem;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:#6F8794}
body.layout-v2 .billing-search input{width:100%;min-width:230px;border:1px solid #D8E6EC;border-radius:12px;background:#fff;color:var(--he-navy);font:600 .68rem/1.2 "Manrope",sans-serif;padding:10px 12px;outline:0;transition:border-color .18s ease,box-shadow .18s ease}
body.layout-v2 .billing-search input:focus{border-color:#55AFCB;box-shadow:0 0 0 3px rgba(9,106,157,.10)}
body.layout-v2 .billing-column-picker{position:relative;flex:0 0 auto}
body.layout-v2 .billing-column-picker summary{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:150px;height:39px;padding:0 11px;border:1px solid #D8E6EC;border-radius:12px;background:#fff;color:#365A6D;cursor:pointer;list-style:none;font-size:.62rem;font-weight:800}
body.layout-v2 .billing-column-picker summary::-webkit-details-marker{display:none}
body.layout-v2 .billing-column-picker summary::before{content:"☷";font-size:.88rem;color:var(--he-blue)}
body.layout-v2 .billing-column-picker summary strong{font-size:.53rem;color:#758C97;font-weight:750}
body.layout-v2 .billing-column-picker[open] summary{border-color:#55AFCB;box-shadow:0 0 0 3px rgba(9,106,157,.10)}
body.layout-v2 .billing-column-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:20;width:300px;max-height:min(570px,calc(100vh - 190px));overflow:auto;padding:11px;border:1px solid #D8E6EC;border-radius:15px;background:#fff;box-shadow:0 18px 45px rgba(7,56,82,.17)}
body.layout-v2 .billing-column-menu-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:3px 4px 9px;border-bottom:1px solid #E8F0F3;margin-bottom:6px}
body.layout-v2 .billing-column-menu-head span{font-size:.58rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#6B8490}
body.layout-v2 .billing-column-menu-head button{border:0;background:transparent;color:var(--he-blue);font:750 .55rem/1 "Manrope",sans-serif;padding:4px;cursor:pointer}
body.layout-v2 .billing-column-menu label{display:flex;align-items:center;gap:9px;padding:8px 7px;border-radius:9px;color:#365A6D;font-size:.64rem;font-weight:650;cursor:pointer}
body.layout-v2 .billing-column-menu label:hover{background:#F1F8FA}
body.layout-v2 .billing-column-menu input{width:15px;height:15px;accent-color:var(--he-blue)}
body.layout-v2 [data-billing-column][hidden]{display:none!important}
body.layout-v2 .billing-detail-table-wrap{position:relative;z-index:1;width:100%;height:520px;max-height:520px;border-radius:0;border:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
body.layout-v2 .billing-detail-table-wrap table{width:max-content;min-width:100%;table-layout:auto;margin:0}
body.layout-v2 .billing-detail-table-wrap th,body.layout-v2 .billing-detail-table-wrap td{box-sizing:border-box}
body.layout-v2 .billing-detail-table-wrap [data-billing-column="firstConsultationDate"],body.layout-v2 .billing-detail-table-wrap [data-billing-column="surgeryDate"],body.layout-v2 .billing-detail-table-wrap [data-billing-column="billingDate"]{min-width:170px;white-space:nowrap}
body.layout-v2 .billing-detail-table-wrap [data-billing-column="attendance"]{min-width:150px}
body.layout-v2 .billing-detail-table-wrap [data-billing-column="specialty"]{min-width:210px}
body.layout-v2 .billing-detail-table-wrap [data-billing-column="doctor"]{min-width:230px}
body.layout-v2 .billing-detail-table-wrap [data-billing-column="procedure"]{min-width:260px}
body.layout-v2 .billing-detail-table-wrap [data-billing-column="consultationCount"]{min-width:170px}
body.layout-v2 .billing-detail-table-wrap [data-billing-column="consultationRevenue"],body.layout-v2 .billing-detail-table-wrap [data-billing-column="surgeryRevenue"],body.layout-v2 .billing-detail-table-wrap [data-billing-column="totalRevenue"]{min-width:180px}
body.layout-v2 .billing-detail-table-wrap thead{position:sticky;top:0;z-index:2}
body.layout-v2 .billing-detail-table-wrap tbody tr{transition:background-color .15s ease}
body.layout-v2 .billing-detail-table-wrap tbody tr:hover{background:#F3F9FB}
body.layout-v2 .billing-detail-table-wrap [data-billing-measure="true"]{text-align:right;font-weight:750;white-space:nowrap}
body.layout-v2 .billing-detail-table-wrap tfoot{position:sticky;bottom:0;z-index:2;background:#EEF6F8;box-shadow:0 -1px 0 #D8E6EC}
body.layout-v2 .billing-detail-table-wrap tfoot th,body.layout-v2 .billing-detail-table-wrap tfoot td{background:#EEF6F8;color:var(--he-navy);font-weight:850;border-top:1px solid #D8E6EC}
body.layout-v2 .billing-detail-table-wrap .billing-total-label{text-align:left;text-transform:uppercase;letter-spacing:.05em;font-size:.57rem}
body.layout-v2 .billing-detail-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 21px;border-top:1px solid #E3EDF1;background:#F7FBFC;font-size:.62rem;color:#718894}
body.layout-v2 .billing-detail-footer strong{font-size:.72rem;color:var(--he-navy)}
/* Ocupação > Consultórios: tabela dinâmica das consultas (mesmo visual da tabela do Faturamento). */
body.layout-v2 [data-consult-column][hidden]{display:none!important}
body.layout-v2 .consult-detail-table-wrap [data-consult-column]{white-space:nowrap}
body.layout-v2 .consult-detail-table-wrap [data-consult-column="doctor"]{min-width:230px;white-space:normal}
body.layout-v2 .consult-detail-table-wrap [data-consult-column="specialty"]{min-width:190px;white-space:normal}
body.layout-v2 .consult-detail-table-wrap [data-consult-column="source"]{min-width:200px}
body.layout-v2 .consult-detail-table-wrap [data-consult-column="firstCall"],body.layout-v2 .consult-detail-table-wrap [data-consult-column="previousCall"],body.layout-v2 .consult-detail-table-wrap [data-consult-column="discharge"],body.layout-v2 .consult-detail-table-wrap [data-consult-column="previousDischarge"]{min-width:140px}
body.layout-v2 #consultDetailPanel .billing-detail-footer .forecast-sim-reset{margin-left:auto}
@media(max-width:1320px){
  body.layout-v2 .exec-kpi:nth-child(1),body.layout-v2 .exec-kpi:nth-child(2),body.layout-v2 .exec-kpi:nth-child(n+3){grid-column:span 4}
  body.layout-v2 .exec-kpi:nth-child(4),body.layout-v2 .exec-kpi:nth-child(5){grid-column:span 6}
  body.layout-v2 .dashboard-span-7,body.layout-v2 .dashboard-span-5{grid-column:span 12}
  body.layout-v2 .conversion-lead-grid{grid-template-columns:1fr}
  body.layout-v2 .conversion-trends-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.layout-v2 .conversion-trends-grid>article:last-child{grid-column:1/-1}
  body.layout-v2 .billing-overview-grid,body.layout-v2 .billing-specialty-grid{grid-template-columns:1fr}
  body.layout-v2 .agenda-workspace-grid{grid-template-columns:1fr}
  body.layout-v2 .agenda-detail-rail{position:static}
  body.layout-v2 .com-agenda-detail-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.layout-v2 #receita .mix-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1080px){
  :root{--sidebar-width:230px}
  body.layout-v2 .workspace{padding:14px 16px 28px}
  body.layout-v2 .workspace-topbar{align-items:flex-start;flex-direction:column}
  body.layout-v2 .workspace-actions,body.layout-v2 .filter-group{width:100%;justify-content:flex-start}
  body.layout-v2 .dashboard-span-6{grid-column:span 12}
  body.layout-v2 .conversion-doctor-grid,body.layout-v2 .conversion-specialty-grid{grid-template-columns:1fr}
  body.layout-v2 .mix-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.layout-v2 .billing-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  body.layout-v2 .app{display:block}
  body.layout-v2 .side-rail{position:relative;height:auto;padding:14px 14px 12px;box-shadow:0 10px 26px rgba(6,47,74,.14)}
  body.layout-v2 .side-top{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:center}
  body.layout-v2 .brand{padding:0;border:0;min-width:190px}
  body.layout-v2 .brandmark{width:44px;height:44px}
  body.layout-v2 .side-label,body.layout-v2 .side-footer{display:none}
  body.layout-v2 .tabstrip{display:flex;gap:6px;overflow:auto}
  body.layout-v2 .tabbtn{min-width:56px;width:auto;grid-template-columns:38px;padding:6px;border-radius:13px}
  body.layout-v2 .tab-copy,body.layout-v2 .tab-arrow{display:none}
  body.layout-v2 .tab-icon{width:38px;height:38px}
  body.layout-v2 .workspace{padding:12px}
  body.layout-v2 .workspace-topbar{top:8px;border-radius:17px;padding:13px}
  body.layout-v2 .module-hero{padding:24px;min-height:190px;align-items:flex-start}
  body.layout-v2 .module-hero .exec-period{justify-content:flex-start}
  body.layout-v2 .exec-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.layout-v2 .exec-kpi:nth-child(n){grid-column:span 1}
  body.layout-v2 .exec-kpi:last-child{grid-column:1/-1}
  body.layout-v2 .conversion-trends-grid{grid-template-columns:1fr}
  body.layout-v2 .conversion-trends-grid>article:last-child{grid-column:auto}
  body.layout-v2 .billing-detail-toolbar{align-items:flex-start;flex-direction:column}
  body.layout-v2 .billing-detail-actions,body.layout-v2 .billing-search{width:100%;max-width:none}
  body.layout-v2 .com-agenda-detail-metrics{grid-template-columns:1fr!important}
}
@media(max-width:560px){
  body.layout-v2 .filter-fixed{display:none}
  body.layout-v2 .workspace-brand{font-size:.82rem}
  body.layout-v2 .workspace-title-row h1{font-size:1.05rem}
  body.layout-v2 .module-hero h1{font-size:1.62rem}
  body.layout-v2 .exec-grid,body.layout-v2 .mix-kpi-grid,body.layout-v2 .billing-kpi-grid{grid-template-columns:1fr}
  body.layout-v2 .billing-chart-panel .canvas-wrap{height:310px}
  body.layout-v2 .billing-search{display:block}
  body.layout-v2 .billing-search span{display:block;margin-bottom:7px}
  body.layout-v2 .billing-search input{min-width:0}
  body.layout-v2 .billing-detail-actions{align-items:stretch;flex-direction:column}
  body.layout-v2 .billing-column-picker summary{width:100%}
  body.layout-v2 .billing-column-menu{left:0;right:auto;width:min(100%,300px)}
  body.layout-v2 .exec-kpi:nth-child(n){grid-column:1}
  body.layout-v2 .executive-dashboard-grid{grid-template-columns:1fr}
  body.layout-v2 .dashboard-span-7,body.layout-v2 .dashboard-span-5,body.layout-v2 .dashboard-span-6,body.layout-v2 .dashboard-span-12{grid-column:1}
  body.layout-v2 .agenda-workspace-grid{padding:12px}
  body.layout-v2 .com-agenda-kpis{grid-template-columns:1fr!important;padding:12px 12px 0}
  body.layout-v2 .agenda-calendar-stage{padding:10px}
  body.layout-v2 .com-agenda-grid{grid-template-columns:1fr!important}
  body.layout-v2 .com-agenda-day{height:180px!important}
}


/* ========================================================================== */
/* V3 · CEO cockpit + agenda sem cortes + seletor de ano                     */
/* ========================================================================== */
body.layout-v2 .year-reference-control{display:flex;align-items:center;gap:8px;height:38px;padding:4px 5px 4px 10px;border:1px solid #D7E6EC;border-radius:12px;background:#F7FBFC;color:#567380;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
body.layout-v2 .year-reference-control>span{font-size:.57rem;font-weight:800;text-transform:uppercase;letter-spacing:.07em;white-space:nowrap}
body.layout-v2 .year-reference-control select{appearance:none;border:0;outline:0;border-radius:9px;background:#fff;color:var(--he-navy);font:800 .72rem/1 "Manrope",sans-serif;padding:8px 30px 8px 10px;cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,#547887 50%),linear-gradient(135deg,#547887 50%,transparent 50%);background-position:calc(100% - 14px) 50%,calc(100% - 10px) 50%;background-size:4px 4px,4px 4px;background-repeat:no-repeat}
body.layout-v2 .module-hero{min-height:118px;padding:20px 24px;border-radius:24px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:22px}
body.layout-v2 .module-hero h1{font-size:1.64rem;margin:0}
body.layout-v2 .module-hero p{font-size:.74rem;margin-top:6px}
body.layout-v2 .module-eyebrow{font-size:.57rem;margin-bottom:6px}
body.layout-v2 .module-hero .exec-period{max-width:520px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
body.layout-v2 .module-hero .exec-period span{display:flex;align-items:center;justify-content:center;text-align:center;min-height:42px;padding:7px 9px;line-height:1.25}

body.layout-v2 .exec-grid.executive-scorecard{display:grid;grid-template-columns:minmax(340px,4.4fr) minmax(0,7.6fr);gap:16px;align-items:stretch}
body.layout-v2 .executive-scorecard>.exec-kpi:nth-child(n),body.layout-v2 .executive-secondary-grid>.exec-kpi:nth-child(n){grid-column:auto}
body.layout-v2 .executive-primary-card{min-height:306px;padding:24px 25px 21px!important;border:0!important;color:#fff;background:linear-gradient(145deg,#052E48 0%,#075E86 58%,#0B7EA4 100%)!important;box-shadow:0 22px 52px rgba(4,52,79,.22)!important;overflow:hidden}
body.layout-v2 .executive-primary-card::before{content:"";position:absolute!important;width:270px!important;height:270px!important;left:auto!important;right:-120px!important;top:-125px!important;bottom:auto!important;border:42px solid rgba(255,255,255,.07)!important;border-radius:50%!important;background:transparent!important}
body.layout-v2 .executive-primary-card::after{display:block!important;content:"";position:absolute;right:110px;bottom:-155px;width:220px;height:220px;border:30px solid rgba(255,255,255,.045);border-radius:50%}
body.layout-v2 .exec-primary-top,body.layout-v2 .exec-primary-body,body.layout-v2 .executive-primary-card>.ek-sub,body.layout-v2 .exec-primary-comparison{position:relative;z-index:1}
body.layout-v2 .exec-primary-top{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
body.layout-v2 .executive-primary-card .ek-label{color:rgba(255,255,255,.72);font-size:.68rem;padding:0}
body.layout-v2 .executive-primary-card .exec-primary-period{color:#fff;font-weight:950;letter-spacing:-.01em}
body.layout-v2 .exec-primary-caption{font-size:.62rem;color:rgba(255,255,255,.55);margin-top:5px}
body.layout-v2 .exec-primary-badge{font-size:.56rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.10);border-radius:999px;padding:6px 9px}
body.layout-v2 .exec-primary-body{display:flex;align-items:flex-end;gap:13px;flex-wrap:wrap;margin-top:23px}
body.layout-v2 .executive-primary-card .ek-value{font-size:2.82rem;color:#fff;margin:0;letter-spacing:-.065em}
body.layout-v2 .executive-primary-card .ek-delta{margin:0 0 5px}
body.layout-v2 .executive-primary-card .delta{background:rgba(255,255,255,.13);color:#fff;border-color:rgba(255,255,255,.13)}
body.layout-v2 .executive-primary-card>.ek-sub{font-size:.66rem;color:rgba(255,255,255,.66);margin:8px 0 0;padding:0}
body.layout-v2 .exec-primary-comparison{display:grid;gap:10px;margin-top:auto;padding-top:22px}
body.layout-v2 .exec-comparison-row>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px}
body.layout-v2 .exec-comparison-row span{font-size:.58rem;color:rgba(255,255,255,.61);font-weight:700}
body.layout-v2 .exec-comparison-row strong{font-size:.62rem;color:#fff;font-weight:800}
body.layout-v2 .exec-comparison-track{height:7px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden}
body.layout-v2 .exec-comparison-track i{display:block;height:100%;width:72%;border-radius:inherit;background:linear-gradient(90deg,#79E4F2,#fff);transition:width .5s ease}
body.layout-v2 .exec-comparison-row.previous .exec-comparison-track i{width:58%;background:rgba(255,255,255,.38)}
body.layout-v2 .executive-secondary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.layout-v2 .executive-secondary-grid .exec-kpi{min-height:146px;padding:18px 18px 15px 20px;position:relative}
body.layout-v2 .executive-secondary-grid .exec-kpi::before{top:18px;bottom:18px}
body.layout-v2 .exec-card-icon{position:absolute;right:15px;top:14px;width:31px;height:31px;border-radius:10px;display:grid;place-items:center;background:#EDF6F9;color:var(--he-blue);font-size:.64rem;font-weight:900}
body.layout-v2 .production-icon{background:#FFF5E4;color:#B47713}.agenda-icon{background:#EAF9FC;color:#0A88A7}.conversion-icon{background:#EBF8F4;color:#147A67}
body.layout-v2 .executive-secondary-grid .ek-label{padding-right:38px}
body.layout-v2 .executive-secondary-grid .ek-value{font-size:1.68rem;margin-top:12px}
body.layout-v2 .executive-secondary-grid .ek-sub{padding-top:7px}

body.layout-v2 .dashboard-span-8{grid-column:span 8}.dashboard-span-4{grid-column:span 4}.dashboard-span-7{grid-column:span 7}
/* Painel: 1ª linha cirurgias + consultas realizadas × agendadas; faixa do crescimento; 2ª trajetória do ano + realizado/tendência por mês; 3ª ticket + conversão; 4ª funil + especialidade. */
body.layout-v2 .exec-volume-card{order:1}.exec-consult-volume-card{order:2}.exec-forecast-band{order:3}.exec-trajectory-card{order:4}.exec-forecast-card{order:5}.exec-ticket-card{order:6}.exec-conversion-card{order:7}.exec-funnel-card{order:8}.exec-specialty-card{order:9}.exec-calendar-card{order:10}
body.layout-v2 .exec-forecast-band{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;margin-top:8px}
body.layout-v2 .exec-forecast-band[hidden]{display:none}
body.layout-v2 .exec-band-title{font-size:1.32rem;font-weight:800;letter-spacing:-.035em;color:var(--he-navy)}
body.layout-v2 .exec-band-sub{margin-top:4px;font-size:.74rem;line-height:1.45;color:var(--he-muted)}
body.layout-v2 .exec-funnel-card{align-self:stretch;display:flex;flex-direction:column;min-height:100%;margin-top:0;overflow:hidden}
body.layout-v2 .exec-funnel-card .panel-head{flex:0 0 auto}
body.layout-v2 .exec-funnel-card .sales-funnel-wrap{display:flex;align-items:center;flex:1;width:100%;max-width:none;min-height:0;margin:0;padding:4px 0}
body.layout-v2 .exec-funnel-card .sales-funnel-stack{width:100%;margin:0;padding-right:120px}
body.layout-v2 .exec-funnel-card .sales-funnel-shape{height:104px;padding-inline:24px}
body.layout-v2 .exec-funnel-card .sales-funnel-value{font-size:1.42rem}
body.layout-v2 .exec-funnel-card .sales-funnel-loss{width:112px}
/* Layout anterior da agenda; a regra V5 abaixo restaura o detalhe lateral. */
body.layout-v2 .agenda-workspace-grid{grid-template-columns:1fr!important;gap:14px;padding:16px 20px 20px}
body.layout-v2 .agenda-detail-rail{position:static!important;top:auto}
body.layout-v2 .agenda-calendar-stage{overflow:visible;padding:16px;scrollbar-width:thin;scrollbar-color:#B8D4DF transparent}
body.layout-v2 .com-agenda-grid{grid-auto-rows:minmax(226px,auto);align-items:stretch}
body.layout-v2 .com-agenda-day{height:auto!important;min-height:226px!important;padding:12px!important;overflow:hidden!important;display:flex!important}
body.layout-v2 .com-day-metrics{gap:7px!important;margin-top:10px!important}
body.layout-v2 .com-day-metric{display:grid!important;grid-template-columns:8px minmax(0,1fr)!important;align-items:start!important;gap:7px!important;min-height:72px!important;padding:8px!important}
body.layout-v2 .com-day-dot{margin-top:5px}
body.layout-v2 .com-day-copy{min-width:0;width:100%}
body.layout-v2 .com-day-metric-top{display:flex;align-items:flex-start;justify-content:space-between;gap:5px;min-width:0}
body.layout-v2 .com-day-label{font-size:.59rem!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.2}
body.layout-v2 .com-day-side{font-size:.56rem!important;line-height:1.15;padding:0!important;text-align:right;white-space:nowrap;flex:0 0 auto}
body.layout-v2 .com-day-value{font-size:1rem!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.15;margin-top:5px!important}
body.layout-v2 .com-day-aa{font-size:.53rem!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.25;margin-top:5px!important}
body.layout-v2 .com-day-foot{font-size:.56rem!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.35;padding-top:8px!important}
body.layout-v2 .com-agenda-detail{padding:18px 19px!important}
body.layout-v2 .com-agenda-detail-head{grid-template-columns:minmax(0,1fr) auto!important}
body.layout-v2 .com-agenda-detail-total{justify-content:flex-end!important;margin-top:0}
body.layout-v2 .com-agenda-detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.layout-v2 .com-agenda-detail-list{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-height:none!important;overflow:visible!important;padding-right:0}
body.layout-v2 .com-agenda-detail-item{min-width:0}
body.layout-v2 .com-agenda-detail-doc,body.layout-v2 .com-agenda-detail-spec{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.25}

@media(max-width:1320px){
  body.layout-v2 .exec-grid.executive-scorecard{grid-template-columns:1fr}
  body.layout-v2 .executive-primary-card{min-height:280px}
  body.layout-v2 .dashboard-span-8,body.layout-v2 .dashboard-span-4,body.layout-v2 .dashboard-span-7{grid-column:span 12}
  body.layout-v2 .exec-ticket-card,body.layout-v2 .exec-conversion-card{grid-column:span 6}
}
@media(max-width:1120px) and (min-width:821px){
  body.layout-v2 .agenda-calendar-stage{overflow-x:auto}
  body.layout-v2 .com-agenda-weekdays,body.layout-v2 .com-agenda-grid{min-width:980px}
}
@media(max-width:1080px){
  body.layout-v2 .year-reference-control{order:-2}
  body.layout-v2 .exec-ticket-card,body.layout-v2 .exec-conversion-card{grid-column:span 12}
  body.layout-v2 .com-agenda-detail-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:820px){
  body.layout-v2 .module-hero{grid-template-columns:1fr;min-height:0}
  body.layout-v2 .module-hero .exec-period{grid-template-columns:1fr 1fr;max-width:none;width:100%}
  body.layout-v2 .executive-secondary-grid{grid-template-columns:1fr 1fr}
  body.layout-v2 .com-agenda-weekdays{display:none!important}
  body.layout-v2 .com-agenda-grid{min-width:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:620px){
  body.layout-v2 .year-reference-control{width:100%;justify-content:space-between}
  body.layout-v2 .year-reference-control select{flex:1;max-width:120px}
  body.layout-v2 .module-hero .exec-period{grid-template-columns:1fr}
  body.layout-v2 .executive-secondary-grid{grid-template-columns:1fr}
  body.layout-v2 .executive-primary-card .ek-value{font-size:2.25rem}
  body.layout-v2 .com-agenda-grid{grid-template-columns:1fr!important}
  body.layout-v2 .com-agenda-detail-head{grid-template-columns:1fr!important}
  body.layout-v2 .com-agenda-detail-total{justify-content:flex-start!important;margin-top:8px}
  body.layout-v2 .com-agenda-detail-metrics,body.layout-v2 .com-agenda-detail-list{grid-template-columns:1fr!important}
}

/* ========================================================================== */
/* Agenda Comercial V5 · compacta, detalhe lateral e referência pela média    */
/* ========================================================================== */
body.layout-v2 #capacidade .agenda-commercial-head{margin-bottom:7px}
body.layout-v2 #capacidade .agenda-commercial-head h2{font-size:1.38rem!important}
body.layout-v2 #capacidade .agenda-commercial-head p{font-size:.68rem!important;line-height:1.35!important}
body.layout-v2 .com-agenda-toolbar{padding:9px 13px!important}
body.layout-v2 .com-agenda-period{gap:7px}
body.layout-v2 .com-agenda-period-copy{min-width:165px}
body.layout-v2 .com-agenda-month-title{font-size:1.02rem!important}
body.layout-v2 .com-agenda-month-sub{font-size:.54rem!important;margin-top:3px!important}
body.layout-v2 .com-agenda-nav{width:32px!important;height:32px!important;border-radius:9px!important;font-size:1.05rem!important}
body.layout-v2 .com-agenda-today{font-size:.54rem!important;padding:6px 9px!important}
body.layout-v2 .com-agenda-source{font-size:.50rem!important;padding:5px 7px!important}
body.layout-v2 .com-agenda-kpis{padding:8px 13px 0!important;gap:7px!important}
body.layout-v2 .com-agenda-kpi{min-height:68px!important;padding:8px 10px!important;border-radius:12px!important}
body.layout-v2 .com-agenda-kpi-label{font-size:.49rem!important}
body.layout-v2 .com-agenda-kpi-value{font-size:1.12rem!important;margin-top:4px!important}
body.layout-v2 .com-agenda-kpi-note{font-size:.47rem!important;margin-top:3px!important}
body.layout-v2 .agenda-workspace-grid{gap:11px!important;padding:8px 13px 11px!important;align-items:start!important}
body.layout-v2 .agenda-calendar-stage{padding:7px!important;border-radius:14px!important;overflow:visible!important}
body.layout-v2 .com-agenda-weekdays{margin-bottom:3px!important}
body.layout-v2 .com-agenda-weekdays div{font-size:.48rem!important;padding:1px 0!important}
body.layout-v2 .com-agenda-grid{gap:4px!important;grid-auto-rows:80px!important;min-width:0!important;align-items:stretch}
body.layout-v2 .com-agenda-day{height:80px!important;min-height:80px!important;padding:4px 5px 5px!important;border-radius:9px!important;overflow:hidden!important}
body.layout-v2 .com-agenda-day::after{height:3px}
body.layout-v2 .com-agenda-day-num strong{font-size:.70rem!important}
body.layout-v2 .com-agenda-day-num span{font-size:.39rem!important;margin-left:0!important}
body.layout-v2 .com-agenda-state{font-size:.35rem!important;padding:2px 4px!important;letter-spacing:.025em!important}
body.layout-v2 .com-day-metrics{gap:2px!important;margin-top:3px!important}
body.layout-v2 .com-day-metric{display:grid!important;grid-template-columns:5px minmax(0,1fr)!important;gap:4px!important;min-height:27px!important;padding:2px 3px!important;border-radius:6px!important;align-items:start!important}
body.layout-v2 .com-day-dot{width:5px!important;height:5px!important;margin-top:4px!important}
body.layout-v2 .com-day-copy{width:100%;line-height:1!important}
body.layout-v2 .com-day-metric-top{display:flex;align-items:center;justify-content:space-between;gap:3px}
body.layout-v2 .com-day-label{font-size:.40rem!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.layout-v2 .com-day-side{font-size:.39rem!important;line-height:1!important;padding:0!important}
body.layout-v2 .com-day-value{font-size:.60rem!important;line-height:1!important;margin-top:2px!important;white-space:nowrap!important}
body.layout-v2 .com-day-aa{font-size:.35rem!important;line-height:1!important;margin-top:2px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.layout-v2 .com-day-foot{display:none!important}
body.layout-v2 .com-agenda-legend{font-size:.45rem!important;gap:8px!important;margin:5px 2px 0!important;padding-top:5px!important}
body.layout-v2 .com-agenda-legend i{width:6px!important;height:6px!important;border-radius:2px!important}
body.layout-v2 .agenda-detail-rail{position:sticky!important;top:82px!important;min-width:0}
body.layout-v2 .com-agenda-detail{margin:0!important;padding:11px!important;border-radius:14px!important}
body.layout-v2 .com-agenda-detail-head{grid-template-columns:1fr!important;gap:5px!important;padding-bottom:8px!important}
body.layout-v2 .com-agenda-detail-date{font-size:.82rem!important}
body.layout-v2 .com-agenda-detail-sub{font-size:.50rem!important;margin-top:3px!important}
body.layout-v2 .com-agenda-detail-total{justify-content:flex-start!important;margin-top:2px!important}
body.layout-v2 .com-agenda-detail-total strong{font-size:1.25rem!important}
body.layout-v2 .com-agenda-detail-total span{font-size:.48rem!important}
body.layout-v2 .com-agenda-detail-metrics{grid-template-columns:1fr!important;gap:5px!important;margin-top:8px!important}
body.layout-v2 .com-detail-metric{padding:7px 8px!important;border-radius:9px!important}
body.layout-v2 .com-detail-metric span{font-size:.47rem!important}
body.layout-v2 .com-detail-metric strong{font-size:.76rem!important;margin-top:3px!important}
body.layout-v2 .com-detail-aa{font-size:.45rem!important;margin-top:3px!important}
body.layout-v2 .com-detail-delta{font-size:.53rem!important;margin-top:3px!important}
body.layout-v2 .com-agenda-detail-list{grid-template-columns:1fr!important;gap:5px!important;margin-top:7px!important;max-height:260px!important;overflow:auto!important;padding-right:2px!important}
body.layout-v2 .com-agenda-detail-item{grid-template-columns:25px minmax(0,1fr) auto!important;gap:6px!important;padding:5px 6px!important;border-radius:8px!important}
body.layout-v2 .com-agenda-detail-avatar{width:25px!important;height:25px!important;border-radius:7px!important;font-size:.45rem!important}
body.layout-v2 .com-agenda-detail-doc{font-size:.52rem!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.layout-v2 .com-agenda-detail-spec{font-size:.43rem!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.layout-v2 .com-agenda-detail-qty{font-size:.64rem!important}
body.layout-v2 .com-agenda-detail-empty{font-size:.50rem!important;padding:10px!important}
body.layout-v2 .com-agenda-foot{margin:0!important;padding:0 13px 9px!important;font-size:.48rem!important;line-height:1.35!important}

@media(min-width:1181px){
  body.layout-v2 .agenda-workspace-grid{grid-template-columns:minmax(0,3.35fr) minmax(250px,.92fr)!important}
}
@media(max-width:1180px){
  body.layout-v2 .agenda-workspace-grid{grid-template-columns:1fr!important}
  body.layout-v2 .agenda-detail-rail{position:static!important;top:auto!important}
  body.layout-v2 .com-agenda-detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.layout-v2 .com-agenda-detail-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:260px!important}
}
@media(max-width:820px){
  body.layout-v2 .com-agenda-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:112px!important}
  body.layout-v2 .com-agenda-day{height:112px!important;min-height:112px!important;padding:7px!important}
  body.layout-v2 .com-day-metric{min-height:39px!important;padding:5px!important}
  body.layout-v2 .com-day-label{font-size:.50rem!important}
  body.layout-v2 .com-day-value{font-size:.72rem!important}
  body.layout-v2 .com-day-aa{font-size:.43rem!important}
}
@media(max-width:620px){
  body.layout-v2 .com-agenda-grid{grid-template-columns:1fr!important}
  body.layout-v2 .com-agenda-detail-metrics,body.layout-v2 .com-agenda-detail-list{grid-template-columns:1fr!important}
}

/* ========================================================================== */
/* Agenda Comercial V6 · mais legível e sem conteúdo vertical redundante      */
/* ========================================================================== */
body.layout-v2 #capacidade.tabpage{margin-top:9px}
body.layout-v2 #capacidade .com-agenda-panel{margin-top:0}
body.layout-v2 #capacidade .com-agenda-foot{display:none}
body.layout-v2[data-active-page="capacidade"] .workspace-footer{display:none}
body.layout-v2[data-active-page="capacidade"] .workspace{padding-bottom:12px}
body.layout-v2 .com-agenda-month-title{font-size:1.12rem!important}
body.layout-v2 .com-agenda-month-sub{font-size:.62rem!important}
body.layout-v2 .com-agenda-source{font-size:.56rem!important}
body.layout-v2 .com-agenda-kpi-label{font-size:.56rem!important}
body.layout-v2 .com-agenda-kpi-value{font-size:1.22rem!important}
body.layout-v2 .com-agenda-kpi-note{font-size:.54rem!important}
body.layout-v2 .com-agenda-weekdays div{font-size:.59rem!important}
body.layout-v2 .com-agenda-grid{grid-auto-rows:82px!important}
body.layout-v2 .com-agenda-day{height:82px!important;min-height:82px!important;padding:5px 6px 6px!important}
body.layout-v2 .com-agenda-day-num strong{font-size:.84rem!important}
body.layout-v2 .com-agenda-day-num span{font-size:.47rem!important}
body.layout-v2 .com-agenda-state{font-size:.42rem!important;padding:2px 5px!important}
body.layout-v2 .com-day-metrics{gap:2px!important;margin-top:3px!important}
body.layout-v2 .com-day-metric{min-height:26px!important;padding:2px 4px!important}
body.layout-v2 .com-day-copy{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"metric-top metric-value" "metric-average metric-average";column-gap:4px;align-items:center}
body.layout-v2 .com-day-metric-top{grid-area:metric-top;min-width:0}
body.layout-v2 .com-day-label{font-size:.49rem!important}
body.layout-v2 .com-day-side{font-size:.47rem!important}
body.layout-v2 .com-day-value{grid-area:metric-value;font-size:.73rem!important;margin-top:0!important;text-align:right}
body.layout-v2 .com-day-aa{grid-area:metric-average;font-size:.43rem!important;margin-top:2px!important}
body.layout-v2 .com-agenda-legend{font-size:.52rem!important}
body.layout-v2 .com-agenda-legend i{width:7px!important;height:7px!important}
body.layout-v2 .com-agenda-detail-date{font-size:.94rem!important}
body.layout-v2 .com-agenda-detail-sub{font-size:.57rem!important}
body.layout-v2 .com-agenda-detail-total strong{font-size:1.38rem!important}
body.layout-v2 .com-agenda-detail-total span{font-size:.54rem!important}
body.layout-v2 .com-detail-metric span{font-size:.54rem!important}
body.layout-v2 .com-detail-metric strong{font-size:.86rem!important}
body.layout-v2 .com-detail-aa{font-size:.50rem!important}
body.layout-v2 .com-detail-delta{font-size:.58rem!important}
body.layout-v2 .com-agenda-detail-doc{font-size:.59rem!important}
body.layout-v2 .com-agenda-detail-spec{font-size:.49rem!important}
body.layout-v2 .com-agenda-detail-qty{font-size:.72rem!important}
body.layout-v2 .com-agenda-detail-empty{font-size:.55rem!important}

@media(min-width:1181px){
  body.layout-v2[data-active-page="capacidade"] .workspace{padding:8px 24px}
  body.layout-v2[data-active-page="capacidade"] .workspace-topbar{top:8px;padding:8px 14px}
  body.layout-v2[data-active-page="capacidade"] #capacidade.tabpage{margin-top:6px}
  body.layout-v2[data-active-page="capacidade"] .com-agenda-kpis{padding-top:6px!important}
  body.layout-v2[data-active-page="capacidade"] .com-agenda-kpi{min-height:60px!important;padding:6px 10px!important}
  body.layout-v2[data-active-page="capacidade"] .agenda-workspace-grid{padding-top:6px!important;padding-bottom:7px!important}
}
@media(min-width:1181px) and (min-height:850px){
  body.layout-v2 .com-agenda-grid{grid-auto-rows:88px!important}
  body.layout-v2 .com-agenda-day{height:88px!important;min-height:88px!important}
}
@media(max-width:820px){
  body.layout-v2 .com-agenda-grid{grid-auto-rows:112px!important}
  body.layout-v2 .com-agenda-day{height:112px!important;min-height:112px!important}
}

/* ========================================================================== */
/* Agenda Comercial V7 · calendario integral, tooltip e detalhe em popup      */
/* ========================================================================== */
body.layout-v2 #capacidade .agenda-workspace-grid{grid-template-columns:minmax(0,1fr)!important}
body.layout-v2 #capacidade .agenda-calendar-stage{width:100%;padding:9px!important}
body.layout-v2 #capacidade .com-agenda-grid{gap:6px!important}
body.layout-v2 #capacidade .com-agenda-day{padding:6px 8px!important}
body.layout-v2 #capacidade .com-agenda-day-num strong{font-size:.92rem!important}
body.layout-v2 #capacidade .com-agenda-day-num span{font-size:.50rem!important}
body.layout-v2 #capacidade .com-agenda-state{font-size:.46rem!important}
body.layout-v2 #capacidade .com-day-label{font-size:.54rem!important}
body.layout-v2 #capacidade .com-day-side{font-size:.51rem!important}
body.layout-v2 #capacidade .com-day-value{font-size:.82rem!important}
body.layout-v2 #capacidade .com-day-aa{font-size:.47rem!important}

.agenda-detail-modal{width:min(760px,calc(100vw - 32px));max-width:760px;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:0;border-radius:24px;background:transparent;box-shadow:0 30px 80px rgba(3,38,57,.30);overflow:visible;color:var(--he-text)}
.agenda-detail-modal::backdrop{background:rgba(3,35,53,.54);backdrop-filter:blur(7px)}
.agenda-detail-modal[open]{animation:agendaModalIn .18s ease-out}
@keyframes agendaModalIn{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
.agenda-modal-close{position:absolute;right:14px;top:14px;z-index:2;width:34px;height:34px;display:grid;place-items:center;border:1px solid #D7E6EC;border-radius:11px;background:#fff;color:#456573;font-size:1.25rem;line-height:1;cursor:pointer;box-shadow:0 5px 14px rgba(10,61,84,.08)}
.agenda-modal-close:hover{background:#EEF7FA;color:var(--he-blue);border-color:#B8D9E4}
body.layout-v2 .agenda-detail-modal .com-agenda-detail{max-height:calc(100dvh - 32px);margin:0!important;padding:22px!important;border:0!important;border-radius:24px!important;background:linear-gradient(180deg,#fff,#F5FAFC)!important;box-shadow:none!important;overflow:auto}
body.layout-v2 .agenda-detail-modal .com-agenda-detail-head{grid-template-columns:minmax(0,1fr) auto!important;padding-right:40px!important}
body.layout-v2 .agenda-detail-modal .com-agenda-detail-date{font-size:1.13rem!important}
body.layout-v2 .agenda-detail-modal .com-agenda-detail-sub{font-size:.66rem!important}
body.layout-v2 .agenda-detail-modal .com-agenda-detail-total{justify-content:flex-end!important;margin-top:0!important}
body.layout-v2 .agenda-detail-modal .com-agenda-detail-total strong{font-size:1.72rem!important}
body.layout-v2 .agenda-detail-modal .com-agenda-detail-total span{font-size:.62rem!important}
body.layout-v2 .agenda-detail-modal .com-agenda-detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body.layout-v2 .agenda-detail-modal .com-detail-metric{padding:11px 12px!important}
body.layout-v2 .agenda-detail-modal .com-detail-metric span{font-size:.61rem!important}
body.layout-v2 .agenda-detail-modal .com-detail-metric strong{font-size:1.08rem!important}
body.layout-v2 .agenda-detail-modal .com-detail-aa{font-size:.57rem!important}
body.layout-v2 .agenda-detail-modal .com-detail-delta{font-size:.67rem!important}
body.layout-v2 .agenda-detail-modal .com-agenda-detail-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:48vh!important;gap:8px!important;margin-top:12px!important;padding-right:3px!important;overflow:auto!important}
body.layout-v2 .agenda-detail-modal .com-agenda-detail-item{grid-template-columns:34px minmax(0,1fr) auto!important;gap:9px!important;padding:8px 9px!important}
body.layout-v2 .agenda-detail-modal .com-agenda-detail-avatar{width:34px!important;height:34px!important;font-size:.56rem!important}
body.layout-v2 .agenda-detail-modal .com-agenda-detail-doc{font-size:.67rem!important}
body.layout-v2 .agenda-detail-modal .com-agenda-detail-spec{font-size:.55rem!important}
body.layout-v2 .agenda-detail-modal .com-agenda-detail-qty{font-size:.82rem!important}

.agenda-day-tooltip{position:fixed;z-index:1200;width:min(290px,calc(100vw - 24px));padding:11px 12px;border-radius:14px;background:#073B56;color:#fff;box-shadow:0 16px 36px rgba(2,34,50,.24);pointer-events:none;opacity:0;transform:translateY(4px);transition:opacity .12s ease,transform .12s ease}
.agenda-day-tooltip.is-visible{opacity:1;transform:none}
.agenda-day-tooltip strong{display:block;font-size:.68rem;font-weight:900;text-transform:capitalize}
.agenda-tooltip-state{display:inline-flex;margin-top:5px;padding:3px 6px;border-radius:999px;background:rgba(255,255,255,.13);font-size:.48rem;font-weight:900;letter-spacing:.05em}
.agenda-tooltip-metrics{display:grid;gap:5px;margin-top:8px}
.agenda-tooltip-metric{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding-top:5px;border-top:1px solid rgba(255,255,255,.11)}
.agenda-tooltip-metric span{font-size:.55rem;color:rgba(255,255,255,.72);font-weight:700}
.agenda-tooltip-metric b{font-size:.74rem;color:#fff}
.agenda-tooltip-metric em{grid-column:1/-1;font-size:.49rem;color:#9DE8F4;font-style:normal;font-weight:750}
.agenda-day-tooltip small{display:block;margin-top:8px;font-size:.49rem;color:rgba(255,255,255,.58);font-weight:700}

@media(max-width:700px){
  .agenda-detail-modal{width:calc(100vw - 18px);max-height:calc(100dvh - 18px);border-radius:19px}
  body.layout-v2 .agenda-detail-modal .com-agenda-detail{max-height:calc(100dvh - 18px);padding:18px 14px!important;border-radius:19px!important}
  body.layout-v2 .agenda-detail-modal .com-agenda-detail-head{grid-template-columns:1fr!important;padding-right:34px!important}
  body.layout-v2 .agenda-detail-modal .com-agenda-detail-total{justify-content:flex-start!important}
  body.layout-v2 .agenda-detail-modal .com-agenda-detail-metrics,body.layout-v2 .agenda-detail-modal .com-agenda-detail-list{grid-template-columns:1fr!important}
  .agenda-day-tooltip{display:none!important}
}

/* ========================================================================== */
/* Agenda Comercial V8 · mais altura útil e tipografia ligeiramente ampliada  */
/* ========================================================================== */
body.layout-v2 #capacidade .agenda-calendar-stage{padding:9px 9px 13px!important}
body.layout-v2 #capacidade .com-agenda-grid{grid-auto-rows:92px!important}
body.layout-v2 #capacidade .com-agenda-day{height:92px!important;min-height:92px!important;padding:7px 9px!important}
body.layout-v2 #capacidade .com-agenda-day-num strong{font-size:.98rem!important}
body.layout-v2 #capacidade .com-agenda-day-num span{font-size:.53rem!important}
body.layout-v2 #capacidade .com-agenda-state{font-size:.49rem!important}
body.layout-v2 #capacidade .com-day-metric{min-height:26px!important;padding:3px 5px!important}
body.layout-v2 #capacidade .com-day-label{font-size:.58rem!important}
body.layout-v2 #capacidade .com-day-side{font-size:.55rem!important}
body.layout-v2 #capacidade .com-day-value{font-size:.89rem!important}
body.layout-v2 #capacidade .com-day-aa{font-size:.50rem!important}
body.layout-v2 #capacidade .com-agenda-legend{font-size:.55rem!important;margin-bottom:2px!important}

@media(min-width:1181px) and (min-height:850px){
  body.layout-v2 #capacidade .com-agenda-grid{grid-auto-rows:96px!important}
  body.layout-v2 #capacidade .com-agenda-day{height:96px!important;min-height:96px!important}
}
@media(max-width:820px){
  body.layout-v2 #capacidade .com-agenda-grid{grid-auto-rows:116px!important}
  body.layout-v2 #capacidade .com-agenda-day{height:116px!important;min-height:116px!important}
}

/* Tabelas ordenáveis e analítico diário da Agenda */
.mix-table thead th.is-sortable,.agenda-analytic-table thead th.is-sortable{cursor:pointer;user-select:none;outline:none;padding-right:1.25rem}
.mix-table thead th.is-sortable::after,.agenda-analytic-table thead th.is-sortable::after{content:'↕';position:absolute;right:.42rem;top:50%;transform:translateY(-50%);font-size:.68rem;color:#9AADB5;opacity:.72}
.mix-table thead th[aria-sort="ascending"]::after,.agenda-analytic-table thead th[aria-sort="ascending"]::after{content:'▲';color:#096A9D;opacity:1}
.mix-table thead th[aria-sort="descending"]::after,.agenda-analytic-table thead th[aria-sort="descending"]::after{content:'▼';color:#096A9D;opacity:1}
.mix-table thead th.is-sortable:focus-visible,.agenda-analytic-table thead th.is-sortable:focus-visible{box-shadow:inset 0 0 0 2px rgba(9,106,157,.28)}
.agenda-detail-modal{width:min(1120px,calc(100vw - 32px))!important;max-width:1120px!important}
body.layout-v2 .agenda-detail-modal .com-agenda-detail-list{display:block!important;max-height:none!important;overflow:visible!important;margin-top:14px!important;padding-right:0!important}
body.layout-v2 .agenda-detail-modal .com-agenda-detail-metrics.is-future{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.layout-v2 .com-agenda-kpis.is-two{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.layout-v2 .agenda-detail-modal .com-agenda-detail-list[hidden],body.layout-v2 .agenda-detail-modal .com-agenda-detail-total[hidden]{display:none!important}
.agenda-analytic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.agenda-analytic-grid.is-single{grid-template-columns:1fr}
.agenda-analytic-section{min-width:0;border:1px solid #DFEAF0;border-radius:15px;background:#fff;overflow:hidden}
.agenda-analytic-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #E4EDF1;background:#F7FBFC}
.agenda-analytic-head strong{display:block;font-size:.72rem;color:#173F56;font-weight:900}
.agenda-analytic-head span{display:block;margin-top:3px;font-size:.56rem;color:#7E929B;font-weight:700}
.agenda-analytic-count{flex:none;padding:4px 7px;border-radius:999px;background:#EAF6FA;color:#08759E;font-size:.57rem!important;font-weight:900!important;white-space:nowrap}
.agenda-analytic-table-wrap{max-height:42vh;overflow:auto}
.agenda-analytic-table{width:100%;border-collapse:collapse;font-size:.64rem}
.agenda-analytic-table thead th{position:sticky;top:0;z-index:1;padding:9px 10px;border-bottom:1px solid #E3EDF1;background:#F7FBFC;color:#718892;font-size:.54rem;text-align:left;text-transform:uppercase;letter-spacing:.045em;white-space:nowrap}
.agenda-analytic-table tbody td{padding:9px 10px;border-bottom:1px solid #EDF3F5;color:#294E61;vertical-align:top}
.agenda-analytic-table tbody tr:last-child td{border-bottom:0}
.agenda-analytic-table tbody tr:hover{background:#F5FAFC}
.agenda-analytic-table .agenda-cell-number{text-align:right;font-variant-numeric:tabular-nums;font-weight:900;color:#096A9D}
.agenda-analytic-table .agenda-cell-muted{color:#82959E}
.agenda-analytic-empty{padding:22px 14px;text-align:center;color:#82969F;font-size:.63rem;font-weight:750}
@media(max-width:800px){.agenda-analytic-grid{grid-template-columns:1fr}.agenda-detail-modal{width:calc(100vw - 18px)!important}.agenda-analytic-table{font-size:.60rem}body.layout-v2 .agenda-detail-modal .com-agenda-detail-metrics.is-future{grid-template-columns:1fr!important}}

/* Filtros V2 · drawer lateral, responsivo e sem deslocar o dashboard */
html{scrollbar-gutter:stable}
.qlik-filter-toggle{position:relative;gap:8px!important}
.qlik-filter-menu-icon{width:17px;height:13px;display:inline-flex;flex-direction:column;justify-content:space-between;flex:none}
.qlik-filter-menu-icon i{display:block;width:100%;height:2px;border-radius:999px;background:currentColor;transition:transform .2s ease,opacity .2s ease}
.qlik-filter-menu-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.qlik-filter-drawer-open .qlik-filter-menu-icon i:nth-child(1){transform:translateY(5.5px) rotate(45deg)}
body.qlik-filter-drawer-open .qlik-filter-menu-icon i:nth-child(2){opacity:0}
body.qlik-filter-drawer-open .qlik-filter-menu-icon i:nth-child(3){transform:translateY(-5.5px) rotate(-45deg)}
.qlik-filter-backdrop{position:fixed;inset:0;z-index:10030;border:0;padding:0;background:transparent;backdrop-filter:none;opacity:0;visibility:hidden;pointer-events:none;transition:visibility .22s ease;cursor:default}
body.qlik-filter-drawer-open .qlik-filter-backdrop{opacity:0;visibility:visible;pointer-events:none}
body.layout-v2 .qlik-filter-panel{position:fixed!important;z-index:10040;inset:0 0 0 auto;width:min(470px,100vw)!important;height:100dvh;margin:0!important;padding:0!important;border:0!important;border-left:1px solid #D9E7EC!important;border-radius:24px 0 0 24px!important;background:#F7FAFC!important;box-shadow:-24px 0 60px rgba(5,43,61,.20)!important;display:flex!important;flex-direction:column;overflow:hidden;transform:translateX(102%);visibility:hidden;pointer-events:none;transition:transform .25s cubic-bezier(.22,.8,.25,1),visibility .25s ease}
body.qlik-filter-drawer-open .qlik-filter-panel{transform:none;visibility:visible;pointer-events:auto!important}
.qlik-filter-panel::before{content:'';position:absolute;z-index:3;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,#0A6D9F,#19B9D6,#0A6D9F);background-size:220% 100%;opacity:0;transition:opacity .15s ease}
body.qlik-filtering .qlik-filter-panel::before{opacity:1;animation:qlikFilterProgress 1s linear infinite}
@keyframes qlikFilterProgress{to{background-position:-220% 0}}
.qlik-filter-head{flex:none;flex-direction:row!important;align-items:center!important;margin:0!important;padding:21px 20px 16px;border-bottom:1px solid #DFE9ED;background:#fff}
.qlik-filter-head-copy{min-width:0}
.qlik-filter-head strong{font-size:.92rem!important;color:#123D55!important}
.qlik-filter-head span{font-size:.60rem!important;line-height:1.45;margin-top:4px!important}
.qlik-filter-head-actions{display:flex;align-items:center;gap:8px;flex:none}
.qlik-filter-close{width:36px;height:36px;display:grid;place-items:center;flex:none;border:1px solid #DCE8ED;border-radius:11px;background:#F7FAFC;color:#426574;font:700 1.18rem/1 Inter,system-ui,sans-serif;cursor:pointer;transition:.15s ease}
.qlik-filter-close:hover{border-color:#B8D5DF;background:#EDF7FA;color:#086D9D}
.qlik-selection-summary{flex:none;max-width:none!important;text-align:left!important;margin:12px 16px 0;padding:10px 11px;border:1px solid #DCE9EE;border-radius:12px;background:#fff;color:#4A6B79!important;font-size:.56rem!important;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qlik-drill-path{display:none!important}
.qlik-drill-stack{display:flex!important;flex:1;flex-direction:column;align-items:stretch;min-height:0;overflow-y:auto;padding:12px 16px 18px;scrollbar-width:thin;scrollbar-color:#BCD1D9 transparent}
.qlik-drill-step{flex:0 0 auto;border-radius:14px!important;background:#fff!important;border-color:#DFE9ED!important;box-shadow:0 3px 10px rgba(12,61,83,.035)}
.qlik-drill-step+.qlik-drill-step{margin-top:7px}
.qlik-drill-step[open]{border-color:#BFDDE7!important;box-shadow:0 7px 20px rgba(12,75,101,.07)}
.qlik-drill-step summary{padding:12px!important;grid-template-columns:32px minmax(0,1fr) auto!important}
.qlik-filter-head,.qlik-filter-close,.qlik-selection-summary,.qlik-drill-stack,.qlik-drill-step summary,.qlik-filter-footer{pointer-events:auto!important}
.qlik-drill-no{width:28px!important;height:28px!important;border-radius:9px!important}
.qlik-drill-name{font-size:.67rem!important}
.qlik-drill-meta{font-size:.50rem!important}
.qlik-drill-body{padding:0 12px 12px!important}
.qlik-filter-search{height:38px;margin-top:10px!important;margin-bottom:9px!important;padding:8px 11px!important;border-radius:10px!important;font-size:.61rem!important}
.qlik-filter-values{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;max-height:465px!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable;padding:1px 3px 1px 0!important}
.qlik-filter-value{position:relative;width:100%;min-height:34px;text-align:left;border-radius:10px!important;padding:7px 30px 7px 11px!important;font-size:.57rem!important;background:#fff}
.qlik-filter-value::after{content:'';position:absolute;right:11px;top:50%;width:8px;height:8px;border:2px solid #C2D1D7;border-radius:50%;transform:translateY(-50%);background:#fff}
.qlik-filter-value.state-S::after,.qlik-filter-value.state-XS::after,.qlik-filter-value.state-L::after,.qlik-filter-value.state-XL::after{border-color:#fff;background:#fff;box-shadow:inset 0 0 0 2px #0A6D9F}
.qlik-filter-value.state-PS::after{border-color:#C79028;background:#F3C864;box-shadow:inset 0 0 0 2px #FFF4D9}
.qlik-filter-limit{padding:7px 3px!important}
.qlik-drill-selected{margin-top:9px!important}
.qlik-selected-chip{font-size:.51rem!important;padding:5px 8px!important}
.qlik-filter-legend{flex:none;margin:0!important;padding:11px 16px;border-top:1px solid #DFE9ED;background:#fff}
.qlik-filter-legend em{margin:0!important;font-size:.51rem;line-height:1.35}
.qlik-filter-footer{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid #DCE8ED;background:#fff}
.qlik-filter-activity{display:flex;align-items:center;gap:7px;min-width:0;color:#708993;font-size:.54rem;font-weight:800}
.qlik-filter-activity i{width:7px;height:7px;flex:none;border-radius:50%;background:#119A7D;box-shadow:0 0 0 3px rgba(17,154,125,.10)}
body.qlik-filtering .qlik-filter-activity i{background:#D79A27;box-shadow:0 0 0 3px rgba(215,154,39,.12);animation:qlikActivityPulse .9s ease infinite alternate}
@keyframes qlikActivityPulse{to{transform:scale(1.25);opacity:.62}}
.qlik-filter-head .qlik-clear-btn{min-height:36px;padding:8px 11px!important;border-radius:10px!important;font-size:.57rem!important;font-weight:850!important;cursor:pointer;white-space:nowrap}
body.qlik-filtering .qlik-clear-btn,body.qlik-filtering .qlik-clickable-chart{pointer-events:none}
body.qlik-filtering .qlik-filter-panel{opacity:1!important}
.qlik-active-selections{position:relative;z-index:55;display:flex;align-items:center;gap:9px;min-height:42px;margin:0 0 13px;padding:7px 9px 7px 12px;border:1px solid #D9E8ED;border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 5px 16px rgba(16,67,89,.05)}
.qlik-active-selections[hidden]{display:flex!important;visibility:hidden;opacity:0;pointer-events:none}
.qlik-active-selections-label{flex:none;font-size:.55rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase;color:#607B87}
.qlik-active-selections-list{display:flex;align-items:center;gap:6px;min-width:0;flex:1;flex-wrap:wrap;overflow:visible}
.qlik-active-selections .qlik-selected-chip{flex:none;max-width:260px;background:#EAF6FA;border:1px solid #CBE4EC;color:#096A9D}
.qlik-active-selections .qlik-selected-chip b{margin-right:3px;font-size:.46rem;color:#617E8A;text-transform:uppercase;letter-spacing:.035em}
.qlik-active-group{position:relative;flex:none}
.qlik-active-group>summary{list-style:none;display:flex;align-items:center;gap:6px;min-height:29px;padding:5px 9px;border:1px solid #CBE4EC;border-radius:9px;background:#EAF6FA;color:#096A9D;font-size:.52rem;font-weight:900;cursor:pointer;white-space:nowrap}
.qlik-active-group>summary::-webkit-details-marker{display:none}
.qlik-active-group>summary::after{content:'⌄';margin-left:2px;font-size:.62rem;line-height:1;transition:transform .15s ease}
.qlik-active-group[open]>summary{border-color:#8EC6D7;background:#DFF2F7}
.qlik-active-group[open]>summary::after{transform:rotate(180deg)}
.qlik-active-group.is-partial>summary{border-color:#E3B85A;background:#FFF4D9;color:#815B0E}
.qlik-active-group-count{display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#096A9D;color:#fff;font-size:.48rem}
.qlik-active-group.is-partial .qlik-active-group-count{background:#C58B1D}
.qlik-active-group-menu{position:absolute;z-index:20;top:calc(100% + 7px);left:0;width:min(360px,calc(100vw - 32px));max-height:300px;padding:9px;border:1px solid #CFE2E9;border-radius:12px;background:#fff;box-shadow:0 18px 42px rgba(10,53,72,.18);overflow:auto}
.qlik-active-group-title{display:block;margin:1px 2px 7px;color:#617D89;font-size:.49rem;font-weight:900;letter-spacing:.045em;text-transform:uppercase}
.qlik-active-group-menu .qlik-selected-chip{display:flex;width:100%;max-width:none;justify-content:space-between;margin-top:5px;border-radius:8px;text-align:left}
.qlik-active-selections-clear{flex:none;min-height:30px;padding:6px 9px;border:1px solid #CBDDE4;border-radius:9px;background:#fff;color:#315C70;font-size:.53rem;font-weight:900;cursor:pointer}
.qlik-active-selections-clear:hover{border-color:#99C5D3;background:#EFF8FA;color:#096A9D}
.period-comparison-control{display:flex;align-items:center;gap:9px;min-height:36px;padding:4px 5px 4px 9px;border:1px solid #CFE4EA;border-radius:12px;background:#EFF8FA}
.period-scope-indicator{display:inline-flex;align-items:center;gap:6px;min-height:28px;color:#315E70;font-size:.54rem;font-weight:850;white-space:nowrap}
.period-scope-indicator::before{content:'';width:7px;height:7px;border-radius:50%;background:#119A7D;box-shadow:0 0 0 3px rgba(17,154,125,.11)}
.period-scope-indicator.is-open::before{background:#D79A27;box-shadow:0 0 0 3px rgba(215,154,39,.12)}
.period-current-switch{display:inline-flex;align-items:center;gap:7px;min-height:28px;padding:4px 7px;border-left:1px solid #CFE4EA;color:#416776;font-size:.52rem;font-weight:850;cursor:pointer;white-space:nowrap}
.period-current-switch input{position:absolute;opacity:0;pointer-events:none}
.period-switch-track{position:relative;width:32px;height:18px;flex:none;border-radius:999px;background:#B8CBD3;box-shadow:inset 0 0 0 1px rgba(24,74,93,.08);transition:.18s ease}
.period-switch-track::after{content:'';position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(24,64,82,.22);transition:transform .18s ease}
.period-current-switch input:checked+.period-switch-track{background:#119A7D}
.period-current-switch input:checked+.period-switch-track::after{transform:translateX(14px)}
.period-current-switch input:focus-visible+.period-switch-track{outline:3px solid rgba(9,106,157,.20);outline-offset:2px}
.period-current-switch input:disabled+.period-switch-track{opacity:.48}
.period-current-switch:has(input:disabled){cursor:default;opacity:.68}
.qlik-chart-multi-toggle{cursor:pointer}
.qlik-chart-multi-toggle[aria-pressed="true"]{border-color:#79BDCF!important;background:#E2F4F8!important;color:#086C94!important;box-shadow:inset 0 0 0 1px rgba(8,108,148,.08)}
.agenda-month-grid.is-single-selection{grid-template-columns:minmax(280px,420px)!important;justify-content:center}
.agenda-month-grid.is-single-selection .agenda-month{width:100%;justify-self:center}
.qlik-filter-feedback:not(:empty){z-index:10060!important;top:18px!important;right:18px!important}
@media(min-width:1120px){body.qlik-filter-drawer-open .qlik-filter-feedback:not(:empty){right:488px!important}}
@media(max-width:1119px){body.qlik-filter-drawer-open .qlik-filter-feedback:not(:empty){top:auto!important;right:12px!important;bottom:78px!important}}
.qlik-filter-feedback,.qlik-filter-feedback:not(:empty),.qlik-filter-feedback.is-error:not(:empty){position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;margin:-1px!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;box-shadow:none!important}
html{scrollbar-gutter:stable}
@media(max-width:760px){.period-comparison-control{width:100%;align-items:flex-start;flex-direction:column}.period-scope-indicator{white-space:normal}.period-current-switch{width:100%;border-left:0;border-top:1px solid #CFE4EA}}
@media(max-width:650px){
  body.layout-v2 .exec-funnel-card .sales-funnel-stack{padding-right:108px}
  body.layout-v2 .exec-funnel-card .sales-funnel-loss{width:102px}
  body.layout-v2 .exec-funnel-card .sales-funnel-shape,body.layout-v2 .conversion-funnel-card .sales-funnel-shape{height:82px}
}
@media(max-width:620px){body.layout-v2 .qlik-filter-panel{width:100vw!important;border-radius:0!important}.qlik-filter-head{padding:17px 15px 13px}.qlik-selection-summary{margin:10px 12px 0}.qlik-drill-stack{padding:10px 12px 15px}.qlik-filter-legend,.qlik-filter-footer{padding-left:12px;padding-right:12px}.qlik-filter-toggle>span:not(.qlik-filter-menu-icon){display:none}.qlik-active-selections{align-items:flex-start;flex-wrap:wrap}.qlik-active-selections-label{width:100%}.qlik-active-selections-clear{margin-left:auto}}

/* Agenda: os 12 meses funcionam como resumo e navegação do calendário diário. */
body.layout-v2 #capacidade.tabpage{margin-top:2px!important}
body.layout-v2 #capacidade .com-agenda-toolbar{padding:5px 13px!important}
body.layout-v2 .com-agenda-period-copy{min-width:0;text-align:left}
body.layout-v2 .agenda-month-navigation{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:7px 13px 2px;background:#F7FBFC;border-bottom:1px solid #E4EDF1}
body.layout-v2 .agenda-month-nav-card{appearance:none;min-width:0;min-height:78px;padding:6px 7px;border:1px solid #DDE9ED;border-radius:11px;background:#fff;color:inherit;font:inherit;text-align:left;cursor:pointer;position:relative;overflow:hidden;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease}
body.layout-v2 .agenda-month-nav-card::after{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;background:#96AAB3}
body.layout-v2 .agenda-month-nav-card.status-up::after{background:#1595BE}
body.layout-v2 .agenda-month-nav-card.status-flat::after{background:#94A7AF}
body.layout-v2 .agenda-month-nav-card.status-warn::after{background:#D5962D}
body.layout-v2 .agenda-month-nav-card.status-down::after{background:#D86660}
body.layout-v2 .agenda-month-nav-card.status-pending::after{background:#B1BDC3}
body.layout-v2 .agenda-month-nav-card:hover{transform:translateY(-1px);border-color:#9FCBD8;box-shadow:0 7px 16px rgba(24,69,91,.08)}
body.layout-v2 .agenda-month-nav-card.is-active{border-color:#0876A4;background:#F1F9FC;box-shadow:inset 0 0 0 1px rgba(8,118,164,.20),0 7px 17px rgba(24,69,91,.07)}
body.layout-v2 .agenda-month-nav-card.is-empty{background:#FBFCFD}
body.layout-v2 .agenda-month-nav-head{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:4px}
body.layout-v2 .agenda-month-nav-head strong{font-size:.60rem;font-weight:900;color:#173F56;text-transform:capitalize}
body.layout-v2 .agenda-month-nav-head span{font-size:.38rem;font-weight:900;letter-spacing:.035em;color:#78909A;text-transform:uppercase}
body.layout-v2 .agenda-month-nav-card.is-active .agenda-month-nav-head span{color:#0876A4}
body.layout-v2 .agenda-month-nav-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
body.layout-v2 .agenda-month-nav-metric{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'label label' 'value delta' 'note note';gap:1px 3px;min-width:0;padding:4px 5px;border:1px solid #E7EFF2;border-radius:7px;background:#F9FCFD;position:relative;overflow:hidden}
body.layout-v2 .agenda-month-nav-metric::after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:#B1BDC3}
body.layout-v2 .agenda-month-nav-metric.up::after{background:#1595BE}
body.layout-v2 .agenda-month-nav-metric.flat::after{background:#94A7AF}
body.layout-v2 .agenda-month-nav-metric.warn::after{background:#D5962D}
body.layout-v2 .agenda-month-nav-metric.down::after{background:#D86660}
body.layout-v2 .agenda-month-nav-metric span{grid-area:label;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.46rem;font-weight:850;color:#6E8792;text-transform:uppercase}
body.layout-v2 .agenda-month-nav-metric strong{grid-area:value;font-size:.68rem;line-height:1;font-weight:950;color:#173F56}
body.layout-v2 .agenda-month-nav-metric em{grid-area:delta;align-self:center;font-size:.36rem;line-height:1;font-weight:950;font-style:normal;white-space:nowrap;color:#84969E}
body.layout-v2 .agenda-month-nav-metric.up em{color:#087CA5}
body.layout-v2 .agenda-month-nav-metric.flat em{color:#6C828D}
body.layout-v2 .agenda-month-nav-metric.warn em{color:#A76C16}
body.layout-v2 .agenda-month-nav-metric.down em{color:#B94D47}
body.layout-v2 .agenda-month-nav-metric small{grid-area:note;font-size:.35rem;line-height:1.15;font-weight:750;color:#8A9CA4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-bottom:1px}
@media(max-width:820px){body.layout-v2 .agenda-month-navigation{grid-template-columns:repeat(12,minmax(118px,1fr));overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity}body.layout-v2 .agenda-month-nav-card{scroll-snap-align:start}}
@media(max-width:560px){body.layout-v2 .agenda-month-navigation{padding-inline:9px}}

/* ========================================================================== */
/* Mobile V1 · navegacao e controles compactos, sem alterar o desktop         */
/* ========================================================================== */
.mobile-nav-toggle,.mobile-header-menu-toggle{display:none}

@media(max-width:820px){
  body.layout-v2 .side-rail{
    position:relative;height:auto;overflow:visible;padding:8px 10px;
    box-shadow:0 7px 20px rgba(6,47,74,.14);z-index:70
  }
  body.layout-v2 .side-rail::before,body.layout-v2 .side-rail::after{display:none}
  body.layout-v2 .side-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center}
  body.layout-v2 .brand{min-width:0;padding:0;border:0;gap:9px}
  body.layout-v2 .brandmark{width:36px;height:36px;border-radius:11px;font-size:.72rem}
  body.layout-v2 .brandname{font-size:.77rem;line-height:1.1}
  body.layout-v2 .brandsub{font-size:.54rem;margin-top:2px}
  body.layout-v2 .side-label,body.layout-v2 .side-footer{display:none}
  .mobile-nav-toggle,.mobile-header-menu-toggle{
    appearance:none;border:1px solid transparent;font:800 .60rem/1 "Manrope",sans-serif;cursor:pointer;
    -webkit-tap-highlight-color:transparent;touch-action:manipulation
  }
  .mobile-nav-toggle{
    display:grid;place-items:center;width:38px;height:38px;padding:0;border-radius:11px;
    border-color:rgba(255,255,255,.20);background:rgba(255,255,255,.12);color:#fff
  }
  .mobile-nav-toggle:focus-visible,.mobile-header-menu-toggle:focus-visible{outline:3px solid rgba(24,185,214,.28);outline-offset:2px}
  .mobile-menu-icon{display:grid;gap:4px;width:17px}
  .mobile-menu-icon i{display:block;width:100%;height:2px;border-radius:2px;background:currentColor;transition:transform .18s ease,opacity .18s ease}
  body.layout-v2 .side-rail.mobile-nav-open .mobile-nav-toggle .mobile-menu-icon i:nth-child(1){transform:translateY(6px) rotate(45deg)}
  body.layout-v2 .side-rail.mobile-nav-open .mobile-nav-toggle .mobile-menu-icon i:nth-child(2){opacity:0}
  body.layout-v2 .side-rail.mobile-nav-open .mobile-nav-toggle .mobile-menu-icon i:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
  body.layout-v2 .tabstrip{
    display:none;position:absolute;left:10px;right:10px;top:calc(100% + 7px);z-index:75;
    grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:9px;border:1px solid rgba(255,255,255,.16);
    border-radius:15px;background:linear-gradient(155deg,#063B58,#08739A);box-shadow:0 18px 42px rgba(2,37,56,.26);overflow:visible
  }
  body.layout-v2 .side-rail.mobile-nav-open .tabstrip{display:grid}
  body.layout-v2 .tabbtn{
    min-width:0;width:100%;grid-template-columns:32px minmax(0,1fr);gap:7px;padding:7px;
    border-radius:11px;background:rgba(255,255,255,.06)
  }
  body.layout-v2 .tab-copy{display:flex}
  body.layout-v2 .tab-copy strong{font-size:.65rem}
  body.layout-v2 .tab-copy small{font-size:.48rem;margin-top:2px}
  body.layout-v2 .tab-arrow{display:none}
  body.layout-v2 .tab-icon{width:32px;height:32px;border-radius:9px}
  body.layout-v2 .tab-icon svg{width:17px;height:17px}

  body.layout-v2 .workspace{padding:8px 9px 24px}
  body.layout-v2 .workspace-topbar{
    position:sticky;top:6px;z-index:60;display:grid;grid-template-columns:minmax(0,1fr) auto;
    align-items:center;justify-content:stretch;gap:8px;min-height:52px;padding:8px 9px 8px 12px;
    border-radius:15px;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);overflow:visible
  }
  body.layout-v2 .workspace-context{min-width:0}
  body.layout-v2 .workspace-brand{display:none}
  body.layout-v2 .workspace-title-row{display:block;min-width:0}
  body.layout-v2 .workspace-title-row h1{font-size:.92rem;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.layout-v2 .workspace-period{
    display:block;max-width:100%;margin-top:3px;padding:0;border:0;background:transparent;
    color:#68818C;font-size:.49rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
  }
  .mobile-header-menu-toggle{
    display:flex;align-items:center;gap:7px;min-height:36px;padding:7px 8px;border-radius:10px;
    border-color:#CFE2E9;background:#F4FAFC;color:#245A72
  }
  .mobile-header-menu-toggle .mobile-menu-icon{width:15px;gap:3px}
  .mobile-header-menu-toggle .mobile-menu-icon i{height:1.5px}
  .mobile-filter-icon{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .mobile-header-menu-toggle strong{
    display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;
    background:var(--he-blue);color:#fff;font-size:.47rem
  }
  .mobile-header-menu-toggle strong:empty{display:none}
  body.layout-v2 .workspace-topbar.mobile-controls-open .mobile-header-menu-toggle{border-color:#8FC7D7;background:#E7F5F9;color:var(--he-blue)}
  body.layout-v2 .workspace-actions{
    display:none;position:absolute;left:0;right:0;top:calc(100% + 7px);z-index:65;width:auto;
    padding:9px;border:1px solid #D7E6EC;border-radius:15px;background:rgba(255,255,255,.99);
    box-shadow:0 18px 42px rgba(8,53,73,.18)
  }
  body.layout-v2 .workspace-topbar.mobile-controls-open .workspace-actions{display:block}
  body.layout-v2 .filter-group{
    display:grid;width:100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px;margin:0
  }
  body.layout-v2 .year-reference-control{
    order:0;grid-column:1/-1;width:100%;height:36px;justify-content:space-between;padding:3px 4px 3px 9px
  }
  body.layout-v2 .year-reference-control>span{font-size:.51rem}
  body.layout-v2 .year-reference-control select{flex:none;min-width:94px;padding-top:7px;padding-bottom:7px;font-size:.65rem}
  body.layout-v2 .period-comparison-control{
    order:3;grid-column:1/-1;display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto;
    align-items:center;gap:6px;min-height:36px;padding:4px 5px 4px 8px
  }
  body.layout-v2 .period-scope-indicator{min-height:26px;font-size:.48rem;line-height:1.3;white-space:normal}
  body.layout-v2 .period-current-switch{
    width:auto;min-height:26px;padding:3px 6px;border-top:0;border-left:1px solid #CFE4EA;
    font-size:.47rem;white-space:normal;line-height:1.2
  }
  body.layout-v2 .filter-fixed{display:none}
  body.layout-v2 .qlik-chart-multi-toggle,body.layout-v2 .qlik-filter-toggle{
    min-height:36px;width:100%;justify-content:center;padding:7px 8px;font-size:.57rem;cursor:pointer
  }
  body.layout-v2 .qlik-filter-toggle{display:flex;align-items:center}
  body.layout-v2 .qlik-filter-toggle>span:not(.qlik-filter-menu-icon){display:inline}

  body.layout-v2 .qlik-active-selections[hidden]{display:none!important}
  body.layout-v2 .qlik-active-selections:not([hidden]){
    display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;
    min-height:38px;margin:7px 0 10px;padding:5px 6px;border-radius:11px;overflow:visible
  }
  body.layout-v2 .qlik-active-selections-label{display:none}
  body.layout-v2 .qlik-active-selections-list{
    display:flex;flex-wrap:wrap;gap:5px;padding-bottom:1px;overflow:visible
  }
  body.layout-v2 .qlik-active-group>summary{min-height:27px;padding:4px 7px;font-size:.48rem}
  body.layout-v2 .qlik-active-selections-clear{min-height:28px;margin:0;padding:5px 7px;font-size:.48rem}
  body.layout-v2 .tabpage{margin-top:11px}

  /* Cada visualizacao analitica usa toda a largura no mobile. */
  body.layout-v2 .workspace-content,body.layout-v2 .tabpage,
  body.layout-v2 .executive-dashboard-grid,body.layout-v2 .conversion-lead-grid,
  body.layout-v2 .conversion-first-consultation-grid,body.layout-v2 .conversion-trends-grid,
  body.layout-v2 .conversion-doctor-grid,body.layout-v2 .conversion-specialty-grid,
  body.layout-v2 .billing-overview-grid,body.layout-v2 .billing-specialty-grid{
    width:100%;max-width:100%;min-width:0
  }
  body.layout-v2 .executive-dashboard-grid,body.layout-v2 .conversion-lead-grid,
  body.layout-v2 .conversion-first-consultation-grid,body.layout-v2 .conversion-trends-grid,
  body.layout-v2 .conversion-doctor-grid,body.layout-v2 .conversion-specialty-grid,
  body.layout-v2 .billing-overview-grid,body.layout-v2 .billing-specialty-grid{
    grid-template-columns:minmax(0,1fr)!important
  }
  body.layout-v2 .executive-dashboard-grid>*,body.layout-v2 .conversion-lead-grid>*,
  body.layout-v2 .conversion-first-consultation-grid>*,body.layout-v2 .conversion-trends-grid>*,
  body.layout-v2 .conversion-doctor-grid>*,body.layout-v2 .conversion-specialty-grid>*,
  body.layout-v2 .billing-overview-grid>*,body.layout-v2 .billing-specialty-grid>*{
    grid-column:1/-1!important;width:100%!important;max-width:100%;min-width:0
  }
  body.layout-v2 .primary-chart-panel,body.layout-v2 .context-chart-panel,
  body.layout-v2 .mix-panel,body.layout-v2 .billing-chart-panel{width:100%;max-width:100%;min-width:0}
  body.layout-v2 .canvas-wrap{position:relative;width:100%!important;max-width:none!important;min-width:0}
  body.layout-v2 .canvas-wrap>canvas{display:block!important;width:100%!important;max-width:none!important}
  body.layout-v2 .panel-head>div:first-child{min-width:0}
  body.layout-v2 .mix-table-wrap{width:100%;max-width:100%;overflow:auto}
}

@media(max-width:470px){
  body.layout-v2 .tabstrip{grid-template-columns:1fr}
  body.layout-v2 .workspace-title-row h1{font-size:.86rem}
  body.layout-v2 .mobile-header-menu-label{display:none}
  body.layout-v2 .mobile-header-menu-toggle{width:38px;justify-content:center;padding:0}
  body.layout-v2 .period-comparison-control{grid-template-columns:1fr}
  body.layout-v2 .period-current-switch{width:100%;border-left:0;border-top:1px solid #CFE4EA}
  body.layout-v2 .panel{padding:14px 13px}
  body.layout-v2 .panel-head{gap:7px;flex-wrap:wrap}
  body.layout-v2 .panel-head .chip,body.layout-v2 .panel-head .mix-source-chip{white-space:normal;text-align:center}
}


/* Previsão de faturamento */
body.layout-v2 .forecast-notice{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:18px 20px;border:1px dashed #CFDEE4;border-radius:18px;background:#F9FCFD;color:#4F6D7C;font-size:.72rem;font-weight:650}
body.layout-v2 .forecast-notice strong{color:var(--he-navy);font-weight:800}
body.layout-v2 .forecast-hero-grid{display:grid;grid-template-columns:minmax(340px,5fr) minmax(0,7fr);gap:16px;align-items:stretch}
body.layout-v2 .forecast-hero{position:relative;display:flex;flex-direction:column;min-height:430px;padding:24px 25px 21px;border:0;border-radius:22px;color:#fff;background:linear-gradient(145deg,#052E48 0%,#075E86 58%,#0B7EA4 100%);box-shadow:0 22px 52px rgba(4,52,79,.22);overflow:hidden}
body.layout-v2 .forecast-hero::before{content:"";position:absolute;width:270px;height:270px;right:-120px;top:-125px;border:42px solid rgba(255,255,255,.07);border-radius:50%;pointer-events:none}
body.layout-v2 .forecast-hero>*{position:relative;z-index:1}
body.layout-v2 .forecast-hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
body.layout-v2 .forecast-hero-label{font-size:.66rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:rgba(255,255,255,.74)}
body.layout-v2 .forecast-hero-badge{font-size:.56rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.10);border-radius:999px;padding:6px 9px;white-space:nowrap}
body.layout-v2 .forecast-hero-body{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-top:20px}
body.layout-v2 .forecast-hero-value{font-size:2.9rem;line-height:1;font-weight:800;letter-spacing:-.065em}
body.layout-v2 .forecast-hero .delta{margin-bottom:5px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.12);color:#fff}
body.layout-v2 .forecast-hero .delta.pos{background:rgba(58,214,164,.20);color:#A6F4DA}
body.layout-v2 .forecast-hero .delta.neg{background:rgba(255,128,140,.20);color:#FFC7CD}
body.layout-v2 .forecast-hero-sub{margin-top:8px;font-size:.68rem;color:rgba(255,255,255,.68)}
body.layout-v2 .forecast-bars{display:grid;gap:14px;margin-top:auto;padding-top:22px}
body.layout-v2 .forecast-bar-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px}
body.layout-v2 .forecast-bar-head span{font-size:.6rem;font-weight:700;color:rgba(255,255,255,.68)}
body.layout-v2 .forecast-bar-head strong{font-size:.72rem;font-weight:800;color:#fff;white-space:nowrap}
body.layout-v2 .forecast-bar-track{height:10px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden}
body.layout-v2 .forecast-bar-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#79E4F2,#fff);transition:width .5s ease}
body.layout-v2 .forecast-bar-row.is-trend .forecast-bar-track i{background:linear-gradient(90deg,#3FD3A4,#B5F5DD)}
body.layout-v2 .forecast-bar-row.is-previous .forecast-bar-track i{background:rgba(255,255,255,.42)}
body.layout-v2 .forecast-bar-row.is-target .forecast-bar-track i{background:linear-gradient(90deg,#E9B44C,#FFE2A3)}
body.layout-v2 .forecast-hero-adjust{margin-top:14px;padding:8px 10px;border-radius:10px;background:rgba(233,180,76,.16);border:1px solid rgba(233,180,76,.32);color:#FFE2A3;font-size:.6rem;font-weight:700;line-height:1.4}
body.layout-v2 .forecast-hero-adjust[hidden]{display:none}
body.layout-v2 .forecast-hero-formula{margin-top:14px;padding-top:11px;border-top:1px solid rgba(255,255,255,.12);font-size:.58rem;color:rgba(255,255,255,.58)}
body.layout-v2 .forecast-panel{min-width:0}
body.layout-v2 .forecast-panel .canvas-wrap{height:330px}
body.layout-v2 .forecast-trajectory-panel{margin-top:16px}
body.layout-v2 .forecast-trajectory-panel .panel-head{align-items:center;flex-wrap:wrap}
body.layout-v2 .forecast-trajectory-panel .canvas-wrap{height:370px}
body.layout-v2 .forecast-hero-grid.is-single{grid-template-columns:minmax(0,1fr)}
body.layout-v2 .forecast-kpi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:14px;min-width:0}
body.layout-v2 .forecast-kpi-grid[hidden]{display:none}
body.layout-v2 .forecast-panel .forecast-tall-canvas{height:430px}
body.layout-v2 .forecast-band{align-items:center;gap:14px;flex-wrap:wrap}
body.layout-v2 .forecast-segmented{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid #D8E6EC;border-radius:12px;background:#fff}
body.layout-v2 .forecast-segmented[hidden]{display:none}
body.layout-v2 .occupancy-trend-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
/* Ocupação: troca entre salas cirúrgicas e consultórios, no topo da aba. */
body.layout-v2 .occupancy-view-switch button{padding:10px 14px;font-size:.7rem}
/* Mapa das salas (aba Ocupacao) */
body.layout-v2 .room-map-card{display:grid;grid-template-columns:minmax(280px,4fr) minmax(0,9fr);gap:24px;align-items:start;padding:22px;border-radius:22px}
body.layout-v2 .room-map-side{position:sticky;top:16px;display:grid;gap:14px;align-content:start;min-width:0}
body.layout-v2 .room-map-total{width:100%;border-collapse:collapse}
body.layout-v2 .room-map-total th,body.layout-v2 .room-map-total td{padding:8px 6px;border-bottom:1px solid #E8F0F3;font-size:.62rem;text-align:right;white-space:nowrap}
body.layout-v2 .room-map-total thead th{font-size:.55rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#6F8794}
body.layout-v2 .room-map-total thead th:first-child,body.layout-v2 .room-map-total tbody th{text-align:left}
body.layout-v2 .room-map-total tbody th{font-weight:700;color:#365A6D;white-space:normal}
body.layout-v2 .room-map-total td{font-weight:800;color:#153D58}
body.layout-v2 .room-map-total tr.is-key td{font-size:.7rem}
body.layout-v2 .room-map-total .is-sim{color:#6A55B0}
body.layout-v2 .room-map-total thead .is-sim{color:#6A55B0}
body.layout-v2 .room-map-legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:.58rem;font-weight:700;color:#6F8794}
body.layout-v2 .room-map-legend i{display:inline-block;width:10px;height:10px;margin-right:5px;border-radius:3px;vertical-align:-1px}
body.layout-v2 .room-map-legend .is-program,body.layout-v2 .room-tile-gauge .is-program{background:#D79A27}
body.layout-v2 .room-map-legend .is-others,body.layout-v2 .room-tile-gauge .is-others{background:#096A9D}
body.layout-v2 .room-map-legend .is-free{background:rgba(111,135,148,.18)}
body.layout-v2 .room-map-legend .is-sim{border:1.5px dashed #7B61C9;background:#F7F4FE}
body.layout-v2 .room-map-note{margin:0;font-size:.56rem;line-height:1.45;color:#7D919B}
body.layout-v2 .room-map-centers{display:grid;gap:18px;min-width:0}
body.layout-v2 .room-map-center-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 10px;margin-bottom:8px}
body.layout-v2 .room-map-center-head strong{font-size:.72rem;font-weight:800;color:#153D58}
body.layout-v2 .room-map-center-head span{font-size:.6rem;font-weight:700;color:#6F8794}
body.layout-v2 .room-map-center.is-sim .room-map-center-head strong{color:#6A55B0}
body.layout-v2 .room-map-rooms{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin:0;padding:0;list-style:none}
body.layout-v2 .room-tile{min-width:0;padding:10px 11px 9px;border:1px solid #D8E6EC;border-radius:14px;background:#fff}
body.layout-v2 .room-tile.is-sim{border:1.5px dashed #7B61C9;background:#F7F4FE}
body.layout-v2 .room-tile-head{display:flex;align-items:baseline;justify-content:space-between;gap:6px}
body.layout-v2 .room-tile-head strong{font-size:.72rem;font-weight:800;color:#153D58;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.layout-v2 .room-tile-head span{font-size:.7rem;font-weight:800;color:var(--he-blue)}
body.layout-v2 .room-tile.is-sim .room-tile-head strong,body.layout-v2 .room-tile.is-sim .room-tile-head span{color:#6A55B0}
body.layout-v2 .room-tile-gauge{display:flex;height:8px;margin:7px 0 6px;overflow:hidden;border-radius:999px;background:rgba(111,135,148,.18)}
body.layout-v2 .room-tile-gauge i{display:block;height:100%}
body.layout-v2 .room-tile-gauge{position:relative}
body.layout-v2 .room-tile-target{position:absolute;top:0;bottom:0;width:3px;margin-left:-1.5px;border-radius:2px;background:#7B61C9}
body.layout-v2 .room-tile-meta em{font-style:normal;font-weight:800;color:#6A55B0}
body.layout-v2 .room-map-legend .is-target{width:3px;background:#7B61C9}
body.layout-v2 .room-tile-meta{font-size:.6rem;font-weight:750;color:#365A6D}
body.layout-v2 .room-tile-sub{margin-top:2px;font-size:.55rem;color:#7D919B}
@media(max-width:1100px){
  body.layout-v2 .room-map-card{grid-template-columns:minmax(0,1fr)}
  body.layout-v2 .room-map-side{position:static}
}
@media(max-width:560px){
  body.layout-v2 .room-map-card{padding:14px;gap:18px}
  body.layout-v2 .room-map-rooms{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
}
body.layout-v2 .forecast-section-intro{flex-wrap:wrap;gap:12px 20px}
body.layout-v2 .forecast-section-intro .summary-pill{display:inline-block;margin-top:9px}
body.layout-v2 .forecast-target-slider{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:5px;width:min(100%,340px);padding:10px 14px;border:1px solid #D8E6EC;border-radius:14px;background:#fff}
body.layout-v2 .forecast-target-slider[hidden]{display:none}
body.layout-v2 .forecast-target-slider label{margin:0;font-size:.58rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#6F8794}
body.layout-v2 .forecast-target-slider output{justify-self:end;font-size:1.05rem;font-weight:800;letter-spacing:-.02em;color:var(--he-navy)}
body.layout-v2 .forecast-target-slider input[type="range"]{grid-column:1/-1;width:100%;margin:0;accent-color:var(--he-amber);cursor:pointer}
body.layout-v2 .forecast-target-slider input[type="range"]:focus-visible{outline:2px solid #55AFCB;outline-offset:2px}
body.layout-v2 .forecast-target-slider small{grid-column:1/-1;font-size:.58rem;font-weight:600;color:#7D919B}
body.layout-v2 .forecast-segmented button{border:0;border-radius:9px;background:transparent;color:#365A6D;font:750 .62rem/1 "Manrope",sans-serif;padding:8px 10px;cursor:pointer;transition:background-color .15s ease,color .15s ease}
body.layout-v2 .forecast-segmented button:hover{background:#F1F8FA}
body.layout-v2 .forecast-segmented button.is-active{background:var(--he-navy);color:#fff}
body.layout-v2 .forecast-segmented button:focus-visible{outline:2px solid #55AFCB;outline-offset:1px}
body.layout-v2 .forecast-kpi.is-good::before{background:linear-gradient(90deg,#119A7D,#42B997)}
body.layout-v2 .forecast-kpi.is-bad::before{background:linear-gradient(90deg,#D85B67,#EE8A93)}
body.layout-v2 .forecast-kpi .mk-value small{font-size:.7rem;font-weight:750;color:#6F8794;margin-left:6px;letter-spacing:0}
body.layout-v2 .forecast-kpi .mk-compare{flex-direction:column;align-items:flex-start;gap:5px}
body.layout-v2 .forecast-grid{display:grid;gap:16px;align-items:stretch}
body.layout-v2 .forecast-grid-7-5{grid-template-columns:minmax(0,7fr) minmax(360px,5fr)}
body.layout-v2 .forecast-grid-5-7{grid-template-columns:minmax(360px,5fr) minmax(0,7fr)}
body.layout-v2 .forecast-grid-6-6{grid-template-columns:repeat(2,minmax(0,1fr))}
body.layout-v2 .forecast-grid>article{min-width:0}
@media(max-width:1320px){
  body.layout-v2 .forecast-hero-grid,body.layout-v2 .forecast-grid-7-5,body.layout-v2 .forecast-grid-5-7,body.layout-v2 .forecast-grid-6-6{grid-template-columns:minmax(0,1fr)}
  body.layout-v2 .forecast-hero{min-height:0}
}
@media(max-width:560px){
  body.layout-v2 .forecast-kpi-grid{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto}
  body.layout-v2 .forecast-hero{padding:20px 18px}
  body.layout-v2 .forecast-hero-value{font-size:2.2rem}
  body.layout-v2 .forecast-panel .canvas-wrap,body.layout-v2 .forecast-trajectory-panel .canvas-wrap{height:300px}
  body.layout-v2 .forecast-panel .forecast-tall-canvas{height:400px}
  body.layout-v2 .forecast-segmented{flex-wrap:wrap}
  body.layout-v2 .forecast-target-slider{width:100%}
}

/* Simulador da previsão */
body.layout-v2 .forecast-sim-card{display:grid;grid-template-columns:minmax(0,7fr) minmax(320px,5fr);gap:22px;padding:22px;border-radius:22px}
body.layout-v2 .forecast-sim-levers{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-content:start}
body.layout-v2 .forecast-sim-lever{display:grid;gap:10px;padding:15px 16px;border:1px solid #E3EDF1;border-radius:16px;background:#F8FBFC}
body.layout-v2 .forecast-sim-lever-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
body.layout-v2 .forecast-sim-lever-head span{font-size:.6rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#6F8794}
body.layout-v2 .forecast-sim-lever-head strong{font-size:1.25rem;font-weight:800;letter-spacing:-.03em;color:var(--he-navy);white-space:nowrap}
body.layout-v2 .forecast-sim-lever input[type="range"]{width:100%;margin:0;accent-color:#7B61C9;cursor:pointer}
body.layout-v2 .forecast-sim-formula{padding:2px 4px 0;font-size:.62rem;font-weight:700;line-height:1.45;color:#5E7885}
body.layout-v2 .forecast-sim-mode{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:4px;border-top:1px dashed #E1EAEE}
body.layout-v2 .forecast-sim-mode>span{font-size:.58rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#6F8794}
body.layout-v2 .forecast-sim-lever-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.6rem;font-weight:600;color:#7D919B}
body.layout-v2 .forecast-sim-lever-foot strong{font-size:.72rem;font-weight:800;color:#9AABB4;white-space:nowrap}
body.layout-v2 .forecast-sim-lever-foot strong.is-up{color:#087C66}
body.layout-v2 .forecast-sim-lever-foot strong.is-down{color:#B3424D}
body.layout-v2 .forecast-sim-result{display:flex;flex-direction:column;gap:6px;min-width:0;padding:18px 20px;border:1px solid #E4DCFA;border-radius:18px;background:linear-gradient(160deg,#F4F0FF 0%,#FFFFFF 62%)}
body.layout-v2 .forecast-sim-label{font-size:.62rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#6A55B0}
body.layout-v2 .forecast-sim-value{font-size:2.3rem;line-height:1;font-weight:800;letter-spacing:-.05em;color:#3B2A7A}
body.layout-v2 .forecast-sim-delta{display:flex;gap:7px;flex-wrap:wrap;margin-top:4px}
body.layout-v2 .forecast-sim-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.62rem;font-weight:700;color:#5E7885}
body.layout-v2 .forecast-sim-next{font-size:.6rem;font-weight:700;line-height:1.45;color:#6A55B0}
body.layout-v2 .forecast-sim-next[hidden]{display:none}
body.layout-v2 .forecast-sim-result .forecast-sim-canvas{height:260px;margin-top:8px}
body.layout-v2 .forecast-sim-toggle{display:inline-flex;align-items:center;gap:9px;padding:0;border:0;background:transparent;color:inherit;cursor:pointer}
body.layout-v2 .forecast-sim-toggle i{width:8px;height:8px;margin-top:-3px;border-right:2px solid var(--he-blue);border-bottom:2px solid var(--he-blue);transform:rotate(-45deg);transition:transform .2s ease}
body.layout-v2 .forecast-sim-toggle[aria-expanded="true"] i{margin-top:-5px;transform:rotate(45deg)}
body.layout-v2 .forecast-sim-toggle:hover span{color:#054A6B}
body.layout-v2 .forecast-sim-toggle:hover i{border-color:#054A6B}
body.layout-v2 .forecast-sim-toggle:focus-visible{outline:2px solid #55AFCB;outline-offset:4px;border-radius:6px}
body.layout-v2 .forecast-sim-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body.layout-v2 .forecast-sim-summary{font-size:.62rem;font-weight:800;color:#6A55B0;background:#F1EDFD;border:1px solid #E1D8FA;border-radius:999px;padding:6px 10px;white-space:nowrap}
body.layout-v2 .forecast-sim-summary[hidden],body.layout-v2 .forecast-sim-reset[hidden],body.layout-v2 .forecast-sim-body[hidden]{display:none}
body.layout-v2 .forecast-sim-reset{flex:0 0 auto;border:1px solid #D8E6EC;border-radius:10px;background:#fff;color:#365A6D;font:750 .62rem/1 "Manrope",sans-serif;padding:9px 12px;cursor:pointer;transition:background-color .15s ease}
body.layout-v2 .forecast-sim-reset:hover{background:#F1F8FA}
body.layout-v2 .forecast-sim-reset:focus-visible,body.layout-v2 .forecast-sim-lever input[type="range"]:focus-visible{outline:2px solid #55AFCB;outline-offset:2px}
@media(max-width:1320px){
  body.layout-v2 .forecast-sim-card{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:560px){
  body.layout-v2 .forecast-sim-card{padding:14px}
  body.layout-v2 .forecast-sim-value{font-size:1.9rem}
}
