/* Parent dashboard */
body.parent { background: #f4f6fb; }
.ptop { position: sticky; top: 0; z-index: 10; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ptitle { font-weight: 800; font-size: 19px; color: var(--purple-d); flex: 1; }
.ptabs { display: flex; gap: 6px; width: 100%; order: 3; overflow-x: auto; }
.ptabs button { flex: 1; min-width: 90px; padding: 8px 10px; border-radius: 12px; border: 2px solid #e5e7f0; background: #fff; font-weight: 700; color: #666; }
.ptabs button.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.logout { color: #fff !important; font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (min-width: 768px) { .ptabs { width: auto; order: 0; } }
.pmain { padding: 14px; max-width: 1100px; margin: 0 auto; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 26px; color: var(--purple-d); }
.kpi span { color: var(--mute); font-size: 13px; }
.pcard { background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.pcard h3 { margin: 0 0 10px; }
.ubar { margin: 8px 0 14px; }
.ubar .l { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 4px; }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.chart .c { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 10px; color: var(--mute); }
.chart .c i { display: block; width: 100%; background: linear-gradient(180deg, var(--purple), var(--orange)); border-radius: 6px 6px 0 0; min-height: 2px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { width: 86px; text-align: center; background: #fafafa; border-radius: 14px; padding: 8px 4px; font-size: 12px; border: 2px solid #eee; }
.badge .e { font-size: 28px; } .badge.off { opacity: .35; filter: grayscale(1); }
table.pt { width: 100%; border-collapse: collapse; font-size: 14px; }
table.pt th, table.pt td { padding: 8px 6px; border-bottom: 1px solid #eee; text-align: start; vertical-align: top; }
table.pt th { color: var(--mute); font-weight: 700; font-size: 13px; }
.lrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; flex-wrap: wrap; }
.lrow .t { font-weight: 800; flex: 1; min-width: 160px; }
.lrow .t small { display: block; color: var(--mute); font-weight: 400; }
.lrow .bar { width: 120px; height: 10px; }
.lrow .pct { width: 48px; text-align: center; font-weight: 800; }
.btn.danger { background: var(--red); box-shadow: 0 4px 0 #b71c1c; }
.btn.xs { min-height: 34px; font-size: 13px; padding: 4px 10px; border-radius: 10px; }
details.lesson-d { border: 1px solid #eee; border-radius: 12px; padding: 6px 10px; margin-bottom: 8px; background: #fff; }
details.lesson-d summary { cursor: pointer; list-style: none; }
details.lesson-d summary::-webkit-details-marker { display: none; }
.arow { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px dashed #eee; font-size: 14px; flex-wrap: wrap; }
.arow .t { flex: 1; min-width: 140px; }
.switch { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.switch input { width: 24px; height: 24px; }
.unit-h { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; margin: 18px 0 8px; }
.unit-h .dot { width: 14px; height: 14px; border-radius: 50%; }
