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

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

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

.ce-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ce-inactive-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 1px 7px;
    border-radius: 100px;
    background: rgba(176, 80, 58, 0.12);
    color: #B0503A;
    vertical-align: middle;
}
