/* Dashboard on the v49 portal look (spec v1 §8, 29 Oct). Loaded after staff.css (form and list basics) and portal.css (shell). */
body.pt.dash { font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif }
body.pt.dash main { max-width: none; margin: 0 }
body.pt.dash .ptmain { max-width: 1120px }
body.pt.dash .railbtn { margin: 0; background: none; font-weight: 400; padding: 8px 12px; color: var(--rail-ink); border: 1px solid rgb(246 243 239 / .25) }
body.pt.dash .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; padding: 0; border: 0 }
body.pt.dash .list { display: grid; gap: 10px }
body.pt.dash .item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #EDE8E1 }
body.pt.dash .card { margin: 0 }
body.pt.dash button, body.pt.dash .button { margin-top: 0; padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; background: var(--act); color: var(--on-act); border: 1px solid var(--act) }
body.pt.dash button.ghost { background: none; color: var(--ink); border-color: var(--line) }
body.pt.dash button.secondary, body.pt.dash .button.secondary { background: var(--act); color: var(--on-act) }
body.pt.dash input, body.pt.dash select, body.pt.dash textarea { background: #F4F0EA; border-color: var(--line); border-radius: 10px; font-size: 14px }
body.pt.dash .muted { color: var(--muted) }
body.pt.dash .mt16 { margin-top: 16px }
body.pt.dash form.offer { background: #EDE8E1; border-color: var(--line) }
body.pt.dash .ocal-grid button { padding: 6px 0; border-radius: 8px; background: transparent; color: var(--ink); border: 1px solid transparent; font-weight: 400 }
body.pt.dash .ocal-grid button.on { background: var(--act); color: var(--on-act) }
body.pt.dash .ocal-head button, body.pt.dash .otimes button { padding: 4px 10px }
body.pt.dash .calbar button { padding: 7px 14px }
/* collapsible boxes with counts */
body.pt.dash details.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 22px }
body.pt.dash details.box > summary { list-style: none; display: flex; gap: 10px; align-items: center; cursor: pointer; margin: 0; padding: 4px 0 }
body.pt.dash details.box > summary::-webkit-details-marker { display: none }
body.pt.dash details.box > summary::after { content: ''; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s }
body.pt.dash details.box[open] > summary::after { transform: rotate(225deg) }
body.pt.dash details.box[open] > summary { margin-bottom: 8px }
body.pt.dash details.box h2 { font-size: 17px }
body.pt.dash .grouph { margin-top: 16px }
body.pt.dash .clashnote { display: inline-block; margin: 6px 0 2px; font-size: 13px; font-weight: 600; color: var(--alert); background: var(--alert-bg); border-radius: 8px; padding: 3px 10px }
/* Teacher view · Family view (admin only) */
.switch { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; padding: 3px; background: var(--surface) }
body.pt.dash .switch .seg { background: none; color: var(--muted); border: 0; padding: 7px 14px; border-radius: 9px }
body.pt.dash .switch .seg[aria-pressed="true"] { background: var(--act); color: var(--on-act) }
body.pt.dash .famview { margin-bottom: 18px } body.pt.dash .famview select { width: auto; min-width: 260px }
body.pt.dash #toast { font-weight: 600 }
@media (max-width: 640px) { body.pt.dash details.box { padding: 14px 16px } body.pt.dash .famview select { min-width: 0; width: 100% } }
