/*
Sistema Virtunet , criado para gerenciar clientes, licenças e outras funções da virtunet.
Criado por: Elias Miguel de Oliveira.
Cuiabá – Mato Grosso – Brasil – 12/08/2026
Virtunet – www.virtunet.com.br – todos direitos reservados.
Jesus é o Único senhor salvador, morreu por todos nos para nos da a salvação, Deus seja louvado eternamente.
*/

:root {
    --vn-bg: #F7F9F7;
    --vn-card: #ffffff;
    --vn-green-1: #075407;
    --vn-green-2: #056A05;
    --vn-green-3: #057505;
    --vn-green-4: #047E04;
    --vn-green-5: #048904;
    --vn-text: #0F0F0F;
    --vn-muted: #454545;
    --vn-border: #e3ebe3;
    --vn-sidebar-w: 260px;
    --vn-topbar-h: 64px;
    --vn-shadow: 0 2px 12px rgba(7, 84, 7, 0.06);
    --vn-radius: 12px;
    --vn-status-ativo: #057505;
    --vn-status-inativo: #dc3545;
    --vn-status-expirado: #fd7e14;
    --vn-status-bloqueado: #8B0000;
    --vn-pastel-1: #eef7ee;
    --vn-pastel-2: #eef3f8;
    --vn-pastel-3: #f8f3ee;
    --vn-pastel-4: #f3eef8;
    --vn-pastel-5: #eef8f5;
    --vn-pastel-6: #f8eeee;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--vn-bg);
    color: var(--vn-text);
}

a {
    color: var(--vn-green-2);
    text-decoration: none;
}

a:hover {
    color: var(--vn-green-1);
}

/* Layout shell */
.vn-shell {
    display: flex;
    min-height: 100vh;
    background: var(--vn-bg);
}

.vn-sidebar {
    width: var(--vn-sidebar-w);
    background: #fff;
    border-right: 1px solid var(--vn-border);
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease;
}

.vn-sidebar-brand {
    padding: 1.25rem 1rem 1rem;
    border-bottom: 1px solid var(--vn-border);
    text-align: center;
}

.vn-sidebar-brand img {
    max-width: 180px;
    height: auto;
}

.vn-sidebar-nav {
    padding: 1rem .75rem;
    overflow-y: auto;
    flex: 1;
}

.vn-nav-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .9rem;
    margin-bottom: .25rem;
    border-radius: 10px;
    color: var(--vn-muted);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.vn-nav-link i {
    font-size: 1.1rem;
    width: 1.25rem;
    text-align: center;
}

.vn-nav-link:hover {
    background: var(--vn-pastel-1);
    color: var(--vn-green-1);
}

.vn-nav-link.active {
    background: var(--vn-pastel-1);
    color: var(--vn-green-1);
    border-left-color: var(--vn-green-3);
    font-weight: 600;
}

.vn-main {
    margin-left: var(--vn-sidebar-w);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.vn-topbar {
    height: var(--vn-topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--vn-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.vn-content {
    padding: 1.25rem;
}

.vn-page-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--vn-text);
    margin: 0;
}

.vn-page-subtitle {
    color: var(--vn-muted);
    font-size: .9rem;
    margin: .15rem 0 0;
}

/* Cards */
.vn-card {
    background: var(--vn-card);
    border: 1px solid var(--vn-border);
    border-radius: var(--vn-radius);
    box-shadow: var(--vn-shadow);
}

.vn-card-header {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--vn-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.vn-welcome-head {
    flex-wrap: nowrap;
}

.vn-welcome-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--vn-green-3);
    color: var(--vn-green-2);
    background: transparent;
    text-decoration: none;
    flex-shrink: 0;
    margin-left: auto;
}

.vn-welcome-live:hover,
.vn-welcome-live:focus {
    background: var(--vn-green-3);
    border-color: var(--vn-green-3);
    color: #fff;
}

.vn-welcome-live i {
    font-size: .95rem;
    line-height: 1;
}

.vn-card-body {
    padding: 1.15rem;
}

