/* ==========================================================
   SIG-CREAS — Dashboard Home
   Estilos extraídos de 11-dashboard-home.js
   Mantém o comportamento visual da versão anterior.
   ========================================================== */

        #dash-agenda-card{
            position:relative;
            container-type:inline-size;
            overflow:hidden;
            height:285px;
            min-height:285px;
            max-height:285px;
            padding:11px!important;
            display:flex!important;
            flex-direction:column!important;
            align-items:stretch!important;
            justify-content:flex-start!important;
            border:1px solid #dbe5ef!important;
            background:linear-gradient(145deg,#fff 0%,#f8fafc 100%)!important;
            transition:.2s ease
        }

        #dash-agenda-card:before{
            content:"";
            position:absolute;
            inset:0 auto 0 0;
            width:5px;
            background:#cbd5e1
        }

        #dash-agenda-card.agenda-dashboard-tem-compromisso{
            border-color:#bbf7d0!important;
            background:linear-gradient(145deg,#fff 0%,#f0fdf4 100%)!important;
            cursor:pointer;
            box-shadow:0 12px 28px rgba(21,128,61,.10)!important
        }

        #dash-agenda-card.agenda-dashboard-tem-compromisso:before{
            background:linear-gradient(#15803d,#22c55e)
        }

        #dash-agenda-card:hover{transform:translateY(-2px)}

        #dash-agenda-card>i{
            width:24px;
            height:24px;
            border-radius:7px;
            display:grid;
            place-items:center;
            background:#ecfdf5;
            color:#15803d;
            font-size:10px;
            margin-bottom:4px
        }

        #dash-agenda-card>span{
            font-size:8px!important;
            font-weight:900!important;
            letter-spacing:.42px;
            text-transform:uppercase;
            color:#166534!important
        }

        #dash-agenda-card>strong{
            position:absolute;
            top:12px;
            right:13px;
            font-size:8px!important;
            line-height:1;
            color:#14532d!important
        }

        #dash-agenda-resumo{
            display:flex!important;
            flex-direction:column;
            gap:6px;
            margin-top:5px!important;
            overflow-y:auto!important;
            overflow-x:hidden!important;
            max-height:205px!important;
            min-height:0;
            color:#334155!important;
            padding-right:3px;
            scrollbar-width:thin;
            scrollbar-color:#86efac transparent
        }

        #dash-agenda-resumo::-webkit-scrollbar{width:4px}
        #dash-agenda-resumo::-webkit-scrollbar-thumb{background:#86efac;border-radius:10px}
        #dash-agenda-resumo::-webkit-scrollbar-track{background:transparent}

        .dash-agenda-item{
            display:flex!important;
            flex-direction:column!important;
            flex:0 0 auto!important;
            width:100%!important;
            min-width:0!important;
            overflow:hidden!important;
            border:1px solid #86efac!important;
            border-radius:10px!important;
            background:#fff!important;
            box-shadow:0 3px 9px rgba(21,128,61,.07)!important
        }

        .dash-agenda-item-destaque{
            border-color:#22c55e!important;
            box-shadow:0 4px 12px rgba(21,128,61,.11)!important
        }

        .dash-agenda-item-topo{
            min-height:22px!important;
            padding:3px 7px!important;
            display:flex!important;
            align-items:center!important;
            justify-content:space-between!important;
            gap:6px!important;
            background:linear-gradient(135deg,#15803d,#16a34a)!important;
            color:#fff!important
        }

        .dash-agenda-item-dia{
            display:flex!important;
            align-items:center!important;
            gap:5px!important;
            min-width:0!important
        }

        .dash-agenda-item-numero{
            display:inline-block!important;
            margin:0!important;
            padding:0!important;
            font-size:9px!important;
            line-height:1!important;
            color:#fff!important;
            font-weight:900!important
        }

        .dash-agenda-item-dia small{
            padding:2px 5px!important;
            border:1px solid rgba(255,255,255,.72)!important;
            border-radius:999px!important;
            color:#fff!important;
            font-size:7px!important;
            line-height:1!important;
            font-weight:900!important
        }

        .dash-agenda-item-status{
            padding:2px 6px!important;
            border-radius:999px!important;
            font-size:7px!important;
            line-height:1!important;
            font-weight:900!important;
            white-space:nowrap!important
        }

        .dash-agenda-item-status.status-realizado{
            background:#dcfce7!important;
            color:#15803d!important
        }

        .dash-agenda-item-status.status-planejado{
            background:#eff6ff!important;
            color:#1d4ed8!important
        }

        .dash-agenda-item-status.status-cancelado{
            background:#fee2e2!important;
            color:#b91c1c!important
        }

        .dash-agenda-item-conteudo{
            display:flex!important;
            flex-direction:column!important;
            align-items:stretch!important;
            gap:5px!important;
            width:100%!important;
            min-width:0!important;
            padding:6px 7px!important;
            background:linear-gradient(135deg,#fff,#f6fff8)!important
        }

        .dash-agenda-item-meta{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:4px!important;
    width:100%!important;
    min-width:0!important
}

        .dash-agenda-item-info{
            display:inline-flex!important;
            align-items:center!important;
            gap:3px!important;
            min-width:0!important;
            color:#64748b!important;
            font-size:6.2px!important;
            line-height:1.2!important;
            font-weight:400!important;
            white-space:nowrap!important;
            text-transform:none!important;
            letter-spacing:0!important
        }

        .dash-agenda-item-local{
    flex:0 0 80px!important;
    max-width:80px!important;
    overflow:hidden!important;
}

        .dash-agenda-item-hora{
    flex:0 0 auto!important;
    margin-left:55px!important;
}

        .dash-agenda-item-info i{
            color:#15803d!important;
            font-size:6.5px!important;
            flex:0 0 auto!important;
            opacity:.78!important
        }

        .dash-agenda-item-local span{
            display:block!important;
            min-width:0!important;
            overflow:hidden!important;
            text-overflow:ellipsis!important;
            white-space:nowrap!important;
            text-transform:none!important
        }

        .dash-agenda-item-meta-divisor{
            width:1px!important;
            height:11px!important;
            flex:0 0 1px!important;
            background:#d9e5dd!important
        }

        .dash-agenda-item-descricao{
            display:block!important;
            width:100%!important;
            min-width:0!important;
            max-width:100%!important;
            margin:0!important;
            padding:0!important;
            overflow:visible!important;
            white-space:normal!important;
            overflow-wrap:break-word!important;
            word-break:normal!important;
            hyphens:none!important;
            color:#64748b!important;
            font-size:6.2px!important;
            line-height:1.28!important;
            font-weight:400!important;
            font-style:italic!important;
            text-transform:none!important;
            letter-spacing:0!important
        }

        .dash-agenda-mais{
            font-size:8px;
            font-weight:800;
            color:#15803d;
            text-align:center;
            padding:3px 0
        }

        .dash-agenda-vazio{
            display:flex;
            align-items:center;
            gap:8px;
            padding:12px;
            border-radius:10px;
            background:#f8fafc;
            color:#64748b;
            font-size:11px
        }
        .sig-agenda-abrir{
            display:inline-flex;
            align-items:center;
            justify-content:center;
            align-self:flex-end;
            width:auto;
            gap:6px;
            margin-top:7px;
            padding:5px 8px;
            border:1px solid #bbf7d0;
            border-radius:8px;
            background:#f0fdf4;
            color:#15803d;
            font-size:8px;
            line-height:1;
            font-weight:900
        }

        .sig-agenda-abrir i{
            display:inline-flex;
            align-items:center;
            justify-content:center;
            width:auto;
            height:auto;
            border-radius:0;
            background:transparent;
            color:#15803d;
            font-size:9px!important
        }


        /* Tipografia inspirada nos comentários da Agenda original */
        #dash-agenda-card .dash-agenda-item-conteudo{
            gap:4px!important;
            padding:5px 6px!important
        }

        #dash-agenda-card .dash-agenda-item-meta{
            gap:5px!important
        }

        #dash-agenda-card .dash-agenda-item-info,
        #dash-agenda-card .dash-agenda-item-info span,
        #dash-agenda-card .dash-agenda-item-local,
        #dash-agenda-card .dash-agenda-item-local span,
        #dash-agenda-card .dash-agenda-item-hora,
        #dash-agenda-card .dash-agenda-item-hora span{
            font-family:Inter,Arial,sans-serif!important;
            font-size:9px!important;
            line-height:1.2!important;
            font-weight:400!important;
            font-style:normal!important;
            letter-spacing:0!important;
            text-transform:none!important;
            color:#64748b!important
        }

        #dash-agenda-card .dash-agenda-item-info i,
        #dash-agenda-card .dash-agenda-item-local i,
        #dash-agenda-card .dash-agenda-item-hora i{
            width:auto!important;
            height:auto!important;
            padding:0!important;
            margin:0!important;
            border:0!important;
            border-radius:0!important;
            background:transparent!important;
            color:#15803d!important;
            font-size:10px!important;
            line-height:1!important;
            opacity:.72!important
        }

        #dash-agenda-card .dash-agenda-item-descricao{
            display:block!important;
            width:100%!important;
            max-width:100%!important;
            margin:0!important;
            padding:0!important;
            font-family:Inter,Arial,sans-serif!important;
            font-size:10px!important;
            line-height:1.28!important;
            font-weight:400!important;
            font-style:italic!important;
            letter-spacing:0!important;
            text-transform:none!important;
            color:#64748b!important;
            white-space:normal!important;
            overflow-wrap:break-word!important;
            word-break:normal!important
        }

        #dash-agenda-card .dash-agenda-item-meta-divisor{
            height:9px!important;
            opacity:.7!important
        }

        #sig-agenda-alerta{
            position:fixed;
            inset:0;
            z-index:500000;
            background:rgba(15,23,42,.66);
            backdrop-filter:blur(5px);
            display:flex;
            align-items:center;
            justify-content:center;
            padding:20px;
            font-family:Inter,Arial,sans-serif
        }

        .sig-agenda-alerta-card{
            width:min(560px,96vw);
            max-height:88vh;
            overflow:auto;
            background:#fff;
            border-radius:22px;
            box-shadow:0 30px 80px rgba(15,23,42,.38);
            border-top:6px solid #16a34a;
            animation:sigAgendaEntrada .22s ease-out
        }

        .sig-agenda-alerta-topo{
            padding:25px 26px 17px;
            display:flex;
            gap:15px;
            align-items:center;
            border-bottom:1px solid #e2e8f0
        }

        .sig-agenda-alerta-icone{
            width:52px;
            height:52px;
            border-radius:16px;
            display:grid;
            place-items:center;
            background:#dcfce7;
            color:#15803d;
            font-size:23px
        }

        .sig-agenda-alerta-topo h2{margin:0;color:#0f172a;font-size:21px}
        .sig-agenda-alerta-topo p{margin:4px 0 0;color:#64748b;font-size:13px}
        .sig-agenda-alerta-lista{padding:18px 26px;display:flex;flex-direction:column;gap:10px}
        .sig-agenda-alerta-item{display:grid;grid-template-columns:72px 1fr;gap:12px;padding:13px;border:1px solid #e2e8f0;border-radius:13px;background:#f8fafc}
        .sig-agenda-alerta-hora{font-size:15px;font-weight:900;color:#15803d}
        .sig-agenda-alerta-info strong{display:block;color:#0f172a;font-size:13px;margin-bottom:4px}
        .sig-agenda-alerta-info span{display:block;color:#64748b;font-size:11px;margin-top:2px}
        .sig-agenda-alerta-acoes{padding:0 26px 25px;display:flex;justify-content:flex-end;gap:10px}
        .sig-agenda-alerta-acoes button{border:0;border-radius:11px;padding:12px 18px;font-weight:800;cursor:pointer}
        .sig-agenda-btn-entendido{background:#f1f5f9;color:#475569}
        .sig-agenda-btn-abrir{background:linear-gradient(135deg,#15803d,#16a34a);color:#fff;box-shadow:0 8px 18px rgba(21,128,61,.22)}

        @keyframes sigAgendaEntrada{
            from{opacity:0;transform:translateY(12px) scale(.98)}
            to{opacity:1;transform:none}
        }

        @media(max-width:700px){
            #dash-agenda-card{height:285px;min-height:285px;max-height:285px}
            .sig-agenda-alerta-card{border-radius:18px}
            .sig-agenda-alerta-topo,.sig-agenda-alerta-lista,.sig-agenda-alerta-acoes{padding-left:18px;padding-right:18px}
            .sig-agenda-alerta-item{grid-template-columns:58px 1fr}
            .sig-agenda-alerta-acoes{flex-direction:column-reverse}
            .sig-agenda-alerta-acoes button{width:100%}
        }

/* ==========================================================
   AJUSTE DA AGENDA NO DASHBOARD
   Exibe até dois compromissos sem barra de rolagem.
   ========================================================== */

#dash-agenda-resumo{
    flex:1 1 auto!important;
    gap:4px!important;
    max-height:none!important;
    overflow:visible!important;
    padding-right:0!important;
    scrollbar-width:none!important;
}

#dash-agenda-resumo::-webkit-scrollbar{
    display:none!important;
    width:0!important;
    height:0!important;
}

#dash-agenda-card .dash-agenda-item{
    flex:0 0 auto!important;
}

#dash-agenda-card .dash-agenda-item-topo{
    min-height:20px!important;
    padding:2px 6px!important;
}

#dash-agenda-card .dash-agenda-item-conteudo{
    gap:2px!important;
    padding:4px 6px!important;
}

#dash-agenda-card .dash-agenda-item-descricao{
    font-size:9px!important;
    line-height:1.15!important;
}

#dash-agenda-card .dash-agenda-item-info,
#dash-agenda-card .dash-agenda-item-info span,
#dash-agenda-card .dash-agenda-item-local,
#dash-agenda-card .dash-agenda-item-local span,
#dash-agenda-card .dash-agenda-item-hora,
#dash-agenda-card .dash-agenda-item-hora span{
    font-size:8px!important;
}

#dash-agenda-card .sig-agenda-abrir{
    flex:0 0 auto!important;
    margin-top:auto!important;
}
/* ==========================================================
   SIG-CREAS — acabamento final do card Agenda
   Mantém dois compromissos visíveis e elimina o scroll interno.
   ========================================================== */

#dash-agenda-card{
    border:1px solid #d7e4dc!important;
    border-top:4px solid #16a34a!important;
    border-radius:15px!important;
    box-shadow:0 8px 22px rgba(15,23,42,.055)!important;
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease!important;
}

