/* ============================================================
   Painel de Controle — Sigraweb
   Dashboards vivos configurados por Inteligência Artificial.
   Linguagem visual alinhada ao Sigra Reports: gradiente roxo,
   superfícies claras arredondadas e tipografia Poppins.
   ============================================================ */

:root {
    --pc-roxo: #6425d1;
    --pc-roxo-esc: #4a189e;
    --pc-roxo-cla: #8b5cf6;
    --pc-texto: #2f3a45;
    --pc-suave: #7a8894;
    --pc-borda: #e8edf3;
    --pc-fundo: #f5f7fa;
}

.pc-container {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    color: #2f3a45;
    padding: 0;
    background: #f5f7fa;
    min-height: 100%;
}

.pc-container *,
.pc-container *:focus {
    outline: none;
}

/* ---------------- Hero ---------------- */

.pc-hero {
    background: linear-gradient(135deg, #4a189e 0%, #6425d1 55%, #7c3aed 100%);
    padding: 46px 30px 92px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pc-hero:after {
    /* brilho suave no canto */
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.pc-hero-conteudo {
    position: relative;
    z-index: 1;
}

.pc-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    padding: 7px 18px;
    border-radius: 30px;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}

.pc-hero-badge .fa {
    margin-right: 6px;
}

.pc-hero-titulo {
    font-family: 'Poppins', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    letter-spacing: -0.6px;
    line-height: 1.15;
}

.pc-hero-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    max-width: 540px;
    margin: 0 auto 26px auto;
    line-height: 1.55;
}

.pc-btn-hero {
    background: #fff;
    color: #6425d1;
    border: none;
    border-radius: 40px;
    padding: 13px 30px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 22px rgba(30, 10, 70, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pc-btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30, 10, 70, 0.3);
    color: #4a189e;
}

.pc-btn-hero .fa {
    margin-right: 8px;
}

/* ---------------- Folha (conteúdo sobre o hero) ---------------- */

.pc-folha {
    background: #fff;
    border-radius: 26px 26px 0 0;
    margin-top: -56px;
    position: relative;
    z-index: 2;
    padding: 30px 34px 44px 34px;
    min-height: 440px;
    box-shadow: 0 -6px 26px rgba(40, 30, 80, 0.07);
}

.pc-secao-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pc-secao-titulo h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #2f3a45;
    margin: 0;
    letter-spacing: -0.2px;
}

.pc-secao-contador {
    background: #f0eaff;
    color: #6425d1;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
}

/* ---------------- Cards de painel ---------------- */

.pc-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.pc-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    width: 300px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.pc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(70, 40, 140, 0.14);
    border-color: #d9c9fb;
}

.pc-card-faixa {
    height: 4px;
    background: linear-gradient(90deg, #6425d1, #a855f7);
}

.pc-card-corpo {
    padding: 18px 20px 16px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pc-card-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pc-card-icone {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, #6425d1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 5px 14px rgba(100, 37, 209, 0.3);
}

.pc-card-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f3f0ff;
    color: #6425d1;
    border-radius: 12px;
    padding: 3px 10px;
    font-weight: 700;
}

.pc-card-badge-empresa {
    background: #e6f7f4;
    color: #00897b;
}

.pc-card-nome {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15.5px;
    color: #2f3a45;
    margin: 0 0 6px 0;
    letter-spacing: -0.2px;
    line-height: 1.35;
}

.pc-card-descricao {
    color: #8a97a3;
    font-size: 12.5px;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 14px;
}

.pc-card-rodape {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f2f5f8;
}

.pc-card-meta {
    font-size: 11.5px;
    color: #a3adb8;
}

.pc-card-meta .fa {
    margin-right: 4px;
}

.pc-card-excluir {
    border: none;
    background: transparent;
    color: #c8d0d8;
    padding: 4px 7px;
    border-radius: 7px;
    transition: all 0.15s ease;
}

.pc-card-excluir:hover {
    background: #fdecef;
    color: #e0457b;
}

/* Card "criar novo" */

.pc-card-novo {
    border: 2px dashed #ddd6f3;
    background: #fbfaff;
    align-items: center;
    justify-content: center;
    min-height: 218px;
}

.pc-card-novo:hover {
    border-color: #8b5cf6;
    background: #f7f4ff;
    box-shadow: none;
}

.pc-card-novo-conteudo {
    text-align: center;
    color: #8b5cf6;
    font-size: 13.5px;
    font-weight: 600;
}

.pc-card-novo-icone {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #efe9ff;
    color: #6425d1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin: 0 auto 10px auto;
}

/* ---------------- Estados ---------------- */

.pc-carregando,
.pc-vazio {
    text-align: center;
    padding: 46px 20px 60px 20px;
    color: #8a97a3;
}

.pc-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #ece5fd;
    border-top-color: #6425d1;
    border-radius: 50%;
    margin: 0 auto 14px auto;
    animation: pc-girar 0.8s linear infinite;
}

