.scr-dash {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
    color: #1E2A32;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

.scr-dash-login-required {
    padding: 40px;
    text-align: center;
    font-size: 16px;
}

/* Tabs */
.scr-dash-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #E4DFD3;
    margin-bottom: 24px;
}

.scr-dash-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #8A9199;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.scr-dash-tab.active {
    color: #2F6B66;
    border-bottom-color: #2F6B66;
}

/* Filter bar */
.scr-dash-filterbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: #FAF8F4;
    border: 1px solid #E4DFD3;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 14px;
}

.scr-dash-filterbar label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.scr-btn {
    background: #2F6B66;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.scr-btn-secondary {
    background: none;
    color: #5B6670;
    border: 1px solid #D8D2C2;
}

/* Panels */
.scr-dash-panel {
    display: none;
}

.scr-dash-panel.active {
    display: block;
}

/* KPI cards */
.scr-kpi-row {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.scr-kpi-card {
    flex: 1;
    background: #F1EEE6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.scr-kpi-value {
    font-size: 34px;
    font-weight: 700;
    color: #B8823D;
    font-variant-numeric: tabular-nums;
}

.scr-kpi-label {
    font-size: 13px;
    color: #5B6670;
    margin-top: 4px;
}

.scr-kpi-delta {
    font-size: 12px;
    color: #5B6670;
    margin-top: 6px;
    font-weight: 600;
}

.scr-chart-box {
    background: #fff;
    border: 1px solid #E4DFD3;
    border-radius: 8px;
    padding: 20px;
}

.scr-chart-box h3 {
    margin-top: 0;
    font-size: 16px;
}

/* By Course layout */
.scr-course-layout {
    display: flex;
    gap: 24px;
}

.scr-course-table-col {
    flex: 1.2;
}

.scr-course-breakdown-col {
    flex: 1;
    background: #fff;
    border: 1px solid #E4DFD3;
    border-radius: 8px;
    padding: 20px;
    align-self: flex-start;
}

.scr-course-comments-box {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #E4DFD3;
    max-height: 400px;
    overflow-y: auto;
}

.scr-subfilter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 14px;
}

.scr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.scr-table th {
    text-align: left;
    font-size: 12px;
    color: #8A9199;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid #D8D2C2;
}

.scr-table td {
    padding: 9px 6px;
    border-bottom: 1px solid #E4DFD3;
}

.scr-course-row {
    cursor: pointer;
}

.scr-course-row:hover {
    background: #FAF8F4;
}

.scr-course-row.selected {
    background: #F1EEE6;
}

/* Comments */
.scr-comment-item {
    padding: 14px 0;
    border-bottom: 1px solid #E4DFD3;
}

.scr-comment-meta {
    font-size: 12px;
    color: #8A9199;
    margin-bottom: 4px;
}

.scr-comment-text {
    font-size: 15px;
    line-height: 1.5;
}

.scr-empty {
    color: #8A9199;
    font-style: italic;
}

@media (max-width: 700px) {
    .scr-kpi-row, .scr-course-layout {
        flex-direction: column;
    }
}
