/* dash-people: groups, group, students, student views */

.dp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dp-panel { display: grid; gap: 18px; min-width: 0; outline: none; }
.dp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dp-hint { font-size: 13.5px; margin-bottom: 8px; }
.dp-desc { color: var(--text-2); max-width: 70ch; white-space: pre-line; }
.dp-badges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dp-nowrap { white-space: nowrap; }
.dp-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.dp-avatar { width: 36px; height: 36px; font-size: 13px; }
.dp-avatar-lg { width: 44px; height: 44px; font-size: 16px; }
.dp-title { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.dp-linkbtn { border: 0; background: none; padding: 0 4px; min-height: 40px; font: inherit; font-weight: 700; font-size: 14px; color: var(--d-accent); cursor: pointer; }

/* banner (archived) */
.dp-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; border: 1px solid rgb(251 191 36 / 0.35); background: rgb(251 191 36 / 0.08); }
.dp-banner > .icon { color: #fcd34d; flex-shrink: 0; }
:root[data-theme='light'] .dp-banner > .icon { color: #92400e; }
.dp-banner p { flex: 1; min-width: 220px; font-size: 14px; }

/* groups grid */
.dp-groups { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.dp-group-card { display: grid; gap: 6px; align-content: start; transition: border-color 0.2s; }
.dp-group-card:hover { border-color: var(--border-strong); }
.dp-group-card:focus-within { box-shadow: var(--ring); }
.dp-group-top { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.dp-group-top h3 { font-size: 17px; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.dp-group-top .st { position: relative; z-index: 1; }
.dp-stretch { color: var(--text); outline: none; }
.dp-stretch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.dp-stretch:hover { color: var(--d-accent); }
.dp-sub { color: var(--text-2); font-size: 14px; }
.dp-facts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: var(--text-2); }
.dp-facts li { display: flex; align-items: flex-start; gap: 8px; }
.dp-facts .icon { flex-shrink: 0; margin-top: 3px; color: var(--d-accent); }

/* overview */
.dp-stats .d-stat { text-align: start; font: inherit; cursor: default; }
button.dp-stat { cursor: pointer; }
.dp-stats .d-stat b { color: var(--text); }
.dp-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dp-link-item { min-width: 0; }
.dp-link-item h4 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.dp-link-item h4 .icon { color: var(--d-accent); }
.dp-link-item p { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.dp-link-item .d-actions { margin-top: 10px; }
.dp-request .d-row-main small { white-space: normal; }

/* add-member dialog */
.dp-results { min-height: 44px; }
.dp-results .d-list { max-height: 260px; overflow-y: auto; }
.dp-or { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 13px; font-weight: 700; }
.dp-or::before, .dp-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.dp-details summary { cursor: pointer; padding: 10px 4px; min-height: 40px; color: var(--text-2); font-weight: 700; }

/* checkboxes */
.dp-checks { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; min-width: 0; }
.dp-checks legend { font-size: 13.5px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; padding: 0; }
.dp-check { min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); }
.dp-check:hover { background: var(--surface-2); }
.dp-check:focus-within { box-shadow: var(--ring); }

/* attendance grid */
.dp-grid-wrap:focus-visible { box-shadow: var(--ring); border-radius: 10px; }
.dp-grid { width: max-content; min-width: 100%; }
.dp-grid th, .dp-grid td { text-align: center; white-space: nowrap; }
.dp-grid .dp-sticky { position: sticky; inset-inline-start: 0; z-index: 1; text-align: start; background: color-mix(in srgb, var(--bg), #fff 4%); max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
:root[data-theme='light'] .dp-grid .dp-sticky { background: #fbfdfc; }
.dp-th-link { display: grid; color: var(--text-2); line-height: 1.3; }
.dp-th-link small { font-weight: 400; font-size: 11.5px; }
.dp-th-link:hover { color: var(--d-accent); }
.dp-cell { font-size: 13px; font-weight: 700; }
.dp-mark { display: inline-flex; align-items: center; gap: 3px; }
.dp-present { color: #6ee7b7; }
.dp-absent { color: #fda4af; }
.dp-before { color: var(--text-3); }
:root[data-theme='light'] .dp-present { color: #047857; }
:root[data-theme='light'] .dp-absent { color: #be123c; }
.dp-total { font-weight: 800; }
.dp-guests th, .dp-guests td { color: var(--text-2); font-size: 13px; }
.dp-legend { margin-top: 10px; }

/* students list */
.dp-count { margin-bottom: 4px; font-size: 13.5px; }
.dp-name { color: var(--text); }
.dp-name:hover { color: var(--d-accent); }
.dp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.dp-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 2px 10px; border-radius: 99px; background: var(--d-tint); color: var(--d-accent); font-size: 12.5px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-chip:hover { color: var(--text); }
.dp-more { display: grid; justify-items: center; }
.dp-more .btn { margin-top: 12px; }
.dp-score b { font-size: 18px; font-weight: 900; }

@media (max-width: 899px) {
  .dp-links { grid-template-columns: 1fr; }
  .dp-groups { grid-template-columns: 1fr; }
  .dp .btn-sm, .dp-form .btn-sm, .dp-results .btn-sm, #new-member-form .btn-sm { height: 40px; }
  .dp .icon-btn { width: 40px; height: 40px; }
  .dp-request .dp-row-actions { width: 100%; }
}
@media (max-width: 560px) {
  .dp-two { grid-template-columns: 1fr; }
  .dp-filters .d-search, .dp-filters .select { flex-basis: 100%; }
  .dp-filters .d-tabs { width: 100%; }
  .dp .d-head-actions .btn { flex: 1; }
  .dp .d-head-actions { width: 100%; }
}

.dp-note { flex-wrap: nowrap; align-items: flex-start; }
.dp-note > .icon { flex-shrink: 0; margin-top: 4px; }
.dp > .d-tabs, .dp-filters .d-tabs { justify-self: start; }
.dp .d-card-head .select { width: auto; height: 40px; min-width: 0; }
.dp-inline { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; }
.dp-history td:nth-child(-n+2) { min-width: 150px; }