#dash-agenda-card:hover{
    transform:translateY(-3px)!important;
    box-shadow:0 15px 32px rgba(15,23,42,.10)!important;
}

#dash-agenda-card.agenda-dashboard-tem-compromisso{
    border-color:#bbf7d0!important;
    border-top-color:#16a34a!important;
}

#dash-agenda-resumo{
    flex:1 1 auto!important;
    display:flex!important;
    flex-direction:column!important;
    gap:4px!important;
    max-height:none!important;
    min-height:0!important;
    overflow:visible!important;
    padding-right:0!important;
    scrollbar-width:none!important;
}

#dash-agenda-resumo::-webkit-scrollbar{
    display:none!important;
    width:0!important;
    height:0!important;
}

#dash-agenda-card .dash-agenda-item{
    flex:0 0 auto!important;
}

#dash-agenda-card .dash-agenda-item-topo{
    min-height:20px!important;
    padding:2px 6px!important;
}

#dash-agenda-card .dash-agenda-item-conteudo{
    gap:2px!important;
    padding:4px 6px!important;
}

#dash-agenda-card .dash-agenda-item-descricao{
    font-size:9px!important;
    line-height:1.15!important;
}

#dash-agenda-card .dash-agenda-item-info,
#dash-agenda-card .dash-agenda-item-info span,
#dash-agenda-card .dash-agenda-item-local,
#dash-agenda-card .dash-agenda-item-local span,
#dash-agenda-card .dash-agenda-item-hora,
#dash-agenda-card .dash-agenda-item-hora span{
    font-size:8px!important;
}

