/* Supervisor alerts: use the same palette and fixed header as Results. */
.alerts-header {
    position: fixed; z-index: 999; top: 0; left: 70px; right: 0;
    min-height: 100px; padding: 20px 30px; color: #fff;
    background: linear-gradient(135deg, #1c1565 0%, #5b84f7 100%);
    box-shadow: 0 2px 5px rgba(28, 21, 101, .13);
}
.alerts-header-logo { height: 60px; max-width: 150px; object-fit: contain; }
.alerts-page { padding: 126px 30px 36px; max-width: 1680px; margin: 0 auto; }
.alerts-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.alerts-intro h3 { font-weight: 700; color: #242148; margin: 0 0 5px; }
.alerts-intro p { color: #68738b; margin: 0; }
.alerts-filter-panel, .alerts-content-panel {
    background: #fff; border: 1px solid #e5eaf2; border-radius: 12px;
    box-shadow: 0 2px 12px rgba(31, 42, 78, .045);
}
.alerts-filter-panel { padding: 18px 20px; margin-bottom: 18px; }
.alerts-filter-title { font-size: 13px; font-weight: 700; color: #252f4e; margin-bottom: 10px; }
.alerts-filter-panel label { font-size: 12px; font-weight: 600; color: #66728a; margin-bottom: 5px; }
.alerts-filter-panel .Select-control { border-color: #dce3ee; border-radius: 7px; }
.alerts-metric { height: 100%; background: #fff; border: 1px solid #e5eaf2; border-radius: 11px; padding: 17px 18px; box-shadow: 0 2px 10px rgba(31,42,78,.035); }
.alerts-metric-icon { width: 39px; height: 39px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.alerts-metric-label { color: #68738b; font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.alerts-metric-value { color: #1c2540; font-size: 25px; font-weight: 700; line-height: 1; }
.alerts-metric-desc { font-size: 11px; color: #8792a4; margin-top: 6px; }
.alerts-offensive-alert { margin: 14px 0 0; font-size: 13px; }
.alerts-offensive-alert summary { cursor: pointer; }
.alerts-offensive-quote { margin: 2px 0 8px; }
.alerts-period { color: #7c8799; font-size: 12px; margin: 13px 2px 17px; }
.alerts-content-panel { overflow: hidden; }
.alerts-content-panel .nav-tabs { padding: 4px 20px 0; border-bottom: 1px solid #e8edf5; background: #fff; justify-content: flex-end; }
.alerts-content-panel .nav-link { padding: 14px 18px; color: #78839a; border: 0; border-bottom: 3px solid transparent; font-weight: 600; font-size: 14px; background: transparent; }
.alerts-content-panel .nav-link.active { color: #33277c; border-bottom-color: #5b84f7; }
.alerts-content-panel .nav-link.alerts-tab-icon { position: relative; min-width: 64px; text-align: center; font-size: 0; }
.alerts-tab-icon::before { font-family: bootstrap-icons !important; font-size: 21px; line-height: 1; }
.alerts-tab-agents::before { content: '\f4cf'; }
.alerts-tab-voicemails::before { content: '\f609'; }
.alerts-tab-icon:hover::after, .alerts-tab-icon:focus-visible::after {
    position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%); z-index: 2;
    padding: 4px 8px; border-radius: 4px; background: #263454; color: #fff; font-size: 12px; white-space: nowrap;
}
.alerts-tab-agents:hover::after, .alerts-tab-agents:focus-visible::after { content: 'Agentes'; }
.alerts-tab-voicemails:hover::after, .alerts-tab-voicemails:focus-visible::after { content: 'Buzones'; }
.alerts-section-heading { padding: 20px 22px 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.alerts-section-heading h5 { color: #252f4e; font-size: 16px; font-weight: 700; margin: 0 0 3px; }
.alerts-section-heading p { color: #8792a4; font-size: 12px; margin: 0; }
.alerts-table-scroll { max-height: 800px; overflow: auto; }
.alerts-table { margin-bottom: 0; vertical-align: middle; min-width: 820px; }
.alerts-table thead { position: sticky; top: 0; z-index: 5; }
.alerts-table thead th { background: #f8f9fa; color: #252f4e; font-size: 14px; border-color: #dee2e6; white-space: nowrap; }
.alerts-table th, .alerts-table td { padding: 12px 14px; vertical-align: middle; }
.alerts-table td { color: #27334a; font-size: 14px; border-color: #dee2e6; }
.alerts-table-sort, .alerts-table-filter { border: 0; background: transparent; padding: 0; color: #5b84f7; font: inherit; font-weight: 700; cursor: pointer; }
.alerts-table-sort:not(.active) { color: #252f4e; }
.alerts-table-sort.active, .alerts-table-filter { color: #5b84f7; }
.alerts-table-filter { margin-left: 8px; }
.alerts-table-filter i { font-size: 12px; }
.alerts-context-row th { padding: 9px 14px; }
.alerts-table-context { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.alerts-table-context .alerts-table-filter { margin: 0; font-size: 12px; }
.alerts-clickable-row { position: relative; cursor: pointer; }
.alerts-clickable-row:hover td { --bs-table-accent-bg: #eaf0fb; }
.alerts-stretched-link { color: inherit; text-decoration: none; }
.alerts-stretched-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.alerts-stretched-link:focus-visible { outline: 2px solid #5b84f7; outline-offset: 3px; }
.alerts-actions-cell { position: relative; z-index: 2; min-width: 240px; cursor: default; }
.alerts-actions-cell:has(.Select.is-open) { z-index: 10; }
.alerts-actions .Select.is-open, .alerts-actions .Select-menu-outer { z-index: 11; }
.alerts-evidence { margin-top: 8px; font-size: 12px; }
.alerts-evidence summary { color: #9a5623; cursor: pointer; font-weight: 600; }
.alerts-evidence-item { margin-top: 6px; max-width: 340px; color: #536076; }
.alerts-table .badge.alerts-grade { font-size: 20px; font-weight: 700; }
.alerts-grade-missing { color: #8792a4; }
.alerts-rank-cell { color: #65728c; font-weight: 700; }
.alerts-agent-card { display: flex; align-items: center; gap: 20px; padding: 18px 22px; border-bottom: 1px solid #e5eaf2; }
.alerts-agent-card-info { color: #38445d; line-height: 1.7; }
.alerts-agent-name { font-weight: 700; color: #262f49; }
.alerts-detail-text { color: #8792a4; font-size: 11px; }
.alerts-chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 700; }
.alerts-chip-low { color: #aa483f; background: #fff0ee; }
.alerts-chip-recurrent { color: #664db0; background: #f0ecff; }
.alerts-brand { font-weight: 600; padding: 4px 8px; border-radius: 6px; font-size: 12px; }
.alerts-actions { display: flex; align-items: flex-start; gap: 6px; }
.alerts-actions .Select { min-width: 140px; font-size: 12px; }
.alerts-actions button { white-space: nowrap; }
.alerts-empty { text-align: center; padding: 44px 20px; color: #7c8799; }
.alerts-empty i { font-size: 25px; color: #a7b6cf; }
.alerts-pagination { padding: 15px 20px; border-top: 1px solid #edf0f6; }
.alerts-sort-control { width: 280px; max-width: 100%; padding: 18px 22px 0; }
.alerts-sort-control label { color: #66728a; font-size: 12px; font-weight: 600; }
.alerts-back { margin: 14px 12px 0; text-decoration: none; }
.alerts-rank-number { display: inline-flex; min-width: 28px; height: 28px; align-items: center; justify-content: center; color: #514b87; background: #f0edff; border-radius: 7px; font-weight: 700; }
.alerts-brand-display { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.alerts-brand-logo-box { display: flex; align-items: center; justify-content: center; width: 102px; height: 78px; border-radius: 9px; padding: 9px; color: white; font-weight: 700; }
.alerts-brand-logo { max-width: 100%; max-height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.alerts-agent-button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.alerts-agent-button:focus-visible { outline: 2px solid #5b84f7; outline-offset: 3px; }
.alerts-score-comparison { display: flex; align-items: center; gap: 8px; min-width: 235px; }
.alerts-radar { width: 155px; height: 145px; flex: 0 0 155px; }
.alerts-score-label { color: #5b6b87; font-size: 11px; white-space: nowrap; }
.alerts-score-label strong { color: #334267; font-size: 16px; }
.alerts-score-overall { color: #7d89a0; margin-top: 3px; }
@media (max-width: 767px) {
    .alerts-header { min-height: 82px; padding: 14px 18px; }
    .alerts-header-logo { height: 45px; }
    .alerts-header h2 { font-size: 19px; }
    .alerts-header-user { display: none; }
    .alerts-page { padding: 102px 14px 26px; }
    .alerts-intro { display: block; }
    .alerts-content-panel .nav-tabs { padding-left: 5px; padding-right: 5px; }
    .alerts-content-panel .nav-link { padding: 12px 8px; font-size: 12px; }
}

.alerts-coming { max-width: 660px; margin: 42px auto; padding: 56px 36px; text-align: center; background: white; border: 1px solid #e5eaf2; border-radius: 12px; box-shadow: 0 2px 12px rgba(31,42,78,.045); }
.alerts-coming h3 { color: #242148; font-weight: 700; }
.alerts-coming-icon { width: 58px; height: 58px; border-radius: 16px; background: #eef2ff; color: #5b84f7; font-size: 26px; display: flex; justify-content: center; align-items: center; margin: 0 auto 20px; }
.alerts-coming-badge { background: #f0edff; color: #6552aa; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 6px 10px; }
