/* Daisy EMS v0.3.41 — «Enheder» (Indstillinger). Own file; mobile-safe (≤ 600px: one
 * column, no fixed widths, long hosts/prefixes wrap → no horizontal overflow). */
.enh { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border, #2d3a48); color: var(--text, #f2efe6); min-width: 0; max-width: 100%; }
.enh-hint { color: var(--muted, #9aa6b5); font-size: 0.86rem; line-height: 1.45; margin: 0.25rem 0 0.6rem; overflow-wrap: anywhere; }
.enh-empty { color: var(--muted, #9aa6b5); font-style: italic; }
.enh-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0.75rem; margin-bottom: 0.9rem; }
.enh-card { background: var(--bg-soft, #243040); border: 1px solid var(--border, #2d3a48); border-radius: 14px; padding: 0.85rem 0.95rem; min-width: 0; }
.enh-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 0.75rem; align-items: flex-start; }
.enh-title { display: flex; flex-direction: column; min-width: 0; }
.enh-sub { color: var(--muted, #9aa6b5); font-size: 0.8rem; overflow-wrap: anywhere; }
.enh-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.enh-badge { background: rgba(95, 184, 120, 0.16); color: var(--leaf, #5fb878); border-radius: 999px; padding: 0.1rem 0.55rem; font-size: 0.75rem; white-space: nowrap; }
.enh-badge-role { background: rgba(245, 197, 24, 0.16); color: var(--accent, #f5c518); }
.enh-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: 0.35rem 0.8rem; margin: 0.7rem 0 0.4rem; }
.enh-live div { min-width: 0; }
.enh-live dt { font-size: 0.74rem; color: var(--muted, #9aa6b5); }
.enh-live dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.enh-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; font-size: 0.78rem; color: var(--muted, #9aa6b5); }
.enh-brk-open { color: var(--danger, #f07178); } .enh-brk-half_open { color: var(--accent, #f5c518); } .enh-brk-closed { color: var(--leaf, #5fb878); }
.enh-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin: 0.65rem 0 0.2rem; }
.enh-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.6rem; }
.enh-actions .enh-danger { color: var(--danger, #f07178); }
.enh-result { margin: 0.55rem 0; padding: 0.45rem 0.65rem; border-radius: 10px; font-size: 0.85rem; overflow-wrap: anywhere; }
.enh-ok { background: rgba(95, 184, 120, 0.14); color: var(--leaf, #5fb878); } .enh-bad { background: rgba(240, 113, 120, 0.14); color: var(--danger, #f07178); }
.enh-meta .enh-bad { background: none; padding: 0; }
.enh-switch { display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer; font-size: 0.88rem; min-width: 0; }
.enh-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.enh-slider { flex: 0 0 auto; width: 38px; height: 22px; border-radius: 999px; background: var(--border, #2d3a48); position: relative; transition: background 0.15s; }
.enh-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform 0.15s; }
.enh-switch input:checked + .enh-slider { background: var(--leaf-dim, #3d8b5a); }
.enh-switch input:checked + .enh-slider::after { transform: translateX(16px); }
.enh-switch input:focus-visible + .enh-slider { outline: 2px solid #f5c518; outline-offset: 2px; }
.enh-switch input:disabled + .enh-slider { opacity: 0.45; }
.enh-switch-label { overflow-wrap: anywhere; }
.enh-add { border: 1px dashed var(--border, #2d3a48); border-radius: 14px; padding: 0.6rem 0.9rem; margin: 0.4rem 0 1rem; background: var(--bg-elev, #161c24); }
.enh-add summary { cursor: pointer; font-weight: 600; color: var(--accent, #f5c518); }
.enh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 0.6rem 0.9rem; margin-top: 0.7rem; }
.enh-field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.84rem; min-width: 0; }
.enh-field > span { color: var(--muted, #9aa6b5); }
.enh-field input, .enh-field select { width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0; padding: 0.45rem 0.65rem; border-radius: 8px; border: 1px solid var(--border, #2d3a48); background: var(--bg, #0e1218); color: var(--text, #f2efe6); font: inherit; }
.enh-field input:focus, .enh-field select:focus { outline: none; border-color: var(--accent, #f5c518); }
.enh-field.enh-check { flex-direction: row; align-items: center; gap: 0.45rem; }
.enh-field.enh-check input { width: auto; padding: 0; }
.enh-field.enh-check span { color: var(--text, #f2efe6); }
.enh-wide { grid-column: 1 / -1; }
.enh-flex { background: var(--bg-soft, #243040); border: 1px solid var(--border, #2d3a48); border-radius: 14px; padding: 0.85rem 0.95rem; }
.enh-flex-head { display: flex; flex-direction: column; gap: 0.2rem; }
@media (max-width: 600px) {
  .enh, .enh-card, .enh-flex, .enh-add { max-width: 100%; overflow-x: hidden; }
  .enh-list, .enh-grid { grid-template-columns: minmax(0, 1fr); }
  .enh-live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enh-actions .btn { flex: 1 1 auto; min-width: 0; }
  .enh-card { padding: 0.75rem; }
}
