/* Daisy EMS v0.3.43 — Opret konto + adgangsanmodninger. Følger 0.3.42-reglen: ingen tegn-for-tegn ombrydning, kort i stedet for tabeller. */

/* ---------- Opret konto (lys velkomst-stil som login) ---------- */
.signup-page .login-card { max-width: 420px; }
.signup-opt { font-weight: 400; color: #6b756f; }
.signup-alt { margin: 1rem 0 0; font-size: 0.88rem; color: #3a4540; text-align: center; }
.signup-alt a, .login-alt a { color: #2f5d3a; font-weight: 700; }
.login-alt { margin: 1rem 0 0; font-size: 0.88rem; color: #3a4540; text-align: center; }
.signup-btn-link { display: block; text-align: center; text-decoration: none; background: #2f5d3a; color: #f7f3ea; font-weight: 700; padding: 0.75rem 1rem; border-radius: 8px; }
.signup-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.signup-roles { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.signup-roles legend { font-size: 0.85rem; font-weight: 600; color: #3a4540; margin-bottom: 0.35rem; padding: 0; }
.login-form label.signup-role { position: relative; display: block; cursor: pointer; }
.signup-role input { position: absolute; opacity: 0; pointer-events: none; }
.signup-role span {
  display: flex; flex-direction: column; gap: 0.15rem; height: 100%;
  padding: 0.6rem 0.55rem; border-radius: 10px; border: 1px solid #cfc7b6; background: #fff;
  text-align: center; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.signup-role b { font-size: 0.9rem; color: #152018; }
.signup-role small { font-size: 0.72rem; font-weight: 500; color: #6b756f; line-height: 1.25; }
.signup-role input:checked + span { border-color: #2f5d3a; background: #eef5ec; box-shadow: 0 0 0 3px rgba(47, 93, 58, 0.16); }
.signup-role input:focus-visible + span { outline: 2px solid #f5c518; outline-offset: 2px; }
.signup-staff { display: flex; flex-direction: column; gap: 0.85rem; padding: 0.75rem; border-radius: 10px; background: rgba(245, 197, 24, 0.1); border: 1px dashed rgba(212, 160, 18, 0.5); }
.signup-staff[hidden] { display: none; }

.signup-meter { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: 0.76rem; color: #6b756f; }
.signup-meter-bar { position: relative; flex: 0 0 72px; height: 6px; border-radius: 3px; background: #e5dfd2; overflow: hidden; }
.signup-meter-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: #c0473f; transition: width 0.2s, background 0.2s; }
.signup-meter-bar[data-s="1"]::after { width: 25%; background: #c0473f; }
.signup-meter-bar[data-s="2"]::after { width: 50%; background: #d4a012; }
.signup-meter-bar[data-s="3"]::after { width: 75%; background: #5fb878; }
.signup-meter-bar[data-s="4"]::after { width: 100%; background: #2f5d3a; }

@media (max-width: 420px) {
  .signup-roles { grid-template-columns: minmax(0, 1fr); }
  .signup-role span { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
}

/* ---------- Velkomst for kunde uden anlæg (app-tema) ---------- */
.signup-welcome { max-width: 640px; margin: 1rem auto; padding: 1.4rem; }
.signup-welcome-head { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 0.9rem; }
.signup-welcome-head h1 { margin: 0; font-size: 1.35rem; }
.signup-welcome-head p { margin: 0.2rem 0 0; }
.signup-banner { margin: 0.75rem 0; padding: 0.7rem 0.85rem; border-radius: 10px; font-size: 0.9rem; line-height: 1.45; overflow-wrap: break-word; }
.signup-banner.info { background: rgba(92, 200, 255, 0.1); border: 1px solid rgba(92, 200, 255, 0.35); }
.signup-banner.warn { background: rgba(245, 197, 24, 0.1); border: 1px solid rgba(245, 197, 24, 0.4); }
.signup-code-form { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; }
.signup-code-form input { flex: 1 1 14rem; min-width: 0; }
#signup-code-status.err { color: var(--danger); }

/* ---------- Admin: anmodninger (Brugere) — kort, ikke tabel ---------- */
.rr-section { margin-bottom: 1rem; }
.rr-count { display: inline-block; min-width: 1.5em; padding: 0 0.45em; margin-left: 0.35rem; border-radius: 999px; background: var(--accent); color: #1a1405; font-size: 0.8rem; text-align: center; }
.rr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0.75rem; }
.rr-card { border: 1px solid var(--border); border-radius: 12px; padding: 0.85rem; background: var(--bg-soft); display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; }
.rr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; }
.rr-who { min-width: 0; }
.rr-name { font-weight: 700; overflow-wrap: break-word; }
.rr-mail { font-size: 0.85rem; color: var(--muted); overflow-wrap: break-word; }
.rr-role { flex: 0 0 auto; white-space: nowrap; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.rr-role-dealer { background: rgba(92, 200, 255, 0.15); color: var(--info); }
.rr-role-admin { background: rgba(245, 197, 24, 0.16); color: var(--accent); }
.rr-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; font-size: 0.8rem; color: var(--muted); }
.rr-badge { padding: 0 0.45rem; border-radius: 6px; font-size: 0.75rem; }
.rr-badge.warn { background: rgba(245, 197, 24, 0.15); color: var(--accent); }
.rr-badge.ok { background: rgba(95, 184, 120, 0.15); color: var(--leaf); }
.rr-note { margin: 0; font-size: 0.88rem; font-style: italic; overflow-wrap: break-word; }
.rr-dealer input, .rr-reason { width: 100%; min-width: 0; }
.rr-reject[hidden] { display: none; }
.rr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.rr-status.err, #rr-link-status.err { color: var(--danger); }
.rr-empty { margin: 0.25rem 0 0; }
.rr-history { margin-top: 0.85rem; }
.rr-history summary { cursor: pointer; color: var(--muted); font-size: 0.88rem; }
.rr-history ul { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.rr-done { display: flex; gap: 0.5rem; align-items: baseline; font-size: 0.86rem; overflow-wrap: break-word; }
.rr-dot { flex: 0 0 auto; width: 0.55rem; height: 0.55rem; border-radius: 50%; }
.rr-dot.ok { background: var(--leaf); }
.rr-dot.no { background: var(--danger); }
.rr-link-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.rr-link-form select { flex: 1 1 12rem; min-width: 0; max-width: 100%; }
.signup-code-form input, .rr-link-form select, .rr-card input {
  appearance: none; padding: 0.55rem 0.7rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text); font: inherit; font-size: 0.95rem;
}
.rr-link-form select { appearance: auto; }
.signup-code-form input:focus, .rr-link-form select:focus, .rr-card input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
