/* 데일리 학습 리포트 — 학부모 /r/{token} 전용 (선생님 미리보기와 동일 디자인) */

.report-header {
    background: linear-gradient(135deg, #312e81, #4f46e5);
    color: white;
    padding: 25px 20px 20px;
    text-align: center;
    flex-shrink: 0;
}
.report-logo {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.report-date {
    font-size: 12px;
    opacity: 0.8;
}
.report-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f3f4f6;
    -webkit-overflow-scrolling: touch;
}
.report-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.report-section-title {
    font-size: 12px;
    font-weight: bold;
    color: #6b7280;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.report-section-title i { color: #312e81; }

.student-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.student-name-big {
    font-size: 20px;
    font-weight: 800;
    color: #111;
}
.att-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    color: white;
}
.att-출석 { background: #10b981; }
.att-지각 { background: #f59e0b; }
.att-결석 { background: #ef4444; }
.att-조퇴 { background: #6366f1; }

.time-info {
    margin-top: 10px;
    font-size: 13px;
    color: #4b5563;
    background: #f9fafb;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
}

.report-body > .report-card,
.report-body > .chat-section {
    flex-shrink: 0;
}
.report-learning-card,
.report-homework-card,
.report-metrics-card {
    padding: 0;
    overflow: visible;
}

.dr-section {
    padding: 16px 16px 14px;
}
.dr-section + .dr-section {
    border-top: 1px solid #eef2f7;
}
.dr-section-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 800;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 7px;
}
.dr-section-title i { color: #4338ca; font-size: 14px; }
.dr-section-body { font-size: 13px; color: #1f2937; line-height: 1.55; }
.dr-empty { margin: 0; color: #9ca3af; font-size: 13px; }

.dr-progress-wrap { display: flex; flex-direction: column; gap: 10px; }
.dr-progress-block {
    border-radius: 10px;
    padding: 12px 12px 11px;
    border: 1px solid transparent;
}
.dr-progress-hak {
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
    border-color: #c7d2fe;
}
.dr-progress-sup {
    background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 100%);
    border-color: #a7f3d0;
}
.dr-progress-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #312e81;
}
.dr-progress-sup .dr-progress-label { color: #047857; }
.dr-progress-char {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4338ca;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    flex-shrink: 0;
}
.dr-progress-sup .dr-progress-char { background: #059669; }
.dr-progress-body {
    font-size: 13px;
    line-height: 1.6;
    color: #111827;
    word-break: break-word;
}
.dr-progress-plain,
.dr-progress-extra,
.dr-hw-plain {
    font-size: 13px;
    line-height: 1.6;
    color: #111827;
    word-break: break-word;
}

.dr-hw-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #111827;
}
.dr-hw-list li {
    margin-bottom: 6px;
    line-height: 1.55;
    padding-left: 2px;
}
.dr-hw-list li:last-child { margin-bottom: 0; }

.dr-metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
    background: #fff;
}
.dr-metric {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
}
.dr-metric-label {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.dr-metric-label i { color: #4338ca; font-size: 12px; }
.dr-metric-value {
    font-size: 18px;
    font-weight: 900;
    color: #111827;
    line-height: 1.2;
}
.dr-metric-unit {
    font-size: 12px;
    font-weight: 700;
    margin-left: 1px;
}
.dr-metric-pass .dr-metric-value { color: #059669; }
.dr-metric-fail .dr-metric-value { color: #dc2626; }

.raon-view-card {
    background: linear-gradient(145deg, #f5f3ff 0%, #ede9fe 42%, #faf5ff 100%);
    border: 1px solid #c4b5fd;
    box-shadow: 0 4px 16px rgba(49, 46, 129, 0.09);
    position: relative;
    overflow: visible;
}
.raon-view-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4338ca, #7c3aed, #6366f1);
}
.raon-title {
    color: #312e81;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.02em;
}
.raon-text {
    font-size: 13px;
    line-height: 1.65;
    color: #1e1b4b;
    text-align: justify;
    margin-top: 10px;
}

.btn-report-chat {
    width: 100%;
    background: #312e81;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(49, 46, 129, 0.22);
}
.btn-report-chat:active {
    transform: scale(0.98);
    background: #282566;
}

.chat-date-divider {
    text-align: center;
    font-size: 10px;
    color: #9ca3af;
    margin: 10px 0;
}