@keyframes pc-girar {
    to {
        transform: rotate(360deg);
    }
}

.pc-vazio-icone {
    width: 94px;
    height: 94px;
    border-radius: 26px;
    background: linear-gradient(135deg, #6425d1, #8b5cf6);
    color: #fff;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px auto;
    box-shadow: 0 14px 34px rgba(100, 37, 209, 0.32);
}

.pc-vazio h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #2f3a45;
    letter-spacing: -0.4px;
    line-height: 1.3;
    margin: 0 0 14px 0;
}

.pc-vazio p {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
}

.pc-vazio-exemplos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.pc-exemplo-chip {
    background: #f5f2ff;
    color: #6425d1;
    border: 1px solid #e6ddfb;
    border-radius: 30px;
    padding: 6px 15px;
    font-size: 12.5px;
    font-style: italic;
}

/* ---------------- Botões ---------------- */

.pc-btn-primario {
    background: linear-gradient(135deg, #6425d1, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 11px 26px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 6px 18px rgba(100, 37, 209, 0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pc-btn-primario:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(100, 37, 209, 0.38);
    color: #fff;
}

.pc-btn-primario .fa {
    margin-right: 7px;
}

.pc-btn-sm {
    padding: 8px 18px;
    font-size: 12.5px;
}

.pc-btn-ghost {
    background: #fff;
    border: 1px solid #e2e8ef;
    color: #5c6b7a;
    border-radius: 9px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.15s ease;
}

.pc-btn-ghost:hover {
    background: #f7f9fc;
    border-color: #cdd7e2;
    color: #2f3a45;
}

.pc-btn-ghost .fa {
    margin-right: 5px;
}

.pc-btn-xs {
    padding: 5px 11px;
    font-size: 11.5px;
}

.pc-btn-perigo:hover {
    background: #fdecef;
    border-color: #f8ccd8;
    color: #e0457b;
}

.pc-btn-perigo .fa {
    margin-right: 0;
}

/* ---------------- Tela de visualização ---------------- */

.pc-view {
    padding: 22px 26px 40px 26px;
    background: #f5f7fa;
}

.pc-topo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.pc-topo-esq {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pc-voltar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8ef;
    color: #6c7a89;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
    margin-top: 2px;
}

.pc-voltar:hover {
    background: #6425d1;
    border-color: #6425d1;
    color: #fff;
}

.pc-topo-titulo {
    font-family: 'Poppins', sans-serif;
    font-size: 21px;
    font-weight: 600;
    color: #2f3a45;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.pc-topo-sub {
    color: #8a97a3;
    font-size: 12.5px;
    margin: 2px 0 0 0;
}

.pc-topo-acoes {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------------- Abas ---------------- */

.pc-abas {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    background: #fff;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid #e8edf3;
}

.pc-aba {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    color: #7a8894;
    text-decoration: none;
    transition: all 0.15s ease;
}

.pc-aba:hover {
    background: #f5f2ff;
    color: #6425d1;
    text-decoration: none;
}

.pc-aba-ativa,
.pc-aba-ativa:hover {
    background: linear-gradient(135deg, #6425d1, #7c3aed);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(100, 37, 209, 0.28);
}

.pc-aba-contador {
    font-size: 10.5px;
    background: #eef2f6;
    color: #8a97a3;
    border-radius: 10px;
    padding: 1px 7px;
    font-weight: 700;
}

.pc-aba-ativa .pc-aba-contador {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ---------------- Filtros ---------------- */

.pc-filtros {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.pc-filtros-rotulo {
    color: #b8c2cc;
    font-size: 14px;
    padding-bottom: 8px;
}

.pc-filtro {
    display: flex;
    flex-direction: column;
    min-width: 175px;
}

.pc-filtro-rotulo {
    font-size: 10.5px;
    text-transform: uppercase;
    color: #8a97a3;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
    font-weight: 700;
}

.pc-input {
    border: 1px solid #e2e8ef;
    border-radius: 9px;
    padding: 7px 11px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    color: #2f3a45;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.pc-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.13);
}

/* ---------------- Widgets ---------------- */

.pc-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.pc-widget {
    display: flex;
}

.pc-widget-1 {
    width: calc(33.33% - 11px);
    min-width: 270px;
}

.pc-widget-2 {
    width: calc(66.66% - 8px);
    min-width: 400px;
}

.pc-widget-3 {
    width: 100%;
}

.pc-widget-inner {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    padding: 16px 18px 14px 18px;
    width: 100%;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.pc-widget-inner:hover {
    box-shadow: 0 6px 20px rgba(50, 40, 90, 0.07);
}

.pc-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.pc-widget-titulo {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #6c7a89;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.pc-widget-spinner {
    color: #b9a6ea;
    font-size: 12px;
}

.pc-widget-erro {
    color: #e0457b;
    font-size: 12px;
    background: #fdf2f5;
    border-radius: 9px;
    padding: 10px 12px;
    line-height: 1.5;
}

.pc-widget-sem-dados {
    color: #b3bdc7;
    text-align: center;
    padding: 26px 0;
    font-size: 12.5px;
}

.pc-widget-sem-dados .fa {
    display: block;
    font-size: 22px;
    margin-bottom: 7px;
    opacity: 0.55;
}

/* KPI */

.pc-kpi {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 14px 0 16px 0;
    min-height: 84px;
}

.pc-kpi-item {
    text-align: center;
    flex: 1 1 auto;
    min-width: 92px;
    padding: 0 12px;
}

.pc-kpi-valor {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.1;
    display: block;
    letter-spacing: -1.2px;
    white-space: nowrap;
}

.pc-kpi-multi .pc-kpi-valor {
    font-size: 26px;
    letter-spacing: -0.6px;
}

.pc-kpi-rotulo {
    display: block;
    font-size: 10.5px;
    color: #9aa5b1;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 5px;
    font-weight: 600;
}

.pc-kpi-multi .pc-kpi-item + .pc-kpi-item {
    border-left: 1px solid #f0f4f8;
}

/* Gráfico */

.pc-chart-area {
    width: 100%;
    min-height: 60px;
    margin: 0 -6px;
}

/* Lista / ranking */

.pc-lista {
    padding-top: 4px;
}

.pc-lista-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 7px 0;
}

.pc-lista-pos {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #f2f5f8;
    color: #a3adb8;
    font-size: 10.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pc-lista-pos-top {
    background: linear-gradient(135deg, #6425d1, #8b5cf6);
    color: #fff;
}

.pc-lista-meio {
    flex: 1 1 auto;
    min-width: 0;
}

.pc-lista-linha {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
}

.pc-lista-rotulo {
    color: #495b6b;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-lista-valor {
    font-weight: 700;
    color: #2f3a45;
    font-size: 12.5px;
    flex-shrink: 0;
}

.pc-lista-barra-fundo {
    height: 5px;
    background: #f0f4f8;
    border-radius: 3px;
    overflow: hidden;
}

.pc-lista-barra {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Progresso */

.pc-progresso {
    padding-top: 6px;
}

.pc-progresso-item {
    margin-bottom: 13px;
}

.pc-progresso-topo {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    margin-bottom: 5px;
}

.pc-progresso-rotulo {
    color: #495b6b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.pc-progresso-num {
    color: #2f3a45;
    font-weight: 700;
    white-space: nowrap;
}

.pc-progresso-num small {
    color: #a3adb8;
    font-weight: 400;
}

.pc-progresso-fundo {
    height: 7px;
    background: #f0f4f8;
    border-radius: 4px;
    overflow: hidden;
}

.pc-progresso-barra {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ---------------- Tabela ---------------- */

.pc-tabela-area {
    overflow-x: auto;
    margin: 0 -4px;
}

.pc-tabela {
    width: 100%;
    font-size: 12.5px;
    border-collapse: separate;
    border-spacing: 0;
}

.pc-tabela th {
    background: #f8fafc;
    color: #6c7a89;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    white-space: nowrap;
    border-bottom: 1px solid #e8edf3;
}

.pc-tabela th:first-child {
    border-radius: 9px 0 0 0;
}

.pc-tabela th:last-child {
    border-radius: 0 9px 0 0;
}

.pc-tabela td {
    padding: 9px 12px;
    border-bottom: 1px solid #f4f7fa;
    color: #495b6b;
}

.pc-tabela tbody tr:hover td {
    background: #faf9ff;
}

.pc-tabela-th {
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.pc-tabela-th:hover {
    background: #f2ecfd;
    color: #6425d1;
}

.pc-tabela-th .fa {
    color: #c8d0d8;
    margin-left: 4px;
    font-size: 10.5px;
}

/* Paginação */

.pc-paginacao {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 13px;
    margin-top: 4px;
}

.pc-paginacao-info {
    font-size: 11.5px;
    color: #8a97a3;
}

.pc-paginacao-info strong {
    color: #2f3a45;
}

.pc-paginacao-botoes {
    display: flex;
    gap: 4px;
}

.pc-pag-btn {
    min-width: 29px;
    height: 29px;
    border-radius: 8px;
    border: 1px solid #e8edf3;
    background: #fff;
    color: #6c7a89;
    font-size: 11.5px;
    font-weight: 500;
    padding: 0 7px;
    transition: all 0.15s ease;
}

.pc-pag-btn:hover:not([disabled]) {
    border-color: #c9b6f5;
    background: #f7f4ff;
    color: #6425d1;
}

.pc-pag-btn[disabled] {
    opacity: 0.42;
    cursor: not-allowed;
}

.pc-pag-ativa,
.pc-pag-ativa:hover {
    background: linear-gradient(135deg, #6425d1, #7c3aed);
    border-color: #6425d1;
    color: #fff;
    font-weight: 700;
}

/* ---------------- Histórico / desfazer ---------------- */

.pc-historico {
    position: relative;
    display: flex;
}

.pc-btn-desfazer {
    border-radius: 9px 0 0 9px;
    border-right: none;
}

.pc-historico-toggle {
    border-radius: 0 9px 9px 0;
    padding-left: 8px;
    padding-right: 8px;
}

.pc-historico-toggle .fa {
    margin-right: 0;
}

.pc-historico-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 13px;
    box-shadow: 0 12px 30px rgba(40, 30, 80, 0.15);
    min-width: 272px;
    z-index: 1000;
    padding: 7px 0;
    text-align: left;
    overflow: hidden;
}

.pc-historico-titulo {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #a3adb8;
    font-weight: 700;
    padding: 7px 16px 9px 16px;
    border-bottom: 1px solid #f2f5f8;
}

.pc-historico-item {
    display: block;
    padding: 9px 16px;
    color: #495b6b;
    text-decoration: none;
    transition: background 0.15s ease;
}

.pc-historico-item:hover {
    background: #f7f4ff;
    text-decoration: none;
    color: #6425d1;
}

.pc-historico-quando {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
}

.pc-historico-info {
    display: block;
    font-size: 11px;
    color: #a3adb8;
    margin-top: 1px;
}

.pc-historico-rodape {
    font-size: 10.5px;
    color: #b3bdc7;
    padding: 8px 16px 4px 16px;
    font-style: italic;
    border-top: 1px solid #f2f5f8;
}

/* ---------------- Widget livre ---------------- */

.pc-livre {
    font-size: 13px;
    color: #495b6b;
    padding-top: 4px;
}

.pc-livre .pc-l-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.pc-livre .pc-l-item {
    flex: 1 1 130px;
    background: #faf9ff;
    border: 1px solid #f0ebfd;
    border-radius: 11px;
    padding: 12px 14px;
}

.pc-livre .pc-l-rotulo {
    display: block;
    font-size: 10.5px;
    text-transform: uppercase;
    color: #9aa5b1;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.pc-livre .pc-l-valor {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 21px;
    color: #2f3a45;
    margin-top: 3px;
    letter-spacing: -0.4px;
}

.pc-livre .pc-l-destaque {
    font-size: 32px;
    color: #6425d1;
}

.pc-livre .pc-l-barra {
    height: 6px;
    background: linear-gradient(90deg, #6425d1, #a855f7);
    border-radius: 4px;
    margin-top: 6px;
    max-width: 100%;
}

.pc-livre .pc-l-badge {
    display: inline-block;
    font-size: 10.5px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f3f0ff;
    color: #6425d1;
    font-weight: 700;
}

.pc-livre .pc-l-linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #f4f7fa;
}

.pc-livre .pc-l-positivo {
    color: #00897b;
}

.pc-livre .pc-l-negativo {
    color: #e0457b;
}

.pc-livre table {
    width: 100%;
    font-size: 12.5px;
}

.pc-livre th,
.pc-livre td {
    padding: 7px 10px;
    border-bottom: 1px solid #f4f7fa;
    text-align: left;
}

.pc-livre th {
    color: #6c7a89;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------------- Chat com a IA ---------------- */

.pc-chat-modal .modal-content,
.modal-content:has(.pc-chat-modal) {
    border-radius: 18px;
    overflow: hidden;
    border: none;
}

.pc-chat-header {
    background: linear-gradient(135deg, #4a189e 0%, #6425d1 60%, #7c3aed 100%);
    border: none;
    padding: 22px 26px;
}

.pc-chat-header .modal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #fff;
    font-size: 18px;
    letter-spacing: -0.2px;
}

.pc-chat-header .close {
    color: #fff;
    opacity: 0.7;
    font-size: 24px;
    text-shadow: none;
}

.pc-chat-header .close:hover {
    opacity: 1;
}

.pc-chat-subtitulo {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12.5px;
    margin: 7px 0 0 0;
    line-height: 1.5;
}

.pc-chat-body {
    padding: 20px 22px;
    background: #f7f8fb;
}

.pc-chat-mensagens {
    max-height: 390px;
    min-height: 210px;
    overflow-y: auto;
    padding: 4px 4px 8px 4px;
    margin-bottom: 12px;
}

.pc-chat-boasvindas {
    text-align: center;
    color: #9aa5b1;
    padding: 22px 10px;
}

.pc-chat-boasvindas .fa-comments-o {
    font-size: 34px;
    margin-bottom: 10px;
    color: #cbb9f5;
}

.pc-chat-msg {
    display: flex;
    margin-bottom: 11px;
}

.pc-chat-msg-usuario {
    justify-content: flex-end;
}

.pc-chat-msg-ia {
    justify-content: flex-start;
}

.pc-chat-bolha {
    max-width: 82%;
    padding: 11px 16px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.55;
}

.pc-chat-msg-usuario .pc-chat-bolha {
    background: linear-gradient(135deg, #6425d1, #7c3aed);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 3px 12px rgba(100, 37, 209, 0.24);
}

.pc-chat-msg-ia .pc-chat-bolha {
    background: #fff;
    border: 1px solid #e8edf3;
    color: #495b6b;
    border-bottom-left-radius: 4px;
}

.pc-chat-pensando {
    color: #9aa5b1;
    font-style: italic;
}

.pc-chat-preview {
    margin-top: 12px;
    background: #faf9ff;
    border: 1px solid #ece5fd;
    border-radius: 12px;
    padding: 12px 14px;
}

.pc-chat-preview-titulo {
    font-weight: 700;
    color: #6425d1;
    margin-bottom: 8px;
    font-size: 13px;
}

.pc-chat-preview-widget {
    font-size: 12px;
    color: #5c6b7a;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.pc-chat-preview-widget .fa {
    width: 15px;
    color: #a78bfa;
}

.pc-chat-preview-tipo {
    color: #b3bdc7;
}

.pc-chat-preview-aba {
    margin-left: auto;
    font-size: 10px;
    background: #efe9ff;
    color: #6425d1;
    border-radius: 10px;
    padding: 2px 9px;
    font-weight: 700;
}

.pc-chat-sugestoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.pc-sugestao {
    background: #fff;
    border: 1px solid #ddd6f3;
    color: #6425d1;
    border-radius: 30px;
    padding: 7px 16px;
    font-size: 12.5px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.15s ease;
}

.pc-sugestao:hover {
    background: #6425d1;
    border-color: #6425d1;
    color: #fff;
    transform: translateY(-1px);
}

.pc-chat-input-area {
    display: flex;
    gap: 9px;
}

.pc-chat-input {
    flex-grow: 1;
    border: 1px solid #e2e8ef;
    border-radius: 30px;
    padding: 11px 20px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pc-chat-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.13);
}

.pc-chat-footer {
    border-top: 1px solid #eef2f6;
    padding: 14px 22px;
    background: #fff;
}

/* ---------------- Responsivo ---------------- */

@media (max-width: 1100px) {
    .pc-widget-2 {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .pc-widget-1 {
        width: 100%;
    }

    .pc-card {
        width: 100%;
    }

    .pc-hero-titulo {
        font-size: 28px;
    }

    .pc-folha {
        padding: 22px 18px 34px 18px;
        border-radius: 20px 20px 0 0;
    }

    .pc-view {
        padding: 16px 14px 30px 14px;
    }
}