#dash-agenda-card .sig-agenda-abrir{
    flex:0 0 auto!important;
    margin-top:auto!important;
}
/* =========================================================
   SIG-CREAS — Dashboard Home v2
   Unificação visual dos indicadores, alertas e acessos rápidos.
========================================================= */
.home-dashboard{
    border:1px solid #dbe5f0 !important;
    border-radius:22px !important;
    background:rgba(255,255,255,.93) !important;
    box-shadow:0 18px 50px rgba(15,35,70,.09) !important;
    overflow:hidden;
}
.home-institutional-band{
    border-bottom:1px solid #e7eef6 !important;
    background:linear-gradient(90deg,#f8fbff,#fff) !important;
}
.home-dashboard-header{
    padding:22px 24px !important;
    background:
        radial-gradient(circle at 0 0,rgba(37,99,235,.09),transparent 35%),
        linear-gradient(135deg,#fff,#f8fbff) !important;
    border-bottom:1px solid #e7eef6 !important;
}
.home-eyebrow{color:#2563eb !important;letter-spacing:.14em !important}
.home-dashboard-header h2{color:#102a56 !important;letter-spacing:-.035em !important}
.home-refresh{
    border:1px solid #dbeafe !important;
    border-radius:12px !important;
    background:#fff !important;
    color:#1d4ed8 !important;
    box-shadow:0 7px 18px rgba(37,99,235,.08);
    transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.home-refresh:hover{transform:translateY(-2px);background:#eff6ff !important;box-shadow:0 11px 24px rgba(37,99,235,.13)}

.home-dashboard-grid{
    gap:14px !important;
    padding:22px 24px 16px !important;
}
.home-dashboard-grid > .home-card{
    position:relative;
    overflow:hidden;
    min-height:154px;
    border:1px solid #e1e9f2 !important;
    border-radius:17px !important;
    background:linear-gradient(145deg,#fff,#fbfdff) !important;
    box-shadow:0 8px 22px rgba(15,35,70,.055) !important;
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.home-dashboard-grid > .home-card::after{
    content:"";
    position:absolute;
    right:-30px;
    top:-34px;
    width:96px;
    height:96px;
    border-radius:50%;
    background:rgba(37,99,235,.055);
    pointer-events:none;
}
.home-dashboard-grid > .home-card:hover{
    transform:translateY(-4px);
    border-color:#c8d8e9 !important;
    box-shadow:0 16px 34px rgba(15,35,70,.11) !important;
}
.home-dashboard-grid > .home-card > i{
    width:42px !important;
    height:42px !important;
    display:grid !important;
    place-items:center !important;
    border-radius:13px !important;
    background:#eff6ff !important;
    color:#2563eb !important;
    font-size:18px !important;
    box-shadow:inset 0 0 0 1px #dbeafe;
}
.home-dashboard-grid > .home-card > span{color:#475569 !important;font-size:11px !important;letter-spacing:.05em}
.home-dashboard-grid > .home-card > strong{color:#0f172a !important;letter-spacing:-.045em}
.home-dashboard-grid > .home-card > .dash-card-contexto{
    display:block;
    margin-top:4px;
    color:#94a3b8;
    font-size:9px;
    line-height:1.25;
    font-weight:600;
    letter-spacing:0;
    text-transform:none;
}


/* O cartão RMA recebe linguagem azul institucional. */
#dash-rma-card{
    border-color:#bfdbfe !important;
    background:linear-gradient(145deg,#fff,#f5f9ff) !important;
}
#dash-rma-card::before{background:linear-gradient(#1d4ed8,#60a5fa) !important}
#dash-rma-card > i{background:#dbeafe !important;color:#1d4ed8 !important}
#dash-rma-card > span,#dash-rma-card > strong{color:#1e3a8a !important}

.home-dashboard-bottom{
    gap:16px !important;
    padding:0 24px 24px !important;
}
.home-dashboard-bottom .home-panel,
.home-dashboard-bottom .home-card.destaque{
    border:1px solid #e1e9f2 !important;
    border-radius:17px !important;
    background:#fff !important;
    box-shadow:0 8px 22px rgba(15,35,70,.05) !important;
    overflow:hidden;
}
.home-dashboard-bottom .home-panel h3{
    margin:0 !important;
    padding:16px 18px !important;
    color:#102a56 !important;
    border-bottom:1px solid #edf2f7 !important;
    background:#fbfdff;
}
.dash-alertas,.dash-acessos{padding:14px 16px 18px !important}
.dash-acesso-btn{
    border:1px solid #dbe5f0 !important;
    border-radius:11px !important;
    background:#fff !important;
    color:#334155 !important;
    box-shadow:0 4px 12px rgba(15,35,70,.04);
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.dash-acesso-btn:hover{
    transform:translateY(-2px);
    border-color:#bfdbfe !important;
    background:#f8fbff !important;
    color:#1d4ed8 !important;
    box-shadow:0 9px 20px rgba(15,35,70,.08);
}
.dash-acesso-btn[data-dashboard-modulo="rma"]{
    border-color:#bfdbfe !important;
    background:#eff6ff !important;
    color:#1d4ed8 !important;
}

@media(max-width:900px){
    .home-dashboard-grid{padding:16px !important}
    .home-dashboard-bottom{padding:0 16px 18px !important}
}


/* ==========================================================
   Dashboard Executivo — estrutura base
   Somente layout e estados de preparação. Os dados reais serão
   conectados em branches específicas de cada módulo.
   ========================================================== */
.executive-dashboard {
    width: 100%;
    margin: 28px 0 34px;
    padding: 24px;
    border: 1px solid #d8e4f2;
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 0%, rgba(37,99,235,.10), transparent 30%),
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(245,249,255,.96));
    box-shadow: 0 20px 55px rgba(15, 35, 70, .11);
}

.executive-dashboard-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.executive-dashboard-heading-copy { min-width: 230px; }
.executive-dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.executive-dashboard-heading h2 {
    margin: 0;
    color: #102a56;
    font-size: clamp(23px, 2.3vw, 32px);
    letter-spacing: -.035em;
}
.executive-dashboard-heading p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
}

.executive-dashboard-context {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.executive-context-item {
    min-width: 132px;
    padding: 9px 12px;
    border: 1px solid #dbe5f0;
    border-radius: 12px;
    background: rgba(255,255,255,.88);
}
.executive-context-item span {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.executive-context-item strong {
    display: block;
    max-width: 220px;
    overflow: hidden;
    color: #1e3a8a;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.executive-refresh-btn {
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.executive-refresh-btn:hover,
.executive-refresh-btn:focus-visible {
    background: #dbeafe;
    box-shadow: 0 8px 18px rgba(37,99,235,.14);
    transform: translateY(-1px);
}

.executive-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.executive-card {
    position: relative;
    min-width: 0;
    min-height: 245px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid #dbe5f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(15,35,70,.075);
    cursor: pointer;
    outline: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.executive-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}
.executive-card:hover,
.executive-card:focus-visible {
    border-color: #b7cdf0;
    box-shadow: 0 16px 34px rgba(15,35,70,.13);
    transform: translateY(-3px);
}
.executive-card-judicial { grid-column: span 1; }
.executive-card-judicial::before {
    background: linear-gradient(90deg, #7c3aed 0 20%, #eab308 20% 40%, #16a34a 40% 60%, #2563eb 60% 80%, #94a3b8 80%);
}
.executive-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.executive-card-header > div { min-width: 0; flex: 1; }
.executive-card-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 16px;
}
.executive-card-icon.compact { width: 34px; height: 34px; flex-basis: 34px; font-size: 14px; }
.executive-card-kicker {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.executive-card h3,
.executive-panel h3 {
    margin: 0;
    color: #17366c;
    font-size: 13px;
    line-height: 1.25;
}
.executive-card-arrow { color: #94a3b8; font-size: 11px; }
.executive-card-total { margin: 20px 0 16px; }
.executive-card-total strong {
    display: block;
    color: #102a56;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -.04em;
}
.executive-card-total span { display: block; margin-top: 6px; color: #64748b; font-size: 10px; }
.executive-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.executive-mini-grid > div {
    padding: 10px;
    border: 1px solid #e4ebf4;
    border-radius: 11px;
    background: #f8fafc;
}
.executive-mini-grid span { display: block; color: #64748b; font-size: 9px; font-weight: 700; }
.executive-mini-grid strong { display: block; margin-top: 5px; color: #1e3a8a; font-size: 17px; }
.executive-card-footer {
    position: absolute;
    right: 16px;
    bottom: 13px;
    left: 16px;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
    color: #94a3b8;
    font-size: 8.5px;
    font-weight: 750;
}
/* Classificações do Acompanhamento Judicial com barras proporcionais */
.executive-classification-list { display: grid; gap: 6px; margin-bottom: 33px; }
.executive-classification-list > button {
    width: 100%;
    min-height: 31px;
    padding: 5px 7px;
    display: grid;
    grid-template-columns: 9px minmax(92px, .95fr) minmax(44px, 1.35fr) auto;
    align-items: center;
    gap: 7px;
    min-width: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    font: inherit;
    font-size: 9px;
    text-align: left;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.executive-classification-list > button:hover,
.executive-classification-list > button:focus-visible {
    border-color: #dbeafe;
    background: #f8fbff;
    transform: translateX(2px);
    outline: none;
}
.executive-classification-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.executive-classification-list strong {
    min-width: 24px;
    color: #1e293b;
    font-size: 10px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.executive-classification-bar {
    position: relative;
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef6;
    box-shadow: inset 0 1px 2px rgba(15, 35, 70, .08);
}
.executive-classification-bar > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width .42s cubic-bezier(.2,.75,.25,1);
}
#executive-bar-protetiva { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
#executive-bar-periodico { background: linear-gradient(90deg, #eab308, #facc15); }
#executive-bar-respondido { background: linear-gradient(90deg, #16a34a, #4ade80); }
#executive-bar-extensao { background: linear-gradient(90deg, #2563eb, #60a5fa); }
#executive-bar-normal { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
@media (max-width: 1180px) {
    .executive-classification-list > button {
        grid-template-columns: 9px minmax(88px, 1fr) minmax(38px, 1fr) auto;
    }
}
@media (max-width: 720px) {
    .executive-classification-list > button {
        grid-template-columns: 9px minmax(105px, 1fr) minmax(70px, 1.25fr) auto;
    }
}
.executive-card-judicial.executive-loading { opacity: .72; }
.executive-card-judicial.executive-error { border-color: #fecaca; }
.executive-card-judicial.executive-error .executive-card-footer { color: #b91c1c; }
.executive-dot { width: 7px; height: 7px; border-radius: 999px; box-shadow: 0 0 0 3px rgba(148,163,184,.12); }
.dot-purple { background: #7c3aed; }
.dot-yellow { background: #eab308; }
.dot-green { background: #16a34a; }
.dot-blue { background: #2563eb; }
.dot-neutral { background: #94a3b8; }

.executive-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
}
.executive-panel {
    min-width: 0;
    padding: 17px;
    border: 1px solid #dbe5f0;
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 22px rgba(15,35,70,.06);
}
.executive-panel > header,
.executive-panel > header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}
.executive-panel > header { justify-content: space-between; }
.executive-status-badge {
    padding: 5px 8px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 8px;
    font-weight: 900;
    white-space: nowrap;
}
.executive-placeholder {
    min-height: 145px;
    margin-top: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px dashed #c9d7e8;
    border-radius: 14px;
    background: linear-gradient(145deg, #f8fafc, #f2f6fb);
    color: #64748b;
    text-align: center;
}
.executive-placeholder i { color: #3b82f6; font-size: 22px; }
.executive-placeholder strong { color: #334155; font-size: 11px; }
.executive-placeholder span { max-width: 430px; font-size: 9.5px; line-height: 1.45; }
.executive-chart-placeholder { position: relative; flex-direction: row; align-items: flex-end; gap: 9px; overflow: hidden; }
.executive-chart-placeholder > span {
    width: 9%;
    min-width: 18px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #60a5fa, #2563eb);
    opacity: .42;
}
.executive-chart-placeholder > span:nth-child(1) { height: 34%; }
.executive-chart-placeholder > span:nth-child(2) { height: 55%; }
.executive-chart-placeholder > span:nth-child(3) { height: 44%; }
.executive-chart-placeholder > span:nth-child(4) { height: 72%; }
.executive-chart-placeholder > span:nth-child(5) { height: 62%; }
.executive-chart-placeholder > span:nth-child(6) { height: 84%; }
.executive-chart-placeholder > strong {
    position: absolute;
    right: 16px;
    bottom: 12px;
    left: 16px;
    padding: 5px;
    border-radius: 8px;
    background: rgba(248,250,252,.86);
}
.portal-section-heading {
    margin: 2px 0 16px;
    padding: 0 2px;
}
.portal-section-heading > span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #17366c;
    font-size: 17px;
    font-weight: 900;
}
.portal-section-heading p { margin: 5px 0 0; color: #64748b; font-size: 11px; }

@media (max-width: 1050px) {
    .executive-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .executive-dashboard { padding: 17px; border-radius: 19px; }
    .executive-dashboard-heading { flex-direction: column; }
    .executive-dashboard-context { width: 100%; justify-content: flex-start; }
    .executive-context-item { flex: 1 1 130px; }
    .executive-refresh-btn { flex: 1 1 130px; }
    .executive-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .executive-kpi-grid { grid-template-columns: 1fr; }
    .executive-card { min-height: 230px; }
    .executive-panel > header { align-items: flex-start; }
    .executive-status-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .executive-card,
    .executive-refresh-btn { transition: none !important; }
}

/* ==========================================================
   Dashboard Executivo — PAF
   Estados do fluxo e indicador de atenção com barras proporcionais.
   ========================================================== */
.executive-card-paf::before {
    background: linear-gradient(90deg, #16a34a 0 50%, #2563eb 50% 76%, #ef4444 76% 100%);
}
.executive-card-paf .executive-card-icon {
    background: #ecfdf5;
    color: #15803d;
}
.executive-paf-list {
    display: grid;
    gap: 5px;
    margin-bottom: 34px;
}
.executive-paf-list > button {
    width: 100%;
    min-height: 31px;
    padding: 5px 7px;
    display: grid;
    grid-template-columns: 9px minmax(92px, .95fr) minmax(44px, 1.35fr) auto;
    align-items: center;
    gap: 7px;
    min-width: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    font: inherit;
    font-size: 9px;
    text-align: left;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.executive-paf-list > button:hover,
.executive-paf-list > button:focus-visible {
    border-color: #dbe5f0;
    background: #f8fafc;
    transform: translateX(2px);
    outline: none;
}
.executive-paf-list > button strong {
    min-width: 20px;
    color: #102a56;
    font-size: 10px;
    text-align: right;
}
.executive-paf-list .executive-classification-bar {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}
.executive-paf-list .executive-classification-bar > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width .38s ease;
}
#executive-paf-bar-andamento { background: linear-gradient(90deg, #16a34a, #4ade80); }
#executive-paf-bar-concluidos { background: linear-gradient(90deg, #2563eb, #60a5fa); }
#executive-paf-bar-sem-evolucao { background: linear-gradient(90deg, #dc2626, #fb7185); }
.executive-paf-attention-label {
    margin: 3px 7px -1px;
    padding-top: 6px;
    border-top: 1px dashed #fecaca;
    color: #b91c1c;
    font-size: 7.8px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.executive-paf-attention-label i { margin-right: 4px; }
.executive-paf-list > button.executive-paf-attention:hover,
.executive-paf-list > button.executive-paf-attention:focus-visible {
    border-color: #fecaca;
    background: #fff7f7;
}
.executive-card-paf.executive-loading { opacity: .72; }
.executive-card-paf.executive-error { border-color: #fecaca; }
.executive-card-paf.executive-error .executive-card-footer { color: #b91c1c; }
.executive-dot.dot-red { background: #ef4444; }

@media (max-width: 620px) {
    .executive-paf-list > button {
        grid-template-columns: 9px minmax(88px, 1fr) minmax(50px, 1.2fr) auto;
    }
}


/* ==========================================================
   Dashboard Executivo — Gestão da Agenda
   Visão mensal gerencial, sem repetir os compromissos do painel operacional.
   Os estados respeitam a Agenda: planejado, realizado e cancelado.
   ========================================================== */
.executive-card-agenda::before {
    background: linear-gradient(90deg, #16a34a 0 48%, #eab308 48% 72%, #ef4444 72% 88%, #2563eb 88% 100%);
}
.executive-card-agenda .executive-card-icon {
    background: #ecfdf5;
    color: #15803d;
}
.executive-agenda-list {
    display: grid;
    gap: 5px;
    margin-bottom: 34px;
}
.executive-agenda-list > button {
    width: 100%;
    min-height: 31px;
    padding: 5px 7px;
    display: grid;
    grid-template-columns: 9px minmax(88px, .95fr) minmax(42px, 1.35fr) auto;
    align-items: center;
    gap: 7px;
    min-width: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    font: inherit;
    font-size: 9px;
    text-align: left;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.executive-agenda-list > button:hover,
.executive-agenda-list > button:focus-visible {
    border-color: #dbe5f0;
    background: #f8fafc;
    transform: translateX(2px);
    outline: none;
}
.executive-agenda-list > button strong {
    min-width: 20px;
    color: #102a56;
    font-size: 10px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.executive-agenda-list .executive-classification-bar {
    height: 5px;
}
#executive-agenda-bar-realizado { background: linear-gradient(90deg, #16a34a, #4ade80); }
#executive-agenda-bar-planejado { background: linear-gradient(90deg, #d4a106, #facc15); }
#executive-agenda-bar-cancelado { background: linear-gradient(90deg, #dc2626, #fb7185); }
#executive-agenda-bar-proximos-7 { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.executive-agenda-planning-label {
    margin: 3px 7px -1px;
    padding-top: 6px;
    border-top: 1px dashed #bfdbfe;
    color: #1d4ed8;
    font-size: 7.8px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.executive-agenda-planning-label i { margin-right: 4px; }
.executive-agenda-list > button.executive-agenda-next:hover,
.executive-agenda-list > button.executive-agenda-next:focus-visible {
    border-color: #bfdbfe;
    background: #f4f8ff;
}
.executive-card-agenda.executive-loading { opacity: .72; }
.executive-card-agenda.executive-error { border-color: #fecaca; }
.executive-card-agenda.executive-error .executive-card-footer { color: #b91c1c; }
@media (max-width: 620px) {
    .executive-agenda-list > button {
        grid-template-columns: 9px minmax(88px, 1fr) minmax(50px, 1.2fr) auto;
    }
}


/* ==========================================================
   Dashboard Executivo — Gestão do RMA
   Visão consolidada do ciclo mensal municipal e regional.
   ========================================================== */
.executive-card-rma::before {
    background: linear-gradient(90deg, #0891b2 0 46%, #16a34a 46% 70%, #ef4444 70% 84%, #7c3aed 84% 100%);
}
.executive-card-rma .executive-card-icon {
    background: #ecfeff;
    color: #0e7490;
}
.executive-rma-list {
    display: grid;
    gap: 5px;
    margin-bottom: 34px;
}
.executive-rma-list > button {
    width: 100%;
    min-height: 31px;
    padding: 5px 7px;
    display: grid;
    grid-template-columns: 9px minmax(88px, .95fr) minmax(42px, 1.35fr) auto;
    align-items: center;
    gap: 7px;
    min-width: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    font: inherit;
    font-size: 9px;
    text-align: left;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.executive-rma-list > button:hover,
.executive-rma-list > button:focus-visible {
    border-color: #bae6fd;
    background: #f4fbfd;
    transform: translateX(2px);
    outline: none;
}
.executive-rma-list > button strong {
    min-width: 20px;
    color: #102a56;
    font-size: 10px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.executive-rma-list .executive-classification-bar { height: 5px; }
#executive-rma-bar-enviados { background: linear-gradient(90deg, #16a34a, #4ade80); }
#executive-rma-bar-pendentes { background: linear-gradient(90deg, #dc2626, #fb7185); }
.executive-rma-cycle-label {
    margin: 3px 7px -1px;
    padding-top: 6px;
    border-top: 1px dashed #bae6fd;
    color: #0e7490;
    font-size: 7.8px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.executive-rma-cycle-label i { margin-right: 4px; }
.executive-rma-status {
    justify-self: stretch;
    overflow: hidden;
    color: #64748b;
    font-size: 8px;
    font-weight: 800;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.executive-rma-status.status-ok { color: #15803d; }
.executive-rma-status.status-pendente { color: #b91c1c; }
.executive-rma-list > button.executive-rma-equipe:hover,
.executive-rma-list > button.executive-rma-equipe:focus-visible { border-color: #bfdbfe; background: #f4f8ff; }
.executive-rma-list > button.executive-rma-consolidado:hover,
.executive-rma-list > button.executive-rma-consolidado:focus-visible { border-color: #ddd6fe; background: #faf8ff; }
.executive-card-rma.executive-loading { opacity: .72; }
.executive-card-rma.executive-error { border-color: #fecaca; }
.executive-card-rma.executive-error .executive-card-footer { color: #b91c1c; }
@media (max-width: 620px) {
    .executive-rma-list > button {
        grid-template-columns: 9px minmax(88px, 1fr) minmax(50px, 1.2fr) auto;
    }
}


/* ==========================================================
   DASHBOARD EXECUTIVO — INDICADORES POR MUNICÍPIO
   Comparativo territorial consolidado, responsivo e legível.
   ========================================================== */
.executive-panel[data-executive-panel="municipios"]{
    min-width:0;
}
.executive-municipios-summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-height:30px;
    margin:0 0 8px;
    padding:7px 10px;
    border:1px solid #dbe7f5;
    border-radius:10px;
    background:linear-gradient(135deg,#f8fbff,#f3f7fc);
    color:#526277;
    font-size:9px;
    font-weight:700;
}
.executive-municipios-summary strong{color:#0b2d6b;font-size:10px}
.executive-municipios-table-wrap{
    width:100%;
    overflow:auto;
    border:1px solid #dbe5f0;
    border-radius:12px;
    background:#fff;
    scrollbar-width:thin;
}
.executive-municipios-table{
    width:100%;
    min-width:560px;
    border-collapse:separate;
    border-spacing:0;
    table-layout:fixed;
    font-size:9px;
}
.executive-municipios-table th{
    position:sticky;
    top:0;
    z-index:2;
    padding:8px 9px;
    border-bottom:1px solid #d8e3ef;
    background:#f4f8fd;
    color:#526277;
    font-size:7.5px;
    font-weight:900;
    letter-spacing:.05em;
    text-align:center;
    text-transform:uppercase;
    white-space:nowrap;
}
.executive-municipios-table th:first-child{
    width:42%;
    text-align:left;
}
.executive-municipios-table td{
    padding:8px 9px;
    border-bottom:1px solid #edf2f7;
    color:#334155;
    text-align:center;
    font-weight:800;
    vertical-align:middle;
}
.executive-municipios-table tbody tr:last-child td{border-bottom:0}
.executive-municipios-table tbody tr{
    transition:background .16s ease,transform .16s ease;
}
.executive-municipios-table tbody tr:hover{background:#f8fbff}
.executive-municipio-name{
    display:flex;
    align-items:center;
    gap:7px;
    min-width:0;
    text-align:left;
}
.executive-municipio-rank{
    width:22px;
    height:22px;
    flex:0 0 22px;
    display:grid;
    place-items:center;
    border-radius:7px;
    background:#edf4ff;
    color:#2563eb;
    font-size:8px;
    font-weight:900;
}
.executive-municipio-name span:last-child{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#0b2d6b;
}
.executive-metric-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:28px;
    min-height:22px;
    padding:3px 7px;
    border-radius:999px;
    background:#f1f5f9;
    color:#243b5a;
    font-size:9px;
    font-weight:900;
}
.executive-rma-pill{
    gap:4px;
    min-width:64px;
}
.executive-rma-pill::before{
    content:"";
    width:6px;
    height:6px;
    border-radius:50%;
    background:currentColor;
}
.executive-rma-pill.is-ok{background:#ecfdf3;color:#15803d}
.executive-rma-pill.is-pendente{background:#fff1f2;color:#dc2626}
.executive-municipios-loading,
.executive-municipios-empty,
.executive-municipios-error{
    height:120px;
    color:#64748b!important;
    font-weight:700!important;
}
.executive-municipios-error{color:#b91c1c!important}
.executive-panel-footer{
    margin-top:8px;
    padding-top:8px;
    border-top:1px solid #e5edf6;
    color:#8a9bb0;
    font-size:8px;
    font-weight:700;
}
.executive-status-badge.is-ready{background:#ecfdf3!important;color:#15803d!important;border-color:#bbf7d0!important}
.executive-status-badge.is-error{background:#fff1f2!important;color:#b91c1c!important;border-color:#fecaca!important}
@media (max-width:700px){
    .executive-municipios-summary{align-items:flex-start;flex-direction:column}
    .executive-municipios-table{min-width:520px}
}

/* ==========================================================
   SIG-CREAS — Dashboard Executivo: evolução dos indicadores
   ========================================================== */
.executive-evolution-panel{min-width:0}
.executive-evolution-toolbar{
    display:flex; flex-wrap:wrap; gap:7px; margin:10px 0 12px;
}
.executive-evolution-toolbar button{
    min-height:30px; padding:6px 10px; border:1px solid #d8e3f0;
    border-radius:9px; background:#f8fbff; color:#52647e;
    display:inline-flex; align-items:center; gap:6px; font:inherit;
    font-size:9px; font-weight:800; cursor:pointer;
    transition:.18s ease;
}
.executive-evolution-toolbar button:hover,
.executive-evolution-toolbar button:focus-visible{
    border-color:#93b8ff; background:#eef5ff; color:#174bb5; outline:none;
}
.executive-evolution-toolbar button.is-active{
    border-color:#2563eb; background:#2563eb; color:#fff;
    box-shadow:0 6px 14px rgba(37,99,235,.18);
}
.executive-evolution-summary{
    display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
    margin-bottom:8px; padding:0 2px;
}
.executive-evolution-summary>div{display:flex; flex-direction:column; gap:2px}
.executive-evolution-summary span{font-size:8px; color:#64748b; font-weight:700}
.executive-evolution-summary strong{font-size:20px; color:#0b2d63; line-height:1}
.executive-evolution-chart{
    position:relative; min-height:178px; padding:12px 10px 4px;
    border:1px solid #dbe7f4; border-radius:12px;
    background:linear-gradient(180deg,#fbfdff,#f5f9ff);
    overflow:hidden;
}
.executive-evolution-loading,
.executive-evolution-empty,
.executive-evolution-error{
    min-height:150px; display:grid; place-items:center;
    color:#64748b; font-size:10px; font-weight:700; text-align:center;
}
.executive-evolution-error{color:#b91c1c}
.executive-evolution-svg{display:block; width:100%; height:155px; overflow:visible}
.executive-evolution-grid{stroke:#dfe8f3; stroke-width:1; stroke-dasharray:3 4}
.executive-evolution-axis-label{fill:#718096; font-size:8px; font-weight:700}
.executive-evolution-line{fill:none; stroke:#2563eb; stroke-width:3; stroke-linecap:round; stroke-linejoin:round}
.executive-evolution-area{fill:url(#executiveEvolutionGradient); opacity:.72}
.executive-evolution-point{fill:#fff; stroke:#2563eb; stroke-width:2.5}
.executive-evolution-value{fill:#0b2d63; font-size:8px; font-weight:900; text-anchor:middle}
.executive-evolution-panel.is-paf .executive-evolution-line,
.executive-evolution-panel.is-paf .executive-evolution-point{stroke:#16a34a}
.executive-evolution-panel.is-agenda .executive-evolution-line,
.executive-evolution-panel.is-agenda .executive-evolution-point{stroke:#f59e0b}
.executive-evolution-panel.is-rma .executive-evolution-line,
.executive-evolution-panel.is-rma .executive-evolution-point{stroke:#7c3aed}
.executive-evolution-panel.executive-loading{opacity:.82}
@media(max-width:720px){
    .executive-evolution-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
    .executive-evolution-toolbar button{justify-content:center}
    .executive-evolution-chart{padding-left:4px;padding-right:4px}
}


/* ==========================================================
   VISÃO GERAL — DETALHAMENTO JUDICIAL POR MUNICÍPIO
   Bloco independente para evitar tabela horizontal extensa.
   ========================================================== */
.executive-judicial-municipios-panel{
    margin-top:14px;
    min-width:0;
}
.executive-judicial-municipios-table-wrap{
    width:100%;
    overflow:hidden;
    border:1px solid #dbe5f0;
    border-radius:12px;
    background:#fff;
}
.executive-judicial-municipios-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    table-layout:fixed;
    font-size:9px;
}
.executive-judicial-municipios-table th{
    padding:8px 7px;
    border-bottom:1px solid #d8e3ef;
    background:#f4f8fd;
    color:#526277;
    font-size:7.4px;
    font-weight:900;
    letter-spacing:.035em;
    text-align:center;
    text-transform:uppercase;
    line-height:1.25;
}
.executive-judicial-municipios-table th:first-child{
    width:30%;
    text-align:left;
}
.executive-judicial-municipios-table td{
    padding:8px 7px;
    border-bottom:1px solid #edf2f7;
    text-align:center;
    vertical-align:middle;
}
.executive-judicial-municipios-table tbody tr:last-child td{border-bottom:0}
.executive-judicial-municipios-table tbody tr:hover{background:#f8fbff}
.executive-judicial-detail-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:32px;
    min-height:23px;
    padding:3px 8px;
    border-radius:999px;
    font-size:9px;
    font-weight:900;
}
.executive-judicial-detail-pill.is-protetiva{background:#f3e8ff;color:#7c3aed}
.executive-judicial-detail-pill.is-respondido{background:#dcfce7;color:#15803d}
.executive-judicial-detail-pill.is-periodico{background:#fef3c7;color:#b45309}
.executive-judicial-detail-pill.is-extensao{background:#dbeafe;color:#2563eb}
.executive-judicial-detail-pill.is-normal{background:#e2e8f0;color:#475569}

@media (max-width:900px){
    .executive-judicial-municipios-table-wrap{
        border:0;
        background:transparent;
    }
    .executive-judicial-municipios-table,
    .executive-judicial-municipios-table tbody,
    .executive-judicial-municipios-table tr,
    .executive-judicial-municipios-table td{
        display:block;
        width:100%;
    }
    .executive-judicial-municipios-table thead{display:none}
    .executive-judicial-municipios-table tbody{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }
    .executive-judicial-municipios-table tr{
        padding:10px;
        border:1px solid #dbe5f0;
        border-radius:12px;
        background:#fff;
    }
    .executive-judicial-municipios-table td{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        padding:6px 2px;
        border-bottom:1px solid #edf2f7;
        text-align:right;
    }
    .executive-judicial-municipios-table td:last-child{border-bottom:0}
    .executive-judicial-municipios-table td::before{
        content:attr(data-label);
        color:#64748b;
        font-size:8px;
        font-weight:800;
        text-align:left;
    }
    .executive-judicial-municipios-table td:first-child{
        justify-content:flex-start;
        padding-bottom:8px;
    }
    .executive-judicial-municipios-table td:first-child::before{display:none}
}
@media (max-width:600px){
    .executive-judicial-municipios-table tbody{grid-template-columns:1fr}
}
