/* ═══════════════════════════════════════════════════════════════════════
   OW Kundportal v2 — Konto (Profil + Filer). Page rules only; tokens and
   components come from ../portal.css. Every rule is scoped to body.customers.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Profil ──────────────────────────────────────────────────────────── */
body.customers .pt-account-grid { grid-template-columns: 2fr 1fr; align-items: start; }
body.customers .pt-profile-form { margin: 0; }
body.customers .pt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* Avatar block: plain <img> + file input; works without JS */
body.customers .pt-avatar-block { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--pt-border); }
body.customers .pt-avatar-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--pt-surface-3); box-shadow: 0 0 0 1px var(--pt-border); }
body.customers .pt-avatar-main { min-width: 0; }
body.customers .pt-avatar-label { display: block; font-size: 13px; font-weight: 500; color: var(--pt-text-2); margin-bottom: 6px; }
body.customers .pt-avatar-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
body.customers .pt-file-btn { margin: 0; position: relative; cursor: pointer; }
body.customers .pt-file-btn:focus-within { outline: 2px solid var(--pt-accent); outline-offset: 2px; }
body.customers .pt-file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; opacity: 0; }
body.customers .pt-avatar-filename:empty { display: none; }
body.customers .pt-link--danger { color: var(--pt-danger); }
body.customers .pt-link--danger:hover, body.customers .pt-link--danger:focus { color: var(--pt-danger); text-decoration: underline; }

/* E-postaviseringar: a fieldset inside the same form (must submit with it) */
body.customers .pt-form-section { margin: 8px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--pt-border); min-width: 0; }
body.customers .pt-form-section-title { display: block; width: auto; margin: 0 0 2px; padding: 0; border: 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--pt-text); }
body.customers .pt-form-section-intro { margin: 0 0 4px; font-size: 13.5px; color: var(--pt-muted); }
body.customers .pt-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 16px; }
body.customers .pt-check-grid .checkbox { margin: 8px 0 0; }

/* Password card footer note (left-aligned, muted) */
body.customers .pt-card-foot--note { justify-content: flex-start; font-size: 12.5px; color: var(--pt-muted); }

/* ── Filer ───────────────────────────────────────────────────────────── */
body.customers .pt-files-upload .dropzone { margin: 0; }
body.customers .pt-files-external { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
body.customers .pt-file-cell { display: inline-flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; color: var(--pt-text); }
body.customers .pt-file-cell:hover, body.customers .pt-file-cell:focus { color: var(--pt-accent-text); }
body.customers .pt-file-thumb { position: relative; width: 44px; height: 44px; border-radius: var(--pt-radius-xs); overflow: hidden; background: var(--pt-surface-3); flex-shrink: 0; }
body.customers .pt-file-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.customers .pt-file-spinner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--pt-muted); font-size: 13px; }
body.customers .pt-file-mime { flex-shrink: 0; display: inline-block; height: 22px; padding-left: 26px; background-size: 20px auto; background-position: 0 center; }
body.customers .pt-file-name { min-width: 0; overflow-wrap: anywhere; }
body.customers .table .pt-td-actions { width: 1%; white-space: nowrap; text-align: right; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    body.customers .pt-account-grid { grid-template-columns: 1fr; }
    body.customers .pt-form-row { grid-template-columns: 1fr; gap: 0; }
    body.customers .pt-avatar-block { align-items: flex-start; }
}
