/* Admin-Seite. Tokens kommen aus /shared/style.css. */

main.admin { max-width: 880px; margin: 0 auto; padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-5); }
.admin__intro h1 { margin: 0 0 var(--sp-2); font-size: 22px; }
.admin__intro p  { margin: 0; color: var(--text-muted); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6); box-shadow: var(--shadow-sm);
}
.card__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--sp-3);
}
.card__head h2 { margin: 0; font-size: 16px; }

.muted { color: var(--text-muted); font-size: 13px; }
.muted code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* Drop-Zone */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-6) var(--sp-4); margin: var(--sp-3) 0;
  border: 2px dashed var(--border-strong); border-radius: var(--r-md);
  background: var(--surface-2); cursor: pointer;
  transition: border-color .12s, background .12s;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--brand-2); background: var(--brand-soft); }
.dropzone__title { font-size: 14px; font-weight: 600; color: var(--text); }
.dropzone__sub { font-size: 12px; color: var(--text-muted); }
.dropzone__actions { display: flex; gap: var(--sp-2); }

/* Perioden-Liste */
.periods-list table { width: 100%; border-collapse: collapse; }
.periods-list th, .periods-list td {
  padding: 9px 12px; text-align: left; border-bottom: 1px solid #f1f5f9;
}
.periods-list th { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; background: #f8fafc; }
.periods-list tr:last-child td { border-bottom: 0; }
.periods-list .pdf-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; margin-right: 4px;
}
.periods-list .pdf-badge.ok   { background: var(--pos-bg); color: var(--pos); }
.periods-list .pdf-badge.miss { background: var(--surface-2); color: var(--text-muted); }
.periods-list .actions { text-align: right; }

/* Passwort-Form */
.pw-form { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 380px; }
.pw-row { display: flex; flex-direction: column; gap: var(--sp-1); }

.alert:not([hidden]) { margin-top: var(--sp-3); }
