﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f3f7;
    color: #2d1b3d;
    padding: 0;
    line-height: 1.6;
}

.top-banner {
    background: linear-gradient(135deg, #8b2a8c 0%, #c54bc7 100%);
    color: white;
    padding: 12px 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.header {
    background: #2d1b3d;
    color: white;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.header h1 {
    font-size: 28px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-accent {
    color: #ff6b9d;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .control-group label {
        font-size: 11px;
        font-weight: 600;
        color: #d1c4e0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.filters-section .control-group label {
    color: #4a3556;
}

select, input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #4a3556;
    border-radius: 6px;
    font-size: 14px;
    background: #3d2a4d;
    color: white;
    cursor: pointer;
}

    select:focus, input:focus {
        outline: none;
        border-color: #ff6b9d;
        box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
    }

button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

    button.primary {
        background: #ff6b9d;
        color: white;
    }

        button.primary:hover {
            background: #ff4f84;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
        }

    button.secondary {
        background: #4a3556;
        color: #d1c4e0;
    }

        button.secondary:hover {
            background: #5d4469;
            color: white;
        }

    button.subtle {
        background: #48bb78;
        color: white;
        font-size: 13px;
        padding: 8px 14px;
    }

        button.subtle:hover {
            background: #38a169;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
        }

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* Priority Status  */
.legend {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(45, 27, 61, 0.08);
    margin-bottom: 24px;
    border-left: 4px solid #8b2a8c;
}

.legend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

    .legend-header h3 {
        font-size: 15px;
        color: #2d1b3d;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.legend-toggle {
    font-size: 12px;
    color: #8b2a8c;
    font-weight: 600;
}

.legend-content {
    margin-top: 14px;
}

    .legend-content.collapsed {
        display: none;
    }

/*.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}*/

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #4a3556;
}

.legend-footer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e9e4ef;
    font-size: 12px;
    color: #6b5578;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.legend-footer-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .legend-footer-section strong {
        color: #4a3556;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.sla-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f9f7fb;
    border: 1px solid #e9e4ef;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #4a3556;
}

    .sla-badge.expedited {
        background: #fff5f7;
        border-color: #fc8181;
        color: #c53030;
    }

/* Status Dots */
.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

    .status-dot.green {
        background: #48bb78;
    }

    .status-dot.yellow {
        background: #f6ad55;
    }

    .status-dot.red {
        background: #fc8181;
    }

    .status-dot.none {
        background: #cbd5e0;
    }

.pill {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #fc8181 0%, #ff6b9d 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(252, 129, 129, 0.3);
}

/* Card */
.card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(45, 27, 61, 0.08);
    margin-bottom: 24px;
}

    .card h2 {
        font-size: 20px;
        margin-bottom: 20px;
        color: #2d1b3d;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

/* Filters */
.filters-section {
    background: #f9f7fb;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9e4ef;
}

.filters-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: linear-gradient(135deg, #2d1b3d 0%, #4a3556 100%);
    color: white;
    padding: 14px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 3px solid #8b2a8c;
}

    th.center {
        text-align: center;
    }

td {
    padding: 14px 12px;
    border-bottom: 1px solid #e9e4ef;
    font-size: 14px;
    color: #4a3556;
}

    td.center {
        text-align: center;
    }

    td.right {
        text-align: right;
        padding-right: 24px;
    }

tbody tr:hover {
    background: #faf8fc;
}

.expandable-row {
    cursor: pointer;
    transition: background 0.2s;
}

    .expandable-row:hover {
        background: #f5f0fa;
    }

    .expandable-row.expanded {
        background: #f9f7fb;
        font-weight: 600;
    }

    .expandable-row td:first-child::before {
        content: '▶';
        display: inline-block;
        margin-right: 8px;
        transition: transform 0.2s;
        font-size: 10px;
        color: #8b2a8c;
    }

    .expandable-row.expanded td:first-child::before {
        transform: rotate(90deg);
    }

.detail-row {
    background: #faf8fc;
}

    .detail-row td {
        padding-left: 40px;
        font-size: 13px;
        color: #6b5578;
    }

.status-counts {
    display: flex;
    gap: 12px;
    font-size: 13px;
    justify-content: center;
    margin-top: 4px;
}

.status-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.hidden {
    display: none;
}

/*  Alerts & Highlights */
.section-highlight {
    padding: 16px;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe5ec 100%);
    border-left: 4px solid #fc8181;
    border-radius: 6px;
    margin-bottom: 16px;
}

    .section-highlight h4 {
        color: #c53030;
        font-size: 14px;
        margin-bottom: 8px;
    }

.action-needed {
    font-weight: 600;
    color: #c53030;
}

/* Lead Evaluator specifics */
.team-summary-table tr.clickable {
    cursor: pointer;
    transition: all 0.2s;
}

    .team-summary-table tr.clickable:hover {
        background: #f5f0fa;
        transform: translateX(4px);
    }

.team-summary-table tr.selected {
    background: #f0e7f7;
    border-left: 4px solid #8b2a8c;
}

.drilldown-container {
    padding: 20px;
    background: #faf8fc;
    border: 2px solid #c54bc7;
    border-radius: 8px;
    margin-top: 16px;
}

.drilldown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9e4ef;
}

    .drilldown-header h3 {
        font-size: 18px;
        color: #2d1b3d;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.btn-back {
    display: inline-block;
    padding: 8px 16px;
    background: #4a3556;
    color: #d1c4e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

    .btn-back:hover {
        background: #5d4469;
        color: white;
    }

.no-data {
    text-align: center;
    padding: 60px 40px;
    color: #6b5578;
    font-style: italic;
    font-size: 15px;
}

.info-box {
    background: #e6f9f5;
    border-left: 4px solid #38b2ac;
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 13px;
    color: #2d1b3d;
}

.open-question {
    background: #fef5e7;
    border-left: 4px solid #f39c12;
    padding: 14px;
    margin-top: 20px;
    border-radius: 6px;
    font-size: 13px;
}

    .open-question strong {
        color: #c87f0a;
    }

/* Pagination */ 
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9e4ef;
}

.pagination-btn {
    display: inline-block;
    background: #6b5578;
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

    .pagination-btn:hover:not(.disabled) {
        background: #8b2a8c;
    }

    .pagination-btn.disabled {
        background: #cbd5e0;
        pointer-events: none;
        cursor: not-allowed;
    }

.pagination-info {
    font-size: 13px;
    color: #6b5578;
    font-weight: 500;
}

/* Scope selector */
.scope-selector {
    background: linear-gradient(135deg, #f5f0fa 0%, #faf8fc 100%);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e9e4ef;
}

    .scope-selector label {
        font-size: 13px;
        font-weight: 600;
        color: #4a3556;
    }

/* Priority badge */
.priority-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #fc8181;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 8px;
}

.team-scroll-container {
    max-height: 450px;
    overflow-y: auto;
    border: 1px solid #e9e4ef;
    border-radius: 8px;
}

    .team-scroll-container::-webkit-scrollbar {
        width: 8px;
    }

    .team-scroll-container::-webkit-scrollbar-track {
        background: #f5f3f7;
    }

    .team-scroll-container::-webkit-scrollbar-thumb {
        background: #c54bc7;
        border-radius: 4px;
    }

    .team-scroll-container table {
        margin: 0;
    }

select option {
    background: white;
    color: #2d1b3d;
}