.vn-stat-card {
    background: var(--vn-card);
    border: 1px solid var(--vn-border);
    border-radius: var(--vn-radius);
    box-shadow: var(--vn-shadow);
    padding: 1.15rem;
    border-top: 3px solid var(--vn-green-3);
}

.vn-stat-label {
    color: var(--vn-muted);
    font-size: .85rem;
    margin-bottom: .35rem;
}

.vn-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--vn-text);
}

/* Buttons */
.btn-vn {
    background: var(--vn-green-3);
    border-color: var(--vn-green-3);
    color: #fff;
}

.btn-vn:hover,
.btn-vn:focus {
    background: var(--vn-green-1);
    border-color: var(--vn-green-1);
    color: #fff;
}

.btn-outline-vn {
    color: var(--vn-green-2);
    border-color: var(--vn-green-3);
    background: transparent;
}

.btn-outline-vn:hover,
.btn-outline-vn:focus {
    background: var(--vn-green-3);
    border-color: var(--vn-green-3);
    color: #fff;
}

.btn-soft {
    background: var(--vn-pastel-1);
    color: var(--vn-green-1);
    border: 1px solid var(--vn-border);
}

.btn-soft:hover {
    background: #e2f0e2;
    color: var(--vn-green-1);
}

/* Forms */
.form-label {
    font-weight: 600;
    color: var(--vn-text);
    font-size: .9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--vn-green-4);
    box-shadow: 0 0 0 .2rem rgba(5, 117, 5, 0.15);
}

.form-text,
.text-muted {
    color: var(--vn-muted) !important;
}

/* Tables */
.vn-table {
    margin-bottom: 0;
}

.vn-table thead th {
    background: #f3f7f3;
    color: var(--vn-muted);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 1px solid var(--vn-border);
    white-space: nowrap;
}

.vn-table td {
    vertical-align: middle;
    color: var(--vn-text);
    border-color: var(--vn-border);
}

.vn-table tbody tr:hover {
    background: #fafcfa;
}

/* Status bullets */
.vn-status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    font-size: .875rem;
}

.vn-status-dot {
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    display: inline-block;
    background: #adb5bd;
}

.vn-status-ativo .vn-status-dot,
.vn-status-Ativo .vn-status-dot { background: var(--vn-status-ativo) !important; }
.vn-status-inativo .vn-status-dot,
.vn-status-Inativo .vn-status-dot { background: var(--vn-status-inativo) !important; }
.vn-status-expirado .vn-status-dot,
.vn-status-Expirado .vn-status-dot { background: var(--vn-status-expirado) !important; }
.vn-status-bloqueado .vn-status-dot,
.vn-status-Bloqueado .vn-status-dot { background: var(--vn-status-bloqueado) !important; }

.vn-status-ativo,
.vn-status-Ativo { color: var(--vn-status-ativo); }
.vn-status-inativo,
.vn-status-Inativo { color: var(--vn-status-inativo); }
.vn-status-expirado,
.vn-status-Expirado { color: var(--vn-status-expirado); }
.vn-status-bloqueado,
.vn-status-Bloqueado { color: var(--vn-status-bloqueado); }

/* License cards */
.vn-licenca-card {
    border: 1px solid var(--vn-border);
    border-radius: var(--vn-radius);
    box-shadow: var(--vn-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vn-licenca-card .vn-card-body {
    flex: 1;
}

.vn-licenca-pastel-0 { background: var(--vn-pastel-1); }
.vn-licenca-pastel-1 { background: var(--vn-pastel-2); }
.vn-licenca-pastel-2 { background: var(--vn-pastel-3); }
.vn-licenca-pastel-3 { background: var(--vn-pastel-4); }
.vn-licenca-pastel-4 { background: var(--vn-pastel-5); }
.vn-licenca-pastel-5 { background: var(--vn-pastel-6); }

.vn-licenca-meta {
    font-size: .85rem;
    color: var(--vn-muted);
}

.vn-licenca-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--vn-text);
    margin-bottom: .5rem;
}

