/* app-moshawer — counselor view styles. RTL, mobile-first, 360px safe. */
.c-wrap { display: flex; flex-direction: column; gap: 14px; }
.c-main { order: 1; min-width: 0; }
.c-aside { order: 2; min-width: 0; }
.c-aside h2 { font-size: 16px; color: var(--brand); margin-bottom: 10px; }
@media (min-width: 900px) {
  .c-wrap { flex-direction: row; align-items: flex-start; }
  .c-main { order: 2; flex: 1; }
  .c-aside { order: 1; width: 280px; flex: none; position: sticky; top: 64px; }
}
.c-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.c-head h1 { font-size: 19px; color: var(--brand); margin: 0; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--green); font-weight: 700; white-space: nowrap; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); display: inline-block; animation: live-pulse 2s infinite; }
@keyframes live-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* filters */
.filters { display: flex; gap: 8px; margin-bottom: 12px; }
.filters input, .filters select { flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; outline: none; }
.filters input:focus, .filters select:focus { border-color: var(--brand); }

/* student summary cards */
.student-card { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.student-card:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(12, 90, 97, .10); }
.sc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sc-top strong { font-size: 16px; }
.sc-name { color: var(--muted); font-size: 13.5px; }
.sc-overall { margin: 10px 0 6px; }
.sc-schem { margin-top: 10px; }
.sc-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 13.5px; }

/* detail header */
.detail-head .dh-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.detail-head .dh-top strong { font-size: 17px; }
.dh-overall { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 10px 0 6px; }
.sub-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* day schematic */
.date-row { display: flex; gap: 8px; margin-bottom: 8px; }
.date-row input { flex: 1; min-width: 0; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; outline: none; }
.date-row input:focus { border-color: var(--brand); }
.date-label { font-weight: 700; margin-bottom: 10px; }
.week-nav { display: flex; gap: 8px; margin-bottom: 8px; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.week-day { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 0; font-size: 12px; line-height: 1.6; color: var(--ink); }
.week-day.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.week-day.today:not(.active) { border-color: var(--accent); }
.cell-btn { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 17px; font-weight: 800; color: var(--green); line-height: 1; padding: 0; }
.cell-btn.on { background: var(--green-soft); border-color: var(--green); }
.study-btn { background: none; border: 0; padding: 0; }

/* sales aside */
.sales-card { padding: 13px; }
.sales-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sales-price { font-weight: 800; color: var(--accent); font-size: 16px; margin: 6px 0; }
.sales-feat { font-size: 13.5px; color: var(--muted); }

/* forms inside collapsed sections */
.mini-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mini-form label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.mini-form input, .mini-form select, .mini-form textarea { width: 100%; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; outline: none; margin-top: 3px; font-weight: 400; color: var(--ink); }
.mini-form input:focus, .mini-form select:focus, .mini-form textarea:focus { border-color: var(--brand); }
.mini-form .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 480px) { .mini-form { grid-template-columns: 1fr; } }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.kv:last-of-type { border-bottom: 0; }
.kv span { color: var(--muted); font-size: 13.5px; }
.ps-field { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-field legend { font-weight: 700; font-size: 13.5px; color: var(--brand); padding: 0 6px; }
.ps-field label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ps-field input { width: 100%; padding: 7px 9px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; margin-top: 2px; }
.report-block { padding: 10px 0; border-bottom: 1px solid var(--line); }
.report-block:last-of-type { border-bottom: 0; }

/* checklist */
.check-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.check-row:last-of-type { border-bottom: 0; }
.check-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; margin: 8px 0; font-size: 13.5px; }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper .btn { min-width: 32px; }

/* makeup / tests */
.makeup-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.makeup-row:last-of-type { border-bottom: 0; }
.makeup-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.test-row { padding: 8px 0; border-bottom: 1px solid var(--line); }
.test-row:last-of-type { border-bottom: 0; }
