/* Poxilo - school management screens */
.card.flush-body { padding: 18px 20px; }
.ico-sq { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand); flex: none; font-size: 17px; }
.ico-sq.lg { width: 46px; height: 46px; font-size: 22px; border-radius: 14px; }
.tt-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--neutral-bg); font-size: 12px; margin: 2px 4px 2px 0; white-space: nowrap; }
.notice-bar { display: flex; gap: 10px; align-items: center; padding: 10px 14px; margin: 0 18px 10px; border-radius: 14px; background: var(--warn-bg); color: var(--warn); font-weight: 550; }
.notice-bar.ok { background: var(--good-bg); color: var(--good); }
.pay-note { display: flex; gap: 12px; align-items: flex-start; margin: 14px 18px 16px; padding: 12px 14px; border-radius: 14px; background: var(--grad-soft); color: var(--ink2); font-size: 13px; border: 1px solid var(--glass-edge, var(--line)); }
.pay-note svg { font-size: 18px; margin-top: 2px; color: var(--brand); flex: none; }

/* segmented attendance buttons */
.seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--neutral-bg); }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; font-weight: 650; cursor: pointer; color: var(--ink2); min-width: 36px; transition: background .15s, color .15s, transform .12s; }
.seg.sm button { padding: 4px 10px; font-size: 12.5px; min-width: 32px; }
.seg button:hover { background: rgba(255,255,255,.55); }
.seg button:active { transform: scale(.94); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(40,30,20,.14); }
.seg button.on[data-tone="good"] { background: var(--good-bg); color: var(--good); }
.seg button.on[data-tone="warn"] { background: var(--warn-bg); color: var(--warn); }
.seg button.on[data-tone="bad"] { background: var(--bad-bg); color: var(--bad); }
.seg button.on[data-tone="info"] { background: var(--info-bg); color: var(--info); }

/* timetable */
table.tt { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; min-width: 760px; }
.tt th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px; text-align: center; font-weight: 650; }
.tt th.tt-time, .tt td.tt-time { width: 108px; text-align: left; }
.tt td.tt-time b { display: block; font-size: 13px; }
.tt td.tt-time small { color: var(--muted); font-size: 11.5px; }
.tt td { vertical-align: middle; }
.tt-cell { border-radius: 14px; padding: 8px 10px; height: 60px; transition: transform .15s, box-shadow .15s, background .15s; }
.tt-cell.filled { background: color-mix(in srgb, var(--tc) 14%, transparent); border-left: 4px solid var(--tc); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.tt-cell.filled b { display: block; font-size: 13px; line-height: 1.25; }
.tt-cell.filled small { display: block; color: var(--ink2); font-size: 11.5px; line-height: 1.25; opacity: .85; }
.tt-cell.free { border: 1px dashed var(--line2); background: rgba(255,255,255,.12); }
.tt-cell.edit { cursor: pointer; }
.tt-cell.edit:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(60,40,20,.14); }
.tt-add { color: var(--muted); opacity: 0; font-weight: 700; font-size: 18px; display: block; text-align: center; }
.tt-cell.free.edit:hover .tt-add { opacity: 1; }
.tt-break td { background: repeating-linear-gradient(135deg, rgba(120,100,80,.07) 0 8px, transparent 8px 16px); border-radius: 12px; text-align: center; color: var(--muted); font-weight: 600; height: 34px; }
.tt-break td.tt-time { text-align: left; background: transparent; }

/* personal schedule timeline */
.sch-day h4 { font-size: 15px; }
.timeline { display: flex; flex-direction: column; gap: 6px; }
.tl-item { display: grid; grid-template-columns: 58px 34px 1fr; gap: 10px; align-items: stretch; }
.tl-time { text-align: right; padding-top: 10px; }
.tl-time b { display: block; font-size: 13px; }
.tl-time small { color: var(--muted); font-size: 11.5px; }
.tl-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; align-self: start; margin-top: 4px; background: var(--info-bg); color: var(--info); font-size: 15px; box-shadow: 0 0 0 4px var(--surface); }
.tl-item.substitution .tl-dot { background: var(--warn-bg); color: var(--warn); }
.tl-item.duty .tl-dot { background: var(--good-bg); color: var(--good); }
.tl-item.exam .tl-dot { background: var(--bad-bg); color: var(--bad); }
.tl-item.break .tl-dot { background: var(--neutral-bg); color: var(--muted); }
.tl-body { background: var(--surface2); border-radius: 14px; padding: 9px 13px; border: 1px solid var(--line); }
.tl-body small { color: var(--ink2); display: block; margin-top: 2px; }
.tl-item.break .tl-body { background: transparent; border-style: dashed; padding: 6px 12px; opacity: .8; }
.tl-item.uncovered .tl-body { border-left: 4px solid var(--bad); background: var(--bad-bg); }
.tl-item.covered .tl-body { border-left: 4px solid var(--good); }
.sch-day.compact .tl-body { padding: 6px 10px; }
.badge.plain.info { background: var(--info-bg); color: var(--info); } .badge.plain.warn { background: var(--warn-bg); color: var(--warn); } .badge.plain.good { background: var(--good-bg); color: var(--good); } .badge.plain.bad { background: var(--bad-bg); color: var(--bad); }

/* roster, exams, notices */
.roster td { vertical-align: top; }
.exam-card { cursor: pointer; }
.exam-card:hover { transform: translateY(-4px); }
.sheet.admit { margin-bottom: 18px; page-break-after: always; border: 2px solid #222; }
.notice.pinned { border-left: 4px solid var(--brand); }
.notice p { margin: 8px 0; color: var(--ink2); }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head { font-weight: 650; color: var(--muted); text-align: center; padding: 4px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.cal-cell { min-height: 96px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); padding: 6px 7px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; transition: transform .15s, box-shadow .15s; min-width: 0; }
.cal-cell.empty { background: transparent; border-color: transparent; cursor: default; }
.cal-cell:not(.empty):hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cal-cell.off { background: repeating-linear-gradient(135deg, rgba(120,100,80,.07) 0 8px, transparent 8px 16px); }
.cal-cell.today { outline: 2px solid var(--brand); }
.cal-day { font-weight: 700; font-size: 13px; }
.cal-chip { font-size: 11px; padding: 2px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--neutral-bg); font-weight: 600; }
.cal-chip.holiday { background: var(--info-bg); color: var(--info); }
.cal-chip.event { background: var(--good-bg); color: var(--good); }
.cal-chip.exam { background: var(--bad-bg); color: var(--bad); }
.cal-chip.leave { background: var(--warn-bg); color: var(--warn); }
.cal-legend { display: flex; gap: 16px; margin-bottom: 10px; color: var(--ink2); font-size: 12.5px; }
.cal-legend i.cal-chip { display: inline-block; width: 14px; height: 14px; padding: 0; margin-right: 6px; vertical-align: -3px; }
@media (max-width: 1000px) { .cal-cell { min-height: 70px; } }
