/* Módulo POPs — painel QA / enterprise (escopo #tab-pops) */
#tab-pops .pops-dash {
    --pops-slate: #0f172a;
    --pops-border: rgba(15, 23, 42, 0.08);
    --pops-accent: #0369a1;
}

#tab-pops .pops-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid var(--pops-border);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
}

#tab-pops .pops-hero h2 {
    color: var(--pops-slate);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

#tab-pops .pops-kpi {
    border: 1px solid var(--pops-border);
    border-radius: 12px;
    background: #fff;
    padding: 0.85rem 1rem;
    height: 100%;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#tab-pops .pops-kpi .pops-kpi-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--pops-slate);
    line-height: 1.2;
}

#tab-pops .pops-kpi .pops-kpi-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

#tab-pops .pops-subnav .nav-link {
    color: #475569;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.65rem 0.5rem;
}

#tab-pops .pops-subnav .nav-link:hover {
    color: var(--pops-slate);
    border-bottom-color: rgba(3, 105, 161, 0.25);
}

#tab-pops .pops-subnav .nav-link.active {
    color: var(--pops-accent);
    background: transparent;
    border-bottom-color: var(--pops-accent);
}

#tab-pops .pops-template-card {
    border: 1px solid var(--pops-border);
    border-radius: 14px;
    background: #fff;
    height: 100%;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

#tab-pops .pops-template-card:hover {
    border-color: rgba(3, 105, 161, 0.22);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

#tab-pops .pops-template-card .pops-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.12), rgba(3, 105, 161, 0.12));
    color: #047857;
}

#tab-pops .pops-template-card h3 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--pops-slate);
    line-height: 1.35;
}

#tab-pops .pops-table-wrap {
    border: 1px solid var(--pops-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

#tab-pops .pops-table-wrap table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

#tab-pops .pops-table-wrap thead th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--pops-border);
    white-space: nowrap;
}

#tab-pops .pops-empty {
    border: 1px dashed rgba(15, 23, 42, 0.15);
    border-radius: 12px;
    background: #fafbfc;
    padding: 2rem 1.5rem;
    text-align: center;
}

#tab-pops .pops-toast-host {
    position: fixed;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
    max-width: min(420px, 92vw);
}

@media (min-width: 992px) {
    #tab-pops .pops-toast-host {
        bottom: 1.5rem;
        left: auto;
        right: 1.5rem;
        transform: none;
    }
}

/* ——— Enterprise estendido ——— */
#tab-pops .pops-enterprise {
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
}

#tab-pops .pops-page-head .pops-toolbar .btn {
    white-space: nowrap;
}

#tab-pops .pops-eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
}

#tab-pops .pops-page-title {
    color: var(--pops-slate, #0f172a);
    letter-spacing: -0.02em;
}

#tab-pops .pops-kpi-grid .pops-kpi {
    position: relative;
    overflow: hidden;
}

#tab-pops .pops-kpi-hint {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    line-height: 1.25;
}

#tab-pops .pops-kpi-accent {
    border-color: rgba(4, 120, 87, 0.25);
    background: linear-gradient(135deg, #fff 0%, rgba(16, 185, 129, 0.06) 100%);
}

#tab-pops .pops-subnav-scroll {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

#tab-pops .pops-subnav-scroll .nav-item {
    flex-shrink: 0;
}

#tab-pops .pops-table-docs thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 1px 0 var(--pops-border, rgba(15, 23, 42, 0.08));
}

#tab-pops .pops-shortcut {
    border-radius: 10px !important;
    padding: 0.65rem 0.85rem;
    font-weight: 600;
    font-size: 0.875rem;
}

#tab-pops .pops-shortcut:hover {
    background: #f8fafc !important;
}

#tab-pops .pops-approval-card {
    border-radius: 12px;
}

#tab-pops .pops-form-accordion .accordion-button {
    font-size: 0.9rem;
    font-weight: 700;
}

#tab-pops .pops-actions-menu {
    min-width: 220px;
    font-size: 0.875rem;
}

#tab-pops .pops-row-actions .dropdown-toggle::after {
    margin-left: 0.35em;
}

#tab-pops .pops-official-doc {
    border-left: 4px solid #047857;
    background: linear-gradient(135deg, #fff 0%, rgba(4, 120, 87, 0.04) 100%);
}

#tab-pops .pops-rich-editor-card .tox-tinymce {
    border-radius: 0.5rem;
    border-color: rgba(15, 23, 42, 0.12);
}
