.ap-classroom-shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.ap-classroom-card {
    background: var(--apms-ui-surface, var(--surface));
    border: 1px solid var(--apms-ui-border, var(--border));
    border-radius: var(--apms-ui-radius-card, 16px);
    overflow: hidden;
}

.ap-classroom-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ap-classroom-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.ap-classroom-summary .cls-v4-pill {
    font-size: 12px;
    font-weight: 400;
}

.ap-classroom-summary .cls-v4-pill b {
    font-weight: 500;
}

.ap-classroom-roster {
    background: var(--apms-ui-surface, var(--surface));
}

.ap-classroom-row {
    min-height: 46px;
}

.ap-classroom-row:hover {
    background: var(--apms-ui-hover, rgba(15, 23, 42, 0.035));
}

.ap-classroom-row__main {
    min-width: 0;
}

.ap-classroom-row__title {
    overflow: hidden;
    color: var(--apms-ui-text, var(--text));
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-classroom-row__meta {
    color: var(--apms-ui-muted, var(--secondary));
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.ap-classroom-row__actions {
    display: contents;
}

.ap-classroom-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ap-classroom-toolbar::-webkit-scrollbar {
    display: none;
}

.ap-classroom-toolbar .cls-v4-tool,
.ap-classroom-toolbar .cls-v4-date-reset {
    font-size: 13px;
    font-weight: 500;
}

.ap-classroom-chip {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 400;
}

.cls-v4-board .cls-v4-empty {
    font-weight: 400;
}

.ap-classroom-empty {
    padding: 30px 12px;
    color: var(--apms-ui-muted, var(--secondary));
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}

@media (min-width: 800px) {
    .ap-classroom-row {
        min-height: 50px;
    }
}


.ap-classroom-chip__value {
    color: var(--apms-ui-text, var(--text));
    font-weight: 500;
}

.ap-classroom-row .cls-v4-status {
    font-weight: 500;
}

.ap-classroom-row .cls-v4-status.tag,
.ap-classroom-row .cls-v4-status.consult {
    font-weight: 500;
}

.ap-classroom-toolbar .cls-v4-date-input,
.ap-classroom-toolbar .cls-v4-date-reset {
    font-weight: 500;
}

/* ── 보강 체크칩 패널 ──────────────────────────────────────────────── */
.makeup-chip-panel {
    display: flex;
    align-items: center;
    padding: 6px 12px 6px 16px;
    background: var(--apms-ui-surface, var(--surface));
    border-bottom: 1px solid var(--apms-ui-border, var(--border));
}

@media (min-width: 800px) {
    .makeup-chip-panel {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.makeup-chip-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.makeup-chip {
    height: 30px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--apms-ui-border, var(--border));
    background: var(--apms-ui-surface-2, var(--surface-2));
    color: var(--apms-ui-muted, var(--secondary));
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    touch-action: manipulation;
}

.makeup-chip.on {
    background: var(--primary-soft, rgba(37,99,235,0.10));
    color: var(--primary, #2563eb);
    border-color: rgba(37, 99, 235, 0.22);
}

.makeup-chip:focus-visible {
    outline: 2px solid var(--primary, #2563eb);
    outline-offset: 2px;
}

.makeup-expand.on {
    background: var(--primary-soft, rgba(37,99,235,0.10));
    color: var(--primary, #2563eb);
    border-color: rgba(37, 99, 235, 0.22);
}

.ap-classroom-monthly-board {
    margin: 12px 0 0;
    padding: 10px 12px;
}

.ap-classroom-monthly-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ap-classroom-monthly-category {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ap-classroom-monthly-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--apms-ui-border, var(--border));
}

.ap-classroom-monthly-category-head span,
.ap-classroom-monthly-category-head strong {
    color: var(--apms-ui-text, var(--text));
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.ap-classroom-monthly-category-head strong {
    color: var(--apms-ui-muted, var(--secondary));
    white-space: nowrap;
}

.ap-classroom-monthly-category.is-absent .ap-classroom-monthly-category-head span,
.ap-classroom-monthly-category.is-absent .ap-classroom-monthly-category-head strong {
    color: var(--error);
}

.ap-classroom-monthly-category.is-homework .ap-classroom-monthly-category-head span,
.ap-classroom-monthly-category.is-homework .ap-classroom-monthly-category-head strong {
    color: var(--success);
}

.ap-classroom-monthly-category.is-makeup .ap-classroom-monthly-category-head span,
.ap-classroom-monthly-category.is-makeup .ap-classroom-monthly-category-head strong {
    color: var(--primary);
}

.ap-classroom-monthly-category.is-consultation .ap-classroom-monthly-category-head span,
.ap-classroom-monthly-category.is-consultation .ap-classroom-monthly-category-head strong {
    color: #7c3aed;
}

.ap-classroom-monthly-category.is-exam .ap-classroom-monthly-category-head span,
.ap-classroom-monthly-category.is-exam .ap-classroom-monthly-category-head strong {
    color: #d97706;
}

.ap-classroom-monthly-category.is-clinic .ap-classroom-monthly-category-head span,
.ap-classroom-monthly-category.is-clinic .ap-classroom-monthly-category-head strong {
    color: var(--error);
}

.ap-classroom-monthly-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 20px;
}

.ap-classroom-monthly-student {
    min-width: 0;
    max-width: 86px;
    overflow: hidden;
    color: var(--apms-ui-text, var(--text));
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-classroom-monthly-dates {
    color: var(--apms-ui-muted, var(--secondary));
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    word-break: keep-all;
}

.ap-classroom-monthly-row--exam {
    grid-template-columns: minmax(0, 1fr) max-content;
    cursor: pointer;
}

.ap-classroom-monthly-row--exam:focus-visible {
    border-radius: 6px;
    outline: 2px solid var(--primary, #2563eb);
    outline-offset: 2px;
}

.ap-classroom-monthly-row--exam .ap-classroom-monthly-student {
    max-width: none;
}

.ap-classroom-monthly-row--exam .ap-classroom-monthly-dates {
    text-align: right;
    white-space: nowrap;
}

@media (min-width: 800px) {
    .ap-classroom-monthly-board {
        margin: 12px 16px 0;
        padding: 12px 16px;
    }

    .ap-classroom-monthly-row {
        gap: 12px;
    }

    .ap-classroom-monthly-student {
        max-width: 104px;
    }
}

@media (max-width: 420px) {
    .ap-classroom-monthly-board {
        padding: 10px;
    }

    .ap-classroom-monthly-row--exam {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .ap-classroom-monthly-row--exam .ap-classroom-monthly-dates {
        text-align: left;
        white-space: normal;
    }
}