.vn-licenca-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .85rem 1.15rem;
    border-top: 1px solid rgba(0,0,0,.05);
    background: rgba(255,255,255,.55);
}

/* Guest / Login */
.vn-guest-body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--vn-bg);
    padding: 1.5rem;
    overflow: hidden;
}

/* Marca d'água no FUNDO da página (atrás de todo o conteúdo) */
.vn-guest-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: transparent;
    background-image: var(--vn-login-logo-url);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: min(90vw, 1100px);
    opacity: 0.18;
}

.vn-guest-body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, rgba(4, 137, 4, 0.06), transparent 42%),
        radial-gradient(circle at bottom left, rgba(7, 84, 7, 0.05), transparent 38%);
}

.vn-login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid var(--vn-border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(7, 84, 7, 0.08);
    padding: 2rem 1.75rem;
}

.vn-login-logo {
    display: block;
    max-width: 220px;
    margin: 0 auto 1.25rem;
}

.vn-login-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: .25rem;
}

.vn-login-sub {
    text-align: center;
    color: var(--vn-muted);
    margin-bottom: 1.5rem;
    font-size: .9rem;
}

/* Filters */
.vn-filters .form-control,
.vn-filters .form-select {
    min-height: 40px;
}

/* Selected chips */
.vn-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--vn-pastel-1);
    border: 1px solid var(--vn-border);
    border-radius: 999px;
    padding: .25rem .65rem;
    margin: .2rem;
    font-size: .85rem;
}

.vn-chip button {
    border: 0;
    background: transparent;
    color: var(--vn-muted);
    line-height: 1;
    padding: 0;
}

/* Mobile */
.vn-sidebar-toggle {
    border: 1px solid var(--vn-border);
    background: #fff;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
}

.vn-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, .35);
    z-index: 1035;
}

@media (max-width: 991.98px) {
    .vn-sidebar {
        transform: translateX(-100%);
    }

    .vn-sidebar.open {
        transform: translateX(0);
    }

    .vn-sidebar-backdrop.show {
        display: block;
    }

    .vn-main {
        margin-left: 0;
    }

    .vn-sidebar-toggle {
        display: inline-flex;
    }
}

/* Utilities */
.vn-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: .9rem;
}

.vn-copy-toast {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 2000;
    background: var(--vn-green-1);
    color: #fff;
    padding: .65rem 1rem;
    border-radius: 8px;
    box-shadow: var(--vn-shadow);
    display: none;
}

.vn-copy-toast.show {
    display: block;
}

.pagination .page-item.active .page-link {
    background-color: var(--vn-green-3);
    border-color: var(--vn-green-3);
}

.pagination .page-link {
    color: var(--vn-green-2);
}

.alert {
    border-radius: 10px;
}

