/* نظام الأندية الرياضية — إضافات التصميم | Edifice Vision */
a.kpi { text-decoration: none; color: inherit; display: block; transition: transform .12s; } a.kpi:hover { transform: translateY(-2px); }
.kpi.ok { border-top-color: var(--ok); } .kpi.warn { border-top-color: var(--warn); } .kpi.err { border-top-color: var(--err); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-bottom: 22px; }
.row.wrap { flex-wrap: wrap; } .row.wrap > label { flex: 1 1 180px; }
.scroll-x { overflow-x: auto; }
.st { display: inline-block; border-radius: 20px; padding: 2px 12px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.st.active { background: #e3f6ec; color: #13774a; } .st.expiring { background: #fff3dc; color: #9a5a00; } .st.expired, .st.none { background: #fde4e6; color: #b0222f; } .st.due { background: #f1e9fb; color: var(--p); }
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.avatar.ph { background: linear-gradient(135deg, var(--p2), var(--t)); color: #fff; font-weight: 800; font-size: 19px; }
.avatar.lg { width: 96px; height: 96px; font-size: 40px; border-radius: 22px; }
.photo-pick { width: 130px; flex: 0 0 130px !important; align-items: center; cursor: pointer; text-align: center; }
.photo-pick span { width: 120px; height: 140px; border: 2px dashed var(--line); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 40px; overflow: hidden; background: #faf9fd; }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; }
.tbl.kv td:first-child { color: var(--mut); width: 38%; }
.neg { color: var(--err); font-weight: 700; }
.att-dots { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.att-dots .d { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.d.present { background: #22a565; } .d.late { background: #f0b429; } .d.absent { background: #d23c4a; } .d.excused { background: #c9c4d6; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.plan { border: 2px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; cursor: pointer; display: flex !important; flex-direction: column; align-items: center; gap: 2px; color: var(--ink) !important; }
.plan input { display: none; } .plan b { font-size: 18px; } .plan em { font-style: normal; color: var(--t2); font-weight: 800; font-size: 20px; }
.plan:has(input:checked) { border-color: var(--t); background: #e8f6f5; }
.att-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.att-row b { flex: 1 1 140px; font-size: 18px; }
.seg.att { display: flex; gap: 4px; flex-wrap: wrap; }
.seg.att label { cursor: pointer; } .seg.att input { display: none; }
.seg.att span { display: inline-block; padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 700; font-size: 15.5px; background: #fff; }
.seg.att .present input:checked + span { background: #22a565; color: #fff; border-color: #22a565; }
.seg.att .late input:checked + span { background: #f0b429; color: #fff; border-color: #f0b429; }
.seg.att .absent input:checked + span { background: #d23c4a; color: #fff; border-color: #d23c4a; }
.seg.att .excused input:checked + span { background: #8b84a0; color: #fff; border-color: #8b84a0; }
.bar-pct { position: relative; background: #eee9f5; border-radius: 8px; height: 22px; min-width: 120px; overflow: hidden; }
.bar-pct i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--t); } .bar-pct i.low { background: var(--err); }
.bar-pct span { position: relative; font-size: 13.5px; font-weight: 800; padding-inline-start: 8px; line-height: 22px; }
.trend { display: flex; gap: 10px; align-items: flex-end; height: 220px; padding: 10px 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tcol { flex: 1 0 44px; display: flex; flex-direction: column; align-items: center; height: 100%; }
.tcol .bars { flex: 1; display: flex; gap: 3px; align-items: flex-end; width: 100%; justify-content: center; }
.tcol i { width: 40%; max-width: 18px; border-radius: 5px 5px 0 0; min-height: 2px; } .tcol small { color: var(--mut); font-size: 12.5px; }
i.in, .lg.in { background: var(--t); } i.out, .lg.out { background: #b9a3d4; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; }
.chip-s { display: inline-block; background: #f1eef8; border-radius: 20px; padding: 3px 12px; margin: 2px; font-size: 14.5px; }
.note-box { background: #fff7e6; border: 1.5px dashed var(--warn); border-radius: 12px; padding: 10px 14px; word-break: break-all; }
.num-in { max-width: 120px; }
.a2hs { margin: 0 14px 8px; }
.parent .big-state { margin: 16px 0; padding: 16px; border-radius: 16px; text-align: center; font-size: 21px; font-weight: 800; }
.big-state.active { background: #e3f6ec; color: #13774a; } .big-state.expiring { background: #fff3dc; color: #9a5a00; } .big-state.expired, .big-state.none { background: #fde4e6; color: #b0222f; }
.big-state div { font-size: 17px; margin-top: 6px; font-weight: 600; }
@media (max-width: 700px) {
  .att-row { padding: 12px 0; } .seg.att span { padding: 10px 12px; }
  .kpi b { font-size: 26px; }
}
@media print { .side, .top, .filters, .tabs, .btn { display: none !important; } .main { margin: 0 !important; } }
.side .a2hs { color: #fff; border-color: #ffffff66; background: transparent; } .side .a2hs:hover { background: #ffffff1a; }
