.sacg-card {
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 16px;
    border: none;
}

.sacg-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.sacg-header-titulo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sacg-header-icone {
    width: 42px;
    height: 42px;
    border-radius: 0.75rem;
    background: #e8f0fe;
    color: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sacg-titulo {
    margin: 0;
    font-weight: 700;
    color: #1f2937;
}

.sacg-subtitulo {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
    max-width: 520px;
}

.sacg-filtros-tipo {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sacg-filtro-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    border-radius: 0.6rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.sacg-filtro-btn i {
    font-size: 0.8rem;
}

.sacg-filtro-btn:hover {
    border-color: #1a73e8;
    color: #1a73e8;
}

.sacg-filtro-btn.active {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
}

.sacg-filtro-btn[data-filtro="presencial"] i {
    color: #1e8e3e;
}

.sacg-filtro-btn[data-filtro="online"] i {
    color: #8430ce;
}

.sacg-filtro-btn[data-filtro="externo"] i {
    color: #1a73e8;
}

.sacg-filtro-btn[data-filtro="interno"] i {
    color: #e8710a;
}

.sacg-filtro-btn.active i {
    color: #fff;
}

.sacg-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sacg-toolbar-esquerda {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
}

.sacg-data-picker,
.sacg-busca {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.7rem;
    padding: 0.45rem 0.85rem;
    background: #fff;
    color: #6b7280;
}

.sacg-busca {
    flex: 1;
    min-width: 240px;
    max-width: 460px;
}

.sacg-data-picker input,
.sacg-busca input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.88rem;
    color: #1f2937;
    width: 100%;
}

.sacg-data-picker input {
    width: auto;
    font-weight: 600;
}

.sacg-toolbar-direita {
    display: flex;
    gap: 0.4rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.7rem;
    padding: 0.25rem;
    background: #f9fafb;
}

.sacg-view-btn {
    border: none;
    background: transparent;
    color: #4b5563;
    border-radius: 0.5rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.sacg-view-btn.active {
    background: #fff;
    color: #1a73e8;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 4px;
}

.sacg-mapa {
    width: 100%;
    height: 640px;
    border-radius: 0.85rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.sacg-map-ctrl {
    margin: 10px;
    border: none;
    background: #fff;
    color: #1f2937;
    border-radius: 0.5rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.sacg-map-ctrl i {
    color: #1a73e8;
}

.sacg-map-ctrl:hover {
    background: #f3f4f6;
}

.sacg-logo-wrap {
    position: absolute;
    width: 46px;
    height: 46px;
    cursor: pointer;
}

.sacg-logo-base {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 5px;
    background: #fff;
    display: block;
}

.sacg-logo-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 10px;
    background: #d93025;
    color: #fff;
    border: 2px solid #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-sizing: border-box;
}
.sacg-base-node {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #1a73e8;
    box-shadow: rgba(0, 0, 0, 0.18) 0px 3px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sacg-base-node-texto {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
    font-weight: 700;
    font-size: 0.78rem;
    color: #1a73e8;
}

.sacg-pin-card {
    position: relative;
    min-width: 210px;
    max-width: 280px;
    font-family: inherit;
}
.sacg-pin-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    padding-right: 1.4rem;
}
.sacg-pin-card-titulo {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1f2937;
}
.sacg-pin-card-hora {
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 0.4rem;
}
.sacg-pin-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.4rem;
}
.sacg-pin-card-evento-titulo {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sacg-pin-card-recurso {
    font-size: 0.82rem;
    color: #374151;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sacg-pin-card-rodape {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.sacg-pin-card-rodape .sacg-pin-avatares {
    margin-bottom: 0;
}

.sacg-pin-btn-icone {
    padding: 0.35rem 0.5rem;
}

.sacg-pin-avatares {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sacg-pin-avatares img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    margin-left: -6px;
}

.sacg-pin-avatares img:first-child {
    margin-left: 0;
}

.sacg-pin-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #1a73e8;
    border-radius: 0.5rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.sacg-pin-btn:hover {
    background: #f3f4f6;
}

.sacg-base-card {
    position: relative;
    min-width: 240px;
    max-width: 280px;
}

.sacg-base-titulo {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-right: 1.4rem;
}

.sacg-base-titulo i {
    color: #1a73e8;
}

.sacg-base-lista {
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sacg-base-item {
    border: 1px solid #eef0f2;
    border-radius: 0.6rem;
    padding: 0.5rem 0.6rem;
}

.sacg-base-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.sacg-base-item-titulo {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sacg-base-item-sub {
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 0.4rem;
}
.sacg-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.sacg-badge.neutro {
    background: #eef0f2;
    color: #4b5563;
}

.sacg-badge.presencial {
    background: #e6f4ea;
    color: #1e8e3e;
}

.sacg-badge.online {
    background: #f3e8fd;
    color: #8430ce;
}

.sacg-badge.externo {
    background: #e8f0fe;
    color: #1a73e8;
}

.sacg-badge.interno {
    background: #fef0e6;
    color: #e8710a;
}

.sacg-badge.aguardando {
    background: #fef7e0;
    color: #b06000;
}

.sacg-badge.confirmada {
    background: #e6f4ea;
    color: #1e8e3e;
}

.sacg-badge.cancelada {
    background: #fce8e6;
    color: #d93025;
}

.sacg-tabela-wrapper {
    border: 1px solid #eef0f2;
    border-radius: 0.85rem;
    overflow: hidden;
}

.sacg-tabela {
    margin: 0;
    font-size: 0.86rem;
}

.sacg-tabela thead th {
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: none;
    border-bottom: 1px solid #eef0f2;
    padding: 0.85rem 1rem;
    white-space: nowrap;
}

.sacg-tabela tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-top: 1px solid #f1f3f5;
    color: #374151;
}

.sacg-tabela tbody tr:hover {
    background: #f9fafb;
}

.sacg-cidade-cel {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sacg-cidade-pin {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.sacg-cidade-nome {
    font-weight: 600;
    color: #1f2937;
}

.sacg-cidade-sub {
    font-size: 0.76rem;
    color: #9ca3af;
}

.sacg-tabela-avatares {
    display: flex;
    align-items: center;
}

.sacg-tabela-avatares img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    margin-left: -8px;
}

.sacg-tabela-avatares img:first-child {
    margin-left: 0;
}

.sacg-tabela-avatares .sacg-avatar-extra {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eef0f2;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    border: 2px solid #fff;
    margin-left: -8px;
}

.sacg-tabela-detalhes {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #1a73e8;
    border-radius: 0.5rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.sacg-tabela-detalhes:hover {
    background: #f3f4f6;
}

.sacg-tabela-vazio {
    text-align: center;
    color: #9ca3af;
    padding: 2.5rem 1rem;
}

.sacg-part-pop {
    position: fixed;
    z-index: 3000;
    width: 240px;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.7rem;
    box-shadow: rgba(0, 0, 0, 0.18) 0px 6px 24px;
    padding: 0.6rem;
}

.sacg-part-pop-titulo {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #eef0f2;
}

.sacg-part-pop-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.25rem;
}

.sacg-part-pop-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sacg-part-pop-item span {
    font-size: 0.82rem;
    color: #374151;
}

.sacg-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}

.sacg-stat-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid #eef0f2;
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
}

.sacg-stat-icone {
    width: 44px;
    height: 44px;
    border-radius: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sacg-stat-icone.azul {
    background: #e8f0fe;
    color: #1a73e8;
}

.sacg-stat-icone.verde {
    background: #e6f4ea;
    color: #1e8e3e;
}

.sacg-stat-icone.roxo {
    background: #f3e8fd;
    color: #8430ce;
}

.sacg-stat-valor {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.1;
}

.sacg-stat-label {
    font-size: 0.8rem;
    color: #6b7280;
}

.sacg-stat-data {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.1;
    padding: 0;
    cursor: pointer;
    width: 100%;
}

.sacg-stat-data:focus {
    outline: none;
}

.sacg-periodo-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.sacg-periodo-topo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sacg-periodo-topo > div:first-child {
    flex: 1;
    min-width: 0;
}

.sacg-periodo-calendario {
    border: 1px solid #eef0f2;
    background: #f8fafc;
    color: #6b7280;
    border-radius: 0.6rem;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.sacg-periodo-calendario:hover {
    background: #e8f0fe;
    color: #1a73e8;
    border-color: #d2e3fc;
}

.sacg-periodo-input-oculto {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.sacg-periodo-botoes {
    display: flex;
    gap: 0.35rem;
    flex-wrap: nowrap;
}

.sacg-periodo-btn {
    border: 1px solid #eef0f2;
    background: #fff;
    color: #6b7280;
    border-radius: 0.6rem;
    padding: 0.3rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.sacg-hora-data {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 0.1rem;
}

.sacg-periodo-btn:hover {
    background: #f1f5f9;
    color: #1f2937;
}

.sacg-periodo-btn.active {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
}

.sacg-skeleton {
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: sacgLoading 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes sacgLoading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@media (max-width: 1199px) {
    .sacg-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .sacg-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .sacg-mapa {
        height: 420px;
    }
    .sacg-header {
        flex-direction: column;
    }
}
.sacg-card-overlay {
    position: absolute;
    z-index: 50;
    background: #fff;
    border-radius: 0.85rem;
    box-shadow: rgba(0, 0, 0, 0.18) 0px 6px 24px;
    padding: 0.75rem;
}

.sacg-card-overlay-close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #6b7280;
    font-size: 0.75rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 6px;
}

    .sacg-card-overlay-close:hover {
        background: #f3f4f6;
        color: #1f2937;
    }

.sacg-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #e6f4ea;
    color: #1e8e3e;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.sacg-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1e8e3e;
    box-shadow: 0 0 0 0 rgba(30, 142, 62, 0.6);
    animation: sacgPulse 1.6s infinite;
}

@keyframes sacgPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 142, 62, 0.55);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(30, 142, 62, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 142, 62, 0);
    }
}

.sacg-rankings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}

.sacg-ranking-card {
    border: 1px solid #eef0f2;
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
}

.sacg-ranking-titulo {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.sacg-ranking-titulo i {
    color: #1a73e8;
}

.sacg-ranking-lista {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sacg-ranking-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sacg-ranking-posicao {
    width: 22px;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

.sacg-ranking-corpo {
    flex: 1;
    min-width: 0;
}

.sacg-ranking-nome-linha {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.sacg-ranking-nome {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sacg-ranking-valor {
    font-weight: 700;
    color: #1a73e8;
    flex-shrink: 0;
}

.sacg-ranking-barra-fundo {
    height: 6px;
    border-radius: 3px;
    background: #eef0f2;
    overflow: hidden;
}

.sacg-ranking-barra {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #1a73e8, #4a9eff);
}

.sacg-ranking-vazio {
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
    padding: 0.5rem 0;
}

@media (max-width: 1199px) {
    .sacg-rankings {
        grid-template-columns: 1fr;
    }
}

.sacg-sinergia-card {
    position: relative;
    min-width: 220px;
    max-width: 280px;
}

.sacg-sinergia-titulo {
    font-weight: 700;
    font-size: 0.9rem;
    color: #06b6d4;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
    padding-right: 1.1rem;
}

.sacg-sinergia-sub {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.55rem;
}

.sacg-sinergia-linha {
    font-size: 0.8rem;
    color: #374151;
    margin-bottom: 0.3rem;
}

.sacg-sinergia-btn {
    border: none;
    background: #06b6d4;
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.4rem;
    width: 100%;
}

.sacg-sinergia-btn:hover {
    background: #0891b2;
}

.sacg-meus-compromissos {
    border: 1px solid #eef0f2;
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
    background: #f8fafc;
}

.sacg-meus-compromissos-titulo {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.sacg-meus-compromissos-titulo i {
    color: #1a73e8;
}

.sacg-meus-compromissos-lista {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sacg-compromisso-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 0.7rem;
    padding: 0.6rem 0.8rem;
}

.sacg-compromisso-tempo {
    flex-shrink: 0;
    min-width: 82px;
    text-align: center;
    font-weight: 700;
    font-size: 0.76rem;
    color: #1a73e8;
    background: #e8f0fe;
    border-radius: 0.5rem;
    padding: 0.35rem 0.4rem;
}

.sacg-compromisso-tempo.urgente {
    color: #d93025;
    background: #fce8e6;
}

.sacg-compromisso-corpo {
    flex: 1;
    min-width: 0;
}

.sacg-compromisso-titulo {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sacg-compromisso-sub {
    font-size: 0.78rem;
    color: #6b7280;
}