/* Faturas — bolinha + cores por status */
.vn-status .vn-status-dot {
    flex-shrink: 0;
    width: .7rem;
    height: .7rem;
    min-width: .7rem;
    min-height: .7rem;
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.vn-status-em-aberto .vn-status-dot,
.vn-status-Em-aberto .vn-status-dot { background: #6c757d !important; }
.vn-status-pago .vn-status-dot,
.vn-status-Pago .vn-status-dot { background: #057505 !important; }
.vn-status-atrasada .vn-status-dot,
.vn-status-Atrasada .vn-status-dot { background: #dc3545 !important; }
.vn-status-cancelada .vn-status-dot,
.vn-status-Cancelada .vn-status-dot { background: #f0ad4e !important; }

.vn-status-em-aberto,
.vn-status-Em-aberto { color: #495057; }
.vn-status-pago,
.vn-status-Pago { color: #057505; }
.vn-status-atrasada,
.vn-status-Atrasada { color: #dc3545; }
.vn-status-cancelada,
.vn-status-Cancelada { color: #c78a1a; }

.vn-qtd-item {
    border: 1px solid var(--vn-border);
    border-radius: 10px;
    padding: .75rem 1rem;
    background: #fff;
    margin-bottom: .5rem;
}

.vn-qtd-item.is-latest {
    border-color: var(--vn-green-3);
    background: #f3faf3;
    box-shadow: 0 0 0 1px rgba(5, 117, 5, 0.12);
}

.vn-section-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.5rem 0 1rem;
    color: var(--vn-green-1);
    font-weight: 700;
}

.vn-section-divider::before,
.vn-section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--vn-border);
}

.vn-extra-bloco {
    border: 1px solid var(--vn-border);
    border-radius: 10px;
    padding: 1rem 1rem .5rem;
    background: var(--vn-pastel-1);
}

.vn-extra-bloco .vn-qtd-item {
    background: #fff;
}

.vn-cred-item {
    padding: .85rem 1rem;
}

.vn-cred-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-bottom: .7rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid var(--vn-border);
}

.vn-cred-kicker {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--vn-green-3);
    margin-bottom: .1rem;
}

.vn-cred-title {
    font-weight: 700;
    color: var(--vn-green-1);
    font-size: .98rem;
    word-break: break-word;
}

.vn-cred-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: .4rem .9rem;
    align-items: center;
}

.vn-cred-row {
    display: contents;
}

.vn-cred-label {
    color: var(--vn-muted);
    font-size: .8rem;
    font-weight: 600;
}

.vn-cred-value {
    color: var(--vn-text);
    font-size: .9rem;
    word-break: break-word;
}

.vn-cred-senha-txt {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    letter-spacing: .08em;
}

@media (max-width: 575.98px) {
    .vn-cred-grid {
        grid-template-columns: 1fr;
        gap: .15rem 0 .55rem;
    }
}

/* Dashboard — lista compacta de faturas */
.vn-dash-fatura {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .42rem 1rem;
    border-bottom: 1px solid var(--vn-border);
    color: var(--vn-text);
    text-decoration: none;
    transition: background .15s ease;
    line-height: 1.25;
}

.vn-dash-fatura:last-child {
    border-bottom: none;
}

.vn-dash-fatura:hover {
    background: var(--vn-pastel-1);
    color: var(--vn-text);
}

.vn-dash-fatura .vn-status {
    margin: 0;
    flex-shrink: 0;
}

.vn-dash-fatura .vn-status-dot {
    width: .62rem;
    height: .62rem;
    min-width: .62rem;
    min-height: .62rem;
}

.vn-dash-fatura-info {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: .45rem;
    min-width: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
}

.vn-dash-fatura-valor {
    font-size: .92rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--vn-text);
    line-height: 1.25;
    flex-shrink: 0;
    min-width: 5.4rem;
}

.vn-dash-fatura-valor.is-vencida {
    color: var(--vn-status-inativo);
    font-weight: 700;
}

.vn-dash-fatura-valor.is-alerta-30 {
    color: var(--vn-status-expirado);
    font-weight: 700;
}

.vn-dash-fatura-sep {
    color: var(--vn-border);
    font-weight: 700;
    flex-shrink: 0;
    user-select: none;
}

.vn-dash-fatura-meta {
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.25;
    flex-shrink: 0;
}

.vn-dash-fatura-site {
    font-size: .84rem;
    color: var(--vn-muted);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

/* Dashboard — atalhos externos */
.vn-atalhos-externos {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: .55rem;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--vn-border);
}

.vn-atalho-ext {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
    color: var(--vn-text);
}

.vn-atalho-ext-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 58px;
    padding: .35rem .3rem;
    border-radius: 10px;
    background: transparent;
    transition: box-shadow .18s ease, transform .18s ease;
}

.vn-atalho-ext-frame img {
    max-width: 100%;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
}

.vn-atalho-ext:hover {
    color: var(--vn-green-1);
}

.vn-atalho-ext:hover .vn-atalho-ext-frame {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(7, 84, 7, 0.18), 0 2px 6px rgba(15, 15, 15, 0.08);
}

.vn-atalho-ext-titulo {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--vn-muted);
    min-height: 1.7rem;
}

.vn-atalho-ext:hover .vn-atalho-ext-titulo {
    color: var(--vn-green-1);
}

/* Central de Monitoramento */
.vn-mon-card {
    background: #fff;
    border: 1px solid var(--vn-border);
    border-radius: var(--vn-radius);
    box-shadow: var(--vn-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.vn-mon-card.is-on {
    background: #eef6ee;
    border-color: #c3ddc3;
}

.vn-mon-card.is-off {
    background: #f0e4e6;
    border-color: #c9a0a6;
}

.vn-mon-card.is-idle {
    background: #fff;
}

.vn-mon-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.1rem 0;
}

.vn-mon-onoff {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
}

.vn-mon-card.is-on .vn-mon-onoff { color: #3d8b4a; }
.vn-mon-card.is-off .vn-mon-onoff { color: #8a3d4a; }
.vn-mon-card.is-idle .vn-mon-onoff { color: var(--vn-muted); }

.vn-mon-title {
    font-weight: 700;
    padding: .45rem 1.1rem 0;
    color: var(--vn-text);
}

.vn-mon-url {
    padding: .15rem 1.1rem 0;
    font-size: .8rem;
    color: var(--vn-muted);
    word-break: break-all;
}

.vn-mon-meta {
    display: flex;
    gap: .75rem;
    align-items: center;
    padding: .45rem 1.1rem 0;
    font-size: .8rem;
    color: var(--vn-muted);
}

.vn-mon-dados {
    padding: .65rem 1.1rem 1rem;
    font-size: .82rem;
    color: var(--vn-text);
    display: flex;
    flex-direction: column;
    gap: .2rem;
    flex: 1;
}

.vn-mon-alertas {
    color: #8a5a28;
    font-size: .78rem;
}

.vn-mon-ssl.is-atencao { color: #8a5a28; font-weight: 600; }
.vn-mon-ssl.is-vencido { color: #8a3d4a; font-weight: 700; }

.vn-mon-vel.is-excelente { color: #3d8b4a; font-weight: 700; }
.vn-mon-vel.is-bom { color: #5a8f68; font-weight: 700; }
.vn-mon-vel.is-atencao { color: #c49a3c; font-weight: 700; }
.vn-mon-vel.is-lento { color: #8a3d4a; font-weight: 700; }

.vn-mon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .65rem 1.1rem 1rem;
    border-top: 1px solid rgba(0,0,0,.06);
}

/* Monitoramento ao vivo (wallboard) */
.vn-live-body {
    background: var(--vn-bg);
    color: var(--vn-text);
    min-height: 100vh;
    margin: 0;
}
.vn-live {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.vn-live-top {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--vn-border);
    box-shadow: var(--vn-shadow);
}
.vn-live-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}
.vn-live-brand img {
    height: 38px;
    width: auto;
}
.vn-live-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--vn-green-1);
    line-height: 1.2;
}
.vn-live-sub {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    color: var(--vn-muted);
    flex-wrap: wrap;
}
.vn-live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vn-green-3);
    box-shadow: 0 0 0 0 rgba(5, 117, 5, .45);
    animation: vn-live-dot 1.8s ease-out infinite;
}
.vn-live-clock {
    font-variant-numeric: tabular-nums;
    color: var(--vn-text);
    font-weight: 600;
}
.vn-live-toolbar {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}
.vn-live-refresh {
    display: flex;
    align-items: center;
    gap: .3rem;
    background: var(--vn-pastel-1);
    border: 1px solid var(--vn-border);
    border-radius: 8px;
    padding: .15rem .4rem .15rem .5rem;
    color: var(--vn-green-1);
    font-size: .8rem;
}
.vn-live-refresh select {
    border: 0;
    background: transparent;
    color: var(--vn-text);
    font-size: .8rem;
    padding: .15rem .1rem;
    max-width: 8.4rem;
    cursor: pointer;
}
.vn-live-refresh select:focus {
    outline: none;
}
.vn-live-iconbtn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--vn-border);
    background: #fff;
    color: var(--vn-green-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.vn-live-iconbtn:hover {
    background: var(--vn-pastel-1);
    border-color: var(--vn-green-3);
}
.vn-live-iconbtn.is-sair {
    color: #8a3d4a;
}
.vn-live-iconbtn.is-sair:hover {
    background: #f8eeee;
    border-color: #c9a0a6;
}
.vn-live-progress {
    height: 3px;
    background: #e8efe8;
}
.vn-live-progress span {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--vn-green-4);
    transition: width .9s linear;
}
.vn-live-status {
    margin: .75rem 1rem 0;
    padding: .55rem .8rem;
    border-radius: 8px;
    font-size: .85rem;
    background: var(--vn-pastel-3);
    color: #8a5a28;
    border: 1px solid #ead9c4;
}
.vn-live-status.is-erro {
    background: #f0e4e6;
    color: #8a3d4a;
    border-color: #c9a0a6;
}
.vn-live-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .75rem;
    padding: .9rem 1rem 0;
}
.vn-live-kpi {
    background: #fff;
    border: 1px solid var(--vn-border);
    border-radius: var(--vn-radius);
    box-shadow: var(--vn-shadow);
    padding: .7rem .85rem;
    display: flex;
    align-items: center;
    gap: .7rem;
}
.vn-live-kpi i {
    font-size: 1.25rem;
    color: var(--vn-green-3);
}
.vn-live-kpi strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
    color: var(--vn-text);
}
.vn-live-kpi span {
    font-size: .75rem;
    color: var(--vn-muted);
}
.vn-live-kpi.is-ok { background: #eef6ee; border-color: #c3ddc3; }
.vn-live-kpi.is-ok i, .vn-live-kpi.is-ok strong { color: #3d8b4a; }
.vn-live-kpi.is-bad { background: #f0e4e6; border-color: #c9a0a6; }
.vn-live-kpi.is-bad i, .vn-live-kpi.is-bad strong { color: #8a3d4a; }
.vn-live-kpi.is-warn { background: #f8f3ee; border-color: #e4d3bf; }
.vn-live-kpi.is-warn i, .vn-live-kpi.is-warn strong { color: #8a5a28; }
.vn-live-kpi.is-idle { background: #fff; }
.vn-live-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: .65rem;
    padding: .75rem .75rem 1.1rem;
    align-items: stretch;
    flex: 0 0 auto;
}
.vn-live-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--vn-muted);
    background: #fff;
    border: 1px dashed var(--vn-border);
    border-radius: var(--vn-radius);
    padding: 2.5rem 1rem;
}
.vn-live-card {
    background: #fff;
    border: 1px solid var(--vn-border);
    border-radius: 10px;
    box-shadow: var(--vn-shadow);
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: .7rem .65rem .75rem;
    box-sizing: border-box;
}
.vn-live-card.is-on {
    background: #eef6ee;
    border-color: #c3ddc3;
}
.vn-live-card.is-off {
    background: #f0e4e6;
    border-color: #c9a0a6;
}
.vn-live-card.is-idle {
    background: #fff;
}
.vn-live-onoff {
    text-align: center;
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
    padding: .15rem .2rem .2rem;
}
.vn-live-card.is-on .vn-live-onoff { color: #3d8b4a; }
.vn-live-card.is-off .vn-live-onoff { color: #dc2626; }
.vn-live-card.is-idle .vn-live-onoff { color: var(--vn-muted); }
.vn-live-card-title {
    text-align: center;
    font-weight: 700;
    font-size: .78rem;
    line-height: 1.25;
    padding: .2rem .15rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vn-live-card-url {
    text-align: center;
    font-size: .68rem;
    line-height: 1.25;
    color: var(--vn-muted);
    padding: .15rem .15rem .35rem;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vn-live-card-body {
    padding: 0;
    font-size: .72rem;
    display: flex;
    flex-direction: column;
    gap: .18rem;
    text-align: left;
}
.vn-live-tempo {
    font-size: .72rem;
    font-weight: 400;
    line-height: 1.3;
}
.vn-live-tempo.is-excelente { color: #3d8b4a; }
.vn-live-tempo.is-bom { color: #5a8f68; }
.vn-live-tempo.is-atencao { color: #c49a3c; }
.vn-live-tempo.is-lento { color: #dc2626; }
.vn-live-ssl {
    font-size: .72rem;
}
.vn-live-card-foot {
    margin-top: 0;
    color: var(--vn-muted);
    font-size: .72rem;
}
.vn-live-code {
    align-self: flex-start;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .7rem;
    background: #fff;
    border: 1px solid var(--vn-border);
    border-radius: 6px;
    padding: .12rem .4rem;
    margin-top: .15rem;
}
.vn-live-foot {
    margin: 0;
    padding: 0 1rem 1rem;
    font-size: .78rem;
    color: var(--vn-muted);
}
@keyframes vn-live-dot {
    0% { box-shadow: 0 0 0 0 rgba(5, 117, 5, .4); }
    70% { box-shadow: 0 0 0 8px rgba(5, 117, 5, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 117, 5, 0); }
}
@media (max-width: 1400px) {
    .vn-live-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .vn-live-top { flex-wrap: wrap; }
    .vn-live-toolbar { margin-left: auto; }
    .vn-live-brand img { height: 32px; }
    .vn-live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .vn-live-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .vn-live-pulse { animation: none; }
    .vn-live-progress span { transition: none; }
}

/* Business Intelligence */
.vn-bi-mod {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.1rem 1.15rem;
    background: var(--vn-card);
    border: 1px solid var(--vn-border);
    border-radius: var(--vn-radius);
    box-shadow: var(--vn-shadow);
    text-decoration: none;
    color: var(--vn-text);
    min-height: 108px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.vn-bi-mod:hover,
.vn-bi-mod:focus {
    border-color: var(--vn-green-3);
    box-shadow: 0 4px 16px rgba(7, 84, 7, .1);
    color: var(--vn-text);
}
.vn-bi-mod-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--vn-pastel-1);
    color: var(--vn-green-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.vn-bi-mod-body {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}
.vn-bi-mod-body strong {
    color: var(--vn-green-1);
    font-size: 1.05rem;
}
.vn-bi-mod-body span {
    color: var(--vn-muted);
    font-size: .85rem;
    line-height: 1.35;
}
.vn-bi-mod-go {
    margin-left: auto;
    color: var(--vn-green-3);
    font-size: 1.1rem;
}
.vn-bi-kpi .vn-stat-value {
    font-size: 1.35rem;
    word-break: break-word;
}
.vn-bi-var {
    display: inline-block;
    margin-top: .35rem;
    font-size: .75rem;
    font-weight: 600;
}
.vn-bi-var.is-alta { color: var(--vn-green-2); }
.vn-bi-var.is-baixa { color: #dc2626; }
.vn-bi-var.is-igual { color: var(--vn-muted); }
.vn-bi-chart-wrap {
    position: relative;
    min-height: 220px;
}
.vn-bi-chart-wrap canvas {
    max-height: 280px;
}
.vn-bi-empty {
    color: var(--vn-muted);
    font-size: .9rem;
    padding: 2rem 0;
    text-align: center;
}
#vnBiFiltros.is-loading {
    opacity: .72;
    pointer-events: none;
}
@media (max-width: 768px) {
    .vn-bi-kpi .vn-stat-value { font-size: 1.1rem; }
    .vn-bi-chart-wrap { min-height: 200px; }
}

.vn-site-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--vn-border);
    border-radius: 8px;
    padding: 2px;
}
.vn-editor-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .4rem;
}
.vn-editor-bar button {
    border: 1px solid var(--vn-border);
    background: var(--vn-pastel-1);
    color: var(--vn-green-1);
    border-radius: 6px;
    padding: .2rem .55rem;
    font-size: .85rem;
}
.vn-editor {
    min-height: 220px;
    border: 1px solid var(--vn-border);
    border-radius: 8px;
    padding: .75rem 1rem;
    background: #fff;
}
